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_perl.c"
590 program_transform_name
633 ac_precious_vars='build_alias
644 # Initialize some variables set by options.
646 ac_init_version=false
647 # The variables have the same names as the options, with
648 # dashes changed to underlines.
656 program_transform_name=s,x,x,
664 # Installation directory options.
665 # These are left unexpanded so users can "make install exec_prefix=/foo"
666 # and all the variables that are supposed to be based on exec_prefix
667 # by default will actually change.
668 # Use braces instead of parens because sh, perl, etc. also accept them.
669 # (The list follows the same order as the GNU Coding Standards.)
670 bindir='${exec_prefix}/bin'
671 sbindir='${exec_prefix}/sbin'
672 libexecdir='${exec_prefix}/libexec'
673 datarootdir='${prefix}/share'
674 datadir='${datarootdir}'
675 sysconfdir='${prefix}/etc'
676 sharedstatedir='${prefix}/com'
677 localstatedir='${prefix}/var'
678 includedir='${prefix}/include'
679 oldincludedir='/usr/include'
680 docdir='${datarootdir}/doc/${PACKAGE}'
681 infodir='${datarootdir}/info'
686 libdir='${exec_prefix}/lib'
687 localedir='${datarootdir}/locale'
688 mandir='${datarootdir}/man'
694 # If the previous option needs an argument, assign it.
695 if test -n "$ac_prev"; then
696 eval $ac_prev=\$ac_option
702 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
706 # Accept the important Cygnus configure options, so we can diagnose typos.
708 case $ac_dashdash$ac_option in
712 -bindir | --bindir | --bindi | --bind | --bin | --bi)
714 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
717 -build | --build | --buil | --bui | --bu)
718 ac_prev=build_alias ;;
719 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
720 build_alias=$ac_optarg ;;
722 -cache-file | --cache-file | --cache-fil | --cache-fi \
723 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
724 ac_prev=cache_file ;;
725 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
726 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
727 cache_file=$ac_optarg ;;
730 cache_file=config.cache ;;
732 -datadir | --datadir | --datadi | --datad)
734 -datadir=* | --datadir=* | --datadi=* | --datad=*)
735 datadir=$ac_optarg ;;
737 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
738 | --dataroo | --dataro | --datar)
739 ac_prev=datarootdir ;;
740 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
741 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
742 datarootdir=$ac_optarg ;;
744 -disable-* | --disable-*)
745 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
749 { (exit 1); exit 1; }; }
750 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
751 eval enable_$ac_feature=no ;;
753 -docdir | --docdir | --docdi | --doc | --do)
755 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
758 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
760 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
763 -enable-* | --enable-*)
764 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
768 { (exit 1); exit 1; }; }
769 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
770 eval enable_$ac_feature=\$ac_optarg ;;
772 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
773 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
774 | --exec | --exe | --ex)
775 ac_prev=exec_prefix ;;
776 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
777 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
778 | --exec=* | --exe=* | --ex=*)
779 exec_prefix=$ac_optarg ;;
781 -gas | --gas | --ga | --g)
782 # Obsolete; use --with-gas.
785 -help | --help | --hel | --he | -h)
787 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
788 ac_init_help=recursive ;;
789 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
790 ac_init_help=short ;;
792 -host | --host | --hos | --ho)
793 ac_prev=host_alias ;;
794 -host=* | --host=* | --hos=* | --ho=*)
795 host_alias=$ac_optarg ;;
797 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
799 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
801 htmldir=$ac_optarg ;;
803 -includedir | --includedir | --includedi | --included | --include \
804 | --includ | --inclu | --incl | --inc)
805 ac_prev=includedir ;;
806 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
807 | --includ=* | --inclu=* | --incl=* | --inc=*)
808 includedir=$ac_optarg ;;
810 -infodir | --infodir | --infodi | --infod | --info | --inf)
812 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
813 infodir=$ac_optarg ;;
815 -libdir | --libdir | --libdi | --libd)
817 -libdir=* | --libdir=* | --libdi=* | --libd=*)
820 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
821 | --libexe | --libex | --libe)
822 ac_prev=libexecdir ;;
823 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
824 | --libexe=* | --libex=* | --libe=*)
825 libexecdir=$ac_optarg ;;
827 -localedir | --localedir | --localedi | --localed | --locale)
829 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
830 localedir=$ac_optarg ;;
832 -localstatedir | --localstatedir | --localstatedi | --localstated \
833 | --localstate | --localstat | --localsta | --localst | --locals)
834 ac_prev=localstatedir ;;
835 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
836 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
837 localstatedir=$ac_optarg ;;
839 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
841 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
845 # Obsolete; use --without-fp.
848 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
849 | --no-cr | --no-c | -n)
852 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
853 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
856 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
857 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
858 | --oldin | --oldi | --old | --ol | --o)
859 ac_prev=oldincludedir ;;
860 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
861 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
862 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
863 oldincludedir=$ac_optarg ;;
865 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
867 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
870 -program-prefix | --program-prefix | --program-prefi | --program-pref \
871 | --program-pre | --program-pr | --program-p)
872 ac_prev=program_prefix ;;
873 -program-prefix=* | --program-prefix=* | --program-prefi=* \
874 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
875 program_prefix=$ac_optarg ;;
877 -program-suffix | --program-suffix | --program-suffi | --program-suff \
878 | --program-suf | --program-su | --program-s)
879 ac_prev=program_suffix ;;
880 -program-suffix=* | --program-suffix=* | --program-suffi=* \
881 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
882 program_suffix=$ac_optarg ;;
884 -program-transform-name | --program-transform-name \
885 | --program-transform-nam | --program-transform-na \
886 | --program-transform-n | --program-transform- \
887 | --program-transform | --program-transfor \
888 | --program-transfo | --program-transf \
889 | --program-trans | --program-tran \
890 | --progr-tra | --program-tr | --program-t)
891 ac_prev=program_transform_name ;;
892 -program-transform-name=* | --program-transform-name=* \
893 | --program-transform-nam=* | --program-transform-na=* \
894 | --program-transform-n=* | --program-transform-=* \
895 | --program-transform=* | --program-transfor=* \
896 | --program-transfo=* | --program-transf=* \
897 | --program-trans=* | --program-tran=* \
898 | --progr-tra=* | --program-tr=* | --program-t=*)
899 program_transform_name=$ac_optarg ;;
901 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
903 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
906 -psdir | --psdir | --psdi | --psd | --ps)
908 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
912 | -silent | --silent | --silen | --sile | --sil)
915 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
917 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
919 sbindir=$ac_optarg ;;
921 -sharedstatedir | --sharedstatedir | --sharedstatedi \
922 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
923 | --sharedst | --shareds | --shared | --share | --shar \
925 ac_prev=sharedstatedir ;;
926 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
927 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
928 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
930 sharedstatedir=$ac_optarg ;;
932 -site | --site | --sit)
934 -site=* | --site=* | --sit=*)
937 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
939 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
942 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
943 | --syscon | --sysco | --sysc | --sys | --sy)
944 ac_prev=sysconfdir ;;
945 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
946 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
947 sysconfdir=$ac_optarg ;;
949 -target | --target | --targe | --targ | --tar | --ta | --t)
950 ac_prev=target_alias ;;
951 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
952 target_alias=$ac_optarg ;;
954 -v | -verbose | --verbose | --verbos | --verbo | --verb)
957 -version | --version | --versio | --versi | --vers | -V)
961 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
964 { echo "$as_me: error: invalid package name: $ac_package" >&2
965 { (exit 1); exit 1; }; }
966 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
967 eval with_$ac_package=\$ac_optarg ;;
969 -without-* | --without-*)
970 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
973 { echo "$as_me: error: invalid package name: $ac_package" >&2
974 { (exit 1); exit 1; }; }
975 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
976 eval with_$ac_package=no ;;
979 # Obsolete; use --with-x.
982 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
983 | --x-incl | --x-inc | --x-in | --x-i)
984 ac_prev=x_includes ;;
985 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
986 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
987 x_includes=$ac_optarg ;;
989 -x-libraries | --x-libraries | --x-librarie | --x-librari \
990 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
991 ac_prev=x_libraries ;;
992 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
993 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
994 x_libraries=$ac_optarg ;;
996 -*) { echo "$as_me: error: unrecognized option: $ac_option
997 Try \`$0 --help' for more information." >&2
998 { (exit 1); exit 1; }; }
1002 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1006 { (exit 1); exit 1; }; }
1007 eval $ac_envvar=\$ac_optarg
1008 export $ac_envvar ;;
1011 # FIXME: should be removed in autoconf 3.0.
1012 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1013 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1015 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1021 if test -n "$ac_prev"; then
1022 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1023 { echo "$as_me: error: missing argument to $ac_option" >&2
1024 { (exit 1); exit 1; }; }
1027 # Be sure to have absolute directory names.
1028 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1029 datadir sysconfdir sharedstatedir localstatedir includedir \
1030 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1031 libdir localedir mandir
1033 eval ac_val=\$$ac_var
1035 [\\/$]* | ?:[\\/]* ) continue;;
1036 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1038 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1039 { (exit 1); exit 1; }; }
1042 # There might be people who depend on the old broken behavior: `$host'
1043 # used to hold the argument of --host etc.
1044 # FIXME: To remove some day.
1047 target=$target_alias
1049 # FIXME: To remove some day.
1050 if test "x$host_alias" != x; then
1051 if test "x$build_alias" = x; then
1052 cross_compiling=maybe
1053 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1054 If a cross compiler is detected then cross compile mode will be used." >&2
1055 elif test "x$build_alias" != "x$host_alias"; then
1061 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1063 test "$silent" = yes && exec 6>/dev/null
1066 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1067 ac_ls_di=`ls -di .` &&
1068 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1069 { echo "$as_me: error: Working directory cannot be determined" >&2
1070 { (exit 1); exit 1; }; }
1071 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1072 { echo "$as_me: error: pwd does not report name of working directory" >&2
1073 { (exit 1); exit 1; }; }
1076 # Find the source files, if location was not specified.
1077 if test -z "$srcdir"; then
1078 ac_srcdir_defaulted=yes
1079 # Try the directory containing this script, then the parent directory.
1080 ac_confdir=`$as_dirname -- "$0" ||
1081 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1082 X"$0" : 'X\(//\)[^/]' \| \
1083 X"$0" : 'X\(//\)$' \| \
1084 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1104 if test ! -r "$srcdir/$ac_unique_file"; then
1108 ac_srcdir_defaulted=no
1110 if test ! -r "$srcdir/$ac_unique_file"; then
1111 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1112 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1113 { (exit 1); exit 1; }; }
1115 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1117 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1118 { (exit 1); exit 1; }; }
1120 # When building in place, set srcdir=.
1121 if test "$ac_abs_confdir" = "$ac_pwd"; then
1124 # Remove unnecessary trailing slashes from srcdir.
1125 # Double slashes in file names in object file debugging info
1126 # mess up M-x gdb in Emacs.
1128 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1130 for ac_var in $ac_precious_vars; do
1131 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1132 eval ac_env_${ac_var}_value=\$${ac_var}
1133 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1134 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1138 # Report the --help message.
1140 if test "$ac_init_help" = "long"; then
1141 # Omit some internal or obsolete options to make the list less imposing.
1142 # This message is too long to be a string in the A/UX 3.1 sh.
1144 \`configure' configures this package to adapt to many kinds of systems.
1146 Usage: $0 [OPTION]... [VAR=VALUE]...
1148 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1149 VAR=VALUE. See below for descriptions of some of the useful variables.
1151 Defaults for the options are specified in brackets.
1154 -h, --help display this help and exit
1155 --help=short display options specific to this package
1156 --help=recursive display the short help of all the included packages
1157 -V, --version display version information and exit
1158 -q, --quiet, --silent do not print \`checking...' messages
1159 --cache-file=FILE cache test results in FILE [disabled]
1160 -C, --config-cache alias for \`--cache-file=config.cache'
1161 -n, --no-create do not create output files
1162 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1164 Installation directories:
1165 --prefix=PREFIX install architecture-independent files in PREFIX
1166 [$ac_default_prefix]
1167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1170 By default, \`make install' will install all the files in
1171 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1172 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1173 for instance \`--prefix=\$HOME'.
1175 For better control, use the options below.
1177 Fine tuning of the installation directories:
1178 --bindir=DIR user executables [EPREFIX/bin]
1179 --sbindir=DIR system admin executables [EPREFIX/sbin]
1180 --libexecdir=DIR program executables [EPREFIX/libexec]
1181 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1182 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1183 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1184 --libdir=DIR object code libraries [EPREFIX/lib]
1185 --includedir=DIR C header files [PREFIX/include]
1186 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1187 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1188 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1189 --infodir=DIR info documentation [DATAROOTDIR/info]
1190 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1191 --mandir=DIR man documentation [DATAROOTDIR/man]
1192 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1193 --htmldir=DIR html documentation [DOCDIR]
1194 --dvidir=DIR dvi documentation [DOCDIR]
1195 --pdfdir=DIR pdf documentation [DOCDIR]
1196 --psdir=DIR ps documentation [DOCDIR]
1203 if test -n "$ac_init_help"; then
1207 Some influential environment variables:
1208 CC C compiler command
1209 CFLAGS C compiler flags
1210 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1211 nonstandard directory <lib dir>
1212 LIBS libraries to pass to the linker, e.g. -l<library>
1213 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1214 you have headers in a nonstandard directory <include dir>
1217 Use these variables to override the choices made by `configure' or to help
1218 it to find libraries and programs with nonstandard names/locations.
1224 if test "$ac_init_help" = "recursive"; then
1225 # If there are subdirs, report their specific --help.
1226 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1227 test -d "$ac_dir" || continue
1231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1234 # A ".." for each directory in $ac_dir_suffix.
1235 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1236 case $ac_top_builddir_sub in
1237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1241 ac_abs_top_builddir=$ac_pwd
1242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1243 # for backward compatibility:
1244 ac_top_builddir=$ac_top_build_prefix
1247 .) # We are building in place.
1249 ac_top_srcdir=$ac_top_builddir_sub
1250 ac_abs_top_srcdir=$ac_pwd ;;
1251 [\\/]* | ?:[\\/]* ) # Absolute name.
1252 ac_srcdir=$srcdir$ac_dir_suffix;
1253 ac_top_srcdir=$srcdir
1254 ac_abs_top_srcdir=$srcdir ;;
1256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1257 ac_top_srcdir=$ac_top_build_prefix$srcdir
1258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1262 cd "$ac_dir" || { ac_status=$?; continue; }
1263 # Check for guested configure.
1264 if test -f "$ac_srcdir/configure.gnu"; then
1266 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1267 elif test -f "$ac_srcdir/configure"; then
1269 $SHELL "$ac_srcdir/configure" --help=recursive
1271 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1273 cd "$ac_pwd" || { ac_status=$?; break; }
1277 test -n "$ac_init_help" && exit $ac_status
1278 if $ac_init_version; then
1281 generated by GNU Autoconf 2.61
1283 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1284 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1285 This configure script is free software; the Free Software Foundation
1286 gives unlimited permission to copy, distribute and modify it.
1290 cat >config.log <<_ACEOF
1291 This file contains any messages produced by compilers while
1292 running configure, to aid debugging if configure makes a mistake.
1294 It was created by $as_me, which was
1295 generated by GNU Autoconf 2.61. Invocation command line was
1307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1330 test -z "$as_dir" && as_dir=.
1331 echo "PATH: $as_dir"
1347 # Keep a trace of the command line.
1348 # Strip out --no-create and --no-recursion so they do not pile up.
1349 # Strip out --silent because we don't want to record it for future runs.
1350 # Also quote any args containing shell meta-characters.
1351 # Make two passes to allow for proper duplicate-argument suppression.
1355 ac_must_keep_next=false
1361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1363 | -silent | --silent | --silen | --sile | --sil)
1366 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1369 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1371 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1372 if test $ac_must_keep_next = true; then
1373 ac_must_keep_next=false # Got value, back to normal.
1376 *=* | --config-cache | -C | -disable-* | --disable-* \
1377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1379 | -with-* | --with-* | -without-* | --without-* | --x)
1380 case "$ac_configure_args0 " in
1381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1384 -* ) ac_must_keep_next=true ;;
1387 ac_configure_args="$ac_configure_args '$ac_arg'"
1392 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1393 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1395 # When interrupted or exit'd, cleanup temporary files, and complete
1396 # config.log. We remove comments because anyway the quotes in there
1397 # would cause problems or look ugly.
1398 # WARNING: Use '\'' to represent an apostrophe within the trap.
1399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1400 trap 'exit_status=$?
1401 # Save into config.log some information that might help in debugging.
1406 ## ---------------- ##
1407 ## Cache variables. ##
1408 ## ---------------- ##
1411 # The following way of writing the cache mishandles newlines in values,
1413 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1414 eval ac_val=\$$ac_var
1418 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1419 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1422 _ | IFS | as_nl) ;; #(
1423 *) $as_unset $ac_var ;;
1428 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1429 *${as_nl}ac_space=\ *)
1431 "s/'\''/'\''\\\\'\'''\''/g;
1432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1435 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1443 ## ----------------- ##
1444 ## Output variables. ##
1445 ## ----------------- ##
1448 for ac_var in $ac_subst_vars
1450 eval ac_val=\$$ac_var
1452 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1454 echo "$ac_var='\''$ac_val'\''"
1458 if test -n "$ac_subst_files"; then
1460 ## ------------------- ##
1461 ## File substitutions. ##
1462 ## ------------------- ##
1465 for ac_var in $ac_subst_files
1467 eval ac_val=\$$ac_var
1469 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1471 echo "$ac_var='\''$ac_val'\''"
1476 if test -s confdefs.h; then
1486 test "$ac_signal" != 0 &&
1487 echo "$as_me: caught signal $ac_signal"
1488 echo "$as_me: exit $exit_status"
1490 rm -f core *.core core.conftest.* &&
1491 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1494 for ac_signal in 1 2 13 15; do
1495 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1500 rm -f -r conftest* confdefs.h
1502 # Predefined preprocessor variables.
1504 cat >>confdefs.h <<_ACEOF
1505 #define PACKAGE_NAME "$PACKAGE_NAME"
1509 cat >>confdefs.h <<_ACEOF
1510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1514 cat >>confdefs.h <<_ACEOF
1515 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1519 cat >>confdefs.h <<_ACEOF
1520 #define PACKAGE_STRING "$PACKAGE_STRING"
1524 cat >>confdefs.h <<_ACEOF
1525 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1529 # Let the site file select an alternate cache file if it wants to.
1530 # Prefer explicitly selected file to automatically selected ones.
1531 if test -n "$CONFIG_SITE"; then
1532 set x "$CONFIG_SITE"
1533 elif test "x$prefix" != xNONE; then
1534 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1536 set x "$ac_default_prefix/share/config.site" \
1537 "$ac_default_prefix/etc/config.site"
1542 if test -r "$ac_site_file"; then
1543 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1544 echo "$as_me: loading site script $ac_site_file" >&6;}
1545 sed 's/^/| /' "$ac_site_file" >&5
1550 if test -r "$cache_file"; then
1551 # Some versions of bash will fail to source /dev/null (special
1552 # files actually), so we avoid doing that.
1553 if test -f "$cache_file"; then
1554 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1555 echo "$as_me: loading cache $cache_file" >&6;}
1557 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1558 *) . "./$cache_file";;
1562 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1563 echo "$as_me: creating cache $cache_file" >&6;}
1567 # Check that the precious variables saved in the cache have kept the same
1569 ac_cache_corrupted=false
1570 for ac_var in $ac_precious_vars; do
1571 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1572 eval ac_new_set=\$ac_env_${ac_var}_set
1573 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1574 eval ac_new_val=\$ac_env_${ac_var}_value
1575 case $ac_old_set,$ac_new_set in
1577 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1578 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1579 ac_cache_corrupted=: ;;
1581 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1582 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1583 ac_cache_corrupted=: ;;
1586 if test "x$ac_old_val" != "x$ac_new_val"; then
1587 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1588 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1589 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1590 echo "$as_me: former value: $ac_old_val" >&2;}
1591 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1592 echo "$as_me: current value: $ac_new_val" >&2;}
1593 ac_cache_corrupted=:
1596 # Pass precious variables to config.status.
1597 if test "$ac_new_set" = set; then
1599 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1600 *) ac_arg=$ac_var=$ac_new_val ;;
1602 case " $ac_configure_args " in
1603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1604 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1608 if $ac_cache_corrupted; then
1609 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1610 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1611 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1612 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1613 { (exit 1); exit 1; }; }
1633 ac_cpp='$CPP $CPPFLAGS'
1634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1642 if test x$with_rlm_perl != xno; then
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 if test -n "$CC"; then
1679 { echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6; }
1682 { echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6; }
1688 if test -z "$ac_cv_prog_CC"; then
1690 # Extract the first word of "gcc", so it can be a program name with args.
1691 set dummy gcc; ac_word=$2
1692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1707 ac_cv_prog_ac_ct_CC="gcc"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718 if test -n "$ac_ct_CC"; then
1719 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720 echo "${ECHO_T}$ac_ct_CC" >&6; }
1722 { echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6; }
1726 if test "x$ac_ct_CC" = x; then
1729 case $cross_compiling:$ac_tool_warned in
1731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1732 whose name does not start with the host triplet. If you think this
1733 configuration is useful to you, please write to autoconf@gnu.org." >&5
1734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1735 whose name does not start with the host triplet. If you think this
1736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1737 ac_tool_warned=yes ;;
1745 if test -z "$CC"; then
1746 if test -n "$ac_tool_prefix"; then
1747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1748 set dummy ${ac_tool_prefix}cc; ac_word=$2
1749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1751 if test "${ac_cv_prog_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 if test -n "$CC"; then
1755 ac_cv_prog_CC="$CC" # Let the user override the test.
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1764 ac_cv_prog_CC="${ac_tool_prefix}cc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 if test -n "$CC"; then
1776 { echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6; }
1779 { echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6; }
1786 if test -z "$CC"; then
1787 # Extract the first word of "cc", so it can be a program name with args.
1788 set dummy cc; ac_word=$2
1789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1791 if test "${ac_cv_prog_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1805 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1806 ac_prog_rejected=yes
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 if test $ac_prog_rejected = yes; then
1818 # We found a bogon in the path, so make sure we never use it.
1819 set dummy $ac_cv_prog_CC
1821 if test $# != 0; then
1822 # We chose a different compiler from the bogus one.
1823 # However, it has the same basename, so the bogon will be chosen
1824 # first if we set CC to just the basename; use the full file name.
1826 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1832 if test -n "$CC"; then
1833 { echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6; }
1836 { echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6; }
1842 if test -z "$CC"; then
1843 if test -n "$ac_tool_prefix"; then
1844 for ac_prog in cl.exe
1846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 if test -n "$CC"; then
1875 { echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6; }
1878 { echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6; }
1883 test -n "$CC" && break
1886 if test -z "$CC"; then
1888 for ac_prog in cl.exe
1890 # Extract the first word of "$ac_prog", so it can be a program name with args.
1891 set dummy $ac_prog; ac_word=$2
1892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$ac_ct_CC"; then
1898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1907 ac_cv_prog_ac_ct_CC="$ac_prog"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1918 if test -n "$ac_ct_CC"; then
1919 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1920 echo "${ECHO_T}$ac_ct_CC" >&6; }
1922 { echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6; }
1927 test -n "$ac_ct_CC" && break
1930 if test "x$ac_ct_CC" = x; then
1933 case $cross_compiling:$ac_tool_warned in
1935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1936 whose name does not start with the host triplet. If you think this
1937 configuration is useful to you, please write to autoconf@gnu.org." >&5
1938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1939 whose name does not start with the host triplet. If you think this
1940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1941 ac_tool_warned=yes ;;
1950 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: no acceptable C compiler found in \$PATH
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1956 # Provide some information about the compiler.
1957 echo "$as_me:$LINENO: checking for C compiler version" >&5
1958 ac_compiler=`set X $ac_compile; echo $2`
1959 { (ac_try="$ac_compiler --version >&5"
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1965 (eval "$ac_compiler --version >&5") 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1969 { (ac_try="$ac_compiler -v >&5"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1975 (eval "$ac_compiler -v >&5") 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979 { (ac_try="$ac_compiler -V >&5"
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1985 (eval "$ac_compiler -V >&5") 2>&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1990 cat >conftest.$ac_ext <<_ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
2005 ac_clean_files_save=$ac_clean_files
2006 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2007 # Try to create an executable without -o first, disregard a.out.
2008 # It will help us diagnose broken compilers, and finding out an intuition
2010 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2011 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2012 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2014 # List of possible output files, starting from the most likely.
2015 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2016 # only as a last resort. b.out is created by i960 compilers.
2017 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2019 # The IRIX 6 linker writes into existing files which may not be
2020 # executable, retaining their permissions. Remove them first so a
2021 # subsequent execution test works.
2023 for ac_file in $ac_files
2026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2027 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2032 if { (ac_try="$ac_link_default"
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2038 (eval "$ac_link_default") 2>&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2043 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2044 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2045 # so that the user can short-circuit this test for compilers unknown to
2047 for ac_file in $ac_files ''
2049 test -f "$ac_file" || continue
2051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2054 # We found the default executable, but exeext='' is most
2058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2062 # We set ac_cv_exeext here because the later test for it is not
2063 # safe: cross compilers may not add the suffix if given an `-o'
2064 # argument, so we may need to know it at that point already.
2065 # Even if this section looks crufty: it has the advantage of
2072 test "$ac_cv_exeext" = no && ac_cv_exeext=
2078 { echo "$as_me:$LINENO: result: $ac_file" >&5
2079 echo "${ECHO_T}$ac_file" >&6; }
2080 if test -z "$ac_file"; then
2081 echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: C compiler cannot create executables
2087 See \`config.log' for more details." >&2;}
2088 { (exit 77); exit 77; }; }
2091 ac_exeext=$ac_cv_exeext
2093 # Check that the compiler produces executables we can run. If not, either
2094 # the compiler is broken, or we cross compile.
2095 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2096 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2097 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2098 # If not cross compiling, check that we can run a simple program.
2099 if test "$cross_compiling" != yes; then
2100 if { ac_try='./$ac_file'
2101 { (case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_try") 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 if test "$cross_compiling" = maybe; then
2115 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2116 If you meant to cross compile, use \`--host'.
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot run C compiled programs.
2119 If you meant to cross compile, use \`--host'.
2120 See \`config.log' for more details." >&2;}
2121 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: result: yes" >&5
2126 echo "${ECHO_T}yes" >&6; }
2128 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2129 ac_clean_files=$ac_clean_files_save
2130 # Check that the compiler produces executables we can run. If not, either
2131 # the compiler is broken, or we cross compile.
2132 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2133 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2134 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2135 echo "${ECHO_T}$cross_compiling" >&6; }
2137 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2138 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2139 if { (ac_try="$ac_link"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_link") 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2153 for ac_file in conftest.exe conftest conftest.*; do
2154 test -f "$ac_file" || continue
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2166 See \`config.log' for more details." >&2;}
2167 { (exit 1); exit 1; }; }
2170 rm -f conftest$ac_cv_exeext
2171 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2172 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2174 rm -f conftest.$ac_ext
2175 EXEEXT=$ac_cv_exeext
2177 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2178 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2179 if test "${ac_cv_objext+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 cat >conftest.$ac_ext <<_ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 rm -f conftest.o conftest.obj
2198 if { (ac_try="$ac_compile"
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204 (eval "$ac_compile") 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; then
2208 for ac_file in conftest.o conftest.obj conftest.*; do
2209 test -f "$ac_file" || continue;
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2227 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2229 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2230 echo "${ECHO_T}$ac_cv_objext" >&6; }
2231 OBJEXT=$ac_cv_objext
2233 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 cat >conftest.$ac_ext <<_ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2256 rm -f conftest.$ac_objext
2257 if { (ac_try="$ac_compile"
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 (eval "$ac_compile") 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } && {
2270 test -z "$ac_c_werror_flag" ||
2271 test ! -s conftest.err
2272 } && test -s conftest.$ac_objext; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2285 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2286 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2287 GCC=`test $ac_compiler_gnu = yes && echo yes`
2288 ac_test_CFLAGS=${CFLAGS+set}
2289 ac_save_CFLAGS=$CFLAGS
2290 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2291 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2292 if test "${ac_cv_prog_cc_g+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 ac_save_c_werror_flag=$ac_c_werror_flag
2296 ac_c_werror_flag=yes
2299 cat >conftest.$ac_ext <<_ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2314 rm -f conftest.$ac_objext
2315 if { (ac_try="$ac_compile"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compile") 2>conftest.er1
2323 grep -v '^ *+' conftest.er1 >conftest.err
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } && {
2328 test -z "$ac_c_werror_flag" ||
2329 test ! -s conftest.err
2330 } && test -s conftest.$ac_objext; then
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2337 cat >conftest.$ac_ext <<_ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2352 rm -f conftest.$ac_objext
2353 if { (ac_try="$ac_compile"
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compile") 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } && {
2366 test -z "$ac_c_werror_flag" ||
2367 test ! -s conftest.err
2368 } && test -s conftest.$ac_objext; then
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 ac_c_werror_flag=$ac_save_c_werror_flag
2376 cat >conftest.$ac_ext <<_ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2391 rm -f conftest.$ac_objext
2392 if { (ac_try="$ac_compile"
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_compile") 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } && {
2405 test -z "$ac_c_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest.$ac_objext; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 ac_c_werror_flag=$ac_save_c_werror_flag
2425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2426 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2427 if test "$ac_test_CFLAGS" = set; then
2428 CFLAGS=$ac_save_CFLAGS
2429 elif test $ac_cv_prog_cc_g = yes; then
2430 if test "$GCC" = yes; then
2436 if test "$GCC" = yes; then
2442 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2443 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_cc_c89+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 ac_cv_prog_cc_c89=no
2449 cat >conftest.$ac_ext <<_ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2457 #include <sys/types.h>
2458 #include <sys/stat.h>
2459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2460 struct buf { int x; };
2461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2462 static char *e (p, i)
2468 static char *f (char * (*g) (char **, int), char **p, ...)
2473 s = g (p, va_arg (v,int));
2478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2479 function prototypes and stuff, but not '\xHH' hex character constants.
2480 These don't provoke an error unfortunately, instead are silently treated
2481 as 'x'. The following induces an error, until -std is added to get
2482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2483 array size at least. It's necessary to write '\x00'==0 to get something
2484 that's true only with -std. */
2485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2488 inside strings and character constants. */
2490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2492 int test (int i, double x);
2493 struct s1 {int (*f) (int a);};
2494 struct s2 {int (*f) (double a);};
2495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2506 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2509 CC="$ac_save_CC $ac_arg"
2510 rm -f conftest.$ac_objext
2511 if { (ac_try="$ac_compile"
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_compile") 2>conftest.er1
2519 grep -v '^ *+' conftest.er1 >conftest.err
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } && {
2524 test -z "$ac_c_werror_flag" ||
2525 test ! -s conftest.err
2526 } && test -s conftest.$ac_objext; then
2527 ac_cv_prog_cc_c89=$ac_arg
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f core conftest.err conftest.$ac_objext
2536 test "x$ac_cv_prog_cc_c89" != "xno" && break
2538 rm -f conftest.$ac_ext
2543 case "x$ac_cv_prog_cc_c89" in
2545 { echo "$as_me:$LINENO: result: none needed" >&5
2546 echo "${ECHO_T}none needed" >&6; } ;;
2548 { echo "$as_me:$LINENO: result: unsupported" >&5
2549 echo "${ECHO_T}unsupported" >&6; } ;;
2551 CC="$CC $ac_cv_prog_cc_c89"
2552 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2553 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2570 # On Suns, sometimes $CPP names a directory.
2571 if test -n "$CPP" && test -d "$CPP"; then
2574 if test -z "$CPP"; then
2575 if test "${ac_cv_prog_CPP+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 # Double quotes because CPP needs to be expanded
2579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2582 for ac_c_preproc_warn_flag in '' yes
2584 # Use a header file that comes with gcc, so configuring glibc
2585 # with a fresh cross-compiler works.
2586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2587 # <limits.h> exists even on freestanding compilers.
2588 # On the NeXT, cc -E runs the code through the compiler's parser,
2589 # not just through cpp. "Syntax error" is here to catch this case.
2590 cat >conftest.$ac_ext <<_ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2597 # include <limits.h>
2599 # include <assert.h>
2603 if { (ac_try="$ac_cpp conftest.$ac_ext"
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } >/dev/null && {
2616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2617 test ! -s conftest.err
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2624 # Broken: fails on valid input.
2628 rm -f conftest.err conftest.$ac_ext
2630 # OK, works on sane cases. Now check whether nonexistent headers
2631 # can be detected and how.
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638 #include <ac_nonexistent.h>
2640 if { (ac_try="$ac_cpp conftest.$ac_ext"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } >/dev/null && {
2653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2656 # Broken: success on invalid input.
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2662 # Passes both tests.
2667 rm -f conftest.err conftest.$ac_ext
2670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2671 rm -f conftest.err conftest.$ac_ext
2672 if $ac_preproc_ok; then
2684 { echo "$as_me:$LINENO: result: $CPP" >&5
2685 echo "${ECHO_T}$CPP" >&6; }
2687 for ac_c_preproc_warn_flag in '' yes
2689 # Use a header file that comes with gcc, so configuring glibc
2690 # with a fresh cross-compiler works.
2691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2692 # <limits.h> exists even on freestanding compilers.
2693 # On the NeXT, cc -E runs the code through the compiler's parser,
2694 # not just through cpp. "Syntax error" is here to catch this case.
2695 cat >conftest.$ac_ext <<_ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2702 # include <limits.h>
2704 # include <assert.h>
2708 if { (ac_try="$ac_cpp conftest.$ac_ext"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } >/dev/null && {
2721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2722 test ! -s conftest.err
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 # Broken: fails on valid input.
2733 rm -f conftest.err conftest.$ac_ext
2735 # OK, works on sane cases. Now check whether nonexistent headers
2736 # can be detected and how.
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2743 #include <ac_nonexistent.h>
2745 if { (ac_try="$ac_cpp conftest.$ac_ext"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } >/dev/null && {
2758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2761 # Broken: success on invalid input.
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 # Passes both tests.
2772 rm -f conftest.err conftest.$ac_ext
2775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2776 rm -f conftest.err conftest.$ac_ext
2777 if $ac_preproc_ok; then
2780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2783 See \`config.log' for more details." >&2;}
2784 { (exit 1); exit 1; }; }
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795 # Extract the first word of "perl", so it can be a program name with args.
2796 set dummy perl; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_PERL+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$PERL"; then
2803 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_PERL="yes"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no"
2823 PERL=$ac_cv_prog_PERL
2824 if test -n "$PERL"; then
2825 { echo "$as_me:$LINENO: result: $PERL" >&5
2826 echo "${ECHO_T}$PERL" >&6; }
2828 { echo "$as_me:$LINENO: result: no" >&5
2829 echo "${ECHO_T}no" >&6; }
2833 if test "$PERL" = "no"; then
2837 CFLAGS="$CFLAGS `perl -MExtUtils::Embed -e ccopts`"
2843 ac_safe=`echo "EXTERN.h" | sed 'y%./+-%__pm%'`
2844 { echo "$as_me:$LINENO: checking for EXTERN.h" >&5
2845 echo $ECHO_N "checking for EXTERN.h... $ECHO_C" >&6; }
2847 old_CFLAGS="$CFLAGS"
2851 if test "x$smart_try_dir" != "x"; then
2852 for try in $smart_try_dir; do
2853 CFLAGS="$old_CFLAGS -I$try"
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2870 rm -f conftest.$ac_objext
2871 if { (ac_try="$ac_compile"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compile") 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } && {
2884 test -z "$ac_c_werror_flag" ||
2885 test ! -s conftest.err
2886 } && test -s conftest.$ac_objext; then
2887 smart_include="-I$try"
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 if test "x$smart_include" != "x"; then
2900 CFLAGS="$old_CFLAGS"
2903 if test "x$smart_include" = "x"; then
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compile") 2>conftest.er1
2929 grep -v '^ *+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && {
2934 test -z "$ac_c_werror_flag" ||
2935 test ! -s conftest.err
2936 } && test -s conftest.$ac_objext; then
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 if test "x$smart_include" = "x"; then
2951 if test "x$LOCATE" != "x"; then
2955 for x in `${LOCATE} $file 2>/dev/null`; do
2956 base=`echo $x | sed "s%/${file}%%"`
2957 if test "x$x" = "x$base"; then
2961 dir=`${DIRNAME} $x 2>/dev/null`
2962 exclude=`echo ${dir} | ${GREP} /home`
2963 if test "x$exclude" != "x"; then
2967 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2968 if test "x$already" = "x"; then
2974 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2977 for try in $smart_include_dir /usr/local/include /opt/include; do
2978 CFLAGS="$old_CFLAGS -I$try"
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } && {
3009 test -z "$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 } && test -s conftest.$ac_objext; then
3012 smart_include="-I$try"
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 if test "x$smart_include" != "x"; then
3025 CFLAGS="$old_CFLAGS"
3028 if test "x$smart_include" != "x"; then
3029 { echo "$as_me:$LINENO: result: yes" >&5
3030 echo "${ECHO_T}yes" >&6; }
3031 eval "ac_cv_header_$ac_safe=yes"
3032 CFLAGS="$old_CFLAGS $smart_include"
3033 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3035 { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3039 if test "x$ac_cv_header_EXTERN_h" = "xyes"; then
3040 perl_cflags='`perl -MExtUtils::Embed -e ccopts`'
3042 fail="$fail EXTERN.h"
3048 ac_safe=`echo "perl.h" | sed 'y%./+-%__pm%'`
3049 { echo "$as_me:$LINENO: checking for perl.h" >&5
3050 echo $ECHO_N "checking for perl.h... $ECHO_C" >&6; }
3052 old_CFLAGS="$CFLAGS"
3056 if test "x$smart_try_dir" != "x"; then
3057 for try in $smart_try_dir; do
3058 CFLAGS="$old_CFLAGS -I$try"
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
3092 smart_include="-I$try"
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101 if test "x$smart_include" != "x"; then
3105 CFLAGS="$old_CFLAGS"
3108 if test "x$smart_include" = "x"; then
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 if test "x$smart_include" = "x"; then
3156 if test "x$LOCATE" != "x"; then
3160 for x in `${LOCATE} $file 2>/dev/null`; do
3161 base=`echo $x | sed "s%/${file}%%"`
3162 if test "x$x" = "x$base"; then
3166 dir=`${DIRNAME} $x 2>/dev/null`
3167 exclude=`echo ${dir} | ${GREP} /home`
3168 if test "x$exclude" != "x"; then
3172 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3173 if test "x$already" = "x"; then
3179 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3182 for try in $smart_include_dir /usr/local/include /opt/include; do
3183 CFLAGS="$old_CFLAGS -I$try"
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } && {
3214 test -z "$ac_c_werror_flag" ||
3215 test ! -s conftest.err
3216 } && test -s conftest.$ac_objext; then
3217 smart_include="-I$try"
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 if test "x$smart_include" != "x"; then
3230 CFLAGS="$old_CFLAGS"
3233 if test "x$smart_include" != "x"; then
3234 { echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6; }
3236 eval "ac_cv_header_$ac_safe=yes"
3237 CFLAGS="$old_CFLAGS $smart_include"
3238 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3240 { echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6; }
3244 if test "x$ac_cv_header_perl_h" = "xyes"; then
3245 perl_cflags='`perl -MExtUtils::Embed -e ccopts`'
3252 LIBS="$old_LIBS `perl -MExtUtils::Embed -e ldopts`"
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 extern char boot_DynaLoader();
3268 rm -f conftest.$ac_objext conftest$ac_exeext
3269 if { (ac_try="$ac_link"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_link") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest$ac_exeext &&
3285 $as_test_x conftest$ac_exeext; then
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3295 conftest$ac_exeext conftest.$ac_ext
3297 if test "x$BROKEN" = "x"; then
3298 perl_ldflags='`perl -MExtUtils::Embed -e ldopts`'
3300 fail="$fail libperl.so"
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 extern char Perl_hv_store();
3319 rm -f conftest.$ac_objext conftest$ac_exeext
3320 if { (ac_try="$ac_link"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_link") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest$ac_exeext &&
3336 $as_test_x conftest$ac_exeext; then
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3346 conftest$ac_exeext conftest.$ac_ext
3348 if test "x$BROKEN" != "x"; then
3349 fail="$fail libperl.so"
3359 echo \*\*\* module rlm_perl is disabled. # keep this! Don't change!
3362 if test x"$fail" != x""; then
3363 if test x"${enable_strict_dependencies}" = x"yes"; then
3364 { { echo "$as_me:$LINENO: error: set --without-rlm_perl to disable it explicitly." >&5
3365 echo "$as_me: error: set --without-rlm_perl to disable it explicitly." >&2;}
3366 { (exit 1); exit 1; }; }
3368 { echo "$as_me:$LINENO: WARNING: silently not building rlm_perl." >&5
3369 echo "$as_me: WARNING: silently not building rlm_perl." >&2;}
3370 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_perl requires: $fail." >&5
3371 echo "$as_me: WARNING: FAILURE: rlm_perl requires: $fail." >&2;};
3382 ac_config_headers="$ac_config_headers config.h"
3387 unset ac_cv_env_LIBS_set
3388 unset ac_cv_env_LIBS_value
3390 ac_config_files="$ac_config_files Makefile"
3392 cat >confcache <<\_ACEOF
3393 # This file is a shell script that caches the results of configure
3394 # tests run on this system so they can be shared between configure
3395 # scripts and configure runs, see configure's option --config-cache.
3396 # It is not useful on other systems. If it contains results you don't
3397 # want to keep, you may remove or edit it.
3399 # config.status only pays attention to the cache file if you give it
3400 # the --recheck option to rerun configure.
3402 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3408 # The following way of writing the cache mishandles newlines in values,
3409 # but we know of no workaround that is simple, portable, and efficient.
3410 # So, we kill variables containing newlines.
3411 # Ultrix sh set writes to stderr and can't be redirected directly,
3412 # and sets the high bit in the cache file unless we assign to the vars.
3414 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3415 eval ac_val=\$$ac_var
3419 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3420 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3423 _ | IFS | as_nl) ;; #(
3424 *) $as_unset $ac_var ;;
3430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3431 *${as_nl}ac_space=\ *)
3432 # `set' does not quote correctly, so add quotes (double-quote
3433 # substitution turns \\\\ into \\, and sed turns \\ into \).
3436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3439 # `set' quotes correctly as required by POSIX, so do not add quotes.
3440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3453 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3454 if test -w "$cache_file"; then
3455 test "x$cache_file" != "x/dev/null" &&
3456 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3457 echo "$as_me: updating cache $cache_file" >&6;}
3458 cat confcache >$cache_file
3460 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3461 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3467 # Let make expand exec_prefix.
3468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3470 DEFS=-DHAVE_CONFIG_H
3474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3475 # 1. Remove the extension, and $U if already installed.
3476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3477 ac_i=`echo "$ac_i" | sed "$ac_script"`
3478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3479 # will be set to the directory where LIBOBJS objects are built.
3480 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3481 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3485 LTLIBOBJS=$ac_ltlibobjs
3489 : ${CONFIG_STATUS=./config.status}
3490 ac_clean_files_save=$ac_clean_files
3491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3494 cat >$CONFIG_STATUS <<_ACEOF
3496 # Generated by $as_me.
3497 # Run this file to recreate the current configuration.
3498 # Compiler output produced by configure, useful for debugging
3499 # configure, is in config.log if it exists.
3504 SHELL=\${CONFIG_SHELL-$SHELL}
3507 cat >>$CONFIG_STATUS <<\_ACEOF
3508 ## --------------------- ##
3509 ## M4sh Initialization. ##
3510 ## --------------------- ##
3512 # Be more Bourne compatible
3513 DUALCASE=1; export DUALCASE # for MKS sh
3514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3518 # is contrary to our usage. Disable this feature.
3519 alias -g '${1+"$@"}'='"$@"'
3520 setopt NO_GLOB_SUBST
3522 case `(set -o) 2>/dev/null` in
3523 *posix*) set -o posix ;;
3532 # Avoid depending upon Character Ranges.
3533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3536 as_cr_digits='0123456789'
3537 as_cr_alnum=$as_cr_Letters$as_cr_digits
3539 # The user is always right.
3540 if test "${PATH_SEPARATOR+set}" != set; then
3541 echo "#! /bin/sh" >conf$$.sh
3542 echo "exit 0" >>conf$$.sh
3544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3552 # Support unset when possible.
3553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3561 # We need space, tab and new line, in precisely that order. Quoting is
3562 # there to prevent editors from complaining about space-tab.
3563 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3564 # splitting by setting IFS to empty value.)
3569 # Find who we are. Look in the path if we contain no directory separator.
3571 *[\\/]* ) as_myself=$0 ;;
3572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir=.
3577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3583 # We did not find ourselves, most probably we were run as `sh COMMAND'
3584 # in which case we are not to be found in the path.
3585 if test "x$as_myself" = x; then
3588 if test ! -f "$as_myself"; then
3589 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3590 { (exit 1); exit 1; }
3593 # Work around bugs in pre-3.0 UWIN ksh.
3594 for as_var in ENV MAIL MAILPATH
3595 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3603 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3604 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3605 LC_TELEPHONE LC_TIME
3607 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3608 eval $as_var=C; export $as_var
3610 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3614 # Required to use basename.
3615 if expr a : '\(a\)' >/dev/null 2>&1 &&
3616 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3622 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3623 as_basename=basename
3629 # Name of the executable.
3630 as_me=`$as_basename -- "$0" ||
3631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3632 X"$0" : 'X\(//\)$' \| \
3633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3635 sed '/^.*\/\([^/][^/]*\)\/*$/{
3656 test "x$as_lineno_1" != "x$as_lineno_2" &&
3657 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3659 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3660 # uniformly replaced by the line number. The first 'sed' inserts a
3661 # line-number line after each line using $LINENO; the second 'sed'
3662 # does the real work. The second script uses 'N' to pair each
3663 # line-number line with the line containing $LINENO, and appends
3664 # trailing '-' during substitution so that $LINENO is not a special
3666 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3667 # scripts with optimization help from Paolo Bonzini. Blame Lee
3668 # E. McMahon (1931-1989) for sed's syntax. :-)
3680 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3684 chmod +x "$as_me.lineno" ||
3685 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3686 { (exit 1); exit 1; }; }
3688 # Don't try to exec as it changes $[0], causing all sort of problems
3689 # (the dirname of $[0] is not the place where we might find the
3690 # original and so on. Autoconf is especially sensitive to this).
3692 # Exit status is that of the last command.
3697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3703 ECHO_C= ECHO_N= ECHO_T=
3706 case `echo 'x\c'` in
3707 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3714 if expr a : '\(a\)' >/dev/null 2>&1 &&
3715 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3721 rm -f conf$$ conf$$.exe conf$$.file
3722 if test -d conf$$.dir; then
3723 rm -f conf$$.dir/conf$$.file
3729 if ln -s conf$$.file conf$$ 2>/dev/null; then
3731 # ... but there are two gotchas:
3732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3734 # In both cases, we have to default to `cp -p'.
3735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3737 elif ln conf$$.file conf$$ 2>/dev/null; then
3742 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3743 rmdir conf$$.dir 2>/dev/null
3745 if mkdir -p . 2>/dev/null; then
3748 test -d ./-p && rmdir ./-p
3752 if test -x / >/dev/null 2>&1; then
3755 if ls -dL / >/dev/null 2>&1; then
3762 if test -d "$1"; then
3768 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3769 ???[sx]*):;;*)false;;esac;fi
3773 as_executable_p=$as_test_x
3775 # Sed expression to map a string onto a valid CPP name.
3776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3778 # Sed expression to map a string onto a valid variable name.
3779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3784 # Save the log message, to keep $[0] and so on meaningful, and to
3785 # report actual input values of CONFIG_FILES etc. instead of their
3786 # values after options handling.
3788 This file was extended by $as_me, which was
3789 generated by GNU Autoconf 2.61. Invocation command line was
3791 CONFIG_FILES = $CONFIG_FILES
3792 CONFIG_HEADERS = $CONFIG_HEADERS
3793 CONFIG_LINKS = $CONFIG_LINKS
3794 CONFIG_COMMANDS = $CONFIG_COMMANDS
3797 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3802 cat >>$CONFIG_STATUS <<_ACEOF
3803 # Files that config.status was made for.
3804 config_files="$ac_config_files"
3805 config_headers="$ac_config_headers"
3809 cat >>$CONFIG_STATUS <<\_ACEOF
3811 \`$as_me' instantiates files from templates according to the
3812 current configuration.
3814 Usage: $0 [OPTIONS] [FILE]...
3816 -h, --help print this help, then exit
3817 -V, --version print version number and configuration settings, then exit
3818 -q, --quiet do not print progress messages
3819 -d, --debug don't remove temporary files
3820 --recheck update $as_me by reconfiguring in the same conditions
3821 --file=FILE[:TEMPLATE]
3822 instantiate the configuration file FILE
3823 --header=FILE[:TEMPLATE]
3824 instantiate the configuration header FILE
3826 Configuration files:
3829 Configuration headers:
3832 Report bugs to <bug-autoconf@gnu.org>."
3835 cat >>$CONFIG_STATUS <<_ACEOF
3838 configured by $0, generated by GNU Autoconf 2.61,
3839 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3841 Copyright (C) 2006 Free Software Foundation, Inc.
3842 This config.status script is free software; the Free Software Foundation
3843 gives unlimited permission to copy, distribute and modify it."
3849 cat >>$CONFIG_STATUS <<\_ACEOF
3850 # If no file are specified by the user, then we need to provide default
3851 # value. By we need to know if files were specified by the user.
3857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3858 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3869 # Handling of the options.
3870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3873 echo "$ac_cs_version"; exit ;;
3874 --debug | --debu | --deb | --de | --d | -d )
3876 --file | --fil | --fi | --f )
3878 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3879 ac_need_defaults=false;;
3880 --header | --heade | --head | --hea )
3882 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3883 ac_need_defaults=false;;
3885 # Conflict between --help and --header
3886 { echo "$as_me: error: ambiguous option: $1
3887 Try \`$0 --help' for more information." >&2
3888 { (exit 1); exit 1; }; };;
3889 --help | --hel | -h )
3890 echo "$ac_cs_usage"; exit ;;
3891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3892 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3896 -*) { echo "$as_me: error: unrecognized option: $1
3897 Try \`$0 --help' for more information." >&2
3898 { (exit 1); exit 1; }; } ;;
3900 *) ac_config_targets="$ac_config_targets $1"
3901 ac_need_defaults=false ;;
3907 ac_configure_extra_args=
3909 if $ac_cs_silent; then
3911 ac_configure_extra_args="$ac_configure_extra_args --silent"
3915 cat >>$CONFIG_STATUS <<_ACEOF
3916 if \$ac_cs_recheck; then
3917 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3920 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3924 cat >>$CONFIG_STATUS <<\_ACEOF
3928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3929 ## Running $as_me. ##
3935 cat >>$CONFIG_STATUS <<_ACEOF
3938 cat >>$CONFIG_STATUS <<\_ACEOF
3940 # Handling of arguments.
3941 for ac_config_target in $ac_config_targets
3943 case $ac_config_target in
3944 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3945 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3947 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3948 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3949 { (exit 1); exit 1; }; };;
3954 # If the user did not use the arguments to specify the items to instantiate,
3955 # then the envvar interface is used. Set only those that are not.
3956 # We use the long form for the default assignment because of an extremely
3957 # bizarre bug on SunOS 4.1.3.
3958 if $ac_need_defaults; then
3959 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3960 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3963 # Have a temporary directory for convenience. Make it in the build tree
3964 # simply because there is no reason against having it here, and in addition,
3965 # creating and moving files from /tmp can sometimes cause problems.
3966 # Hook for its removal unless debugging.
3967 # Note that there is a small window in which the directory will not be cleaned:
3968 # after its creation but before its name has been assigned to `$tmp'.
3972 trap 'exit_status=$?
3973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3975 trap '{ (exit 1); exit 1; }' 1 2 13 15
3977 # Create a (secure) tmp directory for tmp files.
3980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3981 test -n "$tmp" && test -d "$tmp"
3984 tmp=./conf$$-$RANDOM
3985 (umask 077 && mkdir "$tmp")
3988 echo "$me: cannot create a temporary directory in ." >&2
3989 { (exit 1); exit 1; }
3993 # Set up the sed scripts for CONFIG_FILES section.
3996 # No need to generate the scripts if there are no CONFIG_FILES.
3997 # This happens for instance when ./config.status config.h
3998 if test -n "$CONFIG_FILES"; then
4005 for ac_last_try in false false false false false :; do
4006 cat >conf$$subs.sed <<_ACEOF
4007 SHELL!$SHELL$ac_delim
4008 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4009 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4010 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4011 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4012 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4013 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4014 exec_prefix!$exec_prefix$ac_delim
4015 prefix!$prefix$ac_delim
4016 program_transform_name!$program_transform_name$ac_delim
4017 bindir!$bindir$ac_delim
4018 sbindir!$sbindir$ac_delim
4019 libexecdir!$libexecdir$ac_delim
4020 datarootdir!$datarootdir$ac_delim
4021 datadir!$datadir$ac_delim
4022 sysconfdir!$sysconfdir$ac_delim
4023 sharedstatedir!$sharedstatedir$ac_delim
4024 localstatedir!$localstatedir$ac_delim
4025 includedir!$includedir$ac_delim
4026 oldincludedir!$oldincludedir$ac_delim
4027 docdir!$docdir$ac_delim
4028 infodir!$infodir$ac_delim
4029 htmldir!$htmldir$ac_delim
4030 dvidir!$dvidir$ac_delim
4031 pdfdir!$pdfdir$ac_delim
4032 psdir!$psdir$ac_delim
4033 libdir!$libdir$ac_delim
4034 localedir!$localedir$ac_delim
4035 mandir!$mandir$ac_delim
4037 ECHO_C!$ECHO_C$ac_delim
4038 ECHO_N!$ECHO_N$ac_delim
4039 ECHO_T!$ECHO_T$ac_delim
4041 build_alias!$build_alias$ac_delim
4042 host_alias!$host_alias$ac_delim
4043 target_alias!$target_alias$ac_delim
4045 CFLAGS!$CFLAGS$ac_delim
4046 LDFLAGS!$LDFLAGS$ac_delim
4047 CPPFLAGS!$CPPFLAGS$ac_delim
4048 ac_ct_CC!$ac_ct_CC$ac_delim
4049 EXEEXT!$EXEEXT$ac_delim
4050 OBJEXT!$OBJEXT$ac_delim
4053 perl_cflags!$perl_cflags$ac_delim
4054 perl_ldflags!$perl_ldflags$ac_delim
4055 targetname!$targetname$ac_delim
4056 LIBOBJS!$LIBOBJS$ac_delim
4057 LTLIBOBJS!$LTLIBOBJS$ac_delim
4060 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
4062 elif $ac_last_try; then
4063 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4064 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4065 { (exit 1); exit 1; }; }
4067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4071 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4072 if test -n "$ac_eof"; then
4073 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4074 ac_eof=`expr $ac_eof + 1`
4077 cat >>$CONFIG_STATUS <<_ACEOF
4078 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4082 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4083 s/^/s,@/; s/!/@,|#_!!_#|/
4086 s/'"$ac_delim"'$/,g/; t
4088 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4089 ' >>$CONFIG_STATUS <conf$$subs.sed
4090 rm -f conf$$subs.sed
4091 cat >>$CONFIG_STATUS <<_ACEOF
4098 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4099 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4100 # trailing colons and then remove the whole line if VPATH becomes empty
4101 # (actually we leave an empty line to preserve line numbers).
4102 if test "x$srcdir" = x.; then
4103 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4107 s/^\([^=]*=[ ]*\):*/\1/
4113 cat >>$CONFIG_STATUS <<\_ACEOF
4114 fi # test -n "$CONFIG_FILES"
4117 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
4120 :[FHLC]) ac_mode=$ac_tag; continue;;
4122 case $ac_mode$ac_tag in
4124 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4125 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4126 { (exit 1); exit 1; }; };;
4127 :[FH]-) ac_tag=-:-;;
4128 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4145 -) ac_f="$tmp/stdin";;
4146 *) # Look for the file first in the build tree, then in the source tree
4147 # (if the path is not absolute). The absolute path cannot be DOS-style,
4148 # because $ac_f cannot contain `:'.
4152 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4154 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4155 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4156 { (exit 1); exit 1; }; };;
4158 ac_file_inputs="$ac_file_inputs $ac_f"
4161 # Let's still pretend it is `configure' which instantiates (i.e., don't
4162 # use $as_me), people would be surprised to read:
4163 # /* config.h. Generated by config.status. */
4164 configure_input="Generated from "`IFS=:
4165 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4166 if test x"$ac_file" != x-; then
4167 configure_input="$ac_file. $configure_input"
4168 { echo "$as_me:$LINENO: creating $ac_file" >&5
4169 echo "$as_me: creating $ac_file" >&6;}
4173 *:-:* | *:-) cat >"$tmp/stdin";;
4178 ac_dir=`$as_dirname -- "$ac_file" ||
4179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4180 X"$ac_file" : 'X\(//\)[^/]' \| \
4181 X"$ac_file" : 'X\(//\)$' \| \
4182 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4203 -*) as_dir=./$as_dir;;
4205 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4209 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4210 *) as_qdir=$as_dir;;
4212 as_dirs="'$as_qdir' $as_dirs"
4213 as_dir=`$as_dirname -- "$as_dir" ||
4214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4215 X"$as_dir" : 'X\(//\)[^/]' \| \
4216 X"$as_dir" : 'X\(//\)$' \| \
4217 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4236 test -d "$as_dir" && break
4238 test -z "$as_dirs" || eval "mkdir $as_dirs"
4239 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4240 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4241 { (exit 1); exit 1; }; }; }
4245 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4247 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4248 # A ".." for each directory in $ac_dir_suffix.
4249 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4250 case $ac_top_builddir_sub in
4251 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4252 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4255 ac_abs_top_builddir=$ac_pwd
4256 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4257 # for backward compatibility:
4258 ac_top_builddir=$ac_top_build_prefix
4261 .) # We are building in place.
4263 ac_top_srcdir=$ac_top_builddir_sub
4264 ac_abs_top_srcdir=$ac_pwd ;;
4265 [\\/]* | ?:[\\/]* ) # Absolute name.
4266 ac_srcdir=$srcdir$ac_dir_suffix;
4267 ac_top_srcdir=$srcdir
4268 ac_abs_top_srcdir=$srcdir ;;
4270 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4271 ac_top_srcdir=$ac_top_build_prefix$srcdir
4272 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4274 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4285 cat >>$CONFIG_STATUS <<\_ACEOF
4286 # If the template does not know about datarootdir, expand it.
4287 # FIXME: This hack should be removed a few years after 2.60.
4288 ac_datarootdir_hack=; ac_datarootdir_seen=
4290 case `sed -n '/datarootdir/ {
4299 ' $ac_file_inputs` in
4300 *datarootdir*) ac_datarootdir_seen=yes;;
4301 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4302 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4303 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4305 cat >>$CONFIG_STATUS <<_ACEOF
4306 ac_datarootdir_hack='
4307 s&@datadir@&$datadir&g
4308 s&@docdir@&$docdir&g
4309 s&@infodir@&$infodir&g
4310 s&@localedir@&$localedir&g
4311 s&@mandir@&$mandir&g
4312 s&\\\${datarootdir}&$datarootdir&g' ;;
4316 # Neutralize VPATH when `$srcdir' = `.'.
4317 # Shell code in configure.ac might set extrasub.
4318 # FIXME: do we really want to maintain this feature?
4319 cat >>$CONFIG_STATUS <<_ACEOF
4323 cat >>$CONFIG_STATUS <<\_ACEOF
4325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4326 s&@configure_input@&$configure_input&;t t
4327 s&@top_builddir@&$ac_top_builddir_sub&;t t
4328 s&@srcdir@&$ac_srcdir&;t t
4329 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4330 s&@top_srcdir@&$ac_top_srcdir&;t t
4331 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4332 s&@builddir@&$ac_builddir&;t t
4333 s&@abs_builddir@&$ac_abs_builddir&;t t
4334 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4335 $ac_datarootdir_hack
4336 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4339 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4341 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4342 which seems to be undefined. Please make sure it is defined." >&5
4343 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4344 which seems to be undefined. Please make sure it is defined." >&2;}
4348 -) cat "$tmp/out"; rm -f "$tmp/out";;
4349 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4358 # Transform confdefs.h into a sed script `conftest.defines', that
4359 # substitutes the proper values into config.h.in to produce config.h.
4360 rm -f conftest.defines conftest.tail
4361 # First, append a space to every undef/define line, to ease matching.
4362 echo 's/$/ /' >conftest.defines
4363 # Then, protect against being on the right side of a sed subst, or in
4364 # an unquoted here document, in config.status. If some macros were
4365 # called several times there might be several #defines for the same
4366 # symbol, which is useless. But do not sort them, since the last
4367 # AC_DEFINE must be honored.
4368 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4369 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4370 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4371 # PARAMS is the parameter list in the macro definition--in most cases, it's
4372 # just an empty string.
4373 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
4374 ac_dB='\\)[ (].*,\\1define\\2'
4382 s/^[ ]*#[ ]*define[ ][ ]*//
4387 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4388 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4389 ' >>conftest.defines
4391 # Remove the space that was appended to ease matching.
4392 # Then replace #undef with comments. This is necessary, for
4393 # example, in the case of _POSIX_SOURCE, which is predefined and required
4394 # on some systems where configure will not decide to define it.
4395 # (The regexp can be short, since the line contains either #define or #undef.)
4397 s,^[ #]*u.*,/* & */,' >>conftest.defines
4399 # Break up conftest.defines:
4402 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4403 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4404 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4406 ac_in='$ac_file_inputs'
4407 ac_out='"$tmp/out1"'
4408 ac_nxt='"$tmp/out2"'
4412 # Write a here document:
4413 cat >>$CONFIG_STATUS <<_ACEOF
4414 # First, check the format of the line:
4415 cat >"\$tmp/defines.sed" <<\\CEOF
4416 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
4417 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
4421 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4423 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4424 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4425 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4426 grep . conftest.tail >/dev/null || break
4427 rm -f conftest.defines
4428 mv conftest.tail conftest.defines
4430 rm -f conftest.defines conftest.tail
4432 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4433 cat >>$CONFIG_STATUS <<\_ACEOF
4434 if test x"$ac_file" != x-; then
4435 echo "/* $configure_input */" >"$tmp/config.h"
4436 cat "$ac_result" >>"$tmp/config.h"
4437 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4438 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4439 echo "$as_me: $ac_file is unchanged" >&6;}
4442 mv "$tmp/config.h" $ac_file
4445 echo "/* $configure_input */"
4457 { (exit 0); exit 0; }
4459 chmod +x $CONFIG_STATUS
4460 ac_clean_files=$ac_clean_files_save
4463 # configure is writing to config.log, and then calls config.status.
4464 # config.status does its own redirection, appending to config.log.
4465 # Unfortunately, on DOS this fails, as config.log is still kept open
4466 # by configure, so config.status won't be able to write to it; its
4467 # output is simply discarded. So we exec the FD to /dev/null,
4468 # effectively closing config.log, so it can be properly (re)opened and
4469 # appended to by config.status. When coming back to configure, we
4470 # need to make the FD available again.
4471 if test "$no_create" != yes; then
4473 ac_config_status_args=
4474 test "$silent" = yes &&
4475 ac_config_status_args="$ac_config_status_args --quiet"
4477 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4480 # would make configure fail if this is the last instruction.
4481 $ac_cs_success || { (exit 1); exit 1; }