Annotation of OpenXM/src/ox_ntl/configure.in, Revision 1.1
1.1 ! iwane 1: dnl $OpenXM$
! 2: dnl If you change this file, do not forget to run autoheader and autoconf
! 3:
! 4:
! 5: AC_INIT(main.cpp)
! 6: AC_CONFIG_HEADER([config.h])
! 7:
! 8: AH_TOP()
! 9: AH_BOTTOM()
! 10:
! 11: dnl debug option
! 12: AC_MSG_CHECKING(if --enable-debug option secified)
! 13: AC_ARG_ENABLE(debug, [ --enable-debug Build a debugging version], [
! 14: AC_MSG_RESULT(yes)
! 15: AC_DEFINE(DEBUG, 1, Debug mode)
! 16: OPTFLAG=${OPTFLAG-"-g"}
! 17: ],
! 18: [
! 19: AC_MSG_RESULT(no)
! 20: ])
! 21: AC_SUBST(OPTFLAG)
! 22:
! 23:
! 24: dnl Checks for programs.
! 25: AC_PROG_CC
! 26: AC_PROG_CXX
! 27: if test x$CC = xgcc; then
! 28: CFLAGS="-Wall $CFLAGS"
! 29: fi
! 30: if test x$CXX = xg++; then
! 31: CXXFLAGS="-Wall $CXXFLAGS"
! 32: fi
! 33:
! 34:
! 35: dnl Checks for libraries.
! 36:
! 37: dnl -lgc, -lgmp, -lntl -lox exist $OpenXM_HOME/lib
! 38: dnl FIXME: Replace `main' with a function in `-lxxx':
! 39: dnl AC_CHECK_LIB([xxx], [main])
! 40:
! 41:
! 42: dnl Checks for header files.
! 43: AC_HEADER_STDC
! 44:
! 45:
! 46: dnl Checks for typedefs, structures, and compiler characteristics.
! 47: AC_C_CONST
! 48:
! 49:
! 50: dnl Checks for library functions.
! 51:
! 52: AC_TYPE_SIGNAL
! 53:
! 54: AC_CHECK_FUNC(socket)
! 55: if test "$ac_cv_func_socket" = no ; then
! 56: AC_CHECK_LIB(socket, socket)
! 57: fi
! 58: AC_CHECK_FUNC(gethostbyname)
! 59: if test "$ac_cv_func_gethostbyname" = no ; then
! 60: AC_CHECK_LIB(nsl, gethostbyname)
! 61: fi
! 62: AC_CHECK_FUNC(dlopen)
! 63: if test "$ac_cv_func_dlopen" = no; then
! 64: AC_CHECK_LIB(dl, dlopen)
! 65: fi
! 66:
! 67: AC_OUTPUT(Makefile)
! 68:
! 69:
! 70:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>