2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for mod_auth_mysql 4.2.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='mod_auth_mysql'
269 PACKAGE_TARNAME='mod_auth_mysql'
270 PACKAGE_VERSION='4.2.0'
271 PACKAGE_STRING='mod_auth_mysql 4.2.0'
274 ac_unique_file="mod_auth_mysql.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT modules apxs apxs2 mysql_includes mysql_libs build_opts CPP EGREP LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures mod_auth_mysql 4.2.0 to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
836 if test -n "$ac_init_help"; then
837 case $ac_init_help in
838 short | recursive ) echo "Configuration of mod_auth_mysql 4.2.0:";;
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-apache13 Indicate that the apache 1.3 module should be built
846 --enable-apache2 Indicate that the apache 2.0 module should be built
849 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
850 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
851 --with-apxs location of the apxs module helper
852 --with-apxs2 location of the apxs2 Apache2 module helper
853 --with-mysql-includes MySQL includes directory
854 --with-mysql-libs MySQL libraries directory
856 Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883 ac_dir_suffix= ac_top_builddir=
887 .) # No --srcdir option. We are building in place.
889 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 # Do not use `cd foo && pwd` to compute absolute paths, because
903 # the directories may not exist.
905 .) ac_abs_builddir="$ac_dir";;
908 .) ac_abs_builddir=`pwd`;;
909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
913 case $ac_abs_builddir in
914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
916 case ${ac_top_builddir}. in
917 .) ac_abs_top_builddir=$ac_abs_builddir;;
918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922 case $ac_abs_builddir in
923 .) ac_abs_srcdir=$ac_srcdir;;
926 .) ac_abs_srcdir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931 case $ac_abs_builddir in
932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
934 case $ac_top_srcdir in
935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 # Check for guested configure; otherwise get Cygnus style configure.
943 if test -f $ac_srcdir/configure.gnu; then
945 $SHELL $ac_srcdir/configure.gnu --help=recursive
946 elif test -f $ac_srcdir/configure; then
948 $SHELL $ac_srcdir/configure --help=recursive
949 elif test -f $ac_srcdir/configure.ac ||
950 test -f $ac_srcdir/configure.in; then
954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 test -n "$ac_init_help" && exit 0
961 if $ac_init_version; then
963 mod_auth_mysql configure 4.2.0
964 generated by GNU Autoconf 2.59
966 Copyright (C) 2003 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by mod_auth_mysql $as_me 4.2.0, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_must_keep_next=false
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 -* ) ac_must_keep_next=true ;;
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1095 # The following way of writing the cache mishandles newlines in values,
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1118 for ac_var in $ac_subst_vars
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1125 if test -n "$ac_subst_files"; then
1132 for ac_var in $ac_subst_files
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -s confdefs.h; then
1147 sed "/^$/d" confdefs.h | sort
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1230 # Check that the precious variables saved in the cache have kept the same
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 ac_config_headers="$ac_config_headers config.h"
1318 # Checks for programs.
1320 # Checks for libraries.
1322 ac_cpp='$CPP $CPPFLAGS'
1323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326 if test -n "$ac_tool_prefix"; then
1327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1329 echo "$as_me:$LINENO: checking for $ac_word" >&5
1330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1331 if test "${ac_cv_prog_CC+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 if test -n "$CC"; then
1335 ac_cv_prog_CC="$CC" # Let the user override the test.
1337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1341 test -z "$as_dir" && as_dir=.
1342 for ac_exec_ext in '' $ac_executable_extensions; do
1343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354 if test -n "$CC"; then
1355 echo "$as_me:$LINENO: result: $CC" >&5
1356 echo "${ECHO_T}$CC" >&6
1358 echo "$as_me:$LINENO: result: no" >&5
1359 echo "${ECHO_T}no" >&6
1363 if test -z "$ac_cv_prog_CC"; then
1365 # Extract the first word of "gcc", so it can be a program name with args.
1366 set dummy gcc; ac_word=$2
1367 echo "$as_me:$LINENO: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 if test -n "$ac_ct_CC"; then
1373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1379 test -z "$as_dir" && as_dir=.
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382 ac_cv_prog_ac_ct_CC="gcc"
1383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1392 if test -n "$ac_ct_CC"; then
1393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1394 echo "${ECHO_T}$ac_ct_CC" >&6
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1405 if test -z "$CC"; then
1406 if test -n "$ac_tool_prefix"; then
1407 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1408 set dummy ${ac_tool_prefix}cc; ac_word=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_CC+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 if test -n "$CC"; then
1415 ac_cv_prog_CC="$CC" # Let the user override the test.
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 test -z "$as_dir" && as_dir=.
1422 for ac_exec_ext in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 ac_cv_prog_CC="${ac_tool_prefix}cc"
1425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434 if test -n "$CC"; then
1435 echo "$as_me:$LINENO: result: $CC" >&5
1436 echo "${ECHO_T}$CC" >&6
1438 echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1443 if test -z "$ac_cv_prog_CC"; then
1445 # Extract the first word of "cc", so it can be a program name with args.
1446 set dummy cc; ac_word=$2
1447 echo "$as_me:$LINENO: checking for $ac_word" >&5
1448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 if test -n "$ac_ct_CC"; then
1453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 ac_cv_prog_ac_ct_CC="cc"
1463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1472 if test -n "$ac_ct_CC"; then
1473 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1474 echo "${ECHO_T}$ac_ct_CC" >&6
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1486 if test -z "$CC"; then
1487 # Extract the first word of "cc", so it can be a program name with args.
1488 set dummy cc; ac_word=$2
1489 echo "$as_me:$LINENO: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1506 ac_prog_rejected=yes
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516 if test $ac_prog_rejected = yes; then
1517 # We found a bogon in the path, so make sure we never use it.
1518 set dummy $ac_cv_prog_CC
1520 if test $# != 0; then
1521 # We chose a different compiler from the bogus one.
1522 # However, it has the same basename, so the bogon will be chosen
1523 # first if we set CC to just the basename; use the full file name.
1525 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1531 if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1540 if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1579 test -n "$CC" && break
1582 if test -z "$CC"; then
1586 # Extract the first word of "$ac_prog", so it can be a program name with args.
1587 set dummy $ac_prog; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 if test -n "$ac_ct_CC"; then
1594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_ac_ct_CC="$ac_prog"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1613 if test -n "$ac_ct_CC"; then
1614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1615 echo "${ECHO_T}$ac_ct_CC" >&6
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1621 test -n "$ac_ct_CC" && break
1630 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1631 See \`config.log' for more details." >&5
1632 echo "$as_me: error: no acceptable C compiler found in \$PATH
1633 See \`config.log' for more details." >&2;}
1634 { (exit 1); exit 1; }; }
1636 # Provide some information about the compiler.
1637 echo "$as_me:$LINENO:" \
1638 "checking for C compiler version" >&5
1639 ac_compiler=`set X $ac_compile; echo $2`
1640 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1641 (eval $ac_compiler --version </dev/null >&5) 2>&5
1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644 (exit $ac_status); }
1645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1646 (eval $ac_compiler -v </dev/null >&5) 2>&5
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
1653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654 (exit $ac_status); }
1656 cat >conftest.$ac_ext <<_ACEOF
1659 cat confdefs.h >>conftest.$ac_ext
1660 cat >>conftest.$ac_ext <<_ACEOF
1661 /* end confdefs.h. */
1671 ac_clean_files_save=$ac_clean_files
1672 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1673 # Try to create an executable without -o first, disregard a.out.
1674 # It will help us diagnose broken compilers, and finding out an intuition
1676 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1677 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1678 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1679 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1680 (eval $ac_link_default) 2>&5
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }; then
1684 # Find the output, starting from the most likely. This scheme is
1685 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1688 # Be careful to initialize this variable, since it used to be cached.
1689 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1691 # b.out is created by i960 compilers.
1692 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1694 test -f "$ac_file" || continue
1696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1699 # This is the source file.
1702 # We found the default executable, but exeext='' is most
1706 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1707 # FIXME: I believe we export ac_cv_exeext for Libtool,
1708 # but it would be cool to find out if it's true. Does anybody
1709 # maintain Libtool? --akim.
1717 echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1721 See \`config.log' for more details." >&5
1722 echo "$as_me: error: C compiler cannot create executables
1723 See \`config.log' for more details." >&2;}
1724 { (exit 77); exit 77; }; }
1727 ac_exeext=$ac_cv_exeext
1728 echo "$as_me:$LINENO: result: $ac_file" >&5
1729 echo "${ECHO_T}$ac_file" >&6
1731 # Check the compiler produces executables we can run. If not, either
1732 # the compiler is broken, or we cross compile.
1733 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1734 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1735 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1736 # If not cross compiling, check that we can run a simple program.
1737 if test "$cross_compiling" != yes; then
1738 if { ac_try='./$ac_file'
1739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743 (exit $ac_status); }; }; then
1746 if test "$cross_compiling" = maybe; then
1749 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1750 If you meant to cross compile, use \`--host'.
1751 See \`config.log' for more details." >&5
1752 echo "$as_me: error: cannot run C compiled programs.
1753 If you meant to cross compile, use \`--host'.
1754 See \`config.log' for more details." >&2;}
1755 { (exit 1); exit 1; }; }
1759 echo "$as_me:$LINENO: result: yes" >&5
1760 echo "${ECHO_T}yes" >&6
1762 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1763 ac_clean_files=$ac_clean_files_save
1764 # Check the compiler produces executables we can run. If not, either
1765 # the compiler is broken, or we cross compile.
1766 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1767 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1768 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1769 echo "${ECHO_T}$cross_compiling" >&6
1771 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1772 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1774 (eval $ac_link) 2>&5
1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777 (exit $ac_status); }; then
1778 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1779 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1780 # work properly (i.e., refer to `conftest.exe'), while it won't with
1782 for ac_file in conftest.exe conftest conftest.*; do
1783 test -f "$ac_file" || continue
1785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1786 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1793 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1794 See \`config.log' for more details." >&5
1795 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1796 See \`config.log' for more details." >&2;}
1797 { (exit 1); exit 1; }; }
1800 rm -f conftest$ac_cv_exeext
1801 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1802 echo "${ECHO_T}$ac_cv_exeext" >&6
1804 rm -f conftest.$ac_ext
1805 EXEEXT=$ac_cv_exeext
1807 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1808 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1809 if test "${ac_cv_objext+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 cat >conftest.$ac_ext <<_ACEOF
1815 cat confdefs.h >>conftest.$ac_ext
1816 cat >>conftest.$ac_ext <<_ACEOF
1817 /* end confdefs.h. */
1827 rm -f conftest.o conftest.obj
1828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1829 (eval $ac_compile) 2>&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; then
1833 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1836 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1841 echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1845 See \`config.log' for more details." >&5
1846 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1847 See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1853 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1854 echo "${ECHO_T}$ac_cv_objext" >&6
1855 OBJEXT=$ac_cv_objext
1857 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1858 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1859 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 cat >conftest.$ac_ext <<_ACEOF
1865 cat confdefs.h >>conftest.$ac_ext
1866 cat >>conftest.$ac_ext <<_ACEOF
1867 /* end confdefs.h. */
1880 rm -f conftest.$ac_objext
1881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1882 (eval $ac_compile) 2>conftest.er1
1884 grep -v '^ *+' conftest.er1 >conftest.err
1886 cat conftest.err >&5
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); } &&
1889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; } &&
1895 { ac_try='test -s conftest.$ac_objext'
1896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); }; }; then
1903 echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1912 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1913 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1914 GCC=`test $ac_compiler_gnu = yes && echo yes`
1915 ac_test_CFLAGS=${CFLAGS+set}
1916 ac_save_CFLAGS=$CFLAGS
1918 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1920 if test "${ac_cv_prog_cc_g+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.$ac_ext <<_ACEOF
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h. */
1938 rm -f conftest.$ac_objext
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>conftest.er1
1942 grep -v '^ *+' conftest.er1 >conftest.err
1944 cat conftest.err >&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); } &&
1947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; } &&
1953 { ac_try='test -s conftest.$ac_objext'
1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; }; then
1961 echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1970 if test "$ac_test_CFLAGS" = set; then
1971 CFLAGS=$ac_save_CFLAGS
1972 elif test $ac_cv_prog_cc_g = yes; then
1973 if test "$GCC" = yes; then
1979 if test "$GCC" = yes; then
1985 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1986 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1987 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 ac_cv_prog_cc_stdc=no
1992 cat >conftest.$ac_ext <<_ACEOF
1995 cat confdefs.h >>conftest.$ac_ext
1996 cat >>conftest.$ac_ext <<_ACEOF
1997 /* end confdefs.h. */
2000 #include <sys/types.h>
2001 #include <sys/stat.h>
2002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2003 struct buf { int x; };
2004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2005 static char *e (p, i)
2011 static char *f (char * (*g) (char **, int), char **p, ...)
2016 s = g (p, va_arg (v,int));
2021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2022 function prototypes and stuff, but not '\xHH' hex character constants.
2023 These don't provoke an error unfortunately, instead are silently treated
2024 as 'x'. The following induces an error, until -std1 is added to get
2025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2026 array size at least. It's necessary to write '\x00'==0 to get something
2027 that's true only with -std1. */
2028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2030 int test (int i, double x);
2031 struct s1 {int (*f) (int a);};
2032 struct s2 {int (*f) (double a);};
2033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2044 # Don't try gcc -ansi; that turns off useful extensions and
2045 # breaks some systems' header files.
2046 # AIX -qlanglvl=ansi
2047 # Ultrix and OSF/1 -std1
2048 # HP-UX 10.20 and later -Ae
2049 # HP-UX older versions -Aa -D_HPUX_SOURCE
2050 # SVR4 -Xc -D__EXTENSIONS__
2051 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2053 CC="$ac_save_CC $ac_arg"
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2058 grep -v '^ *+' conftest.er1 >conftest.err
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_stdc=$ac_arg
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2082 rm -f conftest.err conftest.$ac_objext
2084 rm -f conftest.$ac_ext conftest.$ac_objext
2089 case "x$ac_cv_prog_cc_stdc" in
2091 echo "$as_me:$LINENO: result: none needed" >&5
2092 echo "${ECHO_T}none needed" >&6 ;;
2094 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2095 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2096 CC="$CC $ac_cv_prog_cc_stdc" ;;
2099 # Some people use a C++ compiler to compile C. Since we use `exit',
2100 # in C++ we need to declare it. In case someone uses the same compiler
2101 # for both compiling C and C++ we need to have the C++ compiler decide
2102 # the declaration of exit, since it's the most demanding environment.
2103 cat >conftest.$ac_ext <<_ACEOF
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>conftest.er1
2112 grep -v '^ *+' conftest.er1 >conftest.err
2114 cat conftest.err >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 for ac_declaration in \
2131 'extern "C" void std::exit (int) throw (); using std::exit;' \
2132 'extern "C" void std::exit (int); using std::exit;' \
2133 'extern "C" void exit (int) throw ();' \
2134 'extern "C" void exit (int);' \
2137 cat >conftest.$ac_ext <<_ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2153 rm -f conftest.$ac_objext
2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2157 grep -v '^ *+' conftest.er1 >conftest.err
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 cat >conftest.$ac_ext <<_ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2201 grep -v '^ *+' conftest.er1 >conftest.err
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2227 if test -n "$ac_declaration"; then
2228 echo '#ifdef __cplusplus' >>confdefs.h
2229 echo $ac_declaration >>confdefs.h
2230 echo '#endif' >>confdefs.h
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
2248 echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
2249 if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 ac_check_lib_save_LIBS=$LIBS
2253 LIBS="-lmysqlclient $LIBS"
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2261 /* Override any gcc2 internal prototype to avoid an error. */
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2276 rm -f conftest.$ac_objext conftest$ac_exeext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278 (eval $ac_link) 2>conftest.er1
2280 grep -v '^ *+' conftest.er1 >conftest.err
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; } &&
2291 { ac_try='test -s conftest$ac_exeext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_lib_mysqlclient_mysql_init=yes
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 ac_cv_lib_mysqlclient_mysql_init=no
2304 rm -f conftest.err conftest.$ac_objext \
2305 conftest$ac_exeext conftest.$ac_ext
2306 LIBS=$ac_check_lib_save_LIBS
2308 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
2309 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
2310 if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
2311 cat >>confdefs.h <<_ACEOF
2312 #define HAVE_LIBMYSQLCLIENT 1
2315 LIBS="-lmysqlclient $LIBS"
2320 # Check whether --enable-apache13 or --disable-apache13 was given.
2321 if test "${enable_apache13+set}" = set; then
2322 enableval="$enable_apache13"
2324 if test "x$enableval" = "xyes"; then
2326 modules="$modules apache13_mod_auth_mysql.so"
2331 # Build the apache 1.3 module by default
2333 modules="$modules apache13_mod_auth_mysql.so"
2337 # Check whether --enable-apache2 or --disable-apache2 was given.
2338 if test "${enable_apache2+set}" = set; then
2339 enableval="$enable_apache2"
2341 if test "x$enableval" = "xyes"; then
2343 modules="$modules apache2_mod_auth_mysql.so"
2350 # Check whether --with-apxs or --without-apxs was given.
2351 if test "${with_apxs+set}" = set; then
2352 withval="$with_apxs"
2354 if test "x$buildapache13" = "xyes"; then
2355 if test ! -x $withval; then
2356 { { echo "$as_me:$LINENO: error: $withval not found" >&5
2357 echo "$as_me: error: $withval not found" >&2;}
2358 { (exit 1); exit 1; }; }
2366 if test "x$buildapache13" = "xyes"; then
2367 # Test common apxs locations; add any others I've missed here
2368 if test -x /usr/bin/apxs; then
2369 apxs="/usr/bin/apxs"
2370 elif test -x /usr/local/bin/apxs; then
2371 apxs="/usr/local/bin/apxs"
2373 { { echo "$as_me:$LINENO: error: Apache extension helper apxs not found!" >&5
2374 echo "$as_me: error: Apache extension helper apxs not found!" >&2;}
2375 { (exit 1); exit 1; }; }
2383 # Check whether --with-apxs2 or --without-apxs2 was given.
2384 if test "${with_apxs2+set}" = set; then
2385 withval="$with_apxs2"
2387 if test "x$buildapache2" = "xyes"; then
2388 if test ! -x $withval; then
2389 { { echo "$as_me:$LINENO: error: $withval not found" >&5
2390 echo "$as_me: error: $withval not found" >&2;}
2391 { (exit 1); exit 1; }; }
2399 if test "x$buildapache2" = "xyes"; then
2400 # Test likely apxs2 locations
2401 if test -x /usr/bin/apxs2; then
2402 apxs2="/usr/bin/apxs2"
2403 elif test -x /usr/local/bin/apxs2; then
2404 apxs2="/usr/local/bin/apxs2"
2406 { { echo "$as_me:$LINENO: error: Apache2 extension helper not found!" >&5
2407 echo "$as_me: error: Apache2 extension helper not found!" >&2;}
2408 { (exit 1); exit 1; }; }
2416 # Check whether --with-mysql-includes or --without-mysql-includes was given.
2417 if test "${with_mysql_includes+set}" = set; then
2418 withval="$with_mysql_includes"
2420 if test ! -e $withval/mysql.h; then
2421 { { echo "$as_me:$LINENO: error: Invalid MySQL includes directory: $withval" >&5
2422 echo "$as_me: error: Invalid MySQL includes directory: $withval" >&2;}
2423 { (exit 1); exit 1; }; }
2425 mysql_includes="-I$withval"
2430 # Common location finder
2431 if test -e /usr/include/mysql/mysql.h; then
2432 mysql_includes="-I/usr/include/mysql"
2433 elif test -e /usr/include/mysql.h; then
2434 mysql_includes="-I/usr/include"
2435 elif test -e /usr/local/include/mysql/mysql.h; then
2436 mysql_includes="-I/usr/local/include/mysql"
2437 elif test -e /usr/local/include/mysql.h; then
2438 mysql_includes="-I/usr/local/include"
2440 { { echo "$as_me:$LINENO: error: MySQL include files not found!" >&5
2441 echo "$as_me: error: MySQL include files not found!" >&2;}
2442 { (exit 1); exit 1; }; }
2449 # Check whether --with-mysql-libs or --without-mysql-libs was given.
2450 if test "${with_mysql_libs+set}" = set; then
2451 withval="$with_mysql_libs"
2453 if test ! -e $withval/libmysqlclient.so; then
2454 { { echo "$as_me:$LINENO: error: Invalid MySQL libs directory: $withval" >&5
2455 echo "$as_me: error: Invalid MySQL libs directory: $withval" >&2;}
2456 { (exit 1); exit 1; }; }
2458 mysql_libs="-L$withval"
2463 # Common location finder
2464 if test -e /usr/lib/mysql/libmysqlclient.so; then
2465 mysql_libs="-L/usr/lib/mysql"
2466 elif test -e /usr/lib/libmysqlclient.so; then
2467 mysql_libs="-L/usr/lib"
2468 elif test -e /usr/local/lib/mysql/libmysqlclient.so; then
2469 mysql_libs="-L/usr/local/lib/mysql"
2470 elif test -e /usr/local/lib/libmysqlclient.so ; then
2471 mysql_libs="-L/usr/local/lib"
2473 { { echo "$as_me:$LINENO: error: MySQL libraries not found!" >&5
2474 echo "$as_me: error: MySQL libraries not found!" >&2;}
2475 { (exit 1); exit 1; }; }
2481 build_opts="$mysql_includes $mysql_libs"
2484 # Checks for header files.
2486 ac_cpp='$CPP $CPPFLAGS'
2487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2491 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2492 # On Suns, sometimes $CPP names a directory.
2493 if test -n "$CPP" && test -d "$CPP"; then
2496 if test -z "$CPP"; then
2497 if test "${ac_cv_prog_CPP+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 # Double quotes because CPP needs to be expanded
2501 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2504 for ac_c_preproc_warn_flag in '' yes
2506 # Use a header file that comes with gcc, so configuring glibc
2507 # with a fresh cross-compiler works.
2508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509 # <limits.h> exists even on freestanding compilers.
2510 # On the NeXT, cc -E runs the code through the compiler's parser,
2511 # not just through cpp. "Syntax error" is here to catch this case.
2512 cat >conftest.$ac_ext <<_ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2519 # include <limits.h>
2521 # include <assert.h>
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2542 if test -z "$ac_cpp_err"; then
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 # Broken: fails on valid input.
2551 rm -f conftest.err conftest.$ac_ext
2553 # OK, works on sane cases. Now check whether non-existent headers
2554 # can be detected and how.
2555 cat >conftest.$ac_ext <<_ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2561 #include <ac_nonexistent.h>
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev/null; then
2571 if test -s conftest.err; then
2572 ac_cpp_err=$ac_c_preproc_warn_flag
2573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2580 if test -z "$ac_cpp_err"; then
2581 # Broken: success on invalid input.
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2587 # Passes both tests.
2591 rm -f conftest.err conftest.$ac_ext
2594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2595 rm -f conftest.err conftest.$ac_ext
2596 if $ac_preproc_ok; then
2608 echo "$as_me:$LINENO: result: $CPP" >&5
2609 echo "${ECHO_T}$CPP" >&6
2611 for ac_c_preproc_warn_flag in '' yes
2613 # Use a header file that comes with gcc, so configuring glibc
2614 # with a fresh cross-compiler works.
2615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2616 # <limits.h> exists even on freestanding compilers.
2617 # On the NeXT, cc -E runs the code through the compiler's parser,
2618 # not just through cpp. "Syntax error" is here to catch this case.
2619 cat >conftest.$ac_ext <<_ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2626 # include <limits.h>
2628 # include <assert.h>
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2635 grep -v '^ *+' conftest.er1 >conftest.err
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2649 if test -z "$ac_cpp_err"; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 # Broken: fails on valid input.
2658 rm -f conftest.err conftest.$ac_ext
2660 # OK, works on sane cases. Now check whether non-existent headers
2661 # can be detected and how.
2662 cat >conftest.$ac_ext <<_ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2668 #include <ac_nonexistent.h>
2670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2673 grep -v '^ *+' conftest.er1 >conftest.err
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } >/dev/null; then
2678 if test -s conftest.err; then
2679 ac_cpp_err=$ac_c_preproc_warn_flag
2680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2687 if test -z "$ac_cpp_err"; then
2688 # Broken: success on invalid input.
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2694 # Passes both tests.
2698 rm -f conftest.err conftest.$ac_ext
2701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2702 rm -f conftest.err conftest.$ac_ext
2703 if $ac_preproc_ok; then
2706 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2709 See \`config.log' for more details." >&2;}
2710 { (exit 1); exit 1; }; }
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 echo "$as_me:$LINENO: checking for egrep" >&5
2721 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2722 if test "${ac_cv_prog_egrep+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2726 then ac_cv_prog_egrep='grep -E'
2727 else ac_cv_prog_egrep='egrep'
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2731 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2732 EGREP=$ac_cv_prog_egrep
2735 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2736 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2737 if test "${ac_cv_header_stdc+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; } &&
2774 { ac_try='test -s conftest.$ac_objext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 ac_cv_header_stdc=yes
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 ac_cv_header_stdc=no
2787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 if test $ac_cv_header_stdc = yes; then
2790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2791 cat >conftest.$ac_ext <<_ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2801 $EGREP "memchr" >/dev/null 2>&1; then
2804 ac_cv_header_stdc=no
2810 if test $ac_cv_header_stdc = yes; then
2811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2822 $EGREP "free" >/dev/null 2>&1; then
2825 ac_cv_header_stdc=no
2831 if test $ac_cv_header_stdc = yes; then
2832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2833 if test "$cross_compiling" = yes; then
2836 cat >conftest.$ac_ext <<_ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2843 #if ((' ' & 0x0FF) == 0x020)
2844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2847 # define ISLOWER(c) \
2848 (('a' <= (c) && (c) <= 'i') \
2849 || ('j' <= (c) && (c) <= 'r') \
2850 || ('s' <= (c) && (c) <= 'z'))
2851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2859 for (i = 0; i < 256; i++)
2860 if (XOR (islower (i), ISLOWER (i))
2861 || toupper (i) != TOUPPER (i))
2866 rm -f conftest$ac_exeext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2868 (eval $ac_link) 2>&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2879 echo "$as_me: program exited with status $ac_status" >&5
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2884 ac_cv_header_stdc=no
2886 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2890 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2891 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2892 if test $ac_cv_header_stdc = yes; then
2894 cat >>confdefs.h <<\_ACEOF
2895 #define STDC_HEADERS 1
2900 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2910 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2911 inttypes.h stdint.h unistd.h
2913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2914 echo "$as_me:$LINENO: checking for $ac_header" >&5
2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 $ac_includes_default
2927 #include <$ac_header>
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>conftest.er1
2933 grep -v '^ *+' conftest.er1 >conftest.err
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 eval "$as_ac_Header=yes"
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 eval "$as_ac_Header=no"
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2962 cat >>confdefs.h <<_ACEOF
2963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2972 for ac_header in crypt.h
2974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2976 echo "$as_me:$LINENO: checking for $ac_header" >&5
2977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2984 # Is the header compilable?
2985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 $ac_includes_default
2994 #include <$ac_header>
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_header_compiler=yes
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ac_header_compiler=no
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3026 echo "${ECHO_T}$ac_header_compiler" >&6
3028 # Is the header present?
3029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 #include <$ac_header>
3039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3042 grep -v '^ *+' conftest.er1 >conftest.err
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null; then
3047 if test -s conftest.err; then
3048 ac_cpp_err=$ac_c_preproc_warn_flag
3049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3056 if test -z "$ac_cpp_err"; then
3057 ac_header_preproc=yes
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 ac_header_preproc=no
3064 rm -f conftest.err conftest.$ac_ext
3065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3066 echo "${ECHO_T}$ac_header_preproc" >&6
3068 # So? What about this header?
3069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3075 ac_header_preproc=yes
3078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3092 ## ----------------------------------------- ##
3093 ## Report this to the mod_auth_mysql lists. ##
3094 ## ----------------------------------------- ##
3097 sed "s/^/$as_me: WARNING: /" >&2
3100 echo "$as_me:$LINENO: checking for $ac_header" >&5
3101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 eval "$as_ac_Header=\$ac_header_preproc"
3107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3112 cat >>confdefs.h <<_ACEOF
3113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3122 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
3123 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
3124 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_check_lib_save_LIBS=$LIBS
3128 LIBS="-lcrypt $LIBS"
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3136 /* Override any gcc2 internal prototype to avoid an error. */
3140 /* We use char because int might match the return type of a gcc2
3141 builtin and then its argument prototype would still apply. */
3151 rm -f conftest.$ac_objext conftest$ac_exeext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3153 (eval $ac_link) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest$ac_exeext'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_lib_crypt_crypt=yes
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 ac_cv_lib_crypt_crypt=no
3179 rm -f conftest.err conftest.$ac_objext \
3180 conftest$ac_exeext conftest.$ac_ext
3181 LIBS=$ac_check_lib_save_LIBS
3183 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
3184 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
3185 if test $ac_cv_lib_crypt_crypt = yes; then
3186 cat >>confdefs.h <<_ACEOF
3187 #define HAVE_LIBCRYPT 1
3190 LIBS="-lcrypt $LIBS"
3195 if test -n $HAVE_CRYPT_H; then
3196 if test "$cross_compiling" = yes; then
3197 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3198 See \`config.log' for more details." >&5
3199 echo "$as_me: error: cannot run test program while cross compiling
3200 See \`config.log' for more details." >&2;}
3201 { (exit 1); exit 1; }; }
3203 cat >conftest.$ac_ext <<_ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3215 return strcmp(crypt("a", "\$1\$aaaaaaaa"),
3216 "\$1\$aaaaaaaa\$S270EsVIz5M8Y9/k4SSEf.");
3220 rm -f conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222 (eval $ac_link) 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3232 cat >>confdefs.h <<\_ACEOF
3237 echo "$as_me: program exited with status $ac_status" >&5
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3244 if test "$cross_compiling" = yes; then
3245 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot run test program while cross compiling
3248 See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3251 cat >conftest.$ac_ext <<_ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3263 return strcmp(crypt("a", "aa"),
3268 rm -f conftest$ac_exeext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3270 (eval $ac_link) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3280 cat >>confdefs.h <<\_ACEOF
3285 echo "$as_me: program exited with status $ac_status" >&5
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3293 fi # if test -n HAVE_CRYPT_H
3295 # Checks for typedefs, structures, and compiler characteristics.
3296 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3297 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3298 if test "${ac_cv_c_const+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3311 /* FIXME: Include the comments suggested by Paul. */
3313 /* Ultrix mips cc rejects this. */
3314 typedef int charset[2];
3316 /* SunOS 4.1.1 cc rejects this. */
3317 char const *const *ccp;
3319 /* NEC SVR4.0.2 mips cc rejects this. */
3320 struct point {int x, y;};
3321 static struct point const zero = {0,0};
3322 /* AIX XL C 1.02.0.0 rejects this.
3323 It does not let you subtract one const X* pointer from another in
3324 an arm of an if-expression whose if-part is not a constant
3326 const char *g = "string";
3327 ccp = &g + (g ? g-g : 0);
3328 /* HPUX 7.0 cc rejects these. */
3331 ccp = (char const *const *) p;
3332 { /* SCO 3.2v4 cc rejects this. */
3334 char const *s = 0 ? (char *) 0 : (char const *) 0;
3338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3340 const int *foo = &x[0];
3343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3344 typedef const int *iptr;
3348 { /* AIX XL C 1.02.0.0 rejects this saying
3349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3350 struct s { int j; const int *ap[3]; };
3351 struct s *b; b->j = 5;
3353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3393 echo "${ECHO_T}$ac_cv_c_const" >&6
3394 if test $ac_cv_c_const = no; then
3396 cat >>confdefs.h <<\_ACEOF
3403 # Checks for library functions.
3404 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3405 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3406 if test "${ac_cv_type_signal+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <sys/types.h>
3421 extern "C" void (*signal (int, void (*)(int)))(int);
3423 void (*signal ()) ();
3434 rm -f conftest.$ac_objext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_type_signal=void
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_cv_type_signal=int
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3465 echo "${ECHO_T}$ac_cv_type_signal" >&6
3467 cat >>confdefs.h <<_ACEOF
3468 #define RETSIGTYPE $ac_cv_type_signal
3473 ac_config_files="$ac_config_files Makefile"
3475 cat >confcache <<\_ACEOF
3476 # This file is a shell script that caches the results of configure
3477 # tests run on this system so they can be shared between configure
3478 # scripts and configure runs, see configure's option --config-cache.
3479 # It is not useful on other systems. If it contains results you don't
3480 # want to keep, you may remove or edit it.
3482 # config.status only pays attention to the cache file if you give it
3483 # the --recheck option to rerun configure.
3485 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3491 # The following way of writing the cache mishandles newlines in values,
3492 # but we know of no workaround that is simple, portable, and efficient.
3493 # So, don't put newlines in cache variables' values.
3494 # Ultrix sh set writes to stderr and can't be redirected directly,
3495 # and sets the high bit in the cache file unless we assign to the vars.
3498 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3500 # `set' does not quote correctly, so add quotes (double-quote
3501 # substitution turns \\\\ into \\, and sed turns \\ into \).
3504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3507 # `set' quotes correctly as required by POSIX, so do not add quotes.
3509 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3518 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3520 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3521 if test -w $cache_file; then
3522 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3523 cat confcache >$cache_file
3525 echo "not updating unwritable cache $cache_file"
3530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3531 # Let make expand exec_prefix.
3532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3536 # trailing colons and then remove the whole line if VPATH becomes empty
3537 # (actually we leave an empty line to preserve line numbers).
3538 if test "x$srcdir" = x.; then
3539 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3540 s/:*\$(srcdir):*/:/;
3541 s/:*\${srcdir}:*/:/;
3543 s/^\([^=]*=[ ]*\):*/\1/;
3549 DEFS=-DHAVE_CONFIG_H
3553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3554 # 1. Remove the extension, and $U if already installed.
3555 ac_i=`echo "$ac_i" |
3556 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3558 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3559 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3563 LTLIBOBJS=$ac_ltlibobjs
3567 : ${CONFIG_STATUS=./config.status}
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3572 cat >$CONFIG_STATUS <<_ACEOF
3574 # Generated by $as_me.
3575 # Run this file to recreate the current configuration.
3576 # Compiler output produced by configure, useful for debugging
3577 # configure, is in config.log if it exists.
3582 SHELL=\${CONFIG_SHELL-$SHELL}
3585 cat >>$CONFIG_STATUS <<\_ACEOF
3586 ## --------------------- ##
3587 ## M4sh Initialization. ##
3588 ## --------------------- ##
3590 # Be Bourne compatible
3591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3594 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3595 # is contrary to our usage. Disable this feature.
3596 alias -g '${1+"$@"}'='"$@"'
3597 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3600 DUALCASE=1; export DUALCASE # for MKS sh
3602 # Support unset when possible.
3603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3610 # Work around bugs in pre-3.0 UWIN ksh.
3611 $as_unset ENV MAIL MAILPATH
3618 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3619 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3620 LC_TELEPHONE LC_TIME
3622 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3623 eval $as_var=C; export $as_var
3629 # Required to use basename.
3630 if expr a : '\(a\)' >/dev/null 2>&1; then
3636 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3637 as_basename=basename
3643 # Name of the executable.
3644 as_me=`$as_basename "$0" ||
3645 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3646 X"$0" : 'X\(//\)$' \| \
3647 X"$0" : 'X\(/\)$' \| \
3648 . : '\(.\)' 2>/dev/null ||
3650 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3651 /^X\/\(\/\/\)$/{ s//\1/; q; }
3652 /^X\/\(\/\).*/{ s//\1/; q; }
3656 # PATH needs CR, and LINENO needs CR and PATH.
3657 # Avoid depending upon Character Ranges.
3658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3661 as_cr_digits='0123456789'
3662 as_cr_alnum=$as_cr_Letters$as_cr_digits
3664 # The user is always right.
3665 if test "${PATH_SEPARATOR+set}" != set; then
3666 echo "#! /bin/sh" >conf$$.sh
3667 echo "exit 0" >>conf$$.sh
3669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3680 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3681 test "x$as_lineno_1" != "x$as_lineno_2" &&
3682 test "x$as_lineno_3" = "x$as_lineno_2" || {
3683 # Find who we are. Look in the path if we contain no path at all
3686 *[\\/]* ) as_myself=$0 ;;
3687 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 test -z "$as_dir" && as_dir=.
3692 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3697 # We did not find ourselves, most probably we were run as `sh COMMAND'
3698 # in which case we are not to be found in the path.
3699 if test "x$as_myself" = x; then
3702 if test ! -f "$as_myself"; then
3703 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3704 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3705 { (exit 1); exit 1; }; }
3707 case $CONFIG_SHELL in
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3713 test -z "$as_dir" && as_dir=.
3714 for as_base in sh bash ksh sh5; do
3717 if ("$as_dir/$as_base" -c '
3720 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3721 test "x$as_lineno_1" != "x$as_lineno_2" &&
3722 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3723 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3724 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3725 CONFIG_SHELL=$as_dir/$as_base
3727 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3735 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3736 # uniformly replaced by the line number. The first 'sed' inserts a
3737 # line-number line before each line; the second 'sed' does the real
3738 # work. The second script uses 'N' to pair each line-number line
3739 # with the numbered line, and appends trailing '-' during
3740 # substitution so that $LINENO is not a special case at line end.
3741 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3742 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3743 sed '=' <$as_myself |
3748 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3751 s,^['$as_cr_digits']*\n,,
3753 chmod +x $as_me.lineno ||
3754 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3755 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3756 { (exit 1); exit 1; }; }
3758 # Don't try to exec as it changes $[0], causing all sort of problems
3759 # (the dirname of $[0] is not the place where we might find the
3760 # original and so on. Autoconf is especially sensible to this).
3762 # Exit status is that of the last command.
3767 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3768 *c*,-n*) ECHO_N= ECHO_C='
3770 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3771 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3774 if expr a : '\(a\)' >/dev/null 2>&1; then
3780 rm -f conf$$ conf$$.exe conf$$.file
3782 if ln -s conf$$.file conf$$ 2>/dev/null; then
3783 # We could just check for DJGPP; but this test a) works b) is more generic
3784 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3785 if test -f conf$$.exe; then
3786 # Don't use ln at all; we don't have any links
3791 elif ln conf$$.file conf$$ 2>/dev/null; then
3796 rm -f conf$$ conf$$.exe conf$$.file
3798 if mkdir -p . 2>/dev/null; then
3801 test -d ./-p && rmdir ./-p
3805 as_executable_p="test -f"
3807 # Sed expression to map a string onto a valid CPP name.
3808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3810 # Sed expression to map a string onto a valid variable name.
3811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3815 # We need space, tab and new line, in precisely that order.
3825 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3826 # report actual input values of CONFIG_FILES etc. instead of their
3827 # values after options handling. Logging --version etc. is OK.
3831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3832 ## Running $as_me. ##
3837 This file was extended by mod_auth_mysql $as_me 4.2.0, which was
3838 generated by GNU Autoconf 2.59. Invocation command line was
3840 CONFIG_FILES = $CONFIG_FILES
3841 CONFIG_HEADERS = $CONFIG_HEADERS
3842 CONFIG_LINKS = $CONFIG_LINKS
3843 CONFIG_COMMANDS = $CONFIG_COMMANDS
3847 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3851 # Files that config.status was made for.
3852 if test -n "$ac_config_files"; then
3853 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3856 if test -n "$ac_config_headers"; then
3857 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3860 if test -n "$ac_config_links"; then
3861 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3864 if test -n "$ac_config_commands"; then
3865 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3868 cat >>$CONFIG_STATUS <<\_ACEOF
3871 \`$as_me' instantiates files from templates according to the
3872 current configuration.
3874 Usage: $0 [OPTIONS] [FILE]...
3876 -h, --help print this help, then exit
3877 -V, --version print version number, then exit
3878 -q, --quiet do not print progress messages
3879 -d, --debug don't remove temporary files
3880 --recheck update $as_me by reconfiguring in the same conditions
3881 --file=FILE[:TEMPLATE]
3882 instantiate the configuration file FILE
3883 --header=FILE[:TEMPLATE]
3884 instantiate the configuration header FILE
3886 Configuration files:
3889 Configuration headers:
3892 Report bugs to <bug-autoconf@gnu.org>."
3895 cat >>$CONFIG_STATUS <<_ACEOF
3897 mod_auth_mysql config.status 4.2.0
3898 configured by $0, generated by GNU Autoconf 2.59,
3899 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3901 Copyright (C) 2003 Free Software Foundation, Inc.
3902 This config.status script is free software; the Free Software Foundation
3903 gives unlimited permission to copy, distribute and modify it."
3907 cat >>$CONFIG_STATUS <<\_ACEOF
3908 # If no file are specified by the user, then we need to provide default
3909 # value. By we need to know if files were specified by the user.
3915 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3916 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3924 *) # This is not an option, so the user has probably given explicit
3927 ac_need_defaults=false;;
3931 # Handling of the options.
3933 cat >>$CONFIG_STATUS <<\_ACEOF
3934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3936 --version | --vers* | -V )
3937 echo "$ac_cs_version"; exit 0 ;;
3939 # Conflict between --help and --header
3940 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3941 Try \`$0 --help' for more information." >&5
3942 echo "$as_me: error: ambiguous option: $1
3943 Try \`$0 --help' for more information." >&2;}
3944 { (exit 1); exit 1; }; };;
3945 --help | --hel | -h )
3946 echo "$ac_cs_usage"; exit 0 ;;
3947 --debug | --d* | -d )
3949 --file | --fil | --fi | --f )
3951 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3952 ac_need_defaults=false;;
3953 --header | --heade | --head | --hea )
3955 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3956 ac_need_defaults=false;;
3957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3962 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3963 Try \`$0 --help' for more information." >&5
3964 echo "$as_me: error: unrecognized option: $1
3965 Try \`$0 --help' for more information." >&2;}
3966 { (exit 1); exit 1; }; } ;;
3968 *) ac_config_targets="$ac_config_targets $1" ;;
3974 ac_configure_extra_args=
3976 if $ac_cs_silent; then
3978 ac_configure_extra_args="$ac_configure_extra_args --silent"
3982 cat >>$CONFIG_STATUS <<_ACEOF
3983 if \$ac_cs_recheck; then
3984 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3985 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3994 cat >>$CONFIG_STATUS <<\_ACEOF
3995 for ac_config_target in $ac_config_targets
3997 case "$ac_config_target" in
3998 # Handling of arguments.
3999 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4000 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4003 { (exit 1); exit 1; }; };;
4007 # If the user did not use the arguments to specify the items to instantiate,
4008 # then the envvar interface is used. Set only those that are not.
4009 # We use the long form for the default assignment because of an extremely
4010 # bizarre bug on SunOS 4.1.3.
4011 if $ac_need_defaults; then
4012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4016 # Have a temporary directory for convenience. Make it in the build tree
4017 # simply because there is no reason to put it here, and in addition,
4018 # creating and moving files from /tmp can sometimes cause problems.
4019 # Create a temporary directory, and hook for its removal unless debugging.
4022 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4023 trap '{ (exit 1); exit 1; }' 1 2 13 15
4026 # Create a (secure) tmp directory for tmp files.
4029 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4030 test -n "$tmp" && test -d "$tmp"
4033 tmp=./confstat$$-$RANDOM
4034 (umask 077 && mkdir $tmp)
4037 echo "$me: cannot create a temporary directory in ." >&2
4038 { (exit 1); exit 1; }
4043 cat >>$CONFIG_STATUS <<_ACEOF
4046 # CONFIG_FILES section.
4049 # No need to generate the scripts if there are no CONFIG_FILES.
4050 # This happens for instance when ./config.status config.h
4051 if test -n "\$CONFIG_FILES"; then
4052 # Protect against being on the right side of a sed subst in config.status.
4053 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4054 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4055 s,@SHELL@,$SHELL,;t t
4056 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4057 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4058 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4059 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4060 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4061 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4062 s,@exec_prefix@,$exec_prefix,;t t
4063 s,@prefix@,$prefix,;t t
4064 s,@program_transform_name@,$program_transform_name,;t t
4065 s,@bindir@,$bindir,;t t
4066 s,@sbindir@,$sbindir,;t t
4067 s,@libexecdir@,$libexecdir,;t t
4068 s,@datadir@,$datadir,;t t
4069 s,@sysconfdir@,$sysconfdir,;t t
4070 s,@sharedstatedir@,$sharedstatedir,;t t
4071 s,@localstatedir@,$localstatedir,;t t
4072 s,@libdir@,$libdir,;t t
4073 s,@includedir@,$includedir,;t t
4074 s,@oldincludedir@,$oldincludedir,;t t
4075 s,@infodir@,$infodir,;t t
4076 s,@mandir@,$mandir,;t t
4077 s,@build_alias@,$build_alias,;t t
4078 s,@host_alias@,$host_alias,;t t
4079 s,@target_alias@,$target_alias,;t t
4081 s,@ECHO_C@,$ECHO_C,;t t
4082 s,@ECHO_N@,$ECHO_N,;t t
4083 s,@ECHO_T@,$ECHO_T,;t t
4086 s,@CFLAGS@,$CFLAGS,;t t
4087 s,@LDFLAGS@,$LDFLAGS,;t t
4088 s,@CPPFLAGS@,$CPPFLAGS,;t t
4089 s,@ac_ct_CC@,$ac_ct_CC,;t t
4090 s,@EXEEXT@,$EXEEXT,;t t
4091 s,@OBJEXT@,$OBJEXT,;t t
4092 s,@modules@,$modules,;t t
4094 s,@apxs2@,$apxs2,;t t
4095 s,@mysql_includes@,$mysql_includes,;t t
4096 s,@mysql_libs@,$mysql_libs,;t t
4097 s,@build_opts@,$build_opts,;t t
4099 s,@EGREP@,$EGREP,;t t
4100 s,@LIBOBJS@,$LIBOBJS,;t t
4101 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4106 cat >>$CONFIG_STATUS <<\_ACEOF
4107 # Split the substitutions into bite-sized pieces for seds with
4108 # small command number limits, like on Digital OSF/1 and HP-UX.
4110 ac_sed_frag=1 # Number of current file.
4111 ac_beg=1 # First line for current file.
4112 ac_end=$ac_max_sed_lines # Line after last line for current file.
4115 while $ac_more_lines; do
4116 if test $ac_beg -gt 1; then
4117 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4119 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4121 if test ! -s $tmp/subs.frag; then
4124 # The purpose of the label and of the branching condition is to
4125 # speed up the sed processing (if there are no `@' at all, there
4126 # is no need to browse any of the substitutions).
4127 # These are the two extra sed commands mentioned above.
4129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4130 if test -z "$ac_sed_cmds"; then
4131 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4133 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4135 ac_sed_frag=`expr $ac_sed_frag + 1`
4137 ac_end=`expr $ac_end + $ac_max_sed_lines`
4140 if test -z "$ac_sed_cmds"; then
4143 fi # test -n "$CONFIG_FILES"
4146 cat >>$CONFIG_STATUS <<\_ACEOF
4147 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4150 - | *:- | *:-:* ) # input from stdin
4152 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4153 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4154 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4156 * ) ac_file_in=$ac_file.in ;;
4159 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4160 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4162 X"$ac_file" : 'X\(//\)[^/]' \| \
4163 X"$ac_file" : 'X\(//\)$' \| \
4164 X"$ac_file" : 'X\(/\)' \| \
4165 . : '\(.\)' 2>/dev/null ||
4167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4169 /^X\(\/\/\)$/{ s//\1/; q; }
4170 /^X\(\/\).*/{ s//\1/; q; }
4172 { if $as_mkdir_p; then
4177 while test ! -d "$as_dir"; do
4178 as_dirs="$as_dir $as_dirs"
4179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4181 X"$as_dir" : 'X\(//\)[^/]' \| \
4182 X"$as_dir" : 'X\(//\)$' \| \
4183 X"$as_dir" : 'X\(/\)' \| \
4184 . : '\(.\)' 2>/dev/null ||
4186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4188 /^X\(\/\/\)$/{ s//\1/; q; }
4189 /^X\(\/\).*/{ s//\1/; q; }
4192 test ! -n "$as_dirs" || mkdir $as_dirs
4193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4195 { (exit 1); exit 1; }; }; }
4199 if test "$ac_dir" != .; then
4200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4201 # A "../" for each directory in $ac_dir_suffix.
4202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4204 ac_dir_suffix= ac_top_builddir=
4208 .) # No --srcdir option. We are building in place.
4210 if test -z "$ac_top_builddir"; then
4213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4215 [\\/]* | ?:[\\/]* ) # Absolute path.
4216 ac_srcdir=$srcdir$ac_dir_suffix;
4217 ac_top_srcdir=$srcdir ;;
4219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4223 # Do not use `cd foo && pwd` to compute absolute paths, because
4224 # the directories may not exist.
4226 .) ac_abs_builddir="$ac_dir";;
4229 .) ac_abs_builddir=`pwd`;;
4230 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4231 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4234 case $ac_abs_builddir in
4235 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4237 case ${ac_top_builddir}. in
4238 .) ac_abs_top_builddir=$ac_abs_builddir;;
4239 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4240 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4243 case $ac_abs_builddir in
4244 .) ac_abs_srcdir=$ac_srcdir;;
4247 .) ac_abs_srcdir=$ac_abs_builddir;;
4248 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4249 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4252 case $ac_abs_builddir in
4253 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4255 case $ac_top_srcdir in
4256 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4257 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4258 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4264 # Let's still pretend it is `configure' which instantiates (i.e., don't
4265 # use $as_me), people would be surprised to read:
4266 # /* config.h. Generated by config.status. */
4267 if test x"$ac_file" = x-; then
4270 configure_input="$ac_file. "
4272 configure_input=$configure_input"Generated from `echo $ac_file_in |
4273 sed 's,.*/,,'` by configure."
4275 # First look for the input files in the build tree, otherwise in the
4277 ac_file_inputs=`IFS=:
4278 for f in $ac_file_in; do
4280 -) echo $tmp/stdin ;;
4282 # Absolute (can't be DOS-style, as IFS=:)
4283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4284 echo "$as_me: error: cannot find input file: $f" >&2;}
4285 { (exit 1); exit 1; }; }
4288 if test -f "$f"; then
4291 elif test -f "$srcdir/$f"; then
4296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4297 echo "$as_me: error: cannot find input file: $f" >&2;}
4298 { (exit 1); exit 1; }; }
4301 done` || { (exit 1); exit 1; }
4303 if test x"$ac_file" != x-; then
4304 { echo "$as_me:$LINENO: creating $ac_file" >&5
4305 echo "$as_me: creating $ac_file" >&6;}
4309 cat >>$CONFIG_STATUS <<_ACEOF
4313 cat >>$CONFIG_STATUS <<\_ACEOF
4315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4316 s,@configure_input@,$configure_input,;t t
4317 s,@srcdir@,$ac_srcdir,;t t
4318 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4319 s,@top_srcdir@,$ac_top_srcdir,;t t
4320 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4321 s,@builddir@,$ac_builddir,;t t
4322 s,@abs_builddir@,$ac_abs_builddir,;t t
4323 s,@top_builddir@,$ac_top_builddir,;t t
4324 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4325 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4327 if test x"$ac_file" != x-; then
4328 mv $tmp/out $ac_file
4336 cat >>$CONFIG_STATUS <<\_ACEOF
4339 # CONFIG_HEADER section.
4342 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4343 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4345 # ac_d sets the value in "#define NAME VALUE" lines.
4346 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4347 ac_dB='[ ].*$,\1#\2'
4350 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4351 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4352 ac_uB='$,\1#\2define\3'
4356 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4357 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4359 - | *:- | *:-:* ) # input from stdin
4361 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4363 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4364 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4365 * ) ac_file_in=$ac_file.in ;;
4368 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4369 echo "$as_me: creating $ac_file" >&6;}
4371 # First look for the input files in the build tree, otherwise in the
4373 ac_file_inputs=`IFS=:
4374 for f in $ac_file_in; do
4376 -) echo $tmp/stdin ;;
4378 # Absolute (can't be DOS-style, as IFS=:)
4379 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4380 echo "$as_me: error: cannot find input file: $f" >&2;}
4381 { (exit 1); exit 1; }; }
4382 # Do quote $f, to prevent DOS paths from being IFS'd.
4385 if test -f "$f"; then
4388 elif test -f "$srcdir/$f"; then
4393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4394 echo "$as_me: error: cannot find input file: $f" >&2;}
4395 { (exit 1); exit 1; }; }
4398 done` || { (exit 1); exit 1; }
4399 # Remove the trailing spaces.
4400 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4404 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4405 # `conftest.undefs', that substitutes the proper values into
4406 # config.h.in to produce config.h. The first handles `#define'
4407 # templates, and the second `#undef' templates.
4408 # And first: Protect against being on the right side of a sed subst in
4409 # config.status. Protect against being in an unquoted here document
4411 rm -f conftest.defines conftest.undefs
4412 # Using a here document instead of a string reduces the quoting nightmare.
4413 # Putting comments in sed scripts is not portable.
4415 # `end' is used to avoid that the second main sed command (meant for
4416 # 0-ary CPP macros) applies to n-ary macro definitions.
4417 # See the Autoconf documentation for `clear'.
4418 cat >confdef2sed.sed <<\_ACEOF
4423 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4425 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4428 # If some macros were called several times there might be several times
4429 # the same #defines, which is useless. Nevertheless, we may not want to
4430 # sort them, since we want the *last* AC-DEFINE to be honored.
4431 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4432 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4433 rm -f confdef2sed.sed
4435 # This sed command replaces #undef with comments. This is necessary, for
4436 # example, in the case of _POSIX_SOURCE, which is predefined and required
4437 # on some systems where configure will not decide to define it.
4438 cat >>conftest.undefs <<\_ACEOF
4439 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4442 # Break up conftest.defines because some shells have a limit on the size
4443 # of here documents, and old seds have small limits too (100 cmds).
4444 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4445 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4446 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4447 echo ' :' >>$CONFIG_STATUS
4449 while grep . conftest.defines >/dev/null
4451 # Write a limited-size here document to $tmp/defines.sed.
4452 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4453 # Speed up: don't consider the non `#define' lines.
4454 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4455 # Work around the forget-to-reset-the-flag bug.
4456 echo 't clr' >>$CONFIG_STATUS
4457 echo ': clr' >>$CONFIG_STATUS
4458 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4460 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4464 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4465 rm -f conftest.defines
4466 mv conftest.tail conftest.defines
4468 rm -f conftest.defines
4469 echo ' fi # grep' >>$CONFIG_STATUS
4470 echo >>$CONFIG_STATUS
4472 # Break up conftest.undefs because some shells have a limit on the size
4473 # of here documents, and old seds have small limits too (100 cmds).
4474 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4476 while grep . conftest.undefs >/dev/null
4478 # Write a limited-size here document to $tmp/undefs.sed.
4479 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4480 # Speed up: don't consider the non `#undef'
4481 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4482 # Work around the forget-to-reset-the-flag bug.
4483 echo 't clr' >>$CONFIG_STATUS
4484 echo ': clr' >>$CONFIG_STATUS
4485 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4487 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4491 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4492 rm -f conftest.undefs
4493 mv conftest.tail conftest.undefs
4495 rm -f conftest.undefs
4497 cat >>$CONFIG_STATUS <<\_ACEOF
4498 # Let's still pretend it is `configure' which instantiates (i.e., don't
4499 # use $as_me), people would be surprised to read:
4500 # /* config.h. Generated by config.status. */
4501 if test x"$ac_file" = x-; then
4502 echo "/* Generated by configure. */" >$tmp/config.h
4504 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4506 cat $tmp/in >>$tmp/config.h
4508 if test x"$ac_file" != x-; then
4509 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4510 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4511 echo "$as_me: $ac_file is unchanged" >&6;}
4513 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4514 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4515 X"$ac_file" : 'X\(//\)[^/]' \| \
4516 X"$ac_file" : 'X\(//\)$' \| \
4517 X"$ac_file" : 'X\(/\)' \| \
4518 . : '\(.\)' 2>/dev/null ||
4520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4522 /^X\(\/\/\)$/{ s//\1/; q; }
4523 /^X\(\/\).*/{ s//\1/; q; }
4525 { if $as_mkdir_p; then
4530 while test ! -d "$as_dir"; do
4531 as_dirs="$as_dir $as_dirs"
4532 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4534 X"$as_dir" : 'X\(//\)[^/]' \| \
4535 X"$as_dir" : 'X\(//\)$' \| \
4536 X"$as_dir" : 'X\(/\)' \| \
4537 . : '\(.\)' 2>/dev/null ||
4539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4541 /^X\(\/\/\)$/{ s//\1/; q; }
4542 /^X\(\/\).*/{ s//\1/; q; }
4545 test ! -n "$as_dirs" || mkdir $as_dirs
4546 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4547 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4548 { (exit 1); exit 1; }; }; }
4551 mv $tmp/config.h $ac_file
4560 cat >>$CONFIG_STATUS <<\_ACEOF
4562 { (exit 0); exit 0; }
4564 chmod +x $CONFIG_STATUS
4565 ac_clean_files=$ac_clean_files_save
4568 # configure is writing to config.log, and then calls config.status.
4569 # config.status does its own redirection, appending to config.log.
4570 # Unfortunately, on DOS this fails, as config.log is still kept open
4571 # by configure, so config.status won't be able to write to it; its
4572 # output is simply discarded. So we exec the FD to /dev/null,
4573 # effectively closing config.log, so it can be properly (re)opened and
4574 # appended to by config.status. When coming back to configure, we
4575 # need to make the FD available again.
4576 if test "$no_create" != yes; then
4578 ac_config_status_args=
4579 test "$silent" = yes &&
4580 ac_config_status_args="$ac_config_status_args --quiet"
4582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4585 # would make configure fail if this is the last instruction.
4586 $ac_cs_success || { (exit 1); exit 1; }