From: Peep P. <so...@us...> - 2004-03-28 18:12:34
|
Update of /cvsroot/agd/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32199 Modified Files: configure Log Message: Regenerated. Index: configure =================================================================== RCS file: /cvsroot/agd/server/configure,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- configure 21 Mar 2004 08:56:42 -0000 1.5 +++ configure 28 Mar 2004 18:01:14 -0000 1.6 @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac revision 0.06. +# From configure.ac revision 0.08. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for AGD 0.0.2-3. # @@ -855,6 +855,10 @@ (and sometimes confusing) to the casual installer --disable-dependency-tracking Speeds up one-time builds --enable-dependency-tracking Do not reject slow dependency extractors + --enable-profiling enable profiling support + --disable-debug disable debugging symbols + --enable-bison-debug enable Bison debugging + --enable-optimization set optimization level Some influential environment variables: CC C compiler command @@ -1750,7 +1754,7 @@ # Checks for programs. -#AC_PROG_INSTALL +##AC_PROG_INSTALL ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -2986,8 +2990,6 @@ done test -n "$YACC" || YACC="yacc" -CFLAGS='-g' - for ac_prog in flex lex do @@ -3304,6 +3306,86 @@ done +CFLAGS="" +# Checks for configure options. +echo "$as_me:$LINENO: checking whether to enable profiling" >&5 +echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6 +# Check whether --enable-profiling or --disable-profiling was given. +if test "${enable_profiling+set}" = set; then + enableval="$enable_profiling" + +else + enable_prof="no" +fi; +if test "x${enable_prof}" != "xno"; then + CFLAGS="$CFLAGS -pg" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +echo "$as_me:$LINENO: checking whether to compile with debugging symbols" >&5 +echo $ECHO_N "checking whether to compile with debugging symbols... $ECHO_C" >&6 +# Check whether --enable-debug or --disable-debug was given. +if test "${enable_debug+set}" = set; then + enableval="$enable_debug" + +else + enable_debug="yes" +fi; +if test "x${enable_debug}" != "xno"; then + CFLAGS="$CFLAGS -g" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +echo "$as_me:$LINENO: checking whether to enable Bison debuggigngigng" >&5 +echo $ECHO_N "checking whether to enable Bison debuggigngigng... $ECHO_C" >&6 +# Check whether --enable-bison-debug or --disable-bison-debug was given. +if test "${enable_bison_debug+set}" = set; then + enableval="$enable_bison_debug" + +else + enable_bison_debug="no" +fi; +if test "x${enable_bison_debug}" != "xno"; then + YFLAGS="$YFLAGS -t" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +echo "$as_me:$LINENO: checking for optimization level" >&5 +echo $ECHO_N "checking for optimization level... $ECHO_C" >&6 +# Check whether --enable-optimization or --disable-optimization was given. +if test "${enable_optimization+set}" = set; then + enableval="$enable_optimization" + +else + enable_optimization="no" +fi; +if test "x${enable_optimization}" != "xno"; then + if test "x${enable_optimization}" == "xyes"; then + CFLAGS="$CFLAGS -O" + echo "$as_me:$LINENO: result: default" >&5 +echo "${ECHO_T}default" >&6 + else + CFLAGS="$CFLAGS -O$enableval" + echo "$as_me:$LINENO: result: ${enableval}" >&5 +echo "${ECHO_T}${enableval}" >&6 + fi; +else + echo "$as_me:$LINENO: result: off" >&5 +echo "${ECHO_T}off" >&6 +fi + # Checks for libraries. echo "$as_me:$LINENO: checking for floor in -lm" >&5 @@ -3378,8 +3460,80 @@ fi -#AC_CHECK_LIB(resolv, accept) -#AC_CHECK_LIB(nsl, gethostbyaddr) +##AC_CHECK_LIB(resolv, accept) + +echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5 +echo $ECHO_N "checking for gethostbyaddr in -lnsl... $ECHO_C" >&6 +if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyaddr (); +int +main () +{ +gethostbyaddr (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_nsl_gethostbyaddr=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_nsl_gethostbyaddr=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr" >&6 +if test $ac_cv_lib_nsl_gethostbyaddr = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBNSL 1 +_ACEOF + + LIBS="-lnsl $LIBS" + +fi + echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |