Regenerate configure for the last commit to configure.in.
[ircu2.10.12-pk.git] / configure
index 014757abebd2cf5da41975938014e8f5bc93b80b..dfdc28786b3518a61bb6b60e978e3060cbf09ed8 100755 (executable)
--- a/configure
+++ b/configure
@@ -861,6 +861,8 @@ Optional Features:
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-optimization=-O2 Explicitly set the compiler optimization flags
+                          (default: -O3)
   --with-leak-detect          Turn on the leak detector(requires patched boehm)
   --without-ipv6          disable IPv6 support (default is autodetect)
   --with-symlink=name     Name to give the symlink; if name is "no," no
@@ -2462,8 +2464,28 @@ case "x$am_cv_prog_cc_stdc" in
   *) CC="$CC $am_cv_prog_cc_stdc" ;;
 esac
 
+
+# Check whether --with-optimization or --without-optimization was given.
+if test "${with_optimization+set}" = set; then
+  withval="$with_optimization"
+  unet_cv_optimization=$withval
+else
+  unet_cv_optimization='-O3'
+fi;
+echo "$as_me:$LINENO: checking optimization level" >&5
+echo $ECHO_N "checking optimization level... $ECHO_C" >&6
+if test "${unet_cv_optimization+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  unet_cv_optimization='-O3'
+fi
+echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
+echo "${ECHO_T}$unet_cv_optimization" >&6
+if test "x$unet_cv_optimization" = "xno" ; then
+    unet_cv_optimization=""
+fi
 if test x"$CFLAGS" != x; then
-    CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
+    CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
 fi
 if test x"$CFLAGS" != x; then
     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
@@ -8786,22 +8808,24 @@ _ACEOF
 fi
 
 fi
-if test -x "$LEX"
-then
+if test "$LEX" = ":" ; then
   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
 echo "$as_me: error: Cannot find flex." >&2;}
    { (exit 1); exit 1; }; }
+elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
+  :
+else
+  { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
+echo "$as_me: error: Cannot use $LEX as flex." >&2;}
+   { (exit 1); exit 1; }; }
 fi
 
-if test -z "$LEXLIB"
-then
-  { { echo "$as_me:$LINENO: error:
-  Cannot find a library with yywrap() in, but flex was found.
+if test -z "$LEXLIB" ; then
+  { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
   It's possible the compiler you're using ($CC) is incompatible with the
   installed library.
 See \`config.log' for more details." >&5
-echo "$as_me: error:
-  Cannot find a library with yywrap() in, but flex was found.
+echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
   It's possible the compiler you're using ($CC) is incompatible with the
   installed library.
 See \`config.log' for more details." >&2;}
@@ -8851,11 +8875,15 @@ fi
 done
 test -n "$YACC" || YACC="yacc"
 
-if test -z "$YACC"
-then
+if test "$YACC" = ":" ; then
   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
 echo "$as_me: error: Cannot find yacc." >&2;}
    { (exit 1); exit 1; }; }
+elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
+  :
+else
+  { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
+echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
 fi
 
 
@@ -9294,7 +9322,7 @@ echo "${ECHO_T}$unet_cv_enable_poll" >&6
 if test x"$unet_cv_enable_poll" = xyes; then
 
 cat >>confdefs.h <<\_ACEOF
-#define USE_POLL
+#define USE_POLL 1
 _ACEOF
 
     ENGINE_C=engine_poll.c
@@ -9323,7 +9351,7 @@ echo "${ECHO_T}$unet_cv_enable_debug" >&6
 if test x"$unet_cv_enable_debug" = xyes; then
 
 cat >>confdefs.h <<\_ACEOF
-#define DEBUGMODE
+#define DEBUGMODE 1
 _ACEOF
 
 fi
@@ -9374,7 +9402,7 @@ echo "${ECHO_T}$ac_cv_use_ipv6" >&6
 if test x"$ac_cv_use_ipv6" != "xno" ; then
 
 cat >>confdefs.h <<\_ACEOF
-#define IPV6
+#define IPV6 1
 _ACEOF
 
 fi
@@ -9399,7 +9427,7 @@ echo "${ECHO_T}$unet_cv_enable_asserts" >&6
 if test x"$unet_cv_enable_asserts" = xno; then
 
 cat >>confdefs.h <<\_ACEOF
-#define NDEBUG
+#define NDEBUG 1
 _ACEOF
 
 fi
@@ -9508,7 +9536,7 @@ echo "${ECHO_T}$unet_cv_enable_inlines" >&6
 if test x"$unet_cv_enable_inlines" = xyes; then
 
 cat >>confdefs.h <<\_ACEOF
-#define FORCEINLINE
+#define FORCEINLINE 1
 _ACEOF
 
 fi
@@ -9538,7 +9566,7 @@ echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
 if test x"$unet_cv_enable_devpoll" != xno; then
 
 cat >>confdefs.h <<\_ACEOF
-#define USE_DEVPOLL
+#define USE_DEVPOLL 1
 _ACEOF
 
     ENGINE_C="engine_devpoll.c $ENGINE_C"
@@ -9569,7 +9597,7 @@ echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
 if test x"$unet_cv_enable_kqueue" != xno; then
 
 cat >>confdefs.h <<\_ACEOF
-#define USE_KQUEUE
+#define USE_KQUEUE 1
 _ACEOF
 
     ENGINE_C="engine_kqueue.c $ENGINE_C"
@@ -9646,7 +9674,7 @@ echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
 
 cat >>confdefs.h <<\_ACEOF
-#define EPOLL_NEED_BODY
+#define EPOLL_NEED_BODY 1
 _ACEOF
 
 fi
@@ -9654,7 +9682,7 @@ rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 
 cat >>confdefs.h <<\_ACEOF
-#define USE_EPOLL
+#define USE_EPOLL 1
 _ACEOF
 
     ENGINE_C="engine_epoll.c $ENGINE_C"
@@ -10188,7 +10216,7 @@ cat >>confdefs.h <<_ACEOF
 _ACEOF
 
 
-                              ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
+                                        ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
           ac_config_commands="$ac_config_commands default"
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -10720,6 +10748,7 @@ do
   # Handling of arguments.
   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
+  "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;