1 --- a/src/modules/rlm_ldap/configure
2 +++ b/src/modules/rlm_ldap/configure
5 -# From configure.in Revision: 1.10.2.4 .
6 +# From configure.in Revision.
7 # Guess values for system-dependent variables and create Makefiles.
8 -# Generated by GNU Autoconf 2.61.
9 +# Generated by GNU Autoconf 2.63.
11 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12 -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
13 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## --------------------- ##
17 @@ -16,7 +16,7 @@ DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
26 @@ -38,17 +38,45 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
27 as_cr_digits='0123456789'
28 as_cr_alnum=$as_cr_Letters$as_cr_digits
30 -# The user is always right.
31 -if test "${PATH_SEPARATOR+set}" != set; then
32 - echo "#! /bin/sh" >conf$$.sh
33 - echo "exit 0" >>conf$$.sh
35 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
41 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45 + as_echo='printf %s\n'
46 + as_echo_n='printf %s'
48 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
49 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50 + as_echo_n='/usr/ucb/echo -n'
53 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
54 + as_echo_n_body='eval
58 + expr "X$arg" : "X\\(.*\\)$as_nl";
59 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 + export as_echo_n_body
64 + as_echo_n='sh -c $as_echo_n_body as_echo'
68 + as_echo='sh -c $as_echo_body as_echo'
71 +# The user is always right.
72 +if test "${PATH_SEPARATOR+set}" != set; then
74 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 # Support unset when possible.
82 # there to prevent editors from complaining about space-tab.
83 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
84 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
90 @@ -88,7 +114,7 @@ if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
99 @@ -101,17 +127,10 @@ PS2='> '
104 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 - LC_TELEPHONE LC_TIME
108 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 - eval $as_var=C; export $as_var
111 - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 @@ -133,7 +152,7 @@ as_me=`$as_basename -- "$0" ||
122 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
123 X"$0" : 'X\(//\)$' \| \
124 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
127 sed '/^.*\/\([^/][^/]*\)\/*$/{
130 @@ -159,7 +178,7 @@ else
134 - if test $as_have_required = yes && (eval ":
135 + if test $as_have_required = yes && (eval ":
139 @@ -241,7 +260,7 @@ IFS=$as_save_IFS
140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
143 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
144 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '${1+"$@"}'='"$@"'
148 @@ -262,7 +281,7 @@ _ASEOF
149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
152 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
153 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
154 # is contrary to our usage. Disable this feature.
155 alias -g '${1+"$@"}'='"$@"'
157 @@ -342,10 +361,10 @@ fi
159 if test "x$CONFIG_SHELL" != x; then
160 for as_var in BASH_ENV ENV
161 - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
163 - export CONFIG_SHELL
164 - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
165 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
167 + export CONFIG_SHELL
168 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
172 @@ -414,9 +433,10 @@ fi
174 test \$exitcode = 0") || {
175 echo No shell found that supports shell functions.
176 - echo Please tell autoconf@gnu.org about your system,
177 - echo including any error possibly output before this
179 + echo Please tell bug-autoconf@gnu.org about your system,
180 + echo including any error possibly output before this message.
181 + echo This can help us improve future autoconf versions.
182 + echo Configuration will now proceed without shell functions.
186 @@ -452,7 +472,7 @@ test \$exitcode = 0") || {
189 chmod +x "$as_me.lineno" ||
190 - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
191 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
192 { (exit 1); exit 1; }; }
194 # Don't try to exec as it changes $[0], causing all sort of problems
195 @@ -480,7 +500,6 @@ case `echo -n x` in
200 if expr a : '\(a\)' >/dev/null 2>&1 &&
201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
203 @@ -493,19 +512,22 @@ if test -d conf$$.dir; then
204 rm -f conf$$.dir/conf$$.file
208 + mkdir conf$$.dir 2>/dev/null
211 -if ln -s conf$$.file conf$$ 2>/dev/null; then
213 - # ... but there are two gotchas:
214 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
215 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
216 - # In both cases, we have to default to `cp -p'.
217 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
218 +if (echo >conf$$.file) 2>/dev/null; then
219 + if ln -s conf$$.file conf$$ 2>/dev/null; then
221 + # ... but there are two gotchas:
222 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
223 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
224 + # In both cases, we have to default to `cp -p'.
225 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
227 + elif ln conf$$.file conf$$ 2>/dev/null; then
231 -elif ln conf$$.file conf$$ 2>/dev/null; then
237 @@ -530,10 +552,10 @@ else
240 if test -d "$1"; then
248 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
249 ???[sx]*):;;*)false;;esac;fi
250 @@ -578,57 +600,65 @@ PACKAGE_STRING=
253 ac_unique_file="rlm_ldap.c"
254 -ac_subst_vars='SHELL
263 -program_transform_name
302 +ac_subst_vars='LTLIBOBJS
343 +program_transform_name
355 +enable_option_checking
356 +with_rlm_ldap_lib_dir
357 +with_rlm_ldap_include_dir
362 ac_precious_vars='build_alias
365 @@ -642,6 +672,8 @@ CPPFLAGS'
366 # Initialize some variables set by options.
368 ac_init_version=false
369 +ac_unrecognized_opts=
370 +ac_unrecognized_sep=
371 # The variables have the same names as the options, with
372 # dashes changed to underlines.
374 @@ -740,13 +772,21 @@ do
375 datarootdir=$ac_optarg ;;
377 -disable-* | --disable-*)
378 - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
379 + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
380 # Reject names that are not valid shell variable names.
381 - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
382 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
383 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
384 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
385 { (exit 1); exit 1; }; }
386 - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
387 - eval enable_$ac_feature=no ;;
388 + ac_useropt_orig=$ac_useropt
389 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
390 + case $ac_user_opts in
392 +"enable_$ac_useropt"
394 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
395 + ac_unrecognized_sep=', ';;
397 + eval enable_$ac_useropt=no ;;
399 -docdir | --docdir | --docdi | --doc | --do)
401 @@ -759,13 +799,21 @@ do
404 -enable-* | --enable-*)
405 - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
409 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
411 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
412 { (exit 1); exit 1; }; }
413 - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
414 - eval enable_$ac_feature=\$ac_optarg ;;
415 + ac_useropt_orig=$ac_useropt
416 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
417 + case $ac_user_opts in
419 +"enable_$ac_useropt"
421 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
422 + ac_unrecognized_sep=', ';;
424 + eval enable_$ac_useropt=\$ac_optarg ;;
426 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
427 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
428 @@ -956,22 +1004,38 @@ do
432 - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
433 + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
436 - { echo "$as_me: error: invalid package name: $ac_package" >&2
437 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
438 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
439 { (exit 1); exit 1; }; }
440 - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
441 - eval with_$ac_package=\$ac_optarg ;;
442 + ac_useropt_orig=$ac_useropt
443 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
444 + case $ac_user_opts in
448 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
449 + ac_unrecognized_sep=', ';;
451 + eval with_$ac_useropt=\$ac_optarg ;;
453 -without-* | --without-*)
454 - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
455 + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
456 # Reject names that are not valid shell variable names.
457 - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
458 - { echo "$as_me: error: invalid package name: $ac_package" >&2
459 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
460 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
461 { (exit 1); exit 1; }; }
462 - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
463 - eval with_$ac_package=no ;;
464 + ac_useropt_orig=$ac_useropt
465 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
466 + case $ac_user_opts in
470 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
471 + ac_unrecognized_sep=', ';;
473 + eval with_$ac_useropt=no ;;
476 # Obsolete; use --with-x.
477 @@ -991,7 +1055,7 @@ do
478 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
479 x_libraries=$ac_optarg ;;
481 - -*) { echo "$as_me: error: unrecognized option: $ac_option
482 + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
486 @@ -1000,16 +1064,16 @@ Try \`$0 --help' for more information."
487 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
488 # Reject names that are not valid shell variable names.
489 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
490 - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
491 + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 eval $ac_envvar=\$ac_optarg
497 # FIXME: should be removed in autoconf 3.0.
498 - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
499 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
503 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
506 @@ -1018,22 +1082,38 @@ done
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 - { echo "$as_me: error: missing argument to $ac_option" >&2
511 + { $as_echo "$as_me: error: missing argument to $ac_option" >&2
512 { (exit 1); exit 1; }; }
515 -# Be sure to have absolute directory names.
516 +if test -n "$ac_unrecognized_opts"; then
517 + case $enable_option_checking in
519 + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
520 + { (exit 1); exit 1; }; } ;;
521 + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
525 +# Check all directory arguments for consistency.
526 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
527 datadir sysconfdir sharedstatedir localstatedir includedir \
528 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
529 libdir localedir mandir
531 eval ac_val=\$$ac_var
532 + # Remove trailing slashes.
535 + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
536 + eval $ac_var=\$ac_val;;
538 + # Be sure to have absolute directory names.
540 [\\/$]* | ?:[\\/]* ) continue;;
541 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
543 - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
544 + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
545 { (exit 1); exit 1; }; }
548 @@ -1048,7 +1128,7 @@ target=$target_alias
549 if test "x$host_alias" != x; then
550 if test "x$build_alias" = x; then
551 cross_compiling=maybe
552 - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
553 + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
554 If a cross compiler is detected then cross compile mode will be used." >&2
555 elif test "x$build_alias" != "x$host_alias"; then
557 @@ -1064,10 +1144,10 @@ test "$silent" = yes && exec 6>/dev/null
558 ac_pwd=`pwd` && test -n "$ac_pwd" &&
559 ac_ls_di=`ls -di .` &&
560 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
561 - { echo "$as_me: error: Working directory cannot be determined" >&2
562 + { $as_echo "$as_me: error: working directory cannot be determined" >&2
563 { (exit 1); exit 1; }; }
564 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
565 - { echo "$as_me: error: pwd does not report name of working directory" >&2
566 + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
567 { (exit 1); exit 1; }; }
570 @@ -1075,12 +1155,12 @@ test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
571 if test -z "$srcdir"; then
572 ac_srcdir_defaulted=yes
573 # Try the directory containing this script, then the parent directory.
574 - ac_confdir=`$as_dirname -- "$0" ||
575 -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
576 - X"$0" : 'X\(//\)[^/]' \| \
577 - X"$0" : 'X\(//\)$' \| \
578 - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
580 + ac_confdir=`$as_dirname -- "$as_myself" ||
581 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
582 + X"$as_myself" : 'X\(//\)[^/]' \| \
583 + X"$as_myself" : 'X\(//\)$' \| \
584 + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
585 +$as_echo X"$as_myself" |
586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
589 @@ -1107,12 +1187,12 @@ else
591 if test ! -r "$srcdir/$ac_unique_file"; then
592 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
593 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
594 + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
595 { (exit 1); exit 1; }; }
597 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
599 - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
600 + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
601 { (exit 1); exit 1; }; }
603 # When building in place, set srcdir=.
604 @@ -1161,9 +1241,9 @@ Configuration:
606 Installation directories:
607 --prefix=PREFIX install architecture-independent files in PREFIX
608 - [$ac_default_prefix]
609 + [$ac_default_prefix]
610 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
614 By default, \`make install' will install all the files in
615 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
616 @@ -1173,25 +1253,25 @@ for instance \`--prefix=\$HOME'.
617 For better control, use the options below.
619 Fine tuning of the installation directories:
620 - --bindir=DIR user executables [EPREFIX/bin]
621 - --sbindir=DIR system admin executables [EPREFIX/sbin]
622 - --libexecdir=DIR program executables [EPREFIX/libexec]
623 - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
624 - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
625 - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
626 - --libdir=DIR object code libraries [EPREFIX/lib]
627 - --includedir=DIR C header files [PREFIX/include]
628 - --oldincludedir=DIR C header files for non-gcc [/usr/include]
629 - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
630 - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
631 - --infodir=DIR info documentation [DATAROOTDIR/info]
632 - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
633 - --mandir=DIR man documentation [DATAROOTDIR/man]
634 - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
635 - --htmldir=DIR html documentation [DOCDIR]
636 - --dvidir=DIR dvi documentation [DOCDIR]
637 - --pdfdir=DIR pdf documentation [DOCDIR]
638 - --psdir=DIR ps documentation [DOCDIR]
639 + --bindir=DIR user executables [EPREFIX/bin]
640 + --sbindir=DIR system admin executables [EPREFIX/sbin]
641 + --libexecdir=DIR program executables [EPREFIX/libexec]
642 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
643 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
644 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
645 + --libdir=DIR object code libraries [EPREFIX/lib]
646 + --includedir=DIR C header files [PREFIX/include]
647 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
648 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
649 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
650 + --infodir=DIR info documentation [DATAROOTDIR/info]
651 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
652 + --mandir=DIR man documentation [DATAROOTDIR/man]
653 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
654 + --htmldir=DIR html documentation [DOCDIR]
655 + --dvidir=DIR dvi documentation [DOCDIR]
656 + --pdfdir=DIR pdf documentation [DOCDIR]
657 + --psdir=DIR ps documentation [DOCDIR]
661 @@ -1203,6 +1283,7 @@ if test -n "$ac_init_help"; then
665 + --disable-option-checking ignore unrecognized --enable/--with options
666 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
667 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
668 --enable-shared[=PKGS] build shared libraries [default=yes]
669 @@ -1234,15 +1315,17 @@ fi
670 if test "$ac_init_help" = "recursive"; then
671 # If there are subdirs, report their specific --help.
672 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
673 - test -d "$ac_dir" || continue
674 + test -d "$ac_dir" ||
675 + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
682 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
683 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
684 # A ".." for each directory in $ac_dir_suffix.
685 - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
686 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
687 case $ac_top_builddir_sub in
688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
690 @@ -1278,7 +1361,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
692 $SHELL "$ac_srcdir/configure" --help=recursive
694 - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
695 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
697 cd "$ac_pwd" || { ac_status=$?; break; }
699 @@ -1288,10 +1371,10 @@ test -n "$ac_init_help" && exit $ac_stat
700 if $ac_init_version; then
703 -generated by GNU Autoconf 2.61
704 +generated by GNU Autoconf 2.63
706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
707 -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
708 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
709 This configure script is free software; the Free Software Foundation
710 gives unlimited permission to copy, distribute and modify it.
712 @@ -1302,7 +1385,7 @@ This file contains any messages produced
713 running configure, to aid debugging if configure makes a mistake.
715 It was created by $as_me, which was
716 -generated by GNU Autoconf 2.61. Invocation command line was
717 +generated by GNU Autoconf 2.63. Invocation command line was
721 @@ -1338,7 +1421,7 @@ for as_dir in $PATH
724 test -z "$as_dir" && as_dir=.
725 - echo "PATH: $as_dir"
726 + $as_echo "PATH: $as_dir"
730 @@ -1373,7 +1456,7 @@ do
731 | -silent | --silent | --silen | --sile | --sil)
734 - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
735 + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
738 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
739 @@ -1425,11 +1508,12 @@ _ASBOX
743 - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
744 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
745 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
746 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
749 _ | IFS | as_nl) ;; #(
750 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
751 *) $as_unset $ac_var ;;
754 @@ -1459,9 +1543,9 @@ _ASBOX
756 eval ac_val=\$$ac_var
758 - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
759 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
761 - echo "$ac_var='\''$ac_val'\''"
762 + $as_echo "$ac_var='\''$ac_val'\''"
766 @@ -1476,9 +1560,9 @@ _ASBOX
768 eval ac_val=\$$ac_var
770 - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
771 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
773 - echo "$ac_var='\''$ac_val'\''"
774 + $as_echo "$ac_var='\''$ac_val'\''"
778 @@ -1494,8 +1578,8 @@ _ASBOX
781 test "$ac_signal" != 0 &&
782 - echo "$as_me: caught signal $ac_signal"
783 - echo "$as_me: exit $exit_status"
784 + $as_echo "$as_me: caught signal $ac_signal"
785 + $as_echo "$as_me: exit $exit_status"
787 rm -f core *.core core.conftest.* &&
788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
789 @@ -1537,21 +1621,24 @@ _ACEOF
792 # Let the site file select an alternate cache file if it wants to.
793 -# Prefer explicitly selected file to automatically selected ones.
794 +# Prefer an explicitly selected file to automatically selected ones.
797 if test -n "$CONFIG_SITE"; then
798 - set x "$CONFIG_SITE"
799 + ac_site_file1=$CONFIG_SITE
800 elif test "x$prefix" != xNONE; then
801 - set x "$prefix/share/config.site" "$prefix/etc/config.site"
802 + ac_site_file1=$prefix/share/config.site
803 + ac_site_file2=$prefix/etc/config.site
805 - set x "$ac_default_prefix/share/config.site" \
806 - "$ac_default_prefix/etc/config.site"
807 + ac_site_file1=$ac_default_prefix/share/config.site
808 + ac_site_file2=$ac_default_prefix/etc/config.site
812 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
814 + test "x$ac_site_file" = xNONE && continue
815 if test -r "$ac_site_file"; then
816 - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
817 -echo "$as_me: loading site script $ac_site_file" >&6;}
818 + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
819 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
820 sed 's/^/| /' "$ac_site_file" >&5
823 @@ -1561,16 +1648,16 @@ if test -r "$cache_file"; then
824 # Some versions of bash will fail to source /dev/null (special
825 # files actually), so we avoid doing that.
826 if test -f "$cache_file"; then
827 - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
828 -echo "$as_me: loading cache $cache_file" >&6;}
829 + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
830 +$as_echo "$as_me: loading cache $cache_file" >&6;}
832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
833 *) . "./$cache_file";;
837 - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
838 -echo "$as_me: creating cache $cache_file" >&6;}
839 + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
840 +$as_echo "$as_me: creating cache $cache_file" >&6;}
844 @@ -1584,29 +1671,38 @@ for ac_var in $ac_precious_vars; do
845 eval ac_new_val=\$ac_env_${ac_var}_value
846 case $ac_old_set,$ac_new_set in
848 - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
849 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
850 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
851 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
852 ac_cache_corrupted=: ;;
854 - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
855 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
856 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
857 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
858 ac_cache_corrupted=: ;;
861 if test "x$ac_old_val" != "x$ac_new_val"; then
862 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
863 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
864 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
865 -echo "$as_me: former value: $ac_old_val" >&2;}
866 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
867 -echo "$as_me: current value: $ac_new_val" >&2;}
868 - ac_cache_corrupted=:
869 + # differences in whitespace do not lead to failure.
870 + ac_old_val_w=`echo x $ac_old_val`
871 + ac_new_val_w=`echo x $ac_new_val`
872 + if test "$ac_old_val_w" != "$ac_new_val_w"; then
873 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
874 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
875 + ac_cache_corrupted=:
877 + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
878 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
879 + eval $ac_var=\$ac_old_val
881 + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
882 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
883 + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
884 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
887 # Pass precious variables to config.status.
888 if test "$ac_new_set" = set; then
890 - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
891 + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
892 *) ac_arg=$ac_var=$ac_new_val ;;
894 case " $ac_configure_args " in
895 @@ -1616,10 +1712,12 @@ echo "$as_me: current value: $ac_new_v
898 if $ac_cache_corrupted; then
899 - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
900 -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
901 - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
902 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
903 + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
904 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
905 + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
906 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
907 + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
908 +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
909 { (exit 1); exit 1; }; }
912 @@ -1662,10 +1760,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
913 if test -n "$ac_tool_prefix"; then
914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
916 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
917 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
918 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
919 +$as_echo_n "checking for $ac_word... " >&6; }
920 if test "${ac_cv_prog_CC+set}" = set; then
921 - echo $ECHO_N "(cached) $ECHO_C" >&6
922 + $as_echo_n "(cached) " >&6
924 if test -n "$CC"; then
925 ac_cv_prog_CC="$CC" # Let the user override the test.
926 @@ -1678,7 +1776,7 @@ do
927 for ac_exec_ext in '' $ac_executable_extensions; do
928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
930 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
931 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
935 @@ -1689,11 +1787,11 @@ fi
938 if test -n "$CC"; then
939 - { echo "$as_me:$LINENO: result: $CC" >&5
940 -echo "${ECHO_T}$CC" >&6; }
941 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
942 +$as_echo "$CC" >&6; }
944 - { echo "$as_me:$LINENO: result: no" >&5
945 -echo "${ECHO_T}no" >&6; }
946 + { $as_echo "$as_me:$LINENO: result: no" >&5
947 +$as_echo "no" >&6; }
951 @@ -1702,10 +1800,10 @@ if test -z "$ac_cv_prog_CC"; then
953 # Extract the first word of "gcc", so it can be a program name with args.
954 set dummy gcc; ac_word=$2
955 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
956 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
957 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
958 +$as_echo_n "checking for $ac_word... " >&6; }
959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
960 - echo $ECHO_N "(cached) $ECHO_C" >&6
961 + $as_echo_n "(cached) " >&6
963 if test -n "$ac_ct_CC"; then
964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
965 @@ -1718,7 +1816,7 @@ do
966 for ac_exec_ext in '' $ac_executable_extensions; do
967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
968 ac_cv_prog_ac_ct_CC="gcc"
969 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
970 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
974 @@ -1729,11 +1827,11 @@ fi
976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
977 if test -n "$ac_ct_CC"; then
978 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
979 -echo "${ECHO_T}$ac_ct_CC" >&6; }
980 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
981 +$as_echo "$ac_ct_CC" >&6; }
983 - { echo "$as_me:$LINENO: result: no" >&5
984 -echo "${ECHO_T}no" >&6; }
985 + { $as_echo "$as_me:$LINENO: result: no" >&5
986 +$as_echo "no" >&6; }
989 if test "x$ac_ct_CC" = x; then
990 @@ -1741,12 +1839,8 @@ fi
992 case $cross_compiling:$ac_tool_warned in
994 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
995 -whose name does not start with the host triplet. If you think this
996 -configuration is useful to you, please write to autoconf@gnu.org." >&5
997 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
998 -whose name does not start with the host triplet. If you think this
999 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1000 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1001 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1002 ac_tool_warned=yes ;;
1005 @@ -1759,10 +1853,10 @@ if test -z "$CC"; then
1006 if test -n "$ac_tool_prefix"; then
1007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1008 set dummy ${ac_tool_prefix}cc; ac_word=$2
1009 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1010 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1011 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1012 +$as_echo_n "checking for $ac_word... " >&6; }
1013 if test "${ac_cv_prog_CC+set}" = set; then
1014 - echo $ECHO_N "(cached) $ECHO_C" >&6
1015 + $as_echo_n "(cached) " >&6
1017 if test -n "$CC"; then
1018 ac_cv_prog_CC="$CC" # Let the user override the test.
1019 @@ -1775,7 +1869,7 @@ do
1020 for ac_exec_ext in '' $ac_executable_extensions; do
1021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1022 ac_cv_prog_CC="${ac_tool_prefix}cc"
1023 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1024 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1028 @@ -1786,11 +1880,11 @@ fi
1031 if test -n "$CC"; then
1032 - { echo "$as_me:$LINENO: result: $CC" >&5
1033 -echo "${ECHO_T}$CC" >&6; }
1034 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
1035 +$as_echo "$CC" >&6; }
1037 - { echo "$as_me:$LINENO: result: no" >&5
1038 -echo "${ECHO_T}no" >&6; }
1039 + { $as_echo "$as_me:$LINENO: result: no" >&5
1040 +$as_echo "no" >&6; }
1044 @@ -1799,10 +1893,10 @@ fi
1045 if test -z "$CC"; then
1046 # Extract the first word of "cc", so it can be a program name with args.
1047 set dummy cc; ac_word=$2
1048 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1049 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1050 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1051 +$as_echo_n "checking for $ac_word... " >&6; }
1052 if test "${ac_cv_prog_CC+set}" = set; then
1053 - echo $ECHO_N "(cached) $ECHO_C" >&6
1054 + $as_echo_n "(cached) " >&6
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC="$CC" # Let the user override the test.
1058 @@ -1820,7 +1914,7 @@ do
1062 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1063 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1067 @@ -1843,11 +1937,11 @@ fi
1070 if test -n "$CC"; then
1071 - { echo "$as_me:$LINENO: result: $CC" >&5
1072 -echo "${ECHO_T}$CC" >&6; }
1073 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
1074 +$as_echo "$CC" >&6; }
1076 - { echo "$as_me:$LINENO: result: no" >&5
1077 -echo "${ECHO_T}no" >&6; }
1078 + { $as_echo "$as_me:$LINENO: result: no" >&5
1079 +$as_echo "no" >&6; }
1083 @@ -1858,10 +1952,10 @@ if test -z "$CC"; then
1085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1087 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1088 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1089 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1090 +$as_echo_n "checking for $ac_word... " >&6; }
1091 if test "${ac_cv_prog_CC+set}" = set; then
1092 - echo $ECHO_N "(cached) $ECHO_C" >&6
1093 + $as_echo_n "(cached) " >&6
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 @@ -1874,7 +1968,7 @@ do
1098 for ac_exec_ext in '' $ac_executable_extensions; do
1099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1101 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1102 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1106 @@ -1885,11 +1979,11 @@ fi
1109 if test -n "$CC"; then
1110 - { echo "$as_me:$LINENO: result: $CC" >&5
1111 -echo "${ECHO_T}$CC" >&6; }
1112 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
1113 +$as_echo "$CC" >&6; }
1115 - { echo "$as_me:$LINENO: result: no" >&5
1116 -echo "${ECHO_T}no" >&6; }
1117 + { $as_echo "$as_me:$LINENO: result: no" >&5
1118 +$as_echo "no" >&6; }
1122 @@ -1902,10 +1996,10 @@ if test -z "$CC"; then
1124 # Extract the first word of "$ac_prog", so it can be a program name with args.
1125 set dummy $ac_prog; ac_word=$2
1126 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1127 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1128 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1129 +$as_echo_n "checking for $ac_word... " >&6; }
1130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1131 - echo $ECHO_N "(cached) $ECHO_C" >&6
1132 + $as_echo_n "(cached) " >&6
1134 if test -n "$ac_ct_CC"; then
1135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1136 @@ -1918,7 +2012,7 @@ do
1137 for ac_exec_ext in '' $ac_executable_extensions; do
1138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1139 ac_cv_prog_ac_ct_CC="$ac_prog"
1140 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1141 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1145 @@ -1929,11 +2023,11 @@ fi
1147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1148 if test -n "$ac_ct_CC"; then
1149 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1150 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1151 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1152 +$as_echo "$ac_ct_CC" >&6; }
1154 - { echo "$as_me:$LINENO: result: no" >&5
1155 -echo "${ECHO_T}no" >&6; }
1156 + { $as_echo "$as_me:$LINENO: result: no" >&5
1157 +$as_echo "no" >&6; }
1161 @@ -1945,12 +2039,8 @@ done
1163 case $cross_compiling:$ac_tool_warned in
1165 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1166 -whose name does not start with the host triplet. If you think this
1167 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1168 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1169 -whose name does not start with the host triplet. If you think this
1170 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1171 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1172 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1173 ac_tool_warned=yes ;;
1176 @@ -1960,44 +2050,50 @@ fi
1180 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1181 +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1182 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1183 +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1184 See \`config.log' for more details." >&5
1185 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1186 +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
1187 See \`config.log' for more details." >&2;}
1188 - { (exit 1); exit 1; }; }
1189 + { (exit 1); exit 1; }; }; }
1191 # Provide some information about the compiler.
1192 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1193 -ac_compiler=`set X $ac_compile; echo $2`
1194 +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
1197 { (ac_try="$ac_compiler --version >&5"
1199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1200 *) ac_try_echo=$ac_try;;
1202 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1203 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1204 +$as_echo "$ac_try_echo") >&5
1205 (eval "$ac_compiler --version >&5") 2>&5
1207 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1208 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1209 (exit $ac_status); }
1210 { (ac_try="$ac_compiler -v >&5"
1212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1213 *) ac_try_echo=$ac_try;;
1215 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1216 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1217 +$as_echo "$ac_try_echo") >&5
1218 (eval "$ac_compiler -v >&5") 2>&5
1220 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1221 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1222 (exit $ac_status); }
1223 { (ac_try="$ac_compiler -V >&5"
1225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1226 *) ac_try_echo=$ac_try;;
1228 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1229 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1230 +$as_echo "$ac_try_echo") >&5
1231 (eval "$ac_compiler -V >&5") 2>&5
1233 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1234 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1235 (exit $ac_status); }
1237 cat >conftest.$ac_ext <<_ACEOF
1238 @@ -2016,27 +2112,22 @@ main ()
1241 ac_clean_files_save=$ac_clean_files
1242 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
1243 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1244 # Try to create an executable without -o first, disregard a.out.
1245 # It will help us diagnose broken compilers, and finding out an intuition
1247 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1248 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1249 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1251 -# List of possible output files, starting from the most likely.
1252 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1253 -# only as a last resort. b.out is created by i960 compilers.
1254 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1256 -# The IRIX 6 linker writes into existing files which may not be
1257 -# executable, retaining their permissions. Remove them first so a
1258 -# subsequent execution test works.
1259 +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1260 +$as_echo_n "checking for C compiler default output file name... " >&6; }
1261 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1263 +# The possible output files:
1264 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1267 for ac_file in $ac_files
1270 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1271 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1275 @@ -2047,10 +2138,11 @@ case "(($ac_try" in
1276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1277 *) ac_try_echo=$ac_try;;
1279 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1280 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1281 +$as_echo "$ac_try_echo") >&5
1282 (eval "$ac_link_default") 2>&5
1284 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1285 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1286 (exit $ac_status); }; then
1287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1289 @@ -2061,7 +2153,7 @@ for ac_file in $ac_files ''
1291 test -f "$ac_file" || continue
1293 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1294 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1297 # We found the default executable, but exeext='' is most
1298 @@ -2088,25 +2180,27 @@ else
1302 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
1303 -echo "${ECHO_T}$ac_file" >&6; }
1304 +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
1305 +$as_echo "$ac_file" >&6; }
1306 if test -z "$ac_file"; then
1307 - echo "$as_me: failed program was:" >&5
1308 + $as_echo "$as_me: failed program was:" >&5
1309 sed 's/^/| /' conftest.$ac_ext >&5
1311 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1312 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1313 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1314 +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
1315 See \`config.log' for more details." >&5
1316 -echo "$as_me: error: C compiler cannot create executables
1317 +$as_echo "$as_me: error: C compiler cannot create executables
1318 See \`config.log' for more details." >&2;}
1319 - { (exit 77); exit 77; }; }
1320 + { (exit 77); exit 77; }; }; }
1323 ac_exeext=$ac_cv_exeext
1325 # Check that the compiler produces executables we can run. If not, either
1326 # the compiler is broken, or we cross compile.
1327 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1328 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1329 +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1330 +$as_echo_n "checking whether the C compiler works... " >&6; }
1331 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1332 # If not cross compiling, check that we can run a simple program.
1333 if test "$cross_compiling" != yes; then
1334 @@ -2115,49 +2209,53 @@ if test "$cross_compiling" != yes; then
1335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1336 *) ac_try_echo=$ac_try;;
1338 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1339 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1340 +$as_echo "$ac_try_echo") >&5
1341 (eval "$ac_try") 2>&5
1343 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1344 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1345 (exit $ac_status); }; }; then
1348 if test "$cross_compiling" = maybe; then
1351 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1352 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1353 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1354 +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
1355 If you meant to cross compile, use \`--host'.
1356 See \`config.log' for more details." >&5
1357 -echo "$as_me: error: cannot run C compiled programs.
1358 +$as_echo "$as_me: error: cannot run C compiled programs.
1359 If you meant to cross compile, use \`--host'.
1360 See \`config.log' for more details." >&2;}
1361 - { (exit 1); exit 1; }; }
1362 + { (exit 1); exit 1; }; }; }
1366 -{ echo "$as_me:$LINENO: result: yes" >&5
1367 -echo "${ECHO_T}yes" >&6; }
1368 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
1369 +$as_echo "yes" >&6; }
1371 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
1372 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1373 ac_clean_files=$ac_clean_files_save
1374 # Check that the compiler produces executables we can run. If not, either
1375 # the compiler is broken, or we cross compile.
1376 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1377 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
1378 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
1379 -echo "${ECHO_T}$cross_compiling" >&6; }
1380 +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1381 +$as_echo_n "checking whether we are cross compiling... " >&6; }
1382 +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
1383 +$as_echo "$cross_compiling" >&6; }
1385 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
1386 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
1387 +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
1388 +$as_echo_n "checking for suffix of executables... " >&6; }
1389 if { (ac_try="$ac_link"
1391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1392 *) ac_try_echo=$ac_try;;
1394 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1395 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1396 +$as_echo "$ac_try_echo") >&5
1397 (eval "$ac_link") 2>&5
1399 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1400 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1401 (exit $ac_status); }; then
1402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1403 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1404 @@ -2166,31 +2264,33 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
1405 for ac_file in conftest.exe conftest conftest.*; do
1406 test -f "$ac_file" || continue
1408 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1409 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1416 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1417 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1418 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1419 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1420 See \`config.log' for more details." >&5
1421 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1422 +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1423 See \`config.log' for more details." >&2;}
1424 - { (exit 1); exit 1; }; }
1425 + { (exit 1); exit 1; }; }; }
1428 rm -f conftest$ac_cv_exeext
1429 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1430 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
1431 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1432 +$as_echo "$ac_cv_exeext" >&6; }
1434 rm -f conftest.$ac_ext
1435 EXEEXT=$ac_cv_exeext
1437 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
1438 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1439 +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
1440 +$as_echo_n "checking for suffix of object files... " >&6; }
1441 if test "${ac_cv_objext+set}" = set; then
1442 - echo $ECHO_N "(cached) $ECHO_C" >&6
1443 + $as_echo_n "(cached) " >&6
1445 cat >conftest.$ac_ext <<_ACEOF
1447 @@ -2213,40 +2313,43 @@ case "(($ac_try" in
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1451 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1452 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1453 +$as_echo "$ac_try_echo") >&5
1454 (eval "$ac_compile") 2>&5
1456 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1457 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1458 (exit $ac_status); }; then
1459 for ac_file in conftest.o conftest.obj conftest.*; do
1460 test -f "$ac_file" || continue;
1462 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1463 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1469 - echo "$as_me: failed program was:" >&5
1470 + $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1473 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1474 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1475 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1476 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1477 See \`config.log' for more details." >&5
1478 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
1479 +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
1480 See \`config.log' for more details." >&2;}
1481 - { (exit 1); exit 1; }; }
1482 + { (exit 1); exit 1; }; }; }
1485 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1487 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1488 -echo "${ECHO_T}$ac_cv_objext" >&6; }
1489 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1490 +$as_echo "$ac_cv_objext" >&6; }
1491 OBJEXT=$ac_cv_objext
1493 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1494 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1495 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1496 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1498 - echo $ECHO_N "(cached) $ECHO_C" >&6
1499 + $as_echo_n "(cached) " >&6
1501 cat >conftest.$ac_ext <<_ACEOF
1503 @@ -2272,20 +2375,21 @@ case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1507 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1508 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1509 +$as_echo "$ac_try_echo") >&5
1510 (eval "$ac_compile") 2>conftest.er1
1512 grep -v '^ *+' conftest.er1 >conftest.err
1514 cat conftest.err >&5
1515 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1516 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1517 (exit $ac_status); } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then
1523 - echo "$as_me: failed program was:" >&5
1524 + $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1528 @@ -2295,15 +2399,19 @@ rm -f core conftest.err conftest.$ac_obj
1529 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1532 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1533 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1534 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1535 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1536 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
1537 +if test $ac_compiler_gnu = yes; then
1542 ac_test_CFLAGS=${CFLAGS+set}
1543 ac_save_CFLAGS=$CFLAGS
1544 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1545 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1546 +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1547 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
1548 if test "${ac_cv_prog_cc_g+set}" = set; then
1549 - echo $ECHO_N "(cached) $ECHO_C" >&6
1550 + $as_echo_n "(cached) " >&6
1552 ac_save_c_werror_flag=$ac_c_werror_flag
1553 ac_c_werror_flag=yes
1554 @@ -2330,20 +2438,21 @@ case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1559 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1560 +$as_echo "$ac_try_echo") >&5
1561 (eval "$ac_compile") 2>conftest.er1
1563 grep -v '^ *+' conftest.er1 >conftest.err
1565 cat conftest.err >&5
1566 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1567 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1568 (exit $ac_status); } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then
1574 - echo "$as_me: failed program was:" >&5
1575 + $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1579 @@ -2368,20 +2477,21 @@ case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1584 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1585 +$as_echo "$ac_try_echo") >&5
1586 (eval "$ac_compile") 2>conftest.er1
1588 grep -v '^ *+' conftest.er1 >conftest.err
1590 cat conftest.err >&5
1591 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1592 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1593 (exit $ac_status); } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then
1599 - echo "$as_me: failed program was:" >&5
1600 + $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_c_werror_flag=$ac_save_c_werror_flag
1604 @@ -2407,20 +2517,21 @@ case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1609 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1610 +$as_echo "$ac_try_echo") >&5
1611 (eval "$ac_compile") 2>conftest.er1
1613 grep -v '^ *+' conftest.er1 >conftest.err
1615 cat conftest.err >&5
1616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1617 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618 (exit $ac_status); } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext; then
1624 - echo "$as_me: failed program was:" >&5
1625 + $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1629 @@ -2435,8 +2546,8 @@ fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 ac_c_werror_flag=$ac_save_c_werror_flag
1633 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1634 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1635 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1636 +$as_echo "$ac_cv_prog_cc_g" >&6; }
1637 if test "$ac_test_CFLAGS" = set; then
1638 CFLAGS=$ac_save_CFLAGS
1639 elif test $ac_cv_prog_cc_g = yes; then
1640 @@ -2452,10 +2563,10 @@ else
1644 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1645 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1646 +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1647 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1648 if test "${ac_cv_prog_cc_c89+set}" = set; then
1649 - echo $ECHO_N "(cached) $ECHO_C" >&6
1650 + $as_echo_n "(cached) " >&6
1652 ac_cv_prog_cc_c89=no
1654 @@ -2526,20 +2637,21 @@ case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1659 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1660 +$as_echo "$ac_try_echo") >&5
1661 (eval "$ac_compile") 2>conftest.er1
1663 grep -v '^ *+' conftest.er1 >conftest.err
1665 cat conftest.err >&5
1666 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1668 (exit $ac_status); } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then
1672 ac_cv_prog_cc_c89=$ac_arg
1674 - echo "$as_me: failed program was:" >&5
1675 + $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1679 @@ -2555,15 +2667,15 @@ fi
1681 case "x$ac_cv_prog_cc_c89" in
1683 - { echo "$as_me:$LINENO: result: none needed" >&5
1684 -echo "${ECHO_T}none needed" >&6; } ;;
1685 + { $as_echo "$as_me:$LINENO: result: none needed" >&5
1686 +$as_echo "none needed" >&6; } ;;
1688 - { echo "$as_me:$LINENO: result: unsupported" >&5
1689 -echo "${ECHO_T}unsupported" >&6; } ;;
1690 + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
1691 +$as_echo "unsupported" >&6; } ;;
1693 CC="$CC $ac_cv_prog_cc_c89"
1694 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1695 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1696 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1697 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1701 @@ -2581,8 +2693,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702 if test "${with_rlm_ldap_lib_dir+set}" = set; then
1703 withval=$with_rlm_ldap_lib_dir; case "$withval" in
1705 - { { echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
1706 -echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
1707 + { { $as_echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
1708 +$as_echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
1709 { (exit 1); exit 1; }; }
1712 @@ -2601,8 +2713,8 @@ fi
1713 if test "${with_rlm_ldap_include_dir+set}" = set; then
1714 withval=$with_rlm_ldap_include_dir; case "$withval" in
1716 - { { echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
1717 -echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
1718 + { { $as_echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
1719 +$as_echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
1720 { (exit 1); exit 1; }; }
1723 @@ -2641,8 +2753,8 @@ fi
1726 if test "x$enable_shared" = "xno"; then
1727 - { echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
1728 -echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
1729 + { $as_echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
1730 +$as_echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
1733 rlm_ldap_with_threads=yes
1734 @@ -2661,10 +2773,10 @@ fi
1737 if test "x$rlm_ldap_with_threads" = "xyes"; then
1738 - { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
1739 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
1740 + { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
1741 +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
1742 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
1743 - echo $ECHO_N "(cached) $ECHO_C" >&6
1744 + $as_echo_n "(cached) " >&6
1746 ac_check_lib_save_LIBS=$LIBS
1747 LIBS="-lpthread $LIBS"
1748 @@ -2696,39 +2808,43 @@ case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1753 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1754 +$as_echo "$ac_try_echo") >&5
1755 (eval "$ac_link") 2>conftest.er1
1757 grep -v '^ *+' conftest.er1 >conftest.err
1759 cat conftest.err >&5
1760 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 - } && test -s conftest$ac_exeext &&
1766 - $as_test_x conftest$ac_exeext; then
1767 + } && test -s conftest$ac_exeext && {
1768 + test "$cross_compiling" = yes ||
1769 + $as_test_x conftest$ac_exeext
1771 ac_cv_lib_pthread_pthread_create=yes
1773 - echo "$as_me: failed program was:" >&5
1774 + $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_cv_lib_pthread_pthread_create=no
1780 +rm -rf conftest.dSYM
1781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1782 conftest$ac_exeext conftest.$ac_ext
1783 LIBS=$ac_check_lib_save_LIBS
1785 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
1786 -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
1787 -if test $ac_cv_lib_pthread_pthread_create = yes; then
1788 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
1789 +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
1790 +if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
1791 LIBS="-lpthread $LIBS"
1793 - { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
1794 -echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
1795 + { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
1796 +$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
1797 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
1798 - echo $ECHO_N "(cached) $ECHO_C" >&6
1799 + $as_echo_n "(cached) " >&6
1801 ac_check_lib_save_LIBS=$LIBS
1803 @@ -2761,33 +2877,37 @@ case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1808 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1809 +$as_echo "$ac_try_echo") >&5
1810 (eval "$ac_link") 2>conftest.er1
1812 grep -v '^ *+' conftest.er1 >conftest.err
1814 cat conftest.err >&5
1815 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 - } && test -s conftest$ac_exeext &&
1821 - $as_test_x conftest$ac_exeext; then
1822 + } && test -s conftest$ac_exeext && {
1823 + test "$cross_compiling" = yes ||
1824 + $as_test_x conftest$ac_exeext
1826 ac_cv_lib_c_r_pthread_create=yes
1828 - echo "$as_me: failed program was:" >&5
1829 + $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_cv_lib_c_r_pthread_create=no
1835 +rm -rf conftest.dSYM
1836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1837 conftest$ac_exeext conftest.$ac_ext
1838 LIBS=$ac_check_lib_save_LIBS
1840 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
1841 -echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
1842 -if test $ac_cv_lib_c_r_pthread_create = yes; then
1843 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
1844 +$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
1845 +if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
1848 rlm_ldap_with_threads="no"
1849 @@ -2800,13 +2920,13 @@ fi
1852 smart_try_dir=$rlm_ldap_lib_dir
1853 - if test "x$rlm_ldap_with_threads" = "xyes"; then
1856 -sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
1857 -sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
1858 -{ echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
1859 -echo $ECHO_N "checking for ldap_init in -lldap_r... $ECHO_C" >&6; }
1861 +sm_lib_safe=`echo "sasl" | sed 'y%./+-%__p_%'`
1862 +sm_func_safe=`echo "sasl_encode" | sed 'y%./+-%__p_%'`
1863 +{ $as_echo "$as_me:$LINENO: checking for sasl_encode in -lsasl" >&5
1864 +$as_echo_n "checking for sasl_encode in -lsasl... " >&6; }
1868 @@ -2814,18 +2934,18 @@ smart_lib_dir=
1870 if test "x$smart_try_dir" != "x"; then
1871 for try in $smart_try_dir; do
1872 - LIBS="-L$try -lldap_r $old_LIBS"
1873 + LIBS="-L$try -lsasl $old_LIBS"
1874 cat >conftest.$ac_ext <<_ACEOF
1877 cat confdefs.h >>conftest.$ac_ext
1878 cat >>conftest.$ac_ext <<_ACEOF
1879 /* end confdefs.h. */
1880 -extern char ldap_init();
1881 +extern char sasl_encode();
1890 @@ -2836,26 +2956,30 @@ case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1895 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1896 +$as_echo "$ac_try_echo") >&5
1897 (eval "$ac_link") 2>conftest.er1
1899 grep -v '^ *+' conftest.er1 >conftest.err
1901 cat conftest.err >&5
1902 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 - } && test -s conftest$ac_exeext &&
1908 - $as_test_x conftest$ac_exeext; then
1909 - smart_lib="-L$try -lldap_r"
1910 + } && test -s conftest$ac_exeext && {
1911 + test "$cross_compiling" = yes ||
1912 + $as_test_x conftest$ac_exeext
1914 + smart_lib="-L$try -lsasl"
1916 - echo "$as_me: failed program was:" >&5
1917 + $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1923 +rm -rf conftest.dSYM
1924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1925 conftest$ac_exeext conftest.$ac_ext
1926 if test "x$smart_lib" != "x"; then
1927 @@ -2866,18 +2990,18 @@ rm -f core conftest.err conftest.$ac_obj
1930 if test "x$smart_lib" = "x"; then
1931 - LIBS="-lldap_r $old_LIBS"
1932 + LIBS="-lsasl $old_LIBS"
1933 cat >conftest.$ac_ext <<_ACEOF
1936 cat confdefs.h >>conftest.$ac_ext
1937 cat >>conftest.$ac_ext <<_ACEOF
1938 /* end confdefs.h. */
1939 -extern char ldap_init();
1940 +extern char sasl_encode();
1949 @@ -2888,26 +3012,30 @@ case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1954 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1955 +$as_echo "$ac_try_echo") >&5
1956 (eval "$ac_link") 2>conftest.er1
1958 grep -v '^ *+' conftest.er1 >conftest.err
1960 cat conftest.err >&5
1961 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 - } && test -s conftest$ac_exeext &&
1967 - $as_test_x conftest$ac_exeext; then
1968 - smart_lib="-lldap_r"
1969 + } && test -s conftest$ac_exeext && {
1970 + test "$cross_compiling" = yes ||
1971 + $as_test_x conftest$ac_exeext
1973 + smart_lib="-lsasl"
1975 - echo "$as_me: failed program was:" >&5
1976 + $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1982 +rm -rf conftest.dSYM
1983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1984 conftest$ac_exeext conftest.$ac_ext
1986 @@ -2918,7 +3046,7 @@ if test "x$smart_lib" = "x"; then
1988 if test "x$LOCATE" != "x"; then
1990 - file=libldap_r${libltdl_cv_shlibext}
1991 + file=libsasl${libltdl_cv_shlibext}
1993 for x in `${LOCATE} $file 2>/dev/null`; do
1994 base=`echo $x | sed "s%/${file}%%"`
1995 @@ -2945,7 +3073,7 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
1997 if test "x$LOCATE" != "x"; then
2002 for x in `${LOCATE} $file 2>/dev/null`; do
2003 base=`echo $x | sed "s%/${file}%%"`
2004 @@ -2970,18 +3098,18 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
2007 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2008 - LIBS="-L$try -lldap_r $old_LIBS"
2009 + LIBS="-L$try -lsasl $old_LIBS"
2010 cat >conftest.$ac_ext <<_ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2016 -extern char ldap_init();
2017 +extern char sasl_encode();
2026 @@ -2992,26 +3120,30 @@ case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2030 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2031 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2032 +$as_echo "$ac_try_echo") >&5
2033 (eval "$ac_link") 2>conftest.er1
2035 grep -v '^ *+' conftest.er1 >conftest.err
2037 cat conftest.err >&5
2038 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } && {
2041 test -z "$ac_c_werror_flag" ||
2042 test ! -s conftest.err
2043 - } && test -s conftest$ac_exeext &&
2044 - $as_test_x conftest$ac_exeext; then
2045 - smart_lib="-L$try -lldap_r"
2046 + } && test -s conftest$ac_exeext && {
2047 + test "$cross_compiling" = yes ||
2048 + $as_test_x conftest$ac_exeext
2050 + smart_lib="-L$try -lsasl"
2052 - echo "$as_me: failed program was:" >&5
2053 + $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2059 +rm -rf conftest.dSYM
2060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2061 conftest$ac_exeext conftest.$ac_ext
2062 if test "x$smart_lib" != "x"; then
2063 @@ -3022,26 +3154,22 @@ rm -f core conftest.err conftest.$ac_obj
2066 if test "x$smart_lib" != "x"; then
2067 - { echo "$as_me:$LINENO: result: yes" >&5
2068 -echo "${ECHO_T}yes" >&6; }
2069 + { $as_echo "$as_me:$LINENO: result: yes" >&5
2070 +$as_echo "yes" >&6; }
2071 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2072 LIBS="$smart_lib $old_LIBS"
2073 SMART_LIBS="$smart_lib $SMART_LIBS"
2075 - { echo "$as_me:$LINENO: result: no" >&5
2076 -echo "${ECHO_T}no" >&6; }
2077 + { $as_echo "$as_me:$LINENO: result: no" >&5
2078 +$as_echo "no" >&6; }
2081 - if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
2082 - fail="$fail libldap_r"
2087 -sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
2088 -sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2089 -{ echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
2090 -echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
2091 +sm_lib_safe=`echo "lber" | sed 'y%./+-%__p_%'`
2092 +sm_func_safe=`echo "ber_init" | sed 'y%./+-%__p_%'`
2093 +{ $as_echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
2094 +$as_echo_n "checking for ber_init in -llber... " >&6; }
2098 @@ -3049,18 +3177,18 @@ smart_lib_dir=
2100 if test "x$smart_try_dir" != "x"; then
2101 for try in $smart_try_dir; do
2102 - LIBS="-L$try -lldap $old_LIBS"
2103 + LIBS="-L$try -llber $old_LIBS"
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2110 -extern char ldap_init();
2111 +extern char ber_init();
2120 @@ -3071,26 +3199,30 @@ case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2126 +$as_echo "$ac_try_echo") >&5
2127 (eval "$ac_link") 2>conftest.er1
2129 grep -v '^ *+' conftest.er1 >conftest.err
2131 cat conftest.err >&5
2132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } && {
2135 test -z "$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 - } && test -s conftest$ac_exeext &&
2138 - $as_test_x conftest$ac_exeext; then
2139 - smart_lib="-L$try -lldap"
2140 + } && test -s conftest$ac_exeext && {
2141 + test "$cross_compiling" = yes ||
2142 + $as_test_x conftest$ac_exeext
2144 + smart_lib="-L$try -llber"
2146 - echo "$as_me: failed program was:" >&5
2147 + $as_echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2153 +rm -rf conftest.dSYM
2154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2155 conftest$ac_exeext conftest.$ac_ext
2156 if test "x$smart_lib" != "x"; then
2157 @@ -3101,18 +3233,18 @@ rm -f core conftest.err conftest.$ac_obj
2160 if test "x$smart_lib" = "x"; then
2161 - LIBS="-lldap $old_LIBS"
2162 + LIBS="-llber $old_LIBS"
2163 cat >conftest.$ac_ext <<_ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h. */
2169 -extern char ldap_init();
2170 +extern char ber_init();
2179 @@ -3123,26 +3255,30 @@ case "(($ac_try" in
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2185 +$as_echo "$ac_try_echo") >&5
2186 (eval "$ac_link") 2>conftest.er1
2188 grep -v '^ *+' conftest.er1 >conftest.err
2190 cat conftest.err >&5
2191 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 - } && test -s conftest$ac_exeext &&
2197 - $as_test_x conftest$ac_exeext; then
2198 - smart_lib="-lldap"
2199 + } && test -s conftest$ac_exeext && {
2200 + test "$cross_compiling" = yes ||
2201 + $as_test_x conftest$ac_exeext
2203 + smart_lib="-llber"
2205 - echo "$as_me: failed program was:" >&5
2206 + $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2212 +rm -rf conftest.dSYM
2213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2214 conftest$ac_exeext conftest.$ac_ext
2216 @@ -3153,7 +3289,7 @@ if test "x$smart_lib" = "x"; then
2218 if test "x$LOCATE" != "x"; then
2220 - file=libldap${libltdl_cv_shlibext}
2221 + file=liblber${libltdl_cv_shlibext}
2223 for x in `${LOCATE} $file 2>/dev/null`; do
2224 base=`echo $x | sed "s%/${file}%%"`
2225 @@ -3180,7 +3316,7 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
2227 if test "x$LOCATE" != "x"; then
2232 for x in `${LOCATE} $file 2>/dev/null`; do
2233 base=`echo $x | sed "s%/${file}%%"`
2234 @@ -3205,18 +3341,18 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
2237 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2238 - LIBS="-L$try -lldap $old_LIBS"
2239 + LIBS="-L$try -llber $old_LIBS"
2240 cat >conftest.$ac_ext <<_ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h. */
2246 -extern char ldap_init();
2247 +extern char ber_init();
2256 @@ -3227,26 +3363,30 @@ case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2262 +$as_echo "$ac_try_echo") >&5
2263 (eval "$ac_link") 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } && {
2271 test -z "$ac_c_werror_flag" ||
2272 test ! -s conftest.err
2273 - } && test -s conftest$ac_exeext &&
2274 - $as_test_x conftest$ac_exeext; then
2275 - smart_lib="-L$try -lldap"
2276 + } && test -s conftest$ac_exeext && {
2277 + test "$cross_compiling" = yes ||
2278 + $as_test_x conftest$ac_exeext
2280 + smart_lib="-L$try -llber"
2282 - echo "$as_me: failed program was:" >&5
2283 + $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2289 +rm -rf conftest.dSYM
2290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2291 conftest$ac_exeext conftest.$ac_ext
2292 if test "x$smart_lib" != "x"; then
2293 @@ -3257,136 +3397,144 @@ rm -f core conftest.err conftest.$ac_obj
2296 if test "x$smart_lib" != "x"; then
2297 - { echo "$as_me:$LINENO: result: yes" >&5
2298 -echo "${ECHO_T}yes" >&6; }
2299 + { $as_echo "$as_me:$LINENO: result: yes" >&5
2300 +$as_echo "yes" >&6; }
2301 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2302 LIBS="$smart_lib $old_LIBS"
2303 SMART_LIBS="$smart_lib $SMART_LIBS"
2305 - { echo "$as_me:$LINENO: result: no" >&5
2306 -echo "${ECHO_T}no" >&6; }
2307 + { $as_echo "$as_me:$LINENO: result: no" >&5
2308 +$as_echo "no" >&6; }
2311 - if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
2312 - fail="$fail libldap"
2317 - smart_try_dir=$rlm_ldap_include_dir
2318 + if test "x$rlm_ldap_with_threads" = "xyes"; then
2321 -ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
2322 -{ echo "$as_me:$LINENO: checking for ldap.h" >&5
2323 -echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
2324 +sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
2325 +sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2326 +{ $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
2327 +$as_echo_n "checking for ldap_init in -lldap_r... " >&6; }
2329 -old_CFLAGS="$CFLAGS"
2336 if test "x$smart_try_dir" != "x"; then
2337 for try in $smart_try_dir; do
2338 - CFLAGS="$old_CFLAGS -I$try"
2339 + LIBS="-L$try -lldap_r $old_LIBS"
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2348 +extern char ldap_init();
2358 -rm -f conftest.$ac_objext
2359 -if { (ac_try="$ac_compile"
2360 +rm -f conftest.$ac_objext conftest$ac_exeext
2361 +if { (ac_try="$ac_link"
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 - (eval "$ac_compile") 2>conftest.er1
2368 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2369 +$as_echo "$ac_try_echo") >&5
2370 + (eval "$ac_link") 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } && {
2378 test -z "$ac_c_werror_flag" ||
2379 test ! -s conftest.err
2380 - } && test -s conftest.$ac_objext; then
2381 - smart_include="-I$try"
2382 + } && test -s conftest$ac_exeext && {
2383 + test "$cross_compiling" = yes ||
2384 + $as_test_x conftest$ac_exeext
2386 + smart_lib="-L$try -lldap_r"
2388 - echo "$as_me: failed program was:" >&5
2389 + $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2396 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 - if test "x$smart_include" != "x"; then
2398 +rm -rf conftest.dSYM
2399 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2400 + conftest$ac_exeext conftest.$ac_ext
2401 + if test "x$smart_lib" != "x"; then
2405 - CFLAGS="$old_CFLAGS"
2409 -if test "x$smart_include" = "x"; then
2410 +if test "x$smart_lib" = "x"; then
2411 + LIBS="-lldap_r $old_LIBS"
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2420 +extern char ldap_init();
2430 -rm -f conftest.$ac_objext
2431 -if { (ac_try="$ac_compile"
2432 +rm -f conftest.$ac_objext conftest$ac_exeext
2433 +if { (ac_try="$ac_link"
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 - (eval "$ac_compile") 2>conftest.er1
2440 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2441 +$as_echo "$ac_try_echo") >&5
2442 + (eval "$ac_link") 2>conftest.er1
2444 grep -v '^ *+' conftest.er1 >conftest.err
2446 cat conftest.err >&5
2447 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } && {
2450 test -z "$ac_c_werror_flag" ||
2451 test ! -s conftest.err
2452 - } && test -s conftest.$ac_objext; then
2454 + } && test -s conftest$ac_exeext && {
2455 + test "$cross_compiling" = yes ||
2456 + $as_test_x conftest$ac_exeext
2458 + smart_lib="-lldap_r"
2460 - echo "$as_me: failed program was:" >&5
2461 + $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2468 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 +rm -rf conftest.dSYM
2470 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2471 + conftest$ac_exeext conftest.$ac_ext
2475 -if test "x$smart_include" = "x"; then
2476 +if test "x$smart_lib" = "x"; then
2479 if test "x$LOCATE" != "x"; then
2482 + file=libldap_r${libltdl_cv_shlibext}
2484 for x in `${LOCATE} $file 2>/dev/null`; do
2485 base=`echo $x | sed "s%/${file}%%"`
2486 @@ -3400,20 +3548,506 @@ if test "x$LOCATE" != "x"; then
2490 - already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2491 + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2492 if test "x$already" = "x"; then
2498 -eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2499 +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2502 - for try in $smart_include_dir /usr/local/include /opt/include; do
2503 - CFLAGS="$old_CFLAGS -I$try"
2504 - cat >conftest.$ac_ext <<_ACEOF
2507 +if test "x$LOCATE" != "x"; then
2511 + for x in `${LOCATE} $file 2>/dev/null`; do
2512 + base=`echo $x | sed "s%/${file}%%"`
2513 + if test "x$x" = "x$base"; then
2517 + dir=`${DIRNAME} $x 2>/dev/null`
2518 + exclude=`echo ${dir} | ${GREP} /home`
2519 + if test "x$exclude" != "x"; then
2523 + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2524 + if test "x$already" = "x"; then
2530 +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2533 + for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2534 + LIBS="-L$try -lldap_r $old_LIBS"
2535 + cat >conftest.$ac_ext <<_ACEOF
2538 +cat confdefs.h >>conftest.$ac_ext
2539 +cat >>conftest.$ac_ext <<_ACEOF
2540 +/* end confdefs.h. */
2541 +extern char ldap_init();
2550 +rm -f conftest.$ac_objext conftest$ac_exeext
2551 +if { (ac_try="$ac_link"
2552 +case "(($ac_try" in
2553 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 + *) ac_try_echo=$ac_try;;
2556 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557 +$as_echo "$ac_try_echo") >&5
2558 + (eval "$ac_link") 2>conftest.er1
2560 + grep -v '^ *+' conftest.er1 >conftest.err
2561 + rm -f conftest.er1
2562 + cat conftest.err >&5
2563 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 + (exit $ac_status); } && {
2565 + test -z "$ac_c_werror_flag" ||
2566 + test ! -s conftest.err
2567 + } && test -s conftest$ac_exeext && {
2568 + test "$cross_compiling" = yes ||
2569 + $as_test_x conftest$ac_exeext
2571 + smart_lib="-L$try -lldap_r"
2573 + $as_echo "$as_me: failed program was:" >&5
2574 +sed 's/^/| /' conftest.$ac_ext >&5
2579 +rm -rf conftest.dSYM
2580 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2581 + conftest$ac_exeext conftest.$ac_ext
2582 + if test "x$smart_lib" != "x"; then
2589 +if test "x$smart_lib" != "x"; then
2590 + { $as_echo "$as_me:$LINENO: result: yes" >&5
2591 +$as_echo "yes" >&6; }
2592 + eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2593 + LIBS="$smart_lib $old_LIBS"
2594 + SMART_LIBS="$smart_lib $SMART_LIBS"
2596 + { $as_echo "$as_me:$LINENO: result: no" >&5
2597 +$as_echo "no" >&6; }
2600 + if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
2601 + fail="$fail libldap_r"
2606 +sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
2607 +sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2608 +{ $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
2609 +$as_echo_n "checking for ldap_init in -lldap... " >&6; }
2615 +if test "x$smart_try_dir" != "x"; then
2616 + for try in $smart_try_dir; do
2617 + LIBS="-L$try -lldap $old_LIBS"
2618 + cat >conftest.$ac_ext <<_ACEOF
2621 +cat confdefs.h >>conftest.$ac_ext
2622 +cat >>conftest.$ac_ext <<_ACEOF
2623 +/* end confdefs.h. */
2624 +extern char ldap_init();
2633 +rm -f conftest.$ac_objext conftest$ac_exeext
2634 +if { (ac_try="$ac_link"
2635 +case "(($ac_try" in
2636 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 + *) ac_try_echo=$ac_try;;
2639 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2640 +$as_echo "$ac_try_echo") >&5
2641 + (eval "$ac_link") 2>conftest.er1
2643 + grep -v '^ *+' conftest.er1 >conftest.err
2644 + rm -f conftest.er1
2645 + cat conftest.err >&5
2646 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 + (exit $ac_status); } && {
2648 + test -z "$ac_c_werror_flag" ||
2649 + test ! -s conftest.err
2650 + } && test -s conftest$ac_exeext && {
2651 + test "$cross_compiling" = yes ||
2652 + $as_test_x conftest$ac_exeext
2654 + smart_lib="-L$try -lldap"
2656 + $as_echo "$as_me: failed program was:" >&5
2657 +sed 's/^/| /' conftest.$ac_ext >&5
2662 +rm -rf conftest.dSYM
2663 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2664 + conftest$ac_exeext conftest.$ac_ext
2665 + if test "x$smart_lib" != "x"; then
2672 +if test "x$smart_lib" = "x"; then
2673 + LIBS="-lldap $old_LIBS"
2674 + cat >conftest.$ac_ext <<_ACEOF
2677 +cat confdefs.h >>conftest.$ac_ext
2678 +cat >>conftest.$ac_ext <<_ACEOF
2679 +/* end confdefs.h. */
2680 +extern char ldap_init();
2689 +rm -f conftest.$ac_objext conftest$ac_exeext
2690 +if { (ac_try="$ac_link"
2691 +case "(($ac_try" in
2692 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 + *) ac_try_echo=$ac_try;;
2695 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2696 +$as_echo "$ac_try_echo") >&5
2697 + (eval "$ac_link") 2>conftest.er1
2699 + grep -v '^ *+' conftest.er1 >conftest.err
2700 + rm -f conftest.er1
2701 + cat conftest.err >&5
2702 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 + (exit $ac_status); } && {
2704 + test -z "$ac_c_werror_flag" ||
2705 + test ! -s conftest.err
2706 + } && test -s conftest$ac_exeext && {
2707 + test "$cross_compiling" = yes ||
2708 + $as_test_x conftest$ac_exeext
2710 + smart_lib="-lldap"
2712 + $as_echo "$as_me: failed program was:" >&5
2713 +sed 's/^/| /' conftest.$ac_ext >&5
2718 +rm -rf conftest.dSYM
2719 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2720 + conftest$ac_exeext conftest.$ac_ext
2724 +if test "x$smart_lib" = "x"; then
2727 +if test "x$LOCATE" != "x"; then
2729 + file=libldap${libltdl_cv_shlibext}
2731 + for x in `${LOCATE} $file 2>/dev/null`; do
2732 + base=`echo $x | sed "s%/${file}%%"`
2733 + if test "x$x" = "x$base"; then
2737 + dir=`${DIRNAME} $x 2>/dev/null`
2738 + exclude=`echo ${dir} | ${GREP} /home`
2739 + if test "x$exclude" != "x"; then
2743 + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2744 + if test "x$already" = "x"; then
2750 +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2754 +if test "x$LOCATE" != "x"; then
2758 + for x in `${LOCATE} $file 2>/dev/null`; do
2759 + base=`echo $x | sed "s%/${file}%%"`
2760 + if test "x$x" = "x$base"; then
2764 + dir=`${DIRNAME} $x 2>/dev/null`
2765 + exclude=`echo ${dir} | ${GREP} /home`
2766 + if test "x$exclude" != "x"; then
2770 + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2771 + if test "x$already" = "x"; then
2777 +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2780 + for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2781 + LIBS="-L$try -lldap $old_LIBS"
2782 + cat >conftest.$ac_ext <<_ACEOF
2785 +cat confdefs.h >>conftest.$ac_ext
2786 +cat >>conftest.$ac_ext <<_ACEOF
2787 +/* end confdefs.h. */
2788 +extern char ldap_init();
2797 +rm -f conftest.$ac_objext conftest$ac_exeext
2798 +if { (ac_try="$ac_link"
2799 +case "(($ac_try" in
2800 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 + *) ac_try_echo=$ac_try;;
2803 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2804 +$as_echo "$ac_try_echo") >&5
2805 + (eval "$ac_link") 2>conftest.er1
2807 + grep -v '^ *+' conftest.er1 >conftest.err
2808 + rm -f conftest.er1
2809 + cat conftest.err >&5
2810 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 + (exit $ac_status); } && {
2812 + test -z "$ac_c_werror_flag" ||
2813 + test ! -s conftest.err
2814 + } && test -s conftest$ac_exeext && {
2815 + test "$cross_compiling" = yes ||
2816 + $as_test_x conftest$ac_exeext
2818 + smart_lib="-L$try -lldap"
2820 + $as_echo "$as_me: failed program was:" >&5
2821 +sed 's/^/| /' conftest.$ac_ext >&5
2826 +rm -rf conftest.dSYM
2827 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2828 + conftest$ac_exeext conftest.$ac_ext
2829 + if test "x$smart_lib" != "x"; then
2836 +if test "x$smart_lib" != "x"; then
2837 + { $as_echo "$as_me:$LINENO: result: yes" >&5
2838 +$as_echo "yes" >&6; }
2839 + eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2840 + LIBS="$smart_lib $old_LIBS"
2841 + SMART_LIBS="$smart_lib $SMART_LIBS"
2843 + { $as_echo "$as_me:$LINENO: result: no" >&5
2844 +$as_echo "no" >&6; }
2847 + if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
2848 + fail="$fail libldap"
2853 + smart_try_dir=$rlm_ldap_include_dir
2856 +ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
2857 +{ $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
2858 +$as_echo_n "checking for ldap.h... " >&6; }
2860 +old_CFLAGS="$CFLAGS"
2864 +if test "x$smart_try_dir" != "x"; then
2865 + for try in $smart_try_dir; do
2866 + CFLAGS="$old_CFLAGS -I$try"
2867 + cat >conftest.$ac_ext <<_ACEOF
2870 +cat confdefs.h >>conftest.$ac_ext
2871 +cat >>conftest.$ac_ext <<_ACEOF
2872 +/* end confdefs.h. */
2883 +rm -f conftest.$ac_objext
2884 +if { (ac_try="$ac_compile"
2885 +case "(($ac_try" in
2886 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 + *) ac_try_echo=$ac_try;;
2889 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890 +$as_echo "$ac_try_echo") >&5
2891 + (eval "$ac_compile") 2>conftest.er1
2893 + grep -v '^ *+' conftest.er1 >conftest.err
2894 + rm -f conftest.er1
2895 + cat conftest.err >&5
2896 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 + (exit $ac_status); } && {
2898 + test -z "$ac_c_werror_flag" ||
2899 + test ! -s conftest.err
2900 + } && test -s conftest.$ac_objext; then
2901 + smart_include="-I$try"
2903 + $as_echo "$as_me: failed program was:" >&5
2904 +sed 's/^/| /' conftest.$ac_ext >&5
2909 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 + if test "x$smart_include" != "x"; then
2914 + CFLAGS="$old_CFLAGS"
2917 +if test "x$smart_include" = "x"; then
2918 + cat >conftest.$ac_ext <<_ACEOF
2921 +cat confdefs.h >>conftest.$ac_ext
2922 +cat >>conftest.$ac_ext <<_ACEOF
2923 +/* end confdefs.h. */
2934 +rm -f conftest.$ac_objext
2935 +if { (ac_try="$ac_compile"
2936 +case "(($ac_try" in
2937 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 + *) ac_try_echo=$ac_try;;
2940 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2941 +$as_echo "$ac_try_echo") >&5
2942 + (eval "$ac_compile") 2>conftest.er1
2944 + grep -v '^ *+' conftest.er1 >conftest.err
2945 + rm -f conftest.er1
2946 + cat conftest.err >&5
2947 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 + (exit $ac_status); } && {
2949 + test -z "$ac_c_werror_flag" ||
2950 + test ! -s conftest.err
2951 + } && test -s conftest.$ac_objext; then
2954 + $as_echo "$as_me: failed program was:" >&5
2955 +sed 's/^/| /' conftest.$ac_ext >&5
2960 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 +if test "x$smart_include" = "x"; then
2966 +if test "x$LOCATE" != "x"; then
2970 + for x in `${LOCATE} $file 2>/dev/null`; do
2971 + base=`echo $x | sed "s%/${file}%%"`
2972 + if test "x$x" = "x$base"; then
2976 + dir=`${DIRNAME} $x 2>/dev/null`
2977 + exclude=`echo ${dir} | ${GREP} /home`
2978 + if test "x$exclude" != "x"; then
2982 + already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2983 + if test "x$already" = "x"; then
2989 +eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2992 + for try in $smart_include_dir /usr/local/include /opt/include; do
2993 + CFLAGS="$old_CFLAGS -I$try"
2994 + cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 @@ -3434,20 +4068,21 @@ case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005 +$as_echo "$ac_try_echo") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3017 smart_include="-I$try"
3019 - echo "$as_me: failed program was:" >&5
3020 + $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 @@ -3462,14 +4097,14 @@ rm -f core conftest.err conftest.$ac_obj
3027 if test "x$smart_include" != "x"; then
3028 - { echo "$as_me:$LINENO: result: yes" >&5
3029 -echo "${ECHO_T}yes" >&6; }
3030 + { $as_echo "$as_me:$LINENO: result: yes" >&5
3031 +$as_echo "yes" >&6; }
3032 eval "ac_cv_header_$ac_safe=yes"
3033 CFLAGS="$old_CFLAGS $smart_include"
3034 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3036 - { echo "$as_me:$LINENO: result: no" >&5
3037 -echo "${ECHO_T}no" >&6; }
3038 + { $as_echo "$as_me:$LINENO: result: no" >&5
3039 +$as_echo "no" >&6; }
3042 if test "$ac_cv_header_ldap_h" != "yes"; then
3043 @@ -3478,10 +4113,10 @@ fi
3046 if test "x$fail" = "x"; then
3047 - { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
3048 -echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
3049 + { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
3050 +$as_echo_n "checking for ldap_start_tls_s... " >&6; }
3051 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
3052 - echo $ECHO_N "(cached) $ECHO_C" >&6
3053 + $as_echo_n "(cached) " >&6
3055 cat >conftest.$ac_ext <<_ACEOF
3057 @@ -3534,39 +4169,43 @@ case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 +$as_echo "$ac_try_echo") >&5
3064 (eval "$ac_link") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 - } && test -s conftest$ac_exeext &&
3075 - $as_test_x conftest$ac_exeext; then
3076 + } && test -s conftest$ac_exeext && {
3077 + test "$cross_compiling" = yes ||
3078 + $as_test_x conftest$ac_exeext
3080 ac_cv_func_ldap_start_tls_s=yes
3082 - echo "$as_me: failed program was:" >&5
3083 + $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 ac_cv_func_ldap_start_tls_s=no
3089 +rm -rf conftest.dSYM
3090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3091 conftest$ac_exeext conftest.$ac_ext
3093 -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
3094 -echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
3095 -if test $ac_cv_func_ldap_start_tls_s = yes; then
3096 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
3097 +$as_echo "$ac_cv_func_ldap_start_tls_s" >&6; }
3098 +if test "x$ac_cv_func_ldap_start_tls_s" = x""yes; then
3099 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_START_TLS"
3102 - { echo "$as_me:$LINENO: checking for ldap_initialize" >&5
3103 -echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6; }
3104 + { $as_echo "$as_me:$LINENO: checking for ldap_initialize" >&5
3105 +$as_echo_n "checking for ldap_initialize... " >&6; }
3106 if test "${ac_cv_func_ldap_initialize+set}" = set; then
3107 - echo $ECHO_N "(cached) $ECHO_C" >&6
3108 + $as_echo_n "(cached) " >&6
3110 cat >conftest.$ac_ext <<_ACEOF
3112 @@ -3619,39 +4258,43 @@ case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118 +$as_echo "$ac_try_echo") >&5
3119 (eval "$ac_link") 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } && {
3127 test -z "$ac_c_werror_flag" ||
3128 test ! -s conftest.err
3129 - } && test -s conftest$ac_exeext &&
3130 - $as_test_x conftest$ac_exeext; then
3131 + } && test -s conftest$ac_exeext && {
3132 + test "$cross_compiling" = yes ||
3133 + $as_test_x conftest$ac_exeext
3135 ac_cv_func_ldap_initialize=yes
3137 - echo "$as_me: failed program was:" >&5
3138 + $as_echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 ac_cv_func_ldap_initialize=no
3144 +rm -rf conftest.dSYM
3145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3146 conftest$ac_exeext conftest.$ac_ext
3148 -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
3149 -echo "${ECHO_T}$ac_cv_func_ldap_initialize" >&6; }
3150 -if test $ac_cv_func_ldap_initialize = yes; then
3151 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
3152 +$as_echo "$ac_cv_func_ldap_initialize" >&6; }
3153 +if test "x$ac_cv_func_ldap_initialize" = x""yes; then
3154 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INITIALIZE"
3157 - { echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
3158 -echo $ECHO_N "checking for ldap_int_tls_config... $ECHO_C" >&6; }
3159 + { $as_echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
3160 +$as_echo_n "checking for ldap_int_tls_config... " >&6; }
3161 if test "${ac_cv_func_ldap_int_tls_config+set}" = set; then
3162 - echo $ECHO_N "(cached) $ECHO_C" >&6
3163 + $as_echo_n "(cached) " >&6
3165 cat >conftest.$ac_ext <<_ACEOF
3167 @@ -3704,32 +4347,36 @@ case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 +$as_echo "$ac_try_echo") >&5
3174 (eval "$ac_link") 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 - } && test -s conftest$ac_exeext &&
3185 - $as_test_x conftest$ac_exeext; then
3186 + } && test -s conftest$ac_exeext && {
3187 + test "$cross_compiling" = yes ||
3188 + $as_test_x conftest$ac_exeext
3190 ac_cv_func_ldap_int_tls_config=yes
3192 - echo "$as_me: failed program was:" >&5
3193 + $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 ac_cv_func_ldap_int_tls_config=no
3199 +rm -rf conftest.dSYM
3200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3201 conftest$ac_exeext conftest.$ac_ext
3203 -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
3204 -echo "${ECHO_T}$ac_cv_func_ldap_int_tls_config" >&6; }
3205 -if test $ac_cv_func_ldap_int_tls_config = yes; then
3206 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
3207 +$as_echo "$ac_cv_func_ldap_int_tls_config" >&6; }
3208 +if test "x$ac_cv_func_ldap_int_tls_config" = x""yes; then
3209 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INT_TLS_CONFIG"
3212 @@ -3743,21 +4390,21 @@ fi
3214 if test x"$fail" != x""; then
3215 if test x"${enable_strict_dependencies}" = x"yes"; then
3216 - { { echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
3217 -echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
3218 + { { $as_echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
3219 +$as_echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
3220 { (exit 1); exit 1; }; }
3222 - { echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
3223 -echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
3224 - { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
3225 -echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
3226 + { $as_echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
3227 +$as_echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
3228 + { $as_echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
3229 +$as_echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
3230 if test x"$headersuggestion" != x; then
3231 - { echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
3232 -echo "$as_me: WARNING: $headersuggestion" >&2;}
3233 + { $as_echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
3234 +$as_echo "$as_me: WARNING: $headersuggestion" >&2;}
3236 if test x"$libsuggestion" != x; then
3237 - { echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
3238 -echo "$as_me: WARNING: $libsuggestion" >&2;}
3239 + { $as_echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
3240 +$as_echo "$as_me: WARNING: $libsuggestion" >&2;}
3244 @@ -3785,7 +4432,11 @@ ldap_cflags="$SMART_CFLAGS -DLDAP_DEPREC
3248 -ac_config_files="$ac_config_files Makefile"
3250 + unset ac_cv_env_LIBS_set
3251 + unset ac_cv_env_LIBS_value
3253 + ac_config_files="$ac_config_files Makefile"
3255 cat >confcache <<\_ACEOF
3256 # This file is a shell script that caches the results of configure
3257 @@ -3814,11 +4465,12 @@ _ACEOF
3261 - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3262 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3263 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
3264 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3267 _ | IFS | as_nl) ;; #(
3268 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3269 *) $as_unset $ac_var ;;
3272 @@ -3851,12 +4503,12 @@ echo "$as_me: WARNING: Cache variable $a
3273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3274 if test -w "$cache_file"; then
3275 test "x$cache_file" != "x/dev/null" &&
3276 - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3277 -echo "$as_me: updating cache $cache_file" >&6;}
3278 + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
3279 +$as_echo "$as_me: updating cache $cache_file" >&6;}
3280 cat confcache >$cache_file
3282 - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3283 -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3284 + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3285 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3289 @@ -3873,6 +4525,12 @@ test "x$exec_prefix" = xNONE && exec_pre
3290 # take arguments), then branch to the quote section. Otherwise,
3291 # look for a macro that doesn't take arguments.
3301 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3302 @@ -3902,7 +4560,7 @@ ac_ltlibobjs=
3303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3304 # 1. Remove the extension, and $U if already installed.
3305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3306 - ac_i=`echo "$ac_i" | sed "$ac_script"`
3307 + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3308 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3309 # will be set to the directory where LIBOBJS objects are built.
3310 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3311 @@ -3915,11 +4573,12 @@ LTLIBOBJS=$ac_ltlibobjs
3314 : ${CONFIG_STATUS=./config.status}
3316 ac_clean_files_save=$ac_clean_files
3317 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3318 -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3319 -echo "$as_me: creating $CONFIG_STATUS" >&6;}
3320 -cat >$CONFIG_STATUS <<_ACEOF
3321 +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3322 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3323 +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3325 # Generated by $as_me.
3326 # Run this file to recreate the current configuration.
3327 @@ -3932,7 +4591,7 @@ ac_cs_silent=false
3328 SHELL=\${CONFIG_SHELL-$SHELL}
3331 -cat >>$CONFIG_STATUS <<\_ACEOF
3332 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3333 ## --------------------- ##
3334 ## M4sh Initialization. ##
3335 ## --------------------- ##
3336 @@ -3942,7 +4601,7 @@ DUALCASE=1; export DUALCASE # for MKS sh
3337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3340 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3341 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3342 # is contrary to our usage. Disable this feature.
3343 alias -g '${1+"$@"}'='"$@"'
3344 setopt NO_GLOB_SUBST
3345 @@ -3964,17 +4623,45 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
3346 as_cr_digits='0123456789'
3347 as_cr_alnum=$as_cr_Letters$as_cr_digits
3349 -# The user is always right.
3350 -if test "${PATH_SEPARATOR+set}" != set; then
3351 - echo "#! /bin/sh" >conf$$.sh
3352 - echo "exit 0" >>conf$$.sh
3353 - chmod +x conf$$.sh
3354 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3355 - PATH_SEPARATOR=';'
3359 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
3360 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3361 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3362 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3363 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3364 + as_echo='printf %s\n'
3365 + as_echo_n='printf %s'
3367 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3368 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3369 + as_echo_n='/usr/ucb/echo -n'
3372 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3373 + as_echo_n_body='eval
3377 + expr "X$arg" : "X\\(.*\\)$as_nl";
3378 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3380 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3382 + export as_echo_n_body
3383 + as_echo_n='sh -c $as_echo_n_body as_echo'
3386 + export as_echo_body
3387 + as_echo='sh -c $as_echo_body as_echo'
3390 +# The user is always right.
3391 +if test "${PATH_SEPARATOR+set}" != set; then
3393 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3394 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3395 + PATH_SEPARATOR=';'
3399 # Support unset when possible.
3400 @@ -3990,8 +4677,6 @@ fi
3401 # there to prevent editors from complaining about space-tab.
3402 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3403 # splitting by setting IFS to empty value.)
3408 # Find who we are. Look in the path if we contain no directory separator.
3409 @@ -4014,7 +4699,7 @@ if test "x$as_myself" = x; then
3412 if test ! -f "$as_myself"; then
3413 - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3414 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3415 { (exit 1); exit 1; }
3418 @@ -4027,17 +4712,10 @@ PS2='> '
3423 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3424 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3425 - LC_TELEPHONE LC_TIME
3427 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3428 - eval $as_var=C; export $as_var
3430 - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3438 # Required to use basename.
3439 if expr a : '\(a\)' >/dev/null 2>&1 &&
3440 @@ -4059,7 +4737,7 @@ as_me=`$as_basename -- "$0" ||
3441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3442 X"$0" : 'X\(//\)$' \| \
3443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3446 sed '/^.*\/\([^/][^/]*\)\/*$/{
3449 @@ -4110,7 +4788,7 @@ $as_unset CDPATH
3452 chmod +x "$as_me.lineno" ||
3453 - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3454 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3455 { (exit 1); exit 1; }; }
3457 # Don't try to exec as it changes $[0], causing all sort of problems
3458 @@ -4138,7 +4816,6 @@ case `echo -n x` in
3463 if expr a : '\(a\)' >/dev/null 2>&1 &&
3464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3466 @@ -4151,19 +4828,22 @@ if test -d conf$$.dir; then
3467 rm -f conf$$.dir/conf$$.file
3471 + mkdir conf$$.dir 2>/dev/null
3474 -if ln -s conf$$.file conf$$ 2>/dev/null; then
3476 - # ... but there are two gotchas:
3477 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3478 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3479 - # In both cases, we have to default to `cp -p'.
3480 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3481 +if (echo >conf$$.file) 2>/dev/null; then
3482 + if ln -s conf$$.file conf$$ 2>/dev/null; then
3484 + # ... but there are two gotchas:
3485 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3486 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3487 + # In both cases, we have to default to `cp -p'.
3488 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3490 + elif ln conf$$.file conf$$ 2>/dev/null; then
3494 -elif ln conf$$.file conf$$ 2>/dev/null; then
3500 @@ -4188,10 +4868,10 @@ else
3503 if test -d "$1"; then
3511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3512 ???[sx]*):;;*)false;;esac;fi
3513 @@ -4214,7 +4894,7 @@ exec 6>&1
3514 # values after options handling.
3516 This file was extended by $as_me, which was
3517 -generated by GNU Autoconf 2.61. Invocation command line was
3518 +generated by GNU Autoconf 2.63. Invocation command line was
3520 CONFIG_FILES = $CONFIG_FILES
3521 CONFIG_HEADERS = $CONFIG_HEADERS
3522 @@ -4227,26 +4907,33 @@ on `(hostname || uname -n) 2>/dev/null |
3526 -cat >>$CONFIG_STATUS <<_ACEOF
3527 +case $ac_config_files in *"
3528 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
3533 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3534 # Files that config.status was made for.
3535 config_files="$ac_config_files"
3539 -cat >>$CONFIG_STATUS <<\_ACEOF
3540 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3542 \`$as_me' instantiates files from templates according to the
3543 current configuration.
3545 -Usage: $0 [OPTIONS] [FILE]...
3546 +Usage: $0 [OPTION]... [FILE]...
3548 -h, --help print this help, then exit
3549 -V, --version print version number and configuration settings, then exit
3550 - -q, --quiet do not print progress messages
3551 + -q, --quiet, --silent
3552 + do not print progress messages
3553 -d, --debug don't remove temporary files
3554 --recheck update $as_me by reconfiguring in the same conditions
3555 - --file=FILE[:TEMPLATE]
3556 - instantiate the configuration file FILE
3557 + --file=FILE[:TEMPLATE]
3558 + instantiate the configuration file FILE
3560 Configuration files:
3562 @@ -4254,23 +4941,23 @@ $config_files
3563 Report bugs to <bug-autoconf@gnu.org>."
3566 -cat >>$CONFIG_STATUS <<_ACEOF
3567 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3570 -configured by $0, generated by GNU Autoconf 2.61,
3571 - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3572 +configured by $0, generated by GNU Autoconf 2.63,
3573 + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3575 -Copyright (C) 2006 Free Software Foundation, Inc.
3576 +Copyright (C) 2008 Free Software Foundation, Inc.
3577 This config.status script is free software; the Free Software Foundation
3578 gives unlimited permission to copy, distribute and modify it."
3582 +test -n "\$AWK" || AWK=awk
3585 -cat >>$CONFIG_STATUS <<\_ACEOF
3586 -# If no file are specified by the user, then we need to provide default
3587 -# value. By we need to know if files were specified by the user.
3588 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3589 +# The default lists apply if the user does not specify any file.
3593 @@ -4292,21 +4979,24 @@ do
3594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3597 - echo "$ac_cs_version"; exit ;;
3598 + $as_echo "$ac_cs_version"; exit ;;
3599 --debug | --debu | --deb | --de | --d | -d )
3601 --file | --fil | --fi | --f )
3603 - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3604 + case $ac_optarg in
3605 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3607 + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
3608 ac_need_defaults=false;;
3609 --he | --h | --help | --hel | -h )
3610 - echo "$ac_cs_usage"; exit ;;
3611 + $as_echo "$ac_cs_usage"; exit ;;
3612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3617 - -*) { echo "$as_me: error: unrecognized option: $1
3618 + -*) { $as_echo "$as_me: error: unrecognized option: $1
3619 Try \`$0 --help' for more information." >&2
3620 { (exit 1); exit 1; }; } ;;
3622 @@ -4325,30 +5015,32 @@ if $ac_cs_silent; then
3626 -cat >>$CONFIG_STATUS <<_ACEOF
3627 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3628 if \$ac_cs_recheck; then
3629 - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3630 - CONFIG_SHELL=$SHELL
3631 + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3633 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3634 + CONFIG_SHELL='$SHELL'
3636 - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3641 -cat >>$CONFIG_STATUS <<\_ACEOF
3642 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3646 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3647 ## Running $as_me. ##
3650 + $as_echo "$ac_log"
3654 -cat >>$CONFIG_STATUS <<_ACEOF
3655 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3658 -cat >>$CONFIG_STATUS <<\_ACEOF
3659 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3661 # Handling of arguments.
3662 for ac_config_target in $ac_config_targets
3663 @@ -4356,8 +5048,8 @@ do
3664 case $ac_config_target in
3665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3667 - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3668 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3669 + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3670 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3671 { (exit 1); exit 1; }; };;
3674 @@ -4396,114 +5088,143 @@ $debug ||
3675 (umask 077 && mkdir "$tmp")
3678 - echo "$me: cannot create a temporary directory in ." >&2
3679 + $as_echo "$as_me: cannot create a temporary directory in ." >&2
3680 { (exit 1); exit 1; }
3684 -# Set up the sed scripts for CONFIG_FILES section.
3687 -# No need to generate the scripts if there are no CONFIG_FILES.
3688 -# This happens for instance when ./config.status config.h
3689 +# Set up the scripts for CONFIG_FILES section.
3690 +# No need to generate them if there are no CONFIG_FILES.
3691 +# This happens for instance with `./config.status config.h'.
3692 if test -n "$CONFIG_FILES"; then
3697 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3698 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3699 + ac_cs_awk_cr='\\r'
3701 + ac_cs_awk_cr=$ac_cr
3704 +echo 'BEGIN {' >"$tmp/subs1.awk" &&
3709 + echo "cat >conf$$subs.awk <<_ACEOF" &&
3710 + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3712 +} >conf$$subs.sh ||
3713 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3714 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3715 + { (exit 1); exit 1; }; }
3716 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3718 for ac_last_try in false false false false false :; do
3719 - cat >conf$$subs.sed <<_ACEOF
3720 -SHELL!$SHELL$ac_delim
3721 -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
3722 -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
3723 -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
3724 -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
3725 -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
3726 -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
3727 -exec_prefix!$exec_prefix$ac_delim
3728 -prefix!$prefix$ac_delim
3729 -program_transform_name!$program_transform_name$ac_delim
3730 -bindir!$bindir$ac_delim
3731 -sbindir!$sbindir$ac_delim
3732 -libexecdir!$libexecdir$ac_delim
3733 -datarootdir!$datarootdir$ac_delim
3734 -datadir!$datadir$ac_delim
3735 -sysconfdir!$sysconfdir$ac_delim
3736 -sharedstatedir!$sharedstatedir$ac_delim
3737 -localstatedir!$localstatedir$ac_delim
3738 -includedir!$includedir$ac_delim
3739 -oldincludedir!$oldincludedir$ac_delim
3740 -docdir!$docdir$ac_delim
3741 -infodir!$infodir$ac_delim
3742 -htmldir!$htmldir$ac_delim
3743 -dvidir!$dvidir$ac_delim
3744 -pdfdir!$pdfdir$ac_delim
3745 -psdir!$psdir$ac_delim
3746 -libdir!$libdir$ac_delim
3747 -localedir!$localedir$ac_delim
3748 -mandir!$mandir$ac_delim
3749 -DEFS!$DEFS$ac_delim
3750 -ECHO_C!$ECHO_C$ac_delim
3751 -ECHO_N!$ECHO_N$ac_delim
3752 -ECHO_T!$ECHO_T$ac_delim
3753 -LIBS!$LIBS$ac_delim
3754 -build_alias!$build_alias$ac_delim
3755 -host_alias!$host_alias$ac_delim
3756 -target_alias!$target_alias$ac_delim
3758 -CFLAGS!$CFLAGS$ac_delim
3759 -LDFLAGS!$LDFLAGS$ac_delim
3760 -CPPFLAGS!$CPPFLAGS$ac_delim
3761 -ac_ct_CC!$ac_ct_CC$ac_delim
3762 -EXEEXT!$EXEEXT$ac_delim
3763 -OBJEXT!$OBJEXT$ac_delim
3764 -edir!$edir$ac_delim
3765 -ldap_ldflags!$ldap_ldflags$ac_delim
3766 -ldap_cflags!$ldap_cflags$ac_delim
3767 -targetname!$targetname$ac_delim
3768 -LIBOBJS!$LIBOBJS$ac_delim
3769 -LTLIBOBJS!$LTLIBOBJS$ac_delim
3771 + . ./conf$$subs.sh ||
3772 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3773 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3774 + { (exit 1); exit 1; }; }
3776 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
3777 + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3778 + if test $ac_delim_n = $ac_delim_num; then
3780 elif $ac_last_try; then
3781 - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3782 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3783 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3784 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3785 { (exit 1); exit 1; }; }
3787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3790 +rm -f conf$$subs.sh
3792 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
3793 -if test -n "$ac_eof"; then
3794 - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
3795 - ac_eof=`expr $ac_eof + 1`
3798 -cat >>$CONFIG_STATUS <<_ACEOF
3799 -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
3800 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
3803 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
3804 -s/^/s,@/; s/!/@,|#_!!_#|/
3807 -s/'"$ac_delim"'$/,g/; t
3809 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
3810 -' >>$CONFIG_STATUS <conf$$subs.sed
3811 -rm -f conf$$subs.sed
3812 -cat >>$CONFIG_STATUS <<_ACEOF
3816 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3817 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3821 +s/^/S["/; s/!.*/"]=/
3831 +s/\(.\{148\}\).*/\1/
3833 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3838 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3845 +s/\(.\{148\}\).*/\1/
3847 +s/["\\]/\\&/g; s/^/"/; s/$/"/
3851 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3856 +' <conf$$subs.awk | sed '
3861 +' >>$CONFIG_STATUS || ac_write_fail=1
3862 +rm -f conf$$subs.awk
3863 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3865 +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3866 + for (key in S) S_is_set[key] = 1
3872 + nfields = split(line, field, "@")
3874 + len = length(field[1])
3875 + for (i = 2; i < nfields; i++) {
3877 + keylen = length(key)
3878 + if (S_is_set[key]) {
3880 + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3881 + len += length(value) + length(field[++i])
3892 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3893 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3894 + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3897 +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3898 + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
3899 +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
3900 + { (exit 1); exit 1; }; }
3903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3905 @@ -4520,19 +5241,21 @@ s/^[^=]*=[ ]*$//
3909 -cat >>$CONFIG_STATUS <<\_ACEOF
3910 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3911 fi # test -n "$CONFIG_FILES"
3914 -for ac_tag in :F $CONFIG_FILES
3915 +eval set X " :F $CONFIG_FILES "
3920 :[FHLC]) ac_mode=$ac_tag; continue;;
3922 case $ac_mode$ac_tag in
3924 - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
3925 -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
3926 + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
3927 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
3928 { (exit 1); exit 1; }; };;
3929 :[FH]-) ac_tag=-:-;;
3930 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3931 @@ -4561,26 +5284,38 @@ echo "$as_me: error: Invalid tag $ac_tag
3933 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3935 - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3936 -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3937 + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3938 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3939 { (exit 1); exit 1; }; };;
3941 - ac_file_inputs="$ac_file_inputs $ac_f"
3942 + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3943 + ac_file_inputs="$ac_file_inputs '$ac_f'"
3946 # Let's still pretend it is `configure' which instantiates (i.e., don't
3947 # use $as_me), people would be surprised to read:
3948 # /* config.h. Generated by config.status. */
3949 - configure_input="Generated from "`IFS=:
3950 - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
3951 + configure_input='Generated from '`
3952 + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3954 if test x"$ac_file" != x-; then
3955 configure_input="$ac_file. $configure_input"
3956 - { echo "$as_me:$LINENO: creating $ac_file" >&5
3957 -echo "$as_me: creating $ac_file" >&6;}
3958 + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
3959 +$as_echo "$as_me: creating $ac_file" >&6;}
3961 + # Neutralize special characters interpreted by sed in replacement strings.
3962 + case $configure_input in #(
3963 + *\&* | *\|* | *\\* )
3964 + ac_sed_conf_input=`$as_echo "$configure_input" |
3965 + sed 's/[\\\\&|]/\\\\&/g'`;; #(
3966 + *) ac_sed_conf_input=$configure_input;;
3970 - *:-:* | *:-) cat >"$tmp/stdin";;
3971 + *:-:* | *:-) cat >"$tmp/stdin" \
3972 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
3973 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
3974 + { (exit 1); exit 1; }; } ;;
3978 @@ -4590,7 +5325,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^
3979 X"$ac_file" : 'X\(//\)[^/]' \| \
3980 X"$ac_file" : 'X\(//\)$' \| \
3981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3983 +$as_echo X"$ac_file" |
3984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3987 @@ -4616,7 +5351,7 @@ echo X"$ac_file" |
3991 - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
3992 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3993 *) as_qdir=$as_dir;;
3995 as_dirs="'$as_qdir' $as_dirs"
3996 @@ -4625,7 +5360,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/
3997 X"$as_dir" : 'X\(//\)[^/]' \| \
3998 X"$as_dir" : 'X\(//\)$' \| \
3999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4001 +$as_echo X"$as_dir" |
4002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4005 @@ -4646,17 +5381,17 @@ echo X"$as_dir" |
4006 test -d "$as_dir" && break
4008 test -z "$as_dirs" || eval "mkdir $as_dirs"
4009 - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4010 -echo "$as_me: error: cannot create directory $as_dir" >&2;}
4011 + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4012 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
4013 { (exit 1); exit 1; }; }; }
4017 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4019 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4020 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4021 # A ".." for each directory in $ac_dir_suffix.
4022 - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4023 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4024 case $ac_top_builddir_sub in
4025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4027 @@ -4692,12 +5427,13 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
4031 -cat >>$CONFIG_STATUS <<\_ACEOF
4032 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4033 # If the template does not know about datarootdir, expand it.
4034 # FIXME: This hack should be removed a few years after 2.60.
4035 ac_datarootdir_hack=; ac_datarootdir_seen=
4037 -case `sed -n '/datarootdir/ {
4043 @@ -4706,13 +5442,14 @@ case `sed -n '/datarootdir/ {
4047 -' $ac_file_inputs` in
4049 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4050 *datarootdir*) ac_datarootdir_seen=yes;;
4051 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4052 - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4053 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4054 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4055 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4057 -cat >>$CONFIG_STATUS <<_ACEOF
4058 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4059 ac_datarootdir_hack='
4060 s&@datadir@&$datadir&g
4061 s&@docdir@&$docdir&g
4062 @@ -4726,15 +5463,16 @@ _ACEOF
4063 # Neutralize VPATH when `$srcdir' = `.'.
4064 # Shell code in configure.ac might set extrasub.
4065 # FIXME: do we really want to maintain this feature?
4066 -cat >>$CONFIG_STATUS <<_ACEOF
4068 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4069 +ac_sed_extra="$ac_vpsub
4072 -cat >>$CONFIG_STATUS <<\_ACEOF
4073 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4076 -s&@configure_input@&$configure_input&;t t
4077 +s|@configure_input@|$ac_sed_conf_input|;t t
4078 s&@top_builddir@&$ac_top_builddir_sub&;t t
4079 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
4080 s&@srcdir@&$ac_srcdir&;t t
4081 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4082 s&@top_srcdir@&$ac_top_srcdir&;t t
4083 @@ -4743,21 +5481,28 @@ s&@builddir@&$ac_builddir&;t t
4084 s&@abs_builddir@&$ac_abs_builddir&;t t
4085 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4086 $ac_datarootdir_hack
4087 -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4089 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4090 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
4091 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
4092 + { (exit 1); exit 1; }; }
4094 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4095 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4096 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4097 - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4098 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4099 which seems to be undefined. Please make sure it is defined." >&5
4100 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4101 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4102 which seems to be undefined. Please make sure it is defined." >&2;}
4106 - -) cat "$tmp/out"; rm -f "$tmp/out";;
4107 - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4109 + -) cat "$tmp/out" && rm -f "$tmp/out";;
4110 + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4112 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
4113 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
4114 + { (exit 1); exit 1; }; }
4118 @@ -4772,6 +5517,11 @@ _ACEOF
4119 chmod +x $CONFIG_STATUS
4120 ac_clean_files=$ac_clean_files_save
4122 +test $ac_write_fail = 0 ||
4123 + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
4124 +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
4125 + { (exit 1); exit 1; }; }
4128 # configure is writing to config.log, and then calls config.status.
4129 # config.status does its own redirection, appending to config.log.
4130 @@ -4793,4 +5543,9 @@ if test "$no_create" != yes; then
4131 # would make configure fail if this is the last instruction.
4132 $ac_cs_success || { (exit 1); exit 1; }
4134 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4135 + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4136 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4140 --- a/src/modules/rlm_ldap/configure.in
4141 +++ b/src/modules/rlm_ldap/configure.in
4142 @@ -90,6 +90,10 @@ if test x$with_[]modname != xno; then
4143 dnl Static linking will probably not work, but nobody ever
4144 dnl complained about it.
4145 smart_try_dir=$rlm_ldap_lib_dir
4147 + AC_SMART_CHECK_LIB(sasl, sasl_encode)
4148 + AC_SMART_CHECK_LIB(lber, ber_init)
4150 if test "x$rlm_ldap_with_threads" = "xyes"; then
4151 AC_SMART_CHECK_LIB(ldap_r, ldap_init)
4152 if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then