[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_ntl

Annotation of OpenXM/src/ox_ntl/configure.in, Revision 1.2

1.2     ! iwane       1: dnl $OpenXM: OpenXM/src/ox_ntl/configure.in,v 1.1 2003/11/27 14:24:32 iwane Exp $
1.1       iwane       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:
1.2     ! iwane       8: AC_REVISION($OpenXM$)
        !             9:
1.1       iwane      10: AH_TOP()
                     11: AH_BOTTOM()
                     12:
                     13: dnl debug option
                     14: AC_MSG_CHECKING(if --enable-debug option secified)
                     15: AC_ARG_ENABLE(debug, [  --enable-debug  Build a debugging version], [
                     16:        AC_MSG_RESULT(yes)
                     17:        AC_DEFINE(DEBUG, 1, Debug mode)
                     18:        OPTFLAG=${OPTFLAG-"-g"}
                     19: ],
                     20: [
                     21:        AC_MSG_RESULT(no)
                     22: ])
                     23: AC_SUBST(OPTFLAG)
                     24:
                     25:
                     26: dnl Checks for programs.
                     27: AC_PROG_CC
                     28: AC_PROG_CXX
                     29: if test x$CC = xgcc; then
                     30:        CFLAGS="-Wall $CFLAGS"
                     31: fi
                     32: if test x$CXX = xg++; then
                     33:        CXXFLAGS="-Wall $CXXFLAGS"
                     34: fi
                     35:
                     36:
                     37: dnl Checks for libraries.
                     38:
                     39: dnl -lgc, -lgmp, -lntl -lox exist $OpenXM_HOME/lib
                     40: dnl FIXME: Replace `main' with a function in `-lxxx':
                     41: dnl AC_CHECK_LIB([xxx], [main])
                     42:
                     43:
                     44: dnl Checks for header files.
                     45: AC_HEADER_STDC
                     46:
                     47:
                     48: dnl Checks for typedefs, structures, and compiler characteristics.
                     49: AC_C_CONST
1.2     ! iwane      50: AC_C_INLINE
1.1       iwane      51:
                     52:
                     53: dnl Checks for library functions.
                     54:
                     55: AC_TYPE_SIGNAL
                     56:
                     57: AC_CHECK_FUNC(socket)
                     58: if test "$ac_cv_func_socket" = no ; then
                     59:        AC_CHECK_LIB(socket, socket)
                     60: fi
                     61: AC_CHECK_FUNC(gethostbyname)
                     62: if test "$ac_cv_func_gethostbyname" = no ; then
                     63:        AC_CHECK_LIB(nsl, gethostbyname)
                     64: fi
                     65: AC_CHECK_FUNC(dlopen)
                     66: if test "$ac_cv_func_dlopen" = no; then
                     67:        AC_CHECK_LIB(dl, dlopen)
                     68: fi
                     69:
                     70: AC_OUTPUT(Makefile)
                     71:
                     72:
                     73:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>