2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev/null 6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix=/usr/local
565 ac_config_libobj_dir=.
571 SHELL=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file="rlm_counter.c"
590 program_transform_name
634 ac_precious_vars='build_alias
645 # Initialize some variables set by options.
647 ac_init_version=false
648 # The variables have the same names as the options, with
649 # dashes changed to underlines.
657 program_transform_name=s,x,x,
665 # Installation directory options.
666 # These are left unexpanded so users can "make install exec_prefix=/foo"
667 # and all the variables that are supposed to be based on exec_prefix
668 # by default will actually change.
669 # Use braces instead of parens because sh, perl, etc. also accept them.
670 # (The list follows the same order as the GNU Coding Standards.)
671 bindir='${exec_prefix}/bin'
672 sbindir='${exec_prefix}/sbin'
673 libexecdir='${exec_prefix}/libexec'
674 datarootdir='${prefix}/share'
675 datadir='${datarootdir}'
676 sysconfdir='${prefix}/etc'
677 sharedstatedir='${prefix}/com'
678 localstatedir='${prefix}/var'
679 includedir='${prefix}/include'
680 oldincludedir='/usr/include'
681 docdir='${datarootdir}/doc/${PACKAGE}'
682 infodir='${datarootdir}/info'
687 libdir='${exec_prefix}/lib'
688 localedir='${datarootdir}/locale'
689 mandir='${datarootdir}/man'
695 # If the previous option needs an argument, assign it.
696 if test -n "$ac_prev"; then
697 eval $ac_prev=\$ac_option
703 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
707 # Accept the important Cygnus configure options, so we can diagnose typos.
709 case $ac_dashdash$ac_option in
713 -bindir | --bindir | --bindi | --bind | --bin | --bi)
715 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
718 -build | --build | --buil | --bui | --bu)
719 ac_prev=build_alias ;;
720 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
721 build_alias=$ac_optarg ;;
723 -cache-file | --cache-file | --cache-fil | --cache-fi \
724 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
725 ac_prev=cache_file ;;
726 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
727 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
728 cache_file=$ac_optarg ;;
731 cache_file=config.cache ;;
733 -datadir | --datadir | --datadi | --datad)
735 -datadir=* | --datadir=* | --datadi=* | --datad=*)
736 datadir=$ac_optarg ;;
738 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
739 | --dataroo | --dataro | --datar)
740 ac_prev=datarootdir ;;
741 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
742 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
743 datarootdir=$ac_optarg ;;
745 -disable-* | --disable-*)
746 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
750 { (exit 1); exit 1; }; }
751 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
752 eval enable_$ac_feature=no ;;
754 -docdir | --docdir | --docdi | --doc | --do)
756 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
759 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
761 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
764 -enable-* | --enable-*)
765 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
769 { (exit 1); exit 1; }; }
770 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
771 eval enable_$ac_feature=\$ac_optarg ;;
773 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
774 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
775 | --exec | --exe | --ex)
776 ac_prev=exec_prefix ;;
777 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
778 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
779 | --exec=* | --exe=* | --ex=*)
780 exec_prefix=$ac_optarg ;;
782 -gas | --gas | --ga | --g)
783 # Obsolete; use --with-gas.
786 -help | --help | --hel | --he | -h)
788 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
789 ac_init_help=recursive ;;
790 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
791 ac_init_help=short ;;
793 -host | --host | --hos | --ho)
794 ac_prev=host_alias ;;
795 -host=* | --host=* | --hos=* | --ho=*)
796 host_alias=$ac_optarg ;;
798 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
800 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
802 htmldir=$ac_optarg ;;
804 -includedir | --includedir | --includedi | --included | --include \
805 | --includ | --inclu | --incl | --inc)
806 ac_prev=includedir ;;
807 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
808 | --includ=* | --inclu=* | --incl=* | --inc=*)
809 includedir=$ac_optarg ;;
811 -infodir | --infodir | --infodi | --infod | --info | --inf)
813 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
814 infodir=$ac_optarg ;;
816 -libdir | --libdir | --libdi | --libd)
818 -libdir=* | --libdir=* | --libdi=* | --libd=*)
821 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
822 | --libexe | --libex | --libe)
823 ac_prev=libexecdir ;;
824 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
825 | --libexe=* | --libex=* | --libe=*)
826 libexecdir=$ac_optarg ;;
828 -localedir | --localedir | --localedi | --localed | --locale)
830 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
831 localedir=$ac_optarg ;;
833 -localstatedir | --localstatedir | --localstatedi | --localstated \
834 | --localstate | --localstat | --localsta | --localst | --locals)
835 ac_prev=localstatedir ;;
836 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
837 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
838 localstatedir=$ac_optarg ;;
840 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
842 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
846 # Obsolete; use --without-fp.
849 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
850 | --no-cr | --no-c | -n)
853 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
854 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
857 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
858 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
859 | --oldin | --oldi | --old | --ol | --o)
860 ac_prev=oldincludedir ;;
861 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
862 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
863 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
864 oldincludedir=$ac_optarg ;;
866 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
868 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
871 -program-prefix | --program-prefix | --program-prefi | --program-pref \
872 | --program-pre | --program-pr | --program-p)
873 ac_prev=program_prefix ;;
874 -program-prefix=* | --program-prefix=* | --program-prefi=* \
875 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
876 program_prefix=$ac_optarg ;;
878 -program-suffix | --program-suffix | --program-suffi | --program-suff \
879 | --program-suf | --program-su | --program-s)
880 ac_prev=program_suffix ;;
881 -program-suffix=* | --program-suffix=* | --program-suffi=* \
882 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
883 program_suffix=$ac_optarg ;;
885 -program-transform-name | --program-transform-name \
886 | --program-transform-nam | --program-transform-na \
887 | --program-transform-n | --program-transform- \
888 | --program-transform | --program-transfor \
889 | --program-transfo | --program-transf \
890 | --program-trans | --program-tran \
891 | --progr-tra | --program-tr | --program-t)
892 ac_prev=program_transform_name ;;
893 -program-transform-name=* | --program-transform-name=* \
894 | --program-transform-nam=* | --program-transform-na=* \
895 | --program-transform-n=* | --program-transform-=* \
896 | --program-transform=* | --program-transfor=* \
897 | --program-transfo=* | --program-transf=* \
898 | --program-trans=* | --program-tran=* \
899 | --progr-tra=* | --program-tr=* | --program-t=*)
900 program_transform_name=$ac_optarg ;;
902 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
904 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
907 -psdir | --psdir | --psdi | --psd | --ps)
909 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
913 | -silent | --silent | --silen | --sile | --sil)
916 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
918 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
920 sbindir=$ac_optarg ;;
922 -sharedstatedir | --sharedstatedir | --sharedstatedi \
923 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
924 | --sharedst | --shareds | --shared | --share | --shar \
926 ac_prev=sharedstatedir ;;
927 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
928 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
929 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
931 sharedstatedir=$ac_optarg ;;
933 -site | --site | --sit)
935 -site=* | --site=* | --sit=*)
938 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
940 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
943 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
944 | --syscon | --sysco | --sysc | --sys | --sy)
945 ac_prev=sysconfdir ;;
946 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
947 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
948 sysconfdir=$ac_optarg ;;
950 -target | --target | --targe | --targ | --tar | --ta | --t)
951 ac_prev=target_alias ;;
952 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
953 target_alias=$ac_optarg ;;
955 -v | -verbose | --verbose | --verbos | --verbo | --verb)
958 -version | --version | --versio | --versi | --vers | -V)
962 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
965 { echo "$as_me: error: invalid package name: $ac_package" >&2
966 { (exit 1); exit 1; }; }
967 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
968 eval with_$ac_package=\$ac_optarg ;;
970 -without-* | --without-*)
971 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
974 { echo "$as_me: error: invalid package name: $ac_package" >&2
975 { (exit 1); exit 1; }; }
976 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
977 eval with_$ac_package=no ;;
980 # Obsolete; use --with-x.
983 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
984 | --x-incl | --x-inc | --x-in | --x-i)
985 ac_prev=x_includes ;;
986 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
987 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
988 x_includes=$ac_optarg ;;
990 -x-libraries | --x-libraries | --x-librarie | --x-librari \
991 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
992 ac_prev=x_libraries ;;
993 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
994 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
995 x_libraries=$ac_optarg ;;
997 -*) { echo "$as_me: error: unrecognized option: $ac_option
998 Try \`$0 --help' for more information." >&2
999 { (exit 1); exit 1; }; }
1003 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1007 { (exit 1); exit 1; }; }
1008 eval $ac_envvar=\$ac_optarg
1009 export $ac_envvar ;;
1012 # FIXME: should be removed in autoconf 3.0.
1013 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1014 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1016 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1022 if test -n "$ac_prev"; then
1023 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1024 { echo "$as_me: error: missing argument to $ac_option" >&2
1025 { (exit 1); exit 1; }; }
1028 # Be sure to have absolute directory names.
1029 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1030 datadir sysconfdir sharedstatedir localstatedir includedir \
1031 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1032 libdir localedir mandir
1034 eval ac_val=\$$ac_var
1036 [\\/$]* | ?:[\\/]* ) continue;;
1037 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1039 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1040 { (exit 1); exit 1; }; }
1043 # There might be people who depend on the old broken behavior: `$host'
1044 # used to hold the argument of --host etc.
1045 # FIXME: To remove some day.
1048 target=$target_alias
1050 # FIXME: To remove some day.
1051 if test "x$host_alias" != x; then
1052 if test "x$build_alias" = x; then
1053 cross_compiling=maybe
1054 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1055 If a cross compiler is detected then cross compile mode will be used." >&2
1056 elif test "x$build_alias" != "x$host_alias"; then
1062 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1064 test "$silent" = yes && exec 6>/dev/null
1067 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1068 ac_ls_di=`ls -di .` &&
1069 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1070 { echo "$as_me: error: Working directory cannot be determined" >&2
1071 { (exit 1); exit 1; }; }
1072 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1073 { echo "$as_me: error: pwd does not report name of working directory" >&2
1074 { (exit 1); exit 1; }; }
1077 # Find the source files, if location was not specified.
1078 if test -z "$srcdir"; then
1079 ac_srcdir_defaulted=yes
1080 # Try the directory containing this script, then the parent directory.
1081 ac_confdir=`$as_dirname -- "$0" ||
1082 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1083 X"$0" : 'X\(//\)[^/]' \| \
1084 X"$0" : 'X\(//\)$' \| \
1085 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1105 if test ! -r "$srcdir/$ac_unique_file"; then
1109 ac_srcdir_defaulted=no
1111 if test ! -r "$srcdir/$ac_unique_file"; then
1112 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1113 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1114 { (exit 1); exit 1; }; }
1116 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1118 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1119 { (exit 1); exit 1; }; }
1121 # When building in place, set srcdir=.
1122 if test "$ac_abs_confdir" = "$ac_pwd"; then
1125 # Remove unnecessary trailing slashes from srcdir.
1126 # Double slashes in file names in object file debugging info
1127 # mess up M-x gdb in Emacs.
1129 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1131 for ac_var in $ac_precious_vars; do
1132 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1133 eval ac_env_${ac_var}_value=\$${ac_var}
1134 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1135 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1139 # Report the --help message.
1141 if test "$ac_init_help" = "long"; then
1142 # Omit some internal or obsolete options to make the list less imposing.
1143 # This message is too long to be a string in the A/UX 3.1 sh.
1145 \`configure' configures this package to adapt to many kinds of systems.
1147 Usage: $0 [OPTION]... [VAR=VALUE]...
1149 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1150 VAR=VALUE. See below for descriptions of some of the useful variables.
1152 Defaults for the options are specified in brackets.
1155 -h, --help display this help and exit
1156 --help=short display options specific to this package
1157 --help=recursive display the short help of all the included packages
1158 -V, --version display version information and exit
1159 -q, --quiet, --silent do not print \`checking...' messages
1160 --cache-file=FILE cache test results in FILE [disabled]
1161 -C, --config-cache alias for \`--cache-file=config.cache'
1162 -n, --no-create do not create output files
1163 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1165 Installation directories:
1166 --prefix=PREFIX install architecture-independent files in PREFIX
1167 [$ac_default_prefix]
1168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1171 By default, \`make install' will install all the files in
1172 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1173 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1174 for instance \`--prefix=\$HOME'.
1176 For better control, use the options below.
1178 Fine tuning of the installation directories:
1179 --bindir=DIR user executables [EPREFIX/bin]
1180 --sbindir=DIR system admin executables [EPREFIX/sbin]
1181 --libexecdir=DIR program executables [EPREFIX/libexec]
1182 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1183 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1184 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1185 --libdir=DIR object code libraries [EPREFIX/lib]
1186 --includedir=DIR C header files [PREFIX/include]
1187 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1188 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1189 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1190 --infodir=DIR info documentation [DATAROOTDIR/info]
1191 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1192 --mandir=DIR man documentation [DATAROOTDIR/man]
1193 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1194 --htmldir=DIR html documentation [DOCDIR]
1195 --dvidir=DIR dvi documentation [DOCDIR]
1196 --pdfdir=DIR pdf documentation [DOCDIR]
1197 --psdir=DIR ps documentation [DOCDIR]
1204 if test -n "$ac_init_help"; then
1208 Some influential environment variables:
1209 CC C compiler command
1210 CFLAGS C compiler flags
1211 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1212 nonstandard directory <lib dir>
1213 LIBS libraries to pass to the linker, e.g. -l<library>
1214 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1215 you have headers in a nonstandard directory <include dir>
1218 Use these variables to override the choices made by `configure' or to help
1219 it to find libraries and programs with nonstandard names/locations.
1225 if test "$ac_init_help" = "recursive"; then
1226 # If there are subdirs, report their specific --help.
1227 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1228 test -d "$ac_dir" || continue
1232 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1234 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1235 # A ".." for each directory in $ac_dir_suffix.
1236 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1237 case $ac_top_builddir_sub in
1238 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1239 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1242 ac_abs_top_builddir=$ac_pwd
1243 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1244 # for backward compatibility:
1245 ac_top_builddir=$ac_top_build_prefix
1248 .) # We are building in place.
1250 ac_top_srcdir=$ac_top_builddir_sub
1251 ac_abs_top_srcdir=$ac_pwd ;;
1252 [\\/]* | ?:[\\/]* ) # Absolute name.
1253 ac_srcdir=$srcdir$ac_dir_suffix;
1254 ac_top_srcdir=$srcdir
1255 ac_abs_top_srcdir=$srcdir ;;
1257 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1258 ac_top_srcdir=$ac_top_build_prefix$srcdir
1259 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1261 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1263 cd "$ac_dir" || { ac_status=$?; continue; }
1264 # Check for guested configure.
1265 if test -f "$ac_srcdir/configure.gnu"; then
1267 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1268 elif test -f "$ac_srcdir/configure"; then
1270 $SHELL "$ac_srcdir/configure" --help=recursive
1272 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1274 cd "$ac_pwd" || { ac_status=$?; break; }
1278 test -n "$ac_init_help" && exit $ac_status
1279 if $ac_init_version; then
1282 generated by GNU Autoconf 2.61
1284 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1285 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1286 This configure script is free software; the Free Software Foundation
1287 gives unlimited permission to copy, distribute and modify it.
1291 cat >config.log <<_ACEOF
1292 This file contains any messages produced by compilers while
1293 running configure, to aid debugging if configure makes a mistake.
1295 It was created by $as_me, which was
1296 generated by GNU Autoconf 2.61. Invocation command line was
1308 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1309 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1310 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1311 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1312 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1314 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1315 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1317 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1318 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1319 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1320 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1321 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1322 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1323 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1331 test -z "$as_dir" && as_dir=.
1332 echo "PATH: $as_dir"
1348 # Keep a trace of the command line.
1349 # Strip out --no-create and --no-recursion so they do not pile up.
1350 # Strip out --silent because we don't want to record it for future runs.
1351 # Also quote any args containing shell meta-characters.
1352 # Make two passes to allow for proper duplicate-argument suppression.
1356 ac_must_keep_next=false
1362 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1364 | -silent | --silent | --silen | --sile | --sil)
1367 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1370 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1372 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1373 if test $ac_must_keep_next = true; then
1374 ac_must_keep_next=false # Got value, back to normal.
1377 *=* | --config-cache | -C | -disable-* | --disable-* \
1378 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1379 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1380 | -with-* | --with-* | -without-* | --without-* | --x)
1381 case "$ac_configure_args0 " in
1382 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1385 -* ) ac_must_keep_next=true ;;
1388 ac_configure_args="$ac_configure_args '$ac_arg'"
1393 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1394 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1396 # When interrupted or exit'd, cleanup temporary files, and complete
1397 # config.log. We remove comments because anyway the quotes in there
1398 # would cause problems or look ugly.
1399 # WARNING: Use '\'' to represent an apostrophe within the trap.
1400 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1401 trap 'exit_status=$?
1402 # Save into config.log some information that might help in debugging.
1407 ## ---------------- ##
1408 ## Cache variables. ##
1409 ## ---------------- ##
1412 # The following way of writing the cache mishandles newlines in values,
1414 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1415 eval ac_val=\$$ac_var
1419 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1420 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1423 _ | IFS | as_nl) ;; #(
1424 *) $as_unset $ac_var ;;
1429 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1430 *${as_nl}ac_space=\ *)
1432 "s/'\''/'\''\\\\'\'''\''/g;
1433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1444 ## ----------------- ##
1445 ## Output variables. ##
1446 ## ----------------- ##
1449 for ac_var in $ac_subst_vars
1451 eval ac_val=\$$ac_var
1453 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1455 echo "$ac_var='\''$ac_val'\''"
1459 if test -n "$ac_subst_files"; then
1461 ## ------------------- ##
1462 ## File substitutions. ##
1463 ## ------------------- ##
1466 for ac_var in $ac_subst_files
1468 eval ac_val=\$$ac_var
1470 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1472 echo "$ac_var='\''$ac_val'\''"
1477 if test -s confdefs.h; then
1487 test "$ac_signal" != 0 &&
1488 echo "$as_me: caught signal $ac_signal"
1489 echo "$as_me: exit $exit_status"
1491 rm -f core *.core core.conftest.* &&
1492 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1495 for ac_signal in 1 2 13 15; do
1496 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1501 rm -f -r conftest* confdefs.h
1503 # Predefined preprocessor variables.
1505 cat >>confdefs.h <<_ACEOF
1506 #define PACKAGE_NAME "$PACKAGE_NAME"
1510 cat >>confdefs.h <<_ACEOF
1511 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1515 cat >>confdefs.h <<_ACEOF
1516 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1520 cat >>confdefs.h <<_ACEOF
1521 #define PACKAGE_STRING "$PACKAGE_STRING"
1525 cat >>confdefs.h <<_ACEOF
1526 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1530 # Let the site file select an alternate cache file if it wants to.
1531 # Prefer explicitly selected file to automatically selected ones.
1532 if test -n "$CONFIG_SITE"; then
1533 set x "$CONFIG_SITE"
1534 elif test "x$prefix" != xNONE; then
1535 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1537 set x "$ac_default_prefix/share/config.site" \
1538 "$ac_default_prefix/etc/config.site"
1543 if test -r "$ac_site_file"; then
1544 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1545 echo "$as_me: loading site script $ac_site_file" >&6;}
1546 sed 's/^/| /' "$ac_site_file" >&5
1551 if test -r "$cache_file"; then
1552 # Some versions of bash will fail to source /dev/null (special
1553 # files actually), so we avoid doing that.
1554 if test -f "$cache_file"; then
1555 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1556 echo "$as_me: loading cache $cache_file" >&6;}
1558 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1559 *) . "./$cache_file";;
1563 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1564 echo "$as_me: creating cache $cache_file" >&6;}
1568 # Check that the precious variables saved in the cache have kept the same
1570 ac_cache_corrupted=false
1571 for ac_var in $ac_precious_vars; do
1572 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1573 eval ac_new_set=\$ac_env_${ac_var}_set
1574 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1575 eval ac_new_val=\$ac_env_${ac_var}_value
1576 case $ac_old_set,$ac_new_set in
1578 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1579 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1580 ac_cache_corrupted=: ;;
1582 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1583 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1584 ac_cache_corrupted=: ;;
1587 if test "x$ac_old_val" != "x$ac_new_val"; then
1588 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1589 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1590 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1591 echo "$as_me: former value: $ac_old_val" >&2;}
1592 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1593 echo "$as_me: current value: $ac_new_val" >&2;}
1594 ac_cache_corrupted=:
1597 # Pass precious variables to config.status.
1598 if test "$ac_new_set" = set; then
1600 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1601 *) ac_arg=$ac_var=$ac_new_val ;;
1603 case " $ac_configure_args " in
1604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1605 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1609 if $ac_cache_corrupted; then
1610 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1611 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1612 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1613 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1614 { (exit 1); exit 1; }; }
1634 ac_cpp='$CPP $CPPFLAGS'
1635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1643 if test x$with_rlm_counter != xno; then
1646 ac_cpp='$CPP $CPPFLAGS'
1647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1650 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test -n "$CC"; then
1680 { echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6; }
1683 { echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6; }
1689 if test -z "$ac_cv_prog_CC"; then
1691 # Extract the first word of "gcc", so it can be a program name with args.
1692 set dummy gcc; ac_word=$2
1693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$ac_ct_CC"; then
1699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1708 ac_cv_prog_ac_ct_CC="gcc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1719 if test -n "$ac_ct_CC"; then
1720 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1721 echo "${ECHO_T}$ac_ct_CC" >&6; }
1723 { echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6; }
1727 if test "x$ac_ct_CC" = x; then
1730 case $cross_compiling:$ac_tool_warned in
1732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1733 whose name does not start with the host triplet. If you think this
1734 configuration is useful to you, please write to autoconf@gnu.org." >&5
1735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1736 whose name does not start with the host triplet. If you think this
1737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1738 ac_tool_warned=yes ;;
1746 if test -z "$CC"; then
1747 if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1749 set dummy ${ac_tool_prefix}cc; ac_word=$2
1750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1765 ac_cv_prog_CC="${ac_tool_prefix}cc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776 if test -n "$CC"; then
1777 { echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6; }
1780 { echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6; }
1787 if test -z "$CC"; then
1788 # Extract the first word of "cc", so it can be a program name with args.
1789 set dummy cc; ac_word=$2
1790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1806 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1807 ac_prog_rejected=yes
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 if test $ac_prog_rejected = yes; then
1819 # We found a bogon in the path, so make sure we never use it.
1820 set dummy $ac_cv_prog_CC
1822 if test $# != 0; then
1823 # We chose a different compiler from the bogus one.
1824 # However, it has the same basename, so the bogon will be chosen
1825 # first if we set CC to just the basename; use the full file name.
1827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1833 if test -n "$CC"; then
1834 { echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6; }
1837 { echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6; }
1843 if test -z "$CC"; then
1844 if test -n "$ac_tool_prefix"; then
1845 for ac_prog in cl.exe
1847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1864 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 if test -n "$CC"; then
1876 { echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6; }
1879 { echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6; }
1884 test -n "$CC" && break
1887 if test -z "$CC"; then
1889 for ac_prog in cl.exe
1891 # Extract the first word of "$ac_prog", so it can be a program name with args.
1892 set dummy $ac_prog; ac_word=$2
1893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$ac_ct_CC"; then
1899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1908 ac_cv_prog_ac_ct_CC="$ac_prog"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6; }
1923 { echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6; }
1928 test -n "$ac_ct_CC" && break
1931 if test "x$ac_ct_CC" = x; then
1934 case $cross_compiling:$ac_tool_warned in
1936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1937 whose name does not start with the host triplet. If you think this
1938 configuration is useful to you, please write to autoconf@gnu.org." >&5
1939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1940 whose name does not start with the host triplet. If you think this
1941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1942 ac_tool_warned=yes ;;
1951 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1957 # Provide some information about the compiler.
1958 echo "$as_me:$LINENO: checking for C compiler version" >&5
1959 ac_compiler=`set X $ac_compile; echo $2`
1960 { (ac_try="$ac_compiler --version >&5"
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1966 (eval "$ac_compiler --version >&5") 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970 { (ac_try="$ac_compiler -v >&5"
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1976 (eval "$ac_compiler -v >&5") 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1980 { (ac_try="$ac_compiler -V >&5"
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1986 (eval "$ac_compiler -V >&5") 2>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }
1991 cat >conftest.$ac_ext <<_ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
2006 ac_clean_files_save=$ac_clean_files
2007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2008 # Try to create an executable without -o first, disregard a.out.
2009 # It will help us diagnose broken compilers, and finding out an intuition
2011 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2012 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2015 # List of possible output files, starting from the most likely.
2016 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2017 # only as a last resort. b.out is created by i960 compilers.
2018 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2020 # The IRIX 6 linker writes into existing files which may not be
2021 # executable, retaining their permissions. Remove them first so a
2022 # subsequent execution test works.
2024 for ac_file in $ac_files
2027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2028 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2033 if { (ac_try="$ac_link_default"
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2039 (eval "$ac_link_default") 2>&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; then
2043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2046 # so that the user can short-circuit this test for compilers unknown to
2048 for ac_file in $ac_files ''
2050 test -f "$ac_file" || continue
2052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2055 # We found the default executable, but exeext='' is most
2059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2063 # We set ac_cv_exeext here because the later test for it is not
2064 # safe: cross compilers may not add the suffix if given an `-o'
2065 # argument, so we may need to know it at that point already.
2066 # Even if this section looks crufty: it has the advantage of
2073 test "$ac_cv_exeext" = no && ac_cv_exeext=
2079 { echo "$as_me:$LINENO: result: $ac_file" >&5
2080 echo "${ECHO_T}$ac_file" >&6; }
2081 if test -z "$ac_file"; then
2082 echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2085 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: C compiler cannot create executables
2088 See \`config.log' for more details." >&2;}
2089 { (exit 77); exit 77; }; }
2092 ac_exeext=$ac_cv_exeext
2094 # Check that the compiler produces executables we can run. If not, either
2095 # the compiler is broken, or we cross compile.
2096 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2097 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2098 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2099 # If not cross compiling, check that we can run a simple program.
2100 if test "$cross_compiling" != yes; then
2101 if { ac_try='./$ac_file'
2102 { (case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_try") 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2113 if test "$cross_compiling" = maybe; then
2116 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2117 If you meant to cross compile, use \`--host'.
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: cannot run C compiled programs.
2120 If you meant to cross compile, use \`--host'.
2121 See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2126 { echo "$as_me:$LINENO: result: yes" >&5
2127 echo "${ECHO_T}yes" >&6; }
2129 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2130 ac_clean_files=$ac_clean_files_save
2131 # Check that the compiler produces executables we can run. If not, either
2132 # the compiler is broken, or we cross compile.
2133 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2134 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2135 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2136 echo "${ECHO_T}$cross_compiling" >&6; }
2138 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2139 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2140 if { (ac_try="$ac_link"
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_link") 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2152 # work properly (i.e., refer to `conftest.exe'), while it won't with
2154 for ac_file in conftest.exe conftest conftest.*; do
2155 test -f "$ac_file" || continue
2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2171 rm -f conftest$ac_cv_exeext
2172 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2175 rm -f conftest.$ac_ext
2176 EXEEXT=$ac_cv_exeext
2178 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2180 if test "${ac_cv_objext+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 cat >conftest.$ac_ext <<_ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2198 rm -f conftest.o conftest.obj
2199 if { (ac_try="$ac_compile"
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2205 (eval "$ac_compile") 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 for ac_file in conftest.o conftest.obj conftest.*; do
2210 test -f "$ac_file" || continue;
2212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2213 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2228 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2230 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2231 echo "${ECHO_T}$ac_cv_objext" >&6; }
2232 OBJEXT=$ac_cv_objext
2234 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2235 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2236 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 cat >conftest.$ac_ext <<_ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2257 rm -f conftest.$ac_objext
2258 if { (ac_try="$ac_compile"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_compile") 2>conftest.er1
2266 grep -v '^ *+' conftest.er1 >conftest.err
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } && {
2271 test -z "$ac_c_werror_flag" ||
2272 test ! -s conftest.err
2273 } && test -s conftest.$ac_objext; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2286 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2288 GCC=`test $ac_compiler_gnu = yes && echo yes`
2289 ac_test_CFLAGS=${CFLAGS+set}
2290 ac_save_CFLAGS=$CFLAGS
2291 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2292 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2293 if test "${ac_cv_prog_cc_g+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 ac_save_c_werror_flag=$ac_c_werror_flag
2297 ac_c_werror_flag=yes
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.$ac_objext
2316 if { (ac_try="$ac_compile"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322 (eval "$ac_compile") 2>conftest.er1
2324 grep -v '^ *+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } && {
2329 test -z "$ac_c_werror_flag" ||
2330 test ! -s conftest.err
2331 } && test -s conftest.$ac_objext; then
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2338 cat >conftest.$ac_ext <<_ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 rm -f conftest.$ac_objext
2354 if { (ac_try="$ac_compile"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compile") 2>conftest.er1
2362 grep -v '^ *+' conftest.er1 >conftest.err
2364 cat conftest.err >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } && {
2367 test -z "$ac_c_werror_flag" ||
2368 test ! -s conftest.err
2369 } && test -s conftest.$ac_objext; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2375 ac_c_werror_flag=$ac_save_c_werror_flag
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2392 rm -f conftest.$ac_objext
2393 if { (ac_try="$ac_compile"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compile") 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } && {
2406 test -z "$ac_c_werror_flag" ||
2407 test ! -s conftest.err
2408 } && test -s conftest.$ac_objext; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_c_werror_flag=$ac_save_c_werror_flag
2426 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2428 if test "$ac_test_CFLAGS" = set; then
2429 CFLAGS=$ac_save_CFLAGS
2430 elif test $ac_cv_prog_cc_g = yes; then
2431 if test "$GCC" = yes; then
2437 if test "$GCC" = yes; then
2443 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2444 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_cc_c89+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 ac_cv_prog_cc_c89=no
2450 cat >conftest.$ac_ext <<_ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2458 #include <sys/types.h>
2459 #include <sys/stat.h>
2460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2461 struct buf { int x; };
2462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2463 static char *e (p, i)
2469 static char *f (char * (*g) (char **, int), char **p, ...)
2474 s = g (p, va_arg (v,int));
2479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2480 function prototypes and stuff, but not '\xHH' hex character constants.
2481 These don't provoke an error unfortunately, instead are silently treated
2482 as 'x'. The following induces an error, until -std is added to get
2483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2484 array size at least. It's necessary to write '\x00'==0 to get something
2485 that's true only with -std. */
2486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2488 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2489 inside strings and character constants. */
2491 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2493 int test (int i, double x);
2494 struct s1 {int (*f) (int a);};
2495 struct s2 {int (*f) (double a);};
2496 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2502 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2507 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2508 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2510 CC="$ac_save_CC $ac_arg"
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_compile") 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } && {
2525 test -z "$ac_c_werror_flag" ||
2526 test ! -s conftest.err
2527 } && test -s conftest.$ac_objext; then
2528 ac_cv_prog_cc_c89=$ac_arg
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2536 rm -f core conftest.err conftest.$ac_objext
2537 test "x$ac_cv_prog_cc_c89" != "xno" && break
2539 rm -f conftest.$ac_ext
2544 case "x$ac_cv_prog_cc_c89" in
2546 { echo "$as_me:$LINENO: result: none needed" >&5
2547 echo "${ECHO_T}none needed" >&6; } ;;
2549 { echo "$as_me:$LINENO: result: unsupported" >&5
2550 echo "${ECHO_T}unsupported" >&6; } ;;
2552 CC="$CC $ac_cv_prog_cc_c89"
2553 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2554 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2570 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2571 # On Suns, sometimes $CPP names a directory.
2572 if test -n "$CPP" && test -d "$CPP"; then
2575 if test -z "$CPP"; then
2576 if test "${ac_cv_prog_CPP+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 # Double quotes because CPP needs to be expanded
2580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2583 for ac_c_preproc_warn_flag in '' yes
2585 # Use a header file that comes with gcc, so configuring glibc
2586 # with a fresh cross-compiler works.
2587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 # <limits.h> exists even on freestanding compilers.
2589 # On the NeXT, cc -E runs the code through the compiler's parser,
2590 # not just through cpp. "Syntax error" is here to catch this case.
2591 cat >conftest.$ac_ext <<_ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2598 # include <limits.h>
2600 # include <assert.h>
2604 if { (ac_try="$ac_cpp conftest.$ac_ext"
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2612 grep -v '^ *+' conftest.er1 >conftest.err
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } >/dev/null && {
2617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2618 test ! -s conftest.err
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2625 # Broken: fails on valid input.
2629 rm -f conftest.err conftest.$ac_ext
2631 # OK, works on sane cases. Now check whether nonexistent headers
2632 # can be detected and how.
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2639 #include <ac_nonexistent.h>
2641 if { (ac_try="$ac_cpp conftest.$ac_ext"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } >/dev/null && {
2654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2657 # Broken: success on invalid input.
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 # Passes both tests.
2668 rm -f conftest.err conftest.$ac_ext
2671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2672 rm -f conftest.err conftest.$ac_ext
2673 if $ac_preproc_ok; then
2685 { echo "$as_me:$LINENO: result: $CPP" >&5
2686 echo "${ECHO_T}$CPP" >&6; }
2688 for ac_c_preproc_warn_flag in '' yes
2690 # Use a header file that comes with gcc, so configuring glibc
2691 # with a fresh cross-compiler works.
2692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2693 # <limits.h> exists even on freestanding compilers.
2694 # On the NeXT, cc -E runs the code through the compiler's parser,
2695 # not just through cpp. "Syntax error" is here to catch this case.
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2703 # include <limits.h>
2705 # include <assert.h>
2709 if { (ac_try="$ac_cpp conftest.$ac_ext"
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2717 grep -v '^ *+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } >/dev/null && {
2722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 # Broken: fails on valid input.
2734 rm -f conftest.err conftest.$ac_ext
2736 # OK, works on sane cases. Now check whether nonexistent headers
2737 # can be detected and how.
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2744 #include <ac_nonexistent.h>
2746 if { (ac_try="$ac_cpp conftest.$ac_ext"
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } >/dev/null && {
2759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2760 test ! -s conftest.err
2762 # Broken: success on invalid input.
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 # Passes both tests.
2773 rm -f conftest.err conftest.$ac_ext
2776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2777 rm -f conftest.err conftest.$ac_ext
2778 if $ac_preproc_ok; then
2781 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2784 See \`config.log' for more details." >&2;}
2785 { (exit 1); exit 1; }; }
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_safe=`echo "gdbm.h" | sed 'y%./+-%__pm%'`
2799 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
2800 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
2802 old_CFLAGS="$CFLAGS"
2806 if test "x$smart_try_dir" != "x"; then
2807 for try in $smart_try_dir; do
2808 CFLAGS="$old_CFLAGS -I$try"
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && {
2839 test -z "$ac_c_werror_flag" ||
2840 test ! -s conftest.err
2841 } && test -s conftest.$ac_objext; then
2842 smart_include="-I$try"
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 if test "x$smart_include" != "x"; then
2855 CFLAGS="$old_CFLAGS"
2858 if test "x$smart_include" = "x"; then
2859 cat >conftest.$ac_ext <<_ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2875 rm -f conftest.$ac_objext
2876 if { (ac_try="$ac_compile"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 if test "x$smart_include" = "x"; then
2906 if test "x$LOCATE" != "x"; then
2910 for x in `${LOCATE} $file 2>/dev/null`; do
2911 base=`echo $x | sed "s%/${file}%%"`
2912 if test "x$x" = "x$base"; then
2916 dir=`${DIRNAME} $x 2>/dev/null`
2917 exclude=`echo ${dir} | ${GREP} /home`
2918 if test "x$exclude" != "x"; then
2922 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2923 if test "x$already" = "x"; then
2929 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2932 for try in $smart_include_dir /usr/local/include /opt/include; do
2933 CFLAGS="$old_CFLAGS -I$try"
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && {
2964 test -z "$ac_c_werror_flag" ||
2965 test ! -s conftest.err
2966 } && test -s conftest.$ac_objext; then
2967 smart_include="-I$try"
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 if test "x$smart_include" != "x"; then
2980 CFLAGS="$old_CFLAGS"
2983 if test "x$smart_include" != "x"; then
2984 { echo "$as_me:$LINENO: result: yes" >&5
2985 echo "${ECHO_T}yes" >&6; }
2986 eval "ac_cv_header_$ac_safe=yes"
2987 CFLAGS="$old_CFLAGS $smart_include"
2988 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2990 { echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6; }
2996 sm_lib_safe=`echo "gdbm" | sed 'y%./+-%__p_%'`
2997 sm_func_safe=`echo "gdbm_open" | sed 'y%./+-%__p_%'`
2998 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
2999 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
3005 if test "x$smart_try_dir" != "x"; then
3006 for try in $smart_try_dir; do
3007 LIBS="-L$try -lgdbm $old_LIBS"
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014 extern char gdbm_open();
3023 rm -f conftest.$ac_objext conftest$ac_exeext
3024 if { (ac_try="$ac_link"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_link") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest$ac_exeext &&
3040 $as_test_x conftest$ac_exeext; then
3041 smart_lib="-L$try -lgdbm"
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3050 conftest$ac_exeext conftest.$ac_ext
3051 if test "x$smart_lib" != "x"; then
3058 if test "x$smart_lib" = "x"; then
3059 LIBS="-lgdbm $old_LIBS"
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 extern char gdbm_open();
3075 rm -f conftest.$ac_objext conftest$ac_exeext
3076 if { (ac_try="$ac_link"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_link") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } && {
3089 test -z "$ac_c_werror_flag" ||
3090 test ! -s conftest.err
3091 } && test -s conftest$ac_exeext &&
3092 $as_test_x conftest$ac_exeext; then
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3102 conftest$ac_exeext conftest.$ac_ext
3106 if test "x$smart_lib" = "x"; then
3109 if test "x$LOCATE" != "x"; then
3111 file=libgdbm${libltdl_cv_shlibext}
3113 for x in `${LOCATE} $file 2>/dev/null`; do
3114 base=`echo $x | sed "s%/${file}%%"`
3115 if test "x$x" = "x$base"; then
3119 dir=`${DIRNAME} $x 2>/dev/null`
3120 exclude=`echo ${dir} | ${GREP} /home`
3121 if test "x$exclude" != "x"; then
3125 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3126 if test "x$already" = "x"; then
3132 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3136 if test "x$LOCATE" != "x"; then
3140 for x in `${LOCATE} $file 2>/dev/null`; do
3141 base=`echo $x | sed "s%/${file}%%"`
3142 if test "x$x" = "x$base"; then
3146 dir=`${DIRNAME} $x 2>/dev/null`
3147 exclude=`echo ${dir} | ${GREP} /home`
3148 if test "x$exclude" != "x"; then
3152 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3153 if test "x$already" = "x"; then
3159 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3162 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3163 LIBS="-L$try -lgdbm $old_LIBS"
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 extern char gdbm_open();
3179 rm -f conftest.$ac_objext conftest$ac_exeext
3180 if { (ac_try="$ac_link"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_link") 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } && {
3193 test -z "$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 } && test -s conftest$ac_exeext &&
3196 $as_test_x conftest$ac_exeext; then
3197 smart_lib="-L$try -lgdbm"
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3206 conftest$ac_exeext conftest.$ac_ext
3207 if test "x$smart_lib" != "x"; then
3214 if test "x$smart_lib" != "x"; then
3215 { echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6; }
3217 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3218 LIBS="$smart_lib $old_LIBS"
3219 SMART_LIBS="$smart_lib $SMART_LIBS"
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3225 if test "x$ac_cv_lib_gdbm_gdbm_open" != "xyes"; then
3226 fail="$fail libgdbm"
3229 if test "x$fail" = "x"; then
3230 { echo "$as_me:$LINENO: checking to see GDBM_SYNC status" >&5
3231 echo $ECHO_N "checking to see GDBM_SYNC status... $ECHO_C" >&6; }
3233 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3234 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3235 if test "${ac_cv_path_GREP+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 # Extract the first word of "grep ggrep" to use in msg output
3239 if test -z "$GREP"; then
3240 set dummy grep ggrep; ac_prog_name=$2
3241 if test "${ac_cv_path_GREP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 ac_path_GREP_found=false
3245 # Loop through the user's path and test for each of PROGNAME-LIST
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3250 test -z "$as_dir" && as_dir=.
3251 for ac_prog in grep ggrep; do
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3254 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3255 # Check for GNU ac_path_GREP and select it if it is found.
3256 # Check for GNU $ac_path_GREP
3257 case `"$ac_path_GREP" --version 2>&1` in
3259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3262 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3265 cat "conftest.in" "conftest.in" >"conftest.tmp"
3266 mv "conftest.tmp" "conftest.in"
3267 cp "conftest.in" "conftest.nl"
3268 echo 'GREP' >> "conftest.nl"
3269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3271 ac_count=`expr $ac_count + 1`
3272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3273 # Best one so far, save it but keep looking for a better one
3274 ac_cv_path_GREP="$ac_path_GREP"
3275 ac_path_GREP_max=$ac_count
3277 # 10*(2^10) chars as input seems more than enough
3278 test $ac_count -gt 10 && break
3280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3284 $ac_path_GREP_found && break 3
3294 GREP="$ac_cv_path_GREP"
3295 if test -z "$GREP"; then
3296 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3297 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3298 { (exit 1); exit 1; }; }
3302 ac_cv_path_GREP=$GREP
3307 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3308 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3309 GREP="$ac_cv_path_GREP"
3312 { echo "$as_me:$LINENO: checking for egrep" >&5
3313 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3314 if test "${ac_cv_path_EGREP+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3318 then ac_cv_path_EGREP="$GREP -E"
3320 # Extract the first word of "egrep" to use in msg output
3321 if test -z "$EGREP"; then
3322 set dummy egrep; ac_prog_name=$2
3323 if test "${ac_cv_path_EGREP+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 ac_path_EGREP_found=false
3327 # Loop through the user's path and test for each of PROGNAME-LIST
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3332 test -z "$as_dir" && as_dir=.
3333 for ac_prog in egrep; do
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3336 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3337 # Check for GNU ac_path_EGREP and select it if it is found.
3338 # Check for GNU $ac_path_EGREP
3339 case `"$ac_path_EGREP" --version 2>&1` in
3341 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3344 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3347 cat "conftest.in" "conftest.in" >"conftest.tmp"
3348 mv "conftest.tmp" "conftest.in"
3349 cp "conftest.in" "conftest.nl"
3350 echo 'EGREP' >> "conftest.nl"
3351 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3353 ac_count=`expr $ac_count + 1`
3354 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3355 # Best one so far, save it but keep looking for a better one
3356 ac_cv_path_EGREP="$ac_path_EGREP"
3357 ac_path_EGREP_max=$ac_count
3359 # 10*(2^10) chars as input seems more than enough
3360 test $ac_count -gt 10 && break
3362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3366 $ac_path_EGREP_found && break 3
3376 EGREP="$ac_cv_path_EGREP"
3377 if test -z "$EGREP"; then
3378 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3379 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3380 { (exit 1); exit 1; }; }
3384 ac_cv_path_EGREP=$EGREP
3390 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3391 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3392 EGREP="$ac_cv_path_EGREP"
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3406 not found. this version must use sync by default.
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 $EGREP "found-gdbm-sync" >/dev/null 2>&1; then
3414 cat >>confdefs.h <<\_ACEOF
3415 #define NEED_GDBM_SYNC yes
3418 { echo "$as_me:$LINENO: result: needs it." >&5
3419 echo "${ECHO_T}needs it." >&6; }
3423 { echo "$as_me:$LINENO: result: SYNCs by default." >&5
3424 echo "${ECHO_T}SYNCs by default." >&6; }
3433 LIBS="$LIBS $SMART_LIBS"
3434 { echo "$as_me:$LINENO: checking for gdbm_fdesc" >&5
3435 echo $ECHO_N "checking for gdbm_fdesc... $ECHO_C" >&6; }
3436 if test "${ac_cv_func_gdbm_fdesc+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 /* Define gdbm_fdesc to an innocuous variant, in case <limits.h> declares gdbm_fdesc.
3446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3447 #define gdbm_fdesc innocuous_gdbm_fdesc
3449 /* System header to define __stub macros and hopefully few prototypes,
3450 which can conflict with char gdbm_fdesc (); below.
3451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452 <limits.h> exists even on freestanding compilers. */
3455 # include <limits.h>
3457 # include <assert.h>
3462 /* Override any GCC internal prototype to avoid an error.
3463 Use char because int might match the return type of a GCC
3464 builtin and then its argument prototype would still apply. */
3469 /* The GNU C library defines this for functions which it implements
3470 to always fail with ENOSYS. Some functions are actually named
3471 something starting with __ and the normal name is an alias. */
3472 #if defined __stub_gdbm_fdesc || defined __stub___gdbm_fdesc
3479 return gdbm_fdesc ();
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (ac_try="$ac_link"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_link") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest$ac_exeext &&
3501 $as_test_x conftest$ac_exeext; then
3502 ac_cv_func_gdbm_fdesc=yes
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 ac_cv_func_gdbm_fdesc=no
3510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3511 conftest$ac_exeext conftest.$ac_ext
3513 { echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_fdesc" >&5
3514 echo "${ECHO_T}$ac_cv_func_gdbm_fdesc" >&6; }
3516 if test "x$ac_cv_func_gdbm_fdesc" = "xyes";
3519 cat >>confdefs.h <<\_ACEOF
3520 #define HAVE_GDBM_FDESC
3526 targetname=rlm_counter
3529 echo \*\*\* module rlm_counter is disabled.
3532 if test x"$fail" != x""; then
3533 if test x"${enable_strict_dependencies}" = x"yes"; then
3534 { { echo "$as_me:$LINENO: error: set --without-rlm_counter to disable it explicitly." >&5
3535 echo "$as_me: error: set --without-rlm_counter to disable it explicitly." >&2;}
3536 { (exit 1); exit 1; }; }
3538 { echo "$as_me:$LINENO: WARNING: silently not building rlm_counter." >&5
3539 echo "$as_me: WARNING: silently not building rlm_counter." >&2;}
3540 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_counter requires: $fail." >&5
3541 echo "$as_me: WARNING: FAILURE: rlm_counter requires: $fail." >&2;};
3546 counter_ldflags=$SMART_LIBS
3547 counter_cflags=$SMART_CFLAGS
3551 ac_config_headers="$ac_config_headers config.h"
3554 unset ac_cv_env_LIBS_set
3555 unset ac_cv_env_LIBS_value
3557 ac_config_files="$ac_config_files Makefile"
3559 cat >confcache <<\_ACEOF
3560 # This file is a shell script that caches the results of configure
3561 # tests run on this system so they can be shared between configure
3562 # scripts and configure runs, see configure's option --config-cache.
3563 # It is not useful on other systems. If it contains results you don't
3564 # want to keep, you may remove or edit it.
3566 # config.status only pays attention to the cache file if you give it
3567 # the --recheck option to rerun configure.
3569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3575 # The following way of writing the cache mishandles newlines in values,
3576 # but we know of no workaround that is simple, portable, and efficient.
3577 # So, we kill variables containing newlines.
3578 # Ultrix sh set writes to stderr and can't be redirected directly,
3579 # and sets the high bit in the cache file unless we assign to the vars.
3581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3582 eval ac_val=\$$ac_var
3586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3587 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3590 _ | IFS | as_nl) ;; #(
3591 *) $as_unset $ac_var ;;
3597 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3598 *${as_nl}ac_space=\ *)
3599 # `set' does not quote correctly, so add quotes (double-quote
3600 # substitution turns \\\\ into \\, and sed turns \\ into \).
3603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3606 # `set' quotes correctly as required by POSIX, so do not add quotes.
3607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3620 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3621 if test -w "$cache_file"; then
3622 test "x$cache_file" != "x/dev/null" &&
3623 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3624 echo "$as_me: updating cache $cache_file" >&6;}
3625 cat confcache >$cache_file
3627 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3628 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3634 # Let make expand exec_prefix.
3635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3637 DEFS=-DHAVE_CONFIG_H
3641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3642 # 1. Remove the extension, and $U if already installed.
3643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3644 ac_i=`echo "$ac_i" | sed "$ac_script"`
3645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3646 # will be set to the directory where LIBOBJS objects are built.
3647 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3648 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3652 LTLIBOBJS=$ac_ltlibobjs
3656 : ${CONFIG_STATUS=./config.status}
3657 ac_clean_files_save=$ac_clean_files
3658 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3659 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3660 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3661 cat >$CONFIG_STATUS <<_ACEOF
3663 # Generated by $as_me.
3664 # Run this file to recreate the current configuration.
3665 # Compiler output produced by configure, useful for debugging
3666 # configure, is in config.log if it exists.
3671 SHELL=\${CONFIG_SHELL-$SHELL}
3674 cat >>$CONFIG_STATUS <<\_ACEOF
3675 ## --------------------- ##
3676 ## M4sh Initialization. ##
3677 ## --------------------- ##
3679 # Be more Bourne compatible
3680 DUALCASE=1; export DUALCASE # for MKS sh
3681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3684 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3685 # is contrary to our usage. Disable this feature.
3686 alias -g '${1+"$@"}'='"$@"'
3687 setopt NO_GLOB_SUBST
3689 case `(set -o) 2>/dev/null` in
3690 *posix*) set -o posix ;;
3699 # Avoid depending upon Character Ranges.
3700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3703 as_cr_digits='0123456789'
3704 as_cr_alnum=$as_cr_Letters$as_cr_digits
3706 # The user is always right.
3707 if test "${PATH_SEPARATOR+set}" != set; then
3708 echo "#! /bin/sh" >conf$$.sh
3709 echo "exit 0" >>conf$$.sh
3711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3719 # Support unset when possible.
3720 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3728 # We need space, tab and new line, in precisely that order. Quoting is
3729 # there to prevent editors from complaining about space-tab.
3730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3731 # splitting by setting IFS to empty value.)
3736 # Find who we are. Look in the path if we contain no directory separator.
3738 *[\\/]* ) as_myself=$0 ;;
3739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3750 # We did not find ourselves, most probably we were run as `sh COMMAND'
3751 # in which case we are not to be found in the path.
3752 if test "x$as_myself" = x; then
3755 if test ! -f "$as_myself"; then
3756 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3757 { (exit 1); exit 1; }
3760 # Work around bugs in pre-3.0 UWIN ksh.
3761 for as_var in ENV MAIL MAILPATH
3762 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3770 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3771 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3772 LC_TELEPHONE LC_TIME
3774 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3775 eval $as_var=C; export $as_var
3777 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3781 # Required to use basename.
3782 if expr a : '\(a\)' >/dev/null 2>&1 &&
3783 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3789 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3790 as_basename=basename
3796 # Name of the executable.
3797 as_me=`$as_basename -- "$0" ||
3798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3799 X"$0" : 'X\(//\)$' \| \
3800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3802 sed '/^.*\/\([^/][^/]*\)\/*$/{
3823 test "x$as_lineno_1" != "x$as_lineno_2" &&
3824 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3826 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3827 # uniformly replaced by the line number. The first 'sed' inserts a
3828 # line-number line after each line using $LINENO; the second 'sed'
3829 # does the real work. The second script uses 'N' to pair each
3830 # line-number line with the line containing $LINENO, and appends
3831 # trailing '-' during substitution so that $LINENO is not a special
3833 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3834 # scripts with optimization help from Paolo Bonzini. Blame Lee
3835 # E. McMahon (1931-1989) for sed's syntax. :-)
3847 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3851 chmod +x "$as_me.lineno" ||
3852 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3853 { (exit 1); exit 1; }; }
3855 # Don't try to exec as it changes $[0], causing all sort of problems
3856 # (the dirname of $[0] is not the place where we might find the
3857 # original and so on. Autoconf is especially sensitive to this).
3859 # Exit status is that of the last command.
3864 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3870 ECHO_C= ECHO_N= ECHO_T=
3873 case `echo 'x\c'` in
3874 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3881 if expr a : '\(a\)' >/dev/null 2>&1 &&
3882 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3888 rm -f conf$$ conf$$.exe conf$$.file
3889 if test -d conf$$.dir; then
3890 rm -f conf$$.dir/conf$$.file
3896 if ln -s conf$$.file conf$$ 2>/dev/null; then
3898 # ... but there are two gotchas:
3899 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3900 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3901 # In both cases, we have to default to `cp -p'.
3902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3904 elif ln conf$$.file conf$$ 2>/dev/null; then
3909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3910 rmdir conf$$.dir 2>/dev/null
3912 if mkdir -p . 2>/dev/null; then
3915 test -d ./-p && rmdir ./-p
3919 if test -x / >/dev/null 2>&1; then
3922 if ls -dL / >/dev/null 2>&1; then
3929 if test -d "$1"; then
3935 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3936 ???[sx]*):;;*)false;;esac;fi
3940 as_executable_p=$as_test_x
3942 # Sed expression to map a string onto a valid CPP name.
3943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3945 # Sed expression to map a string onto a valid variable name.
3946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3951 # Save the log message, to keep $[0] and so on meaningful, and to
3952 # report actual input values of CONFIG_FILES etc. instead of their
3953 # values after options handling.
3955 This file was extended by $as_me, which was
3956 generated by GNU Autoconf 2.61. Invocation command line was
3958 CONFIG_FILES = $CONFIG_FILES
3959 CONFIG_HEADERS = $CONFIG_HEADERS
3960 CONFIG_LINKS = $CONFIG_LINKS
3961 CONFIG_COMMANDS = $CONFIG_COMMANDS
3964 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3969 cat >>$CONFIG_STATUS <<_ACEOF
3970 # Files that config.status was made for.
3971 config_files="$ac_config_files"
3972 config_headers="$ac_config_headers"
3976 cat >>$CONFIG_STATUS <<\_ACEOF
3978 \`$as_me' instantiates files from templates according to the
3979 current configuration.
3981 Usage: $0 [OPTIONS] [FILE]...
3983 -h, --help print this help, then exit
3984 -V, --version print version number and configuration settings, then exit
3985 -q, --quiet do not print progress messages
3986 -d, --debug don't remove temporary files
3987 --recheck update $as_me by reconfiguring in the same conditions
3988 --file=FILE[:TEMPLATE]
3989 instantiate the configuration file FILE
3990 --header=FILE[:TEMPLATE]
3991 instantiate the configuration header FILE
3993 Configuration files:
3996 Configuration headers:
3999 Report bugs to <bug-autoconf@gnu.org>."
4002 cat >>$CONFIG_STATUS <<_ACEOF
4005 configured by $0, generated by GNU Autoconf 2.61,
4006 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4008 Copyright (C) 2006 Free Software Foundation, Inc.
4009 This config.status script is free software; the Free Software Foundation
4010 gives unlimited permission to copy, distribute and modify it."
4016 cat >>$CONFIG_STATUS <<\_ACEOF
4017 # If no file are specified by the user, then we need to provide default
4018 # value. By we need to know if files were specified by the user.
4024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4036 # Handling of the options.
4037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4039 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4040 echo "$ac_cs_version"; exit ;;
4041 --debug | --debu | --deb | --de | --d | -d )
4043 --file | --fil | --fi | --f )
4045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4046 ac_need_defaults=false;;
4047 --header | --heade | --head | --hea )
4049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4050 ac_need_defaults=false;;
4052 # Conflict between --help and --header
4053 { echo "$as_me: error: ambiguous option: $1
4054 Try \`$0 --help' for more information." >&2
4055 { (exit 1); exit 1; }; };;
4056 --help | --hel | -h )
4057 echo "$ac_cs_usage"; exit ;;
4058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4063 -*) { echo "$as_me: error: unrecognized option: $1
4064 Try \`$0 --help' for more information." >&2
4065 { (exit 1); exit 1; }; } ;;
4067 *) ac_config_targets="$ac_config_targets $1"
4068 ac_need_defaults=false ;;
4074 ac_configure_extra_args=
4076 if $ac_cs_silent; then
4078 ac_configure_extra_args="$ac_configure_extra_args --silent"
4082 cat >>$CONFIG_STATUS <<_ACEOF
4083 if \$ac_cs_recheck; then
4084 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4087 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4091 cat >>$CONFIG_STATUS <<\_ACEOF
4095 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4096 ## Running $as_me. ##
4102 cat >>$CONFIG_STATUS <<_ACEOF
4105 cat >>$CONFIG_STATUS <<\_ACEOF
4107 # Handling of arguments.
4108 for ac_config_target in $ac_config_targets
4110 case $ac_config_target in
4111 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4112 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4114 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4115 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4116 { (exit 1); exit 1; }; };;
4121 # If the user did not use the arguments to specify the items to instantiate,
4122 # then the envvar interface is used. Set only those that are not.
4123 # We use the long form for the default assignment because of an extremely
4124 # bizarre bug on SunOS 4.1.3.
4125 if $ac_need_defaults; then
4126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4130 # Have a temporary directory for convenience. Make it in the build tree
4131 # simply because there is no reason against having it here, and in addition,
4132 # creating and moving files from /tmp can sometimes cause problems.
4133 # Hook for its removal unless debugging.
4134 # Note that there is a small window in which the directory will not be cleaned:
4135 # after its creation but before its name has been assigned to `$tmp'.
4139 trap 'exit_status=$?
4140 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4142 trap '{ (exit 1); exit 1; }' 1 2 13 15
4144 # Create a (secure) tmp directory for tmp files.
4147 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4148 test -n "$tmp" && test -d "$tmp"
4151 tmp=./conf$$-$RANDOM
4152 (umask 077 && mkdir "$tmp")
4155 echo "$me: cannot create a temporary directory in ." >&2
4156 { (exit 1); exit 1; }
4160 # Set up the sed scripts for CONFIG_FILES section.
4163 # No need to generate the scripts if there are no CONFIG_FILES.
4164 # This happens for instance when ./config.status config.h
4165 if test -n "$CONFIG_FILES"; then
4172 for ac_last_try in false false false false false :; do
4173 cat >conf$$subs.sed <<_ACEOF
4174 SHELL!$SHELL$ac_delim
4175 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4176 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4177 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4178 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4179 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4180 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4181 exec_prefix!$exec_prefix$ac_delim
4182 prefix!$prefix$ac_delim
4183 program_transform_name!$program_transform_name$ac_delim
4184 bindir!$bindir$ac_delim
4185 sbindir!$sbindir$ac_delim
4186 libexecdir!$libexecdir$ac_delim
4187 datarootdir!$datarootdir$ac_delim
4188 datadir!$datadir$ac_delim
4189 sysconfdir!$sysconfdir$ac_delim
4190 sharedstatedir!$sharedstatedir$ac_delim
4191 localstatedir!$localstatedir$ac_delim
4192 includedir!$includedir$ac_delim
4193 oldincludedir!$oldincludedir$ac_delim
4194 docdir!$docdir$ac_delim
4195 infodir!$infodir$ac_delim
4196 htmldir!$htmldir$ac_delim
4197 dvidir!$dvidir$ac_delim
4198 pdfdir!$pdfdir$ac_delim
4199 psdir!$psdir$ac_delim
4200 libdir!$libdir$ac_delim
4201 localedir!$localedir$ac_delim
4202 mandir!$mandir$ac_delim
4204 ECHO_C!$ECHO_C$ac_delim
4205 ECHO_N!$ECHO_N$ac_delim
4206 ECHO_T!$ECHO_T$ac_delim
4208 build_alias!$build_alias$ac_delim
4209 host_alias!$host_alias$ac_delim
4210 target_alias!$target_alias$ac_delim
4212 CFLAGS!$CFLAGS$ac_delim
4213 LDFLAGS!$LDFLAGS$ac_delim
4214 CPPFLAGS!$CPPFLAGS$ac_delim
4215 ac_ct_CC!$ac_ct_CC$ac_delim
4216 EXEEXT!$EXEEXT$ac_delim
4217 OBJEXT!$OBJEXT$ac_delim
4220 EGREP!$EGREP$ac_delim
4221 counter_ldflags!$counter_ldflags$ac_delim
4222 counter_cflags!$counter_cflags$ac_delim
4223 targetname!$targetname$ac_delim
4224 LIBOBJS!$LIBOBJS$ac_delim
4225 LTLIBOBJS!$LTLIBOBJS$ac_delim
4228 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
4230 elif $ac_last_try; then
4231 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4232 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4233 { (exit 1); exit 1; }; }
4235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4239 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4240 if test -n "$ac_eof"; then
4241 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4242 ac_eof=`expr $ac_eof + 1`
4245 cat >>$CONFIG_STATUS <<_ACEOF
4246 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4250 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4251 s/^/s,@/; s/!/@,|#_!!_#|/
4254 s/'"$ac_delim"'$/,g/; t
4256 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4257 ' >>$CONFIG_STATUS <conf$$subs.sed
4258 rm -f conf$$subs.sed
4259 cat >>$CONFIG_STATUS <<_ACEOF
4266 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4267 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4268 # trailing colons and then remove the whole line if VPATH becomes empty
4269 # (actually we leave an empty line to preserve line numbers).
4270 if test "x$srcdir" = x.; then
4271 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4275 s/^\([^=]*=[ ]*\):*/\1/
4281 cat >>$CONFIG_STATUS <<\_ACEOF
4282 fi # test -n "$CONFIG_FILES"
4285 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
4288 :[FHLC]) ac_mode=$ac_tag; continue;;
4290 case $ac_mode$ac_tag in
4292 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4293 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4294 { (exit 1); exit 1; }; };;
4295 :[FH]-) ac_tag=-:-;;
4296 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4313 -) ac_f="$tmp/stdin";;
4314 *) # Look for the file first in the build tree, then in the source tree
4315 # (if the path is not absolute). The absolute path cannot be DOS-style,
4316 # because $ac_f cannot contain `:'.
4320 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4322 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4323 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4324 { (exit 1); exit 1; }; };;
4326 ac_file_inputs="$ac_file_inputs $ac_f"
4329 # Let's still pretend it is `configure' which instantiates (i.e., don't
4330 # use $as_me), people would be surprised to read:
4331 # /* config.h. Generated by config.status. */
4332 configure_input="Generated from "`IFS=:
4333 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4334 if test x"$ac_file" != x-; then
4335 configure_input="$ac_file. $configure_input"
4336 { echo "$as_me:$LINENO: creating $ac_file" >&5
4337 echo "$as_me: creating $ac_file" >&6;}
4341 *:-:* | *:-) cat >"$tmp/stdin";;
4346 ac_dir=`$as_dirname -- "$ac_file" ||
4347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4348 X"$ac_file" : 'X\(//\)[^/]' \| \
4349 X"$ac_file" : 'X\(//\)$' \| \
4350 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4371 -*) as_dir=./$as_dir;;
4373 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4377 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4378 *) as_qdir=$as_dir;;
4380 as_dirs="'$as_qdir' $as_dirs"
4381 as_dir=`$as_dirname -- "$as_dir" ||
4382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4383 X"$as_dir" : 'X\(//\)[^/]' \| \
4384 X"$as_dir" : 'X\(//\)$' \| \
4385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4404 test -d "$as_dir" && break
4406 test -z "$as_dirs" || eval "mkdir $as_dirs"
4407 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4408 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4409 { (exit 1); exit 1; }; }; }
4413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4416 # A ".." for each directory in $ac_dir_suffix.
4417 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4418 case $ac_top_builddir_sub in
4419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4423 ac_abs_top_builddir=$ac_pwd
4424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4425 # for backward compatibility:
4426 ac_top_builddir=$ac_top_build_prefix
4429 .) # We are building in place.
4431 ac_top_srcdir=$ac_top_builddir_sub
4432 ac_abs_top_srcdir=$ac_pwd ;;
4433 [\\/]* | ?:[\\/]* ) # Absolute name.
4434 ac_srcdir=$srcdir$ac_dir_suffix;
4435 ac_top_srcdir=$srcdir
4436 ac_abs_top_srcdir=$srcdir ;;
4438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4439 ac_top_srcdir=$ac_top_build_prefix$srcdir
4440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4453 cat >>$CONFIG_STATUS <<\_ACEOF
4454 # If the template does not know about datarootdir, expand it.
4455 # FIXME: This hack should be removed a few years after 2.60.
4456 ac_datarootdir_hack=; ac_datarootdir_seen=
4458 case `sed -n '/datarootdir/ {
4467 ' $ac_file_inputs` in
4468 *datarootdir*) ac_datarootdir_seen=yes;;
4469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4470 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4471 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4473 cat >>$CONFIG_STATUS <<_ACEOF
4474 ac_datarootdir_hack='
4475 s&@datadir@&$datadir&g
4476 s&@docdir@&$docdir&g
4477 s&@infodir@&$infodir&g
4478 s&@localedir@&$localedir&g
4479 s&@mandir@&$mandir&g
4480 s&\\\${datarootdir}&$datarootdir&g' ;;
4484 # Neutralize VPATH when `$srcdir' = `.'.
4485 # Shell code in configure.ac might set extrasub.
4486 # FIXME: do we really want to maintain this feature?
4487 cat >>$CONFIG_STATUS <<_ACEOF
4491 cat >>$CONFIG_STATUS <<\_ACEOF
4493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4494 s&@configure_input@&$configure_input&;t t
4495 s&@top_builddir@&$ac_top_builddir_sub&;t t
4496 s&@srcdir@&$ac_srcdir&;t t
4497 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4498 s&@top_srcdir@&$ac_top_srcdir&;t t
4499 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4500 s&@builddir@&$ac_builddir&;t t
4501 s&@abs_builddir@&$ac_abs_builddir&;t t
4502 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4503 $ac_datarootdir_hack
4504 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4509 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4510 which seems to be undefined. Please make sure it is defined." >&5
4511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4512 which seems to be undefined. Please make sure it is defined." >&2;}
4516 -) cat "$tmp/out"; rm -f "$tmp/out";;
4517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4526 # Transform confdefs.h into a sed script `conftest.defines', that
4527 # substitutes the proper values into config.h.in to produce config.h.
4528 rm -f conftest.defines conftest.tail
4529 # First, append a space to every undef/define line, to ease matching.
4530 echo 's/$/ /' >conftest.defines
4531 # Then, protect against being on the right side of a sed subst, or in
4532 # an unquoted here document, in config.status. If some macros were
4533 # called several times there might be several #defines for the same
4534 # symbol, which is useless. But do not sort them, since the last
4535 # AC_DEFINE must be honored.
4536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4539 # PARAMS is the parameter list in the macro definition--in most cases, it's
4540 # just an empty string.
4541 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
4542 ac_dB='\\)[ (].*,\\1define\\2'
4550 s/^[ ]*#[ ]*define[ ][ ]*//
4555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4557 ' >>conftest.defines
4559 # Remove the space that was appended to ease matching.
4560 # Then replace #undef with comments. This is necessary, for
4561 # example, in the case of _POSIX_SOURCE, which is predefined and required
4562 # on some systems where configure will not decide to define it.
4563 # (The regexp can be short, since the line contains either #define or #undef.)
4565 s,^[ #]*u.*,/* & */,' >>conftest.defines
4567 # Break up conftest.defines:
4570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4574 ac_in='$ac_file_inputs'
4575 ac_out='"$tmp/out1"'
4576 ac_nxt='"$tmp/out2"'
4580 # Write a here document:
4581 cat >>$CONFIG_STATUS <<_ACEOF
4582 # First, check the format of the line:
4583 cat >"\$tmp/defines.sed" <<\\CEOF
4584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
4585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
4589 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4592 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4593 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4594 grep . conftest.tail >/dev/null || break
4595 rm -f conftest.defines
4596 mv conftest.tail conftest.defines
4598 rm -f conftest.defines conftest.tail
4600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4601 cat >>$CONFIG_STATUS <<\_ACEOF
4602 if test x"$ac_file" != x-; then
4603 echo "/* $configure_input */" >"$tmp/config.h"
4604 cat "$ac_result" >>"$tmp/config.h"
4605 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4607 echo "$as_me: $ac_file is unchanged" >&6;}
4610 mv "$tmp/config.h" $ac_file
4613 echo "/* $configure_input */"
4625 { (exit 0); exit 0; }
4627 chmod +x $CONFIG_STATUS
4628 ac_clean_files=$ac_clean_files_save
4631 # configure is writing to config.log, and then calls config.status.
4632 # config.status does its own redirection, appending to config.log.
4633 # Unfortunately, on DOS this fails, as config.log is still kept open
4634 # by configure, so config.status won't be able to write to it; its
4635 # output is simply discarded. So we exec the FD to /dev/null,
4636 # effectively closing config.log, so it can be properly (re)opened and
4637 # appended to by config.status. When coming back to configure, we
4638 # need to make the FD available again.
4639 if test "$no_create" != yes; then
4641 ac_config_status_args=
4642 test "$silent" = yes &&
4643 ac_config_status_args="$ac_config_status_args --quiet"
4645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4648 # would make configure fail if this is the last instruction.
4649 $ac_cs_success || { (exit 1); exit 1; }