A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.57 for mod_log_sql 1.101. 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6 # Free Software Foundation, Inc. 7 # This configure script is free software; the Free Software Foundation 8 # gives unlimited permission to copy, distribute and modify it. 9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 12 13 # Be Bourne compatible 14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22 fi 23 24 # Support unset when possible. 25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 193 194 if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196 else 197 as_expr=false 198 fi 199 200 rm -f conf$$ conf$$.exe conf$$.file 201 echo >conf$$.file 202 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211 elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213 else 214 as_ln_s='cp -p' 215 fi 216 rm -f conf$$ conf$$.exe conf$$.file 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 as_mkdir_p=false 222 fi 223 224 as_executable_p="test -f" 225 226 # Sed expression to map a string onto a valid CPP name. 227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228 229 # Sed expression to map a string onto a valid variable name. 230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231 232 233 # IFS 234 # We need space, tab and new line, in precisely that order. 235 as_nl=' 236 ' 237 IFS=" $as_nl" 238 239 # CDPATH. 240 $as_unset CDPATH 241 242 243 # Name of the host. 244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245 # so uname gets run too. 246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247 248 exec 6>&1 249 250 # 251 # Initializations. 252 # 253 ac_default_prefix=/usr/local 254 ac_config_libobj_dir=. 255 cross_compiling=no 256 subdirs= 257 MFLAGS= 258 MAKEFLAGS= 259 SHELL=${CONFIG_SHELL-/bin/sh} 260 261 # Maximum number of lines to put in a shell here document. 262 # This variable seems obsolete. It should probably be removed, and 263 # only ac_max_sed_lines should be used. 264 : ${ac_max_here_lines=38} 265 266 # Identity of this package. 267 PACKAGE_NAME='mod_log_sql' 268 PACKAGE_TARNAME='mod_log_sql' 269 PACKAGE_VERSION='1.101' 270 PACKAGE_STRING='mod_log_sql 1.101' 271 PACKAGE_BUGREPORT='' 272 273 ac_unique_file="mod_log_sql.c" 274 # Factoring default headers for most tests. 275 ac_includes_default="\ 276 #include <stdio.h> 277 #if HAVE_SYS_TYPES_H 278 # include <sys/types.h> 279 #endif 280 #if HAVE_SYS_STAT_H 281 # include <sys/stat.h> 282 #endif 283 #if STDC_HEADERS 284 # include <stdlib.h> 285 # include <stddef.h> 286 #else 287 # if HAVE_STDLIB_H 288 # include <stdlib.h> 289 # endif 290 #endif 291 #if HAVE_STRING_H 292 # if !STDC_HEADERS && HAVE_MEMORY_H 293 # include <memory.h> 294 # endif 295 # include <string.h> 296 #endif 297 #if HAVE_STRINGS_H 298 # include <strings.h> 299 #endif 300 #if HAVE_INTTYPES_H 301 # include <inttypes.h> 302 #else 303 # if HAVE_STDINT_H 304 # include <stdint.h> 305 # endif 306 #endif 307 #if HAVE_UNISTD_H 308 # include <unistd.h> 309 #endif" 310 311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS OOO_MAINTAIN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT APXS_BIN build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AP_DEFS AP_PREFIX AP_CFLAGS AP_CPPFLAGS AP_INCLUDES AP_INCLUDEDIR AP_LIBEXECDIR AP_VERSION AP_SYSCONFDIR AP_BINDIR AP_SBINDIR APR_INCLUDES APU_INCLUDES APXS_EXTENSION APXS_CFLAGS WANT_LOGIO_MOD MYSQL_LDFLAGS MYSQL_CFLAGS MYSQL_LIBS WANT_MYSQL_MOD DBI_LDFLAGS DBI_LIBS DBI_CFLAGS WANT_DBI_MOD WANT_PGSQL_MOD CPP EGREP MOD_SSL_CFLAGS WANT_SSL_MOD RT_LIBS LIBOBJS LTLIBOBJS' 312 ac_subst_files='' 313 314 # Initialize some variables set by options. 315 ac_init_help= 316 ac_init_version=false 317 # The variables have the same names as the options, with 318 # dashes changed to underlines. 319 cache_file=/dev/null 320 exec_prefix=NONE 321 no_create= 322 no_recursion= 323 prefix=NONE 324 program_prefix=NONE 325 program_suffix=NONE 326 program_transform_name=s,x,x, 327 silent= 328 site= 329 srcdir= 330 verbose= 331 x_includes=NONE 332 x_libraries=NONE 333 334 # Installation directory options. 335 # These are left unexpanded so users can "make install exec_prefix=/foo" 336 # and all the variables that are supposed to be based on exec_prefix 337 # by default will actually change. 338 # Use braces instead of parens because sh, perl, etc. also accept them. 339 bindir='${exec_prefix}/bin' 340 sbindir='${exec_prefix}/sbin' 341 libexecdir='${exec_prefix}/libexec' 342 datadir='${prefix}/share' 343 sysconfdir='${prefix}/etc' 344 sharedstatedir='${prefix}/com' 345 localstatedir='${prefix}/var' 346 libdir='${exec_prefix}/lib' 347 includedir='${prefix}/include' 348 oldincludedir='/usr/include' 349 infodir='${prefix}/info' 350 mandir='${prefix}/man' 351 352 ac_prev= 353 for ac_option 354 do 355 # If the previous option needs an argument, assign it. 356 if test -n "$ac_prev"; then 357 eval "$ac_prev=\$ac_option" 358 ac_prev= 359 continue 360 fi 361 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 363 364 # Accept the important Cygnus configure options, so we can diagnose typos. 365 366 case $ac_option in 367 368 -bindir | --bindir | --bindi | --bind | --bin | --bi) 369 ac_prev=bindir ;; 370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 371 bindir=$ac_optarg ;; 372 373 -build | --build | --buil | --bui | --bu) 374 ac_prev=build_alias ;; 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 376 build_alias=$ac_optarg ;; 377 378 -cache-file | --cache-file | --cache-fil | --cache-fi \ 379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 380 ac_prev=cache_file ;; 381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 383 cache_file=$ac_optarg ;; 384 385 --config-cache | -C) 386 cache_file=config.cache ;; 387 388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 389 ac_prev=datadir ;; 390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 391 | --da=*) 392 datadir=$ac_optarg ;; 393 394 -disable-* | --disable-*) 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 396 # Reject names that are not valid shell variable names. 397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 399 { (exit 1); exit 1; }; } 400 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 401 eval "enable_$ac_feature=no" ;; 402 403 -enable-* | --enable-*) 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 405 # Reject names that are not valid shell variable names. 406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 408 { (exit 1); exit 1; }; } 409 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 410 case $ac_option in 411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 412 *) ac_optarg=yes ;; 413 esac 414 eval "enable_$ac_feature='$ac_optarg'" ;; 415 416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 418 | --exec | --exe | --ex) 419 ac_prev=exec_prefix ;; 420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 422 | --exec=* | --exe=* | --ex=*) 423 exec_prefix=$ac_optarg ;; 424 425 -gas | --gas | --ga | --g) 426 # Obsolete; use --with-gas. 427 with_gas=yes ;; 428 429 -help | --help | --hel | --he | -h) 430 ac_init_help=long ;; 431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 432 ac_init_help=recursive ;; 433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 434 ac_init_help=short ;; 435 436 -host | --host | --hos | --ho) 437 ac_prev=host_alias ;; 438 -host=* | --host=* | --hos=* | --ho=*) 439 host_alias=$ac_optarg ;; 440 441 -includedir | --includedir | --includedi | --included | --include \ 442 | --includ | --inclu | --incl | --inc) 443 ac_prev=includedir ;; 444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 445 | --includ=* | --inclu=* | --incl=* | --inc=*) 446 includedir=$ac_optarg ;; 447 448 -infodir | --infodir | --infodi | --infod | --info | --inf) 449 ac_prev=infodir ;; 450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 451 infodir=$ac_optarg ;; 452 453 -libdir | --libdir | --libdi | --libd) 454 ac_prev=libdir ;; 455 -libdir=* | --libdir=* | --libdi=* | --libd=*) 456 libdir=$ac_optarg ;; 457 458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 459 | --libexe | --libex | --libe) 460 ac_prev=libexecdir ;; 461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 462 | --libexe=* | --libex=* | --libe=*) 463 libexecdir=$ac_optarg ;; 464 465 -localstatedir | --localstatedir | --localstatedi | --localstated \ 466 | --localstate | --localstat | --localsta | --localst \ 467 | --locals | --local | --loca | --loc | --lo) 468 ac_prev=localstatedir ;; 469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 472 localstatedir=$ac_optarg ;; 473 474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 475 ac_prev=mandir ;; 476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 477 mandir=$ac_optarg ;; 478 479 -nfp | --nfp | --nf) 480 # Obsolete; use --without-fp. 481 with_fp=no ;; 482 483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 484 | --no-cr | --no-c | -n) 485 no_create=yes ;; 486 487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 489 no_recursion=yes ;; 490 491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 493 | --oldin | --oldi | --old | --ol | --o) 494 ac_prev=oldincludedir ;; 495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 498 oldincludedir=$ac_optarg ;; 499 500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 501 ac_prev=prefix ;; 502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 503 prefix=$ac_optarg ;; 504 505 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 506 | --program-pre | --program-pr | --program-p) 507 ac_prev=program_prefix ;; 508 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 510 program_prefix=$ac_optarg ;; 511 512 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 513 | --program-suf | --program-su | --program-s) 514 ac_prev=program_suffix ;; 515 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 517 program_suffix=$ac_optarg ;; 518 519 -program-transform-name | --program-transform-name \ 520 | --program-transform-nam | --program-transform-na \ 521 | --program-transform-n | --program-transform- \ 522 | --program-transform | --program-transfor \ 523 | --program-transfo | --program-transf \ 524 | --program-trans | --program-tran \ 525 | --progr-tra | --program-tr | --program-t) 526 ac_prev=program_transform_name ;; 527 -program-transform-name=* | --program-transform-name=* \ 528 | --program-transform-nam=* | --program-transform-na=* \ 529 | --program-transform-n=* | --program-transform-=* \ 530 | --program-transform=* | --program-transfor=* \ 531 | --program-transfo=* | --program-transf=* \ 532 | --program-trans=* | --program-tran=* \ 533 | --progr-tra=* | --program-tr=* | --program-t=*) 534 program_transform_name=$ac_optarg ;; 535 536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 537 | -silent | --silent | --silen | --sile | --sil) 538 silent=yes ;; 539 540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 541 ac_prev=sbindir ;; 542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 543 | --sbi=* | --sb=*) 544 sbindir=$ac_optarg ;; 545 546 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 548 | --sharedst | --shareds | --shared | --share | --shar \ 549 | --sha | --sh) 550 ac_prev=sharedstatedir ;; 551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 554 | --sha=* | --sh=*) 555 sharedstatedir=$ac_optarg ;; 556 557 -site | --site | --sit) 558 ac_prev=site ;; 559 -site=* | --site=* | --sit=*) 560 site=$ac_optarg ;; 561 562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 563 ac_prev=srcdir ;; 564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 565 srcdir=$ac_optarg ;; 566 567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 568 | --syscon | --sysco | --sysc | --sys | --sy) 569 ac_prev=sysconfdir ;; 570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 572 sysconfdir=$ac_optarg ;; 573 574 -target | --target | --targe | --targ | --tar | --ta | --t) 575 ac_prev=target_alias ;; 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 577 target_alias=$ac_optarg ;; 578 579 -v | -verbose | --verbose | --verbos | --verbo | --verb) 580 verbose=yes ;; 581 582 -version | --version | --versio | --versi | --vers | -V) 583 ac_init_version=: ;; 584 585 -with-* | --with-*) 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 587 # Reject names that are not valid shell variable names. 588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 589 { echo "$as_me: error: invalid package name: $ac_package" >&2 590 { (exit 1); exit 1; }; } 591 ac_package=`echo $ac_package| sed 's/-/_/g'` 592 case $ac_option in 593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 594 *) ac_optarg=yes ;; 595 esac 596 eval "with_$ac_package='$ac_optarg'" ;; 597 598 -without-* | --without-*) 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 600 # Reject names that are not valid shell variable names. 601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 602 { echo "$as_me: error: invalid package name: $ac_package" >&2 603 { (exit 1); exit 1; }; } 604 ac_package=`echo $ac_package | sed 's/-/_/g'` 605 eval "with_$ac_package=no" ;; 606 607 --x) 608 # Obsolete; use --with-x. 609 with_x=yes ;; 610 611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 612 | --x-incl | --x-inc | --x-in | --x-i) 613 ac_prev=x_includes ;; 614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 616 x_includes=$ac_optarg ;; 617 618 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 620 ac_prev=x_libraries ;; 621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 623 x_libraries=$ac_optarg ;; 624 625 -*) { echo "$as_me: error: unrecognized option: $ac_option 626 Try \`$0 --help' for more information." >&2 627 { (exit 1); exit 1; }; } 628 ;; 629 630 *=*) 631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 632 # Reject names that are not valid shell variable names. 633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 635 { (exit 1); exit 1; }; } 636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 637 eval "$ac_envvar='$ac_optarg'" 638 export $ac_envvar ;; 639 640 *) 641 # FIXME: should be removed in autoconf 3.0. 642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 646 ;; 647 648 esac 649 done 650 651 if test -n "$ac_prev"; then 652 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 653 { echo "$as_me: error: missing argument to $ac_option" >&2 654 { (exit 1); exit 1; }; } 655 fi 656 657 # Be sure to have absolute paths. 658 for ac_var in exec_prefix prefix 659 do 660 eval ac_val=$`echo $ac_var` 661 case $ac_val in 662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 664 { (exit 1); exit 1; }; };; 665 esac 666 done 667 668 # Be sure to have absolute paths. 669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 670 localstatedir libdir includedir oldincludedir infodir mandir 671 do 672 eval ac_val=$`echo $ac_var` 673 case $ac_val in 674 [\\/$]* | ?:[\\/]* ) ;; 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 676 { (exit 1); exit 1; }; };; 677 esac 678 done 679 680 # There might be people who depend on the old broken behavior: `$host' 681 # used to hold the argument of --host etc. 682 # FIXME: To remove some day. 683 build=$build_alias 684 host=$host_alias 685 target=$target_alias 686 687 # FIXME: To remove some day. 688 if test "x$host_alias" != x; then 689 if test "x$build_alias" = x; then 690 cross_compiling=maybe 691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 692 If a cross compiler is detected then cross compile mode will be used." >&2 693 elif test "x$build_alias" != "x$host_alias"; then 694 cross_compiling=yes 695 fi 696 fi 697 698 ac_tool_prefix= 699 test -n "$host_alias" && ac_tool_prefix=$host_alias- 700 701 test "$silent" = yes && exec 6>/dev/null 702 703 704 # Find the source files, if location was not specified. 705 if test -z "$srcdir"; then 706 ac_srcdir_defaulted=yes 707 # Try the directory containing this script, then its parent. 708 ac_confdir=`(dirname "$0") 2>/dev/null || 709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 710 X"$0" : 'X\(//\)[^/]' \| \ 711 X"$0" : 'X\(//\)$' \| \ 712 X"$0" : 'X\(/\)' \| \ 713 . : '\(.\)' 2>/dev/null || 714 echo X"$0" | 715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 716 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 717 /^X\(\/\/\)$/{ s//\1/; q; } 718 /^X\(\/\).*/{ s//\1/; q; } 719 s/.*/./; q'` 720 srcdir=$ac_confdir 721 if test ! -r $srcdir/$ac_unique_file; then 722 srcdir=.. 723 fi 724 else 725 ac_srcdir_defaulted=no 726 fi 727 if test ! -r $srcdir/$ac_unique_file; then 728 if test "$ac_srcdir_defaulted" = yes; then 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 730 { (exit 1); exit 1; }; } 731 else 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 733 { (exit 1); exit 1; }; } 734 fi 735 fi 736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 738 { (exit 1); exit 1; }; } 739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 740 ac_env_build_alias_set=${build_alias+set} 741 ac_env_build_alias_value=$build_alias 742 ac_cv_env_build_alias_set=${build_alias+set} 743 ac_cv_env_build_alias_value=$build_alias 744 ac_env_host_alias_set=${host_alias+set} 745 ac_env_host_alias_value=$host_alias 746 ac_cv_env_host_alias_set=${host_alias+set} 747 ac_cv_env_host_alias_value=$host_alias 748 ac_env_target_alias_set=${target_alias+set} 749 ac_env_target_alias_value=$target_alias 750 ac_cv_env_target_alias_set=${target_alias+set} 751 ac_cv_env_target_alias_value=$target_alias 752 ac_env_CC_set=${CC+set} 753 ac_env_CC_value=$CC 754 ac_cv_env_CC_set=${CC+set} 755 ac_cv_env_CC_value=$CC 756 ac_env_CFLAGS_set=${CFLAGS+set} 757 ac_env_CFLAGS_value=$CFLAGS 758 ac_cv_env_CFLAGS_set=${CFLAGS+set} 759 ac_cv_env_CFLAGS_value=$CFLAGS 760 ac_env_LDFLAGS_set=${LDFLAGS+set} 761 ac_env_LDFLAGS_value=$LDFLAGS 762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 763 ac_cv_env_LDFLAGS_value=$LDFLAGS 764 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 765 ac_env_CPPFLAGS_value=$CPPFLAGS 766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 768 ac_env_CPP_set=${CPP+set} 769 ac_env_CPP_value=$CPP 770 ac_cv_env_CPP_set=${CPP+set} 771 ac_cv_env_CPP_value=$CPP 772 773 # 774 # Report the --help message. 775 # 776 if test "$ac_init_help" = "long"; then 777 # Omit some internal or obsolete options to make the list less imposing. 778 # This message is too long to be a string in the A/UX 3.1 sh. 779 cat <<_ACEOF 780 \`configure' configures mod_log_sql 1.101 to adapt to many kinds of systems. 781 782 Usage: $0 [OPTION]... [VAR=VALUE]... 783 784 To assign environment variables (e.g., CC, CFLAGS...), specify them as 785 VAR=VALUE. See below for descriptions of some of the useful variables. 786 787 Defaults for the options are specified in brackets. 788 789 Configuration: 790 -h, --help display this help and exit 791 --help=short display options specific to this package 792 --help=recursive display the short help of all the included packages 793 -V, --version display version information and exit 794 -q, --quiet, --silent do not print \`checking...' messages 795 --cache-file=FILE cache test results in FILE [disabled] 796 -C, --config-cache alias for \`--cache-file=config.cache' 797 -n, --no-create do not create output files 798 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 799 800 _ACEOF 801 802 cat <<_ACEOF 803 Installation directories: 804 --prefix=PREFIX install architecture-independent files in PREFIX 805 [$ac_default_prefix] 806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 807 [PREFIX] 808 809 By default, \`make install' will install all the files in 810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 811 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 812 for instance \`--prefix=\$HOME'. 813 814 For better control, use the options below. 815 816 Fine tuning of the installation directories: 817 --bindir=DIR user executables [EPREFIX/bin] 818 --sbindir=DIR system admin executables [EPREFIX/sbin] 819 --libexecdir=DIR program executables [EPREFIX/libexec] 820 --datadir=DIR read-only architecture-independent data [PREFIX/share] 821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 823 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 824 --libdir=DIR object code libraries [EPREFIX/lib] 825 --includedir=DIR C header files [PREFIX/include] 826 --oldincludedir=DIR C header files for non-gcc [/usr/include] 827 --infodir=DIR info documentation [PREFIX/info] 828 --mandir=DIR man documentation [PREFIX/man] 829 _ACEOF 830 831 cat <<\_ACEOF 832 833 System types: 834 --build=BUILD configure for building on BUILD [guessed] 835 --host=HOST cross-compile to build programs to run on HOST [BUILD] 836 --target=TARGET configure for building compilers for TARGET [HOST] 837 _ACEOF 838 fi 839 840 if test -n "$ac_init_help"; then 841 case $ac_init_help in 842 short | recursive ) echo "Configuration of mod_log_sql 1.101:";; 843 esac 844 cat <<\_ACEOF 845 846 Optional Features: 847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 849 --enable-maintainer Enable maintainer mode for this project 850 --disable-apxstest Do not try to compile and run apache version test 851 program 852 --disble-mysqltest Do not try to compile and run mysql test program 853 --disable-ssl Do not compile in SSL support 854 855 Optional Packages: 856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 858 --with-apxs=PATH Path to apxs 859 --with-mysql=PATH Path to MySQL client library 860 --with-dbi=PATH Path libdbi headers and libraries 861 --with-ssl-inc=PATH Location of SSL header files 862 --with-db-inc=PATH Location of DB header files 863 864 Some influential environment variables: 865 CC C compiler command 866 CFLAGS C compiler flags 867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 868 nonstandard directory <lib dir> 869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 870 headers in a nonstandard directory <include dir> 871 CPP C preprocessor 872 873 Use these variables to override the choices made by `configure' or to help 874 it to find libraries and programs with nonstandard names/locations. 875 876 _ACEOF 877 fi 878 879 if test "$ac_init_help" = "recursive"; then 880 # If there are subdirs, report their specific --help. 881 ac_popdir=`pwd` 882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 883 test -d $ac_dir || continue 884 ac_builddir=. 885 886 if test "$ac_dir" != .; then 887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 888 # A "../" for each directory in $ac_dir_suffix. 889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 890 else 891 ac_dir_suffix= ac_top_builddir= 892 fi 893 894 case $srcdir in 895 .) # No --srcdir option. We are building in place. 896 ac_srcdir=. 897 if test -z "$ac_top_builddir"; then 898 ac_top_srcdir=. 899 else 900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 901 fi ;; 902 [\\/]* | ?:[\\/]* ) # Absolute path. 903 ac_srcdir=$srcdir$ac_dir_suffix; 904 ac_top_srcdir=$srcdir ;; 905 *) # Relative path. 906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 907 ac_top_srcdir=$ac_top_builddir$srcdir ;; 908 esac 909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 910 # absolute. 911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 912 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 915 916 cd $ac_dir 917 # Check for guested configure; otherwise get Cygnus style configure. 918 if test -f $ac_srcdir/configure.gnu; then 919 echo 920 $SHELL $ac_srcdir/configure.gnu --help=recursive 921 elif test -f $ac_srcdir/configure; then 922 echo 923 $SHELL $ac_srcdir/configure --help=recursive 924 elif test -f $ac_srcdir/configure.ac || 925 test -f $ac_srcdir/configure.in; then 926 echo 927 $ac_configure --help 928 else 929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 930 fi 931 cd $ac_popdir 932 done 933 fi 934 935 test -n "$ac_init_help" && exit 0 936 if $ac_init_version; then 937 cat <<\_ACEOF 938 mod_log_sql configure 1.101 939 generated by GNU Autoconf 2.57 940 941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 942 Free Software Foundation, Inc. 943 This configure script is free software; the Free Software Foundation 944 gives unlimited permission to copy, distribute and modify it. 945 _ACEOF 946 exit 0 947 fi 948 exec 5>config.log 949 cat >&5 <<_ACEOF 950 This file contains any messages produced by compilers while 951 running configure, to aid debugging if configure makes a mistake. 952 953 It was created by mod_log_sql $as_me 1.101, which was 954 generated by GNU Autoconf 2.57. Invocation command line was 955 956 $ $0 $@ 957 958 _ACEOF 959 { 960 cat <<_ASUNAME 961 ## --------- ## 962 ## Platform. ## 963 ## --------- ## 964 965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 966 uname -m = `(uname -m) 2>/dev/null || echo unknown` 967 uname -r = `(uname -r) 2>/dev/null || echo unknown` 968 uname -s = `(uname -s) 2>/dev/null || echo unknown` 969 uname -v = `(uname -v) 2>/dev/null || echo unknown` 970 971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 973 974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 977 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 981 982 _ASUNAME 983 984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 985 for as_dir in $PATH 986 do 987 IFS=$as_save_IFS 988 test -z "$as_dir" && as_dir=. 989 echo "PATH: $as_dir" 990 done 991 992 } >&5 993 994 cat >&5 <<_ACEOF 995 996 997 ## ----------- ## 998 ## Core tests. ## 999 ## ----------- ## 1000 1001 _ACEOF 1002 1003 1004 # Keep a trace of the command line. 1005 # Strip out --no-create and --no-recursion so they do not pile up. 1006 # Strip out --silent because we don't want to record it for future runs. 1007 # Also quote any args containing shell meta-characters. 1008 # Make two passes to allow for proper duplicate-argument suppression. 1009 ac_configure_args= 1010 ac_configure_args0= 1011 ac_configure_args1= 1012 ac_sep= 1013 ac_must_keep_next=false 1014 for ac_pass in 1 2 1015 do 1016 for ac_arg 1017 do 1018 case $ac_arg in 1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1021 | -silent | --silent | --silen | --sile | --sil) 1022 continue ;; 1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1025 esac 1026 case $ac_pass in 1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1028 2) 1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1030 if test $ac_must_keep_next = true; then 1031 ac_must_keep_next=false # Got value, back to normal. 1032 else 1033 case $ac_arg in 1034 *=* | --config-cache | -C | -disable-* | --disable-* \ 1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1037 | -with-* | --with-* | -without-* | --without-* | --x) 1038 case "$ac_configure_args0 " in 1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1040 esac 1041 ;; 1042 -* ) ac_must_keep_next=true ;; 1043 esac 1044 fi 1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1046 # Get rid of the leading space. 1047 ac_sep=" " 1048 ;; 1049 esac 1050 done 1051 done 1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1054 1055 # When interrupted or exit'd, cleanup temporary files, and complete 1056 # config.log. We remove comments because anyway the quotes in there 1057 # would cause problems or look ugly. 1058 # WARNING: Be sure not to use single quotes in there, as some shells, 1059 # such as our DU 5.0 friend, will then `close' the trap. 1060 trap 'exit_status=$? 1061 # Save into config.log some information that might help in debugging. 1062 { 1063 echo 1064 1065 cat <<\_ASBOX 1066 ## ---------------- ## 1067 ## Cache variables. ## 1068 ## ---------------- ## 1069 _ASBOX 1070 echo 1071 # The following way of writing the cache mishandles newlines in values, 1072 { 1073 (set) 2>&1 | 1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1075 *ac_space=\ *) 1076 sed -n \ 1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1079 ;; 1080 *) 1081 sed -n \ 1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1083 ;; 1084 esac; 1085 } 1086 echo 1087 1088 cat <<\_ASBOX 1089 ## ----------------- ## 1090 ## Output variables. ## 1091 ## ----------------- ## 1092 _ASBOX 1093 echo 1094 for ac_var in $ac_subst_vars 1095 do 1096 eval ac_val=$`echo $ac_var` 1097 echo "$ac_var='"'"'$ac_val'"'"'" 1098 done | sort 1099 echo 1100 1101 if test -n "$ac_subst_files"; then 1102 cat <<\_ASBOX 1103 ## ------------- ## 1104 ## Output files. ## 1105 ## ------------- ## 1106 _ASBOX 1107 echo 1108 for ac_var in $ac_subst_files 1109 do 1110 eval ac_val=$`echo $ac_var` 1111 echo "$ac_var='"'"'$ac_val'"'"'" 1112 done | sort 1113 echo 1114 fi 1115 1116 if test -s confdefs.h; then 1117 cat <<\_ASBOX 1118 ## ----------- ## 1119 ## confdefs.h. ## 1120 ## ----------- ## 1121 _ASBOX 1122 echo 1123 sed "/^$/d" confdefs.h | sort 1124 echo 1125 fi 1126 test "$ac_signal" != 0 && 1127 echo "$as_me: caught signal $ac_signal" 1128 echo "$as_me: exit $exit_status" 1129 } >&5 1130 rm -f core core.* *.core && 1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1132 exit $exit_status 1133 ' 0 1134 for ac_signal in 1 2 13 15; do 1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1136 done 1137 ac_signal=0 1138 1139 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1140 rm -rf conftest* confdefs.h 1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1142 echo >confdefs.h 1143 1144 # Predefined preprocessor variables. 1145 1146 cat >>confdefs.h <<_ACEOF 1147 #define PACKAGE_NAME "$PACKAGE_NAME" 1148 _ACEOF 1149 1150 1151 cat >>confdefs.h <<_ACEOF 1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1153 _ACEOF 1154 1155 1156 cat >>confdefs.h <<_ACEOF 1157 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1158 _ACEOF 1159 1160 1161 cat >>confdefs.h <<_ACEOF 1162 #define PACKAGE_STRING "$PACKAGE_STRING" 1163 _ACEOF 1164 1165 1166 cat >>confdefs.h <<_ACEOF 1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1168 _ACEOF 1169 1170 1171 # Let the site file select an alternate cache file if it wants to. 1172 # Prefer explicitly selected file to automatically selected ones. 1173 if test -z "$CONFIG_SITE"; then 1174 if test "x$prefix" != xNONE; then 1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1176 else 1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1178 fi 1179 fi 1180 for ac_site_file in $CONFIG_SITE; do 1181 if test -r "$ac_site_file"; then 1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1183 echo "$as_me: loading site script $ac_site_file" >&6;} 1184 sed 's/^/| /' "$ac_site_file" >&5 1185 . "$ac_site_file" 1186 fi 1187 done 1188 1189 if test -r "$cache_file"; then 1190 # Some versions of bash will fail to source /dev/null (special 1191 # files actually), so we avoid doing that. 1192 if test -f "$cache_file"; then 1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1194 echo "$as_me: loading cache $cache_file" >&6;} 1195 case $cache_file in 1196 [\\/]* | ?:[\\/]* ) . $cache_file;; 1197 *) . ./$cache_file;; 1198 esac 1199 fi 1200 else 1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1202 echo "$as_me: creating cache $cache_file" >&6;} 1203 >$cache_file 1204 fi 1205 1206 # Check that the precious variables saved in the cache have kept the same 1207 # value. 1208 ac_cache_corrupted=false 1209 for ac_var in `(set) 2>&1 | 1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1212 eval ac_new_set=\$ac_env_${ac_var}_set 1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1214 eval ac_new_val="\$ac_env_${ac_var}_value" 1215 case $ac_old_set,$ac_new_set in 1216 set,) 1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1219 ac_cache_corrupted=: ;; 1220 ,set) 1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1223 ac_cache_corrupted=: ;; 1224 ,);; 1225 *) 1226 if test "x$ac_old_val" != "x$ac_new_val"; then 1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1230 echo "$as_me: former value: $ac_old_val" >&2;} 1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1232 echo "$as_me: current value: $ac_new_val" >&2;} 1233 ac_cache_corrupted=: 1234 fi;; 1235 esac 1236 # Pass precious variables to config.status. 1237 if test "$ac_new_set" = set; then 1238 case $ac_new_val in 1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1241 *) ac_arg=$ac_var=$ac_new_val ;; 1242 esac 1243 case " $ac_configure_args " in 1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1246 esac 1247 fi 1248 done 1249 if $ac_cache_corrupted; then 1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1254 { (exit 1); exit 1; }; } 1255 fi 1256 1257 ac_ext=c 1258 ac_cpp='$CPP $CPPFLAGS' 1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 echo configure: creating config.nice 1291 rm -f config.nice 1292 cat >config.nice<<EOF 1293 #! /bin/sh 1294 # 1295 # Created by configure 1296 1297 EOF 1298 1299 for arg in $0 "$@"; do 1300 if test "$arg" != "--no-create" -a "$arg" != "--no-recursion"; then 1301 echo "\"$arg\" \\" >> config.nice 1302 fi 1303 done 1304 echo '"$@"' >> config.nice 1305 chmod +x config.nice 1306 1307 1308 ac_config_headers="$ac_config_headers config.h" 1309 1310 1311 1312 1313 1314 # Check whether --enable-maintainer or --disable-maintainer was given. 1315 if test "${enable_maintainer+set}" = set; then 1316 enableval="$enable_maintainer" 1317 echo "$as_me:$LINENO: result: Enabling Maintainer Mode!!" >&5 1318 echo "${ECHO_T}Enabling Maintainer Mode!!" >&6 1319 OOO_MAINTAIN=1 1320 else 1321 OOO_MAINTAIN=0 1322 fi; 1323 1324 1325 1326 ac_ext=c 1327 ac_cpp='$CPP $CPPFLAGS' 1328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1331 if test -n "$ac_tool_prefix"; then 1332 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1333 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1334 echo "$as_me:$LINENO: checking for $ac_word" >&5 1335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1336 if test "${ac_cv_prog_CC+set}" = set; then 1337 echo $ECHO_N "(cached) $ECHO_C" >&6 1338 else 1339 if test -n "$CC"; then 1340 ac_cv_prog_CC="$CC" # Let the user override the test. 1341 else 1342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1343 for as_dir in $PATH 1344 do 1345 IFS=$as_save_IFS 1346 test -z "$as_dir" && as_dir=. 1347 for ac_exec_ext in '' $ac_executable_extensions; do 1348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1349 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1351 break 2 1352 fi 1353 done 1354 done 1355 1356 fi 1357 fi 1358 CC=$ac_cv_prog_CC 1359 if test -n "$CC"; then 1360 echo "$as_me:$LINENO: result: $CC" >&5 1361 echo "${ECHO_T}$CC" >&6 1362 else 1363 echo "$as_me:$LINENO: result: no" >&5 1364 echo "${ECHO_T}no" >&6 1365 fi 1366 1367 fi 1368 if test -z "$ac_cv_prog_CC"; then 1369 ac_ct_CC=$CC 1370 # Extract the first word of "gcc", so it can be a program name with args. 1371 set dummy gcc; ac_word=$2 1372 echo "$as_me:$LINENO: checking for $ac_word" >&5 1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1375 echo $ECHO_N "(cached) $ECHO_C" >&6 1376 else 1377 if test -n "$ac_ct_CC"; then 1378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1379 else 1380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1381 for as_dir in $PATH 1382 do 1383 IFS=$as_save_IFS 1384 test -z "$as_dir" && as_dir=. 1385 for ac_exec_ext in '' $ac_executable_extensions; do 1386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1387 ac_cv_prog_ac_ct_CC="gcc" 1388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1389 break 2 1390 fi 1391 done 1392 done 1393 1394 fi 1395 fi 1396 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1397 if test -n "$ac_ct_CC"; then 1398 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1399 echo "${ECHO_T}$ac_ct_CC" >&6 1400 else 1401 echo "$as_me:$LINENO: result: no" >&5 1402 echo "${ECHO_T}no" >&6 1403 fi 1404 1405 CC=$ac_ct_CC 1406 else 1407 CC="$ac_cv_prog_CC" 1408 fi 1409 1410 if test -z "$CC"; then 1411 if test -n "$ac_tool_prefix"; then 1412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1413 set dummy ${ac_tool_prefix}cc; ac_word=$2 1414 echo "$as_me:$LINENO: checking for $ac_word" >&5 1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1416 if test "${ac_cv_prog_CC+set}" = set; then 1417 echo $ECHO_N "(cached) $ECHO_C" >&6 1418 else 1419 if test -n "$CC"; then 1420 ac_cv_prog_CC="$CC" # Let the user override the test. 1421 else 1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1423 for as_dir in $PATH 1424 do 1425 IFS=$as_save_IFS 1426 test -z "$as_dir" && as_dir=. 1427 for ac_exec_ext in '' $ac_executable_extensions; do 1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1429 ac_cv_prog_CC="${ac_tool_prefix}cc" 1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1431 break 2 1432 fi 1433 done 1434 done 1435 1436 fi 1437 fi 1438 CC=$ac_cv_prog_CC 1439 if test -n "$CC"; then 1440 echo "$as_me:$LINENO: result: $CC" >&5 1441 echo "${ECHO_T}$CC" >&6 1442 else 1443 echo "$as_me:$LINENO: result: no" >&5 1444 echo "${ECHO_T}no" >&6 1445 fi 1446 1447 fi 1448 if test -z "$ac_cv_prog_CC"; then 1449 ac_ct_CC=$CC 1450 # Extract the first word of "cc", so it can be a program name with args. 1451 set dummy cc; ac_word=$2 1452 echo "$as_me:$LINENO: checking for $ac_word" >&5 1453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1455 echo $ECHO_N "(cached) $ECHO_C" >&6 1456 else 1457 if test -n "$ac_ct_CC"; then 1458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1459 else 1460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1461 for as_dir in $PATH 1462 do 1463 IFS=$as_save_IFS 1464 test -z "$as_dir" && as_dir=. 1465 for ac_exec_ext in '' $ac_executable_extensions; do 1466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1467 ac_cv_prog_ac_ct_CC="cc" 1468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1469 break 2 1470 fi 1471 done 1472 done 1473 1474 fi 1475 fi 1476 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1477 if test -n "$ac_ct_CC"; then 1478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1479 echo "${ECHO_T}$ac_ct_CC" >&6 1480 else 1481 echo "$as_me:$LINENO: result: no" >&5 1482 echo "${ECHO_T}no" >&6 1483 fi 1484 1485 CC=$ac_ct_CC 1486 else 1487 CC="$ac_cv_prog_CC" 1488 fi 1489 1490 fi 1491 if test -z "$CC"; then 1492 # Extract the first word of "cc", so it can be a program name with args. 1493 set dummy cc; ac_word=$2 1494 echo "$as_me:$LINENO: checking for $ac_word" >&5 1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1496 if test "${ac_cv_prog_CC+set}" = set; then 1497 echo $ECHO_N "(cached) $ECHO_C" >&6 1498 else 1499 if test -n "$CC"; then 1500 ac_cv_prog_CC="$CC" # Let the user override the test. 1501 else 1502 ac_prog_rejected=no 1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1504 for as_dir in $PATH 1505 do 1506 IFS=$as_save_IFS 1507 test -z "$as_dir" && as_dir=. 1508 for ac_exec_ext in '' $ac_executable_extensions; do 1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1511 ac_prog_rejected=yes 1512 continue 1513 fi 1514 ac_cv_prog_CC="cc" 1515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1516 break 2 1517 fi 1518 done 1519 done 1520 1521 if test $ac_prog_rejected = yes; then 1522 # We found a bogon in the path, so make sure we never use it. 1523 set dummy $ac_cv_prog_CC 1524 shift 1525 if test $# != 0; then 1526 # We chose a different compiler from the bogus one. 1527 # However, it has the same basename, so the bogon will be chosen 1528 # first if we set CC to just the basename; use the full file name. 1529 shift 1530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1531 fi 1532 fi 1533 fi 1534 fi 1535 CC=$ac_cv_prog_CC 1536 if test -n "$CC"; then 1537 echo "$as_me:$LINENO: result: $CC" >&5 1538 echo "${ECHO_T}$CC" >&6 1539 else 1540 echo "$as_me:$LINENO: result: no" >&5 1541 echo "${ECHO_T}no" >&6 1542 fi 1543 1544 fi 1545 if test -z "$CC"; then 1546 if test -n "$ac_tool_prefix"; then 1547 for ac_prog in cl 1548 do 1549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1551 echo "$as_me:$LINENO: checking for $ac_word" >&5 1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1553 if test "${ac_cv_prog_CC+set}" = set; then 1554 echo $ECHO_N "(cached) $ECHO_C" >&6 1555 else 1556 if test -n "$CC"; then 1557 ac_cv_prog_CC="$CC" # Let the user override the test. 1558 else 1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1560 for as_dir in $PATH 1561 do 1562 IFS=$as_save_IFS 1563 test -z "$as_dir" && as_dir=. 1564 for ac_exec_ext in '' $ac_executable_extensions; do 1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1568 break 2 1569 fi 1570 done 1571 done 1572 1573 fi 1574 fi 1575 CC=$ac_cv_prog_CC 1576 if test -n "$CC"; then 1577 echo "$as_me:$LINENO: result: $CC" >&5 1578 echo "${ECHO_T}$CC" >&6 1579 else 1580 echo "$as_me:$LINENO: result: no" >&5 1581 echo "${ECHO_T}no" >&6 1582 fi 1583 1584 test -n "$CC" && break 1585 done 1586 fi 1587 if test -z "$CC"; then 1588 ac_ct_CC=$CC 1589 for ac_prog in cl 1590 do 1591 # Extract the first word of "$ac_prog", so it can be a program name with args. 1592 set dummy $ac_prog; ac_word=$2 1593 echo "$as_me:$LINENO: checking for $ac_word" >&5 1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1596 echo $ECHO_N "(cached) $ECHO_C" >&6 1597 else 1598 if test -n "$ac_ct_CC"; then 1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1600 else 1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1602 for as_dir in $PATH 1603 do 1604 IFS=$as_save_IFS 1605 test -z "$as_dir" && as_dir=. 1606 for ac_exec_ext in '' $ac_executable_extensions; do 1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1608 ac_cv_prog_ac_ct_CC="$ac_prog" 1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1610 break 2 1611 fi 1612 done 1613 done 1614 1615 fi 1616 fi 1617 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1618 if test -n "$ac_ct_CC"; then 1619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1620 echo "${ECHO_T}$ac_ct_CC" >&6 1621 else 1622 echo "$as_me:$LINENO: result: no" >&5 1623 echo "${ECHO_T}no" >&6 1624 fi 1625 1626 test -n "$ac_ct_CC" && break 1627 done 1628 1629 CC=$ac_ct_CC 1630 fi 1631 1632 fi 1633 1634 1635 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1636 See \`config.log' for more details." >&5 1637 echo "$as_me: error: no acceptable C compiler found in \$PATH 1638 See \`config.log' for more details." >&2;} 1639 { (exit 1); exit 1; }; } 1640 1641 # Provide some information about the compiler. 1642 echo "$as_me:$LINENO:" \ 1643 "checking for C compiler version" >&5 1644 ac_compiler=`set X $ac_compile; echo $2` 1645 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1646 (eval $ac_compiler --version </dev/null >&5) 2>&5 1647 ac_status=$? 1648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1649 (exit $ac_status); } 1650 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1651 (eval $ac_compiler -v </dev/null >&5) 2>&5 1652 ac_status=$? 1653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1654 (exit $ac_status); } 1655 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1656 (eval $ac_compiler -V </dev/null >&5) 2>&5 1657 ac_status=$? 1658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1659 (exit $ac_status); } 1660 1661 cat >conftest.$ac_ext <<_ACEOF 1662 #line $LINENO "configure" 1663 /* confdefs.h. */ 1664 _ACEOF 1665 cat confdefs.h >>conftest.$ac_ext 1666 cat >>conftest.$ac_ext <<_ACEOF 1667 /* end confdefs.h. */ 1668 1669 int 1670 main () 1671 { 1672 1673 ; 1674 return 0; 1675 } 1676 _ACEOF 1677 ac_clean_files_save=$ac_clean_files 1678 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1679 # Try to create an executable without -o first, disregard a.out. 1680 # It will help us diagnose broken compilers, and finding out an intuition 1681 # of exeext. 1682 echo "$as_me:$LINENO: checking for C compiler default output" >&5 1683 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1685 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1686 (eval $ac_link_default) 2>&5 1687 ac_status=$? 1688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1689 (exit $ac_status); }; then 1690 # Find the output, starting from the most likely. This scheme is 1691 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1692 # resort. 1693 1694 # Be careful to initialize this variable, since it used to be cached. 1695 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1696 ac_cv_exeext= 1697 # b.out is created by i960 compilers. 1698 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1699 do 1700 test -f "$ac_file" || continue 1701 case $ac_file in 1702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1703 ;; 1704 conftest.$ac_ext ) 1705 # This is the source file. 1706 ;; 1707 [ab].out ) 1708 # We found the default executable, but exeext='' is most 1709 # certainly right. 1710 break;; 1711 *.* ) 1712 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1713 # FIXME: I believe we export ac_cv_exeext for Libtool, 1714 # but it would be cool to find out if it's true. Does anybody 1715 # maintain Libtool? --akim. 1716 export ac_cv_exeext 1717 break;; 1718 * ) 1719 break;; 1720 esac 1721 done 1722 else 1723 echo "$as_me: failed program was:" >&5 1724 sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1727 See \`config.log' for more details." >&5 1728 echo "$as_me: error: C compiler cannot create executables 1729 See \`config.log' for more details." >&2;} 1730 { (exit 77); exit 77; }; } 1731 fi 1732 1733 ac_exeext=$ac_cv_exeext 1734 echo "$as_me:$LINENO: result: $ac_file" >&5 1735 echo "${ECHO_T}$ac_file" >&6 1736 1737 # Check the compiler produces executables we can run. If not, either 1738 # the compiler is broken, or we cross compile. 1739 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1740 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1741 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1742 # If not cross compiling, check that we can run a simple program. 1743 if test "$cross_compiling" != yes; then 1744 if { ac_try='./$ac_file' 1745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1746 (eval $ac_try) 2>&5 1747 ac_status=$? 1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1749 (exit $ac_status); }; }; then 1750 cross_compiling=no 1751 else 1752 if test "$cross_compiling" = maybe; then 1753 cross_compiling=yes 1754 else 1755 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1756 If you meant to cross compile, use \`--host'. 1757 See \`config.log' for more details." >&5 1758 echo "$as_me: error: cannot run C compiled programs. 1759 If you meant to cross compile, use \`--host'. 1760 See \`config.log' for more details." >&2;} 1761 { (exit 1); exit 1; }; } 1762 fi 1763 fi 1764 fi 1765 echo "$as_me:$LINENO: result: yes" >&5 1766 echo "${ECHO_T}yes" >&6 1767 1768 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1769 ac_clean_files=$ac_clean_files_save 1770 # Check the compiler produces executables we can run. If not, either 1771 # the compiler is broken, or we cross compile. 1772 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1773 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1774 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1775 echo "${ECHO_T}$cross_compiling" >&6 1776 1777 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1778 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1780 (eval $ac_link) 2>&5 1781 ac_status=$? 1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1783 (exit $ac_status); }; then 1784 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1785 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1786 # work properly (i.e., refer to `conftest.exe'), while it won't with 1787 # `rm'. 1788 for ac_file in conftest.exe conftest conftest.*; do 1789 test -f "$ac_file" || continue 1790 case $ac_file in 1791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1792 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1793 export ac_cv_exeext 1794 break;; 1795 * ) break;; 1796 esac 1797 done 1798 else 1799 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1800 See \`config.log' for more details." >&5 1801 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1802 See \`config.log' for more details." >&2;} 1803 { (exit 1); exit 1; }; } 1804 fi 1805 1806 rm -f conftest$ac_cv_exeext 1807 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1808 echo "${ECHO_T}$ac_cv_exeext" >&6 1809 1810 rm -f conftest.$ac_ext 1811 EXEEXT=$ac_cv_exeext 1812 ac_exeext=$EXEEXT 1813 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1814 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1815 if test "${ac_cv_objext+set}" = set; then 1816 echo $ECHO_N "(cached) $ECHO_C" >&6 1817 else 1818 cat >conftest.$ac_ext <<_ACEOF 1819 #line $LINENO "configure" 1820 /* confdefs.h. */ 1821 _ACEOF 1822 cat confdefs.h >>conftest.$ac_ext 1823 cat >>conftest.$ac_ext <<_ACEOF 1824 /* end confdefs.h. */ 1825 1826 int 1827 main () 1828 { 1829 1830 ; 1831 return 0; 1832 } 1833 _ACEOF 1834 rm -f conftest.o conftest.obj 1835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1836 (eval $ac_compile) 2>&5 1837 ac_status=$? 1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1839 (exit $ac_status); }; then 1840 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1841 case $ac_file in 1842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1844 break;; 1845 esac 1846 done 1847 else 1848 echo "$as_me: failed program was:" >&5 1849 sed 's/^/| /' conftest.$ac_ext >&5 1850 1851 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1852 See \`config.log' for more details." >&5 1853 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1854 See \`config.log' for more details." >&2;} 1855 { (exit 1); exit 1; }; } 1856 fi 1857 1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1859 fi 1860 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1861 echo "${ECHO_T}$ac_cv_objext" >&6 1862 OBJEXT=$ac_cv_objext 1863 ac_objext=$OBJEXT 1864 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1867 echo $ECHO_N "(cached) $ECHO_C" >&6 1868 else 1869 cat >conftest.$ac_ext <<_ACEOF 1870 #line $LINENO "configure" 1871 /* confdefs.h. */ 1872 _ACEOF 1873 cat confdefs.h >>conftest.$ac_ext 1874 cat >>conftest.$ac_ext <<_ACEOF 1875 /* end confdefs.h. */ 1876 1877 int 1878 main () 1879 { 1880 #ifndef __GNUC__ 1881 choke me 1882 #endif 1883 1884 ; 1885 return 0; 1886 } 1887 _ACEOF 1888 rm -f conftest.$ac_objext 1889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1890 (eval $ac_compile) 2>&5 1891 ac_status=$? 1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1893 (exit $ac_status); } && 1894 { ac_try='test -s conftest.$ac_objext' 1895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1896 (eval $ac_try) 2>&5 1897 ac_status=$? 1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1899 (exit $ac_status); }; }; then 1900 ac_compiler_gnu=yes 1901 else 1902 echo "$as_me: failed program was:" >&5 1903 sed 's/^/| /' conftest.$ac_ext >&5 1904 1905 ac_compiler_gnu=no 1906 fi 1907 rm -f conftest.$ac_objext conftest.$ac_ext 1908 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1909 1910 fi 1911 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1913 GCC=`test $ac_compiler_gnu = yes && echo yes` 1914 ac_test_CFLAGS=${CFLAGS+set} 1915 ac_save_CFLAGS=$CFLAGS 1916 CFLAGS="-g" 1917 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1919 if test "${ac_cv_prog_cc_g+set}" = set; then 1920 echo $ECHO_N "(cached) $ECHO_C" >&6 1921 else 1922 cat >conftest.$ac_ext <<_ACEOF 1923 #line $LINENO "configure" 1924 /* confdefs.h. */ 1925 _ACEOF 1926 cat confdefs.h >>conftest.$ac_ext 1927 cat >>conftest.$ac_ext <<_ACEOF 1928 /* end confdefs.h. */ 1929 1930 int 1931 main () 1932 { 1933 1934 ; 1935 return 0; 1936 } 1937 _ACEOF 1938 rm -f conftest.$ac_objext 1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1940 (eval $ac_compile) 2>&5 1941 ac_status=$? 1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1943 (exit $ac_status); } && 1944 { ac_try='test -s conftest.$ac_objext' 1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1946 (eval $ac_try) 2>&5 1947 ac_status=$? 1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1949 (exit $ac_status); }; }; then 1950 ac_cv_prog_cc_g=yes 1951 else 1952 echo "$as_me: failed program was:" >&5 1953 sed 's/^/| /' conftest.$ac_ext >&5 1954 1955 ac_cv_prog_cc_g=no 1956 fi 1957 rm -f conftest.$ac_objext conftest.$ac_ext 1958 fi 1959 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1960 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1961 if test "$ac_test_CFLAGS" = set; then 1962 CFLAGS=$ac_save_CFLAGS 1963 elif test $ac_cv_prog_cc_g = yes; then 1964 if test "$GCC" = yes; then 1965 CFLAGS="-g -O2" 1966 else 1967 CFLAGS="-g" 1968 fi 1969 else 1970 if test "$GCC" = yes; then 1971 CFLAGS="-O2" 1972 else 1973 CFLAGS= 1974 fi 1975 fi 1976 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1977 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1978 if test "${ac_cv_prog_cc_stdc+set}" = set; then 1979 echo $ECHO_N "(cached) $ECHO_C" >&6 1980 else 1981 ac_cv_prog_cc_stdc=no 1982 ac_save_CC=$CC 1983 cat >conftest.$ac_ext <<_ACEOF 1984 #line $LINENO "configure" 1985 /* confdefs.h. */ 1986 _ACEOF 1987 cat confdefs.h >>conftest.$ac_ext 1988 cat >>conftest.$ac_ext <<_ACEOF 1989 /* end confdefs.h. */ 1990 #include <stdarg.h> 1991 #include <stdio.h> 1992 #include <sys/types.h> 1993 #include <sys/stat.h> 1994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1995 struct buf { int x; }; 1996 FILE * (*rcsopen) (struct buf *, struct stat *, int); 1997 static char *e (p, i) 1998 char **p; 1999 int i; 2000 { 2001 return p[i]; 2002 } 2003 static char *f (char * (*g) (char **, int), char **p, ...) 2004 { 2005 char *s; 2006 va_list v; 2007 va_start (v,p); 2008 s = g (p, va_arg (v,int)); 2009 va_end (v); 2010 return s; 2011 } 2012 int test (int i, double x); 2013 struct s1 {int (*f) (int a);}; 2014 struct s2 {int (*f) (double a);}; 2015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2016 int argc; 2017 char **argv; 2018 int 2019 main () 2020 { 2021 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2022 ; 2023 return 0; 2024 } 2025 _ACEOF 2026 # Don't try gcc -ansi; that turns off useful extensions and 2027 # breaks some systems' header files. 2028 # AIX -qlanglvl=ansi 2029 # Ultrix and OSF/1 -std1 2030 # HP-UX 10.20 and later -Ae 2031 # HP-UX older versions -Aa -D_HPUX_SOURCE 2032 # SVR4 -Xc -D__EXTENSIONS__ 2033 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2034 do 2035 CC="$ac_save_CC $ac_arg" 2036 rm -f conftest.$ac_objext 2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2038 (eval $ac_compile) 2>&5 2039 ac_status=$? 2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2041 (exit $ac_status); } && 2042 { ac_try='test -s conftest.$ac_objext' 2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2044 (eval $ac_try) 2>&5 2045 ac_status=$? 2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2047 (exit $ac_status); }; }; then 2048 ac_cv_prog_cc_stdc=$ac_arg 2049 break 2050 else 2051 echo "$as_me: failed program was:" >&5 2052 sed 's/^/| /' conftest.$ac_ext >&5 2053 2054 fi 2055 rm -f conftest.$ac_objext 2056 done 2057 rm -f conftest.$ac_ext conftest.$ac_objext 2058 CC=$ac_save_CC 2059 2060 fi 2061 2062 case "x$ac_cv_prog_cc_stdc" in 2063 x|xno) 2064 echo "$as_me:$LINENO: result: none needed" >&5 2065 echo "${ECHO_T}none needed" >&6 ;; 2066 *) 2067 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2068 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2069 CC="$CC $ac_cv_prog_cc_stdc" ;; 2070 esac 2071 2072 # Some people use a C++ compiler to compile C. Since we use `exit', 2073 # in C++ we need to declare it. In case someone uses the same compiler 2074 # for both compiling C and C++ we need to have the C++ compiler decide 2075 # the declaration of exit, since it's the most demanding environment. 2076 cat >conftest.$ac_ext <<_ACEOF 2077 #ifndef __cplusplus 2078 choke me 2079 #endif 2080 _ACEOF 2081 rm -f conftest.$ac_objext 2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2083 (eval $ac_compile) 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); } && 2087 { ac_try='test -s conftest.$ac_objext' 2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2089 (eval $ac_try) 2>&5 2090 ac_status=$? 2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2092 (exit $ac_status); }; }; then 2093 for ac_declaration in \ 2094 ''\ 2095 '#include <stdlib.h>' \ 2096 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2097 'extern "C" void std::exit (int); using std::exit;' \ 2098 'extern "C" void exit (int) throw ();' \ 2099 'extern "C" void exit (int);' \ 2100 'void exit (int);' 2101 do 2102 cat >conftest.$ac_ext <<_ACEOF 2103 #line $LINENO "configure" 2104 /* confdefs.h. */ 2105 _ACEOF 2106 cat confdefs.h >>conftest.$ac_ext 2107 cat >>conftest.$ac_ext <<_ACEOF 2108 /* end confdefs.h. */ 2109 #include <stdlib.h> 2110 $ac_declaration 2111 int 2112 main () 2113 { 2114 exit (42); 2115 ; 2116 return 0; 2117 } 2118 _ACEOF 2119 rm -f conftest.$ac_objext 2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2121 (eval $ac_compile) 2>&5 2122 ac_status=$? 2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2124 (exit $ac_status); } && 2125 { ac_try='test -s conftest.$ac_objext' 2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2127 (eval $ac_try) 2>&5 2128 ac_status=$? 2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2130 (exit $ac_status); }; }; then 2131 : 2132 else 2133 echo "$as_me: failed program was:" >&5 2134 sed 's/^/| /' conftest.$ac_ext >&5 2135 2136 continue 2137 fi 2138 rm -f conftest.$ac_objext conftest.$ac_ext 2139 cat >conftest.$ac_ext <<_ACEOF 2140 #line $LINENO "configure" 2141 /* confdefs.h. */ 2142 _ACEOF 2143 cat confdefs.h >>conftest.$ac_ext 2144 cat >>conftest.$ac_ext <<_ACEOF 2145 /* end confdefs.h. */ 2146 $ac_declaration 2147 int 2148 main () 2149 { 2150 exit (42); 2151 ; 2152 return 0; 2153 } 2154 _ACEOF 2155 rm -f conftest.$ac_objext 2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2157 (eval $ac_compile) 2>&5 2158 ac_status=$? 2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2160 (exit $ac_status); } && 2161 { ac_try='test -s conftest.$ac_objext' 2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2163 (eval $ac_try) 2>&5 2164 ac_status=$? 2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2166 (exit $ac_status); }; }; then 2167 break 2168 else 2169 echo "$as_me: failed program was:" >&5 2170 sed 's/^/| /' conftest.$ac_ext >&5 2171 2172 fi 2173 rm -f conftest.$ac_objext conftest.$ac_ext 2174 done 2175 rm -f conftest* 2176 if test -n "$ac_declaration"; then 2177 echo '#ifdef __cplusplus' >>confdefs.h 2178 echo $ac_declaration >>confdefs.h 2179 echo '#endif' >>confdefs.h 2180 fi 2181 2182 else 2183 echo "$as_me: failed program was:" >&5 2184 sed 's/^/| /' conftest.$ac_ext >&5 2185 2186 fi 2187 rm -f conftest.$ac_objext conftest.$ac_ext 2188 ac_ext=c 2189 ac_cpp='$CPP $CPPFLAGS' 2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2193 2194 2195 APACHE20_VERSION=2.0.40 2196 APACHE13_VERSION=1.3.20 2197 ac_aux_dir= 2198 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2199 if test -f $ac_dir/install-sh; then 2200 ac_aux_dir=$ac_dir 2201 ac_install_sh="$ac_aux_dir/install-sh -c" 2202 break 2203 elif test -f $ac_dir/install.sh; then 2204 ac_aux_dir=$ac_dir 2205 ac_install_sh="$ac_aux_dir/install.sh -c" 2206 break 2207 elif test -f $ac_dir/shtool; then 2208 ac_aux_dir=$ac_dir 2209 ac_install_sh="$ac_aux_dir/shtool install -c" 2210 break 2211 fi 2212 done 2213 if test -z "$ac_aux_dir"; then 2214 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2215 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2216 { (exit 1); exit 1; }; } 2217 fi 2218 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2219 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2220 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2221 2222 # Make sure we can run config.sub. 2223 $ac_config_sub sun4 >/dev/null 2>&1 || 2224 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2225 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2226 { (exit 1); exit 1; }; } 2227 2228 echo "$as_me:$LINENO: checking build system type" >&5 2229 echo $ECHO_N "checking build system type... $ECHO_C" >&6 2230 if test "${ac_cv_build+set}" = set; then 2231 echo $ECHO_N "(cached) $ECHO_C" >&6 2232 else 2233 ac_cv_build_alias=$build_alias 2234 test -z "$ac_cv_build_alias" && 2235 ac_cv_build_alias=`$ac_config_guess` 2236 test -z "$ac_cv_build_alias" && 2237 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2238 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2239 { (exit 1); exit 1; }; } 2240 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2241 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2242 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2243 { (exit 1); exit 1; }; } 2244 2245 fi 2246 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2247 echo "${ECHO_T}$ac_cv_build" >&6 2248 build=$ac_cv_build 2249 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2250 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2251 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2252 2253 2254 echo "$as_me:$LINENO: checking host system type" >&5 2255 echo $ECHO_N "checking host system type... $ECHO_C" >&6 2256 if test "${ac_cv_host+set}" = set; then 2257 echo $ECHO_N "(cached) $ECHO_C" >&6 2258 else 2259 ac_cv_host_alias=$host_alias 2260 test -z "$ac_cv_host_alias" && 2261 ac_cv_host_alias=$ac_cv_build_alias 2262 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2263 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2264 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2265 { (exit 1); exit 1; }; } 2266 2267 fi 2268 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2269 echo "${ECHO_T}$ac_cv_host" >&6 2270 host=$ac_cv_host 2271 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2272 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2273 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2274 2275 2276 echo "$as_me:$LINENO: checking target system type" >&5 2277 echo $ECHO_N "checking target system type... $ECHO_C" >&6 2278 if test "${ac_cv_target+set}" = set; then 2279 echo $ECHO_N "(cached) $ECHO_C" >&6 2280 else 2281 ac_cv_target_alias=$target_alias 2282 test "x$ac_cv_target_alias" = "x" && 2283 ac_cv_target_alias=$ac_cv_host_alias 2284 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 2285 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 2286 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 2287 { (exit 1); exit 1; }; } 2288 2289 fi 2290 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2291 echo "${ECHO_T}$ac_cv_target" >&6 2292 target=$ac_cv_target 2293 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2294 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2295 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2296 2297 2298 # The aliases save the names the user supplied, while $host etc. 2299 # will get canonicalized. 2300 test -n "$target_alias" && 2301 test "$program_prefix$program_suffix$program_transform_name" = \ 2302 NONENONEs,x,x, && 2303 program_prefix=${target_alias}- 2304 2305 2306 # Check whether --with-apxs or --without-apxs was given. 2307 if test "${with_apxs+set}" = set; then 2308 withval="$with_apxs" 2309 apxs_prefix="$withval" 2310 else 2311 apxs_prefix="/usr" 2312 2313 fi; 2314 2315 # Check whether --enable-apachetest or --disable-apachetest was given. 2316 if test "${enable_apachetest+set}" = set; then 2317 enableval="$enable_apachetest" 2318 2319 else 2320 enable_apachetest=yes 2321 2322 fi; 2323 2324 if test -x $apxs_prefix -a ! -d $apxs_prefix; then 2325 APXS_BIN=$apxs_prefix 2326 else 2327 test_paths="$apxs_prefix:$apxs_prefix/bin:$apxs_prefix/sbin" 2328 test_paths="${test_paths}:/usr/bin:/usr/sbin" 2329 test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin:/usr/local/apache2/bin" 2330 # Extract the first word of "apxs", so it can be a program name with args. 2331 set dummy apxs; ac_word=$2 2332 echo "$as_me:$LINENO: checking for $ac_word" >&5 2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2334 if test "${ac_cv_path_APXS_BIN+set}" = set; then 2335 echo $ECHO_N "(cached) $ECHO_C" >&6 2336 else 2337 case $APXS_BIN in 2338 [\\/]* | ?:[\\/]*) 2339 ac_cv_path_APXS_BIN="$APXS_BIN" # Let the user override the test with a path. 2340 ;; 2341 *) 2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343 for as_dir in $test_paths 2344 do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_exec_ext in '' $ac_executable_extensions; do 2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2349 ac_cv_path_APXS_BIN="$as_dir/$ac_word$ac_exec_ext" 2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2351 break 2 2352 fi 2353 done 2354 done 2355 2356 test -z "$ac_cv_path_APXS_BIN" && ac_cv_path_APXS_BIN="no" 2357 ;; 2358 esac 2359 fi 2360 APXS_BIN=$ac_cv_path_APXS_BIN 2361 2362 if test -n "$APXS_BIN"; then 2363 echo "$as_me:$LINENO: result: $APXS_BIN" >&5 2364 echo "${ECHO_T}$APXS_BIN" >&6 2365 else 2366 echo "$as_me:$LINENO: result: no" >&5 2367 echo "${ECHO_T}no" >&6 2368 fi 2369 2370 fi 2371 min_apache13_version=$APACHE13_VERSION 2372 min_apache20_version=$APACHE20_VERSION 2373 no_apxs="" 2374 if test "$APXS_BIN" = "no"; then 2375 { { echo "$as_me:$LINENO: error: *** The apxs binary installed by apache could not be found!" >&5 2376 echo "$as_me: error: *** The apxs binary installed by apache could not be found!" >&2;} 2377 { (exit 1); exit 1; }; } 2378 { { echo "$as_me:$LINENO: error: *** Use the --with-apxs option with the full path to apxs" >&5 2379 echo "$as_me: error: *** Use the --with-apxs option with the full path to apxs" >&2;} 2380 { (exit 1); exit 1; }; } 2381 else 2382 AP_INCLUDES="-I`$APXS_BIN -q INCLUDEDIR 2>/dev/null`" 2383 AP_INCLUDEDIR="`$APXS_BIN -q INCLUDEDIR 2>/dev/null`" 2384 2385 AP_PREFIX="`$APXS_BIN -q prefix 2>/dev/null`" 2386 2387 AP_BINDIR="`$APXS_BIN -q bindir 2>/dev/null`" 2388 AP_SBINDIR="`$APXS_BIN -q sbindir 2>/dev/null`" 2389 AP_SYSCONFDIR="`$APXS_BIN -q sysconfdir 2>/dev/null`" 2390 2391 APXS_CFLAGS="" 2392 for flag in CFLAGS EXTRA_CFLAGS EXTRA_CPPFLAGS NOTEST_CFLAGS; do 2393 APXS_CFLAGS="$APXS_CFLAGS `$APXS_BIN -q $flag 2>/dev/null`" 2394 done 2395 2396 AP_CPPFLAGS="$APXS_CPPFLAGS $AP_INCLUDES" 2397 AP_CFLAGS="$APXS_CFLAGS $AP_INCLUDES" 2398 2399 AP_LIBEXECDIR=`$APXS_BIN -q LIBEXECDIR 2>/dev/null` 2400 2401 if test "x$enable_apachetest" = "xyes" ; then 2402 if test "$min_apache20_version" != "no"; then 2403 APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-1-config" 2404 if test ! -x $APR_CONFIG; then 2405 APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-config" 2406 fi 2407 APR_INCLUDES=`$APR_CONFIG --includes 2>/dev/null` 2408 APR_VERSION=`$APR_CONFIG --version 2>/dev/null` 2409 APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-1-config" 2410 if test ! -x $APU_CONFIG; then 2411 APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-config" 2412 fi 2413 APU_INCLUDES=`$APU_CONFIG --includes 2>/dev/null` 2414 APU_VERSION=`$APU_CONFIG --version 2>/dev/null` 2415 2416 echo "$as_me:$LINENO: checking for Apache 2.0 version >= $min_apache20_version" >&5 2417 echo $ECHO_N "checking for Apache 2.0 version >= $min_apache20_version... $ECHO_C" >&6 2418 2419 releasetest=20 2420 min_apache_version="$min_apache20_version" 2421 no_apache="" 2422 ac_save_CFLAGS="$CFLAGS" 2423 CFLAGS="$CFLAGS $AP_CFLAGS" 2424 if test $releasetest -eq 20; then 2425 CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES" 2426 fi 2427 if test "$cross_compiling" = yes; then 2428 echo $ac_n "cross compiling; assumed OK... $ac_c" 2429 else 2430 cat >conftest.$ac_ext <<_ACEOF 2431 #line $LINENO "configure" 2432 /* confdefs.h. */ 2433 _ACEOF 2434 cat confdefs.h >>conftest.$ac_ext 2435 cat >>conftest.$ac_ext <<_ACEOF 2436 /* end confdefs.h. */ 2437 2438 #include <stdio.h> 2439 #include <stdlib.h> 2440 #include <string.h> 2441 #include "httpd.h" 2442 2443 #ifndef AP_SERVER_BASEREVISION 2444 #define AP_SERVER_BASEREVISION SERVER_BASEREVISION 2445 #endif 2446 2447 char* my_strdup (char *str) 2448 { 2449 char *new_str; 2450 2451 if (str) { 2452 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 2453 strcpy (new_str, str); 2454 } else 2455 new_str = NULL; 2456 2457 return new_str; 2458 } 2459 2460 int main (int argc, char *argv[]) 2461 { 2462 int major1, minor1, micro1; 2463 int major2, minor2, micro2; 2464 char *tmp_version; 2465 2466 { FILE *fp = fopen("conf.apachetest", "a"); if ( fp ) fclose(fp); } 2467 2468 tmp_version = my_strdup("$min_apache_version"); 2469 if (sscanf(tmp_version, "%d.%d.%d", &major1, &minor1, µ1) != 3) { 2470 printf("%s, bad version string\n", "$min_apache_version"); 2471 exit(1); 2472 } 2473 tmp_version = my_strdup(AP_SERVER_BASEREVISION); 2474 if (sscanf(tmp_version, "%d.%d.%d", &major2, &minor2, µ2) != 3) { 2475 printf("%s, bad version string\n", AP_SERVER_BASEREVISION); 2476 exit(1); 2477 } 2478 2479 if ( (major2 == major1) && 2480 ( (minor2 > minor1) || 2481 ((minor2 == minor1) && (micro2 >= micro1)) ) ) { 2482 exit(0); 2483 } else { 2484 exit(1); 2485 } 2486 } 2487 2488 2489 _ACEOF 2490 rm -f conftest$ac_exeext 2491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2492 (eval $ac_link) 2>&5 2493 ac_status=$? 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2497 (eval $ac_try) 2>&5 2498 ac_status=$? 2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2500 (exit $ac_status); }; }; then 2501 : 2502 else 2503 echo "$as_me: program exited with status $ac_status" >&5 2504 echo "$as_me: failed program was:" >&5 2505 sed 's/^/| /' conftest.$ac_ext >&5 2506 2507 ( exit $ac_status ) 2508 no_apache=yes 2509 fi 2510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2511 fi 2512 CFLAGS="$ac_save_CFLAGS" 2513 2514 if test "x$no_apache" = x ; then 2515 echo "$as_me:$LINENO: result: yes" >&5 2516 echo "${ECHO_T}yes" >&6 2517 2518 cat >>confdefs.h <<\_ACEOF 2519 #define WITH_APACHE20 1 2520 _ACEOF 2521 2522 AP_VERSION="2.0" 2523 APXS_EXTENSION=.la 2524 AP_CFLAGS="$AP_CFLAGS $APU_INCLUDES $APR_INCLUDES" 2525 AP_CPPFLAGS="$AP_CPPFLAGS $APU_INCLUDES $APR_INCLUDES" 2526 AP_DEFS="-DWITH_APACHE20" 2527 : 2528 else 2529 if test -f conf.apachetest ; then 2530 : 2531 else 2532 echo "*** Could not run Apache test program, checking why..." 2533 CFLAGS="$CFLAGS $AP_CFLAGS" 2534 if test $releasetest -eq 20; then 2535 CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES" 2536 fi 2537 cat >conftest.$ac_ext <<_ACEOF 2538 #line $LINENO "configure" 2539 /* confdefs.h. */ 2540 _ACEOF 2541 cat confdefs.h >>conftest.$ac_ext 2542 cat >>conftest.$ac_ext <<_ACEOF 2543 /* end confdefs.h. */ 2544 2545 #include <stdio.h> 2546 #include "httpd.h" 2547 2548 int main(int argc, char *argv[]) 2549 { return 0; } 2550 #undef main 2551 #define main K_and_R_C_main 2552 2553 int 2554 main () 2555 { 2556 return 0; 2557 ; 2558 return 0; 2559 } 2560 _ACEOF 2561 rm -f conftest.$ac_objext conftest$ac_exeext 2562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2563 (eval $ac_link) 2>&5 2564 ac_status=$? 2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2566 (exit $ac_status); } && 2567 { ac_try='test -s conftest$ac_exeext' 2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2569 (eval $ac_try) 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); }; }; then 2573 echo "*** The test program compiled, but failed to run. Check config.log" 2574 else 2575 echo "$as_me: failed program was:" >&5 2576 sed 's/^/| /' conftest.$ac_ext >&5 2577 2578 echo "*** The test program failed to compile or link. Check config.log" 2579 fi 2580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2581 CFLAGS="$ac_save_CFLAGS" 2582 fi 2583 echo "$as_me:$LINENO: result: no" >&5 2584 echo "${ECHO_T}no" >&6 2585 if test "x$min_apache13_version" = "xno"; then 2586 { { echo "$as_me:$LINENO: error: *** The correct version Apache was not found!" >&5 2587 echo "$as_me: error: *** The correct version Apache was not found!" >&2;} 2588 { (exit 1); exit 1; }; } 2589 { { echo "$as_me:$LINENO: error: *** You need either Apache 1.3 version $APACHE13_VERSION or greater" >&5 2590 echo "$as_me: error: *** You need either Apache 1.3 version $APACHE13_VERSION or greater" >&2;} 2591 { (exit 1); exit 1; }; } 2592 { { echo "$as_me:$LINENO: error: *** or Apache 2.0/2.1 version $APACHE20_VERSION or greater!" >&5 2593 echo "$as_me: error: *** or Apache 2.0/2.1 version $APACHE20_VERSION or greater!" >&2;} 2594 { (exit 1); exit 1; }; } 2595 2596 fi 2597 2598 fi 2599 rm -f conf.apachetest 2600 2601 fi 2602 if test "$min_apache13_version" != "no" -a "x$AP_VERSION" = "x"; then 2603 APR_INCLUDES="" 2604 APR_VERSION="" 2605 APU_INCLUDES="" 2606 APU_VERSION="" 2607 echo "$as_me:$LINENO: checking for Apache 1.3 version >= $min_apache13_version" >&5 2608 echo $ECHO_N "checking for Apache 1.3 version >= $min_apache13_version... $ECHO_C" >&6 2609 2610 releasetest=13 2611 min_apache_version="$min_apache13_version" 2612 no_apache="" 2613 ac_save_CFLAGS="$CFLAGS" 2614 CFLAGS="$CFLAGS $AP_CFLAGS" 2615 if test $releasetest -eq 20; then 2616 CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES" 2617 fi 2618 if test "$cross_compiling" = yes; then 2619 echo $ac_n "cross compiling; assumed OK... $ac_c" 2620 else 2621 cat >conftest.$ac_ext <<_ACEOF 2622 #line $LINENO "configure" 2623 /* confdefs.h. */ 2624 _ACEOF 2625 cat confdefs.h >>conftest.$ac_ext 2626 cat >>conftest.$ac_ext <<_ACEOF 2627 /* end confdefs.h. */ 2628 2629 #include <stdio.h> 2630 #include <stdlib.h> 2631 #include <string.h> 2632 #include "httpd.h" 2633 2634 #ifndef AP_SERVER_BASEREVISION 2635 #define AP_SERVER_BASEREVISION SERVER_BASEREVISION 2636 #endif 2637 2638 char* my_strdup (char *str) 2639 { 2640 char *new_str; 2641 2642 if (str) { 2643 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 2644 strcpy (new_str, str); 2645 } else 2646 new_str = NULL; 2647 2648 return new_str; 2649 } 2650 2651 int main (int argc, char *argv[]) 2652 { 2653 int major1, minor1, micro1; 2654 int major2, minor2, micro2; 2655 char *tmp_version; 2656 2657 { FILE *fp = fopen("conf.apachetest", "a"); if ( fp ) fclose(fp); } 2658 2659 tmp_version = my_strdup("$min_apache_version"); 2660 if (sscanf(tmp_version, "%d.%d.%d", &major1, &minor1, µ1) != 3) { 2661 printf("%s, bad version string\n", "$min_apache_version"); 2662 exit(1); 2663 } 2664 tmp_version = my_strdup(AP_SERVER_BASEREVISION); 2665 if (sscanf(tmp_version, "%d.%d.%d", &major2, &minor2, µ2) != 3) { 2666 printf("%s, bad version string\n", AP_SERVER_BASEREVISION); 2667 exit(1); 2668 } 2669 2670 if ( (major2 == major1) && 2671 ( (minor2 > minor1) || 2672 ((minor2 == minor1) && (micro2 >= micro1)) ) ) { 2673 exit(0); 2674 } else { 2675 exit(1); 2676 } 2677 } 2678 2679 2680 _ACEOF 2681 rm -f conftest$ac_exeext 2682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2683 (eval $ac_link) 2>&5 2684 ac_status=$? 2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2688 (eval $ac_try) 2>&5 2689 ac_status=$? 2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2691 (exit $ac_status); }; }; then 2692 : 2693 else 2694 echo "$as_me: program exited with status $ac_status" >&5 2695 echo "$as_me: failed program was:" >&5 2696 sed 's/^/| /' conftest.$ac_ext >&5 2697 2698 ( exit $ac_status ) 2699 no_apache=yes 2700 fi 2701 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2702 fi 2703 CFLAGS="$ac_save_CFLAGS" 2704 2705 if test "x$no_apache" = x ; then 2706 echo "$as_me:$LINENO: result: yes" >&5 2707 echo "${ECHO_T}yes" >&6 2708 2709 cat >>confdefs.h <<\_ACEOF 2710 #define WITH_APACHE13 1 2711 _ACEOF 2712 2713 AP_VERSION="1.3" 2714 APXS_EXTENSION=.so 2715 AP_CFLAGS="-g $AP_CFLAGS" 2716 AP_DEFS="-DWITH_APACHE13" 2717 : 2718 else 2719 if test -f conf.apachetest ; then 2720 : 2721 else 2722 echo "*** Could not run Apache test program, checking why..." 2723 CFLAGS="$CFLAGS $AP_CFLAGS" 2724 if test $releasetest -eq 20; then 2725 CFLAGS="$CFLAGS $APU_INCLUDES $APR_INCLUDES" 2726 fi 2727 cat >conftest.$ac_ext <<_ACEOF 2728 #line $LINENO "configure" 2729 /* confdefs.h. */ 2730 _ACEOF 2731 cat confdefs.h >>conftest.$ac_ext 2732 cat >>conftest.$ac_ext <<_ACEOF 2733 /* end confdefs.h. */ 2734 2735 #include <stdio.h> 2736 #include "httpd.h" 2737 2738 int main(int argc, char *argv[]) 2739 { return 0; } 2740 #undef main 2741 #define main K_and_R_C_main 2742 2743 int 2744 main () 2745 { 2746 return 0; 2747 ; 2748 return 0; 2749 } 2750 _ACEOF 2751 rm -f conftest.$ac_objext conftest$ac_exeext 2752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2753 (eval $ac_link) 2>&5 2754 ac_status=$? 2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2756 (exit $ac_status); } && 2757 { ac_try='test -s conftest$ac_exeext' 2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2759 (eval $ac_try) 2>&5 2760 ac_status=$? 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); }; }; then 2763 echo "*** The test program compiled, but failed to run. Check config.log" 2764 else 2765 echo "$as_me: failed program was:" >&5 2766 sed 's/^/| /' conftest.$ac_ext >&5 2767 2768 echo "*** The test program failed to compile or link. Check config.log" 2769 fi 2770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2771 CFLAGS="$ac_save_CFLAGS" 2772 fi 2773 echo "$as_me:$LINENO: result: no" >&5 2774 echo "${ECHO_T}no" >&6 2775 { { echo "$as_me:$LINENO: error: *** The correct version Apache was not found!" >&5 2776 echo "$as_me: error: *** The correct version Apache was not found!" >&2;} 2777 { (exit 1); exit 1; }; } 2778 { { echo "$as_me:$LINENO: error: *** You need either Apache 1.3 version $APACHE13_VERSION or greater" >&5 2779 echo "$as_me: error: *** You need either Apache 1.3 version $APACHE13_VERSION or greater" >&2;} 2780 { (exit 1); exit 1; }; } 2781 { { echo "$as_me:$LINENO: error: *** or Apache 2.0/2.1 version $APACHE20_VERSION or greater!" >&5 2782 echo "$as_me: error: *** or Apache 2.0/2.1 version $APACHE20_VERSION or greater!" >&2;} 2783 { (exit 1); exit 1; }; } 2784 2785 2786 fi 2787 rm -f conf.apachetest 2788 2789 fi 2790 fi 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 fi 2808 2809 2810 if test $AP_VERSION = "2.0"; then 2811 WANT_LOGIO_MOD=1 2812 else 2813 WANT_LOGIO_MOD=0 2814 fi 2815 2816 2817 2818 # Check whether --with-mysql or --without-mysql was given. 2819 if test "${with_mysql+set}" = set; then 2820 withval="$with_mysql" 2821 mysql_prefix="$withval" 2822 fi; 2823 # Check whether --enable-mysqltest or --disable-mysqltest was given. 2824 if test "${enable_mysqltest+set}" = set; then 2825 enableval="$enable_mysqltest" 2826 2827 else 2828 enable_mysqltest=yes 2829 fi; 2830 2831 2832 2833 testdirs="/usr /usr/local /usr/local /opt" 2834 if test "x$mysql_prefix" != "x" && test "x$mysql_prefix" != "xyes"; then 2835 testdirs="${testdirs} ${mysql_prefix}" 2836 fi 2837 for dir in $testdirs; do 2838 if test -e $dir/include/mysql.h; then 2839 MYSQL_CFLAGS=-I${dir}/include 2840 MYSQL_LDFLAGS=-L${dir}/lib${libsuff} 2841 MYSQL_LIBS="-lmysqlclient -lm -lz" 2842 break 2843 elif test -e $dir/include/mysql/mysql.h; then 2844 MYSQL_CFLAGS=-I${dir}/include/mysql 2845 MYSQL_LDFLAGS=-L${dir}/lib${libsuff}/mysql 2846 MYSQL_LIBS="-lmysqlclient -lm -lz" 2847 break 2848 fi 2849 done 2850 if test -z $MYSQL_CFLAGS; then 2851 echo "*** MySQL development files could not be found!" 2852 fi 2853 ac_save_CFLAGS=$CFLAGS 2854 ac_save_LDFLAGS=$LDFLAGS 2855 CFLAGS="$CFLAGS $MYSQL_CFLAGS" 2856 LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS" 2857 2858 echo "$as_me:$LINENO: checking for floor in -lm" >&5 2859 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 2860 if test "${ac_cv_lib_m_floor+set}" = set; then 2861 echo $ECHO_N "(cached) $ECHO_C" >&6 2862 else 2863 ac_check_lib_save_LIBS=$LIBS 2864 LIBS="-lm $LIBS" 2865 cat >conftest.$ac_ext <<_ACEOF 2866 #line $LINENO "configure" 2867 /* confdefs.h. */ 2868 _ACEOF 2869 cat confdefs.h >>conftest.$ac_ext 2870 cat >>conftest.$ac_ext <<_ACEOF 2871 /* end confdefs.h. */ 2872 2873 /* Override any gcc2 internal prototype to avoid an error. */ 2874 #ifdef __cplusplus 2875 extern "C" 2876 #endif 2877 /* We use char because int might match the return type of a gcc2 2878 builtin and then its argument prototype would still apply. */ 2879 char floor (); 2880 int 2881 main () 2882 { 2883 floor (); 2884 ; 2885 return 0; 2886 } 2887 _ACEOF 2888 rm -f conftest.$ac_objext conftest$ac_exeext 2889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2890 (eval $ac_link) 2>&5 2891 ac_status=$? 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2893 (exit $ac_status); } && 2894 { ac_try='test -s conftest$ac_exeext' 2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2896 (eval $ac_try) 2>&5 2897 ac_status=$? 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); }; }; then 2900 ac_cv_lib_m_floor=yes 2901 else 2902 echo "$as_me: failed program was:" >&5 2903 sed 's/^/| /' conftest.$ac_ext >&5 2904 2905 ac_cv_lib_m_floor=no 2906 fi 2907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2908 LIBS=$ac_check_lib_save_LIBS 2909 fi 2910 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 2911 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 2912 if test $ac_cv_lib_m_floor = yes; then 2913 cat >>confdefs.h <<_ACEOF 2914 #define HAVE_LIBM 1 2915 _ACEOF 2916 2917 LIBS="-lm $LIBS" 2918 2919 fi 2920 2921 2922 echo "$as_me:$LINENO: checking for gzclose in -lz" >&5 2923 echo $ECHO_N "checking for gzclose in -lz... $ECHO_C" >&6 2924 if test "${ac_cv_lib_z_gzclose+set}" = set; then 2925 echo $ECHO_N "(cached) $ECHO_C" >&6 2926 else 2927 ac_check_lib_save_LIBS=$LIBS 2928 LIBS="-lz $LIBS" 2929 cat >conftest.$ac_ext <<_ACEOF 2930 #line $LINENO "configure" 2931 /* confdefs.h. */ 2932 _ACEOF 2933 cat confdefs.h >>conftest.$ac_ext 2934 cat >>conftest.$ac_ext <<_ACEOF 2935 /* end confdefs.h. */ 2936 2937 /* Override any gcc2 internal prototype to avoid an error. */ 2938 #ifdef __cplusplus 2939 extern "C" 2940 #endif 2941 /* We use char because int might match the return type of a gcc2 2942 builtin and then its argument prototype would still apply. */ 2943 char gzclose (); 2944 int 2945 main () 2946 { 2947 gzclose (); 2948 ; 2949 return 0; 2950 } 2951 _ACEOF 2952 rm -f conftest.$ac_objext conftest$ac_exeext 2953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2954 (eval $ac_link) 2>&5 2955 ac_status=$? 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); } && 2958 { ac_try='test -s conftest$ac_exeext' 2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2960 (eval $ac_try) 2>&5 2961 ac_status=$? 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); }; }; then 2964 ac_cv_lib_z_gzclose=yes 2965 else 2966 echo "$as_me: failed program was:" >&5 2967 sed 's/^/| /' conftest.$ac_ext >&5 2968 2969 ac_cv_lib_z_gzclose=no 2970 fi 2971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2972 LIBS=$ac_check_lib_save_LIBS 2973 fi 2974 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzclose" >&5 2975 echo "${ECHO_T}$ac_cv_lib_z_gzclose" >&6 2976 if test $ac_cv_lib_z_gzclose = yes; then 2977 cat >>confdefs.h <<_ACEOF 2978 #define HAVE_LIBZ 1 2979 _ACEOF 2980 2981 LIBS="-lz $LIBS" 2982 2983 fi 2984 2985 with_mysql="yes" 2986 2987 cat >>confdefs.h <<\_ACEOF 2988 #define WITH_MYSQL 1 2989 _ACEOF 2990 2991 2992 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5 2993 echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6 2994 if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then 2995 echo $ECHO_N "(cached) $ECHO_C" >&6 2996 else 2997 ac_check_lib_save_LIBS=$LIBS 2998 LIBS="-lmysqlclient $LIBS" 2999 cat >conftest.$ac_ext <<_ACEOF 3000 #line $LINENO "configure" 3001 /* confdefs.h. */ 3002 _ACEOF 3003 cat confdefs.h >>conftest.$ac_ext 3004 cat >>conftest.$ac_ext <<_ACEOF 3005 /* end confdefs.h. */ 3006 3007 /* Override any gcc2 internal prototype to avoid an error. */ 3008 #ifdef __cplusplus 3009 extern "C" 3010 #endif 3011 /* We use char because int might match the return type of a gcc2 3012 builtin and then its argument prototype would still apply. */ 3013 char mysql_init (); 3014 int 3015 main () 3016 { 3017 mysql_init (); 3018 ; 3019 return 0; 3020 } 3021 _ACEOF 3022 rm -f conftest.$ac_objext conftest$ac_exeext 3023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3024 (eval $ac_link) 2>&5 3025 ac_status=$? 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); } && 3028 { ac_try='test -s conftest$ac_exeext' 3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3030 (eval $ac_try) 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; }; then 3034 ac_cv_lib_mysqlclient_mysql_init=yes 3035 else 3036 echo "$as_me: failed program was:" >&5 3037 sed 's/^/| /' conftest.$ac_ext >&5 3038 3039 ac_cv_lib_mysqlclient_mysql_init=no 3040 fi 3041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3042 LIBS=$ac_check_lib_save_LIBS 3043 fi 3044 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 3045 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6 3046 if test $ac_cv_lib_mysqlclient_mysql_init = yes; then 3047 cat >>confdefs.h <<_ACEOF 3048 #define HAVE_LIBMYSQLCLIENT 1 3049 _ACEOF 3050 3051 LIBS="-lmysqlclient $LIBS" 3052 3053 else 3054 { { echo "$as_me:$LINENO: error: libmysqlclient is needed for MySQL support" >&5 3055 echo "$as_me: error: libmysqlclient is needed for MySQL support" >&2;} 3056 { (exit 1); exit 1; }; } 3057 fi 3058 3059 3060 for ac_func in mysql_real_escape_string 3061 do 3062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3063 echo "$as_me:$LINENO: checking for $ac_func" >&5 3064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3065 if eval "test \"\${$as_ac_var+set}\" = set"; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067 else 3068 cat >conftest.$ac_ext <<_ACEOF 3069 #line $LINENO "configure" 3070 /* confdefs.h. */ 3071 _ACEOF 3072 cat confdefs.h >>conftest.$ac_ext 3073 cat >>conftest.$ac_ext <<_ACEOF 3074 /* end confdefs.h. */ 3075 /* System header to define __stub macros and hopefully few prototypes, 3076 which can conflict with char $ac_func (); below. 3077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3078 <limits.h> exists even on freestanding compilers. */ 3079 #ifdef __STDC__ 3080 # include <limits.h> 3081 #else 3082 # include <assert.h> 3083 #endif 3084 /* Override any gcc2 internal prototype to avoid an error. */ 3085 #ifdef __cplusplus 3086 extern "C" 3087 { 3088 #endif 3089 /* We use char because int might match the return type of a gcc2 3090 builtin and then its argument prototype would still apply. */ 3091 char $ac_func (); 3092 /* The GNU C library defines this for functions which it implements 3093 to always fail with ENOSYS. Some functions are actually named 3094 something starting with __ and the normal name is an alias. */ 3095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3096 choke me 3097 #else 3098 char (*f) () = $ac_func; 3099 #endif 3100 #ifdef __cplusplus 3101 } 3102 #endif 3103 3104 int 3105 main () 3106 { 3107 return f != $ac_func; 3108 ; 3109 return 0; 3110 } 3111 _ACEOF 3112 rm -f conftest.$ac_objext conftest$ac_exeext 3113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3114 (eval $ac_link) 2>&5 3115 ac_status=$? 3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3117 (exit $ac_status); } && 3118 { ac_try='test -s conftest$ac_exeext' 3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3120 (eval $ac_try) 2>&5 3121 ac_status=$? 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); }; }; then 3124 eval "$as_ac_var=yes" 3125 else 3126 echo "$as_me: failed program was:" >&5 3127 sed 's/^/| /' conftest.$ac_ext >&5 3128 3129 eval "$as_ac_var=no" 3130 fi 3131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3132 fi 3133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3135 if test `eval echo '${'$as_ac_var'}'` = yes; then 3136 cat >>confdefs.h <<_ACEOF 3137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3138 _ACEOF 3139 3140 fi 3141 done 3142 3143 echo "$as_me:$LINENO: checking whether mysql clients can run" >&5 3144 echo $ECHO_N "checking whether mysql clients can run... $ECHO_C" >&6 3145 if test "$cross_compiling" = yes; then 3146 echo $ac_n "cross compiling; assumed OK.... $ac_c" 3147 else 3148 cat >conftest.$ac_ext <<_ACEOF 3149 #line $LINENO "configure" 3150 /* confdefs.h. */ 3151 _ACEOF 3152 cat confdefs.h >>conftest.$ac_ext 3153 cat >>conftest.$ac_ext <<_ACEOF 3154 /* end confdefs.h. */ 3155 3156 #include <stdio.h> 3157 #include <mysql.h> 3158 int main(void) 3159 { 3160 MYSQL *a = mysql_init(NULL); 3161 return 0; 3162 } 3163 3164 _ACEOF 3165 rm -f conftest$ac_exeext 3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3167 (eval $ac_link) 2>&5 3168 ac_status=$? 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3172 (eval $ac_try) 2>&5 3173 ac_status=$? 3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3175 (exit $ac_status); }; }; then 3176 : 3177 else 3178 echo "$as_me: program exited with status $ac_status" >&5 3179 echo "$as_me: failed program was:" >&5 3180 sed 's/^/| /' conftest.$ac_ext >&5 3181 3182 ( exit $ac_status ) 3183 no_mysql=yes 3184 fi 3185 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3186 fi 3187 CFLAGS=$ac_save_CFLAGS 3188 LDFLAGS=$ac_save_LDFLAGS 3189 if test "x$no_mysql" = x; then 3190 echo "$as_me:$LINENO: result: yes" >&5 3191 echo "${ECHO_T}yes" >&6 3192 WANT_MYSQL_MOD=1 3193 else 3194 echo "$as_me:$LINENO: result: no" >&5 3195 echo "${ECHO_T}no" >&6 3196 echo "*** MySQL could not be found ***" 3197 MYSQL_CFLAGS="" 3198 MYSQL_LDFLAGS="" 3199 MYSQL_LIBS="" 3200 { echo "$as_me:$LINENO: WARNING: *** Mysql client libraries not found!" >&5 3201 echo "$as_me: WARNING: *** Mysql client libraries not found!" >&2;} 3202 WANT_MYSQL_MOD=0 3203 3204 fi 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 # Check whether --with-dbi or --without-dbi was given. 3215 if test "${with_dbi+set}" = set; then 3216 withval="$with_dbi" 3217 dbi_path="$withval" 3218 else 3219 : 3220 fi; 3221 3222 # Determine dbi include directory. 3223 if test -z $dbi_path; then 3224 test_paths="/usr/include /usr/local/include" 3225 else 3226 test_paths="${dbi_path}/include" 3227 fi 3228 3229 for x in $test_paths ; do 3230 echo "$as_me:$LINENO: checking for dbi Includes in ${x}" >&5 3231 echo $ECHO_N "checking for dbi Includes in ${x}... $ECHO_C" >&6 3232 if test -f ${x}/dbi/dbi.h; then 3233 DBI_CFLAGS="-I$x" 3234 echo "$as_me:$LINENO: result: found it! Use --with-dbi to specify another." >&5 3235 echo "${ECHO_T}found it! Use --with-dbi to specify another." >&6 3236 break 3237 else 3238 echo "$as_me:$LINENO: result: no" >&5 3239 echo "${ECHO_T}no" >&6 3240 fi 3241 done 3242 3243 if test -z "$DBI_CFLAGS"; then 3244 { echo "$as_me:$LINENO: WARNING: ** libDBI client libraries not found!" >&5 3245 echo "$as_me: WARNING: ** libDBI client libraries not found!" >&2;} 3246 WANT_DBI_MOD=0 3247 3248 fi 3249 3250 # Determine libdbi lib directory 3251 if test -z $dbi_path; then 3252 test_paths="/usr/lib /usr/local/lib" 3253 else 3254 test_paths="${dbi_path}/lib" 3255 fi 3256 3257 for x in $test_paths ; do 3258 echo "$as_me:$LINENO: checking for libdbi library in ${x}" >&5 3259 echo $ECHO_N "checking for libdbi library in ${x}... $ECHO_C" >&6 3260 if test -f ${x}/libdbi.so; then 3261 echo "$as_me:$LINENO: result: yes" >&5 3262 echo "${ECHO_T}yes" >&6 3263 save_CFLAGS=$CFLAGS 3264 save_LDFLAGS=$LDFLAGS 3265 CFLAGS="$DBI_CFLAGS $CFLAGS" 3266 LDFLAGS="-L$x $LDFLAGS" 3267 echo "$as_me:$LINENO: checking for dbi_version in -ldbi" >&5 3268 echo $ECHO_N "checking for dbi_version in -ldbi... $ECHO_C" >&6 3269 if test "${ac_cv_lib_dbi_dbi_version+set}" = set; then 3270 echo $ECHO_N "(cached) $ECHO_C" >&6 3271 else 3272 ac_check_lib_save_LIBS=$LIBS 3273 LIBS="-ldbi $LIBS" 3274 cat >conftest.$ac_ext <<_ACEOF 3275 #line $LINENO "configure" 3276 /* confdefs.h. */ 3277 _ACEOF 3278 cat confdefs.h >>conftest.$ac_ext 3279 cat >>conftest.$ac_ext <<_ACEOF 3280 /* end confdefs.h. */ 3281 3282 /* Override any gcc2 internal prototype to avoid an error. */ 3283 #ifdef __cplusplus 3284 extern "C" 3285 #endif 3286 /* We use char because int might match the return type of a gcc2 3287 builtin and then its argument prototype would still apply. */ 3288 char dbi_version (); 3289 int 3290 main () 3291 { 3292 dbi_version (); 3293 ; 3294 return 0; 3295 } 3296 _ACEOF 3297 rm -f conftest.$ac_objext conftest$ac_exeext 3298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3299 (eval $ac_link) 2>&5 3300 ac_status=$? 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); } && 3303 { ac_try='test -s conftest$ac_exeext' 3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3305 (eval $ac_try) 2>&5 3306 ac_status=$? 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); }; }; then 3309 ac_cv_lib_dbi_dbi_version=yes 3310 else 3311 echo "$as_me: failed program was:" >&5 3312 sed 's/^/| /' conftest.$ac_ext >&5 3313 3314 ac_cv_lib_dbi_dbi_version=no 3315 fi 3316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3317 LIBS=$ac_check_lib_save_LIBS 3318 fi 3319 echo "$as_me:$LINENO: result: $ac_cv_lib_dbi_dbi_version" >&5 3320 echo "${ECHO_T}$ac_cv_lib_dbi_dbi_version" >&6 3321 if test $ac_cv_lib_dbi_dbi_version = yes; then 3322 DBI_LDFLAGS="-L$x" 3323 fi 3324 3325 CFLAGS=$save_CFLAGS 3326 LDFLAGS=$save_LDFLAGS 3327 break 3328 else 3329 echo "$as_me:$LINENO: result: no" >&5 3330 echo "${ECHO_T}no" >&6 3331 fi 3332 done 3333 if test -z "$DBI_LDFLAGS"; then 3334 { echo "$as_me:$LINENO: WARNING: ** libDBI client libraries not found!" >&5 3335 echo "$as_me: WARNING: ** libDBI client libraries not found!" >&2;} 3336 WANT_DBI_MOD=0 3337 3338 else 3339 3340 DBI_LIBS=-ldbi 3341 3342 3343 WANT_DBI_MOD=1 3344 fi 3345 3346 3347 3348 WANT_PGSQL_MOD=0 3349 3350 3351 3352 ac_ext=c 3353 ac_cpp='$CPP $CPPFLAGS' 3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3357 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3359 # On Suns, sometimes $CPP names a directory. 3360 if test -n "$CPP" && test -d "$CPP"; then 3361 CPP= 3362 fi 3363 if test -z "$CPP"; then 3364 if test "${ac_cv_prog_CPP+set}" = set; then 3365 echo $ECHO_N "(cached) $ECHO_C" >&6 3366 else 3367 # Double quotes because CPP needs to be expanded 3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3369 do 3370 ac_preproc_ok=false 3371 for ac_c_preproc_warn_flag in '' yes 3372 do 3373 # Use a header file that comes with gcc, so configuring glibc 3374 # with a fresh cross-compiler works. 3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3376 # <limits.h> exists even on freestanding compilers. 3377 # On the NeXT, cc -E runs the code through the compiler's parser, 3378 # not just through cpp. "Syntax error" is here to catch this case. 3379 cat >conftest.$ac_ext <<_ACEOF 3380 #line $LINENO "configure" 3381 /* confdefs.h. */ 3382 _ACEOF 3383 cat confdefs.h >>conftest.$ac_ext 3384 cat >>conftest.$ac_ext <<_ACEOF 3385 /* end confdefs.h. */ 3386 #ifdef __STDC__ 3387 # include <limits.h> 3388 #else 3389 # include <assert.h> 3390 #endif 3391 Syntax error 3392 _ACEOF 3393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3395 ac_status=$? 3396 grep -v '^ *+' conftest.er1 >conftest.err 3397 rm -f conftest.er1 3398 cat conftest.err >&5 3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 (exit $ac_status); } >/dev/null; then 3401 if test -s conftest.err; then 3402 ac_cpp_err=$ac_c_preproc_warn_flag 3403 else 3404 ac_cpp_err= 3405 fi 3406 else 3407 ac_cpp_err=yes 3408 fi 3409 if test -z "$ac_cpp_err"; then 3410 : 3411 else 3412 echo "$as_me: failed program was:" >&5 3413 sed 's/^/| /' conftest.$ac_ext >&5 3414 3415 # Broken: fails on valid input. 3416 continue 3417 fi 3418 rm -f conftest.err conftest.$ac_ext 3419 3420 # OK, works on sane cases. Now check whether non-existent headers 3421 # can be detected and how. 3422 cat >conftest.$ac_ext <<_ACEOF 3423 #line $LINENO "configure" 3424 /* confdefs.h. */ 3425 _ACEOF 3426 cat confdefs.h >>conftest.$ac_ext 3427 cat >>conftest.$ac_ext <<_ACEOF 3428 /* end confdefs.h. */ 3429 #include <ac_nonexistent.h> 3430 _ACEOF 3431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3433 ac_status=$? 3434 grep -v '^ *+' conftest.er1 >conftest.err 3435 rm -f conftest.er1 3436 cat conftest.err >&5 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } >/dev/null; then 3439 if test -s conftest.err; then 3440 ac_cpp_err=$ac_c_preproc_warn_flag 3441 else 3442 ac_cpp_err= 3443 fi 3444 else 3445 ac_cpp_err=yes 3446 fi 3447 if test -z "$ac_cpp_err"; then 3448 # Broken: success on invalid input. 3449 continue 3450 else 3451 echo "$as_me: failed program was:" >&5 3452 sed 's/^/| /' conftest.$ac_ext >&5 3453 3454 # Passes both tests. 3455 ac_preproc_ok=: 3456 break 3457 fi 3458 rm -f conftest.err conftest.$ac_ext 3459 3460 done 3461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3462 rm -f conftest.err conftest.$ac_ext 3463 if $ac_preproc_ok; then 3464 break 3465 fi 3466 3467 done 3468 ac_cv_prog_CPP=$CPP 3469 3470 fi 3471 CPP=$ac_cv_prog_CPP 3472 else 3473 ac_cv_prog_CPP=$CPP 3474 fi 3475 echo "$as_me:$LINENO: result: $CPP" >&5 3476 echo "${ECHO_T}$CPP" >&6 3477 ac_preproc_ok=false 3478 for ac_c_preproc_warn_flag in '' yes 3479 do 3480 # Use a header file that comes with gcc, so configuring glibc 3481 # with a fresh cross-compiler works. 3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3483 # <limits.h> exists even on freestanding compilers. 3484 # On the NeXT, cc -E runs the code through the compiler's parser, 3485 # not just through cpp. "Syntax error" is here to catch this case. 3486 cat >conftest.$ac_ext <<_ACEOF 3487 #line $LINENO "configure" 3488 /* confdefs.h. */ 3489 _ACEOF 3490 cat confdefs.h >>conftest.$ac_ext 3491 cat >>conftest.$ac_ext <<_ACEOF 3492 /* end confdefs.h. */ 3493 #ifdef __STDC__ 3494 # include <limits.h> 3495 #else 3496 # include <assert.h> 3497 #endif 3498 Syntax error 3499 _ACEOF 3500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3502 ac_status=$? 3503 grep -v '^ *+' conftest.er1 >conftest.err 3504 rm -f conftest.er1 3505 cat conftest.err >&5 3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3507 (exit $ac_status); } >/dev/null; then 3508 if test -s conftest.err; then 3509 ac_cpp_err=$ac_c_preproc_warn_flag 3510 else 3511 ac_cpp_err= 3512 fi 3513 else 3514 ac_cpp_err=yes 3515 fi 3516 if test -z "$ac_cpp_err"; then 3517 : 3518 else 3519 echo "$as_me: failed program was:" >&5 3520 sed 's/^/| /' conftest.$ac_ext >&5 3521 3522 # Broken: fails on valid input. 3523 continue 3524 fi 3525 rm -f conftest.err conftest.$ac_ext 3526 3527 # OK, works on sane cases. Now check whether non-existent headers 3528 # can be detected and how. 3529 cat >conftest.$ac_ext <<_ACEOF 3530 #line $LINENO "configure" 3531 /* confdefs.h. */ 3532 _ACEOF 3533 cat confdefs.h >>conftest.$ac_ext 3534 cat >>conftest.$ac_ext <<_ACEOF 3535 /* end confdefs.h. */ 3536 #include <ac_nonexistent.h> 3537 _ACEOF 3538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3540 ac_status=$? 3541 grep -v '^ *+' conftest.er1 >conftest.err 3542 rm -f conftest.er1 3543 cat conftest.err >&5 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); } >/dev/null; then 3546 if test -s conftest.err; then 3547 ac_cpp_err=$ac_c_preproc_warn_flag 3548 else 3549 ac_cpp_err= 3550 fi 3551 else 3552 ac_cpp_err=yes 3553 fi 3554 if test -z "$ac_cpp_err"; then 3555 # Broken: success on invalid input. 3556 continue 3557 else 3558 echo "$as_me: failed program was:" >&5 3559 sed 's/^/| /' conftest.$ac_ext >&5 3560 3561 # Passes both tests. 3562 ac_preproc_ok=: 3563 break 3564 fi 3565 rm -f conftest.err conftest.$ac_ext 3566 3567 done 3568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3569 rm -f conftest.err conftest.$ac_ext 3570 if $ac_preproc_ok; then 3571 : 3572 else 3573 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3574 See \`config.log' for more details." >&5 3575 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3576 See \`config.log' for more details." >&2;} 3577 { (exit 1); exit 1; }; } 3578 fi 3579 3580 ac_ext=c 3581 ac_cpp='$CPP $CPPFLAGS' 3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3585 3586 3587 echo "$as_me:$LINENO: checking for egrep" >&5 3588 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3589 if test "${ac_cv_prog_egrep+set}" = set; then 3590 echo $ECHO_N "(cached) $ECHO_C" >&6 3591 else 3592 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3593 then ac_cv_prog_egrep='grep -E' 3594 else ac_cv_prog_egrep='egrep' 3595 fi 3596 fi 3597 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3598 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3599 EGREP=$ac_cv_prog_egrep 3600 3601 3602 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3603 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3604 if test "${ac_cv_header_stdc+set}" = set; then 3605 echo $ECHO_N "(cached) $ECHO_C" >&6 3606 else 3607 cat >conftest.$ac_ext <<_ACEOF 3608 #line $LINENO "configure" 3609 /* confdefs.h. */ 3610 _ACEOF 3611 cat confdefs.h >>conftest.$ac_ext 3612 cat >>conftest.$ac_ext <<_ACEOF 3613 /* end confdefs.h. */ 3614 #include <stdlib.h> 3615 #include <stdarg.h> 3616 #include <string.h> 3617 #include <float.h> 3618 3619 int 3620 main () 3621 { 3622 3623 ; 3624 return 0; 3625 } 3626 _ACEOF 3627 rm -f conftest.$ac_objext 3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3629 (eval $ac_compile) 2>&5 3630 ac_status=$? 3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); } && 3633 { ac_try='test -s conftest.$ac_objext' 3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3635 (eval $ac_try) 2>&5 3636 ac_status=$? 3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3638 (exit $ac_status); }; }; then 3639 ac_cv_header_stdc=yes 3640 else 3641 echo "$as_me: failed program was:" >&5 3642 sed 's/^/| /' conftest.$ac_ext >&5 3643 3644 ac_cv_header_stdc=no 3645 fi 3646 rm -f conftest.$ac_objext conftest.$ac_ext 3647 3648 if test $ac_cv_header_stdc = yes; then 3649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3650 cat >conftest.$ac_ext <<_ACEOF 3651 #line $LINENO "configure" 3652 /* confdefs.h. */ 3653 _ACEOF 3654 cat confdefs.h >>conftest.$ac_ext 3655 cat >>conftest.$ac_ext <<_ACEOF 3656 /* end confdefs.h. */ 3657 #include <string.h> 3658 3659 _ACEOF 3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3661 $EGREP "memchr" >/dev/null 2>&1; then 3662 : 3663 else 3664 ac_cv_header_stdc=no 3665 fi 3666 rm -f conftest* 3667 3668 fi 3669 3670 if test $ac_cv_header_stdc = yes; then 3671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3672 cat >conftest.$ac_ext <<_ACEOF 3673 #line $LINENO "configure" 3674 /* confdefs.h. */ 3675 _ACEOF 3676 cat confdefs.h >>conftest.$ac_ext 3677 cat >>conftest.$ac_ext <<_ACEOF 3678 /* end confdefs.h. */ 3679 #include <stdlib.h> 3680 3681 _ACEOF 3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3683 $EGREP "free" >/dev/null 2>&1; then 3684 : 3685 else 3686 ac_cv_header_stdc=no 3687 fi 3688 rm -f conftest* 3689 3690 fi 3691 3692 if test $ac_cv_header_stdc = yes; then 3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3694 if test "$cross_compiling" = yes; then 3695 : 3696 else 3697 cat >conftest.$ac_ext <<_ACEOF 3698 #line $LINENO "configure" 3699 /* confdefs.h. */ 3700 _ACEOF 3701 cat confdefs.h >>conftest.$ac_ext 3702 cat >>conftest.$ac_ext <<_ACEOF 3703 /* end confdefs.h. */ 3704 #include <ctype.h> 3705 #if ((' ' & 0x0FF) == 0x020) 3706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3708 #else 3709 # define ISLOWER(c) \ 3710 (('a' <= (c) && (c) <= 'i') \ 3711 || ('j' <= (c) && (c) <= 'r') \ 3712 || ('s' <= (c) && (c) <= 'z')) 3713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3714 #endif 3715 3716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3717 int 3718 main () 3719 { 3720 int i; 3721 for (i = 0; i < 256; i++) 3722 if (XOR (islower (i), ISLOWER (i)) 3723 || toupper (i) != TOUPPER (i)) 3724 exit(2); 3725 exit (0); 3726 } 3727 _ACEOF 3728 rm -f conftest$ac_exeext 3729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3730 (eval $ac_link) 2>&5 3731 ac_status=$? 3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3735 (eval $ac_try) 2>&5 3736 ac_status=$? 3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738 (exit $ac_status); }; }; then 3739 : 3740 else 3741 echo "$as_me: program exited with status $ac_status" >&5 3742 echo "$as_me: failed program was:" >&5 3743 sed 's/^/| /' conftest.$ac_ext >&5 3744 3745 ( exit $ac_status ) 3746 ac_cv_header_stdc=no 3747 fi 3748 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3749 fi 3750 fi 3751 fi 3752 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3753 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3754 if test $ac_cv_header_stdc = yes; then 3755 3756 cat >>confdefs.h <<\_ACEOF 3757 #define STDC_HEADERS 1 3758 _ACEOF 3759 3760 fi 3761 3762 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3773 inttypes.h stdint.h unistd.h 3774 do 3775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3776 echo "$as_me:$LINENO: checking for $ac_header" >&5 3777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3778 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3779 echo $ECHO_N "(cached) $ECHO_C" >&6 3780 else 3781 cat >conftest.$ac_ext <<_ACEOF 3782 #line $LINENO "configure" 3783 /* confdefs.h. */ 3784 _ACEOF 3785 cat confdefs.h >>conftest.$ac_ext 3786 cat >>conftest.$ac_ext <<_ACEOF 3787 /* end confdefs.h. */ 3788 $ac_includes_default 3789 3790 #include <$ac_header> 3791 _ACEOF 3792 rm -f conftest.$ac_objext 3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3794 (eval $ac_compile) 2>&5 3795 ac_status=$? 3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3797 (exit $ac_status); } && 3798 { ac_try='test -s conftest.$ac_objext' 3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3800 (eval $ac_try) 2>&5 3801 ac_status=$? 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); }; }; then 3804 eval "$as_ac_Header=yes" 3805 else 3806 echo "$as_me: failed program was:" >&5 3807 sed 's/^/| /' conftest.$ac_ext >&5 3808 3809 eval "$as_ac_Header=no" 3810 fi 3811 rm -f conftest.$ac_objext conftest.$ac_ext 3812 fi 3813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3815 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3816 cat >>confdefs.h <<_ACEOF 3817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3818 _ACEOF 3819 3820 fi 3821 3822 done 3823 3824 3825 # Check whether --enable-ssl or --disable-ssl was given. 3826 if test "${enable_ssl+set}" = set; then 3827 enableval="$enable_ssl" 3828 ssl_val=no 3829 else 3830 ssl_val=yes 3831 3832 fi; 3833 3834 # Check whether --with-ssl-inc or --without-ssl-inc was given. 3835 if test "${with_ssl_inc+set}" = set; then 3836 withval="$with_ssl_inc" 3837 ssl_incdir="$withval" 3838 fi; 3839 3840 # Check whether --with-db-inc or --without-db-inc was given. 3841 if test "${with_db_inc+set}" = set; then 3842 withval="$with_db_inc" 3843 db_incdir="$withval" 3844 else 3845 db_incdir="/usr/include/db1" 3846 3847 fi; 3848 3849 if test "x$ssl_val" = "xyes"; then 3850 ac_save_CFLAGS=$CFLAGS 3851 ac_save_CPPFLAGS=$CPPFLAGS 3852 MOD_SSL_CFLAGS="-I/usr/include/openssl" 3853 if test "x$ssl_incdir" != "x"; then 3854 MOD_SSL_CFLAGS="-I$ssl_incdir -I$ssl_incdir/openssl $MOD_SSL_CFLAGS" 3855 fi 3856 if test "x$db_incdir" != "x"; then 3857 MOD_SSL_CFLAGS="-I$db_incdir $MOD_SSL_CFLAGS" 3858 fi 3859 CFLAGS="$AP_CFLAGS $MOD_SSL_CFLAGS $CFLAGS" 3860 CPPFLAGS="$AP_CFLAGS $MOD_SSL_CFLAGS $CPPFLAGS" 3861 3862 for ac_header in mod_ssl.h 3863 do 3864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3865 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3866 echo "$as_me:$LINENO: checking for $ac_header" >&5 3867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3868 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3869 echo $ECHO_N "(cached) $ECHO_C" >&6 3870 fi 3871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3873 else 3874 # Is the header compilable? 3875 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3877 cat >conftest.$ac_ext <<_ACEOF 3878 #line $LINENO "configure" 3879 /* confdefs.h. */ 3880 _ACEOF 3881 cat confdefs.h >>conftest.$ac_ext 3882 cat >>conftest.$ac_ext <<_ACEOF 3883 /* end confdefs.h. */ 3884 $ac_includes_default 3885 #include <$ac_header> 3886 _ACEOF 3887 rm -f conftest.$ac_objext 3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3889 (eval $ac_compile) 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); } && 3893 { ac_try='test -s conftest.$ac_objext' 3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3898 (exit $ac_status); }; }; then 3899 ac_header_compiler=yes 3900 else 3901 echo "$as_me: failed program was:" >&5 3902 sed 's/^/| /' conftest.$ac_ext >&5 3903 3904 ac_header_compiler=no 3905 fi 3906 rm -f conftest.$ac_objext conftest.$ac_ext 3907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3908 echo "${ECHO_T}$ac_header_compiler" >&6 3909 3910 # Is the header present? 3911 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3913 cat >conftest.$ac_ext <<_ACEOF 3914 #line $LINENO "configure" 3915 /* confdefs.h. */ 3916 _ACEOF 3917 cat confdefs.h >>conftest.$ac_ext 3918 cat >>conftest.$ac_ext <<_ACEOF 3919 /* end confdefs.h. */ 3920 #include <$ac_header> 3921 _ACEOF 3922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3924 ac_status=$? 3925 grep -v '^ *+' conftest.er1 >conftest.err 3926 rm -f conftest.er1 3927 cat conftest.err >&5 3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3929 (exit $ac_status); } >/dev/null; then 3930 if test -s conftest.err; then 3931 ac_cpp_err=$ac_c_preproc_warn_flag 3932 else 3933 ac_cpp_err= 3934 fi 3935 else 3936 ac_cpp_err=yes 3937 fi 3938 if test -z "$ac_cpp_err"; then 3939 ac_header_preproc=yes 3940 else 3941 echo "$as_me: failed program was:" >&5 3942 sed 's/^/| /' conftest.$ac_ext >&5 3943 3944 ac_header_preproc=no 3945 fi 3946 rm -f conftest.err conftest.$ac_ext 3947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3948 echo "${ECHO_T}$ac_header_preproc" >&6 3949 3950 # So? What about this header? 3951 case $ac_header_compiler:$ac_header_preproc in 3952 yes:no ) 3953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3957 ( 3958 cat <<\_ASBOX 3959 ## ------------------------------------ ## 3960 ## Report this to bug-autoconf@gnu.org. ## 3961 ## ------------------------------------ ## 3962 _ASBOX 3963 ) | 3964 sed "s/^/$as_me: WARNING: /" >&2 3965 ;; 3966 no:yes ) 3967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3973 ( 3974 cat <<\_ASBOX 3975 ## ------------------------------------ ## 3976 ## Report this to bug-autoconf@gnu.org. ## 3977 ## ------------------------------------ ## 3978 _ASBOX 3979 ) | 3980 sed "s/^/$as_me: WARNING: /" >&2 3981 ;; 3982 esac 3983 echo "$as_me:$LINENO: checking for $ac_header" >&5 3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3985 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987 else 3988 eval "$as_ac_Header=$ac_header_preproc" 3989 fi 3990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3992 3993 fi 3994 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3995 cat >>confdefs.h <<_ACEOF 3996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3997 _ACEOF 3998 mod_ssl_h=yes 3999 4000 fi 4001 4002 done 4003 4004 CFLAGS=$ac_save_CFLAGS 4005 CPPFLAGS=$ac_save_CPPFLAGS 4006 if test "x$mod_ssl_h" = "x"; then 4007 { echo "$as_me:$LINENO: WARNING: ** mod_ssl.h not found or missing SSL headers!" >&5 4008 echo "$as_me: WARNING: ** mod_ssl.h not found or missing SSL headers!" >&2;} 4009 WANT_SSL_MOD=0 4010 4011 else 4012 4013 WANT_SSL_MOD=1 4014 fi 4015 else 4016 { echo "$as_me:$LINENO: WARNING: ** mod_ssl.h not found or missing SSL headers!" >&5 4017 echo "$as_me: WARNING: ** mod_ssl.h not found or missing SSL headers!" >&2;} 4018 WANT_SSL_MOD=0 4019 4020 fi 4021 4022 4023 4024 4025 case "$target" in 4026 *-*-solaris* | *-*-osf* ) 4027 if test $AP_VERSION = "1.3"; then 4028 RT_LIBS=-lrt 4029 fi 4030 ;; 4031 *) 4032 RT_LIBS="" 4033 ;; 4034 esac 4035 4036 4037 4038 4039 4040 for ac_header in limits.h 4041 do 4042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4043 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4044 echo "$as_me:$LINENO: checking for $ac_header" >&5 4045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4046 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4047 echo $ECHO_N "(cached) $ECHO_C" >&6 4048 fi 4049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4051 else 4052 # Is the header compilable? 4053 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4055 cat >conftest.$ac_ext <<_ACEOF 4056 #line $LINENO "configure" 4057 /* confdefs.h. */ 4058 _ACEOF 4059 cat confdefs.h >>conftest.$ac_ext 4060 cat >>conftest.$ac_ext <<_ACEOF 4061 /* end confdefs.h. */ 4062 $ac_includes_default 4063 #include <$ac_header> 4064 _ACEOF 4065 rm -f conftest.$ac_objext 4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4067 (eval $ac_compile) 2>&5 4068 ac_status=$? 4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4070 (exit $ac_status); } && 4071 { ac_try='test -s conftest.$ac_objext' 4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4073 (eval $ac_try) 2>&5 4074 ac_status=$? 4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4076 (exit $ac_status); }; }; then 4077 ac_header_compiler=yes 4078 else 4079 echo "$as_me: failed program was:" >&5 4080 sed 's/^/| /' conftest.$ac_ext >&5 4081 4082 ac_header_compiler=no 4083 fi 4084 rm -f conftest.$ac_objext conftest.$ac_ext 4085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4086 echo "${ECHO_T}$ac_header_compiler" >&6 4087 4088 # Is the header present? 4089 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4091 cat >conftest.$ac_ext <<_ACEOF 4092 #line $LINENO "configure" 4093 /* confdefs.h. */ 4094 _ACEOF 4095 cat confdefs.h >>conftest.$ac_ext 4096 cat >>conftest.$ac_ext <<_ACEOF 4097 /* end confdefs.h. */ 4098 #include <$ac_header> 4099 _ACEOF 4100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4102 ac_status=$? 4103 grep -v '^ *+' conftest.er1 >conftest.err 4104 rm -f conftest.er1 4105 cat conftest.err >&5 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); } >/dev/null; then 4108 if test -s conftest.err; then 4109 ac_cpp_err=$ac_c_preproc_warn_flag 4110 else 4111 ac_cpp_err= 4112 fi 4113 else 4114 ac_cpp_err=yes 4115 fi 4116 if test -z "$ac_cpp_err"; then 4117 ac_header_preproc=yes 4118 else 4119 echo "$as_me: failed program was:" >&5 4120 sed 's/^/| /' conftest.$ac_ext >&5 4121 4122 ac_header_preproc=no 4123 fi 4124 rm -f conftest.err conftest.$ac_ext 4125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4126 echo "${ECHO_T}$ac_header_preproc" >&6 4127 4128 # So? What about this header? 4129 case $ac_header_compiler:$ac_header_preproc in 4130 yes:no ) 4131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4135 ( 4136 cat <<\_ASBOX 4137 ## ------------------------------------ ## 4138 ## Report this to bug-autoconf@gnu.org. ## 4139 ## ------------------------------------ ## 4140 _ASBOX 4141 ) | 4142 sed "s/^/$as_me: WARNING: /" >&2 4143 ;; 4144 no:yes ) 4145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4151 ( 4152 cat <<\_ASBOX 4153 ## ------------------------------------ ## 4154 ## Report this to bug-autoconf@gnu.org. ## 4155 ## ------------------------------------ ## 4156 _ASBOX 4157 ) | 4158 sed "s/^/$as_me: WARNING: /" >&2 4159 ;; 4160 esac 4161 echo "$as_me:$LINENO: checking for $ac_header" >&5 4162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4163 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4164 echo $ECHO_N "(cached) $ECHO_C" >&6 4165 else 4166 eval "$as_ac_Header=$ac_header_preproc" 4167 fi 4168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4170 4171 fi 4172 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4173 cat >>confdefs.h <<_ACEOF 4174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4175 _ACEOF 4176 4177 fi 4178 4179 done 4180 4181 4182 ac_config_files="$ac_config_files stamp-h" 4183 4184 4185 4186 ac_config_files="$ac_config_files Makefile docs/Makefile contrib/Makefile" 4187 cat >confcache <<\_ACEOF 4188 # This file is a shell script that caches the results of configure 4189 # tests run on this system so they can be shared between configure 4190 # scripts and configure runs, see configure's option --config-cache. 4191 # It is not useful on other systems. If it contains results you don't 4192 # want to keep, you may remove or edit it. 4193 # 4194 # config.status only pays attention to the cache file if you give it 4195 # the --recheck option to rerun configure. 4196 # 4197 # `ac_cv_env_foo' variables (set or unset) will be overridden when 4198 # loading this file, other *unset* `ac_cv_foo' will be assigned the 4199 # following values. 4200 4201 _ACEOF 4202 4203 # The following way of writing the cache mishandles newlines in values, 4204 # but we know of no workaround that is simple, portable, and efficient. 4205 # So, don't put newlines in cache variables' values. 4206 # Ultrix sh set writes to stderr and can't be redirected directly, 4207 # and sets the high bit in the cache file unless we assign to the vars. 4208 { 4209 (set) 2>&1 | 4210 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4211 *ac_space=\ *) 4212 # `set' does not quote correctly, so add quotes (double-quote 4213 # substitution turns \\\\ into \\, and sed turns \\ into \). 4214 sed -n \ 4215 "s/'/'\\\\''/g; 4216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4217 ;; 4218 *) 4219 # `set' quotes correctly as required by POSIX, so do not add quotes. 4220 sed -n \ 4221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4222 ;; 4223 esac; 4224 } | 4225 sed ' 4226 t clear 4227 : clear 4228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4229 t end 4230 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4231 : end' >>confcache 4232 if diff $cache_file confcache >/dev/null 2>&1; then :; else 4233 if test -w $cache_file; then 4234 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4235 cat confcache >$cache_file 4236 else 4237 echo "not updating unwritable cache $cache_file" 4238 fi 4239 fi 4240 rm -f confcache 4241 4242 test "x$prefix" = xNONE && prefix=$ac_default_prefix 4243 # Let make expand exec_prefix. 4244 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4245 4246 # VPATH may cause trouble with some makes, so we remove $(srcdir), 4247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4248 # trailing colons and then remove the whole line if VPATH becomes empty 4249 # (actually we leave an empty line to preserve line numbers). 4250 if test "x$srcdir" = x.; then 4251 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4252 s/:*\$(srcdir):*/:/; 4253 s/:*\${srcdir}:*/:/; 4254 s/:*@srcdir@:*/:/; 4255 s/^\([^=]*=[ ]*\):*/\1/; 4256 s/:*$//; 4257 s/^[^=]*=[ ]*$//; 4258 }' 4259 fi 4260 4261 DEFS=-DHAVE_CONFIG_H 4262 4263 ac_libobjs= 4264 ac_ltlibobjs= 4265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4266 # 1. Remove the extension, and $U if already installed. 4267 ac_i=`echo "$ac_i" | 4268 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 4269 # 2. Add them. 4270 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 4271 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 4272 done 4273 LIBOBJS=$ac_libobjs 4274 4275 LTLIBOBJS=$ac_ltlibobjs 4276 4277 4278 4279 : ${CONFIG_STATUS=./config.status} 4280 ac_clean_files_save=$ac_clean_files 4281 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4282 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4283 echo "$as_me: creating $CONFIG_STATUS" >&6;} 4284 cat >$CONFIG_STATUS <<_ACEOF 4285 #! $SHELL 4286 # Generated by $as_me. 4287 # Run this file to recreate the current configuration. 4288 # Compiler output produced by configure, useful for debugging 4289 # configure, is in config.log if it exists. 4290 4291 debug=false 4292 ac_cs_recheck=false 4293 ac_cs_silent=false 4294 SHELL=\${CONFIG_SHELL-$SHELL} 4295 _ACEOF 4296 4297 cat >>$CONFIG_STATUS <<\_ACEOF 4298 ## --------------------- ## 4299 ## M4sh Initialization. ## 4300 ## --------------------- ## 4301 4302 # Be Bourne compatible 4303 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4304 emulate sh 4305 NULLCMD=: 4306 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 4307 # is contrary to our usage. Disable this feature. 4308 alias -g '${1+"$@"}'='"$@"' 4309 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4310 set -o posix 4311 fi 4312 4313 # Support unset when possible. 4314 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4315 as_unset=unset 4316 else 4317 as_unset=false 4318 fi 4319 4320 4321 # Work around bugs in pre-3.0 UWIN ksh. 4322 $as_unset ENV MAIL MAILPATH 4323 PS1='$ ' 4324 PS2='> ' 4325 PS4='+ ' 4326 4327 # NLS nuisances. 4328 for as_var in \ 4329 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4330 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4331 LC_TELEPHONE LC_TIME 4332 do 4333 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 4334 eval $as_var=C; export $as_var 4335 else 4336 $as_unset $as_var 4337 fi 4338 done 4339 4340 # Required to use basename. 4341 if expr a : '\(a\)' >/dev/null 2>&1; then 4342 as_expr=expr 4343 else 4344 as_expr=false 4345 fi 4346 4347 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 4348 as_basename=basename 4349 else 4350 as_basename=false 4351 fi 4352 4353 4354 # Name of the executable. 4355 as_me=`$as_basename "$0" || 4356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4357 X"$0" : 'X\(//\)$' \| \ 4358 X"$0" : 'X\(/\)$' \| \ 4359 . : '\(.\)' 2>/dev/null || 4360 echo X/"$0" | 4361 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 4362 /^X\/\(\/\/\)$/{ s//\1/; q; } 4363 /^X\/\(\/\).*/{ s//\1/; q; } 4364 s/.*/./; q'` 4365 4366 4367 # PATH needs CR, and LINENO needs CR and PATH. 4368 # Avoid depending upon Character Ranges. 4369 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4372 as_cr_digits='0123456789' 4373 as_cr_alnum=$as_cr_Letters$as_cr_digits 4374 4375 # The user is always right. 4376 if test "${PATH_SEPARATOR+set}" != set; then 4377 echo "#! /bin/sh" >conf$$.sh 4378 echo "exit 0" >>conf$$.sh 4379 chmod +x conf$$.sh 4380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4381 PATH_SEPARATOR=';' 4382 else 4383 PATH_SEPARATOR=: 4384 fi 4385 rm -f conf$$.sh 4386 fi 4387 4388 4389 as_lineno_1=$LINENO 4390 as_lineno_2=$LINENO 4391 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4392 test "x$as_lineno_1" != "x$as_lineno_2" && 4393 test "x$as_lineno_3" = "x$as_lineno_2" || { 4394 # Find who we are. Look in the path if we contain no path at all 4395 # relative or not. 4396 case $0 in 4397 *[\\/]* ) as_myself=$0 ;; 4398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399 for as_dir in $PATH 4400 do 4401 IFS=$as_save_IFS 4402 test -z "$as_dir" && as_dir=. 4403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4404 done 4405 4406 ;; 4407 esac 4408 # We did not find ourselves, most probably we were run as `sh COMMAND' 4409 # in which case we are not to be found in the path. 4410 if test "x$as_myself" = x; then 4411 as_myself=$0 4412 fi 4413 if test ! -f "$as_myself"; then 4414 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 4415 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 4416 { (exit 1); exit 1; }; } 4417 fi 4418 case $CONFIG_SHELL in 4419 '') 4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 4422 do 4423 IFS=$as_save_IFS 4424 test -z "$as_dir" && as_dir=. 4425 for as_base in sh bash ksh sh5; do 4426 case $as_dir in 4427 /*) 4428 if ("$as_dir/$as_base" -c ' 4429 as_lineno_1=$LINENO 4430 as_lineno_2=$LINENO 4431 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4432 test "x$as_lineno_1" != "x$as_lineno_2" && 4433 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 4434 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 4435 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 4436 CONFIG_SHELL=$as_dir/$as_base 4437 export CONFIG_SHELL 4438 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 4439 fi;; 4440 esac 4441 done 4442 done 4443 ;; 4444 esac 4445 4446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4447 # uniformly replaced by the line number. The first 'sed' inserts a 4448 # line-number line before each line; the second 'sed' does the real 4449 # work. The second script uses 'N' to pair each line-number line 4450 # with the numbered line, and appends trailing '-' during 4451 # substitution so that $LINENO is not a special case at line end. 4452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 4454 sed '=' <$as_myself | 4455 sed ' 4456 N 4457 s,$,-, 4458 : loop 4459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 4460 t loop 4461 s,-$,, 4462 s,^['$as_cr_digits']*\n,, 4463 ' >$as_me.lineno && 4464 chmod +x $as_me.lineno || 4465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 4466 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 4467 { (exit 1); exit 1; }; } 4468 4469 # Don't try to exec as it changes $[0], causing all sort of problems 4470 # (the dirname of $[0] is not the place where we might find the 4471 # original and so on. Autoconf is especially sensible to this). 4472 . ./$as_me.lineno 4473 # Exit status is that of the last command. 4474 exit 4475 } 4476 4477 4478 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 4479 *c*,-n*) ECHO_N= ECHO_C=' 4480 ' ECHO_T=' ' ;; 4481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 4482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 4483 esac 4484 4485 if expr a : '\(a\)' >/dev/null 2>&1; then 4486 as_expr=expr 4487 else 4488 as_expr=false 4489 fi 4490 4491 rm -f conf$$ conf$$.exe conf$$.file 4492 echo >conf$$.file 4493 if ln -s conf$$.file conf$$ 2>/dev/null; then 4494 # We could just check for DJGPP; but this test a) works b) is more generic 4495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4496 if test -f conf$$.exe; then 4497 # Don't use ln at all; we don't have any links 4498 as_ln_s='cp -p' 4499 else 4500 as_ln_s='ln -s' 4501 fi 4502 elif ln conf$$.file conf$$ 2>/dev/null; then 4503 as_ln_s=ln 4504 else 4505 as_ln_s='cp -p' 4506 fi 4507 rm -f conf$$ conf$$.exe conf$$.file 4508 4509 if mkdir -p . 2>/dev/null; then 4510 as_mkdir_p=: 4511 else 4512 as_mkdir_p=false 4513 fi 4514 4515 as_executable_p="test -f" 4516 4517 # Sed expression to map a string onto a valid CPP name. 4518 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 4519 4520 # Sed expression to map a string onto a valid variable name. 4521 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 4522 4523 4524 # IFS 4525 # We need space, tab and new line, in precisely that order. 4526 as_nl=' 4527 ' 4528 IFS=" $as_nl" 4529 4530 # CDPATH. 4531 $as_unset CDPATH 4532 4533 exec 6>&1 4534 4535 # Open the log real soon, to keep \$[0] and so on meaningful, and to 4536 # report actual input values of CONFIG_FILES etc. instead of their 4537 # values after options handling. Logging --version etc. is OK. 4538 exec 5>>config.log 4539 { 4540 echo 4541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4542 ## Running $as_me. ## 4543 _ASBOX 4544 } >&5 4545 cat >&5 <<_CSEOF 4546 4547 This file was extended by mod_log_sql $as_me 1.101, which was 4548 generated by GNU Autoconf 2.57. Invocation command line was 4549 4550 CONFIG_FILES = $CONFIG_FILES 4551 CONFIG_HEADERS = $CONFIG_HEADERS 4552 CONFIG_LINKS = $CONFIG_LINKS 4553 CONFIG_COMMANDS = $CONFIG_COMMANDS 4554 $ $0 $@ 4555 4556 _CSEOF 4557 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 4558 echo >&5 4559 _ACEOF 4560 4561 # Files that config.status was made for. 4562 if test -n "$ac_config_files"; then 4563 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4564 fi 4565 4566 if test -n "$ac_config_headers"; then 4567 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4568 fi 4569 4570 if test -n "$ac_config_links"; then 4571 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4572 fi 4573 4574 if test -n "$ac_config_commands"; then 4575 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4576 fi 4577 4578 cat >>$CONFIG_STATUS <<\_ACEOF 4579 4580 ac_cs_usage="\ 4581 \`$as_me' instantiates files from templates according to the 4582 current configuration. 4583 4584 Usage: $0 [OPTIONS] [FILE]... 4585 4586 -h, --help print this help, then exit 4587 -V, --version print version number, then exit 4588 -q, --quiet do not print progress messages 4589 -d, --debug don't remove temporary files 4590 --recheck update $as_me by reconfiguring in the same conditions 4591 --file=FILE[:TEMPLATE] 4592 instantiate the configuration file FILE 4593 --header=FILE[:TEMPLATE] 4594 instantiate the configuration header FILE 4595 4596 Configuration files: 4597 $config_files 4598 4599 Configuration headers: 4600 $config_headers 4601 4602 Report bugs to <bug-autoconf@gnu.org>." 4603 _ACEOF 4604 4605 cat >>$CONFIG_STATUS <<_ACEOF 4606 ac_cs_version="\\ 4607 mod_log_sql config.status 1.101 4608 configured by $0, generated by GNU Autoconf 2.57, 4609 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4610 4611 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 4612 Free Software Foundation, Inc. 4613 This config.status script is free software; the Free Software Foundation 4614 gives unlimited permission to copy, distribute and modify it." 4615 srcdir=$srcdir 4616 _ACEOF 4617 4618 cat >>$CONFIG_STATUS <<\_ACEOF 4619 # If no file are specified by the user, then we need to provide default 4620 # value. By we need to know if files were specified by the user. 4621 ac_need_defaults=: 4622 while test $# != 0 4623 do 4624 case $1 in 4625 --*=*) 4626 ac_option=`expr "x$1" : 'x\([^=]*\)='` 4627 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4628 ac_shift=: 4629 ;; 4630 -*) 4631 ac_option=$1 4632 ac_optarg=$2 4633 ac_shift=shift 4634 ;; 4635 *) # This is not an option, so the user has probably given explicit 4636 # arguments. 4637 ac_option=$1 4638 ac_need_defaults=false;; 4639 esac 4640 4641 case $ac_option in 4642 # Handling of the options. 4643 _ACEOF 4644 cat >>$CONFIG_STATUS <<\_ACEOF 4645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4646 ac_cs_recheck=: ;; 4647 --version | --vers* | -V ) 4648 echo "$ac_cs_version"; exit 0 ;; 4649 --he | --h) 4650 # Conflict between --help and --header 4651 { { echo "$as_me:$LINENO: error: ambiguous option: $1 4652 Try \`$0 --help' for more information." >&5 4653 echo "$as_me: error: ambiguous option: $1 4654 Try \`$0 --help' for more information." >&2;} 4655 { (exit 1); exit 1; }; };; 4656 --help | --hel | -h ) 4657 echo "$ac_cs_usage"; exit 0 ;; 4658 --debug | --d* | -d ) 4659 debug=: ;; 4660 --file | --fil | --fi | --f ) 4661 $ac_shift 4662 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4663 ac_need_defaults=false;; 4664 --header | --heade | --head | --hea ) 4665 $ac_shift 4666 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4667 ac_need_defaults=false;; 4668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4669 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4670 ac_cs_silent=: ;; 4671 4672 # This is an error. 4673 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4674 Try \`$0 --help' for more information." >&5 4675 echo "$as_me: error: unrecognized option: $1 4676 Try \`$0 --help' for more information." >&2;} 4677 { (exit 1); exit 1; }; } ;; 4678 4679 *) ac_config_targets="$ac_config_targets $1" ;; 4680 4681 esac 4682 shift 4683 done 4684 4685 ac_configure_extra_args= 4686 4687 if $ac_cs_silent; then 4688 exec 6>/dev/null 4689 ac_configure_extra_args="$ac_configure_extra_args --silent" 4690 fi 4691 4692 _ACEOF 4693 cat >>$CONFIG_STATUS <<_ACEOF 4694 if \$ac_cs_recheck; then 4695 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4696 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4697 fi 4698 4699 _ACEOF 4700 4701 4702 4703 4704 4705 cat >>$CONFIG_STATUS <<\_ACEOF 4706 for ac_config_target in $ac_config_targets 4707 do 4708 case "$ac_config_target" in 4709 # Handling of arguments. 4710 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;; 4711 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4712 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 4713 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 4714 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 4715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4717 { (exit 1); exit 1; }; };; 4718 esac 4719 done 4720 4721 # If the user did not use the arguments to specify the items to instantiate, 4722 # then the envvar interface is used. Set only those that are not. 4723 # We use the long form for the default assignment because of an extremely 4724 # bizarre bug on SunOS 4.1.3. 4725 if $ac_need_defaults; then 4726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 4728 fi 4729 4730 # Have a temporary directory for convenience. Make it in the build tree 4731 # simply because there is no reason to put it here, and in addition, 4732 # creating and moving files from /tmp can sometimes cause problems. 4733 # Create a temporary directory, and hook for its removal unless debugging. 4734 $debug || 4735 { 4736 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4737 trap '{ (exit 1); exit 1; }' 1 2 13 15 4738 } 4739 4740 # Create a (secure) tmp directory for tmp files. 4741 4742 { 4743 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 4744 test -n "$tmp" && test -d "$tmp" 4745 } || 4746 { 4747 tmp=./confstat$$-$RANDOM 4748 (umask 077 && mkdir $tmp) 4749 } || 4750 { 4751 echo "$me: cannot create a temporary directory in ." >&2 4752 { (exit 1); exit 1; } 4753 } 4754 4755 _ACEOF 4756 4757 cat >>$CONFIG_STATUS <<_ACEOF 4758 4759 # 4760 # CONFIG_FILES section. 4761 # 4762 4763 # No need to generate the scripts if there are no CONFIG_FILES. 4764 # This happens for instance when ./config.status config.h 4765 if test -n "\$CONFIG_FILES"; then 4766 # Protect against being on the right side of a sed subst in config.status. 4767 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 4768 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4769 s,@SHELL@,$SHELL,;t t 4770 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 4771 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4772 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4773 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4774 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4775 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4776 s,@exec_prefix@,$exec_prefix,;t t 4777 s,@prefix@,$prefix,;t t 4778 s,@program_transform_name@,$program_transform_name,;t t 4779 s,@bindir@,$bindir,;t t 4780 s,@sbindir@,$sbindir,;t t 4781 s,@libexecdir@,$libexecdir,;t t 4782 s,@datadir@,$datadir,;t t 4783 s,@sysconfdir@,$sysconfdir,;t t 4784 s,@sharedstatedir@,$sharedstatedir,;t t 4785 s,@localstatedir@,$localstatedir,;t t 4786 s,@libdir@,$libdir,;t t 4787 s,@includedir@,$includedir,;t t 4788 s,@oldincludedir@,$oldincludedir,;t t 4789 s,@infodir@,$infodir,;t t 4790 s,@mandir@,$mandir,;t t 4791 s,@build_alias@,$build_alias,;t t 4792 s,@host_alias@,$host_alias,;t t 4793 s,@target_alias@,$target_alias,;t t 4794 s,@DEFS@,$DEFS,;t t 4795 s,@ECHO_C@,$ECHO_C,;t t 4796 s,@ECHO_N@,$ECHO_N,;t t 4797 s,@ECHO_T@,$ECHO_T,;t t 4798 s,@LIBS@,$LIBS,;t t 4799 s,@OOO_MAINTAIN@,$OOO_MAINTAIN,;t t 4800 s,@CC@,$CC,;t t 4801 s,@CFLAGS@,$CFLAGS,;t t 4802 s,@LDFLAGS@,$LDFLAGS,;t t 4803 s,@CPPFLAGS@,$CPPFLAGS,;t t 4804 s,@ac_ct_CC@,$ac_ct_CC,;t t 4805 s,@EXEEXT@,$EXEEXT,;t t 4806 s,@OBJEXT@,$OBJEXT,;t t 4807 s,@APXS_BIN@,$APXS_BIN,;t t 4808 s,@build@,$build,;t t 4809 s,@build_cpu@,$build_cpu,;t t 4810 s,@build_vendor@,$build_vendor,;t t 4811 s,@build_os@,$build_os,;t t 4812 s,@host@,$host,;t t 4813 s,@host_cpu@,$host_cpu,;t t 4814 s,@host_vendor@,$host_vendor,;t t 4815 s,@host_os@,$host_os,;t t 4816 s,@target@,$target,;t t 4817 s,@target_cpu@,$target_cpu,;t t 4818 s,@target_vendor@,$target_vendor,;t t 4819 s,@target_os@,$target_os,;t t 4820 s,@AP_DEFS@,$AP_DEFS,;t t 4821 s,@AP_PREFIX@,$AP_PREFIX,;t t 4822 s,@AP_CFLAGS@,$AP_CFLAGS,;t t 4823 s,@AP_CPPFLAGS@,$AP_CPPFLAGS,;t t 4824 s,@AP_INCLUDES@,$AP_INCLUDES,;t t 4825 s,@AP_INCLUDEDIR@,$AP_INCLUDEDIR,;t t 4826 s,@AP_LIBEXECDIR@,$AP_LIBEXECDIR,;t t 4827 s,@AP_VERSION@,$AP_VERSION,;t t 4828 s,@AP_SYSCONFDIR@,$AP_SYSCONFDIR,;t t 4829 s,@AP_BINDIR@,$AP_BINDIR,;t t 4830 s,@AP_SBINDIR@,$AP_SBINDIR,;t t 4831 s,@APR_INCLUDES@,$APR_INCLUDES,;t t 4832 s,@APU_INCLUDES@,$APU_INCLUDES,;t t 4833 s,@APXS_EXTENSION@,$APXS_EXTENSION,;t t 4834 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t 4835 s,@WANT_LOGIO_MOD@,$WANT_LOGIO_MOD,;t t 4836 s,@MYSQL_LDFLAGS@,$MYSQL_LDFLAGS,;t t 4837 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t 4838 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t 4839 s,@WANT_MYSQL_MOD@,$WANT_MYSQL_MOD,;t t 4840 s,@DBI_LDFLAGS@,$DBI_LDFLAGS,;t t 4841 s,@DBI_LIBS@,$DBI_LIBS,;t t 4842 s,@DBI_CFLAGS@,$DBI_CFLAGS,;t t 4843 s,@WANT_DBI_MOD@,$WANT_DBI_MOD,;t t 4844 s,@WANT_PGSQL_MOD@,$WANT_PGSQL_MOD,;t t 4845 s,@CPP@,$CPP,;t t 4846 s,@EGREP@,$EGREP,;t t 4847 s,@MOD_SSL_CFLAGS@,$MOD_SSL_CFLAGS,;t t 4848 s,@WANT_SSL_MOD@,$WANT_SSL_MOD,;t t 4849 s,@RT_LIBS@,$RT_LIBS,;t t 4850 s,@LIBOBJS@,$LIBOBJS,;t t 4851 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4852 CEOF 4853 4854 _ACEOF 4855 4856 cat >>$CONFIG_STATUS <<\_ACEOF 4857 # Split the substitutions into bite-sized pieces for seds with 4858 # small command number limits, like on Digital OSF/1 and HP-UX. 4859 ac_max_sed_lines=48 4860 ac_sed_frag=1 # Number of current file. 4861 ac_beg=1 # First line for current file. 4862 ac_end=$ac_max_sed_lines # Line after last line for current file. 4863 ac_more_lines=: 4864 ac_sed_cmds= 4865 while $ac_more_lines; do 4866 if test $ac_beg -gt 1; then 4867 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4868 else 4869 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4870 fi 4871 if test ! -s $tmp/subs.frag; then 4872 ac_more_lines=false 4873 else 4874 # The purpose of the label and of the branching condition is to 4875 # speed up the sed processing (if there are no `@' at all, there 4876 # is no need to browse any of the substitutions). 4877 # These are the two extra sed commands mentioned above. 4878 (echo ':t 4879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4880 if test -z "$ac_sed_cmds"; then 4881 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4882 else 4883 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4884 fi 4885 ac_sed_frag=`expr $ac_sed_frag + 1` 4886 ac_beg=$ac_end 4887 ac_end=`expr $ac_end + $ac_max_sed_lines` 4888 fi 4889 done 4890 if test -z "$ac_sed_cmds"; then 4891 ac_sed_cmds=cat 4892 fi 4893 fi # test -n "$CONFIG_FILES" 4894 4895 _ACEOF 4896 cat >>$CONFIG_STATUS <<\_ACEOF 4897 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4899 case $ac_file in 4900 - | *:- | *:-:* ) # input from stdin 4901 cat >$tmp/stdin 4902 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4904 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4906 * ) ac_file_in=$ac_file.in ;; 4907 esac 4908 4909 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4910 ac_dir=`(dirname "$ac_file") 2>/dev/null || 4911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4912 X"$ac_file" : 'X\(//\)[^/]' \| \ 4913 X"$ac_file" : 'X\(//\)$' \| \ 4914 X"$ac_file" : 'X\(/\)' \| \ 4915 . : '\(.\)' 2>/dev/null || 4916 echo X"$ac_file" | 4917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4918 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4919 /^X\(\/\/\)$/{ s//\1/; q; } 4920 /^X\(\/\).*/{ s//\1/; q; } 4921 s/.*/./; q'` 4922 { if $as_mkdir_p; then 4923 mkdir -p "$ac_dir" 4924 else 4925 as_dir="$ac_dir" 4926 as_dirs= 4927 while test ! -d "$as_dir"; do 4928 as_dirs="$as_dir $as_dirs" 4929 as_dir=`(dirname "$as_dir") 2>/dev/null || 4930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4931 X"$as_dir" : 'X\(//\)[^/]' \| \ 4932 X"$as_dir" : 'X\(//\)$' \| \ 4933 X"$as_dir" : 'X\(/\)' \| \ 4934 . : '\(.\)' 2>/dev/null || 4935 echo X"$as_dir" | 4936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4937 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4938 /^X\(\/\/\)$/{ s//\1/; q; } 4939 /^X\(\/\).*/{ s//\1/; q; } 4940 s/.*/./; q'` 4941 done 4942 test ! -n "$as_dirs" || mkdir $as_dirs 4943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4945 { (exit 1); exit 1; }; }; } 4946 4947 ac_builddir=. 4948 4949 if test "$ac_dir" != .; then 4950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4951 # A "../" for each directory in $ac_dir_suffix. 4952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 4953 else 4954 ac_dir_suffix= ac_top_builddir= 4955 fi 4956 4957 case $srcdir in 4958 .) # No --srcdir option. We are building in place. 4959 ac_srcdir=. 4960 if test -z "$ac_top_builddir"; then 4961 ac_top_srcdir=. 4962 else 4963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 4964 fi ;; 4965 [\\/]* | ?:[\\/]* ) # Absolute path. 4966 ac_srcdir=$srcdir$ac_dir_suffix; 4967 ac_top_srcdir=$srcdir ;; 4968 *) # Relative path. 4969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 4970 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4971 esac 4972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 4973 # absolute. 4974 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 4975 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 4976 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 4977 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 4978 4979 4980 4981 if test x"$ac_file" != x-; then 4982 { echo "$as_me:$LINENO: creating $ac_file" >&5 4983 echo "$as_me: creating $ac_file" >&6;} 4984 rm -f "$ac_file" 4985 fi 4986 # Let's still pretend it is `configure' which instantiates (i.e., don't 4987 # use $as_me), people would be surprised to read: 4988 # /* config.h. Generated by config.status. */ 4989 if test x"$ac_file" = x-; then 4990 configure_input= 4991 else 4992 configure_input="$ac_file. " 4993 fi 4994 configure_input=$configure_input"Generated from `echo $ac_file_in | 4995 sed 's,.*/,,'` by configure." 4996 4997 # First look for the input files in the build tree, otherwise in the 4998 # src tree. 4999 ac_file_inputs=`IFS=: 5000 for f in $ac_file_in; do 5001 case $f in 5002 -) echo $tmp/stdin ;; 5003 [\\/$]*) 5004 # Absolute (can't be DOS-style, as IFS=:) 5005 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5006 echo "$as_me: error: cannot find input file: $f" >&2;} 5007 { (exit 1); exit 1; }; } 5008 echo $f;; 5009 *) # Relative 5010 if test -f "$f"; then 5011 # Build tree 5012 echo $f 5013 elif test -f "$srcdir/$f"; then 5014 # Source tree 5015 echo $srcdir/$f 5016 else 5017 # /dev/null tree 5018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5019 echo "$as_me: error: cannot find input file: $f" >&2;} 5020 { (exit 1); exit 1; }; } 5021 fi;; 5022 esac 5023 done` || { (exit 1); exit 1; } 5024 _ACEOF 5025 cat >>$CONFIG_STATUS <<_ACEOF 5026 sed "$ac_vpsub 5027 $extrasub 5028 _ACEOF 5029 cat >>$CONFIG_STATUS <<\_ACEOF 5030 :t 5031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5032 s,@configure_input@,$configure_input,;t t 5033 s,@srcdir@,$ac_srcdir,;t t 5034 s,@abs_srcdir@,$ac_abs_srcdir,;t t 5035 s,@top_srcdir@,$ac_top_srcdir,;t t 5036 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5037 s,@builddir@,$ac_builddir,;t t 5038 s,@abs_builddir@,$ac_abs_builddir,;t t 5039 s,@top_builddir@,$ac_top_builddir,;t t 5040 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5041 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5042 rm -f $tmp/stdin 5043 if test x"$ac_file" != x-; then 5044 mv $tmp/out $ac_file 5045 else 5046 cat $tmp/out 5047 rm -f $tmp/out 5048 fi 5049 5050 # Run the commands associated with the file. 5051 case $ac_file in 5052 stamp-h ) echo timestamp > stamp-h ;; 5053 esac 5054 done 5055 _ACEOF 5056 cat >>$CONFIG_STATUS <<\_ACEOF 5057 5058 # 5059 # CONFIG_HEADER section. 5060 # 5061 5062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5063 # NAME is the cpp macro being defined and VALUE is the value it is being given. 5064 # 5065 # ac_d sets the value in "#define NAME VALUE" lines. 5066 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5067 ac_dB='[ ].*$,\1#\2' 5068 ac_dC=' ' 5069 ac_dD=',;t' 5070 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5071 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5072 ac_uB='$,\1#\2define\3' 5073 ac_uC=' ' 5074 ac_uD=',;t' 5075 5076 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5078 case $ac_file in 5079 - | *:- | *:-:* ) # input from stdin 5080 cat >$tmp/stdin 5081 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5083 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5085 * ) ac_file_in=$ac_file.in ;; 5086 esac 5087 5088 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5089 echo "$as_me: creating $ac_file" >&6;} 5090 5091 # First look for the input files in the build tree, otherwise in the 5092 # src tree. 5093 ac_file_inputs=`IFS=: 5094 for f in $ac_file_in; do 5095 case $f in 5096 -) echo $tmp/stdin ;; 5097 [\\/$]*) 5098 # Absolute (can't be DOS-style, as IFS=:) 5099 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5100 echo "$as_me: error: cannot find input file: $f" >&2;} 5101 { (exit 1); exit 1; }; } 5102 echo $f;; 5103 *) # Relative 5104 if test -f "$f"; then 5105 # Build tree 5106 echo $f 5107 elif test -f "$srcdir/$f"; then 5108 # Source tree 5109 echo $srcdir/$f 5110 else 5111 # /dev/null tree 5112 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5113 echo "$as_me: error: cannot find input file: $f" >&2;} 5114 { (exit 1); exit 1; }; } 5115 fi;; 5116 esac 5117 done` || { (exit 1); exit 1; } 5118 # Remove the trailing spaces. 5119 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5120 5121 _ACEOF 5122 5123 # Transform confdefs.h into two sed scripts, `conftest.defines' and 5124 # `conftest.undefs', that substitutes the proper values into 5125 # config.h.in to produce config.h. The first handles `#define' 5126 # templates, and the second `#undef' templates. 5127 # And first: Protect against being on the right side of a sed subst in 5128 # config.status. Protect against being in an unquoted here document 5129 # in config.status. 5130 rm -f conftest.defines conftest.undefs 5131 # Using a here document instead of a string reduces the quoting nightmare. 5132 # Putting comments in sed scripts is not portable. 5133 # 5134 # `end' is used to avoid that the second main sed command (meant for 5135 # 0-ary CPP macros) applies to n-ary macro definitions. 5136 # See the Autoconf documentation for `clear'. 5137 cat >confdef2sed.sed <<\_ACEOF 5138 s/[\\&,]/\\&/g 5139 s,[\\$`],\\&,g 5140 t clear 5141 : clear 5142 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 5143 t end 5144 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5145 : end 5146 _ACEOF 5147 # If some macros were called several times there might be several times 5148 # the same #defines, which is useless. Nevertheless, we may not want to 5149 # sort them, since we want the *last* AC-DEFINE to be honored. 5150 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5151 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5152 rm -f confdef2sed.sed 5153 5154 # This sed command replaces #undef with comments. This is necessary, for 5155 # example, in the case of _POSIX_SOURCE, which is predefined and required 5156 # on some systems where configure will not decide to define it. 5157 cat >>conftest.undefs <<\_ACEOF 5158 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5159 _ACEOF 5160 5161 # Break up conftest.defines because some shells have a limit on the size 5162 # of here documents, and old seds have small limits too (100 cmds). 5163 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5164 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5165 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5166 echo ' :' >>$CONFIG_STATUS 5167 rm -f conftest.tail 5168 while grep . conftest.defines >/dev/null 5169 do 5170 # Write a limited-size here document to $tmp/defines.sed. 5171 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5172 # Speed up: don't consider the non `#define' lines. 5173 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5174 # Work around the forget-to-reset-the-flag bug. 5175 echo 't clr' >>$CONFIG_STATUS 5176 echo ': clr' >>$CONFIG_STATUS 5177 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5178 echo 'CEOF 5179 sed -f $tmp/defines.sed $tmp/in >$tmp/out 5180 rm -f $tmp/in 5181 mv $tmp/out $tmp/in 5182 ' >>$CONFIG_STATUS 5183 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5184 rm -f conftest.defines 5185 mv conftest.tail conftest.defines 5186 done 5187 rm -f conftest.defines 5188 echo ' fi # grep' >>$CONFIG_STATUS 5189 echo >>$CONFIG_STATUS 5190 5191 # Break up conftest.undefs because some shells have a limit on the size 5192 # of here documents, and old seds have small limits too (100 cmds). 5193 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5194 rm -f conftest.tail 5195 while grep . conftest.undefs >/dev/null 5196 do 5197 # Write a limited-size here document to $tmp/undefs.sed. 5198 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5199 # Speed up: don't consider the non `#undef' 5200 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5201 # Work around the forget-to-reset-the-flag bug. 5202 echo 't clr' >>$CONFIG_STATUS 5203 echo ': clr' >>$CONFIG_STATUS 5204 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5205 echo 'CEOF 5206 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5207 rm -f $tmp/in 5208 mv $tmp/out $tmp/in 5209 ' >>$CONFIG_STATUS 5210 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5211 rm -f conftest.undefs 5212 mv conftest.tail conftest.undefs 5213 done 5214 rm -f conftest.undefs 5215 5216 cat >>$CONFIG_STATUS <<\_ACEOF 5217 # Let's still pretend it is `configure' which instantiates (i.e., don't 5218 # use $as_me), people would be surprised to read: 5219 # /* config.h. Generated by config.status. */ 5220 if test x"$ac_file" = x-; then 5221 echo "/* Generated by configure. */" >$tmp/config.h 5222 else 5223 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 5224 fi 5225 cat $tmp/in >>$tmp/config.h 5226 rm -f $tmp/