Start integrating new build system with "configure"
[freeradius.git] / src / modules / rlm_ldap / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="rlm_ldap.c"
581 ac_subst_vars='SHELL
582 PATH_SEPARATOR
583 PACKAGE_NAME
584 PACKAGE_TARNAME
585 PACKAGE_VERSION
586 PACKAGE_STRING
587 PACKAGE_BUGREPORT
588 exec_prefix
589 prefix
590 program_transform_name
591 bindir
592 sbindir
593 libexecdir
594 datarootdir
595 datadir
596 sysconfdir
597 sharedstatedir
598 localstatedir
599 includedir
600 oldincludedir
601 docdir
602 infodir
603 htmldir
604 dvidir
605 pdfdir
606 psdir
607 libdir
608 localedir
609 mandir
610 DEFS
611 ECHO_C
612 ECHO_N
613 ECHO_T
614 LIBS
615 build_alias
616 host_alias
617 target_alias
618 CC
619 CFLAGS
620 LDFLAGS
621 CPPFLAGS
622 ac_ct_CC
623 EXEEXT
624 OBJEXT
625 edir
626 ldap_ldflags
627 ldap_cflags
628 targetname
629 LIBOBJS
630 LTLIBOBJS'
631 ac_subst_files=''
632       ac_precious_vars='build_alias
633 host_alias
634 target_alias
635 CC
636 CFLAGS
637 LDFLAGS
638 LIBS
639 CPPFLAGS'
640
641
642 # Initialize some variables set by options.
643 ac_init_help=
644 ac_init_version=false
645 # The variables have the same names as the options, with
646 # dashes changed to underlines.
647 cache_file=/dev/null
648 exec_prefix=NONE
649 no_create=
650 no_recursion=
651 prefix=NONE
652 program_prefix=NONE
653 program_suffix=NONE
654 program_transform_name=s,x,x,
655 silent=
656 site=
657 srcdir=
658 verbose=
659 x_includes=NONE
660 x_libraries=NONE
661
662 # Installation directory options.
663 # These are left unexpanded so users can "make install exec_prefix=/foo"
664 # and all the variables that are supposed to be based on exec_prefix
665 # by default will actually change.
666 # Use braces instead of parens because sh, perl, etc. also accept them.
667 # (The list follows the same order as the GNU Coding Standards.)
668 bindir='${exec_prefix}/bin'
669 sbindir='${exec_prefix}/sbin'
670 libexecdir='${exec_prefix}/libexec'
671 datarootdir='${prefix}/share'
672 datadir='${datarootdir}'
673 sysconfdir='${prefix}/etc'
674 sharedstatedir='${prefix}/com'
675 localstatedir='${prefix}/var'
676 includedir='${prefix}/include'
677 oldincludedir='/usr/include'
678 docdir='${datarootdir}/doc/${PACKAGE}'
679 infodir='${datarootdir}/info'
680 htmldir='${docdir}'
681 dvidir='${docdir}'
682 pdfdir='${docdir}'
683 psdir='${docdir}'
684 libdir='${exec_prefix}/lib'
685 localedir='${datarootdir}/locale'
686 mandir='${datarootdir}/man'
687
688 ac_prev=
689 ac_dashdash=
690 for ac_option
691 do
692   # If the previous option needs an argument, assign it.
693   if test -n "$ac_prev"; then
694     eval $ac_prev=\$ac_option
695     ac_prev=
696     continue
697   fi
698
699   case $ac_option in
700   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
701   *)    ac_optarg=yes ;;
702   esac
703
704   # Accept the important Cygnus configure options, so we can diagnose typos.
705
706   case $ac_dashdash$ac_option in
707   --)
708     ac_dashdash=yes ;;
709
710   -bindir | --bindir | --bindi | --bind | --bin | --bi)
711     ac_prev=bindir ;;
712   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
713     bindir=$ac_optarg ;;
714
715   -build | --build | --buil | --bui | --bu)
716     ac_prev=build_alias ;;
717   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
718     build_alias=$ac_optarg ;;
719
720   -cache-file | --cache-file | --cache-fil | --cache-fi \
721   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
722     ac_prev=cache_file ;;
723   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
724   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
725     cache_file=$ac_optarg ;;
726
727   --config-cache | -C)
728     cache_file=config.cache ;;
729
730   -datadir | --datadir | --datadi | --datad)
731     ac_prev=datadir ;;
732   -datadir=* | --datadir=* | --datadi=* | --datad=*)
733     datadir=$ac_optarg ;;
734
735   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
736   | --dataroo | --dataro | --datar)
737     ac_prev=datarootdir ;;
738   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
739   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
740     datarootdir=$ac_optarg ;;
741
742   -disable-* | --disable-*)
743     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
747    { (exit 1); exit 1; }; }
748     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
749     eval enable_$ac_feature=no ;;
750
751   -docdir | --docdir | --docdi | --doc | --do)
752     ac_prev=docdir ;;
753   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
754     docdir=$ac_optarg ;;
755
756   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
757     ac_prev=dvidir ;;
758   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
759     dvidir=$ac_optarg ;;
760
761   -enable-* | --enable-*)
762     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
763     # Reject names that are not valid shell variable names.
764     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
765       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
766    { (exit 1); exit 1; }; }
767     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
768     eval enable_$ac_feature=\$ac_optarg ;;
769
770   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
771   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
772   | --exec | --exe | --ex)
773     ac_prev=exec_prefix ;;
774   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
775   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
776   | --exec=* | --exe=* | --ex=*)
777     exec_prefix=$ac_optarg ;;
778
779   -gas | --gas | --ga | --g)
780     # Obsolete; use --with-gas.
781     with_gas=yes ;;
782
783   -help | --help | --hel | --he | -h)
784     ac_init_help=long ;;
785   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
786     ac_init_help=recursive ;;
787   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
788     ac_init_help=short ;;
789
790   -host | --host | --hos | --ho)
791     ac_prev=host_alias ;;
792   -host=* | --host=* | --hos=* | --ho=*)
793     host_alias=$ac_optarg ;;
794
795   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
796     ac_prev=htmldir ;;
797   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
798   | --ht=*)
799     htmldir=$ac_optarg ;;
800
801   -includedir | --includedir | --includedi | --included | --include \
802   | --includ | --inclu | --incl | --inc)
803     ac_prev=includedir ;;
804   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
805   | --includ=* | --inclu=* | --incl=* | --inc=*)
806     includedir=$ac_optarg ;;
807
808   -infodir | --infodir | --infodi | --infod | --info | --inf)
809     ac_prev=infodir ;;
810   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
811     infodir=$ac_optarg ;;
812
813   -libdir | --libdir | --libdi | --libd)
814     ac_prev=libdir ;;
815   -libdir=* | --libdir=* | --libdi=* | --libd=*)
816     libdir=$ac_optarg ;;
817
818   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
819   | --libexe | --libex | --libe)
820     ac_prev=libexecdir ;;
821   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
822   | --libexe=* | --libex=* | --libe=*)
823     libexecdir=$ac_optarg ;;
824
825   -localedir | --localedir | --localedi | --localed | --locale)
826     ac_prev=localedir ;;
827   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
828     localedir=$ac_optarg ;;
829
830   -localstatedir | --localstatedir | --localstatedi | --localstated \
831   | --localstate | --localstat | --localsta | --localst | --locals)
832     ac_prev=localstatedir ;;
833   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
834   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
835     localstatedir=$ac_optarg ;;
836
837   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
838     ac_prev=mandir ;;
839   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
840     mandir=$ac_optarg ;;
841
842   -nfp | --nfp | --nf)
843     # Obsolete; use --without-fp.
844     with_fp=no ;;
845
846   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
847   | --no-cr | --no-c | -n)
848     no_create=yes ;;
849
850   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
851   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
852     no_recursion=yes ;;
853
854   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
855   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
856   | --oldin | --oldi | --old | --ol | --o)
857     ac_prev=oldincludedir ;;
858   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
859   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
860   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
861     oldincludedir=$ac_optarg ;;
862
863   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
864     ac_prev=prefix ;;
865   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
866     prefix=$ac_optarg ;;
867
868   -program-prefix | --program-prefix | --program-prefi | --program-pref \
869   | --program-pre | --program-pr | --program-p)
870     ac_prev=program_prefix ;;
871   -program-prefix=* | --program-prefix=* | --program-prefi=* \
872   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
873     program_prefix=$ac_optarg ;;
874
875   -program-suffix | --program-suffix | --program-suffi | --program-suff \
876   | --program-suf | --program-su | --program-s)
877     ac_prev=program_suffix ;;
878   -program-suffix=* | --program-suffix=* | --program-suffi=* \
879   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
880     program_suffix=$ac_optarg ;;
881
882   -program-transform-name | --program-transform-name \
883   | --program-transform-nam | --program-transform-na \
884   | --program-transform-n | --program-transform- \
885   | --program-transform | --program-transfor \
886   | --program-transfo | --program-transf \
887   | --program-trans | --program-tran \
888   | --progr-tra | --program-tr | --program-t)
889     ac_prev=program_transform_name ;;
890   -program-transform-name=* | --program-transform-name=* \
891   | --program-transform-nam=* | --program-transform-na=* \
892   | --program-transform-n=* | --program-transform-=* \
893   | --program-transform=* | --program-transfor=* \
894   | --program-transfo=* | --program-transf=* \
895   | --program-trans=* | --program-tran=* \
896   | --progr-tra=* | --program-tr=* | --program-t=*)
897     program_transform_name=$ac_optarg ;;
898
899   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
900     ac_prev=pdfdir ;;
901   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
902     pdfdir=$ac_optarg ;;
903
904   -psdir | --psdir | --psdi | --psd | --ps)
905     ac_prev=psdir ;;
906   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
907     psdir=$ac_optarg ;;
908
909   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
910   | -silent | --silent | --silen | --sile | --sil)
911     silent=yes ;;
912
913   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
914     ac_prev=sbindir ;;
915   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
916   | --sbi=* | --sb=*)
917     sbindir=$ac_optarg ;;
918
919   -sharedstatedir | --sharedstatedir | --sharedstatedi \
920   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
921   | --sharedst | --shareds | --shared | --share | --shar \
922   | --sha | --sh)
923     ac_prev=sharedstatedir ;;
924   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
925   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
926   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
927   | --sha=* | --sh=*)
928     sharedstatedir=$ac_optarg ;;
929
930   -site | --site | --sit)
931     ac_prev=site ;;
932   -site=* | --site=* | --sit=*)
933     site=$ac_optarg ;;
934
935   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
936     ac_prev=srcdir ;;
937   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
938     srcdir=$ac_optarg ;;
939
940   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
941   | --syscon | --sysco | --sysc | --sys | --sy)
942     ac_prev=sysconfdir ;;
943   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
944   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
945     sysconfdir=$ac_optarg ;;
946
947   -target | --target | --targe | --targ | --tar | --ta | --t)
948     ac_prev=target_alias ;;
949   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
950     target_alias=$ac_optarg ;;
951
952   -v | -verbose | --verbose | --verbos | --verbo | --verb)
953     verbose=yes ;;
954
955   -version | --version | --versio | --versi | --vers | -V)
956     ac_init_version=: ;;
957
958   -with-* | --with-*)
959     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
960     # Reject names that are not valid shell variable names.
961     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
962       { echo "$as_me: error: invalid package name: $ac_package" >&2
963    { (exit 1); exit 1; }; }
964     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
965     eval with_$ac_package=\$ac_optarg ;;
966
967   -without-* | --without-*)
968     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
971       { echo "$as_me: error: invalid package name: $ac_package" >&2
972    { (exit 1); exit 1; }; }
973     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
974     eval with_$ac_package=no ;;
975
976   --x)
977     # Obsolete; use --with-x.
978     with_x=yes ;;
979
980   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
981   | --x-incl | --x-inc | --x-in | --x-i)
982     ac_prev=x_includes ;;
983   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
984   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
985     x_includes=$ac_optarg ;;
986
987   -x-libraries | --x-libraries | --x-librarie | --x-librari \
988   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
989     ac_prev=x_libraries ;;
990   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
991   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
992     x_libraries=$ac_optarg ;;
993
994   -*) { echo "$as_me: error: unrecognized option: $ac_option
995 Try \`$0 --help' for more information." >&2
996    { (exit 1); exit 1; }; }
997     ;;
998
999   *=*)
1000     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1003       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1004    { (exit 1); exit 1; }; }
1005     eval $ac_envvar=\$ac_optarg
1006     export $ac_envvar ;;
1007
1008   *)
1009     # FIXME: should be removed in autoconf 3.0.
1010     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1011     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1013     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1014     ;;
1015
1016   esac
1017 done
1018
1019 if test -n "$ac_prev"; then
1020   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1021   { echo "$as_me: error: missing argument to $ac_option" >&2
1022    { (exit 1); exit 1; }; }
1023 fi
1024
1025 # Be sure to have absolute directory names.
1026 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1027                 datadir sysconfdir sharedstatedir localstatedir includedir \
1028                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1029                 libdir localedir mandir
1030 do
1031   eval ac_val=\$$ac_var
1032   case $ac_val in
1033     [\\/$]* | ?:[\\/]* )  continue;;
1034     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1035   esac
1036   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1037    { (exit 1); exit 1; }; }
1038 done
1039
1040 # There might be people who depend on the old broken behavior: `$host'
1041 # used to hold the argument of --host etc.
1042 # FIXME: To remove some day.
1043 build=$build_alias
1044 host=$host_alias
1045 target=$target_alias
1046
1047 # FIXME: To remove some day.
1048 if test "x$host_alias" != x; then
1049   if test "x$build_alias" = x; then
1050     cross_compiling=maybe
1051     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1052     If a cross compiler is detected then cross compile mode will be used." >&2
1053   elif test "x$build_alias" != "x$host_alias"; then
1054     cross_compiling=yes
1055   fi
1056 fi
1057
1058 ac_tool_prefix=
1059 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1060
1061 test "$silent" = yes && exec 6>/dev/null
1062
1063
1064 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1065 ac_ls_di=`ls -di .` &&
1066 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1067   { echo "$as_me: error: Working directory cannot be determined" >&2
1068    { (exit 1); exit 1; }; }
1069 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1070   { echo "$as_me: error: pwd does not report name of working directory" >&2
1071    { (exit 1); exit 1; }; }
1072
1073
1074 # Find the source files, if location was not specified.
1075 if test -z "$srcdir"; then
1076   ac_srcdir_defaulted=yes
1077   # Try the directory containing this script, then the parent directory.
1078   ac_confdir=`$as_dirname -- "$0" ||
1079 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1080          X"$0" : 'X\(//\)[^/]' \| \
1081          X"$0" : 'X\(//\)$' \| \
1082          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1083 echo X"$0" |
1084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1085             s//\1/
1086             q
1087           }
1088           /^X\(\/\/\)[^/].*/{
1089             s//\1/
1090             q
1091           }
1092           /^X\(\/\/\)$/{
1093             s//\1/
1094             q
1095           }
1096           /^X\(\/\).*/{
1097             s//\1/
1098             q
1099           }
1100           s/.*/./; q'`
1101   srcdir=$ac_confdir
1102   if test ! -r "$srcdir/$ac_unique_file"; then
1103     srcdir=..
1104   fi
1105 else
1106   ac_srcdir_defaulted=no
1107 fi
1108 if test ! -r "$srcdir/$ac_unique_file"; then
1109   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1110   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1111    { (exit 1); exit 1; }; }
1112 fi
1113 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1114 ac_abs_confdir=`(
1115         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1116    { (exit 1); exit 1; }; }
1117         pwd)`
1118 # When building in place, set srcdir=.
1119 if test "$ac_abs_confdir" = "$ac_pwd"; then
1120   srcdir=.
1121 fi
1122 # Remove unnecessary trailing slashes from srcdir.
1123 # Double slashes in file names in object file debugging info
1124 # mess up M-x gdb in Emacs.
1125 case $srcdir in
1126 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1127 esac
1128 for ac_var in $ac_precious_vars; do
1129   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1130   eval ac_env_${ac_var}_value=\$${ac_var}
1131   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1132   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1133 done
1134
1135 #
1136 # Report the --help message.
1137 #
1138 if test "$ac_init_help" = "long"; then
1139   # Omit some internal or obsolete options to make the list less imposing.
1140   # This message is too long to be a string in the A/UX 3.1 sh.
1141   cat <<_ACEOF
1142 \`configure' configures this package to adapt to many kinds of systems.
1143
1144 Usage: $0 [OPTION]... [VAR=VALUE]...
1145
1146 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1147 VAR=VALUE.  See below for descriptions of some of the useful variables.
1148
1149 Defaults for the options are specified in brackets.
1150
1151 Configuration:
1152   -h, --help              display this help and exit
1153       --help=short        display options specific to this package
1154       --help=recursive    display the short help of all the included packages
1155   -V, --version           display version information and exit
1156   -q, --quiet, --silent   do not print \`checking...' messages
1157       --cache-file=FILE   cache test results in FILE [disabled]
1158   -C, --config-cache      alias for \`--cache-file=config.cache'
1159   -n, --no-create         do not create output files
1160       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1161
1162 Installation directories:
1163   --prefix=PREFIX         install architecture-independent files in PREFIX
1164                           [$ac_default_prefix]
1165   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1166                           [PREFIX]
1167
1168 By default, \`make install' will install all the files in
1169 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1170 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1171 for instance \`--prefix=\$HOME'.
1172
1173 For better control, use the options below.
1174
1175 Fine tuning of the installation directories:
1176   --bindir=DIR           user executables [EPREFIX/bin]
1177   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1178   --libexecdir=DIR       program executables [EPREFIX/libexec]
1179   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1180   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1181   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1182   --libdir=DIR           object code libraries [EPREFIX/lib]
1183   --includedir=DIR       C header files [PREFIX/include]
1184   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1185   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1186   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1187   --infodir=DIR          info documentation [DATAROOTDIR/info]
1188   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1189   --mandir=DIR           man documentation [DATAROOTDIR/man]
1190   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1191   --htmldir=DIR          html documentation [DOCDIR]
1192   --dvidir=DIR           dvi documentation [DOCDIR]
1193   --pdfdir=DIR           pdf documentation [DOCDIR]
1194   --psdir=DIR            ps documentation [DOCDIR]
1195 _ACEOF
1196
1197   cat <<\_ACEOF
1198 _ACEOF
1199 fi
1200
1201 if test -n "$ac_init_help"; then
1202
1203   cat <<\_ACEOF
1204
1205 Optional Features:
1206   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1207   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1208   --enable-shared[=PKGS]  build shared libraries [default=yes]
1209
1210 Optional Packages:
1211   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1212   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1213   --with-rlm-ldap-lib-dir=DIR       directory for LDAP library files
1214   --with-rlm-ldap-include-dir=DIR   directory for LDAP include files
1215   --with-threads          use threads, if available. (default=yes)
1216   --with-edir             enable Novell eDirectory integration.  (default=no)
1217
1218 Some influential environment variables:
1219   CC          C compiler command
1220   CFLAGS      C compiler flags
1221   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1222               nonstandard directory <lib dir>
1223   LIBS        libraries to pass to the linker, e.g. -l<library>
1224   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1225               you have headers in a nonstandard directory <include dir>
1226
1227 Use these variables to override the choices made by `configure' or to help
1228 it to find libraries and programs with nonstandard names/locations.
1229
1230 _ACEOF
1231 ac_status=$?
1232 fi
1233
1234 if test "$ac_init_help" = "recursive"; then
1235   # If there are subdirs, report their specific --help.
1236   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1237     test -d "$ac_dir" || continue
1238     ac_builddir=.
1239
1240 case "$ac_dir" in
1241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1242 *)
1243   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1244   # A ".." for each directory in $ac_dir_suffix.
1245   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1246   case $ac_top_builddir_sub in
1247   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1248   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1249   esac ;;
1250 esac
1251 ac_abs_top_builddir=$ac_pwd
1252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1253 # for backward compatibility:
1254 ac_top_builddir=$ac_top_build_prefix
1255
1256 case $srcdir in
1257   .)  # We are building in place.
1258     ac_srcdir=.
1259     ac_top_srcdir=$ac_top_builddir_sub
1260     ac_abs_top_srcdir=$ac_pwd ;;
1261   [\\/]* | ?:[\\/]* )  # Absolute name.
1262     ac_srcdir=$srcdir$ac_dir_suffix;
1263     ac_top_srcdir=$srcdir
1264     ac_abs_top_srcdir=$srcdir ;;
1265   *) # Relative name.
1266     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1267     ac_top_srcdir=$ac_top_build_prefix$srcdir
1268     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1269 esac
1270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1271
1272     cd "$ac_dir" || { ac_status=$?; continue; }
1273     # Check for guested configure.
1274     if test -f "$ac_srcdir/configure.gnu"; then
1275       echo &&
1276       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1277     elif test -f "$ac_srcdir/configure"; then
1278       echo &&
1279       $SHELL "$ac_srcdir/configure" --help=recursive
1280     else
1281       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1282     fi || ac_status=$?
1283     cd "$ac_pwd" || { ac_status=$?; break; }
1284   done
1285 fi
1286
1287 test -n "$ac_init_help" && exit $ac_status
1288 if $ac_init_version; then
1289   cat <<\_ACEOF
1290 configure
1291 generated by GNU Autoconf 2.61
1292
1293 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1294 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1295 This configure script is free software; the Free Software Foundation
1296 gives unlimited permission to copy, distribute and modify it.
1297 _ACEOF
1298   exit
1299 fi
1300 cat >config.log <<_ACEOF
1301 This file contains any messages produced by compilers while
1302 running configure, to aid debugging if configure makes a mistake.
1303
1304 It was created by $as_me, which was
1305 generated by GNU Autoconf 2.61.  Invocation command line was
1306
1307   $ $0 $@
1308
1309 _ACEOF
1310 exec 5>>config.log
1311 {
1312 cat <<_ASUNAME
1313 ## --------- ##
1314 ## Platform. ##
1315 ## --------- ##
1316
1317 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1318 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1319 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1320 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1321 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1322
1323 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1324 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1325
1326 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1327 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1328 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1329 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1330 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1331 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1332 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1333
1334 _ASUNAME
1335
1336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1337 for as_dir in $PATH
1338 do
1339   IFS=$as_save_IFS
1340   test -z "$as_dir" && as_dir=.
1341   echo "PATH: $as_dir"
1342 done
1343 IFS=$as_save_IFS
1344
1345 } >&5
1346
1347 cat >&5 <<_ACEOF
1348
1349
1350 ## ----------- ##
1351 ## Core tests. ##
1352 ## ----------- ##
1353
1354 _ACEOF
1355
1356
1357 # Keep a trace of the command line.
1358 # Strip out --no-create and --no-recursion so they do not pile up.
1359 # Strip out --silent because we don't want to record it for future runs.
1360 # Also quote any args containing shell meta-characters.
1361 # Make two passes to allow for proper duplicate-argument suppression.
1362 ac_configure_args=
1363 ac_configure_args0=
1364 ac_configure_args1=
1365 ac_must_keep_next=false
1366 for ac_pass in 1 2
1367 do
1368   for ac_arg
1369   do
1370     case $ac_arg in
1371     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1372     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1373     | -silent | --silent | --silen | --sile | --sil)
1374       continue ;;
1375     *\'*)
1376       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1377     esac
1378     case $ac_pass in
1379     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1380     2)
1381       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1382       if test $ac_must_keep_next = true; then
1383         ac_must_keep_next=false # Got value, back to normal.
1384       else
1385         case $ac_arg in
1386           *=* | --config-cache | -C | -disable-* | --disable-* \
1387           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1388           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1389           | -with-* | --with-* | -without-* | --without-* | --x)
1390             case "$ac_configure_args0 " in
1391               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1392             esac
1393             ;;
1394           -* ) ac_must_keep_next=true ;;
1395         esac
1396       fi
1397       ac_configure_args="$ac_configure_args '$ac_arg'"
1398       ;;
1399     esac
1400   done
1401 done
1402 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1403 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1404
1405 # When interrupted or exit'd, cleanup temporary files, and complete
1406 # config.log.  We remove comments because anyway the quotes in there
1407 # would cause problems or look ugly.
1408 # WARNING: Use '\'' to represent an apostrophe within the trap.
1409 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1410 trap 'exit_status=$?
1411   # Save into config.log some information that might help in debugging.
1412   {
1413     echo
1414
1415     cat <<\_ASBOX
1416 ## ---------------- ##
1417 ## Cache variables. ##
1418 ## ---------------- ##
1419 _ASBOX
1420     echo
1421     # The following way of writing the cache mishandles newlines in values,
1422 (
1423   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1424     eval ac_val=\$$ac_var
1425     case $ac_val in #(
1426     *${as_nl}*)
1427       case $ac_var in #(
1428       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1429 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1430       esac
1431       case $ac_var in #(
1432       _ | IFS | as_nl) ;; #(
1433       *) $as_unset $ac_var ;;
1434       esac ;;
1435     esac
1436   done
1437   (set) 2>&1 |
1438     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1439     *${as_nl}ac_space=\ *)
1440       sed -n \
1441         "s/'\''/'\''\\\\'\'''\''/g;
1442           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1443       ;; #(
1444     *)
1445       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1446       ;;
1447     esac |
1448     sort
1449 )
1450     echo
1451
1452     cat <<\_ASBOX
1453 ## ----------------- ##
1454 ## Output variables. ##
1455 ## ----------------- ##
1456 _ASBOX
1457     echo
1458     for ac_var in $ac_subst_vars
1459     do
1460       eval ac_val=\$$ac_var
1461       case $ac_val in
1462       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1463       esac
1464       echo "$ac_var='\''$ac_val'\''"
1465     done | sort
1466     echo
1467
1468     if test -n "$ac_subst_files"; then
1469       cat <<\_ASBOX
1470 ## ------------------- ##
1471 ## File substitutions. ##
1472 ## ------------------- ##
1473 _ASBOX
1474       echo
1475       for ac_var in $ac_subst_files
1476       do
1477         eval ac_val=\$$ac_var
1478         case $ac_val in
1479         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1480         esac
1481         echo "$ac_var='\''$ac_val'\''"
1482       done | sort
1483       echo
1484     fi
1485
1486     if test -s confdefs.h; then
1487       cat <<\_ASBOX
1488 ## ----------- ##
1489 ## confdefs.h. ##
1490 ## ----------- ##
1491 _ASBOX
1492       echo
1493       cat confdefs.h
1494       echo
1495     fi
1496     test "$ac_signal" != 0 &&
1497       echo "$as_me: caught signal $ac_signal"
1498     echo "$as_me: exit $exit_status"
1499   } >&5
1500   rm -f core *.core core.conftest.* &&
1501     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1502     exit $exit_status
1503 ' 0
1504 for ac_signal in 1 2 13 15; do
1505   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1506 done
1507 ac_signal=0
1508
1509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1510 rm -f -r conftest* confdefs.h
1511
1512 # Predefined preprocessor variables.
1513
1514 cat >>confdefs.h <<_ACEOF
1515 #define PACKAGE_NAME "$PACKAGE_NAME"
1516 _ACEOF
1517
1518
1519 cat >>confdefs.h <<_ACEOF
1520 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1521 _ACEOF
1522
1523
1524 cat >>confdefs.h <<_ACEOF
1525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1526 _ACEOF
1527
1528
1529 cat >>confdefs.h <<_ACEOF
1530 #define PACKAGE_STRING "$PACKAGE_STRING"
1531 _ACEOF
1532
1533
1534 cat >>confdefs.h <<_ACEOF
1535 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1536 _ACEOF
1537
1538
1539 # Let the site file select an alternate cache file if it wants to.
1540 # Prefer explicitly selected file to automatically selected ones.
1541 if test -n "$CONFIG_SITE"; then
1542   set x "$CONFIG_SITE"
1543 elif test "x$prefix" != xNONE; then
1544   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1545 else
1546   set x "$ac_default_prefix/share/config.site" \
1547         "$ac_default_prefix/etc/config.site"
1548 fi
1549 shift
1550 for ac_site_file
1551 do
1552   if test -r "$ac_site_file"; then
1553     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1554 echo "$as_me: loading site script $ac_site_file" >&6;}
1555     sed 's/^/| /' "$ac_site_file" >&5
1556     . "$ac_site_file"
1557   fi
1558 done
1559
1560 if test -r "$cache_file"; then
1561   # Some versions of bash will fail to source /dev/null (special
1562   # files actually), so we avoid doing that.
1563   if test -f "$cache_file"; then
1564     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1565 echo "$as_me: loading cache $cache_file" >&6;}
1566     case $cache_file in
1567       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1568       *)                      . "./$cache_file";;
1569     esac
1570   fi
1571 else
1572   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1573 echo "$as_me: creating cache $cache_file" >&6;}
1574   >$cache_file
1575 fi
1576
1577 # Check that the precious variables saved in the cache have kept the same
1578 # value.
1579 ac_cache_corrupted=false
1580 for ac_var in $ac_precious_vars; do
1581   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1582   eval ac_new_set=\$ac_env_${ac_var}_set
1583   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1584   eval ac_new_val=\$ac_env_${ac_var}_value
1585   case $ac_old_set,$ac_new_set in
1586     set,)
1587       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1588 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1589       ac_cache_corrupted=: ;;
1590     ,set)
1591       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1592 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1593       ac_cache_corrupted=: ;;
1594     ,);;
1595     *)
1596       if test "x$ac_old_val" != "x$ac_new_val"; then
1597         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1598 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1599         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1600 echo "$as_me:   former value:  $ac_old_val" >&2;}
1601         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1602 echo "$as_me:   current value: $ac_new_val" >&2;}
1603         ac_cache_corrupted=:
1604       fi;;
1605   esac
1606   # Pass precious variables to config.status.
1607   if test "$ac_new_set" = set; then
1608     case $ac_new_val in
1609     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1610     *) ac_arg=$ac_var=$ac_new_val ;;
1611     esac
1612     case " $ac_configure_args " in
1613       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1614       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1615     esac
1616   fi
1617 done
1618 if $ac_cache_corrupted; then
1619   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1620 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1621   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1622 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1623    { (exit 1); exit 1; }; }
1624 fi
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642 ac_ext=c
1643 ac_cpp='$CPP $CPPFLAGS'
1644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1647
1648
1649
1650
1651
1652 fail=
1653 SMART_LIBS=
1654 SMART_CLFAGS=
1655 if test x$with_rlm_ldap != xno; then
1656
1657                                 ac_ext=c
1658 ac_cpp='$CPP $CPPFLAGS'
1659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662 if test -n "$ac_tool_prefix"; then
1663   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1667 if test "${ac_cv_prog_CC+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   if test -n "$CC"; then
1671   ac_cv_prog_CC="$CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   for ac_exec_ext in '' $ac_executable_extensions; do
1679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1680     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682     break 2
1683   fi
1684 done
1685 done
1686 IFS=$as_save_IFS
1687
1688 fi
1689 fi
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692   { echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6; }
1694 else
1695   { echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6; }
1697 fi
1698
1699
1700 fi
1701 if test -z "$ac_cv_prog_CC"; then
1702   ac_ct_CC=$CC
1703   # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc; ac_word=$2
1705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708   echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710   if test -n "$ac_ct_CC"; then
1711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716   IFS=$as_save_IFS
1717   test -z "$as_dir" && as_dir=.
1718   for ac_exec_ext in '' $ac_executable_extensions; do
1719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1720     ac_cv_prog_ac_ct_CC="gcc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726 IFS=$as_save_IFS
1727
1728 fi
1729 fi
1730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731 if test -n "$ac_ct_CC"; then
1732   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733 echo "${ECHO_T}$ac_ct_CC" >&6; }
1734 else
1735   { echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6; }
1737 fi
1738
1739   if test "x$ac_ct_CC" = x; then
1740     CC=""
1741   else
1742     case $cross_compiling:$ac_tool_warned in
1743 yes:)
1744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1745 whose name does not start with the host triplet.  If you think this
1746 configuration is useful to you, please write to autoconf@gnu.org." >&5
1747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1748 whose name does not start with the host triplet.  If you think this
1749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1750 ac_tool_warned=yes ;;
1751 esac
1752     CC=$ac_ct_CC
1753   fi
1754 else
1755   CC="$ac_cv_prog_CC"
1756 fi
1757
1758 if test -z "$CC"; then
1759           if test -n "$ac_tool_prefix"; then
1760     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1761 set dummy ${ac_tool_prefix}cc; ac_word=$2
1762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765   echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767   if test -n "$CC"; then
1768   ac_cv_prog_CC="$CC" # Let the user override the test.
1769 else
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773   IFS=$as_save_IFS
1774   test -z "$as_dir" && as_dir=.
1775   for ac_exec_ext in '' $ac_executable_extensions; do
1776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1777     ac_cv_prog_CC="${ac_tool_prefix}cc"
1778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779     break 2
1780   fi
1781 done
1782 done
1783 IFS=$as_save_IFS
1784
1785 fi
1786 fi
1787 CC=$ac_cv_prog_CC
1788 if test -n "$CC"; then
1789   { echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6; }
1791 else
1792   { echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6; }
1794 fi
1795
1796
1797   fi
1798 fi
1799 if test -z "$CC"; then
1800   # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   if test -n "$CC"; then
1808   ac_cv_prog_CC="$CC" # Let the user override the test.
1809 else
1810   ac_prog_rejected=no
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1818     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819        ac_prog_rejected=yes
1820        continue
1821      fi
1822     ac_cv_prog_CC="cc"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828 IFS=$as_save_IFS
1829
1830 if test $ac_prog_rejected = yes; then
1831   # We found a bogon in the path, so make sure we never use it.
1832   set dummy $ac_cv_prog_CC
1833   shift
1834   if test $# != 0; then
1835     # We chose a different compiler from the bogus one.
1836     # However, it has the same basename, so the bogon will be chosen
1837     # first if we set CC to just the basename; use the full file name.
1838     shift
1839     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1840   fi
1841 fi
1842 fi
1843 fi
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846   { echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6; }
1848 else
1849   { echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6; }
1851 fi
1852
1853
1854 fi
1855 if test -z "$CC"; then
1856   if test -n "$ac_tool_prefix"; then
1857   for ac_prog in cl.exe
1858   do
1859     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863 if test "${ac_cv_prog_CC+set}" = set; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   if test -n "$CC"; then
1867   ac_cv_prog_CC="$CC" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872   IFS=$as_save_IFS
1873   test -z "$as_dir" && as_dir=.
1874   for ac_exec_ext in '' $ac_executable_extensions; do
1875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878     break 2
1879   fi
1880 done
1881 done
1882 IFS=$as_save_IFS
1883
1884 fi
1885 fi
1886 CC=$ac_cv_prog_CC
1887 if test -n "$CC"; then
1888   { echo "$as_me:$LINENO: result: $CC" >&5
1889 echo "${ECHO_T}$CC" >&6; }
1890 else
1891   { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1893 fi
1894
1895
1896     test -n "$CC" && break
1897   done
1898 fi
1899 if test -z "$CC"; then
1900   ac_ct_CC=$CC
1901   for ac_prog in cl.exe
1902 do
1903   # Extract the first word of "$ac_prog", so it can be a program name with args.
1904 set dummy $ac_prog; ac_word=$2
1905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$ac_ct_CC"; then
1911   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920     ac_cv_prog_ac_ct_CC="$ac_prog"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926 IFS=$as_save_IFS
1927
1928 fi
1929 fi
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6; }
1934 else
1935   { echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6; }
1937 fi
1938
1939
1940   test -n "$ac_ct_CC" && break
1941 done
1942
1943   if test "x$ac_ct_CC" = x; then
1944     CC=""
1945   else
1946     case $cross_compiling:$ac_tool_warned in
1947 yes:)
1948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1949 whose name does not start with the host triplet.  If you think this
1950 configuration is useful to you, please write to autoconf@gnu.org." >&5
1951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1952 whose name does not start with the host triplet.  If you think this
1953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1954 ac_tool_warned=yes ;;
1955 esac
1956     CC=$ac_ct_CC
1957   fi
1958 fi
1959
1960 fi
1961
1962
1963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&2;}
1967    { (exit 1); exit 1; }; }
1968
1969 # Provide some information about the compiler.
1970 echo "$as_me:$LINENO: checking for C compiler version" >&5
1971 ac_compiler=`set X $ac_compile; echo $2`
1972 { (ac_try="$ac_compiler --version >&5"
1973 case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1978   (eval "$ac_compiler --version >&5") 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }
1982 { (ac_try="$ac_compiler -v >&5"
1983 case "(($ac_try" in
1984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985   *) ac_try_echo=$ac_try;;
1986 esac
1987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1988   (eval "$ac_compiler -v >&5") 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }
1992 { (ac_try="$ac_compiler -V >&5"
1993 case "(($ac_try" in
1994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995   *) ac_try_echo=$ac_try;;
1996 esac
1997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1998   (eval "$ac_compiler -V >&5") 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }
2002
2003 cat >conftest.$ac_ext <<_ACEOF
2004 /* confdefs.h.  */
2005 _ACEOF
2006 cat confdefs.h >>conftest.$ac_ext
2007 cat >>conftest.$ac_ext <<_ACEOF
2008 /* end confdefs.h.  */
2009
2010 int
2011 main ()
2012 {
2013
2014   ;
2015   return 0;
2016 }
2017 _ACEOF
2018 ac_clean_files_save=$ac_clean_files
2019 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2020 # Try to create an executable without -o first, disregard a.out.
2021 # It will help us diagnose broken compilers, and finding out an intuition
2022 # of exeext.
2023 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2024 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2025 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2026 #
2027 # List of possible output files, starting from the most likely.
2028 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2029 # only as a last resort.  b.out is created by i960 compilers.
2030 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2031 #
2032 # The IRIX 6 linker writes into existing files which may not be
2033 # executable, retaining their permissions.  Remove them first so a
2034 # subsequent execution test works.
2035 ac_rmfiles=
2036 for ac_file in $ac_files
2037 do
2038   case $ac_file in
2039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2040     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2041   esac
2042 done
2043 rm -f $ac_rmfiles
2044
2045 if { (ac_try="$ac_link_default"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2051   (eval "$ac_link_default") 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; then
2055   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2057 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2058 # so that the user can short-circuit this test for compilers unknown to
2059 # Autoconf.
2060 for ac_file in $ac_files ''
2061 do
2062   test -f "$ac_file" || continue
2063   case $ac_file in
2064     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2065         ;;
2066     [ab].out )
2067         # We found the default executable, but exeext='' is most
2068         # certainly right.
2069         break;;
2070     *.* )
2071         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2072         then :; else
2073            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074         fi
2075         # We set ac_cv_exeext here because the later test for it is not
2076         # safe: cross compilers may not add the suffix if given an `-o'
2077         # argument, so we may need to know it at that point already.
2078         # Even if this section looks crufty: it has the advantage of
2079         # actually working.
2080         break;;
2081     * )
2082         break;;
2083   esac
2084 done
2085 test "$ac_cv_exeext" = no && ac_cv_exeext=
2086
2087 else
2088   ac_file=''
2089 fi
2090
2091 { echo "$as_me:$LINENO: result: $ac_file" >&5
2092 echo "${ECHO_T}$ac_file" >&6; }
2093 if test -z "$ac_file"; then
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: C compiler cannot create executables
2100 See \`config.log' for more details." >&2;}
2101    { (exit 77); exit 77; }; }
2102 fi
2103
2104 ac_exeext=$ac_cv_exeext
2105
2106 # Check that the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113   if { ac_try='./$ac_file'
2114   { (case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_try") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123     cross_compiling=no
2124   else
2125     if test "$cross_compiling" = maybe; then
2126         cross_compiling=yes
2127     else
2128         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'.
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'.
2133 See \`config.log' for more details." >&2;}
2134    { (exit 1); exit 1; }; }
2135     fi
2136   fi
2137 fi
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2140
2141 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2142 ac_clean_files=$ac_clean_files_save
2143 # Check that the compiler produces executables we can run.  If not, either
2144 # the compiler is broken, or we cross compile.
2145 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2147 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148 echo "${ECHO_T}$cross_compiling" >&6; }
2149
2150 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2152 if { (ac_try="$ac_link"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158   (eval "$ac_link") 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; then
2162   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2164 # work properly (i.e., refer to `conftest.exe'), while it won't with
2165 # `rm'.
2166 for ac_file in conftest.exe conftest conftest.*; do
2167   test -f "$ac_file" || continue
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171           break;;
2172     * ) break;;
2173   esac
2174 done
2175 else
2176   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2179 See \`config.log' for more details." >&2;}
2180    { (exit 1); exit 1; }; }
2181 fi
2182
2183 rm -f conftest$ac_cv_exeext
2184 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2185 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2186
2187 rm -f conftest.$ac_ext
2188 EXEEXT=$ac_cv_exeext
2189 ac_exeext=$EXEEXT
2190 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2191 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2192 if test "${ac_cv_objext+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h.  */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h.  */
2201
2202 int
2203 main ()
2204 {
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 rm -f conftest.o conftest.obj
2211 if { (ac_try="$ac_compile"
2212 case "(($ac_try" in
2213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214   *) ac_try_echo=$ac_try;;
2215 esac
2216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2217   (eval "$ac_compile") 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; then
2221   for ac_file in conftest.o conftest.obj conftest.*; do
2222   test -f "$ac_file" || continue;
2223   case $ac_file in
2224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2225     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2226        break;;
2227   esac
2228 done
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241 fi
2242 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6; }
2244 OBJEXT=$ac_cv_objext
2245 ac_objext=$OBJEXT
2246 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h.  */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h.  */
2257
2258 int
2259 main ()
2260 {
2261 #ifndef __GNUC__
2262        choke me
2263 #endif
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (ac_try="$ac_compile"
2271 case "(($ac_try" in
2272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273   *) ac_try_echo=$ac_try;;
2274 esac
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276   (eval "$ac_compile") 2>conftest.er1
2277   ac_status=$?
2278   grep -v '^ *+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } && {
2283          test -z "$ac_c_werror_flag" ||
2284          test ! -s conftest.err
2285        } && test -s conftest.$ac_objext; then
2286   ac_compiler_gnu=yes
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291         ac_compiler_gnu=no
2292 fi
2293
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2296
2297 fi
2298 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2299 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2300 GCC=`test $ac_compiler_gnu = yes && echo yes`
2301 ac_test_CFLAGS=${CFLAGS+set}
2302 ac_save_CFLAGS=$CFLAGS
2303 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_cc_g+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   ac_save_c_werror_flag=$ac_c_werror_flag
2309    ac_c_werror_flag=yes
2310    ac_cv_prog_cc_g=no
2311    CFLAGS="-g"
2312    cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318
2319 int
2320 main ()
2321 {
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (ac_try="$ac_compile"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334   (eval "$ac_compile") 2>conftest.er1
2335   ac_status=$?
2336   grep -v '^ *+' conftest.er1 >conftest.err
2337   rm -f conftest.er1
2338   cat conftest.err >&5
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); } && {
2341          test -z "$ac_c_werror_flag" ||
2342          test ! -s conftest.err
2343        } && test -s conftest.$ac_objext; then
2344   ac_cv_prog_cc_g=yes
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349         CFLAGS=""
2350       cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356
2357 int
2358 main ()
2359 {
2360
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (ac_try="$ac_compile"
2367 case "(($ac_try" in
2368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369   *) ac_try_echo=$ac_try;;
2370 esac
2371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2372   (eval "$ac_compile") 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } && {
2379          test -z "$ac_c_werror_flag" ||
2380          test ! -s conftest.err
2381        } && test -s conftest.$ac_objext; then
2382   :
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387         ac_c_werror_flag=$ac_save_c_werror_flag
2388          CFLAGS="-g"
2389          cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395
2396 int
2397 main ()
2398 {
2399
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (ac_try="$ac_compile"
2406 case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_compile") 2>conftest.er1
2412   ac_status=$?
2413   grep -v '^ *+' conftest.er1 >conftest.err
2414   rm -f conftest.er1
2415   cat conftest.err >&5
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } && {
2418          test -z "$ac_c_werror_flag" ||
2419          test ! -s conftest.err
2420        } && test -s conftest.$ac_objext; then
2421   ac_cv_prog_cc_g=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426
2427 fi
2428
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 fi
2431
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436    ac_c_werror_flag=$ac_save_c_werror_flag
2437 fi
2438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2440 if test "$ac_test_CFLAGS" = set; then
2441   CFLAGS=$ac_save_CFLAGS
2442 elif test $ac_cv_prog_cc_g = yes; then
2443   if test "$GCC" = yes; then
2444     CFLAGS="-g -O2"
2445   else
2446     CFLAGS="-g"
2447   fi
2448 else
2449   if test "$GCC" = yes; then
2450     CFLAGS="-O2"
2451   else
2452     CFLAGS=
2453   fi
2454 fi
2455 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2456 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_cc_c89+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   ac_cv_prog_cc_c89=no
2461 ac_save_CC=$CC
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468 #include <stdarg.h>
2469 #include <stdio.h>
2470 #include <sys/types.h>
2471 #include <sys/stat.h>
2472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2473 struct buf { int x; };
2474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475 static char *e (p, i)
2476      char **p;
2477      int i;
2478 {
2479   return p[i];
2480 }
2481 static char *f (char * (*g) (char **, int), char **p, ...)
2482 {
2483   char *s;
2484   va_list v;
2485   va_start (v,p);
2486   s = g (p, va_arg (v,int));
2487   va_end (v);
2488   return s;
2489 }
2490
2491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2492    function prototypes and stuff, but not '\xHH' hex character constants.
2493    These don't provoke an error unfortunately, instead are silently treated
2494    as 'x'.  The following induces an error, until -std is added to get
2495    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2496    array size at least.  It's necessary to write '\x00'==0 to get something
2497    that's true only with -std.  */
2498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2499
2500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2501    inside strings and character constants.  */
2502 #define FOO(x) 'x'
2503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2504
2505 int test (int i, double x);
2506 struct s1 {int (*f) (int a);};
2507 struct s2 {int (*f) (double a);};
2508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2509 int argc;
2510 char **argv;
2511 int
2512 main ()
2513 {
2514 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2515   ;
2516   return 0;
2517 }
2518 _ACEOF
2519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2520         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2521 do
2522   CC="$ac_save_CC $ac_arg"
2523   rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2525 case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_compile") 2>conftest.er1
2531   ac_status=$?
2532   grep -v '^ *+' conftest.er1 >conftest.err
2533   rm -f conftest.er1
2534   cat conftest.err >&5
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); } && {
2537          test -z "$ac_c_werror_flag" ||
2538          test ! -s conftest.err
2539        } && test -s conftest.$ac_objext; then
2540   ac_cv_prog_cc_c89=$ac_arg
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545
2546 fi
2547
2548 rm -f core conftest.err conftest.$ac_objext
2549   test "x$ac_cv_prog_cc_c89" != "xno" && break
2550 done
2551 rm -f conftest.$ac_ext
2552 CC=$ac_save_CC
2553
2554 fi
2555 # AC_CACHE_VAL
2556 case "x$ac_cv_prog_cc_c89" in
2557   x)
2558     { echo "$as_me:$LINENO: result: none needed" >&5
2559 echo "${ECHO_T}none needed" >&6; } ;;
2560   xno)
2561     { echo "$as_me:$LINENO: result: unsupported" >&5
2562 echo "${ECHO_T}unsupported" >&6; } ;;
2563   *)
2564     CC="$CC $ac_cv_prog_cc_c89"
2565     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2567 esac
2568
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577
2578                 rlm_ldap_lib_dir=
2579
2580 # Check whether --with-rlm-ldap-lib-dir was given.
2581 if test "${with_rlm_ldap_lib_dir+set}" = set; then
2582   withval=$with_rlm_ldap_lib_dir;  case "$withval" in
2583             no)
2584                 { { echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
2585 echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
2586    { (exit 1); exit 1; }; }
2587                 ;;
2588             yes)
2589                 ;;
2590             *)
2591                 rlm_ldap_lib_dir="$withval"
2592                 ;;
2593           esac
2594
2595 fi
2596
2597
2598                 rlm_ldap_include_dir=
2599
2600 # Check whether --with-rlm-ldap-include-dir was given.
2601 if test "${with_rlm_ldap_include_dir+set}" = set; then
2602   withval=$with_rlm_ldap_include_dir;  case "$withval" in
2603             no)
2604                 { { echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
2605 echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
2606    { (exit 1); exit 1; }; }
2607                 ;;
2608             yes)
2609                 ;;
2610             *)
2611                 rlm_ldap_include_dir="$withval"
2612                 ;;
2613           esac
2614
2615 fi
2616
2617
2618                 # Check whether --enable-shared was given.
2619 if test "${enable_shared+set}" = set; then
2620   enableval=$enable_shared; p=${PACKAGE-default}
2621     case $enableval in
2622     yes) enable_shared=yes ;;
2623     no) enable_shared=no ;;
2624     *)
2625       enable_shared=no
2626       # Look at the argument we got.  We use all the common list separators.
2627       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2628       for pkg in $enableval; do
2629         IFS="$lt_save_ifs"
2630         if test "X$pkg" = "X$p"; then
2631           enable_shared=yes
2632         fi
2633       done
2634       IFS="$lt_save_ifs"
2635       ;;
2636     esac
2637 else
2638   enable_shared=yes
2639 fi
2640
2641
2642
2643                                 if test "x$enable_shared" = "xno"; then
2644                 { echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
2645 echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
2646         fi
2647
2648                 rlm_ldap_with_threads=yes
2649
2650 # Check whether --with-threads was given.
2651 if test "${with_threads+set}" = set; then
2652   withval=$with_threads;  case "$withval" in
2653             no)
2654                 rlm_ldap_with_threads=no
2655                 ;;
2656             *)
2657                 ;;
2658             esac
2659 fi
2660
2661
2662
2663                         if test "x$rlm_ldap_with_threads" = "xyes"; then
2664             { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2665 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
2666 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   ac_check_lib_save_LIBS=$LIBS
2670 LIBS="-lpthread  $LIBS"
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h.  */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h.  */
2677
2678 /* Override any GCC internal prototype to avoid an error.
2679    Use char because int might match the return type of a GCC
2680    builtin and then its argument prototype would still apply.  */
2681 #ifdef __cplusplus
2682 extern "C"
2683 #endif
2684 char pthread_create ();
2685 int
2686 main ()
2687 {
2688 return pthread_create ();
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { (ac_try="$ac_link"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_link") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } && {
2707          test -z "$ac_c_werror_flag" ||
2708          test ! -s conftest.err
2709        } && test -s conftest$ac_exeext &&
2710        $as_test_x conftest$ac_exeext; then
2711   ac_cv_lib_pthread_pthread_create=yes
2712 else
2713   echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716         ac_cv_lib_pthread_pthread_create=no
2717 fi
2718
2719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2720       conftest$ac_exeext conftest.$ac_ext
2721 LIBS=$ac_check_lib_save_LIBS
2722 fi
2723 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2724 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
2725 if test $ac_cv_lib_pthread_pthread_create = yes; then
2726    LIBS="-lpthread $LIBS"
2727 else
2728   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2729 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
2730 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   ac_check_lib_save_LIBS=$LIBS
2734 LIBS="-lc_r  $LIBS"
2735
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742
2743 /* Override any GCC internal prototype to avoid an error.
2744    Use char because int might match the return type of a GCC
2745    builtin and then its argument prototype would still apply.  */
2746 #ifdef __cplusplus
2747 extern "C"
2748 #endif
2749 char pthread_create ();
2750 int
2751 main ()
2752 {
2753 return pthread_create ();
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 rm -f conftest.$ac_objext conftest$ac_exeext
2759 if { (ac_try="$ac_link"
2760 case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765   (eval "$ac_link") 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } && {
2772          test -z "$ac_c_werror_flag" ||
2773          test ! -s conftest.err
2774        } && test -s conftest$ac_exeext &&
2775        $as_test_x conftest$ac_exeext; then
2776   ac_cv_lib_c_r_pthread_create=yes
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781         ac_cv_lib_c_r_pthread_create=no
2782 fi
2783
2784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2785       conftest$ac_exeext conftest.$ac_ext
2786 LIBS=$ac_check_lib_save_LIBS
2787 fi
2788 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2789 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
2790 if test $ac_cv_lib_c_r_pthread_create = yes; then
2791    LIBS="-lc_r $LIBS"
2792 else
2793    rlm_ldap_with_threads="no"
2794
2795 fi
2796
2797
2798 fi
2799
2800         fi
2801
2802                                 smart_try_dir=$rlm_ldap_lib_dir
2803         if test "x$rlm_ldap_with_threads" = "xyes"; then
2804
2805
2806 sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
2807 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2808 { echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
2809 echo $ECHO_N "checking for ldap_init in -lldap_r... $ECHO_C" >&6; }
2810
2811 old_LIBS="$LIBS"
2812 smart_lib=
2813 smart_lib_dir=
2814
2815 if test "x$smart_try_dir" != "x"; then
2816   for try in $smart_try_dir; do
2817     LIBS="-L$try -lldap_r $old_LIBS"
2818     cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 extern char ldap_init();
2825 int
2826 main ()
2827 {
2828  ldap_init()
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (ac_try="$ac_link"
2835 case "(($ac_try" in
2836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837   *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840   (eval "$ac_link") 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } && {
2847          test -z "$ac_c_werror_flag" ||
2848          test ! -s conftest.err
2849        } && test -s conftest$ac_exeext &&
2850        $as_test_x conftest$ac_exeext; then
2851   smart_lib="-L$try -lldap_r"
2852 else
2853   echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856
2857 fi
2858
2859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2860       conftest$ac_exeext conftest.$ac_ext
2861     if test "x$smart_lib" != "x"; then
2862       break;
2863     fi
2864   done
2865   LIBS="$old_LIBS"
2866 fi
2867
2868 if test "x$smart_lib" = "x"; then
2869   LIBS="-lldap_r $old_LIBS"
2870   cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876 extern char ldap_init();
2877 int
2878 main ()
2879 {
2880  ldap_init()
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.$ac_objext conftest$ac_exeext
2886 if { (ac_try="$ac_link"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_link") 2>conftest.er1
2893   ac_status=$?
2894   grep -v '^ *+' conftest.er1 >conftest.err
2895   rm -f conftest.er1
2896   cat conftest.err >&5
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); } && {
2899          test -z "$ac_c_werror_flag" ||
2900          test ! -s conftest.err
2901        } && test -s conftest$ac_exeext &&
2902        $as_test_x conftest$ac_exeext; then
2903   smart_lib="-lldap_r"
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908
2909 fi
2910
2911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2912       conftest$ac_exeext conftest.$ac_ext
2913   LIBS="$old_LIBS"
2914 fi
2915
2916 if test "x$smart_lib" = "x"; then
2917
2918
2919 if test "x$LOCATE" != "x"; then
2920         DIRS=
2921   file=libldap_r${libltdl_cv_shlibext}
2922
2923   for x in `${LOCATE} $file 2>/dev/null`; do
2924                                         base=`echo $x | sed "s%/${file}%%"`
2925     if test "x$x" = "x$base"; then
2926       continue;
2927     fi
2928
2929     dir=`${DIRNAME} $x 2>/dev/null`
2930                 exclude=`echo ${dir} | ${GREP} /home`
2931     if test "x$exclude" != "x"; then
2932       continue
2933     fi
2934
2935                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2936     if test "x$already" = "x"; then
2937       DIRS="$DIRS $dir"
2938     fi
2939   done
2940 fi
2941
2942 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2943
2944
2945
2946 if test "x$LOCATE" != "x"; then
2947         DIRS=
2948   file=libldap_r.a
2949
2950   for x in `${LOCATE} $file 2>/dev/null`; do
2951                                         base=`echo $x | sed "s%/${file}%%"`
2952     if test "x$x" = "x$base"; then
2953       continue;
2954     fi
2955
2956     dir=`${DIRNAME} $x 2>/dev/null`
2957                 exclude=`echo ${dir} | ${GREP} /home`
2958     if test "x$exclude" != "x"; then
2959       continue
2960     fi
2961
2962                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2963     if test "x$already" = "x"; then
2964       DIRS="$DIRS $dir"
2965     fi
2966   done
2967 fi
2968
2969 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2970
2971
2972   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2973     LIBS="-L$try -lldap_r $old_LIBS"
2974     cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h.  */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h.  */
2980 extern char ldap_init();
2981 int
2982 main ()
2983 {
2984  ldap_init()
2985   ;
2986   return 0;
2987 }
2988 _ACEOF
2989 rm -f conftest.$ac_objext conftest$ac_exeext
2990 if { (ac_try="$ac_link"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_link") 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } && {
3003          test -z "$ac_c_werror_flag" ||
3004          test ! -s conftest.err
3005        } && test -s conftest$ac_exeext &&
3006        $as_test_x conftest$ac_exeext; then
3007   smart_lib="-L$try -lldap_r"
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012
3013 fi
3014
3015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3016       conftest$ac_exeext conftest.$ac_ext
3017     if test "x$smart_lib" != "x"; then
3018       break;
3019     fi
3020   done
3021   LIBS="$old_LIBS"
3022 fi
3023
3024 if test "x$smart_lib" != "x"; then
3025   { echo "$as_me:$LINENO: result: yes" >&5
3026 echo "${ECHO_T}yes" >&6; }
3027   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3028   LIBS="$smart_lib $old_LIBS"
3029   SMART_LIBS="$smart_lib $SMART_LIBS"
3030 else
3031   { echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6; }
3033 fi
3034
3035             if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
3036                 fail="$fail libldap_r"
3037             fi
3038         else
3039
3040
3041 sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
3042 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
3043 { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
3044 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
3045
3046 old_LIBS="$LIBS"
3047 smart_lib=
3048 smart_lib_dir=
3049
3050 if test "x$smart_try_dir" != "x"; then
3051   for try in $smart_try_dir; do
3052     LIBS="-L$try -lldap $old_LIBS"
3053     cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059 extern char ldap_init();
3060 int
3061 main ()
3062 {
3063  ldap_init()
3064   ;
3065   return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext conftest$ac_exeext
3069 if { (ac_try="$ac_link"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_link") 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } && {
3082          test -z "$ac_c_werror_flag" ||
3083          test ! -s conftest.err
3084        } && test -s conftest$ac_exeext &&
3085        $as_test_x conftest$ac_exeext; then
3086   smart_lib="-L$try -lldap"
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091
3092 fi
3093
3094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3095       conftest$ac_exeext conftest.$ac_ext
3096     if test "x$smart_lib" != "x"; then
3097       break;
3098     fi
3099   done
3100   LIBS="$old_LIBS"
3101 fi
3102
3103 if test "x$smart_lib" = "x"; then
3104   LIBS="-lldap $old_LIBS"
3105   cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111 extern char ldap_init();
3112 int
3113 main ()
3114 {
3115  ldap_init()
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext conftest$ac_exeext
3121 if { (ac_try="$ac_link"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_link") 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } && {
3134          test -z "$ac_c_werror_flag" ||
3135          test ! -s conftest.err
3136        } && test -s conftest$ac_exeext &&
3137        $as_test_x conftest$ac_exeext; then
3138   smart_lib="-lldap"
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143
3144 fi
3145
3146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3147       conftest$ac_exeext conftest.$ac_ext
3148   LIBS="$old_LIBS"
3149 fi
3150
3151 if test "x$smart_lib" = "x"; then
3152
3153
3154 if test "x$LOCATE" != "x"; then
3155         DIRS=
3156   file=libldap${libltdl_cv_shlibext}
3157
3158   for x in `${LOCATE} $file 2>/dev/null`; do
3159                                         base=`echo $x | sed "s%/${file}%%"`
3160     if test "x$x" = "x$base"; then
3161       continue;
3162     fi
3163
3164     dir=`${DIRNAME} $x 2>/dev/null`
3165                 exclude=`echo ${dir} | ${GREP} /home`
3166     if test "x$exclude" != "x"; then
3167       continue
3168     fi
3169
3170                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3171     if test "x$already" = "x"; then
3172       DIRS="$DIRS $dir"
3173     fi
3174   done
3175 fi
3176
3177 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3178
3179
3180
3181 if test "x$LOCATE" != "x"; then
3182         DIRS=
3183   file=libldap.a
3184
3185   for x in `${LOCATE} $file 2>/dev/null`; do
3186                                         base=`echo $x | sed "s%/${file}%%"`
3187     if test "x$x" = "x$base"; then
3188       continue;
3189     fi
3190
3191     dir=`${DIRNAME} $x 2>/dev/null`
3192                 exclude=`echo ${dir} | ${GREP} /home`
3193     if test "x$exclude" != "x"; then
3194       continue
3195     fi
3196
3197                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3198     if test "x$already" = "x"; then
3199       DIRS="$DIRS $dir"
3200     fi
3201   done
3202 fi
3203
3204 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3205
3206
3207   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3208     LIBS="-L$try -lldap $old_LIBS"
3209     cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215 extern char ldap_init();
3216 int
3217 main ()
3218 {
3219  ldap_init()
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext conftest$ac_exeext
3225 if { (ac_try="$ac_link"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_link") 2>conftest.er1
3232   ac_status=$?
3233   grep -v '^ *+' conftest.er1 >conftest.err
3234   rm -f conftest.er1
3235   cat conftest.err >&5
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } && {
3238          test -z "$ac_c_werror_flag" ||
3239          test ! -s conftest.err
3240        } && test -s conftest$ac_exeext &&
3241        $as_test_x conftest$ac_exeext; then
3242   smart_lib="-L$try -lldap"
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247
3248 fi
3249
3250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3251       conftest$ac_exeext conftest.$ac_ext
3252     if test "x$smart_lib" != "x"; then
3253       break;
3254     fi
3255   done
3256   LIBS="$old_LIBS"
3257 fi
3258
3259 if test "x$smart_lib" != "x"; then
3260   { echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6; }
3262   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3263   LIBS="$smart_lib $old_LIBS"
3264   SMART_LIBS="$smart_lib $SMART_LIBS"
3265 else
3266   { echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6; }
3268 fi
3269
3270             if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
3271                 fail="$fail libldap"
3272             fi
3273         fi
3274
3275
3276         smart_try_dir=$rlm_ldap_include_dir
3277
3278
3279 ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
3280 { echo "$as_me:$LINENO: checking for ldap.h" >&5
3281 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
3282
3283 old_CFLAGS="$CFLAGS"
3284 smart_include=
3285 smart_include_dir=
3286
3287 if test "x$smart_try_dir" != "x"; then
3288   for try in $smart_try_dir; do
3289     CFLAGS="$old_CFLAGS -I$try"
3290     cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296
3297                     #include <ldap.h>
3298 int
3299 main ()
3300 {
3301  int a = 1;
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313   (eval "$ac_compile") 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } && {
3320          test -z "$ac_c_werror_flag" ||
3321          test ! -s conftest.err
3322        } && test -s conftest.$ac_objext; then
3323   smart_include="-I$try"
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328         smart_include=
3329 fi
3330
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332     if test "x$smart_include" != "x"; then
3333       break;
3334     fi
3335   done
3336   CFLAGS="$old_CFLAGS"
3337 fi
3338
3339 if test "x$smart_include" = "x"; then
3340   cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346
3347                   #include <ldap.h>
3348 int
3349 main ()
3350 {
3351  int a = 1;
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_compile") 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } && {
3370          test -z "$ac_c_werror_flag" ||
3371          test ! -s conftest.err
3372        } && test -s conftest.$ac_objext; then
3373   smart_include=" "
3374 else
3375   echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378         smart_include=
3379 fi
3380
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 fi
3383
3384 if test "x$smart_include" = "x"; then
3385
3386
3387 if test "x$LOCATE" != "x"; then
3388         DIRS=
3389   file=ldap.h
3390
3391   for x in `${LOCATE} $file 2>/dev/null`; do
3392                                         base=`echo $x | sed "s%/${file}%%"`
3393     if test "x$x" = "x$base"; then
3394       continue;
3395     fi
3396
3397     dir=`${DIRNAME} $x 2>/dev/null`
3398                 exclude=`echo ${dir} | ${GREP} /home`
3399     if test "x$exclude" != "x"; then
3400       continue
3401     fi
3402
3403                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3404     if test "x$already" = "x"; then
3405       DIRS="$DIRS $dir"
3406     fi
3407   done
3408 fi
3409
3410 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3411
3412
3413   for try in $smart_include_dir /usr/local/include /opt/include; do
3414     CFLAGS="$old_CFLAGS -I$try"
3415     cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421
3422                     #include <ldap.h>
3423 int
3424 main ()
3425 {
3426  int a = 1;
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_compile") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } && {
3445          test -z "$ac_c_werror_flag" ||
3446          test ! -s conftest.err
3447        } && test -s conftest.$ac_objext; then
3448   smart_include="-I$try"
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453         smart_include=
3454 fi
3455
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457     if test "x$smart_include" != "x"; then
3458       break;
3459     fi
3460   done
3461   CFLAGS="$old_CFLAGS"
3462 fi
3463
3464 if test "x$smart_include" != "x"; then
3465   { echo "$as_me:$LINENO: result: yes" >&5
3466 echo "${ECHO_T}yes" >&6; }
3467   eval "ac_cv_header_$ac_safe=yes"
3468   CFLAGS="$old_CFLAGS $smart_include"
3469   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3470 else
3471   { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3473 fi
3474
3475         if test "$ac_cv_header_ldap_h" != "yes"; then
3476           fail="$fail ldap.h"
3477         fi
3478
3479
3480         if test "x$fail" = "x"; then
3481             { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
3482 echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
3483 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492 /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
3493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3494 #define ldap_start_tls_s innocuous_ldap_start_tls_s
3495
3496 /* System header to define __stub macros and hopefully few prototypes,
3497     which can conflict with char ldap_start_tls_s (); below.
3498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499     <limits.h> exists even on freestanding compilers.  */
3500
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506
3507 #undef ldap_start_tls_s
3508
3509 /* Override any GCC internal prototype to avoid an error.
3510    Use char because int might match the return type of a GCC
3511    builtin and then its argument prototype would still apply.  */
3512 #ifdef __cplusplus
3513 extern "C"
3514 #endif
3515 char ldap_start_tls_s ();
3516 /* The GNU C library defines this for functions which it implements
3517     to always fail with ENOSYS.  Some functions are actually named
3518     something starting with __ and the normal name is an alias.  */
3519 #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
3520 choke me
3521 #endif
3522
3523 int
3524 main ()
3525 {
3526 return ldap_start_tls_s ();
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext conftest$ac_exeext
3532 if { (ac_try="$ac_link"
3533 case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_link") 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } && {
3545          test -z "$ac_c_werror_flag" ||
3546          test ! -s conftest.err
3547        } && test -s conftest$ac_exeext &&
3548        $as_test_x conftest$ac_exeext; then
3549   ac_cv_func_ldap_start_tls_s=yes
3550 else
3551   echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554         ac_cv_func_ldap_start_tls_s=no
3555 fi
3556
3557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3558       conftest$ac_exeext conftest.$ac_ext
3559 fi
3560 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
3561 echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
3562 if test $ac_cv_func_ldap_start_tls_s = yes; then
3563    SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_START_TLS"
3564 fi
3565
3566             { echo "$as_me:$LINENO: checking for ldap_initialize" >&5
3567 echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6; }
3568 if test "${ac_cv_func_ldap_initialize+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 /* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
3578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3579 #define ldap_initialize innocuous_ldap_initialize
3580
3581 /* System header to define __stub macros and hopefully few prototypes,
3582     which can conflict with char ldap_initialize (); below.
3583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584     <limits.h> exists even on freestanding compilers.  */
3585
3586 #ifdef __STDC__
3587 # include <limits.h>
3588 #else
3589 # include <assert.h>
3590 #endif
3591
3592 #undef ldap_initialize
3593
3594 /* Override any GCC internal prototype to avoid an error.
3595    Use char because int might match the return type of a GCC
3596    builtin and then its argument prototype would still apply.  */
3597 #ifdef __cplusplus
3598 extern "C"
3599 #endif
3600 char ldap_initialize ();
3601 /* The GNU C library defines this for functions which it implements
3602     to always fail with ENOSYS.  Some functions are actually named
3603     something starting with __ and the normal name is an alias.  */
3604 #if defined __stub_ldap_initialize || defined __stub___ldap_initialize
3605 choke me
3606 #endif
3607
3608 int
3609 main ()
3610 {
3611 return ldap_initialize ();
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (ac_try="$ac_link"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623   (eval "$ac_link") 2>conftest.er1
3624   ac_status=$?
3625   grep -v '^ *+' conftest.er1 >conftest.err
3626   rm -f conftest.er1
3627   cat conftest.err >&5
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); } && {
3630          test -z "$ac_c_werror_flag" ||
3631          test ! -s conftest.err
3632        } && test -s conftest$ac_exeext &&
3633        $as_test_x conftest$ac_exeext; then
3634   ac_cv_func_ldap_initialize=yes
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639         ac_cv_func_ldap_initialize=no
3640 fi
3641
3642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3643       conftest$ac_exeext conftest.$ac_ext
3644 fi
3645 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
3646 echo "${ECHO_T}$ac_cv_func_ldap_initialize" >&6; }
3647 if test $ac_cv_func_ldap_initialize = yes; then
3648    SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INITIALIZE"
3649 fi
3650
3651             { echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
3652 echo $ECHO_N "checking for ldap_int_tls_config... $ECHO_C" >&6; }
3653 if test "${ac_cv_func_ldap_int_tls_config+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 /* Define ldap_int_tls_config to an innocuous variant, in case <limits.h> declares ldap_int_tls_config.
3663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3664 #define ldap_int_tls_config innocuous_ldap_int_tls_config
3665
3666 /* System header to define __stub macros and hopefully few prototypes,
3667     which can conflict with char ldap_int_tls_config (); below.
3668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669     <limits.h> exists even on freestanding compilers.  */
3670
3671 #ifdef __STDC__
3672 # include <limits.h>
3673 #else
3674 # include <assert.h>
3675 #endif
3676
3677 #undef ldap_int_tls_config
3678
3679 /* Override any GCC internal prototype to avoid an error.
3680    Use char because int might match the return type of a GCC
3681    builtin and then its argument prototype would still apply.  */
3682 #ifdef __cplusplus
3683 extern "C"
3684 #endif
3685 char ldap_int_tls_config ();
3686 /* The GNU C library defines this for functions which it implements
3687     to always fail with ENOSYS.  Some functions are actually named
3688     something starting with __ and the normal name is an alias.  */
3689 #if defined __stub_ldap_int_tls_config || defined __stub___ldap_int_tls_config
3690 choke me
3691 #endif
3692
3693 int
3694 main ()
3695 {
3696 return ldap_int_tls_config ();
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext conftest$ac_exeext
3702 if { (ac_try="$ac_link"
3703 case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_link") 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } && {
3715          test -z "$ac_c_werror_flag" ||
3716          test ! -s conftest.err
3717        } && test -s conftest$ac_exeext &&
3718        $as_test_x conftest$ac_exeext; then
3719   ac_cv_func_ldap_int_tls_config=yes
3720 else
3721   echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724         ac_cv_func_ldap_int_tls_config=no
3725 fi
3726
3727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3728       conftest$ac_exeext conftest.$ac_ext
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
3731 echo "${ECHO_T}$ac_cv_func_ldap_int_tls_config" >&6; }
3732 if test $ac_cv_func_ldap_int_tls_config = yes; then
3733    SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INT_TLS_CONFIG"
3734 fi
3735
3736
3737
3738
3739 for ac_func in ldap_set_rebind_proc
3740 do
3741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h.  */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h.  */
3753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3755 #define $ac_func innocuous_$ac_func
3756
3757 /* System header to define __stub macros and hopefully few prototypes,
3758     which can conflict with char $ac_func (); below.
3759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760     <limits.h> exists even on freestanding compilers.  */
3761
3762 #ifdef __STDC__
3763 # include <limits.h>
3764 #else
3765 # include <assert.h>
3766 #endif
3767
3768 #undef $ac_func
3769
3770 /* Override any GCC internal prototype to avoid an error.
3771    Use char because int might match the return type of a GCC
3772    builtin and then its argument prototype would still apply.  */
3773 #ifdef __cplusplus
3774 extern "C"
3775 #endif
3776 char $ac_func ();
3777 /* The GNU C library defines this for functions which it implements
3778     to always fail with ENOSYS.  Some functions are actually named
3779     something starting with __ and the normal name is an alias.  */
3780 #if defined __stub_$ac_func || defined __stub___$ac_func
3781 choke me
3782 #endif
3783
3784 int
3785 main ()
3786 {
3787 return $ac_func ();
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (ac_try="$ac_link"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799   (eval "$ac_link") 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } && {
3806          test -z "$ac_c_werror_flag" ||
3807          test ! -s conftest.err
3808        } && test -s conftest$ac_exeext &&
3809        $as_test_x conftest$ac_exeext; then
3810   eval "$as_ac_var=yes"
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815         eval "$as_ac_var=no"
3816 fi
3817
3818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3819       conftest$ac_exeext conftest.$ac_ext
3820 fi
3821 ac_res=`eval echo '${'$as_ac_var'}'`
3822                { echo "$as_me:$LINENO: result: $ac_res" >&5
3823 echo "${ECHO_T}$ac_res" >&6; }
3824 if test `eval echo '${'$as_ac_var'}'` = yes; then
3825   cat >>confdefs.h <<_ACEOF
3826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3827 _ACEOF
3828
3829 fi
3830 done
3831
3832         { echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
3833 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6; }
3834 if test "${ac_cv_ldap_set_rebind_proc+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837
3838         cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844
3845         #include <lber.h>
3846         #include <ldap.h>
3847 int
3848 main ()
3849 {
3850 ldap_set_rebind_proc(0, 0, 0);
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_compile") 2>conftest.er1
3863   ac_status=$?
3864   grep -v '^ *+' conftest.er1 >conftest.err
3865   rm -f conftest.er1
3866   cat conftest.err >&5
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } && {
3869          test -z "$ac_c_werror_flag" ||
3870          test ! -s conftest.err
3871        } && test -s conftest.$ac_objext; then
3872   ac_cv_ldap_set_rebind_proc=3
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877         ac_cv_ldap_set_rebind_proc=2
3878 fi
3879
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 fi
3882 { echo "$as_me:$LINENO: result: $ac_cv_ldap_set_rebind_proc" >&5
3883 echo "${ECHO_T}$ac_cv_ldap_set_rebind_proc" >&6; }
3884         fi
3885
3886         targetname=rlm_ldap
3887 else
3888         targetname=
3889         echo \*\*\* module rlm_ldap is disabled.
3890 fi
3891
3892 if test x"$fail" != x""; then
3893         if test x"${enable_strict_dependencies}" = x"yes"; then
3894                 { { echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
3895 echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
3896    { (exit 1); exit 1; }; }
3897         else
3898                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
3899 echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
3900                 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
3901 echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
3902                 if test x"$headersuggestion" != x; then
3903                         { echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
3904 echo "$as_me: WARNING: $headersuggestion" >&2;}
3905                 fi
3906                 if test x"$libsuggestion" != x; then
3907                         { echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
3908 echo "$as_me: WARNING: $libsuggestion" >&2;}
3909                 fi
3910                 targetname=""
3911         fi
3912 fi
3913
3914 WITH_EDIRECTORY=no
3915
3916 # Check whether --with-edir was given.
3917 if test "${with_edir+set}" = set; then
3918   withval=$with_edir;  case "$withval" in
3919     yes)
3920         SMART_CFLAGS="$SMART_CFLAGS -DNOVELL_UNIVERSAL_PASSWORD -DNOVELL"
3921         edir="edir_ldapext.c"
3922         ;;
3923     *)
3924         ;;
3925   esac
3926
3927 fi
3928
3929
3930 ldap_ldflags=$SMART_LIBS
3931 ldap_cflags="$SMART_CFLAGS -DLDAP_DEPRECATED -DLDAP_SET_REBIND_PROC_ARGS=$ac_cv_ldap_set_rebind_proc"
3932
3933
3934
3935
3936
3937   unset ac_cv_env_LIBS_set
3938   unset ac_cv_env_LIBS_value
3939
3940   ac_config_files="$ac_config_files Makefile all.mk"
3941
3942 cat >confcache <<\_ACEOF
3943 # This file is a shell script that caches the results of configure
3944 # tests run on this system so they can be shared between configure
3945 # scripts and configure runs, see configure's option --config-cache.
3946 # It is not useful on other systems.  If it contains results you don't
3947 # want to keep, you may remove or edit it.
3948 #
3949 # config.status only pays attention to the cache file if you give it
3950 # the --recheck option to rerun configure.
3951 #
3952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3954 # following values.
3955
3956 _ACEOF
3957
3958 # The following way of writing the cache mishandles newlines in values,
3959 # but we know of no workaround that is simple, portable, and efficient.
3960 # So, we kill variables containing newlines.
3961 # Ultrix sh set writes to stderr and can't be redirected directly,
3962 # and sets the high bit in the cache file unless we assign to the vars.
3963 (
3964   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3965     eval ac_val=\$$ac_var
3966     case $ac_val in #(
3967     *${as_nl}*)
3968       case $ac_var in #(
3969       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3970 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3971       esac
3972       case $ac_var in #(
3973       _ | IFS | as_nl) ;; #(
3974       *) $as_unset $ac_var ;;
3975       esac ;;
3976     esac
3977   done
3978
3979   (set) 2>&1 |
3980     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3981     *${as_nl}ac_space=\ *)
3982       # `set' does not quote correctly, so add quotes (double-quote
3983       # substitution turns \\\\ into \\, and sed turns \\ into \).
3984       sed -n \
3985         "s/'/'\\\\''/g;
3986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3987       ;; #(
3988     *)
3989       # `set' quotes correctly as required by POSIX, so do not add quotes.
3990       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3991       ;;
3992     esac |
3993     sort
3994 ) |
3995   sed '
3996      /^ac_cv_env_/b end
3997      t clear
3998      :clear
3999      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4000      t end
4001      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4002      :end' >>confcache
4003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4004   if test -w "$cache_file"; then
4005     test "x$cache_file" != "x/dev/null" &&
4006       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4007 echo "$as_me: updating cache $cache_file" >&6;}
4008     cat confcache >$cache_file
4009   else
4010     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4011 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4012   fi
4013 fi
4014 rm -f confcache
4015
4016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4017 # Let make expand exec_prefix.
4018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4019
4020 # Transform confdefs.h into DEFS.
4021 # Protect against shell expansion while executing Makefile rules.
4022 # Protect against Makefile macro expansion.
4023 #
4024 # If the first sed substitution is executed (which looks for macros that
4025 # take arguments), then branch to the quote section.  Otherwise,
4026 # look for a macro that doesn't take arguments.
4027 ac_script='
4028 t clear
4029 :clear
4030 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4031 t quote
4032 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4033 t quote
4034 b any
4035 :quote
4036 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4037 s/\[/\\&/g
4038 s/\]/\\&/g
4039 s/\$/$$/g
4040 H
4041 :any
4042 ${
4043         g
4044         s/^\n//
4045         s/\n/ /g
4046         p
4047 }
4048 '
4049 DEFS=`sed -n "$ac_script" confdefs.h`
4050
4051
4052 ac_libobjs=
4053 ac_ltlibobjs=
4054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4055   # 1. Remove the extension, and $U if already installed.
4056   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4057   ac_i=`echo "$ac_i" | sed "$ac_script"`
4058   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4059   #    will be set to the directory where LIBOBJS objects are built.
4060   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4061   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4062 done
4063 LIBOBJS=$ac_libobjs
4064
4065 LTLIBOBJS=$ac_ltlibobjs
4066
4067
4068
4069 : ${CONFIG_STATUS=./config.status}
4070 ac_clean_files_save=$ac_clean_files
4071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4072 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4073 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4074 cat >$CONFIG_STATUS <<_ACEOF
4075 #! $SHELL
4076 # Generated by $as_me.
4077 # Run this file to recreate the current configuration.
4078 # Compiler output produced by configure, useful for debugging
4079 # configure, is in config.log if it exists.
4080
4081 debug=false
4082 ac_cs_recheck=false
4083 ac_cs_silent=false
4084 SHELL=\${CONFIG_SHELL-$SHELL}
4085 _ACEOF
4086
4087 cat >>$CONFIG_STATUS <<\_ACEOF
4088 ## --------------------- ##
4089 ## M4sh Initialization.  ##
4090 ## --------------------- ##
4091
4092 # Be more Bourne compatible
4093 DUALCASE=1; export DUALCASE # for MKS sh
4094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4095   emulate sh
4096   NULLCMD=:
4097   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4098   # is contrary to our usage.  Disable this feature.
4099   alias -g '${1+"$@"}'='"$@"'
4100   setopt NO_GLOB_SUBST
4101 else
4102   case `(set -o) 2>/dev/null` in
4103   *posix*) set -o posix ;;
4104 esac
4105
4106 fi
4107
4108
4109
4110
4111 # PATH needs CR
4112 # Avoid depending upon Character Ranges.
4113 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4114 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4115 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4116 as_cr_digits='0123456789'
4117 as_cr_alnum=$as_cr_Letters$as_cr_digits
4118
4119 # The user is always right.
4120 if test "${PATH_SEPARATOR+set}" != set; then
4121   echo "#! /bin/sh" >conf$$.sh
4122   echo  "exit 0"   >>conf$$.sh
4123   chmod +x conf$$.sh
4124   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4125     PATH_SEPARATOR=';'
4126   else
4127     PATH_SEPARATOR=:
4128   fi
4129   rm -f conf$$.sh
4130 fi
4131
4132 # Support unset when possible.
4133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4134   as_unset=unset
4135 else
4136   as_unset=false
4137 fi
4138
4139
4140 # IFS
4141 # We need space, tab and new line, in precisely that order.  Quoting is
4142 # there to prevent editors from complaining about space-tab.
4143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4144 # splitting by setting IFS to empty value.)
4145 as_nl='
4146 '
4147 IFS=" ""        $as_nl"
4148
4149 # Find who we are.  Look in the path if we contain no directory separator.
4150 case $0 in
4151   *[\\/]* ) as_myself=$0 ;;
4152   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4158 done
4159 IFS=$as_save_IFS
4160
4161      ;;
4162 esac
4163 # We did not find ourselves, most probably we were run as `sh COMMAND'
4164 # in which case we are not to be found in the path.
4165 if test "x$as_myself" = x; then
4166   as_myself=$0
4167 fi
4168 if test ! -f "$as_myself"; then
4169   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4170   { (exit 1); exit 1; }
4171 fi
4172
4173 # Work around bugs in pre-3.0 UWIN ksh.
4174 for as_var in ENV MAIL MAILPATH
4175 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4176 done
4177 PS1='$ '
4178 PS2='> '
4179 PS4='+ '
4180
4181 # NLS nuisances.
4182 for as_var in \
4183   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4184   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4185   LC_TELEPHONE LC_TIME
4186 do
4187   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4188     eval $as_var=C; export $as_var
4189   else
4190     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4191   fi
4192 done
4193
4194 # Required to use basename.
4195 if expr a : '\(a\)' >/dev/null 2>&1 &&
4196    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4197   as_expr=expr
4198 else
4199   as_expr=false
4200 fi
4201
4202 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4203   as_basename=basename
4204 else
4205   as_basename=false
4206 fi
4207
4208
4209 # Name of the executable.
4210 as_me=`$as_basename -- "$0" ||
4211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4212          X"$0" : 'X\(//\)$' \| \
4213          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4214 echo X/"$0" |
4215     sed '/^.*\/\([^/][^/]*\)\/*$/{
4216             s//\1/
4217             q
4218           }
4219           /^X\/\(\/\/\)$/{
4220             s//\1/
4221             q
4222           }
4223           /^X\/\(\/\).*/{
4224             s//\1/
4225             q
4226           }
4227           s/.*/./; q'`
4228
4229 # CDPATH.
4230 $as_unset CDPATH
4231
4232
4233
4234   as_lineno_1=$LINENO
4235   as_lineno_2=$LINENO
4236   test "x$as_lineno_1" != "x$as_lineno_2" &&
4237   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4238
4239   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4240   # uniformly replaced by the line number.  The first 'sed' inserts a
4241   # line-number line after each line using $LINENO; the second 'sed'
4242   # does the real work.  The second script uses 'N' to pair each
4243   # line-number line with the line containing $LINENO, and appends
4244   # trailing '-' during substitution so that $LINENO is not a special
4245   # case at line end.
4246   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4247   # scripts with optimization help from Paolo Bonzini.  Blame Lee
4248   # E. McMahon (1931-1989) for sed's syntax.  :-)
4249   sed -n '
4250     p
4251     /[$]LINENO/=
4252   ' <$as_myself |
4253     sed '
4254       s/[$]LINENO.*/&-/
4255       t lineno
4256       b
4257       :lineno
4258       N
4259       :loop
4260       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4261       t loop
4262       s/-\n.*//
4263     ' >$as_me.lineno &&
4264   chmod +x "$as_me.lineno" ||
4265     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4266    { (exit 1); exit 1; }; }
4267
4268   # Don't try to exec as it changes $[0], causing all sort of problems
4269   # (the dirname of $[0] is not the place where we might find the
4270   # original and so on.  Autoconf is especially sensitive to this).
4271   . "./$as_me.lineno"
4272   # Exit status is that of the last command.
4273   exit
4274 }
4275
4276
4277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4278   as_dirname=dirname
4279 else
4280   as_dirname=false
4281 fi
4282
4283 ECHO_C= ECHO_N= ECHO_T=
4284 case `echo -n x` in
4285 -n*)
4286   case `echo 'x\c'` in
4287   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
4288   *)   ECHO_C='\c';;
4289   esac;;
4290 *)
4291   ECHO_N='-n';;
4292 esac
4293
4294 if expr a : '\(a\)' >/dev/null 2>&1 &&
4295    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4296   as_expr=expr
4297 else
4298   as_expr=false
4299 fi
4300
4301 rm -f conf$$ conf$$.exe conf$$.file
4302 if test -d conf$$.dir; then
4303   rm -f conf$$.dir/conf$$.file
4304 else
4305   rm -f conf$$.dir
4306   mkdir conf$$.dir
4307 fi
4308 echo >conf$$.file
4309 if ln -s conf$$.file conf$$ 2>/dev/null; then
4310   as_ln_s='ln -s'
4311   # ... but there are two gotchas:
4312   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4313   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4314   # In both cases, we have to default to `cp -p'.
4315   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4316     as_ln_s='cp -p'
4317 elif ln conf$$.file conf$$ 2>/dev/null; then
4318   as_ln_s=ln
4319 else
4320   as_ln_s='cp -p'
4321 fi
4322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4323 rmdir conf$$.dir 2>/dev/null
4324
4325 if mkdir -p . 2>/dev/null; then
4326   as_mkdir_p=:
4327 else
4328   test -d ./-p && rmdir ./-p
4329   as_mkdir_p=false
4330 fi
4331
4332 if test -x / >/dev/null 2>&1; then
4333   as_test_x='test -x'
4334 else
4335   if ls -dL / >/dev/null 2>&1; then
4336     as_ls_L_option=L
4337   else
4338     as_ls_L_option=
4339   fi
4340   as_test_x='
4341     eval sh -c '\''
4342       if test -d "$1"; then
4343         test -d "$1/.";
4344       else
4345         case $1 in
4346         -*)set "./$1";;
4347         esac;
4348         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4349         ???[sx]*):;;*)false;;esac;fi
4350     '\'' sh
4351   '
4352 fi
4353 as_executable_p=$as_test_x
4354
4355 # Sed expression to map a string onto a valid CPP name.
4356 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4357
4358 # Sed expression to map a string onto a valid variable name.
4359 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4360
4361
4362 exec 6>&1
4363
4364 # Save the log message, to keep $[0] and so on meaningful, and to
4365 # report actual input values of CONFIG_FILES etc. instead of their
4366 # values after options handling.
4367 ac_log="
4368 This file was extended by $as_me, which was
4369 generated by GNU Autoconf 2.61.  Invocation command line was
4370
4371   CONFIG_FILES    = $CONFIG_FILES
4372   CONFIG_HEADERS  = $CONFIG_HEADERS
4373   CONFIG_LINKS    = $CONFIG_LINKS
4374   CONFIG_COMMANDS = $CONFIG_COMMANDS
4375   $ $0 $@
4376
4377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4378 "
4379
4380 _ACEOF
4381
4382 cat >>$CONFIG_STATUS <<_ACEOF
4383 # Files that config.status was made for.
4384 config_files="$ac_config_files"
4385
4386 _ACEOF
4387
4388 cat >>$CONFIG_STATUS <<\_ACEOF
4389 ac_cs_usage="\
4390 \`$as_me' instantiates files from templates according to the
4391 current configuration.
4392
4393 Usage: $0 [OPTIONS] [FILE]...
4394
4395   -h, --help       print this help, then exit
4396   -V, --version    print version number and configuration settings, then exit
4397   -q, --quiet      do not print progress messages
4398   -d, --debug      don't remove temporary files
4399       --recheck    update $as_me by reconfiguring in the same conditions
4400   --file=FILE[:TEMPLATE]
4401                    instantiate the configuration file FILE
4402
4403 Configuration files:
4404 $config_files
4405
4406 Report bugs to <bug-autoconf@gnu.org>."
4407
4408 _ACEOF
4409 cat >>$CONFIG_STATUS <<_ACEOF
4410 ac_cs_version="\\
4411 config.status
4412 configured by $0, generated by GNU Autoconf 2.61,
4413   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4414
4415 Copyright (C) 2006 Free Software Foundation, Inc.
4416 This config.status script is free software; the Free Software Foundation
4417 gives unlimited permission to copy, distribute and modify it."
4418
4419 ac_pwd='$ac_pwd'
4420 srcdir='$srcdir'
4421 _ACEOF
4422
4423 cat >>$CONFIG_STATUS <<\_ACEOF
4424 # If no file are specified by the user, then we need to provide default
4425 # value.  By we need to know if files were specified by the user.
4426 ac_need_defaults=:
4427 while test $# != 0
4428 do
4429   case $1 in
4430   --*=*)
4431     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4432     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4433     ac_shift=:
4434     ;;
4435   *)
4436     ac_option=$1
4437     ac_optarg=$2
4438     ac_shift=shift
4439     ;;
4440   esac
4441
4442   case $ac_option in
4443   # Handling of the options.
4444   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4445     ac_cs_recheck=: ;;
4446   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4447     echo "$ac_cs_version"; exit ;;
4448   --debug | --debu | --deb | --de | --d | -d )
4449     debug=: ;;
4450   --file | --fil | --fi | --f )
4451     $ac_shift
4452     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4453     ac_need_defaults=false;;
4454   --he | --h |  --help | --hel | -h )
4455     echo "$ac_cs_usage"; exit ;;
4456   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4457   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4458     ac_cs_silent=: ;;
4459
4460   # This is an error.
4461   -*) { echo "$as_me: error: unrecognized option: $1
4462 Try \`$0 --help' for more information." >&2
4463    { (exit 1); exit 1; }; } ;;
4464
4465   *) ac_config_targets="$ac_config_targets $1"
4466      ac_need_defaults=false ;;
4467
4468   esac
4469   shift
4470 done
4471
4472 ac_configure_extra_args=
4473
4474 if $ac_cs_silent; then
4475   exec 6>/dev/null
4476   ac_configure_extra_args="$ac_configure_extra_args --silent"
4477 fi
4478
4479 _ACEOF
4480 cat >>$CONFIG_STATUS <<_ACEOF
4481 if \$ac_cs_recheck; then
4482   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4483   CONFIG_SHELL=$SHELL
4484   export CONFIG_SHELL
4485   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4486 fi
4487
4488 _ACEOF
4489 cat >>$CONFIG_STATUS <<\_ACEOF
4490 exec 5>>config.log
4491 {
4492   echo
4493   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4494 ## Running $as_me. ##
4495 _ASBOX
4496   echo "$ac_log"
4497 } >&5
4498
4499 _ACEOF
4500 cat >>$CONFIG_STATUS <<_ACEOF
4501 _ACEOF
4502
4503 cat >>$CONFIG_STATUS <<\_ACEOF
4504
4505 # Handling of arguments.
4506 for ac_config_target in $ac_config_targets
4507 do
4508   case $ac_config_target in
4509     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4510
4511   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4512 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4513    { (exit 1); exit 1; }; };;
4514   esac
4515 done
4516
4517
4518 # If the user did not use the arguments to specify the items to instantiate,
4519 # then the envvar interface is used.  Set only those that are not.
4520 # We use the long form for the default assignment because of an extremely
4521 # bizarre bug on SunOS 4.1.3.
4522 if $ac_need_defaults; then
4523   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4524 fi
4525
4526 # Have a temporary directory for convenience.  Make it in the build tree
4527 # simply because there is no reason against having it here, and in addition,
4528 # creating and moving files from /tmp can sometimes cause problems.
4529 # Hook for its removal unless debugging.
4530 # Note that there is a small window in which the directory will not be cleaned:
4531 # after its creation but before its name has been assigned to `$tmp'.
4532 $debug ||
4533 {
4534   tmp=
4535   trap 'exit_status=$?
4536   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4537 ' 0
4538   trap '{ (exit 1); exit 1; }' 1 2 13 15
4539 }
4540 # Create a (secure) tmp directory for tmp files.
4541
4542 {
4543   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4544   test -n "$tmp" && test -d "$tmp"
4545 }  ||
4546 {
4547   tmp=./conf$$-$RANDOM
4548   (umask 077 && mkdir "$tmp")
4549 } ||
4550 {
4551    echo "$me: cannot create a temporary directory in ." >&2
4552    { (exit 1); exit 1; }
4553 }
4554
4555 #
4556 # Set up the sed scripts for CONFIG_FILES section.
4557 #
4558
4559 # No need to generate the scripts if there are no CONFIG_FILES.
4560 # This happens for instance when ./config.status config.h
4561 if test -n "$CONFIG_FILES"; then
4562
4563 _ACEOF
4564
4565
4566
4567 ac_delim='%!_!# '
4568 for ac_last_try in false false false false false :; do
4569   cat >conf$$subs.sed <<_ACEOF
4570 SHELL!$SHELL$ac_delim
4571 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4572 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4573 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4574 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4575 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4576 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4577 exec_prefix!$exec_prefix$ac_delim
4578 prefix!$prefix$ac_delim
4579 program_transform_name!$program_transform_name$ac_delim
4580 bindir!$bindir$ac_delim
4581 sbindir!$sbindir$ac_delim
4582 libexecdir!$libexecdir$ac_delim
4583 datarootdir!$datarootdir$ac_delim
4584 datadir!$datadir$ac_delim
4585 sysconfdir!$sysconfdir$ac_delim
4586 sharedstatedir!$sharedstatedir$ac_delim
4587 localstatedir!$localstatedir$ac_delim
4588 includedir!$includedir$ac_delim
4589 oldincludedir!$oldincludedir$ac_delim
4590 docdir!$docdir$ac_delim
4591 infodir!$infodir$ac_delim
4592 htmldir!$htmldir$ac_delim
4593 dvidir!$dvidir$ac_delim
4594 pdfdir!$pdfdir$ac_delim
4595 psdir!$psdir$ac_delim
4596 libdir!$libdir$ac_delim
4597 localedir!$localedir$ac_delim
4598 mandir!$mandir$ac_delim
4599 DEFS!$DEFS$ac_delim
4600 ECHO_C!$ECHO_C$ac_delim
4601 ECHO_N!$ECHO_N$ac_delim
4602 ECHO_T!$ECHO_T$ac_delim
4603 LIBS!$LIBS$ac_delim
4604 build_alias!$build_alias$ac_delim
4605 host_alias!$host_alias$ac_delim
4606 target_alias!$target_alias$ac_delim
4607 CC!$CC$ac_delim
4608 CFLAGS!$CFLAGS$ac_delim
4609 LDFLAGS!$LDFLAGS$ac_delim
4610 CPPFLAGS!$CPPFLAGS$ac_delim
4611 ac_ct_CC!$ac_ct_CC$ac_delim
4612 EXEEXT!$EXEEXT$ac_delim
4613 OBJEXT!$OBJEXT$ac_delim
4614 edir!$edir$ac_delim
4615 ldap_ldflags!$ldap_ldflags$ac_delim
4616 ldap_cflags!$ldap_cflags$ac_delim
4617 targetname!$targetname$ac_delim
4618 LIBOBJS!$LIBOBJS$ac_delim
4619 LTLIBOBJS!$LTLIBOBJS$ac_delim
4620 _ACEOF
4621
4622   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
4623     break
4624   elif $ac_last_try; then
4625     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4626 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4627    { (exit 1); exit 1; }; }
4628   else
4629     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4630   fi
4631 done
4632
4633 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4634 if test -n "$ac_eof"; then
4635   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4636   ac_eof=`expr $ac_eof + 1`
4637 fi
4638
4639 cat >>$CONFIG_STATUS <<_ACEOF
4640 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4642 _ACEOF
4643 sed '
4644 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4645 s/^/s,@/; s/!/@,|#_!!_#|/
4646 :n
4647 t n
4648 s/'"$ac_delim"'$/,g/; t
4649 s/$/\\/; p
4650 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4651 ' >>$CONFIG_STATUS <conf$$subs.sed
4652 rm -f conf$$subs.sed
4653 cat >>$CONFIG_STATUS <<_ACEOF
4654 :end
4655 s/|#_!!_#|//g
4656 CEOF$ac_eof
4657 _ACEOF
4658
4659
4660 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4661 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4662 # trailing colons and then remove the whole line if VPATH becomes empty
4663 # (actually we leave an empty line to preserve line numbers).
4664 if test "x$srcdir" = x.; then
4665   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4666 s/:*\$(srcdir):*/:/
4667 s/:*\${srcdir}:*/:/
4668 s/:*@srcdir@:*/:/
4669 s/^\([^=]*=[     ]*\):*/\1/
4670 s/:*$//
4671 s/^[^=]*=[       ]*$//
4672 }'
4673 fi
4674
4675 cat >>$CONFIG_STATUS <<\_ACEOF
4676 fi # test -n "$CONFIG_FILES"
4677
4678
4679 for ac_tag in  :F $CONFIG_FILES
4680 do
4681   case $ac_tag in
4682   :[FHLC]) ac_mode=$ac_tag; continue;;
4683   esac
4684   case $ac_mode$ac_tag in
4685   :[FHL]*:*);;
4686   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4687 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4688    { (exit 1); exit 1; }; };;
4689   :[FH]-) ac_tag=-:-;;
4690   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4691   esac
4692   ac_save_IFS=$IFS
4693   IFS=:
4694   set x $ac_tag
4695   IFS=$ac_save_IFS
4696   shift
4697   ac_file=$1
4698   shift
4699
4700   case $ac_mode in
4701   :L) ac_source=$1;;
4702   :[FH])
4703     ac_file_inputs=
4704     for ac_f
4705     do
4706       case $ac_f in
4707       -) ac_f="$tmp/stdin";;
4708       *) # Look for the file first in the build tree, then in the source tree
4709          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4710          # because $ac_f cannot contain `:'.
4711          test -f "$ac_f" ||
4712            case $ac_f in
4713            [\\/$]*) false;;
4714            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4715            esac ||
4716            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4717 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4718    { (exit 1); exit 1; }; };;
4719       esac
4720       ac_file_inputs="$ac_file_inputs $ac_f"
4721     done
4722
4723     # Let's still pretend it is `configure' which instantiates (i.e., don't
4724     # use $as_me), people would be surprised to read:
4725     #    /* config.h.  Generated by config.status.  */
4726     configure_input="Generated from "`IFS=:
4727           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4728     if test x"$ac_file" != x-; then
4729       configure_input="$ac_file.  $configure_input"
4730       { echo "$as_me:$LINENO: creating $ac_file" >&5
4731 echo "$as_me: creating $ac_file" >&6;}
4732     fi
4733
4734     case $ac_tag in
4735     *:-:* | *:-) cat >"$tmp/stdin";;
4736     esac
4737     ;;
4738   esac
4739
4740   ac_dir=`$as_dirname -- "$ac_file" ||
4741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4742          X"$ac_file" : 'X\(//\)[^/]' \| \
4743          X"$ac_file" : 'X\(//\)$' \| \
4744          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4745 echo X"$ac_file" |
4746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4747             s//\1/
4748             q
4749           }
4750           /^X\(\/\/\)[^/].*/{
4751             s//\1/
4752             q
4753           }
4754           /^X\(\/\/\)$/{
4755             s//\1/
4756             q
4757           }
4758           /^X\(\/\).*/{
4759             s//\1/
4760             q
4761           }
4762           s/.*/./; q'`
4763   { as_dir="$ac_dir"
4764   case $as_dir in #(
4765   -*) as_dir=./$as_dir;;
4766   esac
4767   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4768     as_dirs=
4769     while :; do
4770       case $as_dir in #(
4771       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4772       *) as_qdir=$as_dir;;
4773       esac
4774       as_dirs="'$as_qdir' $as_dirs"
4775       as_dir=`$as_dirname -- "$as_dir" ||
4776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4777          X"$as_dir" : 'X\(//\)[^/]' \| \
4778          X"$as_dir" : 'X\(//\)$' \| \
4779          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4780 echo X"$as_dir" |
4781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4782             s//\1/
4783             q
4784           }
4785           /^X\(\/\/\)[^/].*/{
4786             s//\1/
4787             q
4788           }
4789           /^X\(\/\/\)$/{
4790             s//\1/
4791             q
4792           }
4793           /^X\(\/\).*/{
4794             s//\1/
4795             q
4796           }
4797           s/.*/./; q'`
4798       test -d "$as_dir" && break
4799     done
4800     test -z "$as_dirs" || eval "mkdir $as_dirs"
4801   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4802 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4803    { (exit 1); exit 1; }; }; }
4804   ac_builddir=.
4805
4806 case "$ac_dir" in
4807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4808 *)
4809   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4810   # A ".." for each directory in $ac_dir_suffix.
4811   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4812   case $ac_top_builddir_sub in
4813   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4814   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4815   esac ;;
4816 esac
4817 ac_abs_top_builddir=$ac_pwd
4818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4819 # for backward compatibility:
4820 ac_top_builddir=$ac_top_build_prefix
4821
4822 case $srcdir in
4823   .)  # We are building in place.
4824     ac_srcdir=.
4825     ac_top_srcdir=$ac_top_builddir_sub
4826     ac_abs_top_srcdir=$ac_pwd ;;
4827   [\\/]* | ?:[\\/]* )  # Absolute name.
4828     ac_srcdir=$srcdir$ac_dir_suffix;
4829     ac_top_srcdir=$srcdir
4830     ac_abs_top_srcdir=$srcdir ;;
4831   *) # Relative name.
4832     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4833     ac_top_srcdir=$ac_top_build_prefix$srcdir
4834     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4835 esac
4836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4837
4838
4839   case $ac_mode in
4840   :F)
4841   #
4842   # CONFIG_FILE
4843   #
4844
4845 _ACEOF
4846
4847 cat >>$CONFIG_STATUS <<\_ACEOF
4848 # If the template does not know about datarootdir, expand it.
4849 # FIXME: This hack should be removed a few years after 2.60.
4850 ac_datarootdir_hack=; ac_datarootdir_seen=
4851
4852 case `sed -n '/datarootdir/ {
4853   p
4854   q
4855 }
4856 /@datadir@/p
4857 /@docdir@/p
4858 /@infodir@/p
4859 /@localedir@/p
4860 /@mandir@/p
4861 ' $ac_file_inputs` in
4862 *datarootdir*) ac_datarootdir_seen=yes;;
4863 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4864   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4865 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4866 _ACEOF
4867 cat >>$CONFIG_STATUS <<_ACEOF
4868   ac_datarootdir_hack='
4869   s&@datadir@&$datadir&g
4870   s&@docdir@&$docdir&g
4871   s&@infodir@&$infodir&g
4872   s&@localedir@&$localedir&g
4873   s&@mandir@&$mandir&g
4874     s&\\\${datarootdir}&$datarootdir&g' ;;
4875 esac
4876 _ACEOF
4877
4878 # Neutralize VPATH when `$srcdir' = `.'.
4879 # Shell code in configure.ac might set extrasub.
4880 # FIXME: do we really want to maintain this feature?
4881 cat >>$CONFIG_STATUS <<_ACEOF
4882   sed "$ac_vpsub
4883 $extrasub
4884 _ACEOF
4885 cat >>$CONFIG_STATUS <<\_ACEOF
4886 :t
4887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4888 s&@configure_input@&$configure_input&;t t
4889 s&@top_builddir@&$ac_top_builddir_sub&;t t
4890 s&@srcdir@&$ac_srcdir&;t t
4891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4892 s&@top_srcdir@&$ac_top_srcdir&;t t
4893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4894 s&@builddir@&$ac_builddir&;t t
4895 s&@abs_builddir@&$ac_abs_builddir&;t t
4896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4897 $ac_datarootdir_hack
4898 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4899
4900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4901   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4902   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4903   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4904 which seems to be undefined.  Please make sure it is defined." >&5
4905 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4906 which seems to be undefined.  Please make sure it is defined." >&2;}
4907
4908   rm -f "$tmp/stdin"
4909   case $ac_file in
4910   -) cat "$tmp/out"; rm -f "$tmp/out";;
4911   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4912   esac
4913  ;;
4914
4915
4916
4917   esac
4918
4919 done # for ac_tag
4920
4921
4922 { (exit 0); exit 0; }
4923 _ACEOF
4924 chmod +x $CONFIG_STATUS
4925 ac_clean_files=$ac_clean_files_save
4926
4927
4928 # configure is writing to config.log, and then calls config.status.
4929 # config.status does its own redirection, appending to config.log.
4930 # Unfortunately, on DOS this fails, as config.log is still kept open
4931 # by configure, so config.status won't be able to write to it; its
4932 # output is simply discarded.  So we exec the FD to /dev/null,
4933 # effectively closing config.log, so it can be properly (re)opened and
4934 # appended to by config.status.  When coming back to configure, we
4935 # need to make the FD available again.
4936 if test "$no_create" != yes; then
4937   ac_cs_success=:
4938   ac_config_status_args=
4939   test "$silent" = yes &&
4940     ac_config_status_args="$ac_config_status_args --quiet"
4941   exec 5>/dev/null
4942   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4943   exec 5>>config.log
4944   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4945   # would make configure fail if this is the last instruction.
4946   $ac_cs_success || { (exit 1); exit 1; }
4947 fi
4948
4949