Regenerate configure script
[ircu2.10.12-pk.git] / configure
index 2906afcef9e810e81a0f029bd99150eedbac692f..29df6dacf51342f733925e4cda7d392254621eaa 100755 (executable)
--- a/configure
+++ b/configure
@@ -849,8 +849,7 @@ Optional Features:
                           it is a system call
   --enable-debug          Turn on debugging mode
   --disable-asserts       Disable assertion checking
-  --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
-  --enable-profile        Enable profiling support (add -pg to CFLAGS)
+  --enable-profile        Enable profiling support (add -pg to CFLAGS and LDFLAGS)
   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
   --disable-inlines       Disable inlining for a few critical functions
@@ -861,8 +860,6 @@ 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
@@ -3080,61 +3077,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
 
-# 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/$unet_cv_optimization/`
-fi
-if test x"$CFLAGS" != x; then
-    unet_old_cflags=$CFLAGS
-    CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
-    # If -g was already there, force symbols to be enabled
-    unet_cv_enable_symbols=yes
-fi
-if test x"$CFLAGS" != x; then
-    unet_old_cflags=$CFLAGS
-    CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
-    # If -pg was already there, force profiling to be enabled
-    unet_cv_enable_profile=yes
-fi
-if test x"$CFLAGS" != x; then
-    unet_old_cflags=$CFLAGS
-    CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
-    # If -Wall was already there, force warnings to be enabled
-    unet_cv_enable_warnings=yes
-fi
-if test x"$CFLAGS" != x; then
-    unet_old_cflags=$CFLAGS
-    CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
-    # If -pedantic was already there, force pedatic to be enabled
-    unet_cv_enable_pedantic=yes
-fi
-
 
 
 echo "$as_me:$LINENO: checking for library containing crypt" >&5
@@ -4392,7 +4334,8 @@ done
 
 
 
-for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
+
+for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -9983,27 +9926,6 @@ _ACEOF
 
 fi
 
-echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
-echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
-# Check whether --enable-symbols or --disable-symbols was given.
-if test "${enable_symbols+set}" = set; then
-  enableval="$enable_symbols"
-  unet_cv_enable_symbols=$enable_symbols
-else
-  if test "${unet_cv_enable_symbols+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  unet_cv_enable_symbols=yes
-fi
-
-fi;
-echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
-echo "${ECHO_T}$unet_cv_enable_symbols" >&6
-
-if test x"$unet_cv_enable_symbols" = xyes; then
-    CFLAGS="-g $CFLAGS"
-fi
-
 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
 # Check whether --enable-profile or --disable-profile was given.
@@ -10023,6 +9945,7 @@ echo "${ECHO_T}$unet_cv_enable_profile" >&6
 
 if test x"$unet_cv_enable_profile" = xyes; then
     CFLAGS="-pg $CFLAGS"
+    LDFLAGS="-pg $LDFLAGS"
 fi
 
 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5