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_ldap.c"
590 program_transform_name
632 ac_precious_vars='build_alias
642 # Initialize some variables set by options.
644 ac_init_version=false
645 # The variables have the same names as the options, with
646 # dashes changed to underlines.
654 program_transform_name=s,x,x,
662 # Installation directory options.
663 # These are left unexpanded so users can "make install exec_prefix=/foo"
664 # and all the variables that are supposed to be based on exec_prefix
665 # by default will actually change.
666 # Use braces instead of parens because sh, perl, etc. also accept them.
667 # (The list follows the same order as the GNU Coding Standards.)
668 bindir='${exec_prefix}/bin'
669 sbindir='${exec_prefix}/sbin'
670 libexecdir='${exec_prefix}/libexec'
671 datarootdir='${prefix}/share'
672 datadir='${datarootdir}'
673 sysconfdir='${prefix}/etc'
674 sharedstatedir='${prefix}/com'
675 localstatedir='${prefix}/var'
676 includedir='${prefix}/include'
677 oldincludedir='/usr/include'
678 docdir='${datarootdir}/doc/${PACKAGE}'
679 infodir='${datarootdir}/info'
684 libdir='${exec_prefix}/lib'
685 localedir='${datarootdir}/locale'
686 mandir='${datarootdir}/man'
692 # If the previous option needs an argument, assign it.
693 if test -n "$ac_prev"; then
694 eval $ac_prev=\$ac_option
700 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
704 # Accept the important Cygnus configure options, so we can diagnose typos.
706 case $ac_dashdash$ac_option in
710 -bindir | --bindir | --bindi | --bind | --bin | --bi)
712 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
715 -build | --build | --buil | --bui | --bu)
716 ac_prev=build_alias ;;
717 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
718 build_alias=$ac_optarg ;;
720 -cache-file | --cache-file | --cache-fil | --cache-fi \
721 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
722 ac_prev=cache_file ;;
723 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
724 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
725 cache_file=$ac_optarg ;;
728 cache_file=config.cache ;;
730 -datadir | --datadir | --datadi | --datad)
732 -datadir=* | --datadir=* | --datadi=* | --datad=*)
733 datadir=$ac_optarg ;;
735 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
736 | --dataroo | --dataro | --datar)
737 ac_prev=datarootdir ;;
738 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
739 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
740 datarootdir=$ac_optarg ;;
742 -disable-* | --disable-*)
743 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
747 { (exit 1); exit 1; }; }
748 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
749 eval enable_$ac_feature=no ;;
751 -docdir | --docdir | --docdi | --doc | --do)
753 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
756 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
758 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
761 -enable-* | --enable-*)
762 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
763 # Reject names that are not valid shell variable names.
764 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
765 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
766 { (exit 1); exit 1; }; }
767 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
768 eval enable_$ac_feature=\$ac_optarg ;;
770 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
771 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
772 | --exec | --exe | --ex)
773 ac_prev=exec_prefix ;;
774 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
775 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
776 | --exec=* | --exe=* | --ex=*)
777 exec_prefix=$ac_optarg ;;
779 -gas | --gas | --ga | --g)
780 # Obsolete; use --with-gas.
783 -help | --help | --hel | --he | -h)
785 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
786 ac_init_help=recursive ;;
787 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
788 ac_init_help=short ;;
790 -host | --host | --hos | --ho)
791 ac_prev=host_alias ;;
792 -host=* | --host=* | --hos=* | --ho=*)
793 host_alias=$ac_optarg ;;
795 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
797 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
799 htmldir=$ac_optarg ;;
801 -includedir | --includedir | --includedi | --included | --include \
802 | --includ | --inclu | --incl | --inc)
803 ac_prev=includedir ;;
804 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
805 | --includ=* | --inclu=* | --incl=* | --inc=*)
806 includedir=$ac_optarg ;;
808 -infodir | --infodir | --infodi | --infod | --info | --inf)
810 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
811 infodir=$ac_optarg ;;
813 -libdir | --libdir | --libdi | --libd)
815 -libdir=* | --libdir=* | --libdi=* | --libd=*)
818 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
819 | --libexe | --libex | --libe)
820 ac_prev=libexecdir ;;
821 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
822 | --libexe=* | --libex=* | --libe=*)
823 libexecdir=$ac_optarg ;;
825 -localedir | --localedir | --localedi | --localed | --locale)
827 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
828 localedir=$ac_optarg ;;
830 -localstatedir | --localstatedir | --localstatedi | --localstated \
831 | --localstate | --localstat | --localsta | --localst | --locals)
832 ac_prev=localstatedir ;;
833 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
834 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
835 localstatedir=$ac_optarg ;;
837 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
839 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
843 # Obsolete; use --without-fp.
846 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
847 | --no-cr | --no-c | -n)
850 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
851 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
854 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
855 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
856 | --oldin | --oldi | --old | --ol | --o)
857 ac_prev=oldincludedir ;;
858 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
859 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
860 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
861 oldincludedir=$ac_optarg ;;
863 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
865 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
868 -program-prefix | --program-prefix | --program-prefi | --program-pref \
869 | --program-pre | --program-pr | --program-p)
870 ac_prev=program_prefix ;;
871 -program-prefix=* | --program-prefix=* | --program-prefi=* \
872 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
873 program_prefix=$ac_optarg ;;
875 -program-suffix | --program-suffix | --program-suffi | --program-suff \
876 | --program-suf | --program-su | --program-s)
877 ac_prev=program_suffix ;;
878 -program-suffix=* | --program-suffix=* | --program-suffi=* \
879 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
880 program_suffix=$ac_optarg ;;
882 -program-transform-name | --program-transform-name \
883 | --program-transform-nam | --program-transform-na \
884 | --program-transform-n | --program-transform- \
885 | --program-transform | --program-transfor \
886 | --program-transfo | --program-transf \
887 | --program-trans | --program-tran \
888 | --progr-tra | --program-tr | --program-t)
889 ac_prev=program_transform_name ;;
890 -program-transform-name=* | --program-transform-name=* \
891 | --program-transform-nam=* | --program-transform-na=* \
892 | --program-transform-n=* | --program-transform-=* \
893 | --program-transform=* | --program-transfor=* \
894 | --program-transfo=* | --program-transf=* \
895 | --program-trans=* | --program-tran=* \
896 | --progr-tra=* | --program-tr=* | --program-t=*)
897 program_transform_name=$ac_optarg ;;
899 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
901 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
904 -psdir | --psdir | --psdi | --psd | --ps)
906 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
910 | -silent | --silent | --silen | --sile | --sil)
913 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
915 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
917 sbindir=$ac_optarg ;;
919 -sharedstatedir | --sharedstatedir | --sharedstatedi \
920 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
921 | --sharedst | --shareds | --shared | --share | --shar \
923 ac_prev=sharedstatedir ;;
924 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
925 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
926 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
928 sharedstatedir=$ac_optarg ;;
930 -site | --site | --sit)
932 -site=* | --site=* | --sit=*)
935 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
937 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
940 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
941 | --syscon | --sysco | --sysc | --sys | --sy)
942 ac_prev=sysconfdir ;;
943 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
944 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
945 sysconfdir=$ac_optarg ;;
947 -target | --target | --targe | --targ | --tar | --ta | --t)
948 ac_prev=target_alias ;;
949 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
950 target_alias=$ac_optarg ;;
952 -v | -verbose | --verbose | --verbos | --verbo | --verb)
955 -version | --version | --versio | --versi | --vers | -V)
959 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
962 { echo "$as_me: error: invalid package name: $ac_package" >&2
963 { (exit 1); exit 1; }; }
964 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
965 eval with_$ac_package=\$ac_optarg ;;
967 -without-* | --without-*)
968 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
971 { echo "$as_me: error: invalid package name: $ac_package" >&2
972 { (exit 1); exit 1; }; }
973 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
974 eval with_$ac_package=no ;;
977 # Obsolete; use --with-x.
980 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
981 | --x-incl | --x-inc | --x-in | --x-i)
982 ac_prev=x_includes ;;
983 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
984 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
985 x_includes=$ac_optarg ;;
987 -x-libraries | --x-libraries | --x-librarie | --x-librari \
988 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
989 ac_prev=x_libraries ;;
990 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
991 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
992 x_libraries=$ac_optarg ;;
994 -*) { echo "$as_me: error: unrecognized option: $ac_option
995 Try \`$0 --help' for more information." >&2
996 { (exit 1); exit 1; }; }
1000 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1004 { (exit 1); exit 1; }; }
1005 eval $ac_envvar=\$ac_optarg
1006 export $ac_envvar ;;
1009 # FIXME: should be removed in autoconf 3.0.
1010 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1011 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1013 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1019 if test -n "$ac_prev"; then
1020 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1021 { echo "$as_me: error: missing argument to $ac_option" >&2
1022 { (exit 1); exit 1; }; }
1025 # Be sure to have absolute directory names.
1026 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1027 datadir sysconfdir sharedstatedir localstatedir includedir \
1028 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1029 libdir localedir mandir
1031 eval ac_val=\$$ac_var
1033 [\\/$]* | ?:[\\/]* ) continue;;
1034 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1036 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1037 { (exit 1); exit 1; }; }
1040 # There might be people who depend on the old broken behavior: `$host'
1041 # used to hold the argument of --host etc.
1042 # FIXME: To remove some day.
1045 target=$target_alias
1047 # FIXME: To remove some day.
1048 if test "x$host_alias" != x; then
1049 if test "x$build_alias" = x; then
1050 cross_compiling=maybe
1051 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1052 If a cross compiler is detected then cross compile mode will be used." >&2
1053 elif test "x$build_alias" != "x$host_alias"; then
1059 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1061 test "$silent" = yes && exec 6>/dev/null
1064 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1065 ac_ls_di=`ls -di .` &&
1066 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1067 { echo "$as_me: error: Working directory cannot be determined" >&2
1068 { (exit 1); exit 1; }; }
1069 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1070 { echo "$as_me: error: pwd does not report name of working directory" >&2
1071 { (exit 1); exit 1; }; }
1074 # Find the source files, if location was not specified.
1075 if test -z "$srcdir"; then
1076 ac_srcdir_defaulted=yes
1077 # Try the directory containing this script, then the parent directory.
1078 ac_confdir=`$as_dirname -- "$0" ||
1079 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1080 X"$0" : 'X\(//\)[^/]' \| \
1081 X"$0" : 'X\(//\)$' \| \
1082 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1102 if test ! -r "$srcdir/$ac_unique_file"; then
1106 ac_srcdir_defaulted=no
1108 if test ! -r "$srcdir/$ac_unique_file"; then
1109 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1110 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1111 { (exit 1); exit 1; }; }
1113 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1115 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1116 { (exit 1); exit 1; }; }
1118 # When building in place, set srcdir=.
1119 if test "$ac_abs_confdir" = "$ac_pwd"; then
1122 # Remove unnecessary trailing slashes from srcdir.
1123 # Double slashes in file names in object file debugging info
1124 # mess up M-x gdb in Emacs.
1126 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1128 for ac_var in $ac_precious_vars; do
1129 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1130 eval ac_env_${ac_var}_value=\$${ac_var}
1131 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1132 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1136 # Report the --help message.
1138 if test "$ac_init_help" = "long"; then
1139 # Omit some internal or obsolete options to make the list less imposing.
1140 # This message is too long to be a string in the A/UX 3.1 sh.
1142 \`configure' configures this package to adapt to many kinds of systems.
1144 Usage: $0 [OPTION]... [VAR=VALUE]...
1146 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1147 VAR=VALUE. See below for descriptions of some of the useful variables.
1149 Defaults for the options are specified in brackets.
1152 -h, --help display this help and exit
1153 --help=short display options specific to this package
1154 --help=recursive display the short help of all the included packages
1155 -V, --version display version information and exit
1156 -q, --quiet, --silent do not print \`checking...' messages
1157 --cache-file=FILE cache test results in FILE [disabled]
1158 -C, --config-cache alias for \`--cache-file=config.cache'
1159 -n, --no-create do not create output files
1160 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1162 Installation directories:
1163 --prefix=PREFIX install architecture-independent files in PREFIX
1164 [$ac_default_prefix]
1165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1168 By default, \`make install' will install all the files in
1169 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1170 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1171 for instance \`--prefix=\$HOME'.
1173 For better control, use the options below.
1175 Fine tuning of the installation directories:
1176 --bindir=DIR user executables [EPREFIX/bin]
1177 --sbindir=DIR system admin executables [EPREFIX/sbin]
1178 --libexecdir=DIR program executables [EPREFIX/libexec]
1179 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1180 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1181 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1182 --libdir=DIR object code libraries [EPREFIX/lib]
1183 --includedir=DIR C header files [PREFIX/include]
1184 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1185 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1186 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1187 --infodir=DIR info documentation [DATAROOTDIR/info]
1188 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1189 --mandir=DIR man documentation [DATAROOTDIR/man]
1190 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1191 --htmldir=DIR html documentation [DOCDIR]
1192 --dvidir=DIR dvi documentation [DOCDIR]
1193 --pdfdir=DIR pdf documentation [DOCDIR]
1194 --psdir=DIR ps documentation [DOCDIR]
1201 if test -n "$ac_init_help"; then
1206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1208 --enable-shared[=PKGS] build shared libraries [default=yes]
1211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1213 --with-rlm-ldap-lib-dir=DIR directory for LDAP library files
1214 --with-rlm-ldap-include-dir=DIR directory for LDAP include files
1215 --with-threads use threads, if available. (default=yes)
1216 --with-edir enable Novell eDirectory integration. (default=no)
1218 Some influential environment variables:
1219 CC C compiler command
1220 CFLAGS C compiler flags
1221 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1222 nonstandard directory <lib dir>
1223 LIBS libraries to pass to the linker, e.g. -l<library>
1224 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1225 you have headers in a nonstandard directory <include dir>
1227 Use these variables to override the choices made by `configure' or to help
1228 it to find libraries and programs with nonstandard names/locations.
1234 if test "$ac_init_help" = "recursive"; then
1235 # If there are subdirs, report their specific --help.
1236 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1237 test -d "$ac_dir" || continue
1241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1243 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1244 # A ".." for each directory in $ac_dir_suffix.
1245 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1246 case $ac_top_builddir_sub in
1247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1251 ac_abs_top_builddir=$ac_pwd
1252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1253 # for backward compatibility:
1254 ac_top_builddir=$ac_top_build_prefix
1257 .) # We are building in place.
1259 ac_top_srcdir=$ac_top_builddir_sub
1260 ac_abs_top_srcdir=$ac_pwd ;;
1261 [\\/]* | ?:[\\/]* ) # Absolute name.
1262 ac_srcdir=$srcdir$ac_dir_suffix;
1263 ac_top_srcdir=$srcdir
1264 ac_abs_top_srcdir=$srcdir ;;
1266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1267 ac_top_srcdir=$ac_top_build_prefix$srcdir
1268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1272 cd "$ac_dir" || { ac_status=$?; continue; }
1273 # Check for guested configure.
1274 if test -f "$ac_srcdir/configure.gnu"; then
1276 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1277 elif test -f "$ac_srcdir/configure"; then
1279 $SHELL "$ac_srcdir/configure" --help=recursive
1281 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1283 cd "$ac_pwd" || { ac_status=$?; break; }
1287 test -n "$ac_init_help" && exit $ac_status
1288 if $ac_init_version; then
1291 generated by GNU Autoconf 2.61
1293 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1294 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1295 This configure script is free software; the Free Software Foundation
1296 gives unlimited permission to copy, distribute and modify it.
1300 cat >config.log <<_ACEOF
1301 This file contains any messages produced by compilers while
1302 running configure, to aid debugging if configure makes a mistake.
1304 It was created by $as_me, which was
1305 generated by GNU Autoconf 2.61. Invocation command line was
1317 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1318 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1319 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1320 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1321 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1323 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1324 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1326 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1327 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1328 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1329 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1330 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1331 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1332 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340 test -z "$as_dir" && as_dir=.
1341 echo "PATH: $as_dir"
1357 # Keep a trace of the command line.
1358 # Strip out --no-create and --no-recursion so they do not pile up.
1359 # Strip out --silent because we don't want to record it for future runs.
1360 # Also quote any args containing shell meta-characters.
1361 # Make two passes to allow for proper duplicate-argument suppression.
1365 ac_must_keep_next=false
1371 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1373 | -silent | --silent | --silen | --sile | --sil)
1376 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1379 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1381 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1382 if test $ac_must_keep_next = true; then
1383 ac_must_keep_next=false # Got value, back to normal.
1386 *=* | --config-cache | -C | -disable-* | --disable-* \
1387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1389 | -with-* | --with-* | -without-* | --without-* | --x)
1390 case "$ac_configure_args0 " in
1391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1394 -* ) ac_must_keep_next=true ;;
1397 ac_configure_args="$ac_configure_args '$ac_arg'"
1402 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1403 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1405 # When interrupted or exit'd, cleanup temporary files, and complete
1406 # config.log. We remove comments because anyway the quotes in there
1407 # would cause problems or look ugly.
1408 # WARNING: Use '\'' to represent an apostrophe within the trap.
1409 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1410 trap 'exit_status=$?
1411 # Save into config.log some information that might help in debugging.
1416 ## ---------------- ##
1417 ## Cache variables. ##
1418 ## ---------------- ##
1421 # The following way of writing the cache mishandles newlines in values,
1423 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1424 eval ac_val=\$$ac_var
1428 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1429 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1432 _ | IFS | as_nl) ;; #(
1433 *) $as_unset $ac_var ;;
1438 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1439 *${as_nl}ac_space=\ *)
1441 "s/'\''/'\''\\\\'\'''\''/g;
1442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1453 ## ----------------- ##
1454 ## Output variables. ##
1455 ## ----------------- ##
1458 for ac_var in $ac_subst_vars
1460 eval ac_val=\$$ac_var
1462 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1464 echo "$ac_var='\''$ac_val'\''"
1468 if test -n "$ac_subst_files"; then
1470 ## ------------------- ##
1471 ## File substitutions. ##
1472 ## ------------------- ##
1475 for ac_var in $ac_subst_files
1477 eval ac_val=\$$ac_var
1479 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1481 echo "$ac_var='\''$ac_val'\''"
1486 if test -s confdefs.h; then
1496 test "$ac_signal" != 0 &&
1497 echo "$as_me: caught signal $ac_signal"
1498 echo "$as_me: exit $exit_status"
1500 rm -f core *.core core.conftest.* &&
1501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1504 for ac_signal in 1 2 13 15; do
1505 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1510 rm -f -r conftest* confdefs.h
1512 # Predefined preprocessor variables.
1514 cat >>confdefs.h <<_ACEOF
1515 #define PACKAGE_NAME "$PACKAGE_NAME"
1519 cat >>confdefs.h <<_ACEOF
1520 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1524 cat >>confdefs.h <<_ACEOF
1525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1529 cat >>confdefs.h <<_ACEOF
1530 #define PACKAGE_STRING "$PACKAGE_STRING"
1534 cat >>confdefs.h <<_ACEOF
1535 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1539 # Let the site file select an alternate cache file if it wants to.
1540 # Prefer explicitly selected file to automatically selected ones.
1541 if test -n "$CONFIG_SITE"; then
1542 set x "$CONFIG_SITE"
1543 elif test "x$prefix" != xNONE; then
1544 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1546 set x "$ac_default_prefix/share/config.site" \
1547 "$ac_default_prefix/etc/config.site"
1552 if test -r "$ac_site_file"; then
1553 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1554 echo "$as_me: loading site script $ac_site_file" >&6;}
1555 sed 's/^/| /' "$ac_site_file" >&5
1560 if test -r "$cache_file"; then
1561 # Some versions of bash will fail to source /dev/null (special
1562 # files actually), so we avoid doing that.
1563 if test -f "$cache_file"; then
1564 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1565 echo "$as_me: loading cache $cache_file" >&6;}
1567 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1568 *) . "./$cache_file";;
1572 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1573 echo "$as_me: creating cache $cache_file" >&6;}
1577 # Check that the precious variables saved in the cache have kept the same
1579 ac_cache_corrupted=false
1580 for ac_var in $ac_precious_vars; do
1581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1582 eval ac_new_set=\$ac_env_${ac_var}_set
1583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1584 eval ac_new_val=\$ac_env_${ac_var}_value
1585 case $ac_old_set,$ac_new_set in
1587 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1588 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1589 ac_cache_corrupted=: ;;
1591 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1592 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1593 ac_cache_corrupted=: ;;
1596 if test "x$ac_old_val" != "x$ac_new_val"; then
1597 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1598 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1599 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1600 echo "$as_me: former value: $ac_old_val" >&2;}
1601 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1602 echo "$as_me: current value: $ac_new_val" >&2;}
1603 ac_cache_corrupted=:
1606 # Pass precious variables to config.status.
1607 if test "$ac_new_set" = set; then
1609 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1610 *) ac_arg=$ac_var=$ac_new_val ;;
1612 case " $ac_configure_args " in
1613 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1614 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1618 if $ac_cache_corrupted; then
1619 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1620 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1621 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1622 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1623 { (exit 1); exit 1; }; }
1643 ac_cpp='$CPP $CPPFLAGS'
1644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1655 if test x$with_rlm_ldap != xno; then
1658 ac_cpp='$CPP $CPPFLAGS'
1659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1667 if test "${ac_cv_prog_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 if test -n "$CC"; then
1671 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 if test -n "$CC"; then
1692 { echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6; }
1695 { echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6; }
1701 if test -z "$ac_cv_prog_CC"; then
1703 # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc; ac_word=$2
1705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 if test -n "$ac_ct_CC"; then
1711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1720 ac_cv_prog_ac_ct_CC="gcc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731 if test -n "$ac_ct_CC"; then
1732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733 echo "${ECHO_T}$ac_ct_CC" >&6; }
1735 { echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6; }
1739 if test "x$ac_ct_CC" = x; then
1742 case $cross_compiling:$ac_tool_warned in
1744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1745 whose name does not start with the host triplet. If you think this
1746 configuration is useful to you, please write to autoconf@gnu.org." >&5
1747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1748 whose name does not start with the host triplet. If you think this
1749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1750 ac_tool_warned=yes ;;
1758 if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1761 set dummy ${ac_tool_prefix}cc; ac_word=$2
1762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1777 ac_cv_prog_CC="${ac_tool_prefix}cc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test -n "$CC"; then
1789 { echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6; }
1792 { echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6; }
1799 if test -z "$CC"; then
1800 # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819 ac_prog_rejected=yes
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 if test $ac_prog_rejected = yes; then
1831 # We found a bogon in the path, so make sure we never use it.
1832 set dummy $ac_cv_prog_CC
1834 if test $# != 0; then
1835 # We chose a different compiler from the bogus one.
1836 # However, it has the same basename, so the bogon will be chosen
1837 # first if we set CC to just the basename; use the full file name.
1839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1845 if test -n "$CC"; then
1846 { echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6; }
1849 { echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6; }
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 for ac_prog in cl.exe
1859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863 if test "${ac_cv_prog_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test -n "$CC"; then
1867 ac_cv_prog_CC="$CC" # Let the user override the test.
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 if test -n "$CC"; then
1888 { echo "$as_me:$LINENO: result: $CC" >&5
1889 echo "${ECHO_T}$CC" >&6; }
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1896 test -n "$CC" && break
1899 if test -z "$CC"; then
1901 for ac_prog in cl.exe
1903 # Extract the first word of "$ac_prog", so it can be a program name with args.
1904 set dummy $ac_prog; ac_word=$2
1905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920 ac_cv_prog_ac_ct_CC="$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6; }
1935 { echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6; }
1940 test -n "$ac_ct_CC" && break
1943 if test "x$ac_ct_CC" = x; then
1946 case $cross_compiling:$ac_tool_warned in
1948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1949 whose name does not start with the host triplet. If you think this
1950 configuration is useful to you, please write to autoconf@gnu.org." >&5
1951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1952 whose name does not start with the host triplet. If you think this
1953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1954 ac_tool_warned=yes ;;
1963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1969 # Provide some information about the compiler.
1970 echo "$as_me:$LINENO: checking for C compiler version" >&5
1971 ac_compiler=`set X $ac_compile; echo $2`
1972 { (ac_try="$ac_compiler --version >&5"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1978 (eval "$ac_compiler --version >&5") 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }
1982 { (ac_try="$ac_compiler -v >&5"
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1988 (eval "$ac_compiler -v >&5") 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }
1992 { (ac_try="$ac_compiler -V >&5"
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1998 (eval "$ac_compiler -V >&5") 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2003 cat >conftest.$ac_ext <<_ACEOF
2006 cat confdefs.h >>conftest.$ac_ext
2007 cat >>conftest.$ac_ext <<_ACEOF
2008 /* end confdefs.h. */
2018 ac_clean_files_save=$ac_clean_files
2019 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2020 # Try to create an executable without -o first, disregard a.out.
2021 # It will help us diagnose broken compilers, and finding out an intuition
2023 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2024 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2025 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2027 # List of possible output files, starting from the most likely.
2028 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2029 # only as a last resort. b.out is created by i960 compilers.
2030 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2032 # The IRIX 6 linker writes into existing files which may not be
2033 # executable, retaining their permissions. Remove them first so a
2034 # subsequent execution test works.
2036 for ac_file in $ac_files
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2045 if { (ac_try="$ac_link_default"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2051 (eval "$ac_link_default") 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2057 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2058 # so that the user can short-circuit this test for compilers unknown to
2060 for ac_file in $ac_files ''
2062 test -f "$ac_file" || continue
2064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2067 # We found the default executable, but exeext='' is most
2071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 # We set ac_cv_exeext here because the later test for it is not
2076 # safe: cross compilers may not add the suffix if given an `-o'
2077 # argument, so we may need to know it at that point already.
2078 # Even if this section looks crufty: it has the advantage of
2085 test "$ac_cv_exeext" = no && ac_cv_exeext=
2091 { echo "$as_me:$LINENO: result: $ac_file" >&5
2092 echo "${ECHO_T}$ac_file" >&6; }
2093 if test -z "$ac_file"; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: C compiler cannot create executables
2100 See \`config.log' for more details." >&2;}
2101 { (exit 77); exit 77; }; }
2104 ac_exeext=$ac_cv_exeext
2106 # Check that the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113 if { ac_try='./$ac_file'
2114 { (case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_try") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2125 if test "$cross_compiling" = maybe; then
2128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'.
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'.
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2141 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2142 ac_clean_files=$ac_clean_files_save
2143 # Check that the compiler produces executables we can run. If not, either
2144 # the compiler is broken, or we cross compile.
2145 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2147 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148 echo "${ECHO_T}$cross_compiling" >&6; }
2150 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2152 if { (ac_try="$ac_link"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_link") 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2164 # work properly (i.e., refer to `conftest.exe'), while it won't with
2166 for ac_file in conftest.exe conftest conftest.*; do
2167 test -f "$ac_file" || continue
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2183 rm -f conftest$ac_cv_exeext
2184 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2185 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2187 rm -f conftest.$ac_ext
2188 EXEEXT=$ac_cv_exeext
2190 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2191 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2192 if test "${ac_cv_objext+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 cat >conftest.$ac_ext <<_ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2210 rm -f conftest.o conftest.obj
2211 if { (ac_try="$ac_compile"
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2217 (eval "$ac_compile") 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 for ac_file in conftest.o conftest.obj conftest.*; do
2222 test -f "$ac_file" || continue;
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2242 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6; }
2244 OBJEXT=$ac_cv_objext
2246 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2269 rm -f conftest.$ac_objext
2270 if { (ac_try="$ac_compile"
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_compile") 2>conftest.er1
2278 grep -v '^ *+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } && {
2283 test -z "$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2285 } && test -s conftest.$ac_objext; then
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2298 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2299 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2300 GCC=`test $ac_compiler_gnu = yes && echo yes`
2301 ac_test_CFLAGS=${CFLAGS+set}
2302 ac_save_CFLAGS=$CFLAGS
2303 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_cc_g+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 ac_save_c_werror_flag=$ac_c_werror_flag
2309 ac_c_werror_flag=yes
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.$ac_objext
2328 if { (ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>conftest.er1
2336 grep -v '^ *+' conftest.er1 >conftest.err
2338 cat conftest.err >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } && {
2341 test -z "$ac_c_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 rm -f conftest.$ac_objext
2366 if { (ac_try="$ac_compile"
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2372 (eval "$ac_compile") 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest.$ac_objext; then
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_c_werror_flag=$ac_save_c_werror_flag
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2404 rm -f conftest.$ac_objext
2405 if { (ac_try="$ac_compile"
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_compile") 2>conftest.er1
2413 grep -v '^ *+' conftest.er1 >conftest.err
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } && {
2418 test -z "$ac_c_werror_flag" ||
2419 test ! -s conftest.err
2420 } && test -s conftest.$ac_objext; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_c_werror_flag=$ac_save_c_werror_flag
2438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2440 if test "$ac_test_CFLAGS" = set; then
2441 CFLAGS=$ac_save_CFLAGS
2442 elif test $ac_cv_prog_cc_g = yes; then
2443 if test "$GCC" = yes; then
2449 if test "$GCC" = yes; then
2455 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2456 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_cc_c89+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 ac_cv_prog_cc_c89=no
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2470 #include <sys/types.h>
2471 #include <sys/stat.h>
2472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2473 struct buf { int x; };
2474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475 static char *e (p, i)
2481 static char *f (char * (*g) (char **, int), char **p, ...)
2486 s = g (p, va_arg (v,int));
2491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2492 function prototypes and stuff, but not '\xHH' hex character constants.
2493 These don't provoke an error unfortunately, instead are silently treated
2494 as 'x'. The following induces an error, until -std is added to get
2495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2496 array size at least. It's necessary to write '\x00'==0 to get something
2497 that's true only with -std. */
2498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2501 inside strings and character constants. */
2503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2505 int test (int i, double x);
2506 struct s1 {int (*f) (int a);};
2507 struct s2 {int (*f) (double a);};
2508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2522 CC="$ac_save_CC $ac_arg"
2523 rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } && {
2537 test -z "$ac_c_werror_flag" ||
2538 test ! -s conftest.err
2539 } && test -s conftest.$ac_objext; then
2540 ac_cv_prog_cc_c89=$ac_arg
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f core conftest.err conftest.$ac_objext
2549 test "x$ac_cv_prog_cc_c89" != "xno" && break
2551 rm -f conftest.$ac_ext
2556 case "x$ac_cv_prog_cc_c89" in
2558 { echo "$as_me:$LINENO: result: none needed" >&5
2559 echo "${ECHO_T}none needed" >&6; } ;;
2561 { echo "$as_me:$LINENO: result: unsupported" >&5
2562 echo "${ECHO_T}unsupported" >&6; } ;;
2564 CC="$CC $ac_cv_prog_cc_c89"
2565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 # Check whether --with-rlm-ldap-lib-dir was given.
2581 if test "${with_rlm_ldap_lib_dir+set}" = set; then
2582 withval=$with_rlm_ldap_lib_dir; case "$withval" in
2584 { { echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
2585 echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
2586 { (exit 1); exit 1; }; }
2591 rlm_ldap_lib_dir="$withval"
2598 rlm_ldap_include_dir=
2600 # Check whether --with-rlm-ldap-include-dir was given.
2601 if test "${with_rlm_ldap_include_dir+set}" = set; then
2602 withval=$with_rlm_ldap_include_dir; case "$withval" in
2604 { { echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
2605 echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
2606 { (exit 1); exit 1; }; }
2611 rlm_ldap_include_dir="$withval"
2618 # Check whether --enable-shared was given.
2619 if test "${enable_shared+set}" = set; then
2620 enableval=$enable_shared; p=${PACKAGE-default}
2622 yes) enable_shared=yes ;;
2623 no) enable_shared=no ;;
2626 # Look at the argument we got. We use all the common list separators.
2627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2628 for pkg in $enableval; do
2630 if test "X$pkg" = "X$p"; then
2643 if test "x$enable_shared" = "xno"; then
2644 { echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
2645 echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
2648 rlm_ldap_with_threads=yes
2650 # Check whether --with-threads was given.
2651 if test "${with_threads+set}" = set; then
2652 withval=$with_threads; case "$withval" in
2654 rlm_ldap_with_threads=no
2663 if test "x$rlm_ldap_with_threads" = "xyes"; then
2664 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2665 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
2666 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 ac_check_lib_save_LIBS=$LIBS
2670 LIBS="-lpthread $LIBS"
2671 cat >conftest.$ac_ext <<_ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2678 /* Override any GCC internal prototype to avoid an error.
2679 Use char because int might match the return type of a GCC
2680 builtin and then its argument prototype would still apply. */
2684 char pthread_create ();
2688 return pthread_create ();
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { (ac_try="$ac_link"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_link") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest$ac_exeext &&
2710 $as_test_x conftest$ac_exeext; then
2711 ac_cv_lib_pthread_pthread_create=yes
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 ac_cv_lib_pthread_pthread_create=no
2719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2720 conftest$ac_exeext conftest.$ac_ext
2721 LIBS=$ac_check_lib_save_LIBS
2723 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2724 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
2725 if test $ac_cv_lib_pthread_pthread_create = yes; then
2726 LIBS="-lpthread $LIBS"
2728 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2729 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
2730 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 ac_check_lib_save_LIBS=$LIBS
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2743 /* Override any GCC internal prototype to avoid an error.
2744 Use char because int might match the return type of a GCC
2745 builtin and then its argument prototype would still apply. */
2749 char pthread_create ();
2753 return pthread_create ();
2758 rm -f conftest.$ac_objext conftest$ac_exeext
2759 if { (ac_try="$ac_link"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_link") 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest$ac_exeext &&
2775 $as_test_x conftest$ac_exeext; then
2776 ac_cv_lib_c_r_pthread_create=yes
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 ac_cv_lib_c_r_pthread_create=no
2784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2785 conftest$ac_exeext conftest.$ac_ext
2786 LIBS=$ac_check_lib_save_LIBS
2788 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2789 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
2790 if test $ac_cv_lib_c_r_pthread_create = yes; then
2793 rlm_ldap_with_threads="no"
2802 smart_try_dir=$rlm_ldap_lib_dir
2803 if test "x$rlm_ldap_with_threads" = "xyes"; then
2806 sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
2807 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2808 { echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
2809 echo $ECHO_N "checking for ldap_init in -lldap_r... $ECHO_C" >&6; }
2815 if test "x$smart_try_dir" != "x"; then
2816 for try in $smart_try_dir; do
2817 LIBS="-L$try -lldap_r $old_LIBS"
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 extern char ldap_init();
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (ac_try="$ac_link"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_link") 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } && {
2847 test -z "$ac_c_werror_flag" ||
2848 test ! -s conftest.err
2849 } && test -s conftest$ac_exeext &&
2850 $as_test_x conftest$ac_exeext; then
2851 smart_lib="-L$try -lldap_r"
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2860 conftest$ac_exeext conftest.$ac_ext
2861 if test "x$smart_lib" != "x"; then
2868 if test "x$smart_lib" = "x"; then
2869 LIBS="-lldap_r $old_LIBS"
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2876 extern char ldap_init();
2885 rm -f conftest.$ac_objext conftest$ac_exeext
2886 if { (ac_try="$ac_link"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_link") 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_c_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest$ac_exeext &&
2902 $as_test_x conftest$ac_exeext; then
2903 smart_lib="-lldap_r"
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2912 conftest$ac_exeext conftest.$ac_ext
2916 if test "x$smart_lib" = "x"; then
2919 if test "x$LOCATE" != "x"; then
2921 file=libldap_r${libltdl_cv_shlibext}
2923 for x in `${LOCATE} $file 2>/dev/null`; do
2924 base=`echo $x | sed "s%/${file}%%"`
2925 if test "x$x" = "x$base"; then
2929 dir=`${DIRNAME} $x 2>/dev/null`
2930 exclude=`echo ${dir} | ${GREP} /home`
2931 if test "x$exclude" != "x"; then
2935 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2936 if test "x$already" = "x"; then
2942 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2946 if test "x$LOCATE" != "x"; then
2950 for x in `${LOCATE} $file 2>/dev/null`; do
2951 base=`echo $x | sed "s%/${file}%%"`
2952 if test "x$x" = "x$base"; then
2956 dir=`${DIRNAME} $x 2>/dev/null`
2957 exclude=`echo ${dir} | ${GREP} /home`
2958 if test "x$exclude" != "x"; then
2962 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2963 if test "x$already" = "x"; then
2969 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2972 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2973 LIBS="-L$try -lldap_r $old_LIBS"
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 extern char ldap_init();
2989 rm -f conftest.$ac_objext conftest$ac_exeext
2990 if { (ac_try="$ac_link"
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_link") 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } && {
3003 test -z "$ac_c_werror_flag" ||
3004 test ! -s conftest.err
3005 } && test -s conftest$ac_exeext &&
3006 $as_test_x conftest$ac_exeext; then
3007 smart_lib="-L$try -lldap_r"
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3016 conftest$ac_exeext conftest.$ac_ext
3017 if test "x$smart_lib" != "x"; then
3024 if test "x$smart_lib" != "x"; then
3025 { echo "$as_me:$LINENO: result: yes" >&5
3026 echo "${ECHO_T}yes" >&6; }
3027 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3028 LIBS="$smart_lib $old_LIBS"
3029 SMART_LIBS="$smart_lib $SMART_LIBS"
3031 { echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6; }
3035 if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
3036 fail="$fail libldap_r"
3041 sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
3042 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
3043 { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
3044 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
3050 if test "x$smart_try_dir" != "x"; then
3051 for try in $smart_try_dir; do
3052 LIBS="-L$try -lldap $old_LIBS"
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 extern char ldap_init();
3068 rm -f conftest.$ac_objext conftest$ac_exeext
3069 if { (ac_try="$ac_link"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_link") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } && {
3082 test -z "$ac_c_werror_flag" ||
3083 test ! -s conftest.err
3084 } && test -s conftest$ac_exeext &&
3085 $as_test_x conftest$ac_exeext; then
3086 smart_lib="-L$try -lldap"
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3095 conftest$ac_exeext conftest.$ac_ext
3096 if test "x$smart_lib" != "x"; then
3103 if test "x$smart_lib" = "x"; then
3104 LIBS="-lldap $old_LIBS"
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3111 extern char ldap_init();
3120 rm -f conftest.$ac_objext conftest$ac_exeext
3121 if { (ac_try="$ac_link"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_link") 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest$ac_exeext &&
3137 $as_test_x conftest$ac_exeext; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3147 conftest$ac_exeext conftest.$ac_ext
3151 if test "x$smart_lib" = "x"; then
3154 if test "x$LOCATE" != "x"; then
3156 file=libldap${libltdl_cv_shlibext}
3158 for x in `${LOCATE} $file 2>/dev/null`; do
3159 base=`echo $x | sed "s%/${file}%%"`
3160 if test "x$x" = "x$base"; then
3164 dir=`${DIRNAME} $x 2>/dev/null`
3165 exclude=`echo ${dir} | ${GREP} /home`
3166 if test "x$exclude" != "x"; then
3170 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3171 if test "x$already" = "x"; then
3177 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3181 if test "x$LOCATE" != "x"; then
3185 for x in `${LOCATE} $file 2>/dev/null`; do
3186 base=`echo $x | sed "s%/${file}%%"`
3187 if test "x$x" = "x$base"; then
3191 dir=`${DIRNAME} $x 2>/dev/null`
3192 exclude=`echo ${dir} | ${GREP} /home`
3193 if test "x$exclude" != "x"; then
3197 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3198 if test "x$already" = "x"; then
3204 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3207 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3208 LIBS="-L$try -lldap $old_LIBS"
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 extern char ldap_init();
3224 rm -f conftest.$ac_objext conftest$ac_exeext
3225 if { (ac_try="$ac_link"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_link") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest$ac_exeext &&
3241 $as_test_x conftest$ac_exeext; then
3242 smart_lib="-L$try -lldap"
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3251 conftest$ac_exeext conftest.$ac_ext
3252 if test "x$smart_lib" != "x"; then
3259 if test "x$smart_lib" != "x"; then
3260 { echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6; }
3262 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3263 LIBS="$smart_lib $old_LIBS"
3264 SMART_LIBS="$smart_lib $SMART_LIBS"
3266 { echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6; }
3270 if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
3271 fail="$fail libldap"
3276 smart_try_dir=$rlm_ldap_include_dir
3279 ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
3280 { echo "$as_me:$LINENO: checking for ldap.h" >&5
3281 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
3283 old_CFLAGS="$CFLAGS"
3287 if test "x$smart_try_dir" != "x"; then
3288 for try in $smart_try_dir; do
3289 CFLAGS="$old_CFLAGS -I$try"
3290 cat >conftest.$ac_ext <<_ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compile") 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } && {
3320 test -z "$ac_c_werror_flag" ||
3321 test ! -s conftest.err
3322 } && test -s conftest.$ac_objext; then
3323 smart_include="-I$try"
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 if test "x$smart_include" != "x"; then
3336 CFLAGS="$old_CFLAGS"
3339 if test "x$smart_include" = "x"; then
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 if test "x$smart_include" = "x"; then
3387 if test "x$LOCATE" != "x"; then
3391 for x in `${LOCATE} $file 2>/dev/null`; do
3392 base=`echo $x | sed "s%/${file}%%"`
3393 if test "x$x" = "x$base"; then
3397 dir=`${DIRNAME} $x 2>/dev/null`
3398 exclude=`echo ${dir} | ${GREP} /home`
3399 if test "x$exclude" != "x"; then
3403 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3404 if test "x$already" = "x"; then
3410 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3413 for try in $smart_include_dir /usr/local/include /opt/include; do
3414 CFLAGS="$old_CFLAGS -I$try"
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 smart_include="-I$try"
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 if test "x$smart_include" != "x"; then
3461 CFLAGS="$old_CFLAGS"
3464 if test "x$smart_include" != "x"; then
3465 { echo "$as_me:$LINENO: result: yes" >&5
3466 echo "${ECHO_T}yes" >&6; }
3467 eval "ac_cv_header_$ac_safe=yes"
3468 CFLAGS="$old_CFLAGS $smart_include"
3469 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3475 if test "$ac_cv_header_ldap_h" != "yes"; then
3480 if test "x$fail" = "x"; then
3481 { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
3482 echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
3483 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
3493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3494 #define ldap_start_tls_s innocuous_ldap_start_tls_s
3496 /* System header to define __stub macros and hopefully few prototypes,
3497 which can conflict with char ldap_start_tls_s (); below.
3498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499 <limits.h> exists even on freestanding compilers. */
3502 # include <limits.h>
3504 # include <assert.h>
3507 #undef ldap_start_tls_s
3509 /* Override any GCC internal prototype to avoid an error.
3510 Use char because int might match the return type of a GCC
3511 builtin and then its argument prototype would still apply. */
3515 char ldap_start_tls_s ();
3516 /* The GNU C library defines this for functions which it implements
3517 to always fail with ENOSYS. Some functions are actually named
3518 something starting with __ and the normal name is an alias. */
3519 #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
3526 return ldap_start_tls_s ();
3531 rm -f conftest.$ac_objext conftest$ac_exeext
3532 if { (ac_try="$ac_link"
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_link") 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } && {
3545 test -z "$ac_c_werror_flag" ||
3546 test ! -s conftest.err
3547 } && test -s conftest$ac_exeext &&
3548 $as_test_x conftest$ac_exeext; then
3549 ac_cv_func_ldap_start_tls_s=yes
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 ac_cv_func_ldap_start_tls_s=no
3557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3558 conftest$ac_exeext conftest.$ac_ext
3560 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
3561 echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
3562 if test $ac_cv_func_ldap_start_tls_s = yes; then
3563 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_START_TLS"
3566 { echo "$as_me:$LINENO: checking for ldap_initialize" >&5
3567 echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6; }
3568 if test "${ac_cv_func_ldap_initialize+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 /* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
3578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3579 #define ldap_initialize innocuous_ldap_initialize
3581 /* System header to define __stub macros and hopefully few prototypes,
3582 which can conflict with char ldap_initialize (); below.
3583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584 <limits.h> exists even on freestanding compilers. */
3587 # include <limits.h>
3589 # include <assert.h>
3592 #undef ldap_initialize
3594 /* Override any GCC internal prototype to avoid an error.
3595 Use char because int might match the return type of a GCC
3596 builtin and then its argument prototype would still apply. */
3600 char ldap_initialize ();
3601 /* The GNU C library defines this for functions which it implements
3602 to always fail with ENOSYS. Some functions are actually named
3603 something starting with __ and the normal name is an alias. */
3604 #if defined __stub_ldap_initialize || defined __stub___ldap_initialize
3611 return ldap_initialize ();
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (ac_try="$ac_link"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_link") 2>conftest.er1
3625 grep -v '^ *+' conftest.er1 >conftest.err
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } && {
3630 test -z "$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3632 } && test -s conftest$ac_exeext &&
3633 $as_test_x conftest$ac_exeext; then
3634 ac_cv_func_ldap_initialize=yes
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 ac_cv_func_ldap_initialize=no
3642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3643 conftest$ac_exeext conftest.$ac_ext
3645 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
3646 echo "${ECHO_T}$ac_cv_func_ldap_initialize" >&6; }
3647 if test $ac_cv_func_ldap_initialize = yes; then
3648 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INITIALIZE"
3651 { echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
3652 echo $ECHO_N "checking for ldap_int_tls_config... $ECHO_C" >&6; }
3653 if test "${ac_cv_func_ldap_int_tls_config+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 /* Define ldap_int_tls_config to an innocuous variant, in case <limits.h> declares ldap_int_tls_config.
3663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3664 #define ldap_int_tls_config innocuous_ldap_int_tls_config
3666 /* System header to define __stub macros and hopefully few prototypes,
3667 which can conflict with char ldap_int_tls_config (); below.
3668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 <limits.h> exists even on freestanding compilers. */
3672 # include <limits.h>
3674 # include <assert.h>
3677 #undef ldap_int_tls_config
3679 /* Override any GCC internal prototype to avoid an error.
3680 Use char because int might match the return type of a GCC
3681 builtin and then its argument prototype would still apply. */
3685 char ldap_int_tls_config ();
3686 /* The GNU C library defines this for functions which it implements
3687 to always fail with ENOSYS. Some functions are actually named
3688 something starting with __ and the normal name is an alias. */
3689 #if defined __stub_ldap_int_tls_config || defined __stub___ldap_int_tls_config
3696 return ldap_int_tls_config ();
3701 rm -f conftest.$ac_objext conftest$ac_exeext
3702 if { (ac_try="$ac_link"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_link") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest$ac_exeext &&
3718 $as_test_x conftest$ac_exeext; then
3719 ac_cv_func_ldap_int_tls_config=yes
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 ac_cv_func_ldap_int_tls_config=no
3727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3728 conftest$ac_exeext conftest.$ac_ext
3730 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
3731 echo "${ECHO_T}$ac_cv_func_ldap_int_tls_config" >&6; }
3732 if test $ac_cv_func_ldap_int_tls_config = yes; then
3733 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INT_TLS_CONFIG"
3739 for ac_func in ldap_set_rebind_proc
3741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 cat >conftest.$ac_ext <<_ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3755 #define $ac_func innocuous_$ac_func
3757 /* System header to define __stub macros and hopefully few prototypes,
3758 which can conflict with char $ac_func (); below.
3759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760 <limits.h> exists even on freestanding compilers. */
3763 # include <limits.h>
3765 # include <assert.h>
3770 /* Override any GCC internal prototype to avoid an error.
3771 Use char because int might match the return type of a GCC
3772 builtin and then its argument prototype would still apply. */
3777 /* The GNU C library defines this for functions which it implements
3778 to always fail with ENOSYS. Some functions are actually named
3779 something starting with __ and the normal name is an alias. */
3780 #if defined __stub_$ac_func || defined __stub___$ac_func
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (ac_try="$ac_link"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_link") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest$ac_exeext &&
3809 $as_test_x conftest$ac_exeext; then
3810 eval "$as_ac_var=yes"
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 eval "$as_ac_var=no"
3818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3819 conftest$ac_exeext conftest.$ac_ext
3821 ac_res=`eval echo '${'$as_ac_var'}'`
3822 { echo "$as_me:$LINENO: result: $ac_res" >&5
3823 echo "${ECHO_T}$ac_res" >&6; }
3824 if test `eval echo '${'$as_ac_var'}'` = yes; then
3825 cat >>confdefs.h <<_ACEOF
3826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3832 { echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
3833 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6; }
3834 if test "${ac_cv_ldap_set_rebind_proc+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3850 ldap_set_rebind_proc(0, 0, 0);
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3872 ac_cv_ldap_set_rebind_proc=3
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_ldap_set_rebind_proc=2
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 { echo "$as_me:$LINENO: result: $ac_cv_ldap_set_rebind_proc" >&5
3883 echo "${ECHO_T}$ac_cv_ldap_set_rebind_proc" >&6; }
3889 echo \*\*\* module rlm_ldap is disabled.
3892 if test x"$fail" != x""; then
3893 if test x"${enable_strict_dependencies}" = x"yes"; then
3894 { { echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
3895 echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
3896 { (exit 1); exit 1; }; }
3898 { echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
3899 echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
3900 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
3901 echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
3902 if test x"$headersuggestion" != x; then
3903 { echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
3904 echo "$as_me: WARNING: $headersuggestion" >&2;}
3906 if test x"$libsuggestion" != x; then
3907 { echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
3908 echo "$as_me: WARNING: $libsuggestion" >&2;}
3916 # Check whether --with-edir was given.
3917 if test "${with_edir+set}" = set; then
3918 withval=$with_edir; case "$withval" in
3920 SMART_CFLAGS="$SMART_CFLAGS -DNOVELL_UNIVERSAL_PASSWORD -DNOVELL"
3921 edir="edir_ldapext.c"
3930 ldap_ldflags=$SMART_LIBS
3931 ldap_cflags="$SMART_CFLAGS -DLDAP_DEPRECATED -DLDAP_SET_REBIND_PROC_ARGS=$ac_cv_ldap_set_rebind_proc"
3937 unset ac_cv_env_LIBS_set
3938 unset ac_cv_env_LIBS_value
3940 ac_config_files="$ac_config_files Makefile all.mk"
3942 cat >confcache <<\_ACEOF
3943 # This file is a shell script that caches the results of configure
3944 # tests run on this system so they can be shared between configure
3945 # scripts and configure runs, see configure's option --config-cache.
3946 # It is not useful on other systems. If it contains results you don't
3947 # want to keep, you may remove or edit it.
3949 # config.status only pays attention to the cache file if you give it
3950 # the --recheck option to rerun configure.
3952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3958 # The following way of writing the cache mishandles newlines in values,
3959 # but we know of no workaround that is simple, portable, and efficient.
3960 # So, we kill variables containing newlines.
3961 # Ultrix sh set writes to stderr and can't be redirected directly,
3962 # and sets the high bit in the cache file unless we assign to the vars.
3964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3965 eval ac_val=\$$ac_var
3969 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3970 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3973 _ | IFS | as_nl) ;; #(
3974 *) $as_unset $ac_var ;;
3980 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3981 *${as_nl}ac_space=\ *)
3982 # `set' does not quote correctly, so add quotes (double-quote
3983 # substitution turns \\\\ into \\, and sed turns \\ into \).
3986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3989 # `set' quotes correctly as required by POSIX, so do not add quotes.
3990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4004 if test -w "$cache_file"; then
4005 test "x$cache_file" != "x/dev/null" &&
4006 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4007 echo "$as_me: updating cache $cache_file" >&6;}
4008 cat confcache >$cache_file
4010 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4011 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4017 # Let make expand exec_prefix.
4018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4020 # Transform confdefs.h into DEFS.
4021 # Protect against shell expansion while executing Makefile rules.
4022 # Protect against Makefile macro expansion.
4024 # If the first sed substitution is executed (which looks for macros that
4025 # take arguments), then branch to the quote section. Otherwise,
4026 # look for a macro that doesn't take arguments.
4030 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4032 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4036 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4049 DEFS=`sed -n "$ac_script" confdefs.h`
4054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4055 # 1. Remove the extension, and $U if already installed.
4056 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4057 ac_i=`echo "$ac_i" | sed "$ac_script"`
4058 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4059 # will be set to the directory where LIBOBJS objects are built.
4060 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4061 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4065 LTLIBOBJS=$ac_ltlibobjs
4069 : ${CONFIG_STATUS=./config.status}
4070 ac_clean_files_save=$ac_clean_files
4071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4072 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4073 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4074 cat >$CONFIG_STATUS <<_ACEOF
4076 # Generated by $as_me.
4077 # Run this file to recreate the current configuration.
4078 # Compiler output produced by configure, useful for debugging
4079 # configure, is in config.log if it exists.
4084 SHELL=\${CONFIG_SHELL-$SHELL}
4087 cat >>$CONFIG_STATUS <<\_ACEOF
4088 ## --------------------- ##
4089 ## M4sh Initialization. ##
4090 ## --------------------- ##
4092 # Be more Bourne compatible
4093 DUALCASE=1; export DUALCASE # for MKS sh
4094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4097 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4098 # is contrary to our usage. Disable this feature.
4099 alias -g '${1+"$@"}'='"$@"'
4100 setopt NO_GLOB_SUBST
4102 case `(set -o) 2>/dev/null` in
4103 *posix*) set -o posix ;;
4112 # Avoid depending upon Character Ranges.
4113 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4114 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4115 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4116 as_cr_digits='0123456789'
4117 as_cr_alnum=$as_cr_Letters$as_cr_digits
4119 # The user is always right.
4120 if test "${PATH_SEPARATOR+set}" != set; then
4121 echo "#! /bin/sh" >conf$$.sh
4122 echo "exit 0" >>conf$$.sh
4124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4132 # Support unset when possible.
4133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4141 # We need space, tab and new line, in precisely that order. Quoting is
4142 # there to prevent editors from complaining about space-tab.
4143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4144 # splitting by setting IFS to empty value.)
4149 # Find who we are. Look in the path if we contain no directory separator.
4151 *[\\/]* ) as_myself=$0 ;;
4152 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4163 # We did not find ourselves, most probably we were run as `sh COMMAND'
4164 # in which case we are not to be found in the path.
4165 if test "x$as_myself" = x; then
4168 if test ! -f "$as_myself"; then
4169 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4170 { (exit 1); exit 1; }
4173 # Work around bugs in pre-3.0 UWIN ksh.
4174 for as_var in ENV MAIL MAILPATH
4175 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4185 LC_TELEPHONE LC_TIME
4187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4188 eval $as_var=C; export $as_var
4190 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4194 # Required to use basename.
4195 if expr a : '\(a\)' >/dev/null 2>&1 &&
4196 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4202 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4203 as_basename=basename
4209 # Name of the executable.
4210 as_me=`$as_basename -- "$0" ||
4211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4212 X"$0" : 'X\(//\)$' \| \
4213 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4215 sed '/^.*\/\([^/][^/]*\)\/*$/{
4236 test "x$as_lineno_1" != "x$as_lineno_2" &&
4237 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4239 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4240 # uniformly replaced by the line number. The first 'sed' inserts a
4241 # line-number line after each line using $LINENO; the second 'sed'
4242 # does the real work. The second script uses 'N' to pair each
4243 # line-number line with the line containing $LINENO, and appends
4244 # trailing '-' during substitution so that $LINENO is not a special
4246 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4247 # scripts with optimization help from Paolo Bonzini. Blame Lee
4248 # E. McMahon (1931-1989) for sed's syntax. :-)
4260 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4264 chmod +x "$as_me.lineno" ||
4265 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4266 { (exit 1); exit 1; }; }
4268 # Don't try to exec as it changes $[0], causing all sort of problems
4269 # (the dirname of $[0] is not the place where we might find the
4270 # original and so on. Autoconf is especially sensitive to this).
4272 # Exit status is that of the last command.
4277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4283 ECHO_C= ECHO_N= ECHO_T=
4286 case `echo 'x\c'` in
4287 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4294 if expr a : '\(a\)' >/dev/null 2>&1 &&
4295 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4301 rm -f conf$$ conf$$.exe conf$$.file
4302 if test -d conf$$.dir; then
4303 rm -f conf$$.dir/conf$$.file
4309 if ln -s conf$$.file conf$$ 2>/dev/null; then
4311 # ... but there are two gotchas:
4312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4314 # In both cases, we have to default to `cp -p'.
4315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4317 elif ln conf$$.file conf$$ 2>/dev/null; then
4322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4323 rmdir conf$$.dir 2>/dev/null
4325 if mkdir -p . 2>/dev/null; then
4328 test -d ./-p && rmdir ./-p
4332 if test -x / >/dev/null 2>&1; then
4335 if ls -dL / >/dev/null 2>&1; then
4342 if test -d "$1"; then
4348 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4349 ???[sx]*):;;*)false;;esac;fi
4353 as_executable_p=$as_test_x
4355 # Sed expression to map a string onto a valid CPP name.
4356 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4358 # Sed expression to map a string onto a valid variable name.
4359 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4364 # Save the log message, to keep $[0] and so on meaningful, and to
4365 # report actual input values of CONFIG_FILES etc. instead of their
4366 # values after options handling.
4368 This file was extended by $as_me, which was
4369 generated by GNU Autoconf 2.61. Invocation command line was
4371 CONFIG_FILES = $CONFIG_FILES
4372 CONFIG_HEADERS = $CONFIG_HEADERS
4373 CONFIG_LINKS = $CONFIG_LINKS
4374 CONFIG_COMMANDS = $CONFIG_COMMANDS
4377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4382 cat >>$CONFIG_STATUS <<_ACEOF
4383 # Files that config.status was made for.
4384 config_files="$ac_config_files"
4388 cat >>$CONFIG_STATUS <<\_ACEOF
4390 \`$as_me' instantiates files from templates according to the
4391 current configuration.
4393 Usage: $0 [OPTIONS] [FILE]...
4395 -h, --help print this help, then exit
4396 -V, --version print version number and configuration settings, then exit
4397 -q, --quiet do not print progress messages
4398 -d, --debug don't remove temporary files
4399 --recheck update $as_me by reconfiguring in the same conditions
4400 --file=FILE[:TEMPLATE]
4401 instantiate the configuration file FILE
4403 Configuration files:
4406 Report bugs to <bug-autoconf@gnu.org>."
4409 cat >>$CONFIG_STATUS <<_ACEOF
4412 configured by $0, generated by GNU Autoconf 2.61,
4413 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4415 Copyright (C) 2006 Free Software Foundation, Inc.
4416 This config.status script is free software; the Free Software Foundation
4417 gives unlimited permission to copy, distribute and modify it."
4423 cat >>$CONFIG_STATUS <<\_ACEOF
4424 # If no file are specified by the user, then we need to provide default
4425 # value. By we need to know if files were specified by the user.
4431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4443 # Handling of the options.
4444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4446 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4447 echo "$ac_cs_version"; exit ;;
4448 --debug | --debu | --deb | --de | --d | -d )
4450 --file | --fil | --fi | --f )
4452 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4453 ac_need_defaults=false;;
4454 --he | --h | --help | --hel | -h )
4455 echo "$ac_cs_usage"; exit ;;
4456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4461 -*) { echo "$as_me: error: unrecognized option: $1
4462 Try \`$0 --help' for more information." >&2
4463 { (exit 1); exit 1; }; } ;;
4465 *) ac_config_targets="$ac_config_targets $1"
4466 ac_need_defaults=false ;;
4472 ac_configure_extra_args=
4474 if $ac_cs_silent; then
4476 ac_configure_extra_args="$ac_configure_extra_args --silent"
4480 cat >>$CONFIG_STATUS <<_ACEOF
4481 if \$ac_cs_recheck; then
4482 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4485 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4489 cat >>$CONFIG_STATUS <<\_ACEOF
4493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4494 ## Running $as_me. ##
4500 cat >>$CONFIG_STATUS <<_ACEOF
4503 cat >>$CONFIG_STATUS <<\_ACEOF
4505 # Handling of arguments.
4506 for ac_config_target in $ac_config_targets
4508 case $ac_config_target in
4509 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4511 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4512 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4513 { (exit 1); exit 1; }; };;
4518 # If the user did not use the arguments to specify the items to instantiate,
4519 # then the envvar interface is used. Set only those that are not.
4520 # We use the long form for the default assignment because of an extremely
4521 # bizarre bug on SunOS 4.1.3.
4522 if $ac_need_defaults; then
4523 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4526 # Have a temporary directory for convenience. Make it in the build tree
4527 # simply because there is no reason against having it here, and in addition,
4528 # creating and moving files from /tmp can sometimes cause problems.
4529 # Hook for its removal unless debugging.
4530 # Note that there is a small window in which the directory will not be cleaned:
4531 # after its creation but before its name has been assigned to `$tmp'.
4535 trap 'exit_status=$?
4536 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4538 trap '{ (exit 1); exit 1; }' 1 2 13 15
4540 # Create a (secure) tmp directory for tmp files.
4543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4544 test -n "$tmp" && test -d "$tmp"
4547 tmp=./conf$$-$RANDOM
4548 (umask 077 && mkdir "$tmp")
4551 echo "$me: cannot create a temporary directory in ." >&2
4552 { (exit 1); exit 1; }
4556 # Set up the sed scripts for CONFIG_FILES section.
4559 # No need to generate the scripts if there are no CONFIG_FILES.
4560 # This happens for instance when ./config.status config.h
4561 if test -n "$CONFIG_FILES"; then
4568 for ac_last_try in false false false false false :; do
4569 cat >conf$$subs.sed <<_ACEOF
4570 SHELL!$SHELL$ac_delim
4571 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4572 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4573 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4574 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4575 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4576 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4577 exec_prefix!$exec_prefix$ac_delim
4578 prefix!$prefix$ac_delim
4579 program_transform_name!$program_transform_name$ac_delim
4580 bindir!$bindir$ac_delim
4581 sbindir!$sbindir$ac_delim
4582 libexecdir!$libexecdir$ac_delim
4583 datarootdir!$datarootdir$ac_delim
4584 datadir!$datadir$ac_delim
4585 sysconfdir!$sysconfdir$ac_delim
4586 sharedstatedir!$sharedstatedir$ac_delim
4587 localstatedir!$localstatedir$ac_delim
4588 includedir!$includedir$ac_delim
4589 oldincludedir!$oldincludedir$ac_delim
4590 docdir!$docdir$ac_delim
4591 infodir!$infodir$ac_delim
4592 htmldir!$htmldir$ac_delim
4593 dvidir!$dvidir$ac_delim
4594 pdfdir!$pdfdir$ac_delim
4595 psdir!$psdir$ac_delim
4596 libdir!$libdir$ac_delim
4597 localedir!$localedir$ac_delim
4598 mandir!$mandir$ac_delim
4600 ECHO_C!$ECHO_C$ac_delim
4601 ECHO_N!$ECHO_N$ac_delim
4602 ECHO_T!$ECHO_T$ac_delim
4604 build_alias!$build_alias$ac_delim
4605 host_alias!$host_alias$ac_delim
4606 target_alias!$target_alias$ac_delim
4608 CFLAGS!$CFLAGS$ac_delim
4609 LDFLAGS!$LDFLAGS$ac_delim
4610 CPPFLAGS!$CPPFLAGS$ac_delim
4611 ac_ct_CC!$ac_ct_CC$ac_delim
4612 EXEEXT!$EXEEXT$ac_delim
4613 OBJEXT!$OBJEXT$ac_delim
4615 ldap_ldflags!$ldap_ldflags$ac_delim
4616 ldap_cflags!$ldap_cflags$ac_delim
4617 targetname!$targetname$ac_delim
4618 LIBOBJS!$LIBOBJS$ac_delim
4619 LTLIBOBJS!$LTLIBOBJS$ac_delim
4622 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
4624 elif $ac_last_try; then
4625 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4626 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4627 { (exit 1); exit 1; }; }
4629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4633 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4634 if test -n "$ac_eof"; then
4635 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4636 ac_eof=`expr $ac_eof + 1`
4639 cat >>$CONFIG_STATUS <<_ACEOF
4640 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4644 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4645 s/^/s,@/; s/!/@,|#_!!_#|/
4648 s/'"$ac_delim"'$/,g/; t
4650 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4651 ' >>$CONFIG_STATUS <conf$$subs.sed
4652 rm -f conf$$subs.sed
4653 cat >>$CONFIG_STATUS <<_ACEOF
4660 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4661 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4662 # trailing colons and then remove the whole line if VPATH becomes empty
4663 # (actually we leave an empty line to preserve line numbers).
4664 if test "x$srcdir" = x.; then
4665 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4669 s/^\([^=]*=[ ]*\):*/\1/
4675 cat >>$CONFIG_STATUS <<\_ACEOF
4676 fi # test -n "$CONFIG_FILES"
4679 for ac_tag in :F $CONFIG_FILES
4682 :[FHLC]) ac_mode=$ac_tag; continue;;
4684 case $ac_mode$ac_tag in
4686 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4687 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4688 { (exit 1); exit 1; }; };;
4689 :[FH]-) ac_tag=-:-;;
4690 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4707 -) ac_f="$tmp/stdin";;
4708 *) # Look for the file first in the build tree, then in the source tree
4709 # (if the path is not absolute). The absolute path cannot be DOS-style,
4710 # because $ac_f cannot contain `:'.
4714 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4716 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4717 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4718 { (exit 1); exit 1; }; };;
4720 ac_file_inputs="$ac_file_inputs $ac_f"
4723 # Let's still pretend it is `configure' which instantiates (i.e., don't
4724 # use $as_me), people would be surprised to read:
4725 # /* config.h. Generated by config.status. */
4726 configure_input="Generated from "`IFS=:
4727 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4728 if test x"$ac_file" != x-; then
4729 configure_input="$ac_file. $configure_input"
4730 { echo "$as_me:$LINENO: creating $ac_file" >&5
4731 echo "$as_me: creating $ac_file" >&6;}
4735 *:-:* | *:-) cat >"$tmp/stdin";;
4740 ac_dir=`$as_dirname -- "$ac_file" ||
4741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4742 X"$ac_file" : 'X\(//\)[^/]' \| \
4743 X"$ac_file" : 'X\(//\)$' \| \
4744 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4765 -*) as_dir=./$as_dir;;
4767 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4771 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4772 *) as_qdir=$as_dir;;
4774 as_dirs="'$as_qdir' $as_dirs"
4775 as_dir=`$as_dirname -- "$as_dir" ||
4776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4777 X"$as_dir" : 'X\(//\)[^/]' \| \
4778 X"$as_dir" : 'X\(//\)$' \| \
4779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4798 test -d "$as_dir" && break
4800 test -z "$as_dirs" || eval "mkdir $as_dirs"
4801 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4802 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4803 { (exit 1); exit 1; }; }; }
4807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4809 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4810 # A ".." for each directory in $ac_dir_suffix.
4811 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4812 case $ac_top_builddir_sub in
4813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4817 ac_abs_top_builddir=$ac_pwd
4818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4819 # for backward compatibility:
4820 ac_top_builddir=$ac_top_build_prefix
4823 .) # We are building in place.
4825 ac_top_srcdir=$ac_top_builddir_sub
4826 ac_abs_top_srcdir=$ac_pwd ;;
4827 [\\/]* | ?:[\\/]* ) # Absolute name.
4828 ac_srcdir=$srcdir$ac_dir_suffix;
4829 ac_top_srcdir=$srcdir
4830 ac_abs_top_srcdir=$srcdir ;;
4832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4833 ac_top_srcdir=$ac_top_build_prefix$srcdir
4834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4847 cat >>$CONFIG_STATUS <<\_ACEOF
4848 # If the template does not know about datarootdir, expand it.
4849 # FIXME: This hack should be removed a few years after 2.60.
4850 ac_datarootdir_hack=; ac_datarootdir_seen=
4852 case `sed -n '/datarootdir/ {
4861 ' $ac_file_inputs` in
4862 *datarootdir*) ac_datarootdir_seen=yes;;
4863 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4864 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4865 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4867 cat >>$CONFIG_STATUS <<_ACEOF
4868 ac_datarootdir_hack='
4869 s&@datadir@&$datadir&g
4870 s&@docdir@&$docdir&g
4871 s&@infodir@&$infodir&g
4872 s&@localedir@&$localedir&g
4873 s&@mandir@&$mandir&g
4874 s&\\\${datarootdir}&$datarootdir&g' ;;
4878 # Neutralize VPATH when `$srcdir' = `.'.
4879 # Shell code in configure.ac might set extrasub.
4880 # FIXME: do we really want to maintain this feature?
4881 cat >>$CONFIG_STATUS <<_ACEOF
4885 cat >>$CONFIG_STATUS <<\_ACEOF
4887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4888 s&@configure_input@&$configure_input&;t t
4889 s&@top_builddir@&$ac_top_builddir_sub&;t t
4890 s&@srcdir@&$ac_srcdir&;t t
4891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4892 s&@top_srcdir@&$ac_top_srcdir&;t t
4893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4894 s&@builddir@&$ac_builddir&;t t
4895 s&@abs_builddir@&$ac_abs_builddir&;t t
4896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4897 $ac_datarootdir_hack
4898 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4901 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4903 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4904 which seems to be undefined. Please make sure it is defined." >&5
4905 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4906 which seems to be undefined. Please make sure it is defined." >&2;}
4910 -) cat "$tmp/out"; rm -f "$tmp/out";;
4911 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4922 { (exit 0); exit 0; }
4924 chmod +x $CONFIG_STATUS
4925 ac_clean_files=$ac_clean_files_save
4928 # configure is writing to config.log, and then calls config.status.
4929 # config.status does its own redirection, appending to config.log.
4930 # Unfortunately, on DOS this fails, as config.log is still kept open
4931 # by configure, so config.status won't be able to write to it; its
4932 # output is simply discarded. So we exec the FD to /dev/null,
4933 # effectively closing config.log, so it can be properly (re)opened and
4934 # appended to by config.status. When coming back to configure, we
4935 # need to make the FD available again.
4936 if test "$no_create" != yes; then
4938 ac_config_status_args=
4939 test "$silent" = yes &&
4940 ac_config_status_args="$ac_config_status_args --quiet"
4942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4945 # would make configure fail if this is the last instruction.
4946 $ac_cs_success || { (exit 1); exit 1; }