File: [local] / OpenXM / src / k097 / configure.in (download)
Revision 1.3, Tue Sep 27 01:05:55 2016 UTC (8 years ago) by takayama
Branch: MAIN
CVS Tags: HEAD Changes since 1.2: +10 -1
lines
The libraries are linked statistically on MacOS.
|
dnl $OpenXM: OpenXM/src/k097/configure.in,v 1.3 2016/09/27 01:05:55 takayama Exp $
dnl If you change this file, do not forget to run autoconf and rm .configure_done
AC_INIT(d.c)
AC_PROG_CC
AC_PROG_RANLIB
AC_CHECK_FUNC(socket)
if test "$ac_cv_func_socket" = no ; then
AC_CHECK_LIB(socket,socket)
fi
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)