ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
(Generate patch)

Comparing ircd-hybrid-7.2/configure (file contents):
Revision 1005 by michael, Mon Aug 31 23:07:43 2009 UTC vs.
Revision 1011 by michael, Fri Sep 18 10:14:09 2009 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 998 2009-08-23 12:43:17Z michael .
2 > # From configure.ac Id: configure.ac 1010 2009-09-17 17:06:11Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4.
5   #
# Line 760 | Line 760 | EFNET_FALSE
760   EFNET_TRUE
761   ENABLE_SSL_FALSE
762   ENABLE_SSL_TRUE
763 + ENABLE_PCRE_FALSE
764 + ENABLE_PCRE_TRUE
765   LTDLOPEN
766   LT_CONFIG_H
767   subdirs
# Line 909 | Line 911 | with_ltdl_lib
911   enable_ltdl_install
912   with_zlib_path
913   enable_zlib
914 + with_libpcre_path
915 + enable_libpcre
916   enable_openssl
917   enable_assert
918   enable_small_net
# Line 1568 | Line 1572 | Optional Features:
1572    --disable-libtool-lock  avoid locking (might break parallel builds)
1573    --enable-ltdl-install   install libltdl
1574    --disable-zlib          Disable ziplinks support
1575 +  --disable-libpcre       Disable PCRE support
1576    --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1577    --disable-openssl            Disable OpenSSL support.
1578    --enable-assert         Enable assert() statements
# Line 1596 | Line 1601 | Optional Packages:
1601    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1602    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1603    --with-zlib-path=DIR    Path to libz.so for ziplinks support.
1604 +  --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1605    --with-nicklen=<value>  Set nickname length (default 9).
1606    --with-topiclen=<value> Set topic length (default 160).
1607    --with-syslog-facility=LOG
# Line 2108 | Line 2114 | $as_echo "$ac_res" >&6; }
2114  
2115   } # ac_fn_c_check_member
2116  
2111 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2112 # --------------------------------------------
2113 # Tries to find the compile-time value of EXPR in a program that includes
2114 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2115 # computed
2116 ac_fn_c_compute_int ()
2117 {
2118  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119  if test "$cross_compiling" = yes; then
2120    # Depending upon the size, compute the lo and hi bounds.
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) >= 0)];
2128 test_array [0] = 0
2129
2130  ;
2131  return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135  ac_lo=0 ac_mid=0
2136  while :; do
2137    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0
2145
2146  ;
2147  return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151  ac_hi=$ac_mid; break
2152 else
2153  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154                        if test $ac_lo -le $ac_mid; then
2155                          ac_lo= ac_hi=
2156                          break
2157                        fi
2158                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161  done
2162 else
2163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $4
2166 int
2167 main ()
2168 {
2169 static int test_array [1 - 2 * !(($2) < 0)];
2170 test_array [0] = 0
2171
2172  ;
2173  return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177  ac_hi=-1 ac_mid=-1
2178  while :; do
2179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186 test_array [0] = 0
2187
2188  ;
2189  return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193  ac_lo=$ac_mid; break
2194 else
2195  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2196                        if test $ac_mid -le $ac_hi; then
2197                          ac_lo= ac_hi=
2198                          break
2199                        fi
2200                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203  done
2204 else
2205  ac_lo= ac_hi=
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 # Binary search between lo and hi bounds.
2211 while test "x$ac_lo" != "x$ac_hi"; do
2212  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h.  */
2215 $4
2216 int
2217 main ()
2218 {
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 test_array [0] = 0
2221
2222  ;
2223  return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227  ac_hi=$ac_mid
2228 else
2229  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 done
2233 case $ac_lo in #((
2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235 '') ac_retval=1 ;;
2236 esac
2237  else
2238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 static long int longval () { return $2; }
2242 static unsigned long int ulongval () { return $2; }
2243 #include <stdio.h>
2244 #include <stdlib.h>
2245 int
2246 main ()
2247 {
2248
2249  FILE *f = fopen ("conftest.val", "w");
2250  if (! f)
2251    return 1;
2252  if (($2) < 0)
2253    {
2254      long int i = longval ();
2255      if (i != ($2))
2256        return 1;
2257      fprintf (f, "%ld", i);
2258    }
2259  else
2260    {
2261      unsigned long int i = ulongval ();
2262      if (i != ($2))
2263        return 1;
2264      fprintf (f, "%lu", i);
2265    }
2266  /* Do not output a trailing newline, as this causes \r\n confusion
2267     on some platforms.  */
2268  return ferror (f) || fclose (f) != 0;
2269
2270  ;
2271  return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_run "$LINENO"; then :
2275  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276 else
2277  ac_retval=1
2278 fi
2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280  conftest.$ac_objext conftest.beam conftest.$ac_ext
2281 rm -f conftest.val
2282
2283  fi
2284  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285  return $ac_retval
2286
2287 } # ac_fn_c_compute_int
2288
2117   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2118   # -------------------------------------------------------
2119   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2655 | Line 2483 | $as_echo "$as_me: creating cache $cache_
2483    >$cache_file
2484   fi
2485  
2658 as_fn_append ac_func_list " snprintf"
2659 as_fn_append ac_func_list " vsnprintf"
2486   as_fn_append ac_func_list " mmap"
2487   as_fn_append ac_func_list " strtok_r"
2488   as_fn_append ac_func_list " usleep"
# Line 3272 | Line 3098 | ac_config_headers="$ac_config_headers co
3098  
3099  
3100  
3275
3101   # Checks for programs.
3102 + DEPDIR="${am__leading_dot}deps"
3103 +
3104 + ac_config_commands="$ac_config_commands depfiles"
3105 +
3106 +
3107 + am_make=${MAKE-make}
3108 + cat > confinc << 'END'
3109 + am__doit:
3110 +        @echo this is the am__doit target
3111 + .PHONY: am__doit
3112 + END
3113 + # If we don't find an include directive, just comment out the code.
3114 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3115 + $as_echo_n "checking for style of include used by $am_make... " >&6; }
3116 + am__include="#"
3117 + am__quote=
3118 + _am_result=none
3119 + # First try GNU make style include.
3120 + echo "include confinc" > confmf
3121 + # Ignore all kinds of additional output from `make'.
3122 + case `$am_make -s -f confmf 2> /dev/null` in #(
3123 + *the\ am__doit\ target*)
3124 +  am__include=include
3125 +  am__quote=
3126 +  _am_result=GNU
3127 +  ;;
3128 + esac
3129 + # Now try BSD make style include.
3130 + if test "$am__include" = "#"; then
3131 +   echo '.include "confinc"' > confmf
3132 +   case `$am_make -s -f confmf 2> /dev/null` in #(
3133 +   *the\ am__doit\ target*)
3134 +     am__include=.include
3135 +     am__quote="\""
3136 +     _am_result=BSD
3137 +     ;;
3138 +   esac
3139 + fi
3140 +
3141 +
3142 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3143 + $as_echo "$_am_result" >&6; }
3144 + rm -f confinc confmf
3145 +
3146 + # Check whether --enable-dependency-tracking was given.
3147 + if test "${enable_dependency_tracking+set}" = set; then :
3148 +  enableval=$enable_dependency_tracking;
3149 + fi
3150 +
3151 + if test "x$enable_dependency_tracking" != xno; then
3152 +  am_depcomp="$ac_aux_dir/depcomp"
3153 +  AMDEPBACKSLASH='\'
3154 + fi
3155 + if test "x$enable_dependency_tracking" != xno; then
3156 +  AMDEP_TRUE=
3157 +  AMDEP_FALSE='#'
3158 + else
3159 +  AMDEP_TRUE='#'
3160 +  AMDEP_FALSE=
3161 + fi
3162 +
3163 +
3164   ac_ext=c
3165   ac_cpp='$CPP $CPPFLAGS'
3166   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 4040 | Line 3927 | ac_cpp='$CPP $CPPFLAGS'
3927   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 DEPDIR="${am__leading_dot}deps"
4044
4045 ac_config_commands="$ac_config_commands depfiles"
4046
4047
4048 am_make=${MAKE-make}
4049 cat > confinc << 'END'
4050 am__doit:
4051        @echo this is the am__doit target
4052 .PHONY: am__doit
4053 END
4054 # If we don't find an include directive, just comment out the code.
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4057 am__include="#"
4058 am__quote=
4059 _am_result=none
4060 # First try GNU make style include.
4061 echo "include confinc" > confmf
4062 # Ignore all kinds of additional output from `make'.
4063 case `$am_make -s -f confmf 2> /dev/null` in #(
4064 *the\ am__doit\ target*)
4065  am__include=include
4066  am__quote=
4067  _am_result=GNU
4068  ;;
4069 esac
4070 # Now try BSD make style include.
4071 if test "$am__include" = "#"; then
4072   echo '.include "confinc"' > confmf
4073   case `$am_make -s -f confmf 2> /dev/null` in #(
4074   *the\ am__doit\ target*)
4075     am__include=.include
4076     am__quote="\""
4077     _am_result=BSD
4078     ;;
4079   esac
4080 fi
4081
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4084 $as_echo "$_am_result" >&6; }
4085 rm -f confinc confmf
4086
4087 # Check whether --enable-dependency-tracking was given.
4088 if test "${enable_dependency_tracking+set}" = set; then :
4089  enableval=$enable_dependency_tracking;
4090 fi
4091
4092 if test "x$enable_dependency_tracking" != xno; then
4093  am_depcomp="$ac_aux_dir/depcomp"
4094  AMDEPBACKSLASH='\'
4095 fi
4096 if test "x$enable_dependency_tracking" != xno; then
4097  AMDEP_TRUE=
4098  AMDEP_FALSE='#'
4099 else
4100  AMDEP_TRUE='#'
4101  AMDEP_FALSE=
4102 fi
4103
4104
3930  
3931   depcc="$CC"   am_compiler_list=
3932  
# Line 4230 | Line 4055 | else
4055   fi
4056  
4057  
4058 +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4059 + $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4060 + if test "${ac_cv_prog_cc_c99+set}" = set; then :
4061 +  $as_echo_n "(cached) " >&6
4062 + else
4063 +  ac_cv_prog_cc_c99=no
4064 + ac_save_CC=$CC
4065 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 + /* end confdefs.h.  */
4067 + #include <stdarg.h>
4068 + #include <stdbool.h>
4069 + #include <stdlib.h>
4070 + #include <wchar.h>
4071 + #include <stdio.h>
4072 +
4073 + // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4074 + #define debug(...) fprintf (stderr, __VA_ARGS__)
4075 + #define showlist(...) puts (#__VA_ARGS__)
4076 + #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4077 + static void
4078 + test_varargs_macros (void)
4079 + {
4080 +  int x = 1234;
4081 +  int y = 5678;
4082 +  debug ("Flag");
4083 +  debug ("X = %d\n", x);
4084 +  showlist (The first, second, and third items.);
4085 +  report (x>y, "x is %d but y is %d", x, y);
4086 + }
4087 +
4088 + // Check long long types.
4089 + #define BIG64 18446744073709551615ull
4090 + #define BIG32 4294967295ul
4091 + #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4092 + #if !BIG_OK
4093 +  your preprocessor is broken;
4094 + #endif
4095 + #if BIG_OK
4096 + #else
4097 +  your preprocessor is broken;
4098 + #endif
4099 + static long long int bignum = -9223372036854775807LL;
4100 + static unsigned long long int ubignum = BIG64;
4101 +
4102 + struct incomplete_array
4103 + {
4104 +  int datasize;
4105 +  double data[];
4106 + };
4107 +
4108 + struct named_init {
4109 +  int number;
4110 +  const wchar_t *name;
4111 +  double average;
4112 + };
4113 +
4114 + typedef const char *ccp;
4115 +
4116 + static inline int
4117 + test_restrict (ccp restrict text)
4118 + {
4119 +  // See if C++-style comments work.
4120 +  // Iterate through items via the restricted pointer.
4121 +  // Also check for declarations in for loops.
4122 +  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4123 +    continue;
4124 +  return 0;
4125 + }
4126 +
4127 + // Check varargs and va_copy.
4128 + static void
4129 + test_varargs (const char *format, ...)
4130 + {
4131 +  va_list args;
4132 +  va_start (args, format);
4133 +  va_list args_copy;
4134 +  va_copy (args_copy, args);
4135 +
4136 +  const char *str;
4137 +  int number;
4138 +  float fnumber;
4139 +
4140 +  while (*format)
4141 +    {
4142 +      switch (*format++)
4143 +        {
4144 +        case 's': // string
4145 +          str = va_arg (args_copy, const char *);
4146 +          break;
4147 +        case 'd': // int
4148 +          number = va_arg (args_copy, int);
4149 +          break;
4150 +        case 'f': // float
4151 +          fnumber = va_arg (args_copy, double);
4152 +          break;
4153 +        default:
4154 +          break;
4155 +        }
4156 +    }
4157 +  va_end (args_copy);
4158 +  va_end (args);
4159 + }
4160 +
4161 + int
4162 + main ()
4163 + {
4164 +
4165 +  // Check bool.
4166 +  _Bool success = false;
4167 +
4168 +  // Check restrict.
4169 +  if (test_restrict ("String literal") == 0)
4170 +    success = true;
4171 +  char *restrict newvar = "Another string";
4172 +
4173 +  // Check varargs.
4174 +  test_varargs ("s, d' f .", "string", 65, 34.234);
4175 +  test_varargs_macros ();
4176 +
4177 +  // Check flexible array members.
4178 +  struct incomplete_array *ia =
4179 +    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4180 +  ia->datasize = 10;
4181 +  for (int i = 0; i < ia->datasize; ++i)
4182 +    ia->data[i] = i * 1.234;
4183 +
4184 +  // Check named initializers.
4185 +  struct named_init ni = {
4186 +    .number = 34,
4187 +    .name = L"Test wide string",
4188 +    .average = 543.34343,
4189 +  };
4190 +
4191 +  ni.number = 58;
4192 +
4193 +  int dynamic_array[ni.number];
4194 +  dynamic_array[ni.number - 1] = 543;
4195 +
4196 +  // work around unused variable warnings
4197 +  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4198 +          || dynamic_array[ni.number - 1] != 543);
4199 +
4200 +  ;
4201 +  return 0;
4202 + }
4203 + _ACEOF
4204 + for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4205 + do
4206 +  CC="$ac_save_CC $ac_arg"
4207 +  if ac_fn_c_try_compile "$LINENO"; then :
4208 +  ac_cv_prog_cc_c99=$ac_arg
4209 + fi
4210 + rm -f core conftest.err conftest.$ac_objext
4211 +  test "x$ac_cv_prog_cc_c99" != "xno" && break
4212 + done
4213 + rm -f conftest.$ac_ext
4214 + CC=$ac_save_CC
4215 +
4216 + fi
4217 + # AC_CACHE_VAL
4218 + case "x$ac_cv_prog_cc_c99" in
4219 +  x)
4220 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221 + $as_echo "none needed" >&6; } ;;
4222 +  xno)
4223 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 + $as_echo "unsupported" >&6; } ;;
4225 +  *)
4226 +    CC="$CC $ac_cv_prog_cc_c99"
4227 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4228 + $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4229 + esac
4230 + if test "x$ac_cv_prog_cc_c99" != xno; then :
4231 +
4232 + fi
4233 +
4234 +
4235 + if test "$ac_cv_prog_cc_c99" = "no"; then :
4236 +  as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4237 + fi
4238   for ac_prog in 'bison -y' byacc
4239   do
4240    # Extract the first word of "$ac_prog", so it can be a program name with args.
# Line 4436 | Line 4441 | if test "$LEX" = :; then
4441   fi
4442  
4443  
4439
4444   #ltdl stuff
4445   case `pwd` in
4446    *\ * | *\     *)
# Line 5118 | Line 5122 | if test "${lt_cv_nm_interface+set}" = se
5122   else
5123    lt_cv_nm_interface="BSD nm"
5124    echo "int some_variable = 0;" > conftest.$ac_ext
5125 <  (eval echo "\"\$as_me:5121: $ac_compile\"" >&5)
5125 >  (eval echo "\"\$as_me:5125: $ac_compile\"" >&5)
5126    (eval "$ac_compile" 2>conftest.err)
5127    cat conftest.err >&5
5128 <  (eval echo "\"\$as_me:5124: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5128 >  (eval echo "\"\$as_me:5128: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5129    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5130    cat conftest.err >&5
5131 <  (eval echo "\"\$as_me:5127: output\"" >&5)
5131 >  (eval echo "\"\$as_me:5131: output\"" >&5)
5132    cat conftest.out >&5
5133    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5134      lt_cv_nm_interface="MS dumpbin"
# Line 6329 | Line 6333 | ia64-*-hpux*)
6333    ;;
6334   *-*-irix6*)
6335    # Find out which ABI we are using.
6336 <  echo '#line 6332 "configure"' > conftest.$ac_ext
6336 >  echo '#line 6336 "configure"' > conftest.$ac_ext
6337    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338    (eval $ac_compile) 2>&5
6339    ac_status=$?
# Line 7853 | Line 7857 | else
7857     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7858     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7859     -e 's:$: $lt_compiler_flag:'`
7860 <   (eval echo "\"\$as_me:7856: $lt_compile\"" >&5)
7860 >   (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
7861     (eval "$lt_compile" 2>conftest.err)
7862     ac_status=$?
7863     cat conftest.err >&5
7864 <   echo "$as_me:7860: \$? = $ac_status" >&5
7864 >   echo "$as_me:7864: \$? = $ac_status" >&5
7865     if (exit $ac_status) && test -s "$ac_outfile"; then
7866       # The compiler can only warn and ignore the option if not recognized
7867       # So say no if there are warnings other than the usual output.
# Line 8192 | Line 8196 | else
8196     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8197     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8198     -e 's:$: $lt_compiler_flag:'`
8199 <   (eval echo "\"\$as_me:8195: $lt_compile\"" >&5)
8199 >   (eval echo "\"\$as_me:8199: $lt_compile\"" >&5)
8200     (eval "$lt_compile" 2>conftest.err)
8201     ac_status=$?
8202     cat conftest.err >&5
8203 <   echo "$as_me:8199: \$? = $ac_status" >&5
8203 >   echo "$as_me:8203: \$? = $ac_status" >&5
8204     if (exit $ac_status) && test -s "$ac_outfile"; then
8205       # The compiler can only warn and ignore the option if not recognized
8206       # So say no if there are warnings other than the usual output.
# Line 8297 | Line 8301 | else
8301     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8302     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8303     -e 's:$: $lt_compiler_flag:'`
8304 <   (eval echo "\"\$as_me:8300: $lt_compile\"" >&5)
8304 >   (eval echo "\"\$as_me:8304: $lt_compile\"" >&5)
8305     (eval "$lt_compile" 2>out/conftest.err)
8306     ac_status=$?
8307     cat out/conftest.err >&5
8308 <   echo "$as_me:8304: \$? = $ac_status" >&5
8308 >   echo "$as_me:8308: \$? = $ac_status" >&5
8309     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8310     then
8311       # The compiler can only warn and ignore the option if not recognized
# Line 8352 | Line 8356 | else
8356     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358     -e 's:$: $lt_compiler_flag:'`
8359 <   (eval echo "\"\$as_me:8355: $lt_compile\"" >&5)
8359 >   (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360     (eval "$lt_compile" 2>out/conftest.err)
8361     ac_status=$?
8362     cat out/conftest.err >&5
8363 <   echo "$as_me:8359: \$? = $ac_status" >&5
8363 >   echo "$as_me:8363: \$? = $ac_status" >&5
8364     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8365     then
8366       # The compiler can only warn and ignore the option if not recognized
# Line 10089 | Line 10093 | rm -f core conftest.err conftest.$ac_obj
10093    libsuff=
10094    case "$host_cpu" in
10095    x86_64*|s390x*|powerpc64*)
10096 <    echo '#line 10092 "configure"' > conftest.$ac_ext
10096 >    echo '#line 10096 "configure"' > conftest.$ac_ext
10097      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10098    (eval $ac_compile) 2>&5
10099    ac_status=$?
# Line 10742 | Line 10746 | else
10746    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10747    lt_status=$lt_dlunknown
10748    cat > conftest.$ac_ext <<_LT_EOF
10749 < #line 10745 "configure"
10749 > #line 10749 "configure"
10750   #include "confdefs.h"
10751  
10752   #if HAVE_DLFCN_H
# Line 10838 | Line 10842 | else
10842    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843    lt_status=$lt_dlunknown
10844    cat > conftest.$ac_ext <<_LT_EOF
10845 < #line 10841 "configure"
10845 > #line 10845 "configure"
10846   #include "confdefs.h"
10847  
10848   #if HAVE_DLFCN_H
# Line 11510 | Line 11514 | else
11514    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11515    lt_status=$lt_dlunknown
11516    cat > conftest.$ac_ext <<_LT_EOF
11517 < #line 11513 "configure"
11517 > #line 11517 "configure"
11518   #include "confdefs.h"
11519  
11520   #if HAVE_DLFCN_H
# Line 12125 | Line 12129 | LTDLOPEN=`eval "\\$ECHO \"$libname_spec\
12129  
12130   LIBTOOL="$LIBTOOL --silent"
12131  
12128
12132   # Checks for libraries.
12133  
12134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
# Line 12269 | Line 12272 | fi
12272  
12273  
12274  
12272
12275   # Checks for typedefs, structures, and compiler characteristics.
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12275 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12276 if test "${ac_cv_c_const+set}" = set; then :
12277  $as_echo_n "(cached) " >&6
12278 else
12279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h.  */
12281
12282 int
12283 main ()
12284 {
12285 /* FIXME: Include the comments suggested by Paul. */
12286 #ifndef __cplusplus
12287  /* Ultrix mips cc rejects this.  */
12288  typedef int charset[2];
12289  const charset cs;
12290  /* SunOS 4.1.1 cc rejects this.  */
12291  char const *const *pcpcc;
12292  char **ppc;
12293  /* NEC SVR4.0.2 mips cc rejects this.  */
12294  struct point {int x, y;};
12295  static struct point const zero = {0,0};
12296  /* AIX XL C 1.02.0.0 rejects this.
12297     It does not let you subtract one const X* pointer from another in
12298     an arm of an if-expression whose if-part is not a constant
12299     expression */
12300  const char *g = "string";
12301  pcpcc = &g + (g ? g-g : 0);
12302  /* HPUX 7.0 cc rejects these. */
12303  ++pcpcc;
12304  ppc = (char**) pcpcc;
12305  pcpcc = (char const *const *) ppc;
12306  { /* SCO 3.2v4 cc rejects this.  */
12307    char *t;
12308    char const *s = 0 ? (char *) 0 : (char const *) 0;
12309
12310    *t++ = 0;
12311    if (s) return 0;
12312  }
12313  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12314    int x[] = {25, 17};
12315    const int *foo = &x[0];
12316    ++foo;
12317  }
12318  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12319    typedef const int *iptr;
12320    iptr p = 0;
12321    ++p;
12322  }
12323  { /* AIX XL C 1.02.0.0 rejects this saying
12324       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12325    struct s { int j; const int *ap[3]; };
12326    struct s *b; b->j = 5;
12327  }
12328  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12329    const int foo = 10;
12330    if (!foo) return 0;
12331  }
12332  return !cs[0] && !zero.x;
12333 #endif
12334
12335  ;
12336  return 0;
12337 }
12338 _ACEOF
12339 if ac_fn_c_try_compile "$LINENO"; then :
12340  ac_cv_c_const=yes
12341 else
12342  ac_cv_c_const=no
12343 fi
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 fi
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12347 $as_echo "$ac_cv_c_const" >&6; }
12348 if test $ac_cv_c_const = no; then
12349
12350 $as_echo "#define const /**/" >>confdefs.h
12351
12352 fi
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12355 $as_echo_n "checking for inline... " >&6; }
12356 if test "${ac_cv_c_inline+set}" = set; then :
12357  $as_echo_n "(cached) " >&6
12358 else
12359  ac_cv_c_inline=no
12360 for ac_kw in inline __inline__ __inline; do
12361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363 #ifndef __cplusplus
12364 typedef int foo_t;
12365 static $ac_kw foo_t static_foo () {return 0; }
12366 $ac_kw foo_t foo () {return 0; }
12367 #endif
12368
12369 _ACEOF
12370 if ac_fn_c_try_compile "$LINENO"; then :
12371  ac_cv_c_inline=$ac_kw
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374  test "$ac_cv_c_inline" != no && break
12375 done
12376
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12379 $as_echo "$ac_cv_c_inline" >&6; }
12380
12381 case $ac_cv_c_inline in
12382  inline | yes) ;;
12383  *)
12384    case $ac_cv_c_inline in
12385      no) ac_val=;;
12386      *) ac_val=$ac_cv_c_inline;;
12387    esac
12388    cat >>confdefs.h <<_ACEOF
12389 #ifndef __cplusplus
12390 #define inline $ac_val
12391 #endif
12392 _ACEOF
12393    ;;
12394 esac
12395
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12277   $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12278   if test "${ac_cv_c_bigendian+set}" = set; then :
# Line 12618 | Line 12498 | $as_echo "#define AC_APPLE_UNIVERSAL_BUI
12498   esac
12499  
12500  
12621 # The cast to long int works around a bug in the HP C Compiler
12622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12624 # This bug is HP SR number 8606223364.
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12626 $as_echo_n "checking size of int64_t... " >&6; }
12627 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
12628  $as_echo_n "(cached) " >&6
12629 else
12630  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
12631
12632 else
12633  if test "$ac_cv_type_int64_t" = yes; then
12634     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12636 { as_fn_set_status 77
12637 as_fn_error "cannot compute sizeof (int64_t)
12638 See \`config.log' for more details." "$LINENO" 5; }; }
12639   else
12640     ac_cv_sizeof_int64_t=0
12641   fi
12642 fi
12643
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12646 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12647
12648
12649
12650 cat >>confdefs.h <<_ACEOF
12651 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12652 _ACEOF
12653
12654
12655 # The cast to long int works around a bug in the HP C Compiler
12656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12658 # This bug is HP SR number 8606223364.
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12660 $as_echo_n "checking size of long long... " >&6; }
12661 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12662  $as_echo_n "(cached) " >&6
12663 else
12664  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12665
12666 else
12667  if test "$ac_cv_type_long_long" = yes; then
12668     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12670 { as_fn_set_status 77
12671 as_fn_error "cannot compute sizeof (long long)
12672 See \`config.log' for more details." "$LINENO" 5; }; }
12673   else
12674     ac_cv_sizeof_long_long=0
12675   fi
12676 fi
12677
12678 fi
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12680 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12681
12682
12683
12684 cat >>confdefs.h <<_ACEOF
12685 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12686 _ACEOF
12687
12688
12689
12690 if test "$ac_cv_sizeof_int64_t" = 8; then
12691  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12692 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12693
12694 fi
12695
12696  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12697 if test "x$ac_cv_type_int64_t" = x""yes; then :
12698
12699 fi
12700
12701 elif test "$ac_cv_sizeof_long_long" = 8; then
12702  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12703 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12704
12705 else
12706
12707 cat >>confdefs.h <<_ACEOF
12708 #define uint64_t unsigned long long
12709 _ACEOF
12710
12711 fi
12712
12713  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12714 if test "x$ac_cv_type_int64_t" = x""yes; then :
12715
12716 else
12717
12718 cat >>confdefs.h <<_ACEOF
12719 #define int64_t long long
12720 _ACEOF
12721
12722 fi
12723
12724 else
12725  as_fn_error "Your system doesn't appear to have 64 bit integers.  Aborting." "$LINENO" 5
12726 fi
12727
12728
12501   # Checks for library functions.
12502  
12503  
# Line 12755 | Line 12527 | done
12527  
12528  
12529  
12758
12759
12760
12761
12530   # Checks for header files.
12531  
12532  
# Line 12810 | Line 12578 | done
12578  
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12580   $as_echo_n "checking for /dev/null... " >&6; }
12581 < if test -c /dev/null ; then
12581 > if test -c /dev/null; then :
12582 >
12583  
12584   $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12585  
# Line 12818 | Line 12587 | $as_echo "#define PATH_DEVNULL \"/dev/nu
12587   $as_echo "yes" >&6; }
12588   else
12589  
12590 +
12591   $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12592  
12593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
# Line 12898 | Line 12668 | else
12668   fi
12669  
12670  
12671 < if test "$zlib" = yes; then
12671 > if test "$zlib" = "yes"; then :
12672 >
12673    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12674   if test "x$ac_cv_header_zlib_h" = x""yes; then :
12675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
# Line 12954 | Line 12725 | else
12725   fi
12726  
12727  
12728 +
12729 + fi
12730 +
12731 +
12732 + # Check whether --with-libpcre-path was given.
12733 + if test "${with_libpcre_path+set}" = set; then :
12734 +  withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12735   fi
12736  
12737  
12738 + # Check whether --enable-libpcre was given.
12739 + if test "${enable_libpcre+set}" = set; then :
12740 +  enableval=$enable_libpcre; libpcre=$enableval
12741 + else
12742 +  libpcre=yes
12743 + fi
12744 +
12745 +
12746 + if test "$libpcre" = "yes"; then :
12747 +
12748 +  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12749 + if test "x$ac_cv_header_pcre_h" = x""yes; then :
12750 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12751 + $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12752 + if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12753 +  $as_echo_n "(cached) " >&6
12754 + else
12755 +  ac_check_lib_save_LIBS=$LIBS
12756 + LIBS="-lpcre  $LIBS"
12757 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 + /* end confdefs.h.  */
12759 +
12760 + /* Override any GCC internal prototype to avoid an error.
12761 +   Use char because int might match the return type of a GCC
12762 +   builtin and then its argument prototype would still apply.  */
12763 + #ifdef __cplusplus
12764 + extern "C"
12765 + #endif
12766 + char pcre_study ();
12767 + int
12768 + main ()
12769 + {
12770 + return pcre_study ();
12771 +  ;
12772 +  return 0;
12773 + }
12774 + _ACEOF
12775 + if ac_fn_c_try_link "$LINENO"; then :
12776 +  ac_cv_lib_pcre_pcre_study=yes
12777 + else
12778 +  ac_cv_lib_pcre_pcre_study=no
12779 + fi
12780 + rm -f core conftest.err conftest.$ac_objext \
12781 +    conftest$ac_exeext conftest.$ac_ext
12782 + LIBS=$ac_check_lib_save_LIBS
12783 + fi
12784 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12785 + $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12786 + if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12787 +
12788 +      LIBS="-lpcre $LIBS"
12789 +
12790 + $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12791 +
12792 +
12793 + else
12794 +  libpcre=no
12795 + fi
12796 +
12797 +
12798 + else
12799 +  libpcre=no
12800 + fi
12801 +
12802 +
12803 +
12804 + fi
12805 + if test "$libpcre" = yes; then
12806 +  ENABLE_PCRE_TRUE=
12807 +  ENABLE_PCRE_FALSE='#'
12808 + else
12809 +  ENABLE_PCRE_TRUE='#'
12810 +  ENABLE_PCRE_FALSE=
12811 + fi
12812 +
12813 +
12814 +
12815   # Check whether --enable-openssl was given.
12816   if test "${enable_openssl+set}" = set; then :
12817    enableval=$enable_openssl;  cf_enable_openssl=$enableval
# Line 13004 | Line 12859 | $as_echo "$cf_openssl_basedir" >&6; }
12859   $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12860  
12861    else
12862 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found.  Please check your path." >&5
12863 < $as_echo "not found.  Please check your path." >&6; }
12862 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12863 > $as_echo "not found. Please check your path." >&6; }
12864      cf_enable_openssl="no"
12865    fi
12866    unset cf_openssl_basedir
# Line 13030 | Line 12885 | else
12885    assert=no
12886   fi
12887  
12888 < if test "$assert" = no; then
12888 >
12889 > if test "$assert" = "no"; then :
12890  
12891   $as_echo "#define NDEBUG 1" >>confdefs.h
12892  
# Line 13742 | Line 13598 | _ACEOF
13598    test "$exec_prefix_NONE" && exec_prefix=NONE
13599  
13600  
13601 < ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile lib/Makefile lib/pcre/Makefile tools/Makefile"
13601 > ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13602  
13603  
13604   cat >confcache <<\_ACEOF
# Line 13888 | Line 13744 | LT_CONFIG_H=config.h
13744  
13745  
13746  
13747 + if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13748 +  as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13749 + Usually this means the macro was only invoked conditionally." "$LINENO" 5
13750 + fi
13751   if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13752    as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13753   Usually this means the macro was only invoked conditionally." "$LINENO" 5
# Line 14763 | Line 14623 | do
14623      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14624      "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14625      "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14766    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14767    "lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
14626      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14627  
14628    *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)