=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/configure.in,v retrieving revision 1.3 retrieving revision 1.9 diff -u -p -r1.3 -r1.9 --- OpenXM/src/kxx/configure.in 2000/03/13 06:46:39 1.3 +++ OpenXM/src/kxx/configure.in 2016/09/19 07:50:02 1.9 @@ -1,4 +1,4 @@ -dnl $OpenXM: OpenXM/src/kxx/configure.in,v 1.2 2000/02/07 11:02:27 takayama Exp $ +dnl $OpenXM: OpenXM/src/kxx/configure.in,v 1.8 2008/01/12 11:26:16 takayama Exp $ dnl If you change this file, do not forget to run autoconf and rm .configure_done @@ -14,6 +14,18 @@ AC_CHECK_FUNC(gethostbyname) if test "$ac_cv_func_gethostbyname" = no ; then AC_CHECK_LIB(nsl,gethostbyname) fi +AC_CHECK_FUNC(dlopen) +if test "$ac_cv_func_dlopen" = no ; then + AC_CHECK_LIB(dl,dlopen) +fi +dnl check if it is MacOS X by heuristic. If so, use static link. +AC_PATH_PROG(MDUTIL,mdutil,none) +if test x"$MDUTIL" = x"none"; then +KANLIB='${KANLIB_SHARED}' +else +KANLIB='${KANLIB_STATIC}' +fi +AC_SUBST(KANLIB,[$KANLIB]) -AC_OUTPUT(Makefile) \ No newline at end of file +AC_OUTPUT(Makefile)