]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/nssov/nss-ldapd/configure
ITS#5801
[openldap] / contrib / slapd-modules / nssov / nss-ldapd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for nss-ldapd 0.6.2.
4 #
5 # Report bugs to <arthur@ch.tudelft.nl>.
6 #
7 # Copyright (C) 2006 Luke Howard
8 # Copyright (C) 2006 West Consulting
9 # Copyright (C) 2006, 2007, 2008 Arthur de Jong
10 #
11 # This configure script is derived from configure.ac which is free software;
12 # you can redistribute it and/or modify it under the terms of the GNU Lesser
13 # General Public License as published by the Free Software Foundation; either
14 # version 2.1 of the License, or (at your option) any later version. See the
15 # configure.ac file for more details.
16 #
17 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be more Bourne compatible
26 DUALCASE=1; export DUALCASE # for MKS sh
27 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28   emulate sh
29   NULLCMD=:
30   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31   # is contrary to our usage.  Disable this feature.
32   alias -g '${1+"$@"}'='"$@"'
33   setopt NO_GLOB_SUBST
34 else
35   case `(set -o) 2>/dev/null` in
36   *posix*) set -o posix ;;
37 esac
38
39 fi
40
41
42
43
44 # PATH needs CR
45 # Avoid depending upon Character Ranges.
46 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49 as_cr_digits='0123456789'
50 as_cr_alnum=$as_cr_Letters$as_cr_digits
51
52 # The user is always right.
53 if test "${PATH_SEPARATOR+set}" != set; then
54   echo "#! /bin/sh" >conf$$.sh
55   echo  "exit 0"   >>conf$$.sh
56   chmod +x conf$$.sh
57   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
58     PATH_SEPARATOR=';'
59   else
60     PATH_SEPARATOR=:
61   fi
62   rm -f conf$$.sh
63 fi
64
65 # Support unset when possible.
66 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
67   as_unset=unset
68 else
69   as_unset=false
70 fi
71
72
73 # IFS
74 # We need space, tab and new line, in precisely that order.  Quoting is
75 # there to prevent editors from complaining about space-tab.
76 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
77 # splitting by setting IFS to empty value.)
78 as_nl='
79 '
80 IFS=" ""        $as_nl"
81
82 # Find who we are.  Look in the path if we contain no directory separator.
83 case $0 in
84   *[\\/]* ) as_myself=$0 ;;
85   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
86 for as_dir in $PATH
87 do
88   IFS=$as_save_IFS
89   test -z "$as_dir" && as_dir=.
90   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
91 done
92 IFS=$as_save_IFS
93
94      ;;
95 esac
96 # We did not find ourselves, most probably we were run as `sh COMMAND'
97 # in which case we are not to be found in the path.
98 if test "x$as_myself" = x; then
99   as_myself=$0
100 fi
101 if test ! -f "$as_myself"; then
102   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
103   { (exit 1); exit 1; }
104 fi
105
106 # Work around bugs in pre-3.0 UWIN ksh.
107 for as_var in ENV MAIL MAILPATH
108 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 done
110 PS1='$ '
111 PS2='> '
112 PS4='+ '
113
114 # NLS nuisances.
115 for as_var in \
116   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
117   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
118   LC_TELEPHONE LC_TIME
119 do
120   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
121     eval $as_var=C; export $as_var
122   else
123     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
124   fi
125 done
126
127 # Required to use basename.
128 if expr a : '\(a\)' >/dev/null 2>&1 &&
129    test "X`expr 00001 : '.*\(...\)'`" = X001; then
130   as_expr=expr
131 else
132   as_expr=false
133 fi
134
135 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
136   as_basename=basename
137 else
138   as_basename=false
139 fi
140
141
142 # Name of the executable.
143 as_me=`$as_basename -- "$0" ||
144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
145          X"$0" : 'X\(//\)$' \| \
146          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
147 echo X/"$0" |
148     sed '/^.*\/\([^/][^/]*\)\/*$/{
149             s//\1/
150             q
151           }
152           /^X\/\(\/\/\)$/{
153             s//\1/
154             q
155           }
156           /^X\/\(\/\).*/{
157             s//\1/
158             q
159           }
160           s/.*/./; q'`
161
162 # CDPATH.
163 $as_unset CDPATH
164
165
166 if test "x$CONFIG_SHELL" = x; then
167   if (eval ":") 2>/dev/null; then
168   as_have_required=yes
169 else
170   as_have_required=no
171 fi
172
173   if test $as_have_required = yes &&     (eval ":
174 (as_func_return () {
175   (exit \$1)
176 }
177 as_func_success () {
178   as_func_return 0
179 }
180 as_func_failure () {
181   as_func_return 1
182 }
183 as_func_ret_success () {
184   return 0
185 }
186 as_func_ret_failure () {
187   return 1
188 }
189
190 exitcode=0
191 if as_func_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_success failed.
196 fi
197
198 if as_func_failure; then
199   exitcode=1
200   echo as_func_failure succeeded.
201 fi
202
203 if as_func_ret_success; then
204   :
205 else
206   exitcode=1
207   echo as_func_ret_success failed.
208 fi
209
210 if as_func_ret_failure; then
211   exitcode=1
212   echo as_func_ret_failure succeeded.
213 fi
214
215 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
216   :
217 else
218   exitcode=1
219   echo positional parameters were not saved.
220 fi
221
222 test \$exitcode = 0) || { (exit 1); exit 1; }
223
224 (
225   as_lineno_1=\$LINENO
226   as_lineno_2=\$LINENO
227   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
228   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
229 ") 2> /dev/null; then
230   :
231 else
232   as_candidate_shells=
233     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
234 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
235 do
236   IFS=$as_save_IFS
237   test -z "$as_dir" && as_dir=.
238   case $as_dir in
239          /*)
240            for as_base in sh bash ksh sh5; do
241              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
242            done;;
243        esac
244 done
245 IFS=$as_save_IFS
246
247
248       for as_shell in $as_candidate_shells $SHELL; do
249          # Try only shells that exist, to save several forks.
250          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
251                 { ("$as_shell") 2> /dev/null <<\_ASEOF
252 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
253   emulate sh
254   NULLCMD=:
255   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
256   # is contrary to our usage.  Disable this feature.
257   alias -g '${1+"$@"}'='"$@"'
258   setopt NO_GLOB_SUBST
259 else
260   case `(set -o) 2>/dev/null` in
261   *posix*) set -o posix ;;
262 esac
263
264 fi
265
266
267 :
268 _ASEOF
269 }; then
270   CONFIG_SHELL=$as_shell
271                as_have_required=yes
272                if { "$as_shell" 2> /dev/null <<\_ASEOF
273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
274   emulate sh
275   NULLCMD=:
276   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
277   # is contrary to our usage.  Disable this feature.
278   alias -g '${1+"$@"}'='"$@"'
279   setopt NO_GLOB_SUBST
280 else
281   case `(set -o) 2>/dev/null` in
282   *posix*) set -o posix ;;
283 esac
284
285 fi
286
287
288 :
289 (as_func_return () {
290   (exit $1)
291 }
292 as_func_success () {
293   as_func_return 0
294 }
295 as_func_failure () {
296   as_func_return 1
297 }
298 as_func_ret_success () {
299   return 0
300 }
301 as_func_ret_failure () {
302   return 1
303 }
304
305 exitcode=0
306 if as_func_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_success failed.
311 fi
312
313 if as_func_failure; then
314   exitcode=1
315   echo as_func_failure succeeded.
316 fi
317
318 if as_func_ret_success; then
319   :
320 else
321   exitcode=1
322   echo as_func_ret_success failed.
323 fi
324
325 if as_func_ret_failure; then
326   exitcode=1
327   echo as_func_ret_failure succeeded.
328 fi
329
330 if ( set x; as_func_ret_success y && test x = "$1" ); then
331   :
332 else
333   exitcode=1
334   echo positional parameters were not saved.
335 fi
336
337 test $exitcode = 0) || { (exit 1); exit 1; }
338
339 (
340   as_lineno_1=$LINENO
341   as_lineno_2=$LINENO
342   test "x$as_lineno_1" != "x$as_lineno_2" &&
343   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
345 _ASEOF
346 }; then
347   break
348 fi
349
350 fi
351
352       done
353
354       if test "x$CONFIG_SHELL" != x; then
355   for as_var in BASH_ENV ENV
356         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
357         done
358         export CONFIG_SHELL
359         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
360 fi
361
362
363     if test $as_have_required = no; then
364   echo This script requires a shell more modern than all the
365       echo shells that I found on your system.  Please install a
366       echo modern shell, or manually run the script under such a
367       echo shell if you do have one.
368       { (exit 1); exit 1; }
369 fi
370
371
372 fi
373
374 fi
375
376
377
378 (eval "as_func_return () {
379   (exit \$1)
380 }
381 as_func_success () {
382   as_func_return 0
383 }
384 as_func_failure () {
385   as_func_return 1
386 }
387 as_func_ret_success () {
388   return 0
389 }
390 as_func_ret_failure () {
391   return 1
392 }
393
394 exitcode=0
395 if as_func_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_success failed.
400 fi
401
402 if as_func_failure; then
403   exitcode=1
404   echo as_func_failure succeeded.
405 fi
406
407 if as_func_ret_success; then
408   :
409 else
410   exitcode=1
411   echo as_func_ret_success failed.
412 fi
413
414 if as_func_ret_failure; then
415   exitcode=1
416   echo as_func_ret_failure succeeded.
417 fi
418
419 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
420   :
421 else
422   exitcode=1
423   echo positional parameters were not saved.
424 fi
425
426 test \$exitcode = 0") || {
427   echo No shell found that supports shell functions.
428   echo Please tell autoconf@gnu.org about your system,
429   echo including any error possibly output before this
430   echo message
431 }
432
433
434
435   as_lineno_1=$LINENO
436   as_lineno_2=$LINENO
437   test "x$as_lineno_1" != "x$as_lineno_2" &&
438   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
439
440   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
441   # uniformly replaced by the line number.  The first 'sed' inserts a
442   # line-number line after each line using $LINENO; the second 'sed'
443   # does the real work.  The second script uses 'N' to pair each
444   # line-number line with the line containing $LINENO, and appends
445   # trailing '-' during substitution so that $LINENO is not a special
446   # case at line end.
447   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
448   # scripts with optimization help from Paolo Bonzini.  Blame Lee
449   # E. McMahon (1931-1989) for sed's syntax.  :-)
450   sed -n '
451     p
452     /[$]LINENO/=
453   ' <$as_myself |
454     sed '
455       s/[$]LINENO.*/&-/
456       t lineno
457       b
458       :lineno
459       N
460       :loop
461       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
462       t loop
463       s/-\n.*//
464     ' >$as_me.lineno &&
465   chmod +x "$as_me.lineno" ||
466     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
467    { (exit 1); exit 1; }; }
468
469   # Don't try to exec as it changes $[0], causing all sort of problems
470   # (the dirname of $[0] is not the place where we might find the
471   # original and so on.  Autoconf is especially sensitive to this).
472   . "./$as_me.lineno"
473   # Exit status is that of the last command.
474   exit
475 }
476
477
478 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
479   as_dirname=dirname
480 else
481   as_dirname=false
482 fi
483
484 ECHO_C= ECHO_N= ECHO_T=
485 case `echo -n x` in
486 -n*)
487   case `echo 'x\c'` in
488   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
489   *)   ECHO_C='\c';;
490   esac;;
491 *)
492   ECHO_N='-n';;
493 esac
494
495 if expr a : '\(a\)' >/dev/null 2>&1 &&
496    test "X`expr 00001 : '.*\(...\)'`" = X001; then
497   as_expr=expr
498 else
499   as_expr=false
500 fi
501
502 rm -f conf$$ conf$$.exe conf$$.file
503 if test -d conf$$.dir; then
504   rm -f conf$$.dir/conf$$.file
505 else
506   rm -f conf$$.dir
507   mkdir conf$$.dir
508 fi
509 echo >conf$$.file
510 if ln -s conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s='ln -s'
512   # ... but there are two gotchas:
513   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
514   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
515   # In both cases, we have to default to `cp -p'.
516   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
517     as_ln_s='cp -p'
518 elif ln conf$$.file conf$$ 2>/dev/null; then
519   as_ln_s=ln
520 else
521   as_ln_s='cp -p'
522 fi
523 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
524 rmdir conf$$.dir 2>/dev/null
525
526 if mkdir -p . 2>/dev/null; then
527   as_mkdir_p=:
528 else
529   test -d ./-p && rmdir ./-p
530   as_mkdir_p=false
531 fi
532
533 if test -x / >/dev/null 2>&1; then
534   as_test_x='test -x'
535 else
536   if ls -dL / >/dev/null 2>&1; then
537     as_ls_L_option=L
538   else
539     as_ls_L_option=
540   fi
541   as_test_x='
542     eval sh -c '\''
543       if test -d "$1"; then
544         test -d "$1/.";
545       else
546         case $1 in
547         -*)set "./$1";;
548         esac;
549         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
550         ???[sx]*):;;*)false;;esac;fi
551     '\'' sh
552   '
553 fi
554 as_executable_p=$as_test_x
555
556 # Sed expression to map a string onto a valid CPP name.
557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558
559 # Sed expression to map a string onto a valid variable name.
560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561
562
563
564 exec 7<&0 </dev/null 6>&1
565
566 # Name of the host.
567 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
568 # so uname gets run too.
569 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
570
571 #
572 # Initializations.
573 #
574 ac_default_prefix=/usr/local
575 ac_clean_files=
576 ac_config_libobj_dir=.
577 LIBOBJS=
578 cross_compiling=no
579 subdirs=
580 MFLAGS=
581 MAKEFLAGS=
582 SHELL=${CONFIG_SHELL-/bin/sh}
583
584 # Identity of this package.
585 PACKAGE_NAME='nss-ldapd'
586 PACKAGE_TARNAME='nss-ldapd'
587 PACKAGE_VERSION='0.6.2'
588 PACKAGE_STRING='nss-ldapd 0.6.2'
589 PACKAGE_BUGREPORT='arthur@ch.tudelft.nl'
590
591 ac_unique_file="nslcd.h"
592 ac_default_prefix=
593 # Factoring default headers for most tests.
594 ac_includes_default="\
595 #include <stdio.h>
596 #ifdef HAVE_SYS_TYPES_H
597 # include <sys/types.h>
598 #endif
599 #ifdef HAVE_SYS_STAT_H
600 # include <sys/stat.h>
601 #endif
602 #ifdef STDC_HEADERS
603 # include <stdlib.h>
604 # include <stddef.h>
605 #else
606 # ifdef HAVE_STDLIB_H
607 #  include <stdlib.h>
608 # endif
609 #endif
610 #ifdef HAVE_STRING_H
611 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #  include <memory.h>
613 # endif
614 # include <string.h>
615 #endif
616 #ifdef HAVE_STRINGS_H
617 # include <strings.h>
618 #endif
619 #ifdef HAVE_INTTYPES_H
620 # include <inttypes.h>
621 #endif
622 #ifdef HAVE_STDINT_H
623 # include <stdint.h>
624 #endif
625 #ifdef HAVE_UNISTD_H
626 # include <unistd.h>
627 #endif"
628
629 ac_config_libobj_dir=compat
630 ac_subst_vars='SHELL
631 PATH_SEPARATOR
632 PACKAGE_NAME
633 PACKAGE_TARNAME
634 PACKAGE_VERSION
635 PACKAGE_STRING
636 PACKAGE_BUGREPORT
637 exec_prefix
638 prefix
639 program_transform_name
640 bindir
641 sbindir
642 libexecdir
643 datarootdir
644 datadir
645 sysconfdir
646 sharedstatedir
647 localstatedir
648 includedir
649 oldincludedir
650 docdir
651 infodir
652 htmldir
653 dvidir
654 pdfdir
655 psdir
656 libdir
657 localedir
658 mandir
659 DEFS
660 ECHO_C
661 ECHO_N
662 ECHO_T
663 LIBS
664 build_alias
665 host_alias
666 target_alias
667 RELEASE_MONTH
668 build
669 build_cpu
670 build_vendor
671 build_os
672 host
673 host_cpu
674 host_vendor
675 host_os
676 target
677 target_cpu
678 target_vendor
679 target_os
680 INSTALL_PROGRAM
681 INSTALL_SCRIPT
682 INSTALL_DATA
683 am__isrc
684 CYGPATH_W
685 PACKAGE
686 VERSION
687 ACLOCAL
688 AUTOCONF
689 AUTOMAKE
690 AUTOHEADER
691 MAKEINFO
692 install_sh
693 STRIP
694 INSTALL_STRIP_PROGRAM
695 mkdir_p
696 AWK
697 SET_MAKE
698 am__leading_dot
699 AMTAR
700 am__tar
701 am__untar
702 CC
703 CFLAGS
704 LDFLAGS
705 CPPFLAGS
706 ac_ct_CC
707 EXEEXT
708 OBJEXT
709 DEPDIR
710 am__include
711 am__quote
712 AMDEP_TRUE
713 AMDEP_FALSE
714 AMDEPBACKSLASH
715 CCDEPMODE
716 am__fastdepCC_TRUE
717 am__fastdepCC_FALSE
718 CPP
719 RANLIB
720 GREP
721 EGREP
722 DOCBOOK2X_MAN
723 GENMAN_TRUE
724 GENMAN_FALSE
725 NSS_LDAP_PATH_CONF
726 NSLCD_PIDFILE
727 NSLCD_SOCKET
728 LIBOBJS
729 acx_pthread_config
730 PTHREAD_CC
731 PTHREAD_LIBS
732 PTHREAD_CFLAGS
733 nss_ldap_so_LIBS
734 nslcd_LIBS
735 LTLIBOBJS'
736 ac_subst_files=''
737       ac_precious_vars='build_alias
738 host_alias
739 target_alias
740 CC
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP'
746
747
748 # Initialize some variables set by options.
749 ac_init_help=
750 ac_init_version=false
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
767
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
793
794 ac_prev=
795 ac_dashdash=
796 for ac_option
797 do
798   # If the previous option needs an argument, assign it.
799   if test -n "$ac_prev"; then
800     eval $ac_prev=\$ac_option
801     ac_prev=
802     continue
803   fi
804
805   case $ac_option in
806   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807   *)    ac_optarg=yes ;;
808   esac
809
810   # Accept the important Cygnus configure options, so we can diagnose typos.
811
812   case $ac_dashdash$ac_option in
813   --)
814     ac_dashdash=yes ;;
815
816   -bindir | --bindir | --bindi | --bind | --bin | --bi)
817     ac_prev=bindir ;;
818   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819     bindir=$ac_optarg ;;
820
821   -build | --build | --buil | --bui | --bu)
822     ac_prev=build_alias ;;
823   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824     build_alias=$ac_optarg ;;
825
826   -cache-file | --cache-file | --cache-fil | --cache-fi \
827   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828     ac_prev=cache_file ;;
829   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831     cache_file=$ac_optarg ;;
832
833   --config-cache | -C)
834     cache_file=config.cache ;;
835
836   -datadir | --datadir | --datadi | --datad)
837     ac_prev=datadir ;;
838   -datadir=* | --datadir=* | --datadi=* | --datad=*)
839     datadir=$ac_optarg ;;
840
841   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842   | --dataroo | --dataro | --datar)
843     ac_prev=datarootdir ;;
844   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846     datarootdir=$ac_optarg ;;
847
848   -disable-* | --disable-*)
849     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850     # Reject names that are not valid shell variable names.
851     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853    { (exit 1); exit 1; }; }
854     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855     eval enable_$ac_feature=no ;;
856
857   -docdir | --docdir | --docdi | --doc | --do)
858     ac_prev=docdir ;;
859   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860     docdir=$ac_optarg ;;
861
862   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863     ac_prev=dvidir ;;
864   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865     dvidir=$ac_optarg ;;
866
867   -enable-* | --enable-*)
868     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869     # Reject names that are not valid shell variable names.
870     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
871       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872    { (exit 1); exit 1; }; }
873     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
874     eval enable_$ac_feature=\$ac_optarg ;;
875
876   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878   | --exec | --exe | --ex)
879     ac_prev=exec_prefix ;;
880   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882   | --exec=* | --exe=* | --ex=*)
883     exec_prefix=$ac_optarg ;;
884
885   -gas | --gas | --ga | --g)
886     # Obsolete; use --with-gas.
887     with_gas=yes ;;
888
889   -help | --help | --hel | --he | -h)
890     ac_init_help=long ;;
891   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892     ac_init_help=recursive ;;
893   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894     ac_init_help=short ;;
895
896   -host | --host | --hos | --ho)
897     ac_prev=host_alias ;;
898   -host=* | --host=* | --hos=* | --ho=*)
899     host_alias=$ac_optarg ;;
900
901   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902     ac_prev=htmldir ;;
903   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904   | --ht=*)
905     htmldir=$ac_optarg ;;
906
907   -includedir | --includedir | --includedi | --included | --include \
908   | --includ | --inclu | --incl | --inc)
909     ac_prev=includedir ;;
910   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911   | --includ=* | --inclu=* | --incl=* | --inc=*)
912     includedir=$ac_optarg ;;
913
914   -infodir | --infodir | --infodi | --infod | --info | --inf)
915     ac_prev=infodir ;;
916   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917     infodir=$ac_optarg ;;
918
919   -libdir | --libdir | --libdi | --libd)
920     ac_prev=libdir ;;
921   -libdir=* | --libdir=* | --libdi=* | --libd=*)
922     libdir=$ac_optarg ;;
923
924   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925   | --libexe | --libex | --libe)
926     ac_prev=libexecdir ;;
927   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928   | --libexe=* | --libex=* | --libe=*)
929     libexecdir=$ac_optarg ;;
930
931   -localedir | --localedir | --localedi | --localed | --locale)
932     ac_prev=localedir ;;
933   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934     localedir=$ac_optarg ;;
935
936   -localstatedir | --localstatedir | --localstatedi | --localstated \
937   | --localstate | --localstat | --localsta | --localst | --locals)
938     ac_prev=localstatedir ;;
939   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941     localstatedir=$ac_optarg ;;
942
943   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944     ac_prev=mandir ;;
945   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946     mandir=$ac_optarg ;;
947
948   -nfp | --nfp | --nf)
949     # Obsolete; use --without-fp.
950     with_fp=no ;;
951
952   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953   | --no-cr | --no-c | -n)
954     no_create=yes ;;
955
956   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958     no_recursion=yes ;;
959
960   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962   | --oldin | --oldi | --old | --ol | --o)
963     ac_prev=oldincludedir ;;
964   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967     oldincludedir=$ac_optarg ;;
968
969   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970     ac_prev=prefix ;;
971   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972     prefix=$ac_optarg ;;
973
974   -program-prefix | --program-prefix | --program-prefi | --program-pref \
975   | --program-pre | --program-pr | --program-p)
976     ac_prev=program_prefix ;;
977   -program-prefix=* | --program-prefix=* | --program-prefi=* \
978   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979     program_prefix=$ac_optarg ;;
980
981   -program-suffix | --program-suffix | --program-suffi | --program-suff \
982   | --program-suf | --program-su | --program-s)
983     ac_prev=program_suffix ;;
984   -program-suffix=* | --program-suffix=* | --program-suffi=* \
985   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986     program_suffix=$ac_optarg ;;
987
988   -program-transform-name | --program-transform-name \
989   | --program-transform-nam | --program-transform-na \
990   | --program-transform-n | --program-transform- \
991   | --program-transform | --program-transfor \
992   | --program-transfo | --program-transf \
993   | --program-trans | --program-tran \
994   | --progr-tra | --program-tr | --program-t)
995     ac_prev=program_transform_name ;;
996   -program-transform-name=* | --program-transform-name=* \
997   | --program-transform-nam=* | --program-transform-na=* \
998   | --program-transform-n=* | --program-transform-=* \
999   | --program-transform=* | --program-transfor=* \
1000   | --program-transfo=* | --program-transf=* \
1001   | --program-trans=* | --program-tran=* \
1002   | --progr-tra=* | --program-tr=* | --program-t=*)
1003     program_transform_name=$ac_optarg ;;
1004
1005   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006     ac_prev=pdfdir ;;
1007   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008     pdfdir=$ac_optarg ;;
1009
1010   -psdir | --psdir | --psdi | --psd | --ps)
1011     ac_prev=psdir ;;
1012   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013     psdir=$ac_optarg ;;
1014
1015   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016   | -silent | --silent | --silen | --sile | --sil)
1017     silent=yes ;;
1018
1019   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020     ac_prev=sbindir ;;
1021   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022   | --sbi=* | --sb=*)
1023     sbindir=$ac_optarg ;;
1024
1025   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027   | --sharedst | --shareds | --shared | --share | --shar \
1028   | --sha | --sh)
1029     ac_prev=sharedstatedir ;;
1030   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033   | --sha=* | --sh=*)
1034     sharedstatedir=$ac_optarg ;;
1035
1036   -site | --site | --sit)
1037     ac_prev=site ;;
1038   -site=* | --site=* | --sit=*)
1039     site=$ac_optarg ;;
1040
1041   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042     ac_prev=srcdir ;;
1043   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044     srcdir=$ac_optarg ;;
1045
1046   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047   | --syscon | --sysco | --sysc | --sys | --sy)
1048     ac_prev=sysconfdir ;;
1049   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051     sysconfdir=$ac_optarg ;;
1052
1053   -target | --target | --targe | --targ | --tar | --ta | --t)
1054     ac_prev=target_alias ;;
1055   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056     target_alias=$ac_optarg ;;
1057
1058   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059     verbose=yes ;;
1060
1061   -version | --version | --versio | --versi | --vers | -V)
1062     ac_init_version=: ;;
1063
1064   -with-* | --with-*)
1065     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068       { echo "$as_me: error: invalid package name: $ac_package" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071     eval with_$ac_package=\$ac_optarg ;;
1072
1073   -without-* | --without-*)
1074     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid package name: $ac_package" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1080     eval with_$ac_package=no ;;
1081
1082   --x)
1083     # Obsolete; use --with-x.
1084     with_x=yes ;;
1085
1086   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087   | --x-incl | --x-inc | --x-in | --x-i)
1088     ac_prev=x_includes ;;
1089   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091     x_includes=$ac_optarg ;;
1092
1093   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095     ac_prev=x_libraries ;;
1096   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098     x_libraries=$ac_optarg ;;
1099
1100   -*) { echo "$as_me: error: unrecognized option: $ac_option
1101 Try \`$0 --help' for more information." >&2
1102    { (exit 1); exit 1; }; }
1103     ;;
1104
1105   *=*)
1106     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1109       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110    { (exit 1); exit 1; }; }
1111     eval $ac_envvar=\$ac_optarg
1112     export $ac_envvar ;;
1113
1114   *)
1115     # FIXME: should be removed in autoconf 3.0.
1116     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120     ;;
1121
1122   esac
1123 done
1124
1125 if test -n "$ac_prev"; then
1126   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1127   { echo "$as_me: error: missing argument to $ac_option" >&2
1128    { (exit 1); exit 1; }; }
1129 fi
1130
1131 # Be sure to have absolute directory names.
1132 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133                 datadir sysconfdir sharedstatedir localstatedir includedir \
1134                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135                 libdir localedir mandir
1136 do
1137   eval ac_val=\$$ac_var
1138   case $ac_val in
1139     [\\/$]* | ?:[\\/]* )  continue;;
1140     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1141   esac
1142   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143    { (exit 1); exit 1; }; }
1144 done
1145
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1149 build=$build_alias
1150 host=$host_alias
1151 target=$target_alias
1152
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x; then
1155   if test "x$build_alias" = x; then
1156     cross_compiling=maybe
1157     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1158     If a cross compiler is detected then cross compile mode will be used." >&2
1159   elif test "x$build_alias" != "x$host_alias"; then
1160     cross_compiling=yes
1161   fi
1162 fi
1163
1164 ac_tool_prefix=
1165 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166
1167 test "$silent" = yes && exec 6>/dev/null
1168
1169
1170 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di=`ls -di .` &&
1172 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1173   { echo "$as_me: error: Working directory cannot be determined" >&2
1174    { (exit 1); exit 1; }; }
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176   { echo "$as_me: error: pwd does not report name of working directory" >&2
1177    { (exit 1); exit 1; }; }
1178
1179
1180 # Find the source files, if location was not specified.
1181 if test -z "$srcdir"; then
1182   ac_srcdir_defaulted=yes
1183   # Try the directory containing this script, then the parent directory.
1184   ac_confdir=`$as_dirname -- "$0" ||
1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186          X"$0" : 'X\(//\)[^/]' \| \
1187          X"$0" : 'X\(//\)$' \| \
1188          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1189 echo X"$0" |
1190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191             s//\1/
1192             q
1193           }
1194           /^X\(\/\/\)[^/].*/{
1195             s//\1/
1196             q
1197           }
1198           /^X\(\/\/\)$/{
1199             s//\1/
1200             q
1201           }
1202           /^X\(\/\).*/{
1203             s//\1/
1204             q
1205           }
1206           s/.*/./; q'`
1207   srcdir=$ac_confdir
1208   if test ! -r "$srcdir/$ac_unique_file"; then
1209     srcdir=..
1210   fi
1211 else
1212   ac_srcdir_defaulted=no
1213 fi
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1216   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217    { (exit 1); exit 1; }; }
1218 fi
1219 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1220 ac_abs_confdir=`(
1221         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222    { (exit 1); exit 1; }; }
1223         pwd)`
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1226   srcdir=.
1227 fi
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1231 case $srcdir in
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 esac
1234 for ac_var in $ac_precious_vars; do
1235   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236   eval ac_env_${ac_var}_value=\$${ac_var}
1237   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 done
1240
1241 #
1242 # Report the --help message.
1243 #
1244 if test "$ac_init_help" = "long"; then
1245   # Omit some internal or obsolete options to make the list less imposing.
1246   # This message is too long to be a string in the A/UX 3.1 sh.
1247   cat <<_ACEOF
1248 \`configure' configures nss-ldapd 0.6.2 to adapt to many kinds of systems.
1249
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1251
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE.  See below for descriptions of some of the useful variables.
1254
1255 Defaults for the options are specified in brackets.
1256
1257 Configuration:
1258   -h, --help              display this help and exit
1259       --help=short        display options specific to this package
1260       --help=recursive    display the short help of all the included packages
1261   -V, --version           display version information and exit
1262   -q, --quiet, --silent   do not print \`checking...' messages
1263       --cache-file=FILE   cache test results in FILE [disabled]
1264   -C, --config-cache      alias for \`--cache-file=config.cache'
1265   -n, --no-create         do not create output files
1266       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1267
1268 Installation directories:
1269   --prefix=PREFIX         install architecture-independent files in PREFIX
1270                           [$ac_default_prefix]
1271   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1272                           [PREFIX]
1273
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1278
1279 For better control, use the options below.
1280
1281 Fine tuning of the installation directories:
1282   --bindir=DIR           user executables [EPREFIX/bin]
1283   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1284   --libexecdir=DIR       program executables [EPREFIX/libexec]
1285   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1286   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1287   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1288   --libdir=DIR           object code libraries [EPREFIX/lib]
1289   --includedir=DIR       C header files [PREFIX/include]
1290   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1291   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1292   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1293   --infodir=DIR          info documentation [DATAROOTDIR/info]
1294   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1295   --mandir=DIR           man documentation [DATAROOTDIR/man]
1296   --docdir=DIR           documentation root [DATAROOTDIR/doc/nss-ldapd]
1297   --htmldir=DIR          html documentation [DOCDIR]
1298   --dvidir=DIR           dvi documentation [DOCDIR]
1299   --pdfdir=DIR           pdf documentation [DOCDIR]
1300   --psdir=DIR            ps documentation [DOCDIR]
1301 _ACEOF
1302
1303   cat <<\_ACEOF
1304
1305 Program names:
1306   --program-prefix=PREFIX            prepend PREFIX to installed program names
1307   --program-suffix=SUFFIX            append SUFFIX to installed program names
1308   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1309
1310 System types:
1311   --build=BUILD     configure for building on BUILD [guessed]
1312   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1313   --target=TARGET   configure for building compilers for TARGET [HOST]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318   case $ac_init_help in
1319      short | recursive ) echo "Configuration of nss-ldapd 0.6.2:";;
1320    esac
1321   cat <<\_ACEOF
1322
1323 Optional Features:
1324   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1325   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1326   --disable-dependency-tracking  speeds up one-time build
1327   --enable-dependency-tracking   do not reject slow dependency extractors
1328   --enable-debug          enable extensive debugging and logging
1329   --enable-warnings       enable extra compiler warnings (gcc)
1330
1331 Optional Packages:
1332   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1333   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1334   --with-ldap-lib=TYPE    select ldap library
1335                           (auto|netscape5|netscape4|netscape3|umich|openldap)
1336                           [auto]
1337   --with-ldap-conf-file=PATH
1338                           path to LDAP configuration file
1339                           [/etc/nss-ldapd.conf]
1340   --with-nslcd-pidfile=PATH
1341                           path to pidfile [/var/run/nslcd/nslcd.pid]
1342   --with-nslcd-socket=PATH
1343                           path to socket [/var/run/nslcd/socket]
1344
1345 Some influential environment variables:
1346   CC          C compiler command
1347   CFLAGS      C compiler flags
1348   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1349               nonstandard directory <lib dir>
1350   LIBS        libraries to pass to the linker, e.g. -l<library>
1351   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1352               you have headers in a nonstandard directory <include dir>
1353   CPP         C preprocessor
1354
1355 Use these variables to override the choices made by `configure' or to help
1356 it to find libraries and programs with nonstandard names/locations.
1357
1358 Report bugs to <arthur@ch.tudelft.nl>.
1359 _ACEOF
1360 ac_status=$?
1361 fi
1362
1363 if test "$ac_init_help" = "recursive"; then
1364   # If there are subdirs, report their specific --help.
1365   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1366     test -d "$ac_dir" || continue
1367     ac_builddir=.
1368
1369 case "$ac_dir" in
1370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 *)
1372   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1373   # A ".." for each directory in $ac_dir_suffix.
1374   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1375   case $ac_top_builddir_sub in
1376   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378   esac ;;
1379 esac
1380 ac_abs_top_builddir=$ac_pwd
1381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382 # for backward compatibility:
1383 ac_top_builddir=$ac_top_build_prefix
1384
1385 case $srcdir in
1386   .)  # We are building in place.
1387     ac_srcdir=.
1388     ac_top_srcdir=$ac_top_builddir_sub
1389     ac_abs_top_srcdir=$ac_pwd ;;
1390   [\\/]* | ?:[\\/]* )  # Absolute name.
1391     ac_srcdir=$srcdir$ac_dir_suffix;
1392     ac_top_srcdir=$srcdir
1393     ac_abs_top_srcdir=$srcdir ;;
1394   *) # Relative name.
1395     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396     ac_top_srcdir=$ac_top_build_prefix$srcdir
1397     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1398 esac
1399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400
1401     cd "$ac_dir" || { ac_status=$?; continue; }
1402     # Check for guested configure.
1403     if test -f "$ac_srcdir/configure.gnu"; then
1404       echo &&
1405       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406     elif test -f "$ac_srcdir/configure"; then
1407       echo &&
1408       $SHELL "$ac_srcdir/configure" --help=recursive
1409     else
1410       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1411     fi || ac_status=$?
1412     cd "$ac_pwd" || { ac_status=$?; break; }
1413   done
1414 fi
1415
1416 test -n "$ac_init_help" && exit $ac_status
1417 if $ac_init_version; then
1418   cat <<\_ACEOF
1419 nss-ldapd configure 0.6.2
1420 generated by GNU Autoconf 2.61
1421
1422 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1423 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1424 This configure script is free software; the Free Software Foundation
1425 gives unlimited permission to copy, distribute and modify it.
1426
1427 Copyright (C) 2006 Luke Howard
1428 Copyright (C) 2006 West Consulting
1429 Copyright (C) 2006, 2007, 2008 Arthur de Jong
1430
1431 This configure script is derived from configure.ac which is free software;
1432 you can redistribute it and/or modify it under the terms of the GNU Lesser
1433 General Public License as published by the Free Software Foundation; either
1434 version 2.1 of the License, or (at your option) any later version. See the
1435 configure.ac file for more details.
1436 _ACEOF
1437   exit
1438 fi
1439 cat >config.log <<_ACEOF
1440 This file contains any messages produced by compilers while
1441 running configure, to aid debugging if configure makes a mistake.
1442
1443 It was created by nss-ldapd $as_me 0.6.2, which was
1444 generated by GNU Autoconf 2.61.  Invocation command line was
1445
1446   $ $0 $@
1447
1448 _ACEOF
1449 exec 5>>config.log
1450 {
1451 cat <<_ASUNAME
1452 ## --------- ##
1453 ## Platform. ##
1454 ## --------- ##
1455
1456 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1457 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1458 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1459 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1460 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1461
1462 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1463 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1464
1465 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1466 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1467 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1468 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1469 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1470 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1471 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1472
1473 _ASUNAME
1474
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 for as_dir in $PATH
1477 do
1478   IFS=$as_save_IFS
1479   test -z "$as_dir" && as_dir=.
1480   echo "PATH: $as_dir"
1481 done
1482 IFS=$as_save_IFS
1483
1484 } >&5
1485
1486 cat >&5 <<_ACEOF
1487
1488
1489 ## ----------- ##
1490 ## Core tests. ##
1491 ## ----------- ##
1492
1493 _ACEOF
1494
1495
1496 # Keep a trace of the command line.
1497 # Strip out --no-create and --no-recursion so they do not pile up.
1498 # Strip out --silent because we don't want to record it for future runs.
1499 # Also quote any args containing shell meta-characters.
1500 # Make two passes to allow for proper duplicate-argument suppression.
1501 ac_configure_args=
1502 ac_configure_args0=
1503 ac_configure_args1=
1504 ac_must_keep_next=false
1505 for ac_pass in 1 2
1506 do
1507   for ac_arg
1508   do
1509     case $ac_arg in
1510     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1511     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512     | -silent | --silent | --silen | --sile | --sil)
1513       continue ;;
1514     *\'*)
1515       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1516     esac
1517     case $ac_pass in
1518     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1519     2)
1520       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1521       if test $ac_must_keep_next = true; then
1522         ac_must_keep_next=false # Got value, back to normal.
1523       else
1524         case $ac_arg in
1525           *=* | --config-cache | -C | -disable-* | --disable-* \
1526           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1527           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1528           | -with-* | --with-* | -without-* | --without-* | --x)
1529             case "$ac_configure_args0 " in
1530               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531             esac
1532             ;;
1533           -* ) ac_must_keep_next=true ;;
1534         esac
1535       fi
1536       ac_configure_args="$ac_configure_args '$ac_arg'"
1537       ;;
1538     esac
1539   done
1540 done
1541 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1542 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1543
1544 # When interrupted or exit'd, cleanup temporary files, and complete
1545 # config.log.  We remove comments because anyway the quotes in there
1546 # would cause problems or look ugly.
1547 # WARNING: Use '\'' to represent an apostrophe within the trap.
1548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1549 trap 'exit_status=$?
1550   # Save into config.log some information that might help in debugging.
1551   {
1552     echo
1553
1554     cat <<\_ASBOX
1555 ## ---------------- ##
1556 ## Cache variables. ##
1557 ## ---------------- ##
1558 _ASBOX
1559     echo
1560     # The following way of writing the cache mishandles newlines in values,
1561 (
1562   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1563     eval ac_val=\$$ac_var
1564     case $ac_val in #(
1565     *${as_nl}*)
1566       case $ac_var in #(
1567       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1568 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1569       esac
1570       case $ac_var in #(
1571       _ | IFS | as_nl) ;; #(
1572       *) $as_unset $ac_var ;;
1573       esac ;;
1574     esac
1575   done
1576   (set) 2>&1 |
1577     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1578     *${as_nl}ac_space=\ *)
1579       sed -n \
1580         "s/'\''/'\''\\\\'\'''\''/g;
1581           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1582       ;; #(
1583     *)
1584       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1585       ;;
1586     esac |
1587     sort
1588 )
1589     echo
1590
1591     cat <<\_ASBOX
1592 ## ----------------- ##
1593 ## Output variables. ##
1594 ## ----------------- ##
1595 _ASBOX
1596     echo
1597     for ac_var in $ac_subst_vars
1598     do
1599       eval ac_val=\$$ac_var
1600       case $ac_val in
1601       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1602       esac
1603       echo "$ac_var='\''$ac_val'\''"
1604     done | sort
1605     echo
1606
1607     if test -n "$ac_subst_files"; then
1608       cat <<\_ASBOX
1609 ## ------------------- ##
1610 ## File substitutions. ##
1611 ## ------------------- ##
1612 _ASBOX
1613       echo
1614       for ac_var in $ac_subst_files
1615       do
1616         eval ac_val=\$$ac_var
1617         case $ac_val in
1618         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619         esac
1620         echo "$ac_var='\''$ac_val'\''"
1621       done | sort
1622       echo
1623     fi
1624
1625     if test -s confdefs.h; then
1626       cat <<\_ASBOX
1627 ## ----------- ##
1628 ## confdefs.h. ##
1629 ## ----------- ##
1630 _ASBOX
1631       echo
1632       cat confdefs.h
1633       echo
1634     fi
1635     test "$ac_signal" != 0 &&
1636       echo "$as_me: caught signal $ac_signal"
1637     echo "$as_me: exit $exit_status"
1638   } >&5
1639   rm -f core *.core core.conftest.* &&
1640     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1641     exit $exit_status
1642 ' 0
1643 for ac_signal in 1 2 13 15; do
1644   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1645 done
1646 ac_signal=0
1647
1648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1649 rm -f -r conftest* confdefs.h
1650
1651 # Predefined preprocessor variables.
1652
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_NAME "$PACKAGE_NAME"
1655 _ACEOF
1656
1657
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660 _ACEOF
1661
1662
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1665 _ACEOF
1666
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 _ACEOF
1671
1672
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1675 _ACEOF
1676
1677
1678 # Let the site file select an alternate cache file if it wants to.
1679 # Prefer explicitly selected file to automatically selected ones.
1680 if test -n "$CONFIG_SITE"; then
1681   set x "$CONFIG_SITE"
1682 elif test "x$prefix" != xNONE; then
1683   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1684 else
1685   set x "$ac_default_prefix/share/config.site" \
1686         "$ac_default_prefix/etc/config.site"
1687 fi
1688 shift
1689 for ac_site_file
1690 do
1691   if test -r "$ac_site_file"; then
1692     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1693 echo "$as_me: loading site script $ac_site_file" >&6;}
1694     sed 's/^/| /' "$ac_site_file" >&5
1695     . "$ac_site_file"
1696   fi
1697 done
1698
1699 if test -r "$cache_file"; then
1700   # Some versions of bash will fail to source /dev/null (special
1701   # files actually), so we avoid doing that.
1702   if test -f "$cache_file"; then
1703     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1704 echo "$as_me: loading cache $cache_file" >&6;}
1705     case $cache_file in
1706       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1707       *)                      . "./$cache_file";;
1708     esac
1709   fi
1710 else
1711   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1712 echo "$as_me: creating cache $cache_file" >&6;}
1713   >$cache_file
1714 fi
1715
1716 # Check that the precious variables saved in the cache have kept the same
1717 # value.
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721   eval ac_new_set=\$ac_env_${ac_var}_set
1722   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723   eval ac_new_val=\$ac_env_${ac_var}_value
1724   case $ac_old_set,$ac_new_set in
1725     set,)
1726       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728       ac_cache_corrupted=: ;;
1729     ,set)
1730       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1731 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1732       ac_cache_corrupted=: ;;
1733     ,);;
1734     *)
1735       if test "x$ac_old_val" != "x$ac_new_val"; then
1736         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1738         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1739 echo "$as_me:   former value:  $ac_old_val" >&2;}
1740         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1741 echo "$as_me:   current value: $ac_new_val" >&2;}
1742         ac_cache_corrupted=:
1743       fi;;
1744   esac
1745   # Pass precious variables to config.status.
1746   if test "$ac_new_set" = set; then
1747     case $ac_new_val in
1748     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1749     *) ac_arg=$ac_var=$ac_new_val ;;
1750     esac
1751     case " $ac_configure_args " in
1752       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1753       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754     esac
1755   fi
1756 done
1757 if $ac_cache_corrupted; then
1758   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1759 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1762    { (exit 1); exit 1; }; }
1763 fi
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789 ac_ext=c
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794
1795
1796 RELEASE_MONTH="May 2008"
1797
1798
1799
1800 ac_aux_dir=
1801 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1802   if test -f "$ac_dir/install-sh"; then
1803     ac_aux_dir=$ac_dir
1804     ac_install_sh="$ac_aux_dir/install-sh -c"
1805     break
1806   elif test -f "$ac_dir/install.sh"; then
1807     ac_aux_dir=$ac_dir
1808     ac_install_sh="$ac_aux_dir/install.sh -c"
1809     break
1810   elif test -f "$ac_dir/shtool"; then
1811     ac_aux_dir=$ac_dir
1812     ac_install_sh="$ac_aux_dir/shtool install -c"
1813     break
1814   fi
1815 done
1816 if test -z "$ac_aux_dir"; then
1817   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1818 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1819    { (exit 1); exit 1; }; }
1820 fi
1821
1822 # These three variables are undocumented and unsupported,
1823 # and are intended to be withdrawn in a future Autoconf release.
1824 # They can cause serious problems if a builder's source tree is in a directory
1825 # whose full name contains unusual characters.
1826 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1827 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1828 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1829
1830
1831 # Make sure we can run config.sub.
1832 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1833   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1834 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1835    { (exit 1); exit 1; }; }
1836
1837 { echo "$as_me:$LINENO: checking build system type" >&5
1838 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1839 if test "${ac_cv_build+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   ac_build_alias=$build_alias
1843 test "x$ac_build_alias" = x &&
1844   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1845 test "x$ac_build_alias" = x &&
1846   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1847 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1848    { (exit 1); exit 1; }; }
1849 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1850   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1851 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1852    { (exit 1); exit 1; }; }
1853
1854 fi
1855 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1856 echo "${ECHO_T}$ac_cv_build" >&6; }
1857 case $ac_cv_build in
1858 *-*-*) ;;
1859 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1860 echo "$as_me: error: invalid value of canonical build" >&2;}
1861    { (exit 1); exit 1; }; };;
1862 esac
1863 build=$ac_cv_build
1864 ac_save_IFS=$IFS; IFS='-'
1865 set x $ac_cv_build
1866 shift
1867 build_cpu=$1
1868 build_vendor=$2
1869 shift; shift
1870 # Remember, the first character of IFS is used to create $*,
1871 # except with old shells:
1872 build_os=$*
1873 IFS=$ac_save_IFS
1874 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1875
1876
1877 { echo "$as_me:$LINENO: checking host system type" >&5
1878 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1879 if test "${ac_cv_host+set}" = set; then
1880   echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882   if test "x$host_alias" = x; then
1883   ac_cv_host=$ac_cv_build
1884 else
1885   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1886     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1887 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 fi
1892 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1893 echo "${ECHO_T}$ac_cv_host" >&6; }
1894 case $ac_cv_host in
1895 *-*-*) ;;
1896 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1897 echo "$as_me: error: invalid value of canonical host" >&2;}
1898    { (exit 1); exit 1; }; };;
1899 esac
1900 host=$ac_cv_host
1901 ac_save_IFS=$IFS; IFS='-'
1902 set x $ac_cv_host
1903 shift
1904 host_cpu=$1
1905 host_vendor=$2
1906 shift; shift
1907 # Remember, the first character of IFS is used to create $*,
1908 # except with old shells:
1909 host_os=$*
1910 IFS=$ac_save_IFS
1911 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1912
1913
1914 { echo "$as_me:$LINENO: checking target system type" >&5
1915 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1916 if test "${ac_cv_target+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test "x$target_alias" = x; then
1920   ac_cv_target=$ac_cv_host
1921 else
1922   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1923     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1924 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1925    { (exit 1); exit 1; }; }
1926 fi
1927
1928 fi
1929 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1930 echo "${ECHO_T}$ac_cv_target" >&6; }
1931 case $ac_cv_target in
1932 *-*-*) ;;
1933 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1934 echo "$as_me: error: invalid value of canonical target" >&2;}
1935    { (exit 1); exit 1; }; };;
1936 esac
1937 target=$ac_cv_target
1938 ac_save_IFS=$IFS; IFS='-'
1939 set x $ac_cv_target
1940 shift
1941 target_cpu=$1
1942 target_vendor=$2
1943 shift; shift
1944 # Remember, the first character of IFS is used to create $*,
1945 # except with old shells:
1946 target_os=$*
1947 IFS=$ac_save_IFS
1948 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1949
1950
1951 # The aliases save the names the user supplied, while $host etc.
1952 # will get canonicalized.
1953 test -n "$target_alias" &&
1954   test "$program_prefix$program_suffix$program_transform_name" = \
1955     NONENONEs,x,x, &&
1956   program_prefix=${target_alias}-
1957
1958
1959 # display notice and initialize automake
1960 { echo "$as_me:$LINENO: configuring nss-ldapd 0.6.2" >&5
1961 echo "$as_me: configuring nss-ldapd 0.6.2" >&6;}
1962 am__api_version='1.10'
1963
1964 # Find a good install program.  We prefer a C program (faster),
1965 # so one script is as good as another.  But avoid the broken or
1966 # incompatible versions:
1967 # SysV /etc/install, /usr/sbin/install
1968 # SunOS /usr/etc/install
1969 # IRIX /sbin/install
1970 # AIX /bin/install
1971 # AmigaOS /C/install, which installs bootblocks on floppy discs
1972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1975 # OS/2's system install, which has a completely different semantic
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1978 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1979 if test -z "$INSTALL"; then
1980 if test "${ac_cv_path_install+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   # Account for people who put trailing slashes in PATH elements.
1989 case $as_dir/ in
1990   ./ | .// | /cC/* | \
1991   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1992   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1993   /usr/ucb/* ) ;;
1994   *)
1995     # OSF1 and SCO ODT 3.0 have their own names for install.
1996     # Don't use installbsd from OSF since it installs stuff as root
1997     # by default.
1998     for ac_prog in ginstall scoinst install; do
1999       for ac_exec_ext in '' $ac_executable_extensions; do
2000         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2001           if test $ac_prog = install &&
2002             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003             # AIX install.  It has an incompatible calling convention.
2004             :
2005           elif test $ac_prog = install &&
2006             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007             # program-specific install script used by HP pwplus--don't use.
2008             :
2009           else
2010             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2011             break 3
2012           fi
2013         fi
2014       done
2015     done
2016     ;;
2017 esac
2018 done
2019 IFS=$as_save_IFS
2020
2021
2022 fi
2023   if test "${ac_cv_path_install+set}" = set; then
2024     INSTALL=$ac_cv_path_install
2025   else
2026     # As a last resort, use the slow shell script.  Don't cache a
2027     # value for INSTALL within a source directory, because that will
2028     # break other packages using the cache if that directory is
2029     # removed, or if the value is a relative name.
2030     INSTALL=$ac_install_sh
2031   fi
2032 fi
2033 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2034 echo "${ECHO_T}$INSTALL" >&6; }
2035
2036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2037 # It thinks the first close brace ends the variable substitution.
2038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2039
2040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2041
2042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2043
2044 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2045 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2046 # Just in case
2047 sleep 1
2048 echo timestamp > conftest.file
2049 # Do `set' in a subshell so we don't clobber the current shell's
2050 # arguments.  Must try -L first in case configure is actually a
2051 # symlink; some systems play weird games with the mod time of symlinks
2052 # (eg FreeBSD returns the mod time of the symlink's containing
2053 # directory).
2054 if (
2055    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2056    if test "$*" = "X"; then
2057       # -L didn't work.
2058       set X `ls -t $srcdir/configure conftest.file`
2059    fi
2060    rm -f conftest.file
2061    if test "$*" != "X $srcdir/configure conftest.file" \
2062       && test "$*" != "X conftest.file $srcdir/configure"; then
2063
2064       # If neither matched, then we have a broken ls.  This can happen
2065       # if, for instance, CONFIG_SHELL is bash and it inherits a
2066       # broken ls alias from the environment.  This has actually
2067       # happened.  Such a system could not be considered "sane".
2068       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2069 alias in your environment" >&5
2070 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2071 alias in your environment" >&2;}
2072    { (exit 1); exit 1; }; }
2073    fi
2074
2075    test "$2" = conftest.file
2076    )
2077 then
2078    # Ok.
2079    :
2080 else
2081    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2082 Check your system clock" >&5
2083 echo "$as_me: error: newly created file is older than distributed files!
2084 Check your system clock" >&2;}
2085    { (exit 1); exit 1; }; }
2086 fi
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089 test "$program_prefix" != NONE &&
2090   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2091 # Use a double $ so make ignores it.
2092 test "$program_suffix" != NONE &&
2093   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2094 # Double any \ or $.  echo might interpret backslashes.
2095 # By default was `s,x,x', remove it if useless.
2096 cat <<\_ACEOF >conftest.sed
2097 s/[\\$]/&&/g;s/;s,x,x,$//
2098 _ACEOF
2099 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2100 rm -f conftest.sed
2101
2102 # expand $ac_aux_dir to an absolute path
2103 am_aux_dir=`cd $ac_aux_dir && pwd`
2104
2105 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2106 # Use eval to expand $SHELL
2107 if eval "$MISSING --run true"; then
2108   am_missing_run="$MISSING --run "
2109 else
2110   am_missing_run=
2111   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2112 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113 fi
2114
2115 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2116 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2117 if test -z "$MKDIR_P"; then
2118   if test "${ac_cv_path_mkdir+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_prog in mkdir gmkdir; do
2127          for ac_exec_ext in '' $ac_executable_extensions; do
2128            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2129            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2130              'mkdir (GNU coreutils) '* | \
2131              'mkdir (coreutils) '* | \
2132              'mkdir (fileutils) '4.1*)
2133                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2134                break 3;;
2135            esac
2136          done
2137        done
2138 done
2139 IFS=$as_save_IFS
2140
2141 fi
2142
2143   if test "${ac_cv_path_mkdir+set}" = set; then
2144     MKDIR_P="$ac_cv_path_mkdir -p"
2145   else
2146     # As a last resort, use the slow shell script.  Don't cache a
2147     # value for MKDIR_P within a source directory, because that will
2148     # break other packages using the cache if that directory is
2149     # removed, or if the value is a relative name.
2150     test -d ./--version && rmdir ./--version
2151     MKDIR_P="$ac_install_sh -d"
2152   fi
2153 fi
2154 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2155 echo "${ECHO_T}$MKDIR_P" >&6; }
2156
2157 mkdir_p="$MKDIR_P"
2158 case $mkdir_p in
2159   [\\/$]* | ?:[\\/]*) ;;
2160   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2161 esac
2162
2163 for ac_prog in gawk mawk nawk awk
2164 do
2165   # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_AWK+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$AWK"; then
2173   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_AWK="$ac_prog"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 AWK=$ac_cv_prog_AWK
2193 if test -n "$AWK"; then
2194   { echo "$as_me:$LINENO: result: $AWK" >&5
2195 echo "${ECHO_T}$AWK" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201
2202   test -n "$AWK" && break
2203 done
2204
2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   cat >conftest.make <<\_ACEOF
2212 SHELL = /bin/sh
2213 all:
2214         @echo '@@@%%%=$(MAKE)=@@@%%%'
2215 _ACEOF
2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2218   *@@@%%%=?*=@@@%%%*)
2219     eval ac_cv_prog_make_${ac_make}_set=yes;;
2220   *)
2221     eval ac_cv_prog_make_${ac_make}_set=no;;
2222 esac
2223 rm -f conftest.make
2224 fi
2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226   { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2228   SET_MAKE=
2229 else
2230   { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232   SET_MAKE="MAKE=${MAKE-make}"
2233 fi
2234
2235 rm -rf .tst 2>/dev/null
2236 mkdir .tst 2>/dev/null
2237 if test -d .tst; then
2238   am__leading_dot=.
2239 else
2240   am__leading_dot=_
2241 fi
2242 rmdir .tst 2>/dev/null
2243
2244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2245   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2246   # is not polluted with repeated "-I."
2247   am__isrc=' -I$(srcdir)'
2248   # test to see if srcdir already configured
2249   if test -f $srcdir/config.status; then
2250     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252    { (exit 1); exit 1; }; }
2253   fi
2254 fi
2255
2256 # test whether we have cygpath
2257 if test -z "$CYGPATH_W"; then
2258   if (cygpath --version) >/dev/null 2>/dev/null; then
2259     CYGPATH_W='cygpath -w'
2260   else
2261     CYGPATH_W=echo
2262   fi
2263 fi
2264
2265
2266 # Define the identity of the package.
2267  PACKAGE=nss-ldapd
2268  VERSION=0.6.2
2269
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE "$PACKAGE"
2273 _ACEOF
2274
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define VERSION "$VERSION"
2278 _ACEOF
2279
2280 # Some tools Automake needs.
2281
2282 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283
2284
2285 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286
2287
2288 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289
2290
2291 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292
2293
2294 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
2296 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2297
2298 # Installed binaries are usually stripped using `strip' when the user
2299 # run `make install-strip'.  However `strip' might not be the right
2300 # tool to use in cross-compilation environments, therefore Automake
2301 # will honor the `STRIP' environment variable to overrule this program.
2302 if test "$cross_compiling" != no; then
2303   if test -n "$ac_tool_prefix"; then
2304   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_STRIP+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$STRIP"; then
2312   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327 IFS=$as_save_IFS
2328
2329 fi
2330 fi
2331 STRIP=$ac_cv_prog_STRIP
2332 if test -n "$STRIP"; then
2333   { echo "$as_me:$LINENO: result: $STRIP" >&5
2334 echo "${ECHO_T}$STRIP" >&6; }
2335 else
2336   { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341 fi
2342 if test -z "$ac_cv_prog_STRIP"; then
2343   ac_ct_STRIP=$STRIP
2344   # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$ac_ct_STRIP"; then
2352   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361     ac_cv_prog_ac_ct_STRIP="strip"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372 if test -n "$ac_ct_STRIP"; then
2373   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2375 else
2376   { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380   if test "x$ac_ct_STRIP" = x; then
2381     STRIP=":"
2382   else
2383     case $cross_compiling:$ac_tool_warned in
2384 yes:)
2385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet.  If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&5
2388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet.  If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2391 ac_tool_warned=yes ;;
2392 esac
2393     STRIP=$ac_ct_STRIP
2394   fi
2395 else
2396   STRIP="$ac_cv_prog_STRIP"
2397 fi
2398
2399 fi
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
2402 # We need awk for the "check" target.  The system "awk" is bad on
2403 # some platforms.
2404 # Always define AMTAR for backward compatibility.
2405
2406 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
2408 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409
2410
2411
2412
2413
2414
2415 # create a config.h file (Automake will add -DHAVE_CONFIG_H)
2416 ac_config_headers="$ac_config_headers config.h"
2417
2418
2419 # check for programs
2420 ac_ext=c
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425 if test -n "$ac_tool_prefix"; then
2426   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455   { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2457 else
2458   { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2460 fi
2461
2462
2463 fi
2464 if test -z "$ac_cv_prog_CC"; then
2465   ac_ct_CC=$CC
2466   # Extract the first word of "gcc", so it can be a program name with args.
2467 set dummy gcc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$ac_ct_CC"; then
2474   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481   for ac_exec_ext in '' $ac_executable_extensions; do
2482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483     ac_cv_prog_ac_ct_CC="gcc"
2484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486   fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2494 if test -n "$ac_ct_CC"; then
2495   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2496 echo "${ECHO_T}$ac_ct_CC" >&6; }
2497 else
2498   { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2500 fi
2501
2502   if test "x$ac_ct_CC" = x; then
2503     CC=""
2504   else
2505     case $cross_compiling:$ac_tool_warned in
2506 yes:)
2507 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet.  If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&5
2510 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet.  If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2513 ac_tool_warned=yes ;;
2514 esac
2515     CC=$ac_ct_CC
2516   fi
2517 else
2518   CC="$ac_cv_prog_CC"
2519 fi
2520
2521 if test -z "$CC"; then
2522           if test -n "$ac_tool_prefix"; then
2523     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$CC"; then
2531   ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     ac_cv_prog_CC="${ac_tool_prefix}cc"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 CC=$ac_cv_prog_CC
2551 if test -n "$CC"; then
2552   { echo "$as_me:$LINENO: result: $CC" >&5
2553 echo "${ECHO_T}$CC" >&6; }
2554 else
2555   { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559
2560   fi
2561 fi
2562 if test -z "$CC"; then
2563   # Extract the first word of "cc", so it can be a program name with args.
2564 set dummy cc; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$CC"; then
2571   ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573   ac_prog_rejected=no
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579   for ac_exec_ext in '' $ac_executable_extensions; do
2580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2582        ac_prog_rejected=yes
2583        continue
2584      fi
2585     ac_cv_prog_CC="cc"
2586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587     break 2
2588   fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 if test $ac_prog_rejected = yes; then
2594   # We found a bogon in the path, so make sure we never use it.
2595   set dummy $ac_cv_prog_CC
2596   shift
2597   if test $# != 0; then
2598     # We chose a different compiler from the bogus one.
2599     # However, it has the same basename, so the bogon will be chosen
2600     # first if we set CC to just the basename; use the full file name.
2601     shift
2602     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2603   fi
2604 fi
2605 fi
2606 fi
2607 CC=$ac_cv_prog_CC
2608 if test -n "$CC"; then
2609   { echo "$as_me:$LINENO: result: $CC" >&5
2610 echo "${ECHO_T}$CC" >&6; }
2611 else
2612   { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2614 fi
2615
2616
2617 fi
2618 if test -z "$CC"; then
2619   if test -n "$ac_tool_prefix"; then
2620   for ac_prog in cl.exe
2621   do
2622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_CC+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   if test -n "$CC"; then
2630   ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637   for ac_exec_ext in '' $ac_executable_extensions; do
2638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641     break 2
2642   fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 CC=$ac_cv_prog_CC
2650 if test -n "$CC"; then
2651   { echo "$as_me:$LINENO: result: $CC" >&5
2652 echo "${ECHO_T}$CC" >&6; }
2653 else
2654   { echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6; }
2656 fi
2657
2658
2659     test -n "$CC" && break
2660   done
2661 fi
2662 if test -z "$CC"; then
2663   ac_ct_CC=$CC
2664   for ac_prog in cl.exe
2665 do
2666   # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   if test -n "$ac_ct_CC"; then
2674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
2680   test -z "$as_dir" && as_dir=.
2681   for ac_exec_ext in '' $ac_executable_extensions; do
2682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683     ac_cv_prog_ac_ct_CC="$ac_prog"
2684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685     break 2
2686   fi
2687 done
2688 done
2689 IFS=$as_save_IFS
2690
2691 fi
2692 fi
2693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 echo "${ECHO_T}$ac_ct_CC" >&6; }
2697 else
2698   { echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6; }
2700 fi
2701
2702
2703   test -n "$ac_ct_CC" && break
2704 done
2705
2706   if test "x$ac_ct_CC" = x; then
2707     CC=""
2708   else
2709     case $cross_compiling:$ac_tool_warned in
2710 yes:)
2711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet.  If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&5
2714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet.  If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719     CC=$ac_ct_CC
2720   fi
2721 fi
2722
2723 fi
2724
2725
2726 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2727 See \`config.log' for more details." >&5
2728 echo "$as_me: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&2;}
2730    { (exit 1); exit 1; }; }
2731
2732 # Provide some information about the compiler.
2733 echo "$as_me:$LINENO: checking for C compiler version" >&5
2734 ac_compiler=`set X $ac_compile; echo $2`
2735 { (ac_try="$ac_compiler --version >&5"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_compiler --version >&5") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }
2745 { (ac_try="$ac_compiler -v >&5"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_compiler -v >&5") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }
2755 { (ac_try="$ac_compiler -V >&5"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_compiler -V >&5") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }
2765
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 ac_clean_files_save=$ac_clean_files
2782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2783 # Try to create an executable without -o first, disregard a.out.
2784 # It will help us diagnose broken compilers, and finding out an intuition
2785 # of exeext.
2786 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2789 #
2790 # List of possible output files, starting from the most likely.
2791 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2792 # only as a last resort.  b.out is created by i960 compilers.
2793 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2794 #
2795 # The IRIX 6 linker writes into existing files which may not be
2796 # executable, retaining their permissions.  Remove them first so a
2797 # subsequent execution test works.
2798 ac_rmfiles=
2799 for ac_file in $ac_files
2800 do
2801   case $ac_file in
2802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2803     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2804   esac
2805 done
2806 rm -f $ac_rmfiles
2807
2808 if { (ac_try="$ac_link_default"
2809 case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814   (eval "$ac_link_default") 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; then
2818   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2820 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2821 # so that the user can short-circuit this test for compilers unknown to
2822 # Autoconf.
2823 for ac_file in $ac_files ''
2824 do
2825   test -f "$ac_file" || continue
2826   case $ac_file in
2827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2828         ;;
2829     [ab].out )
2830         # We found the default executable, but exeext='' is most
2831         # certainly right.
2832         break;;
2833     *.* )
2834         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2835         then :; else
2836            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837         fi
2838         # We set ac_cv_exeext here because the later test for it is not
2839         # safe: cross compilers may not add the suffix if given an `-o'
2840         # argument, so we may need to know it at that point already.
2841         # Even if this section looks crufty: it has the advantage of
2842         # actually working.
2843         break;;
2844     * )
2845         break;;
2846   esac
2847 done
2848 test "$ac_cv_exeext" = no && ac_cv_exeext=
2849
2850 else
2851   ac_file=''
2852 fi
2853
2854 { echo "$as_me:$LINENO: result: $ac_file" >&5
2855 echo "${ECHO_T}$ac_file" >&6; }
2856 if test -z "$ac_file"; then
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&2;}
2864    { (exit 77); exit 77; }; }
2865 fi
2866
2867 ac_exeext=$ac_cv_exeext
2868
2869 # Check that the compiler produces executables we can run.  If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2872 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2873 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2874 # If not cross compiling, check that we can run a simple program.
2875 if test "$cross_compiling" != yes; then
2876   if { ac_try='./$ac_file'
2877   { (case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882   (eval "$ac_try") 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; }; then
2886     cross_compiling=no
2887   else
2888     if test "$cross_compiling" = maybe; then
2889         cross_compiling=yes
2890     else
2891         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&2;}
2897    { (exit 1); exit 1; }; }
2898     fi
2899   fi
2900 fi
2901 { echo "$as_me:$LINENO: result: yes" >&5
2902 echo "${ECHO_T}yes" >&6; }
2903
2904 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2905 ac_clean_files=$ac_clean_files_save
2906 # Check that the compiler produces executables we can run.  If not, either
2907 # the compiler is broken, or we cross compile.
2908 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2909 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2910 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2911 echo "${ECHO_T}$cross_compiling" >&6; }
2912
2913 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2914 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2915 if { (ac_try="$ac_link"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_link") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; then
2925   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2926 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2927 # work properly (i.e., refer to `conftest.exe'), while it won't with
2928 # `rm'.
2929 for ac_file in conftest.exe conftest conftest.*; do
2930   test -f "$ac_file" || continue
2931   case $ac_file in
2932     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2933     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934           break;;
2935     * ) break;;
2936   esac
2937 done
2938 else
2939   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details." >&2;}
2943    { (exit 1); exit 1; }; }
2944 fi
2945
2946 rm -f conftest$ac_cv_exeext
2947 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2948 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2949
2950 rm -f conftest.$ac_ext
2951 EXEEXT=$ac_cv_exeext
2952 ac_exeext=$EXEEXT
2953 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2954 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2955 if test "${ac_cv_objext+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964
2965 int
2966 main ()
2967 {
2968
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.o conftest.obj
2974 if { (ac_try="$ac_compile"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_compile") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; then
2984   for ac_file in conftest.o conftest.obj conftest.*; do
2985   test -f "$ac_file" || continue;
2986   case $ac_file in
2987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2988     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2989        break;;
2990   esac
2991 done
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2997 See \`config.log' for more details." >&5
2998 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&2;}
3000    { (exit 1); exit 1; }; }
3001 fi
3002
3003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3004 fi
3005 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3006 echo "${ECHO_T}$ac_cv_objext" >&6; }
3007 OBJEXT=$ac_cv_objext
3008 ac_objext=$OBJEXT
3009 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3012   echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014   cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h.  */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h.  */
3020
3021 int
3022 main ()
3023 {
3024 #ifndef __GNUC__
3025        choke me
3026 #endif
3027
3028   ;
3029   return 0;
3030 }
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3034 case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_compile") 2>conftest.er1
3040   ac_status=$?
3041   grep -v '^ *+' conftest.er1 >conftest.err
3042   rm -f conftest.er1
3043   cat conftest.err >&5
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } && {
3046          test -z "$ac_c_werror_flag" ||
3047          test ! -s conftest.err
3048        } && test -s conftest.$ac_objext; then
3049   ac_compiler_gnu=yes
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054         ac_compiler_gnu=no
3055 fi
3056
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059
3060 fi
3061 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3063 GCC=`test $ac_compiler_gnu = yes && echo yes`
3064 ac_test_CFLAGS=${CFLAGS+set}
3065 ac_save_CFLAGS=$CFLAGS
3066 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3067 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_cc_g+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   ac_save_c_werror_flag=$ac_c_werror_flag
3072    ac_c_werror_flag=yes
3073    ac_cv_prog_cc_g=no
3074    CFLAGS="-g"
3075    cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_compile") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } && {
3104          test -z "$ac_c_werror_flag" ||
3105          test ! -s conftest.err
3106        } && test -s conftest.$ac_objext; then
3107   ac_cv_prog_cc_g=yes
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112         CFLAGS=""
3113       cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_compile") 2>conftest.er1
3136   ac_status=$?
3137   grep -v '^ *+' conftest.er1 >conftest.err
3138   rm -f conftest.er1
3139   cat conftest.err >&5
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } && {
3142          test -z "$ac_c_werror_flag" ||
3143          test ! -s conftest.err
3144        } && test -s conftest.$ac_objext; then
3145   :
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150         ac_c_werror_flag=$ac_save_c_werror_flag
3151          CFLAGS="-g"
3152          cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_compile") 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } && {
3181          test -z "$ac_c_werror_flag" ||
3182          test ! -s conftest.err
3183        } && test -s conftest.$ac_objext; then
3184   ac_cv_prog_cc_g=yes
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199    ac_c_werror_flag=$ac_save_c_werror_flag
3200 fi
3201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204   CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206   if test "$GCC" = yes; then
3207     CFLAGS="-g -O2"
3208   else
3209     CFLAGS="-g"
3210   fi
3211 else
3212   if test "$GCC" = yes; then
3213     CFLAGS="-O2"
3214   else
3215     CFLAGS=
3216   fi
3217 fi
3218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   ac_cv_prog_cc_c89=no
3224 ac_save_CC=$CC
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239      char **p;
3240      int i;
3241 {
3242   return p[i];
3243 }
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3245 {
3246   char *s;
3247   va_list v;
3248   va_start (v,p);
3249   s = g (p, va_arg (v,int));
3250   va_end (v);
3251   return s;
3252 }
3253
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3255    function prototypes and stuff, but not '\xHH' hex character constants.
3256    These don't provoke an error unfortunately, instead are silently treated
3257    as 'x'.  The following induces an error, until -std is added to get
3258    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3259    array size at least.  It's necessary to write '\x00'==0 to get something
3260    that's true only with -std.  */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264    inside strings and character constants.  */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3274 int
3275 main ()
3276 {
3277 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 do
3285   CC="$ac_save_CC $ac_arg"
3286   rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_compile") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } && {
3300          test -z "$ac_c_werror_flag" ||
3301          test ! -s conftest.err
3302        } && test -s conftest.$ac_objext; then
3303   ac_cv_prog_cc_c89=$ac_arg
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308
3309 fi
3310
3311 rm -f core conftest.err conftest.$ac_objext
3312   test "x$ac_cv_prog_cc_c89" != "xno" && break
3313 done
3314 rm -f conftest.$ac_ext
3315 CC=$ac_save_CC
3316
3317 fi
3318 # AC_CACHE_VAL
3319 case "x$ac_cv_prog_cc_c89" in
3320   x)
3321     { echo "$as_me:$LINENO: result: none needed" >&5
3322 echo "${ECHO_T}none needed" >&6; } ;;
3323   xno)
3324     { echo "$as_me:$LINENO: result: unsupported" >&5
3325 echo "${ECHO_T}unsupported" >&6; } ;;
3326   *)
3327     CC="$CC $ac_cv_prog_cc_c89"
3328     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3329 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3330 esac
3331
3332
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 DEPDIR="${am__leading_dot}deps"
3339
3340 ac_config_commands="$ac_config_commands depfiles"
3341
3342
3343 am_make=${MAKE-make}
3344 cat > confinc << 'END'
3345 am__doit:
3346         @echo done
3347 .PHONY: am__doit
3348 END
3349 # If we don't find an include directive, just comment out the code.
3350 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3351 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3352 am__include="#"
3353 am__quote=
3354 _am_result=none
3355 # First try GNU make style include.
3356 echo "include confinc" > confmf
3357 # We grep out `Entering directory' and `Leaving directory'
3358 # messages which can occur if `w' ends up in MAKEFLAGS.
3359 # In particular we don't look at `^make:' because GNU make might
3360 # be invoked under some other name (usually "gmake"), in which
3361 # case it prints its new name instead of `make'.
3362 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3363    am__include=include
3364    am__quote=
3365    _am_result=GNU
3366 fi
3367 # Now try BSD make style include.
3368 if test "$am__include" = "#"; then
3369    echo '.include "confinc"' > confmf
3370    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3371       am__include=.include
3372       am__quote="\""
3373       _am_result=BSD
3374    fi
3375 fi
3376
3377
3378 { echo "$as_me:$LINENO: result: $_am_result" >&5
3379 echo "${ECHO_T}$_am_result" >&6; }
3380 rm -f confinc confmf
3381
3382 # Check whether --enable-dependency-tracking was given.
3383 if test "${enable_dependency_tracking+set}" = set; then
3384   enableval=$enable_dependency_tracking;
3385 fi
3386
3387 if test "x$enable_dependency_tracking" != xno; then
3388   am_depcomp="$ac_aux_dir/depcomp"
3389   AMDEPBACKSLASH='\'
3390 fi
3391  if test "x$enable_dependency_tracking" != xno; then
3392   AMDEP_TRUE=
3393   AMDEP_FALSE='#'
3394 else
3395   AMDEP_TRUE='#'
3396   AMDEP_FALSE=
3397 fi
3398
3399
3400
3401 depcc="$CC"   am_compiler_list=
3402
3403 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3405 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409   # We make a subdir and do the tests there.  Otherwise we can end up
3410   # making bogus files that we don't know about and never remove.  For
3411   # instance it was reported that on HP-UX the gcc test will end up
3412   # making a dummy file named `D' -- because `-MD' means `put the output
3413   # in D'.
3414   mkdir conftest.dir
3415   # Copy depcomp to subdir because otherwise we won't find it if we're
3416   # using a relative directory.
3417   cp "$am_depcomp" conftest.dir
3418   cd conftest.dir
3419   # We will build objects and dependencies in a subdirectory because
3420   # it helps to detect inapplicable dependency modes.  For instance
3421   # both Tru64's cc and ICC support -MD to output dependencies as a
3422   # side effect of compilation, but ICC will put the dependencies in
3423   # the current directory while Tru64 will put them in the object
3424   # directory.
3425   mkdir sub
3426
3427   am_cv_CC_dependencies_compiler_type=none
3428   if test "$am_compiler_list" = ""; then
3429      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3430   fi
3431   for depmode in $am_compiler_list; do
3432     # Setup a source with many dependencies, because some compilers
3433     # like to wrap large dependency lists on column 80 (with \), and
3434     # we should not choose a depcomp mode which is confused by this.
3435     #
3436     # We need to recreate these files for each test, as the compiler may
3437     # overwrite some of them when testing with obscure command lines.
3438     # This happens at least with the AIX C compiler.
3439     : > sub/conftest.c
3440     for i in 1 2 3 4 5 6; do
3441       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443       # Solaris 8's {/usr,}/bin/sh.
3444       touch sub/conftst$i.h
3445     done
3446     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447
3448     case $depmode in
3449     nosideeffect)
3450       # after this tag, mechanisms are not by side-effect, so they'll
3451       # only be used when explicitly requested
3452       if test "x$enable_dependency_tracking" = xyes; then
3453         continue
3454       else
3455         break
3456       fi
3457       ;;
3458     none) break ;;
3459     esac
3460     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461     # mode.  It turns out that the SunPro C++ compiler does not properly
3462     # handle `-M -o', and we need to detect this.
3463     if depmode=$depmode \
3464        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467          >/dev/null 2>conftest.err &&
3468        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3469        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472       # icc doesn't choke on unknown options, it will just issue warnings
3473       # or remarks (even with -Werror).  So we grep stderr for any message
3474       # that says an option was ignored or not supported.
3475       # When given -MP, icc 7.0 and 7.1 complain thusly:
3476       #   icc: Command line warning: ignoring option '-M'; no argument required
3477       # The diagnosis changed in icc 8.0:
3478       #   icc: Command line remark: option '-MP' not supported
3479       if (grep 'ignoring option' conftest.err ||
3480           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481         am_cv_CC_dependencies_compiler_type=$depmode
3482         break
3483       fi
3484     fi
3485   done
3486
3487   cd ..
3488   rm -rf conftest.dir
3489 else
3490   am_cv_CC_dependencies_compiler_type=none
3491 fi
3492
3493 fi
3494 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3496 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498  if
3499   test "x$enable_dependency_tracking" != xno \
3500   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501   am__fastdepCC_TRUE=
3502   am__fastdepCC_FALSE='#'
3503 else
3504   am__fastdepCC_TRUE='#'
3505   am__fastdepCC_FALSE=
3506 fi
3507
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3515 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3516 # On Suns, sometimes $CPP names a directory.
3517 if test -n "$CPP" && test -d "$CPP"; then
3518   CPP=
3519 fi
3520 if test -z "$CPP"; then
3521   if test "${ac_cv_prog_CPP+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524       # Double quotes because CPP needs to be expanded
3525     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3526     do
3527       ac_preproc_ok=false
3528 for ac_c_preproc_warn_flag in '' yes
3529 do
3530   # Use a header file that comes with gcc, so configuring glibc
3531   # with a fresh cross-compiler works.
3532   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533   # <limits.h> exists even on freestanding compilers.
3534   # On the NeXT, cc -E runs the code through the compiler's parser,
3535   # not just through cpp. "Syntax error" is here to catch this case.
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #ifdef __STDC__
3543 # include <limits.h>
3544 #else
3545 # include <assert.h>
3546 #endif
3547                      Syntax error
3548 _ACEOF
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556   ac_status=$?
3557   grep -v '^ *+' conftest.er1 >conftest.err
3558   rm -f conftest.er1
3559   cat conftest.err >&5
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); } >/dev/null && {
3562          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3563          test ! -s conftest.err
3564        }; then
3565   :
3566 else
3567   echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570   # Broken: fails on valid input.
3571 continue
3572 fi
3573
3574 rm -f conftest.err conftest.$ac_ext
3575
3576   # OK, works on sane cases.  Now check whether nonexistent headers
3577   # can be detected and how.
3578   cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584 #include <ac_nonexistent.h>
3585 _ACEOF
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } >/dev/null && {
3599          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600          test ! -s conftest.err
3601        }; then
3602   # Broken: success on invalid input.
3603 continue
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608   # Passes both tests.
3609 ac_preproc_ok=:
3610 break
3611 fi
3612
3613 rm -f conftest.err conftest.$ac_ext
3614
3615 done
3616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3617 rm -f conftest.err conftest.$ac_ext
3618 if $ac_preproc_ok; then
3619   break
3620 fi
3621
3622     done
3623     ac_cv_prog_CPP=$CPP
3624
3625 fi
3626   CPP=$ac_cv_prog_CPP
3627 else
3628   ac_cv_prog_CPP=$CPP
3629 fi
3630 { echo "$as_me:$LINENO: result: $CPP" >&5
3631 echo "${ECHO_T}$CPP" >&6; }
3632 ac_preproc_ok=false
3633 for ac_c_preproc_warn_flag in '' yes
3634 do
3635   # Use a header file that comes with gcc, so configuring glibc
3636   # with a fresh cross-compiler works.
3637   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3638   # <limits.h> exists even on freestanding compilers.
3639   # On the NeXT, cc -E runs the code through the compiler's parser,
3640   # not just through cpp. "Syntax error" is here to catch this case.
3641   cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647 #ifdef __STDC__
3648 # include <limits.h>
3649 #else
3650 # include <assert.h>
3651 #endif
3652                      Syntax error
3653 _ACEOF
3654 if { (ac_try="$ac_cpp conftest.$ac_ext"
3655 case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } >/dev/null && {
3667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3668          test ! -s conftest.err
3669        }; then
3670   :
3671 else
3672   echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675   # Broken: fails on valid input.
3676 continue
3677 fi
3678
3679 rm -f conftest.err conftest.$ac_ext
3680
3681   # OK, works on sane cases.  Now check whether nonexistent headers
3682   # can be detected and how.
3683   cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689 #include <ac_nonexistent.h>
3690 _ACEOF
3691 if { (ac_try="$ac_cpp conftest.$ac_ext"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } >/dev/null && {
3704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3705          test ! -s conftest.err
3706        }; then
3707   # Broken: success on invalid input.
3708 continue
3709 else
3710   echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713   # Passes both tests.
3714 ac_preproc_ok=:
3715 break
3716 fi
3717
3718 rm -f conftest.err conftest.$ac_ext
3719
3720 done
3721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3722 rm -f conftest.err conftest.$ac_ext
3723 if $ac_preproc_ok; then
3724   :
3725 else
3726   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3727 See \`config.log' for more details." >&5
3728 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3729 See \`config.log' for more details." >&2;}
3730    { (exit 1); exit 1; }; }
3731 fi
3732
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739 # Find a good install program.  We prefer a C program (faster),
3740 # so one script is as good as another.  But avoid the broken or
3741 # incompatible versions:
3742 # SysV /etc/install, /usr/sbin/install
3743 # SunOS /usr/etc/install
3744 # IRIX /sbin/install
3745 # AIX /bin/install
3746 # AmigaOS /C/install, which installs bootblocks on floppy discs
3747 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3748 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3749 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3750 # OS/2's system install, which has a completely different semantic
3751 # ./install, which can be erroneously created by make from ./install.sh.
3752 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3753 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3754 if test -z "$INSTALL"; then
3755 if test "${ac_cv_path_install+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   # Account for people who put trailing slashes in PATH elements.
3764 case $as_dir/ in
3765   ./ | .// | /cC/* | \
3766   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3767   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3768   /usr/ucb/* ) ;;
3769   *)
3770     # OSF1 and SCO ODT 3.0 have their own names for install.
3771     # Don't use installbsd from OSF since it installs stuff as root
3772     # by default.
3773     for ac_prog in ginstall scoinst install; do
3774       for ac_exec_ext in '' $ac_executable_extensions; do
3775         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3776           if test $ac_prog = install &&
3777             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3778             # AIX install.  It has an incompatible calling convention.
3779             :
3780           elif test $ac_prog = install &&
3781             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3782             # program-specific install script used by HP pwplus--don't use.
3783             :
3784           else
3785             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3786             break 3
3787           fi
3788         fi
3789       done
3790     done
3791     ;;
3792 esac
3793 done
3794 IFS=$as_save_IFS
3795
3796
3797 fi
3798   if test "${ac_cv_path_install+set}" = set; then
3799     INSTALL=$ac_cv_path_install
3800   else
3801     # As a last resort, use the slow shell script.  Don't cache a
3802     # value for INSTALL within a source directory, because that will
3803     # break other packages using the cache if that directory is
3804     # removed, or if the value is a relative name.
3805     INSTALL=$ac_install_sh
3806   fi
3807 fi
3808 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3809 echo "${ECHO_T}$INSTALL" >&6; }
3810
3811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3812 # It thinks the first close brace ends the variable substitution.
3813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3814
3815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3816
3817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3818
3819 if test -n "$ac_tool_prefix"; then
3820   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3821 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3824 if test "${ac_cv_prog_RANLIB+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   if test -n "$RANLIB"; then
3828   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 RANLIB=$ac_cv_prog_RANLIB
3848 if test -n "$RANLIB"; then
3849   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3850 echo "${ECHO_T}$RANLIB" >&6; }
3851 else
3852   { echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6; }
3854 fi
3855
3856
3857 fi
3858 if test -z "$ac_cv_prog_RANLIB"; then
3859   ac_ct_RANLIB=$RANLIB
3860   # Extract the first word of "ranlib", so it can be a program name with args.
3861 set dummy ranlib; ac_word=$2
3862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   if test -n "$ac_ct_RANLIB"; then
3868   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_exec_ext in '' $ac_executable_extensions; do
3876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877     ac_cv_prog_ac_ct_RANLIB="ranlib"
3878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3888 if test -n "$ac_ct_RANLIB"; then
3889   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3890 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3891 else
3892   { echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6; }
3894 fi
3895
3896   if test "x$ac_ct_RANLIB" = x; then
3897     RANLIB=":"
3898   else
3899     case $cross_compiling:$ac_tool_warned in
3900 yes:)
3901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3902 whose name does not start with the host triplet.  If you think this
3903 configuration is useful to you, please write to autoconf@gnu.org." >&5
3904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3905 whose name does not start with the host triplet.  If you think this
3906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3907 ac_tool_warned=yes ;;
3908 esac
3909     RANLIB=$ac_ct_RANLIB
3910   fi
3911 else
3912   RANLIB="$ac_cv_prog_RANLIB"
3913 fi
3914
3915 if test "x$CC" != xcc; then
3916   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3917 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3918 else
3919   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3920 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3921 fi
3922 set dummy $CC; ac_cc=`echo $2 |
3923                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3924 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h.  */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h.  */
3933
3934 int
3935 main ()
3936 {
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 # Make sure it works both with $CC and with simple cc.
3943 # We do the test twice because some compilers refuse to overwrite an
3944 # existing .o file with -o, though they will create one.
3945 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3946 rm -f conftest2.*
3947 if { (case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952   (eval "$ac_try") 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } &&
3956    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961   (eval "$ac_try") 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); };
3965 then
3966   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3967   if test "x$CC" != xcc; then
3968     # Test first that cc exists at all.
3969     if { ac_try='cc -c conftest.$ac_ext >&5'
3970   { (case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975   (eval "$ac_try") 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; }; then
3979       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3980       rm -f conftest2.*
3981       if { (case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986   (eval "$ac_try") 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); } &&
3990          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992   *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995   (eval "$ac_try") 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); };
3999       then
4000         # cc works too.
4001         :
4002       else
4003         # cc exists but doesn't like -o.
4004         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4005       fi
4006     fi
4007   fi
4008 else
4009   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4010 fi
4011 rm -f core conftest*
4012
4013 fi
4014 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4015   { echo "$as_me:$LINENO: result: yes" >&5
4016 echo "${ECHO_T}yes" >&6; }
4017 else
4018   { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4020
4021 cat >>confdefs.h <<\_ACEOF
4022 #define NO_MINUS_C_MINUS_O 1
4023 _ACEOF
4024
4025 fi
4026
4027 # FIXME: we rely on the cache variable name because
4028 # there is no other way.
4029 set dummy $CC
4030 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4031 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4032    # Losing compiler, so override with the script.
4033    # FIXME: It is wrong to rewrite CC.
4034    # But if we don't then we get into trouble of one sort or another.
4035    # A longer-term fix would be to have automake use am__CC in this case,
4036    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4037    CC="$am_aux_dir/compile $CC"
4038 fi
4039
4040
4041
4042 cat >>confdefs.h <<\_ACEOF
4043 #define _GNU_SOURCE 1
4044 _ACEOF
4045
4046
4047
4048
4049 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4050 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4051 if test "${ac_cv_path_GREP+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   # Extract the first word of "grep ggrep" to use in msg output
4055 if test -z "$GREP"; then
4056 set dummy grep ggrep; ac_prog_name=$2
4057 if test "${ac_cv_path_GREP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   ac_path_GREP_found=false
4061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067   for ac_prog in grep ggrep; do
4068   for ac_exec_ext in '' $ac_executable_extensions; do
4069     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4070     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4071     # Check for GNU ac_path_GREP and select it if it is found.
4072   # Check for GNU $ac_path_GREP
4073 case `"$ac_path_GREP" --version 2>&1` in
4074 *GNU*)
4075   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4076 *)
4077   ac_count=0
4078   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4079   while :
4080   do
4081     cat "conftest.in" "conftest.in" >"conftest.tmp"
4082     mv "conftest.tmp" "conftest.in"
4083     cp "conftest.in" "conftest.nl"
4084     echo 'GREP' >> "conftest.nl"
4085     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087     ac_count=`expr $ac_count + 1`
4088     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4089       # Best one so far, save it but keep looking for a better one
4090       ac_cv_path_GREP="$ac_path_GREP"
4091       ac_path_GREP_max=$ac_count
4092     fi
4093     # 10*(2^10) chars as input seems more than enough
4094     test $ac_count -gt 10 && break
4095   done
4096   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099
4100     $ac_path_GREP_found && break 3
4101   done
4102 done
4103
4104 done
4105 IFS=$as_save_IFS
4106
4107
4108 fi
4109
4110 GREP="$ac_cv_path_GREP"
4111 if test -z "$GREP"; then
4112   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4113 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4114    { (exit 1); exit 1; }; }
4115 fi
4116
4117 else
4118   ac_cv_path_GREP=$GREP
4119 fi
4120
4121
4122 fi
4123 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4124 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4125  GREP="$ac_cv_path_GREP"
4126
4127
4128 { echo "$as_me:$LINENO: checking for egrep" >&5
4129 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4130 if test "${ac_cv_path_EGREP+set}" = set; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4134    then ac_cv_path_EGREP="$GREP -E"
4135    else
4136      # Extract the first word of "egrep" to use in msg output
4137 if test -z "$EGREP"; then
4138 set dummy egrep; ac_prog_name=$2
4139 if test "${ac_cv_path_EGREP+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142   ac_path_EGREP_found=false
4143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149   for ac_prog in egrep; do
4150   for ac_exec_ext in '' $ac_executable_extensions; do
4151     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4152     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4153     # Check for GNU ac_path_EGREP and select it if it is found.
4154   # Check for GNU $ac_path_EGREP
4155 case `"$ac_path_EGREP" --version 2>&1` in
4156 *GNU*)
4157   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4158 *)
4159   ac_count=0
4160   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4161   while :
4162   do
4163     cat "conftest.in" "conftest.in" >"conftest.tmp"
4164     mv "conftest.tmp" "conftest.in"
4165     cp "conftest.in" "conftest.nl"
4166     echo 'EGREP' >> "conftest.nl"
4167     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4169     ac_count=`expr $ac_count + 1`
4170     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4171       # Best one so far, save it but keep looking for a better one
4172       ac_cv_path_EGREP="$ac_path_EGREP"
4173       ac_path_EGREP_max=$ac_count
4174     fi
4175     # 10*(2^10) chars as input seems more than enough
4176     test $ac_count -gt 10 && break
4177   done
4178   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179 esac
4180
4181
4182     $ac_path_EGREP_found && break 3
4183   done
4184 done
4185
4186 done
4187 IFS=$as_save_IFS
4188
4189
4190 fi
4191
4192 EGREP="$ac_cv_path_EGREP"
4193 if test -z "$EGREP"; then
4194   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4195 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4196    { (exit 1); exit 1; }; }
4197 fi
4198
4199 else
4200   ac_cv_path_EGREP=$EGREP
4201 fi
4202
4203
4204    fi
4205 fi
4206 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4207 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4208  EGREP="$ac_cv_path_EGREP"
4209
4210
4211
4212 { echo "$as_me:$LINENO: checking for AIX" >&5
4213 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220 #ifdef _AIX
4221   yes
4222 #endif
4223
4224 _ACEOF
4225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226   $EGREP "yes" >/dev/null 2>&1; then
4227   { echo "$as_me:$LINENO: result: yes" >&5
4228 echo "${ECHO_T}yes" >&6; }
4229 cat >>confdefs.h <<\_ACEOF
4230 #define _ALL_SOURCE 1
4231 _ACEOF
4232
4233 else
4234   { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236 fi
4237 rm -f conftest*
4238
4239
4240 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4242 if test "${ac_cv_header_stdc+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 #include <stdlib.h>
4252 #include <stdarg.h>
4253 #include <string.h>
4254 #include <float.h>
4255
4256 int
4257 main ()
4258 {
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (ac_try="$ac_compile"
4266 case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271   (eval "$ac_compile") 2>conftest.er1
4272   ac_status=$?
4273   grep -v '^ *+' conftest.er1 >conftest.err
4274   rm -f conftest.er1
4275   cat conftest.err >&5
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } && {
4278          test -z "$ac_c_werror_flag" ||
4279          test ! -s conftest.err
4280        } && test -s conftest.$ac_objext; then
4281   ac_cv_header_stdc=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286         ac_cv_header_stdc=no
4287 fi
4288
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290
4291 if test $ac_cv_header_stdc = yes; then
4292   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 #include <string.h>
4300
4301 _ACEOF
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303   $EGREP "memchr" >/dev/null 2>&1; then
4304   :
4305 else
4306   ac_cv_header_stdc=no
4307 fi
4308 rm -f conftest*
4309
4310 fi
4311
4312 if test $ac_cv_header_stdc = yes; then
4313   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314   cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 #include <stdlib.h>
4321
4322 _ACEOF
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324   $EGREP "free" >/dev/null 2>&1; then
4325   :
4326 else
4327   ac_cv_header_stdc=no
4328 fi
4329 rm -f conftest*
4330
4331 fi
4332
4333 if test $ac_cv_header_stdc = yes; then
4334   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335   if test "$cross_compiling" = yes; then
4336   :
4337 else
4338   cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344 #include <ctype.h>
4345 #include <stdlib.h>
4346 #if ((' ' & 0x0FF) == 0x020)
4347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349 #else
4350 # define ISLOWER(c) \
4351                    (('a' <= (c) && (c) <= 'i') \
4352                      || ('j' <= (c) && (c) <= 'r') \
4353                      || ('s' <= (c) && (c) <= 'z'))
4354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355 #endif
4356
4357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 int
4359 main ()
4360 {
4361   int i;
4362   for (i = 0; i < 256; i++)
4363     if (XOR (islower (i), ISLOWER (i))
4364         || toupper (i) != TOUPPER (i))
4365       return 2;
4366   return 0;
4367 }
4368 _ACEOF
4369 rm -f conftest$ac_exeext
4370 if { (ac_try="$ac_link"
4371 case "(($ac_try" in
4372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373   *) ac_try_echo=$ac_try;;
4374 esac
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376   (eval "$ac_link") 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4380   { (case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385   (eval "$ac_try") 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   :
4390 else
4391   echo "$as_me: program exited with status $ac_status" >&5
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 ( exit $ac_status )
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4399 fi
4400
4401
4402 fi
4403 fi
4404 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4405 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4406 if test $ac_cv_header_stdc = yes; then
4407
4408 cat >>confdefs.h <<\_ACEOF
4409 #define STDC_HEADERS 1
4410 _ACEOF
4411
4412 fi
4413
4414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425                   inttypes.h stdint.h unistd.h
4426 do
4427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440
4441 #include <$ac_header>
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450   (eval "$ac_compile") 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } && {
4457          test -z "$ac_c_werror_flag" ||
4458          test ! -s conftest.err
4459        } && test -s conftest.$ac_objext; then
4460   eval "$as_ac_Header=yes"
4461 else
4462   echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465         eval "$as_ac_Header=no"
4466 fi
4467
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 fi
4470 ac_res=`eval echo '${'$as_ac_Header'}'`
4471                { echo "$as_me:$LINENO: result: $ac_res" >&5
4472 echo "${ECHO_T}$ac_res" >&6; }
4473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4474   cat >>confdefs.h <<_ACEOF
4475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 _ACEOF
4477
4478 fi
4479
4480 done
4481
4482
4483 if test "${ac_cv_header_minix_config_h+set}" = set; then
4484   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4485 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4486 if test "${ac_cv_header_minix_config_h+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 fi
4489 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4490 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4491 else
4492   # Is the header compilable?
4493 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4494 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4495 cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h.  */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h.  */
4501 $ac_includes_default
4502 #include <minix/config.h>
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (ac_try="$ac_compile"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_compile") 2>conftest.er1
4512   ac_status=$?
4513   grep -v '^ *+' conftest.er1 >conftest.err
4514   rm -f conftest.er1
4515   cat conftest.err >&5
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); } && {
4518          test -z "$ac_c_werror_flag" ||
4519          test ! -s conftest.err
4520        } && test -s conftest.$ac_objext; then
4521   ac_header_compiler=yes
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526         ac_header_compiler=no
4527 fi
4528
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4531 echo "${ECHO_T}$ac_header_compiler" >&6; }
4532
4533 # Is the header present?
4534 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4535 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h.  */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h.  */
4542 #include <minix/config.h>
4543 _ACEOF
4544 if { (ac_try="$ac_cpp conftest.$ac_ext"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } >/dev/null && {
4557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4558          test ! -s conftest.err
4559        }; then
4560   ac_header_preproc=yes
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565   ac_header_preproc=no
4566 fi
4567
4568 rm -f conftest.err conftest.$ac_ext
4569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4570 echo "${ECHO_T}$ac_header_preproc" >&6; }
4571
4572 # So?  What about this header?
4573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4574   yes:no: )
4575     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4576 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4577     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4578 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4579     ac_header_preproc=yes
4580     ;;
4581   no:yes:* )
4582     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4583 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4584     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4585 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4586     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4587 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4588     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4589 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4590     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4591 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4592     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4593 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4594     ( cat <<\_ASBOX
4595 ## ----------------------------------- ##
4596 ## Report this to arthur@ch.tudelft.nl ##
4597 ## ----------------------------------- ##
4598 _ASBOX
4599      ) | sed "s/^/$as_me: WARNING:     /" >&2
4600     ;;
4601 esac
4602 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4603 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4604 if test "${ac_cv_header_minix_config_h+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   ac_cv_header_minix_config_h=$ac_header_preproc
4608 fi
4609 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4610 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4611
4612 fi
4613 if test $ac_cv_header_minix_config_h = yes; then
4614   MINIX=yes
4615 else
4616   MINIX=
4617 fi
4618
4619
4620 if test "$MINIX" = yes; then
4621
4622 cat >>confdefs.h <<\_ACEOF
4623 #define _POSIX_SOURCE 1
4624 _ACEOF
4625
4626
4627 cat >>confdefs.h <<\_ACEOF
4628 #define _POSIX_1_SOURCE 2
4629 _ACEOF
4630
4631
4632 cat >>confdefs.h <<\_ACEOF
4633 #define _MINIX 1
4634 _ACEOF
4635
4636 fi
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4649 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4650 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h.  */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h.  */
4659
4660 #         define __EXTENSIONS__ 1
4661           $ac_includes_default
4662 int
4663 main ()
4664 {
4665
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (ac_try="$ac_compile"
4672 case "(($ac_try" in
4673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674   *) ac_try_echo=$ac_try;;
4675 esac
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677   (eval "$ac_compile") 2>conftest.er1
4678   ac_status=$?
4679   grep -v '^ *+' conftest.er1 >conftest.err
4680   rm -f conftest.er1
4681   cat conftest.err >&5
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); } && {
4684          test -z "$ac_c_werror_flag" ||
4685          test ! -s conftest.err
4686        } && test -s conftest.$ac_objext; then
4687   ac_cv_safe_to_define___extensions__=yes
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692         ac_cv_safe_to_define___extensions__=no
4693 fi
4694
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 fi
4697 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4698 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4699   test $ac_cv_safe_to_define___extensions__ = yes &&
4700     cat >>confdefs.h <<\_ACEOF
4701 #define __EXTENSIONS__ 1
4702 _ACEOF
4703
4704   cat >>confdefs.h <<\_ACEOF
4705 #define _POSIX_PTHREAD_SEMANTICS 1
4706 _ACEOF
4707
4708   cat >>confdefs.h <<\_ACEOF
4709 #define _TANDEM_SOURCE 1
4710 _ACEOF
4711
4712
4713
4714 # checks for tool to convert docbook to man
4715 for ac_prog in docbook2x-man
4716 do
4717   # Extract the first word of "$ac_prog", so it can be a program name with args.
4718 set dummy $ac_prog; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   case $DOCBOOK2X_MAN in
4725   [\\/]* | ?:[\\/]*)
4726   ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path.
4727   ;;
4728   *)
4729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734   for ac_exec_ext in '' $ac_executable_extensions; do
4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736     ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext"
4737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741 done
4742 IFS=$as_save_IFS
4743
4744   ;;
4745 esac
4746 fi
4747 DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN
4748 if test -n "$DOCBOOK2X_MAN"; then
4749   { echo "$as_me:$LINENO: result: $DOCBOOK2X_MAN" >&5
4750 echo "${ECHO_T}$DOCBOOK2X_MAN" >&6; }
4751 else
4752   { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 fi
4755
4756
4757   test -n "$DOCBOOK2X_MAN" && break
4758 done
4759
4760 if test "x${DOCBOOK2X_MAN}" = x
4761 then
4762   { echo "$as_me:$LINENO: WARNING: docbook2x-man not found: not generating man pages" >&5
4763 echo "$as_me: WARNING: docbook2x-man not found: not generating man pages" >&2;}
4764 fi
4765  if test "x${DOCBOOK2X_MAN}" != x; then
4766   GENMAN_TRUE=
4767   GENMAN_FALSE='#'
4768 else
4769   GENMAN_TRUE='#'
4770   GENMAN_FALSE=
4771 fi
4772
4773
4774 # start with default options
4775 nss_ldap_so_LIBS=
4776 nslcd_LIBS=
4777
4778 # check for debugging options
4779 # Check whether --enable-debug was given.
4780 if test "${enable_debug+set}" = set; then
4781   enableval=$enable_debug; if test "x$enableval" != "xno" ; then CFLAGS="-g -DDEBUG $CFLAGS" ; fi
4782 fi
4783
4784
4785 DESIRED_CFLAGS=""
4786
4787 # check for extra compiler warnings
4788 # Check whether --enable-warnings was given.
4789 if test "${enable_warnings+set}" = set; then
4790   enableval=$enable_warnings; if test "x$enableval" != "no"
4791                then
4792                  CFLAGS="$CFLAGS -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations -Wunused -Wformat=2 -Wswitch-default -Wswitch-enum -Wfloat-equal -Wbad-function-cast -Wunreachable-code -Wredundant-decls"
4793                  DESIRED_CFLAGS="$DESIRED_CFLAGS -Wextra -Wdeclaration-after-statement -Werror-implicit-function-declaration"
4794                fi
4795 fi
4796
4797
4798 test_gcc_flag() {
4799   cat >conftest.$ac_ext <<_ACEOF
4800 int main() {}
4801 _ACEOF
4802   $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
4803   ret=$?
4804   rm -f conftest.o
4805   return $ret
4806 }
4807
4808 for flag in $DESIRED_CFLAGS
4809 do
4810   { echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5
4811 echo $ECHO_N "checking whether $CC accepts $flag... $ECHO_C" >&6; }
4812   if test_gcc_flag $flag
4813   then
4814     CFLAGS="$CFLAGS $flag"
4815     { echo "$as_me:$LINENO: result: yes" >&5
4816 echo "${ECHO_T}yes" >&6; }
4817   else
4818     { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4820   fi
4821 done
4822
4823
4824 # Check whether --with-ldap-lib was given.
4825 if test "${with_ldap_lib+set}" = set; then
4826   withval=$with_ldap_lib;
4827 fi
4828
4829 if test -z "$with_ldap_lib"
4830 then
4831   with_ldap_lib=auto
4832 fi
4833
4834
4835 # Check whether --with-ldap-conf-file was given.
4836 if test "${with_ldap_conf_file+set}" = set; then
4837   withval=$with_ldap_conf_file;  NSS_LDAP_PATH_CONF="$with_ldap_conf_file"
4838 else
4839    NSS_LDAP_PATH_CONF="/etc/nss-ldapd.conf"
4840 fi
4841
4842
4843 cat >>confdefs.h <<_ACEOF
4844 #define NSS_LDAP_PATH_CONF "$NSS_LDAP_PATH_CONF"
4845 _ACEOF
4846
4847
4848
4849
4850 # Check whether --with-nslcd-pidfile was given.
4851 if test "${with_nslcd_pidfile+set}" = set; then
4852   withval=$with_nslcd_pidfile;  NSLCD_PIDFILE="$with_nslcd_pidfile"
4853 else
4854    NSLCD_PIDFILE="/var/run/nslcd/nslcd.pid"
4855 fi
4856
4857
4858 cat >>confdefs.h <<_ACEOF
4859 #define NSLCD_PIDFILE "$NSLCD_PIDFILE"
4860 _ACEOF
4861
4862
4863
4864
4865 # Check whether --with-nslcd-socket was given.
4866 if test "${with_nslcd_socket+set}" = set; then
4867   withval=$with_nslcd_socket;  NSLCD_SOCKET="$with_nslcd_socket"
4868 else
4869    NSLCD_SOCKET="/var/run/nslcd/socket"
4870 fi
4871
4872
4873 cat >>confdefs.h <<_ACEOF
4874 #define NSLCD_SOCKET "$NSLCD_SOCKET"
4875 _ACEOF
4876
4877
4878
4879 # checks for availability of header files
4880
4881 for ac_header in lber.h
4882 do
4883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 fi
4890 ac_res=`eval echo '${'$as_ac_Header'}'`
4891                { echo "$as_me:$LINENO: result: $ac_res" >&5
4892 echo "${ECHO_T}$ac_res" >&6; }
4893 else
4894   # Is the header compilable?
4895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903 $ac_includes_default
4904 #include <$ac_header>
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (ac_try="$ac_compile"
4908 case "(($ac_try" in
4909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910   *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913   (eval "$ac_compile") 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } && {
4920          test -z "$ac_c_werror_flag" ||
4921          test ! -s conftest.err
4922        } && test -s conftest.$ac_objext; then
4923   ac_header_compiler=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928         ac_header_compiler=no
4929 fi
4930
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4933 echo "${ECHO_T}$ac_header_compiler" >&6; }
4934
4935 # Is the header present?
4936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h.  */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h.  */
4944 #include <$ac_header>
4945 _ACEOF
4946 if { (ac_try="$ac_cpp conftest.$ac_ext"
4947 case "(($ac_try" in
4948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949   *) ac_try_echo=$ac_try;;
4950 esac
4951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } >/dev/null && {
4959          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4960          test ! -s conftest.err
4961        }; then
4962   ac_header_preproc=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967   ac_header_preproc=no
4968 fi
4969
4970 rm -f conftest.err conftest.$ac_ext
4971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4972 echo "${ECHO_T}$ac_header_preproc" >&6; }
4973
4974 # So?  What about this header?
4975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4976   yes:no: )
4977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4981     ac_header_preproc=yes
4982     ;;
4983   no:yes:* )
4984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4996     ( cat <<\_ASBOX
4997 ## ----------------------------------- ##
4998 ## Report this to arthur@ch.tudelft.nl ##
4999 ## ----------------------------------- ##
5000 _ASBOX
5001      ) | sed "s/^/$as_me: WARNING:     /" >&2
5002     ;;
5003 esac
5004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   eval "$as_ac_Header=\$ac_header_preproc"
5010 fi
5011 ac_res=`eval echo '${'$as_ac_Header'}'`
5012                { echo "$as_me:$LINENO: result: $ac_res" >&5
5013 echo "${ECHO_T}$ac_res" >&6; }
5014
5015 fi
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017   cat >>confdefs.h <<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5019 _ACEOF
5020
5021 fi
5022
5023 done
5024
5025
5026 for ac_header in ldap.h
5027 do
5028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h.  */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h.  */
5040
5041     #if HAVE_LBER_H
5042     #include <lber.h>
5043     #endif
5044
5045
5046 #include <$ac_header>
5047 _ACEOF
5048 rm -f conftest.$ac_objext
5049 if { (ac_try="$ac_compile"
5050 case "(($ac_try" in
5051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052   *) ac_try_echo=$ac_try;;
5053 esac
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055   (eval "$ac_compile") 2>conftest.er1
5056   ac_status=$?
5057   grep -v '^ *+' conftest.er1 >conftest.err
5058   rm -f conftest.er1
5059   cat conftest.err >&5
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); } && {
5062          test -z "$ac_c_werror_flag" ||
5063          test ! -s conftest.err
5064        } && test -s conftest.$ac_objext; then
5065   eval "$as_ac_Header=yes"
5066 else
5067   echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070         eval "$as_ac_Header=no"
5071 fi
5072
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 fi
5075 ac_res=`eval echo '${'$as_ac_Header'}'`
5076                { echo "$as_me:$LINENO: result: $ac_res" >&5
5077 echo "${ECHO_T}$ac_res" >&6; }
5078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5079   cat >>confdefs.h <<_ACEOF
5080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5081 _ACEOF
5082
5083 else
5084   { { echo "$as_me:$LINENO: error: could not locate <ldap.h>" >&5
5085 echo "$as_me: error: could not locate <ldap.h>" >&2;}
5086    { (exit 1); exit 1; }; }
5087 fi
5088
5089 done
5090
5091
5092 for ac_header in ldap_ssl.h
5093 do
5094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 fi
5101 ac_res=`eval echo '${'$as_ac_Header'}'`
5102                { echo "$as_me:$LINENO: result: $ac_res" >&5
5103 echo "${ECHO_T}$ac_res" >&6; }
5104 else
5105   # Is the header compilable?
5106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114 $ac_includes_default
5115 #include <$ac_header>
5116 _ACEOF
5117 rm -f conftest.$ac_objext
5118 if { (ac_try="$ac_compile"
5119 case "(($ac_try" in
5120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121   *) ac_try_echo=$ac_try;;
5122 esac
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124   (eval "$ac_compile") 2>conftest.er1
5125   ac_status=$?
5126   grep -v '^ *+' conftest.er1 >conftest.err
5127   rm -f conftest.er1
5128   cat conftest.err >&5
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } && {
5131          test -z "$ac_c_werror_flag" ||
5132          test ! -s conftest.err
5133        } && test -s conftest.$ac_objext; then
5134   ac_header_compiler=yes
5135 else
5136   echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139         ac_header_compiler=no
5140 fi
5141
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5144 echo "${ECHO_T}$ac_header_compiler" >&6; }
5145
5146 # Is the header present?
5147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 #include <$ac_header>
5156 _ACEOF
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } >/dev/null && {
5170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171          test ! -s conftest.err
5172        }; then
5173   ac_header_preproc=yes
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178   ac_header_preproc=no
5179 fi
5180
5181 rm -f conftest.err conftest.$ac_ext
5182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5183 echo "${ECHO_T}$ac_header_preproc" >&6; }
5184
5185 # So?  What about this header?
5186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5187   yes:no: )
5188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5192     ac_header_preproc=yes
5193     ;;
5194   no:yes:* )
5195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5207     ( cat <<\_ASBOX
5208 ## ----------------------------------- ##
5209 ## Report this to arthur@ch.tudelft.nl ##
5210 ## ----------------------------------- ##
5211 _ASBOX
5212      ) | sed "s/^/$as_me: WARNING:     /" >&2
5213     ;;
5214 esac
5215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   eval "$as_ac_Header=\$ac_header_preproc"
5221 fi
5222 ac_res=`eval echo '${'$as_ac_Header'}'`
5223                { echo "$as_me:$LINENO: result: $ac_res" >&5
5224 echo "${ECHO_T}$ac_res" >&6; }
5225
5226 fi
5227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5228   cat >>confdefs.h <<_ACEOF
5229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5230 _ACEOF
5231
5232 fi
5233
5234 done
5235
5236
5237 for ac_header in nss.h
5238 do
5239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 fi
5246 ac_res=`eval echo '${'$as_ac_Header'}'`
5247                { echo "$as_me:$LINENO: result: $ac_res" >&5
5248 echo "${ECHO_T}$ac_res" >&6; }
5249 else
5250   # Is the header compilable?
5251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 $ac_includes_default
5260 #include <$ac_header>
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_compile") 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } && {
5276          test -z "$ac_c_werror_flag" ||
5277          test ! -s conftest.err
5278        } && test -s conftest.$ac_objext; then
5279   ac_header_compiler=yes
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284         ac_header_compiler=no
5285 fi
5286
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5289 echo "${ECHO_T}$ac_header_compiler" >&6; }
5290
5291 # Is the header present?
5292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h.  */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h.  */
5300 #include <$ac_header>
5301 _ACEOF
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309   ac_status=$?
5310   grep -v '^ *+' conftest.er1 >conftest.err
5311   rm -f conftest.er1
5312   cat conftest.err >&5
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } >/dev/null && {
5315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5316          test ! -s conftest.err
5317        }; then
5318   ac_header_preproc=yes
5319 else
5320   echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323   ac_header_preproc=no
5324 fi
5325
5326 rm -f conftest.err conftest.$ac_ext
5327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5328 echo "${ECHO_T}$ac_header_preproc" >&6; }
5329
5330 # So?  What about this header?
5331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5332   yes:no: )
5333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5337     ac_header_preproc=yes
5338     ;;
5339   no:yes:* )
5340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5352     ( cat <<\_ASBOX
5353 ## ----------------------------------- ##
5354 ## Report this to arthur@ch.tudelft.nl ##
5355 ## ----------------------------------- ##
5356 _ASBOX
5357      ) | sed "s/^/$as_me: WARNING:     /" >&2
5358     ;;
5359 esac
5360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   eval "$as_ac_Header=\$ac_header_preproc"
5366 fi
5367 ac_res=`eval echo '${'$as_ac_Header'}'`
5368                { echo "$as_me:$LINENO: result: $ac_res" >&5
5369 echo "${ECHO_T}$ac_res" >&6; }
5370
5371 fi
5372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5373   cat >>confdefs.h <<_ACEOF
5374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375 _ACEOF
5376
5377 fi
5378
5379 done
5380
5381
5382 for ac_header in pthread.h
5383 do
5384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 fi
5391 ac_res=`eval echo '${'$as_ac_Header'}'`
5392                { echo "$as_me:$LINENO: result: $ac_res" >&5
5393 echo "${ECHO_T}$ac_res" >&6; }
5394 else
5395   # Is the header compilable?
5396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 $ac_includes_default
5405 #include <$ac_header>
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5409 case "(($ac_try" in
5410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411   *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414   (eval "$ac_compile") 2>conftest.er1
5415   ac_status=$?
5416   grep -v '^ *+' conftest.er1 >conftest.err
5417   rm -f conftest.er1
5418   cat conftest.err >&5
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } && {
5421          test -z "$ac_c_werror_flag" ||
5422          test ! -s conftest.err
5423        } && test -s conftest.$ac_objext; then
5424   ac_header_compiler=yes
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429         ac_header_compiler=no
5430 fi
5431
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5434 echo "${ECHO_T}$ac_header_compiler" >&6; }
5435
5436 # Is the header present?
5437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5439 cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445 #include <$ac_header>
5446 _ACEOF
5447 if { (ac_try="$ac_cpp conftest.$ac_ext"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5454   ac_status=$?
5455   grep -v '^ *+' conftest.er1 >conftest.err
5456   rm -f conftest.er1
5457   cat conftest.err >&5
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } >/dev/null && {
5460          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5461          test ! -s conftest.err
5462        }; then
5463   ac_header_preproc=yes
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468   ac_header_preproc=no
5469 fi
5470
5471 rm -f conftest.err conftest.$ac_ext
5472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473 echo "${ECHO_T}$ac_header_preproc" >&6; }
5474
5475 # So?  What about this header?
5476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5477   yes:no: )
5478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5482     ac_header_preproc=yes
5483     ;;
5484   no:yes:* )
5485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5497     ( cat <<\_ASBOX
5498 ## ----------------------------------- ##
5499 ## Report this to arthur@ch.tudelft.nl ##
5500 ## ----------------------------------- ##
5501 _ASBOX
5502      ) | sed "s/^/$as_me: WARNING:     /" >&2
5503     ;;
5504 esac
5505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   eval "$as_ac_Header=\$ac_header_preproc"
5511 fi
5512 ac_res=`eval echo '${'$as_ac_Header'}'`
5513                { echo "$as_me:$LINENO: result: $ac_res" >&5
5514 echo "${ECHO_T}$ac_res" >&6; }
5515
5516 fi
5517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5518   cat >>confdefs.h <<_ACEOF
5519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5520 _ACEOF
5521
5522 fi
5523
5524 done
5525
5526
5527 for ac_header in shadow.h
5528 do
5529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5531   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 fi
5536 ac_res=`eval echo '${'$as_ac_Header'}'`
5537                { echo "$as_me:$LINENO: result: $ac_res" >&5
5538 echo "${ECHO_T}$ac_res" >&6; }
5539 else
5540   # Is the header compilable?
5541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h.  */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h.  */
5549 $ac_includes_default
5550 #include <$ac_header>
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (ac_try="$ac_compile"
5554 case "(($ac_try" in
5555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556   *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559   (eval "$ac_compile") 2>conftest.er1
5560   ac_status=$?
5561   grep -v '^ *+' conftest.er1 >conftest.err
5562   rm -f conftest.er1
5563   cat conftest.err >&5
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } && {
5566          test -z "$ac_c_werror_flag" ||
5567          test ! -s conftest.err
5568        } && test -s conftest.$ac_objext; then
5569   ac_header_compiler=yes
5570 else
5571   echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574         ac_header_compiler=no
5575 fi
5576
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5579 echo "${ECHO_T}$ac_header_compiler" >&6; }
5580
5581 # Is the header present?
5582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h.  */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h.  */
5590 #include <$ac_header>
5591 _ACEOF
5592 if { (ac_try="$ac_cpp conftest.$ac_ext"
5593 case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } >/dev/null && {
5605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5606          test ! -s conftest.err
5607        }; then
5608   ac_header_preproc=yes
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613   ac_header_preproc=no
5614 fi
5615
5616 rm -f conftest.err conftest.$ac_ext
5617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5618 echo "${ECHO_T}$ac_header_preproc" >&6; }
5619
5620 # So?  What about this header?
5621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5622   yes:no: )
5623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5627     ac_header_preproc=yes
5628     ;;
5629   no:yes:* )
5630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5642     ( cat <<\_ASBOX
5643 ## ----------------------------------- ##
5644 ## Report this to arthur@ch.tudelft.nl ##
5645 ## ----------------------------------- ##
5646 _ASBOX
5647      ) | sed "s/^/$as_me: WARNING:     /" >&2
5648     ;;
5649 esac
5650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   eval "$as_ac_Header=\$ac_header_preproc"
5656 fi
5657 ac_res=`eval echo '${'$as_ac_Header'}'`
5658                { echo "$as_me:$LINENO: result: $ac_res" >&5
5659 echo "${ECHO_T}$ac_res" >&6; }
5660
5661 fi
5662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5663   cat >>confdefs.h <<_ACEOF
5664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5665 _ACEOF
5666
5667 fi
5668
5669 done
5670
5671
5672 for ac_header in aliases.h
5673 do
5674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5676   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 fi
5681 ac_res=`eval echo '${'$as_ac_Header'}'`
5682                { echo "$as_me:$LINENO: result: $ac_res" >&5
5683 echo "${ECHO_T}$ac_res" >&6; }
5684 else
5685   # Is the header compilable?
5686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694 $ac_includes_default
5695 #include <$ac_header>
5696 _ACEOF
5697 rm -f conftest.$ac_objext
5698 if { (ac_try="$ac_compile"
5699 case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_compile") 2>conftest.er1
5705   ac_status=$?
5706   grep -v '^ *+' conftest.er1 >conftest.err
5707   rm -f conftest.er1
5708   cat conftest.err >&5
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); } && {
5711          test -z "$ac_c_werror_flag" ||
5712          test ! -s conftest.err
5713        } && test -s conftest.$ac_objext; then
5714   ac_header_compiler=yes
5715 else
5716   echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719         ac_header_compiler=no
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5724 echo "${ECHO_T}$ac_header_compiler" >&6; }
5725
5726 # Is the header present?
5727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 #include <$ac_header>
5736 _ACEOF
5737 if { (ac_try="$ac_cpp conftest.$ac_ext"
5738 case "(($ac_try" in
5739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740   *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5744   ac_status=$?
5745   grep -v '^ *+' conftest.er1 >conftest.err
5746   rm -f conftest.er1
5747   cat conftest.err >&5
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); } >/dev/null && {
5750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751          test ! -s conftest.err
5752        }; then
5753   ac_header_preproc=yes
5754 else
5755   echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758   ac_header_preproc=no
5759 fi
5760
5761 rm -f conftest.err conftest.$ac_ext
5762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5763 echo "${ECHO_T}$ac_header_preproc" >&6; }
5764
5765 # So?  What about this header?
5766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5767   yes:no: )
5768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5772     ac_header_preproc=yes
5773     ;;
5774   no:yes:* )
5775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5787     ( cat <<\_ASBOX
5788 ## ----------------------------------- ##
5789 ## Report this to arthur@ch.tudelft.nl ##
5790 ## ----------------------------------- ##
5791 _ASBOX
5792      ) | sed "s/^/$as_me: WARNING:     /" >&2
5793     ;;
5794 esac
5795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   eval "$as_ac_Header=\$ac_header_preproc"
5801 fi
5802 ac_res=`eval echo '${'$as_ac_Header'}'`
5803                { echo "$as_me:$LINENO: result: $ac_res" >&5
5804 echo "${ECHO_T}$ac_res" >&6; }
5805
5806 fi
5807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5808   cat >>confdefs.h <<_ACEOF
5809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5810 _ACEOF
5811
5812 fi
5813
5814 done
5815
5816
5817 for ac_header in netinet/ether.h
5818 do
5819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 fi
5826 ac_res=`eval echo '${'$as_ac_Header'}'`
5827                { echo "$as_me:$LINENO: result: $ac_res" >&5
5828 echo "${ECHO_T}$ac_res" >&6; }
5829 else
5830   # Is the header compilable?
5831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839 $ac_includes_default
5840 #include <$ac_header>
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5844 case "(($ac_try" in
5845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846   *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849   (eval "$ac_compile") 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } && {
5856          test -z "$ac_c_werror_flag" ||
5857          test ! -s conftest.err
5858        } && test -s conftest.$ac_objext; then
5859   ac_header_compiler=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864         ac_header_compiler=no
5865 fi
5866
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5869 echo "${ECHO_T}$ac_header_compiler" >&6; }
5870
5871 # Is the header present?
5872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h.  */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h.  */
5880 #include <$ac_header>
5881 _ACEOF
5882 if { (ac_try="$ac_cpp conftest.$ac_ext"
5883 case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5889   ac_status=$?
5890   grep -v '^ *+' conftest.er1 >conftest.err
5891   rm -f conftest.er1
5892   cat conftest.err >&5
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); } >/dev/null && {
5895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5896          test ! -s conftest.err
5897        }; then
5898   ac_header_preproc=yes
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903   ac_header_preproc=no
5904 fi
5905
5906 rm -f conftest.err conftest.$ac_ext
5907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5908 echo "${ECHO_T}$ac_header_preproc" >&6; }
5909
5910 # So?  What about this header?
5911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5912   yes:no: )
5913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5917     ac_header_preproc=yes
5918     ;;
5919   no:yes:* )
5920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5932     ( cat <<\_ASBOX
5933 ## ----------------------------------- ##
5934 ## Report this to arthur@ch.tudelft.nl ##
5935 ## ----------------------------------- ##
5936 _ASBOX
5937      ) | sed "s/^/$as_me: WARNING:     /" >&2
5938     ;;
5939 esac
5940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   eval "$as_ac_Header=\$ac_header_preproc"
5946 fi
5947 ac_res=`eval echo '${'$as_ac_Header'}'`
5948                { echo "$as_me:$LINENO: result: $ac_res" >&5
5949 echo "${ECHO_T}$ac_res" >&6; }
5950
5951 fi
5952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5953   cat >>confdefs.h <<_ACEOF
5954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5955 _ACEOF
5956
5957 fi
5958
5959 done
5960
5961
5962 for ac_header in ctype.h
5963 do
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5966   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 fi
5971 ac_res=`eval echo '${'$as_ac_Header'}'`
5972                { echo "$as_me:$LINENO: result: $ac_res" >&5
5973 echo "${ECHO_T}$ac_res" >&6; }
5974 else
5975   # Is the header compilable?
5976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h.  */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h.  */
5984 $ac_includes_default
5985 #include <$ac_header>
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5989 case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_compile") 2>conftest.er1
5995   ac_status=$?
5996   grep -v '^ *+' conftest.er1 >conftest.err
5997   rm -f conftest.er1
5998   cat conftest.err >&5
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } && {
6001          test -z "$ac_c_werror_flag" ||
6002          test ! -s conftest.err
6003        } && test -s conftest.$ac_objext; then
6004   ac_header_compiler=yes
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009         ac_header_compiler=no
6010 fi
6011
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6014 echo "${ECHO_T}$ac_header_compiler" >&6; }
6015
6016 # Is the header present?
6017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 #include <$ac_header>
6026 _ACEOF
6027 if { (ac_try="$ac_cpp conftest.$ac_ext"
6028 case "(($ac_try" in
6029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030   *) ac_try_echo=$ac_try;;
6031 esac
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6034   ac_status=$?
6035   grep -v '^ *+' conftest.er1 >conftest.err
6036   rm -f conftest.er1
6037   cat conftest.err >&5
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); } >/dev/null && {
6040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6041          test ! -s conftest.err
6042        }; then
6043   ac_header_preproc=yes
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048   ac_header_preproc=no
6049 fi
6050
6051 rm -f conftest.err conftest.$ac_ext
6052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6053 echo "${ECHO_T}$ac_header_preproc" >&6; }
6054
6055 # So?  What about this header?
6056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6057   yes:no: )
6058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6062     ac_header_preproc=yes
6063     ;;
6064   no:yes:* )
6065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6077     ( cat <<\_ASBOX
6078 ## ----------------------------------- ##
6079 ## Report this to arthur@ch.tudelft.nl ##
6080 ## ----------------------------------- ##
6081 _ASBOX
6082      ) | sed "s/^/$as_me: WARNING:     /" >&2
6083     ;;
6084 esac
6085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   eval "$as_ac_Header=\$ac_header_preproc"
6091 fi
6092 ac_res=`eval echo '${'$as_ac_Header'}'`
6093                { echo "$as_me:$LINENO: result: $ac_res" >&5
6094 echo "${ECHO_T}$ac_res" >&6; }
6095
6096 fi
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098   cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 _ACEOF
6101
6102 fi
6103
6104 done
6105
6106
6107 for ac_header in getopt.h
6108 do
6109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 fi
6116 ac_res=`eval echo '${'$as_ac_Header'}'`
6117                { echo "$as_me:$LINENO: result: $ac_res" >&5
6118 echo "${ECHO_T}$ac_res" >&6; }
6119 else
6120   # Is the header compilable?
6121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129 $ac_includes_default
6130 #include <$ac_header>
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6134 case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139   (eval "$ac_compile") 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } && {
6146          test -z "$ac_c_werror_flag" ||
6147          test ! -s conftest.err
6148        } && test -s conftest.$ac_objext; then
6149   ac_header_compiler=yes
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154         ac_header_compiler=no
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6159 echo "${ECHO_T}$ac_header_compiler" >&6; }
6160
6161 # Is the header present?
6162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170 #include <$ac_header>
6171 _ACEOF
6172 if { (ac_try="$ac_cpp conftest.$ac_ext"
6173 case "(($ac_try" in
6174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175   *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } >/dev/null && {
6185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6186          test ! -s conftest.err
6187        }; then
6188   ac_header_preproc=yes
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193   ac_header_preproc=no
6194 fi
6195
6196 rm -f conftest.err conftest.$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6198 echo "${ECHO_T}$ac_header_preproc" >&6; }
6199
6200 # So?  What about this header?
6201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6202   yes:no: )
6203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6207     ac_header_preproc=yes
6208     ;;
6209   no:yes:* )
6210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6222     ( cat <<\_ASBOX
6223 ## ----------------------------------- ##
6224 ## Report this to arthur@ch.tudelft.nl ##
6225 ## ----------------------------------- ##
6226 _ASBOX
6227      ) | sed "s/^/$as_me: WARNING:     /" >&2
6228     ;;
6229 esac
6230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   eval "$as_ac_Header=\$ac_header_preproc"
6236 fi
6237 ac_res=`eval echo '${'$as_ac_Header'}'`
6238                { echo "$as_me:$LINENO: result: $ac_res" >&5
6239 echo "${ECHO_T}$ac_res" >&6; }
6240
6241 fi
6242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6243   cat >>confdefs.h <<_ACEOF
6244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6245 _ACEOF
6246
6247 fi
6248
6249 done
6250
6251
6252 for ac_header in sys/un.h
6253 do
6254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 fi
6261 ac_res=`eval echo '${'$as_ac_Header'}'`
6262                { echo "$as_me:$LINENO: result: $ac_res" >&5
6263 echo "${ECHO_T}$ac_res" >&6; }
6264 else
6265   # Is the header compilable?
6266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274 $ac_includes_default
6275 #include <$ac_header>
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_compile") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_c_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest.$ac_objext; then
6294   ac_header_compiler=yes
6295 else
6296   echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299         ac_header_compiler=no
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6304 echo "${ECHO_T}$ac_header_compiler" >&6; }
6305
6306 # Is the header present?
6307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6309 cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 #include <$ac_header>
6316 _ACEOF
6317 if { (ac_try="$ac_cpp conftest.$ac_ext"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6324   ac_status=$?
6325   grep -v '^ *+' conftest.er1 >conftest.err
6326   rm -f conftest.er1
6327   cat conftest.err >&5
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } >/dev/null && {
6330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6331          test ! -s conftest.err
6332        }; then
6333   ac_header_preproc=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338   ac_header_preproc=no
6339 fi
6340
6341 rm -f conftest.err conftest.$ac_ext
6342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343 echo "${ECHO_T}$ac_header_preproc" >&6; }
6344
6345 # So?  What about this header?
6346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6347   yes:no: )
6348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352     ac_header_preproc=yes
6353     ;;
6354   no:yes:* )
6355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367     ( cat <<\_ASBOX
6368 ## ----------------------------------- ##
6369 ## Report this to arthur@ch.tudelft.nl ##
6370 ## ----------------------------------- ##
6371 _ASBOX
6372      ) | sed "s/^/$as_me: WARNING:     /" >&2
6373     ;;
6374 esac
6375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   eval "$as_ac_Header=\$ac_header_preproc"
6381 fi
6382 ac_res=`eval echo '${'$as_ac_Header'}'`
6383                { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6385
6386 fi
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388   cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 _ACEOF
6391
6392 fi
6393
6394 done
6395
6396
6397
6398 for ac_header in sasl.h sasl/sasl.h
6399 do
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6402   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 fi
6407 ac_res=`eval echo '${'$as_ac_Header'}'`
6408                { echo "$as_me:$LINENO: result: $ac_res" >&5
6409 echo "${ECHO_T}$ac_res" >&6; }
6410 else
6411   # Is the header compilable?
6412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6414 cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420 $ac_includes_default
6421 #include <$ac_header>
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427   *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430   (eval "$ac_compile") 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } && {
6437          test -z "$ac_c_werror_flag" ||
6438          test ! -s conftest.err
6439        } && test -s conftest.$ac_objext; then
6440   ac_header_compiler=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445         ac_header_compiler=no
6446 fi
6447
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450 echo "${ECHO_T}$ac_header_compiler" >&6; }
6451
6452 # Is the header present?
6453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h.  */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h.  */
6461 #include <$ac_header>
6462 _ACEOF
6463 if { (ac_try="$ac_cpp conftest.$ac_ext"
6464 case "(($ac_try" in
6465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466   *) ac_try_echo=$ac_try;;
6467 esac
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6470   ac_status=$?
6471   grep -v '^ *+' conftest.er1 >conftest.err
6472   rm -f conftest.er1
6473   cat conftest.err >&5
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } >/dev/null && {
6476          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6477          test ! -s conftest.err
6478        }; then
6479   ac_header_preproc=yes
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484   ac_header_preproc=no
6485 fi
6486
6487 rm -f conftest.err conftest.$ac_ext
6488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6489 echo "${ECHO_T}$ac_header_preproc" >&6; }
6490
6491 # So?  What about this header?
6492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6493   yes:no: )
6494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6498     ac_header_preproc=yes
6499     ;;
6500   no:yes:* )
6501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6513     ( cat <<\_ASBOX
6514 ## ----------------------------------- ##
6515 ## Report this to arthur@ch.tudelft.nl ##
6516 ## ----------------------------------- ##
6517 _ASBOX
6518      ) | sed "s/^/$as_me: WARNING:     /" >&2
6519     ;;
6520 esac
6521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   eval "$as_ac_Header=\$ac_header_preproc"
6527 fi
6528 ac_res=`eval echo '${'$as_ac_Header'}'`
6529                { echo "$as_me:$LINENO: result: $ac_res" >&5
6530 echo "${ECHO_T}$ac_res" >&6; }
6531
6532 fi
6533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6534   cat >>confdefs.h <<_ACEOF
6535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6536 _ACEOF
6537
6538 fi
6539
6540 done
6541
6542
6543 for ac_header in strings.h
6544 do
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 fi
6552 ac_res=`eval echo '${'$as_ac_Header'}'`
6553                { echo "$as_me:$LINENO: result: $ac_res" >&5
6554 echo "${ECHO_T}$ac_res" >&6; }
6555 else
6556   # Is the header compilable?
6557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h.  */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h.  */
6565 $ac_includes_default
6566 #include <$ac_header>
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6570 case "(($ac_try" in
6571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572   *) ac_try_echo=$ac_try;;
6573 esac
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575   (eval "$ac_compile") 2>conftest.er1
6576   ac_status=$?
6577   grep -v '^ *+' conftest.er1 >conftest.err
6578   rm -f conftest.er1
6579   cat conftest.err >&5
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } && {
6582          test -z "$ac_c_werror_flag" ||
6583          test ! -s conftest.err
6584        } && test -s conftest.$ac_objext; then
6585   ac_header_compiler=yes
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590         ac_header_compiler=no
6591 fi
6592
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6595 echo "${ECHO_T}$ac_header_compiler" >&6; }
6596
6597 # Is the header present?
6598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h.  */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h.  */
6606 #include <$ac_header>
6607 _ACEOF
6608 if { (ac_try="$ac_cpp conftest.$ac_ext"
6609 case "(($ac_try" in
6610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611   *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6615   ac_status=$?
6616   grep -v '^ *+' conftest.er1 >conftest.err
6617   rm -f conftest.er1
6618   cat conftest.err >&5
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); } >/dev/null && {
6621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6622          test ! -s conftest.err
6623        }; then
6624   ac_header_preproc=yes
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629   ac_header_preproc=no
6630 fi
6631
6632 rm -f conftest.err conftest.$ac_ext
6633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6634 echo "${ECHO_T}$ac_header_preproc" >&6; }
6635
6636 # So?  What about this header?
6637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6638   yes:no: )
6639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6643     ac_header_preproc=yes
6644     ;;
6645   no:yes:* )
6646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6658     ( cat <<\_ASBOX
6659 ## ----------------------------------- ##
6660 ## Report this to arthur@ch.tudelft.nl ##
6661 ## ----------------------------------- ##
6662 _ASBOX
6663      ) | sed "s/^/$as_me: WARNING:     /" >&2
6664     ;;
6665 esac
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   eval "$as_ac_Header=\$ac_header_preproc"
6672 fi
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674                { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6676
6677 fi
6678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6679   cat >>confdefs.h <<_ACEOF
6680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 _ACEOF
6682
6683 fi
6684
6685 done
6686
6687
6688 for ac_header in gssldap.h
6689 do
6690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 fi
6697 ac_res=`eval echo '${'$as_ac_Header'}'`
6698                { echo "$as_me:$LINENO: result: $ac_res" >&5
6699 echo "${ECHO_T}$ac_res" >&6; }
6700 else
6701   # Is the header compilable?
6702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710 $ac_includes_default
6711 #include <$ac_header>
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6715 case "(($ac_try" in
6716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717   *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720   (eval "$ac_compile") 2>conftest.er1
6721   ac_status=$?
6722   grep -v '^ *+' conftest.er1 >conftest.err
6723   rm -f conftest.er1
6724   cat conftest.err >&5
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); } && {
6727          test -z "$ac_c_werror_flag" ||
6728          test ! -s conftest.err
6729        } && test -s conftest.$ac_objext; then
6730   ac_header_compiler=yes
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735         ac_header_compiler=no
6736 fi
6737
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6740 echo "${ECHO_T}$ac_header_compiler" >&6; }
6741
6742 # Is the header present?
6743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h.  */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h.  */
6751 #include <$ac_header>
6752 _ACEOF
6753 if { (ac_try="$ac_cpp conftest.$ac_ext"
6754 case "(($ac_try" in
6755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756   *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6760   ac_status=$?
6761   grep -v '^ *+' conftest.er1 >conftest.err
6762   rm -f conftest.er1
6763   cat conftest.err >&5
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); } >/dev/null && {
6766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6767          test ! -s conftest.err
6768        }; then
6769   ac_header_preproc=yes
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774   ac_header_preproc=no
6775 fi
6776
6777 rm -f conftest.err conftest.$ac_ext
6778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6779 echo "${ECHO_T}$ac_header_preproc" >&6; }
6780
6781 # So?  What about this header?
6782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6783   yes:no: )
6784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6788     ac_header_preproc=yes
6789     ;;
6790   no:yes:* )
6791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6803     ( cat <<\_ASBOX
6804 ## ----------------------------------- ##
6805 ## Report this to arthur@ch.tudelft.nl ##
6806 ## ----------------------------------- ##
6807 _ASBOX
6808      ) | sed "s/^/$as_me: WARNING:     /" >&2
6809     ;;
6810 esac
6811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   eval "$as_ac_Header=\$ac_header_preproc"
6817 fi
6818 ac_res=`eval echo '${'$as_ac_Header'}'`
6819                { echo "$as_me:$LINENO: result: $ac_res" >&5
6820 echo "${ECHO_T}$ac_res" >&6; }
6821
6822 fi
6823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6824   cat >>confdefs.h <<_ACEOF
6825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6826 _ACEOF
6827
6828 fi
6829
6830 done
6831
6832
6833 for ac_header in gsssasl.h
6834 do
6835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6837   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6840   echo $ECHO_N "(cached) $ECHO_C" >&6
6841 fi
6842 ac_res=`eval echo '${'$as_ac_Header'}'`
6843                { echo "$as_me:$LINENO: result: $ac_res" >&5
6844 echo "${ECHO_T}$ac_res" >&6; }
6845 else
6846   # Is the header compilable?
6847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6849 cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h.  */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h.  */
6855 $ac_includes_default
6856 #include <$ac_header>
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (ac_try="$ac_compile"
6860 case "(($ac_try" in
6861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862   *) ac_try_echo=$ac_try;;
6863 esac
6864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865   (eval "$ac_compile") 2>conftest.er1
6866   ac_status=$?
6867   grep -v '^ *+' conftest.er1 >conftest.err
6868   rm -f conftest.er1
6869   cat conftest.err >&5
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } && {
6872          test -z "$ac_c_werror_flag" ||
6873          test ! -s conftest.err
6874        } && test -s conftest.$ac_objext; then
6875   ac_header_compiler=yes
6876 else
6877   echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880         ac_header_compiler=no
6881 fi
6882
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6885 echo "${ECHO_T}$ac_header_compiler" >&6; }
6886
6887 # Is the header present?
6888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896 #include <$ac_header>
6897 _ACEOF
6898 if { (ac_try="$ac_cpp conftest.$ac_ext"
6899 case "(($ac_try" in
6900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901   *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6905   ac_status=$?
6906   grep -v '^ *+' conftest.er1 >conftest.err
6907   rm -f conftest.er1
6908   cat conftest.err >&5
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } >/dev/null && {
6911          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6912          test ! -s conftest.err
6913        }; then
6914   ac_header_preproc=yes
6915 else
6916   echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919   ac_header_preproc=no
6920 fi
6921
6922 rm -f conftest.err conftest.$ac_ext
6923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6924 echo "${ECHO_T}$ac_header_preproc" >&6; }
6925
6926 # So?  What about this header?
6927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6928   yes:no: )
6929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6933     ac_header_preproc=yes
6934     ;;
6935   no:yes:* )
6936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6938     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6939 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6940     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6942     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6943 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6946     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6948     ( cat <<\_ASBOX
6949 ## ----------------------------------- ##
6950 ## Report this to arthur@ch.tudelft.nl ##
6951 ## ----------------------------------- ##
6952 _ASBOX
6953      ) | sed "s/^/$as_me: WARNING:     /" >&2
6954     ;;
6955 esac
6956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   eval "$as_ac_Header=\$ac_header_preproc"
6962 fi
6963 ac_res=`eval echo '${'$as_ac_Header'}'`
6964                { echo "$as_me:$LINENO: result: $ac_res" >&5
6965 echo "${ECHO_T}$ac_res" >&6; }
6966
6967 fi
6968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6969   cat >>confdefs.h <<_ACEOF
6970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6971 _ACEOF
6972
6973 fi
6974
6975 done
6976
6977
6978
6979 for ac_header in gssapi/gssapi_krb5.h gssapi.h
6980 do
6981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6983   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 fi
6988 ac_res=`eval echo '${'$as_ac_Header'}'`
6989                { echo "$as_me:$LINENO: result: $ac_res" >&5
6990 echo "${ECHO_T}$ac_res" >&6; }
6991 else
6992   # Is the header compilable?
6993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h.  */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h.  */
7001 $ac_includes_default
7002 #include <$ac_header>
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (ac_try="$ac_compile"
7006 case "(($ac_try" in
7007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008   *) ac_try_echo=$ac_try;;
7009 esac
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011   (eval "$ac_compile") 2>conftest.er1
7012   ac_status=$?
7013   grep -v '^ *+' conftest.er1 >conftest.err
7014   rm -f conftest.er1
7015   cat conftest.err >&5
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } && {
7018          test -z "$ac_c_werror_flag" ||
7019          test ! -s conftest.err
7020        } && test -s conftest.$ac_objext; then
7021   ac_header_compiler=yes
7022 else
7023   echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026         ac_header_compiler=no
7027 fi
7028
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7031 echo "${ECHO_T}$ac_header_compiler" >&6; }
7032
7033 # Is the header present?
7034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <$ac_header>
7043 _ACEOF
7044 if { (ac_try="$ac_cpp conftest.$ac_ext"
7045 case "(($ac_try" in
7046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047   *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7051   ac_status=$?
7052   grep -v '^ *+' conftest.er1 >conftest.err
7053   rm -f conftest.er1
7054   cat conftest.err >&5
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); } >/dev/null && {
7057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7058          test ! -s conftest.err
7059        }; then
7060   ac_header_preproc=yes
7061 else
7062   echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065   ac_header_preproc=no
7066 fi
7067
7068 rm -f conftest.err conftest.$ac_ext
7069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7070 echo "${ECHO_T}$ac_header_preproc" >&6; }
7071
7072 # So?  What about this header?
7073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7074   yes:no: )
7075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7079     ac_header_preproc=yes
7080     ;;
7081   no:yes:* )
7082     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7084     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7085 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7086     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7088     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7089 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7092     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7094     ( cat <<\_ASBOX
7095 ## ----------------------------------- ##
7096 ## Report this to arthur@ch.tudelft.nl ##
7097 ## ----------------------------------- ##
7098 _ASBOX
7099      ) | sed "s/^/$as_me: WARNING:     /" >&2
7100     ;;
7101 esac
7102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   eval "$as_ac_Header=\$ac_header_preproc"
7108 fi
7109 ac_res=`eval echo '${'$as_ac_Header'}'`
7110                { echo "$as_me:$LINENO: result: $ac_res" >&5
7111 echo "${ECHO_T}$ac_res" >&6; }
7112
7113 fi
7114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7115   cat >>confdefs.h <<_ACEOF
7116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7117 _ACEOF
7118
7119 fi
7120
7121 done
7122
7123
7124 for ac_header in grp.h
7125 do
7126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 fi
7133 ac_res=`eval echo '${'$as_ac_Header'}'`
7134                { echo "$as_me:$LINENO: result: $ac_res" >&5
7135 echo "${ECHO_T}$ac_res" >&6; }
7136 else
7137   # Is the header compilable?
7138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 $ac_includes_default
7147 #include <$ac_header>
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (ac_try="$ac_compile"
7151 case "(($ac_try" in
7152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153   *) ac_try_echo=$ac_try;;
7154 esac
7155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156   (eval "$ac_compile") 2>conftest.er1
7157   ac_status=$?
7158   grep -v '^ *+' conftest.er1 >conftest.err
7159   rm -f conftest.er1
7160   cat conftest.err >&5
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); } && {
7163          test -z "$ac_c_werror_flag" ||
7164          test ! -s conftest.err
7165        } && test -s conftest.$ac_objext; then
7166   ac_header_compiler=yes
7167 else
7168   echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171         ac_header_compiler=no
7172 fi
7173
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7176 echo "${ECHO_T}$ac_header_compiler" >&6; }
7177
7178 # Is the header present?
7179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187 #include <$ac_header>
7188 _ACEOF
7189 if { (ac_try="$ac_cpp conftest.$ac_ext"
7190 case "(($ac_try" in
7191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192   *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7196   ac_status=$?
7197   grep -v '^ *+' conftest.er1 >conftest.err
7198   rm -f conftest.er1
7199   cat conftest.err >&5
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } >/dev/null && {
7202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7203          test ! -s conftest.err
7204        }; then
7205   ac_header_preproc=yes
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210   ac_header_preproc=no
7211 fi
7212
7213 rm -f conftest.err conftest.$ac_ext
7214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7215 echo "${ECHO_T}$ac_header_preproc" >&6; }
7216
7217 # So?  What about this header?
7218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7219   yes:no: )
7220     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7224     ac_header_preproc=yes
7225     ;;
7226   no:yes:* )
7227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7229     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7230 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7233     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7234 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7237     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7239     ( cat <<\_ASBOX
7240 ## ----------------------------------- ##
7241 ## Report this to arthur@ch.tudelft.nl ##
7242 ## ----------------------------------- ##
7243 _ASBOX
7244      ) | sed "s/^/$as_me: WARNING:     /" >&2
7245     ;;
7246 esac
7247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   eval "$as_ac_Header=\$ac_header_preproc"
7253 fi
7254 ac_res=`eval echo '${'$as_ac_Header'}'`
7255                { echo "$as_me:$LINENO: result: $ac_res" >&5
7256 echo "${ECHO_T}$ac_res" >&6; }
7257
7258 fi
7259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7260   cat >>confdefs.h <<_ACEOF
7261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7262 _ACEOF
7263
7264 fi
7265
7266 done
7267
7268
7269 for ac_header in sys/socket.h
7270 do
7271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7273   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 fi
7278 ac_res=`eval echo '${'$as_ac_Header'}'`
7279                { echo "$as_me:$LINENO: result: $ac_res" >&5
7280 echo "${ECHO_T}$ac_res" >&6; }
7281 else
7282   # Is the header compilable?
7283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7285 cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7291 $ac_includes_default
7292 #include <$ac_header>
7293 _ACEOF
7294 rm -f conftest.$ac_objext
7295 if { (ac_try="$ac_compile"
7296 case "(($ac_try" in
7297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298   *) ac_try_echo=$ac_try;;
7299 esac
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301   (eval "$ac_compile") 2>conftest.er1
7302   ac_status=$?
7303   grep -v '^ *+' conftest.er1 >conftest.err
7304   rm -f conftest.er1
7305   cat conftest.err >&5
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); } && {
7308          test -z "$ac_c_werror_flag" ||
7309          test ! -s conftest.err
7310        } && test -s conftest.$ac_objext; then
7311   ac_header_compiler=yes
7312 else
7313   echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316         ac_header_compiler=no
7317 fi
7318
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7321 echo "${ECHO_T}$ac_header_compiler" >&6; }
7322
7323 # Is the header present?
7324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 #include <$ac_header>
7333 _ACEOF
7334 if { (ac_try="$ac_cpp conftest.$ac_ext"
7335 case "(($ac_try" in
7336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337   *) ac_try_echo=$ac_try;;
7338 esac
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7341   ac_status=$?
7342   grep -v '^ *+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } >/dev/null && {
7347          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7348          test ! -s conftest.err
7349        }; then
7350   ac_header_preproc=yes
7351 else
7352   echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355   ac_header_preproc=no
7356 fi
7357
7358 rm -f conftest.err conftest.$ac_ext
7359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7360 echo "${ECHO_T}$ac_header_preproc" >&6; }
7361
7362 # So?  What about this header?
7363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7364   yes:no: )
7365     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7369     ac_header_preproc=yes
7370     ;;
7371   no:yes:* )
7372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7375 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7378     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7379 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7382     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7384     ( cat <<\_ASBOX
7385 ## ----------------------------------- ##
7386 ## Report this to arthur@ch.tudelft.nl ##
7387 ## ----------------------------------- ##
7388 _ASBOX
7389      ) | sed "s/^/$as_me: WARNING:     /" >&2
7390     ;;
7391 esac
7392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   eval "$as_ac_Header=\$ac_header_preproc"
7398 fi
7399 ac_res=`eval echo '${'$as_ac_Header'}'`
7400                { echo "$as_me:$LINENO: result: $ac_res" >&5
7401 echo "${ECHO_T}$ac_res" >&6; }
7402
7403 fi
7404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7405   cat >>confdefs.h <<_ACEOF
7406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407 _ACEOF
7408
7409 fi
7410
7411 done
7412
7413
7414 for ac_header in sys/ucred.h
7415 do
7416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 fi
7423 ac_res=`eval echo '${'$as_ac_Header'}'`
7424                { echo "$as_me:$LINENO: result: $ac_res" >&5
7425 echo "${ECHO_T}$ac_res" >&6; }
7426 else
7427   # Is the header compilable?
7428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h.  */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h.  */
7436 $ac_includes_default
7437 #include <$ac_header>
7438 _ACEOF
7439 rm -f conftest.$ac_objext
7440 if { (ac_try="$ac_compile"
7441 case "(($ac_try" in
7442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443   *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446   (eval "$ac_compile") 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } && {
7453          test -z "$ac_c_werror_flag" ||
7454          test ! -s conftest.err
7455        } && test -s conftest.$ac_objext; then
7456   ac_header_compiler=yes
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461         ac_header_compiler=no
7462 fi
7463
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7466 echo "${ECHO_T}$ac_header_compiler" >&6; }
7467
7468 # Is the header present?
7469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 #include <$ac_header>
7478 _ACEOF
7479 if { (ac_try="$ac_cpp conftest.$ac_ext"
7480 case "(($ac_try" in
7481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482   *) ac_try_echo=$ac_try;;
7483 esac
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } >/dev/null && {
7492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7493          test ! -s conftest.err
7494        }; then
7495   ac_header_preproc=yes
7496 else
7497   echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500   ac_header_preproc=no
7501 fi
7502
7503 rm -f conftest.err conftest.$ac_ext
7504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7505 echo "${ECHO_T}$ac_header_preproc" >&6; }
7506
7507 # So?  What about this header?
7508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7509   yes:no: )
7510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7514     ac_header_preproc=yes
7515     ;;
7516   no:yes:* )
7517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7529     ( cat <<\_ASBOX
7530 ## ----------------------------------- ##
7531 ## Report this to arthur@ch.tudelft.nl ##
7532 ## ----------------------------------- ##
7533 _ASBOX
7534      ) | sed "s/^/$as_me: WARNING:     /" >&2
7535     ;;
7536 esac
7537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   eval "$as_ac_Header=\$ac_header_preproc"
7543 fi
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545                { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547
7548 fi
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550   cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7552 _ACEOF
7553
7554 fi
7555
7556 done
7557
7558
7559 for ac_header in ucred.h
7560 do
7561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7563   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 fi
7568 ac_res=`eval echo '${'$as_ac_Header'}'`
7569                { echo "$as_me:$LINENO: result: $ac_res" >&5
7570 echo "${ECHO_T}$ac_res" >&6; }
7571 else
7572   # Is the header compilable?
7573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h.  */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h.  */
7581 $ac_includes_default
7582 #include <$ac_header>
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7586 case "(($ac_try" in
7587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588   *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591   (eval "$ac_compile") 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } && {
7598          test -z "$ac_c_werror_flag" ||
7599          test ! -s conftest.err
7600        } && test -s conftest.$ac_objext; then
7601   ac_header_compiler=yes
7602 else
7603   echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606         ac_header_compiler=no
7607 fi
7608
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6; }
7612
7613 # Is the header present?
7614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h.  */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h.  */
7622 #include <$ac_header>
7623 _ACEOF
7624 if { (ac_try="$ac_cpp conftest.$ac_ext"
7625 case "(($ac_try" in
7626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627   *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } >/dev/null && {
7637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7638          test ! -s conftest.err
7639        }; then
7640   ac_header_preproc=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645   ac_header_preproc=no
7646 fi
7647
7648 rm -f conftest.err conftest.$ac_ext
7649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7650 echo "${ECHO_T}$ac_header_preproc" >&6; }
7651
7652 # So?  What about this header?
7653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7654   yes:no: )
7655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7659     ac_header_preproc=yes
7660     ;;
7661   no:yes:* )
7662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7674     ( cat <<\_ASBOX
7675 ## ----------------------------------- ##
7676 ## Report this to arthur@ch.tudelft.nl ##
7677 ## ----------------------------------- ##
7678 _ASBOX
7679      ) | sed "s/^/$as_me: WARNING:     /" >&2
7680     ;;
7681 esac
7682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   eval "$as_ac_Header=\$ac_header_preproc"
7688 fi
7689 ac_res=`eval echo '${'$as_ac_Header'}'`
7690                { echo "$as_me:$LINENO: result: $ac_res" >&5
7691 echo "${ECHO_T}$ac_res" >&6; }
7692
7693 fi
7694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7695   cat >>confdefs.h <<_ACEOF
7696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7697 _ACEOF
7698
7699 fi
7700
7701 done
7702
7703
7704 # set up directory with compatibility replacement files
7705
7706
7707 # checks for availability of system libraries for nslcd
7708 save_LIBS="$LIBS"
7709 LIBS="$nslcd_LIBS"
7710 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7711 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
7712 if test "${ac_cv_search_gethostbyname+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   ac_func_search_save_LIBS=$LIBS
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h.  */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h.  */
7722
7723 /* Override any GCC internal prototype to avoid an error.
7724    Use char because int might match the return type of a GCC
7725    builtin and then its argument prototype would still apply.  */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 char gethostbyname ();
7730 int
7731 main ()
7732 {
7733 return gethostbyname ();
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 for ac_lib in '' nsl socket; do
7739   if test -z "$ac_lib"; then
7740     ac_res="none required"
7741   else
7742     ac_res=-l$ac_lib
7743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7744   fi
7745   rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (ac_try="$ac_link"
7747 case "(($ac_try" in
7748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749   *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752   (eval "$ac_link") 2>conftest.er1
7753   ac_status=$?
7754   grep -v '^ *+' conftest.er1 >conftest.err
7755   rm -f conftest.er1
7756   cat conftest.err >&5
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); } && {
7759          test -z "$ac_c_werror_flag" ||
7760          test ! -s conftest.err
7761        } && test -s conftest$ac_exeext &&
7762        $as_test_x conftest$ac_exeext; then
7763   ac_cv_search_gethostbyname=$ac_res
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768
7769 fi
7770
7771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7772       conftest$ac_exeext
7773   if test "${ac_cv_search_gethostbyname+set}" = set; then
7774   break
7775 fi
7776 done
7777 if test "${ac_cv_search_gethostbyname+set}" = set; then
7778   :
7779 else
7780   ac_cv_search_gethostbyname=no
7781 fi
7782 rm conftest.$ac_ext
7783 LIBS=$ac_func_search_save_LIBS
7784 fi
7785 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7786 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
7787 ac_res=$ac_cv_search_gethostbyname
7788 if test "$ac_res" != no; then
7789   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7790
7791 fi
7792
7793 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7794 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7795 if test "${ac_cv_search_socket+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   ac_func_search_save_LIBS=$LIBS
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h.  */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h.  */
7805
7806 /* Override any GCC internal prototype to avoid an error.
7807    Use char because int might match the return type of a GCC
7808    builtin and then its argument prototype would still apply.  */
7809 #ifdef __cplusplus
7810 extern "C"
7811 #endif
7812 char socket ();
7813 int
7814 main ()
7815 {
7816 return socket ();
7817   ;
7818   return 0;
7819 }
7820 _ACEOF
7821 for ac_lib in '' socket; do
7822   if test -z "$ac_lib"; then
7823     ac_res="none required"
7824   else
7825     ac_res=-l$ac_lib
7826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7827   fi
7828   rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7830 case "(($ac_try" in
7831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832   *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835   (eval "$ac_link") 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } && {
7842          test -z "$ac_c_werror_flag" ||
7843          test ! -s conftest.err
7844        } && test -s conftest$ac_exeext &&
7845        $as_test_x conftest$ac_exeext; then
7846   ac_cv_search_socket=$ac_res
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851
7852 fi
7853
7854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7855       conftest$ac_exeext
7856   if test "${ac_cv_search_socket+set}" = set; then
7857   break
7858 fi
7859 done
7860 if test "${ac_cv_search_socket+set}" = set; then
7861   :
7862 else
7863   ac_cv_search_socket=no
7864 fi
7865 rm conftest.$ac_ext
7866 LIBS=$ac_func_search_save_LIBS
7867 fi
7868 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7869 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7870 ac_res=$ac_cv_search_socket
7871 if test "$ac_res" != no; then
7872   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7873
7874 fi
7875
7876 #AC_CHECK_LIB(resolv,main)
7877 nslcd_LIBS="$LIBS"
7878 LIBS="$save_LIBS"
7879
7880 # check for availability of system libraries for nss part
7881 save_LIBS="$LIBS"
7882 LIBS="$nss_ldap_so_LIBS"
7883 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7884 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7885 if test "${ac_cv_search_socket+set}" = set; then
7886   echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888   ac_func_search_save_LIBS=$LIBS
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895
7896 /* Override any GCC internal prototype to avoid an error.
7897    Use char because int might match the return type of a GCC
7898    builtin and then its argument prototype would still apply.  */
7899 #ifdef __cplusplus
7900 extern "C"
7901 #endif
7902 char socket ();
7903 int
7904 main ()
7905 {
7906 return socket ();
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 for ac_lib in '' socket; do
7912   if test -z "$ac_lib"; then
7913     ac_res="none required"
7914   else
7915     ac_res=-l$ac_lib
7916     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7917   fi
7918   rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (ac_try="$ac_link"
7920 case "(($ac_try" in
7921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922   *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925   (eval "$ac_link") 2>conftest.er1
7926   ac_status=$?
7927   grep -v '^ *+' conftest.er1 >conftest.err
7928   rm -f conftest.er1
7929   cat conftest.err >&5
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); } && {
7932          test -z "$ac_c_werror_flag" ||
7933          test ! -s conftest.err
7934        } && test -s conftest$ac_exeext &&
7935        $as_test_x conftest$ac_exeext; then
7936   ac_cv_search_socket=$ac_res
7937 else
7938   echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941
7942 fi
7943
7944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7945       conftest$ac_exeext
7946   if test "${ac_cv_search_socket+set}" = set; then
7947   break
7948 fi
7949 done
7950 if test "${ac_cv_search_socket+set}" = set; then
7951   :
7952 else
7953   ac_cv_search_socket=no
7954 fi
7955 rm conftest.$ac_ext
7956 LIBS=$ac_func_search_save_LIBS
7957 fi
7958 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7959 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7960 ac_res=$ac_cv_search_socket
7961 if test "$ac_res" != no; then
7962   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7963
7964 fi
7965
7966 nss_ldap_so_LIBS="$LIBS"
7967 LIBS="$save_LIBS"
7968
7969 # TODO: simplify the above since we need a correct LIBS for the following
7970 #       tests
7971
7972 # checks for availability of functions
7973
7974 for ac_func in sigaction
7975 do
7976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7980   echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982   cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7990 #define $ac_func innocuous_$ac_func
7991
7992 /* System header to define __stub macros and hopefully few prototypes,
7993     which can conflict with char $ac_func (); below.
7994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7995     <limits.h> exists even on freestanding compilers.  */
7996
7997 #ifdef __STDC__
7998 # include <limits.h>
7999 #else
8000 # include <assert.h>
8001 #endif
8002
8003 #undef $ac_func
8004
8005 /* Override any GCC internal prototype to avoid an error.
8006    Use char because int might match the return type of a GCC
8007    builtin and then its argument prototype would still apply.  */
8008 #ifdef __cplusplus
8009 extern "C"
8010 #endif
8011 char $ac_func ();
8012 /* The GNU C library defines this for functions which it implements
8013     to always fail with ENOSYS.  Some functions are actually named
8014     something starting with __ and the normal name is an alias.  */
8015 #if defined __stub_$ac_func || defined __stub___$ac_func
8016 choke me
8017 #endif
8018
8019 int
8020 main ()
8021 {
8022 return $ac_func ();
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (ac_try="$ac_link"
8029 case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_link") 2>conftest.er1
8035   ac_status=$?
8036   grep -v '^ *+' conftest.er1 >conftest.err
8037   rm -f conftest.er1
8038   cat conftest.err >&5
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } && {
8041          test -z "$ac_c_werror_flag" ||
8042          test ! -s conftest.err
8043        } && test -s conftest$ac_exeext &&
8044        $as_test_x conftest$ac_exeext; then
8045   eval "$as_ac_var=yes"
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050         eval "$as_ac_var=no"
8051 fi
8052
8053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8054       conftest$ac_exeext conftest.$ac_ext
8055 fi
8056 ac_res=`eval echo '${'$as_ac_var'}'`
8057                { echo "$as_me:$LINENO: result: $ac_res" >&5
8058 echo "${ECHO_T}$ac_res" >&6; }
8059 if test `eval echo '${'$as_ac_var'}'` = yes; then
8060   cat >>confdefs.h <<_ACEOF
8061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8062 _ACEOF
8063
8064 fi
8065 done
8066
8067
8068 for ac_func in snprintf
8069 do
8070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076   cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8084 #define $ac_func innocuous_$ac_func
8085
8086 /* System header to define __stub macros and hopefully few prototypes,
8087     which can conflict with char $ac_func (); below.
8088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8089     <limits.h> exists even on freestanding compilers.  */
8090
8091 #ifdef __STDC__
8092 # include <limits.h>
8093 #else
8094 # include <assert.h>
8095 #endif
8096
8097 #undef $ac_func
8098
8099 /* Override any GCC internal prototype to avoid an error.
8100    Use char because int might match the return type of a GCC
8101    builtin and then its argument prototype would still apply.  */
8102 #ifdef __cplusplus
8103 extern "C"
8104 #endif
8105 char $ac_func ();
8106 /* The GNU C library defines this for functions which it implements
8107     to always fail with ENOSYS.  Some functions are actually named
8108     something starting with __ and the normal name is an alias.  */
8109 #if defined __stub_$ac_func || defined __stub___$ac_func
8110 choke me
8111 #endif
8112
8113 int
8114 main ()
8115 {
8116 return $ac_func ();
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (ac_try="$ac_link"
8123 case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_link") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } && {
8135          test -z "$ac_c_werror_flag" ||
8136          test ! -s conftest.err
8137        } && test -s conftest$ac_exeext &&
8138        $as_test_x conftest$ac_exeext; then
8139   eval "$as_ac_var=yes"
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144         eval "$as_ac_var=no"
8145 fi
8146
8147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8148       conftest$ac_exeext conftest.$ac_ext
8149 fi
8150 ac_res=`eval echo '${'$as_ac_var'}'`
8151                { echo "$as_me:$LINENO: result: $ac_res" >&5
8152 echo "${ECHO_T}$ac_res" >&6; }
8153 if test `eval echo '${'$as_ac_var'}'` = yes; then
8154   cat >>confdefs.h <<_ACEOF
8155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8156 _ACEOF
8157
8158 fi
8159 done
8160
8161
8162 for ac_func in gethostbyname
8163 do
8164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8178 #define $ac_func innocuous_$ac_func
8179
8180 /* System header to define __stub macros and hopefully few prototypes,
8181     which can conflict with char $ac_func (); below.
8182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183     <limits.h> exists even on freestanding compilers.  */
8184
8185 #ifdef __STDC__
8186 # include <limits.h>
8187 #else
8188 # include <assert.h>
8189 #endif
8190
8191 #undef $ac_func
8192
8193 /* Override any GCC internal prototype to avoid an error.
8194    Use char because int might match the return type of a GCC
8195    builtin and then its argument prototype would still apply.  */
8196 #ifdef __cplusplus
8197 extern "C"
8198 #endif
8199 char $ac_func ();
8200 /* The GNU C library defines this for functions which it implements
8201     to always fail with ENOSYS.  Some functions are actually named
8202     something starting with __ and the normal name is an alias.  */
8203 #if defined __stub_$ac_func || defined __stub___$ac_func
8204 choke me
8205 #endif
8206
8207 int
8208 main ()
8209 {
8210 return $ac_func ();
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (ac_try="$ac_link"
8217 case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_link") 2>conftest.er1
8223   ac_status=$?
8224   grep -v '^ *+' conftest.er1 >conftest.err
8225   rm -f conftest.er1
8226   cat conftest.err >&5
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); } && {
8229          test -z "$ac_c_werror_flag" ||
8230          test ! -s conftest.err
8231        } && test -s conftest$ac_exeext &&
8232        $as_test_x conftest$ac_exeext; then
8233   eval "$as_ac_var=yes"
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238         eval "$as_ac_var=no"
8239 fi
8240
8241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8242       conftest$ac_exeext conftest.$ac_ext
8243 fi
8244 ac_res=`eval echo '${'$as_ac_var'}'`
8245                { echo "$as_me:$LINENO: result: $ac_res" >&5
8246 echo "${ECHO_T}$ac_res" >&6; }
8247 if test `eval echo '${'$as_ac_var'}'` = yes; then
8248   cat >>confdefs.h <<_ACEOF
8249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8250 _ACEOF
8251
8252 fi
8253 done
8254
8255
8256 for ac_func in setgroups
8257 do
8258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8272 #define $ac_func innocuous_$ac_func
8273
8274 /* System header to define __stub macros and hopefully few prototypes,
8275     which can conflict with char $ac_func (); below.
8276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8277     <limits.h> exists even on freestanding compilers.  */
8278
8279 #ifdef __STDC__
8280 # include <limits.h>
8281 #else
8282 # include <assert.h>
8283 #endif
8284
8285 #undef $ac_func
8286
8287 /* Override any GCC internal prototype to avoid an error.
8288    Use char because int might match the return type of a GCC
8289    builtin and then its argument prototype would still apply.  */
8290 #ifdef __cplusplus
8291 extern "C"
8292 #endif
8293 char $ac_func ();
8294 /* The GNU C library defines this for functions which it implements
8295     to always fail with ENOSYS.  Some functions are actually named
8296     something starting with __ and the normal name is an alias.  */
8297 #if defined __stub_$ac_func || defined __stub___$ac_func
8298 choke me
8299 #endif
8300
8301 int
8302 main ()
8303 {
8304 return $ac_func ();
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_link") 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } && {
8323          test -z "$ac_c_werror_flag" ||
8324          test ! -s conftest.err
8325        } && test -s conftest$ac_exeext &&
8326        $as_test_x conftest$ac_exeext; then
8327   eval "$as_ac_var=yes"
8328 else
8329   echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332         eval "$as_ac_var=no"
8333 fi
8334
8335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8336       conftest$ac_exeext conftest.$ac_ext
8337 fi
8338 ac_res=`eval echo '${'$as_ac_var'}'`
8339                { echo "$as_me:$LINENO: result: $ac_res" >&5
8340 echo "${ECHO_T}$ac_res" >&6; }
8341 if test `eval echo '${'$as_ac_var'}'` = yes; then
8342   cat >>confdefs.h <<_ACEOF
8343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8344 _ACEOF
8345
8346 fi
8347 done
8348
8349
8350 for ac_func in getpeereid
8351 do
8352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8366 #define $ac_func innocuous_$ac_func
8367
8368 /* System header to define __stub macros and hopefully few prototypes,
8369     which can conflict with char $ac_func (); below.
8370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8371     <limits.h> exists even on freestanding compilers.  */
8372
8373 #ifdef __STDC__
8374 # include <limits.h>
8375 #else
8376 # include <assert.h>
8377 #endif
8378
8379 #undef $ac_func
8380
8381 /* Override any GCC internal prototype to avoid an error.
8382    Use char because int might match the return type of a GCC
8383    builtin and then its argument prototype would still apply.  */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 char $ac_func ();
8388 /* The GNU C library defines this for functions which it implements
8389     to always fail with ENOSYS.  Some functions are actually named
8390     something starting with __ and the normal name is an alias.  */
8391 #if defined __stub_$ac_func || defined __stub___$ac_func
8392 choke me
8393 #endif
8394
8395 int
8396 main ()
8397 {
8398 return $ac_func ();
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (ac_try="$ac_link"
8405 case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_link") 2>conftest.er1
8411   ac_status=$?
8412   grep -v '^ *+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
8414   cat conftest.err >&5
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } && {
8417          test -z "$ac_c_werror_flag" ||
8418          test ! -s conftest.err
8419        } && test -s conftest$ac_exeext &&
8420        $as_test_x conftest$ac_exeext; then
8421   eval "$as_ac_var=yes"
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426         eval "$as_ac_var=no"
8427 fi
8428
8429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8430       conftest$ac_exeext conftest.$ac_ext
8431 fi
8432 ac_res=`eval echo '${'$as_ac_var'}'`
8433                { echo "$as_me:$LINENO: result: $ac_res" >&5
8434 echo "${ECHO_T}$ac_res" >&6; }
8435 if test `eval echo '${'$as_ac_var'}'` = yes; then
8436   cat >>confdefs.h <<_ACEOF
8437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8438 _ACEOF
8439
8440 fi
8441 done
8442
8443
8444 for ac_func in getpeerucred
8445 do
8446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h.  */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h.  */
8458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8460 #define $ac_func innocuous_$ac_func
8461
8462 /* System header to define __stub macros and hopefully few prototypes,
8463     which can conflict with char $ac_func (); below.
8464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465     <limits.h> exists even on freestanding compilers.  */
8466
8467 #ifdef __STDC__
8468 # include <limits.h>
8469 #else
8470 # include <assert.h>
8471 #endif
8472
8473 #undef $ac_func
8474
8475 /* Override any GCC internal prototype to avoid an error.
8476    Use char because int might match the return type of a GCC
8477    builtin and then its argument prototype would still apply.  */
8478 #ifdef __cplusplus
8479 extern "C"
8480 #endif
8481 char $ac_func ();
8482 /* The GNU C library defines this for functions which it implements
8483     to always fail with ENOSYS.  Some functions are actually named
8484     something starting with __ and the normal name is an alias.  */
8485 #if defined __stub_$ac_func || defined __stub___$ac_func
8486 choke me
8487 #endif
8488
8489 int
8490 main ()
8491 {
8492 return $ac_func ();
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (ac_try="$ac_link"
8499 case "(($ac_try" in
8500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501   *) ac_try_echo=$ac_try;;
8502 esac
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504   (eval "$ac_link") 2>conftest.er1
8505   ac_status=$?
8506   grep -v '^ *+' conftest.er1 >conftest.err
8507   rm -f conftest.er1
8508   cat conftest.err >&5
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } && {
8511          test -z "$ac_c_werror_flag" ||
8512          test ! -s conftest.err
8513        } && test -s conftest$ac_exeext &&
8514        $as_test_x conftest$ac_exeext; then
8515   eval "$as_ac_var=yes"
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520         eval "$as_ac_var=no"
8521 fi
8522
8523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8524       conftest$ac_exeext conftest.$ac_ext
8525 fi
8526 ac_res=`eval echo '${'$as_ac_var'}'`
8527                { echo "$as_me:$LINENO: result: $ac_res" >&5
8528 echo "${ECHO_T}$ac_res" >&6; }
8529 if test `eval echo '${'$as_ac_var'}'` = yes; then
8530   cat >>confdefs.h <<_ACEOF
8531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8532 _ACEOF
8533
8534 fi
8535 done
8536
8537
8538 for ac_func in __nss_configure_lookup
8539 do
8540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8554 #define $ac_func innocuous_$ac_func
8555
8556 /* System header to define __stub macros and hopefully few prototypes,
8557     which can conflict with char $ac_func (); below.
8558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8559     <limits.h> exists even on freestanding compilers.  */
8560
8561 #ifdef __STDC__
8562 # include <limits.h>
8563 #else
8564 # include <assert.h>
8565 #endif
8566
8567 #undef $ac_func
8568
8569 /* Override any GCC internal prototype to avoid an error.
8570    Use char because int might match the return type of a GCC
8571    builtin and then its argument prototype would still apply.  */
8572 #ifdef __cplusplus
8573 extern "C"
8574 #endif
8575 char $ac_func ();
8576 /* The GNU C library defines this for functions which it implements
8577     to always fail with ENOSYS.  Some functions are actually named
8578     something starting with __ and the normal name is an alias.  */
8579 #if defined __stub_$ac_func || defined __stub___$ac_func
8580 choke me
8581 #endif
8582
8583 int
8584 main ()
8585 {
8586 return $ac_func ();
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (ac_try="$ac_link"
8593 case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_link") 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } && {
8605          test -z "$ac_c_werror_flag" ||
8606          test ! -s conftest.err
8607        } && test -s conftest$ac_exeext &&
8608        $as_test_x conftest$ac_exeext; then
8609   eval "$as_ac_var=yes"
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614         eval "$as_ac_var=no"
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8618       conftest$ac_exeext conftest.$ac_ext
8619 fi
8620 ac_res=`eval echo '${'$as_ac_var'}'`
8621                { echo "$as_me:$LINENO: result: $ac_res" >&5
8622 echo "${ECHO_T}$ac_res" >&6; }
8623 if test `eval echo '${'$as_ac_var'}'` = yes; then
8624   cat >>confdefs.h <<_ACEOF
8625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8626 _ACEOF
8627
8628 fi
8629 done
8630
8631
8632
8633 # replace getopt_long() function if it is not on the system
8634
8635 for ac_func in getopt_long
8636 do
8637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643   cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8651 #define $ac_func innocuous_$ac_func
8652
8653 /* System header to define __stub macros and hopefully few prototypes,
8654     which can conflict with char $ac_func (); below.
8655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656     <limits.h> exists even on freestanding compilers.  */
8657
8658 #ifdef __STDC__
8659 # include <limits.h>
8660 #else
8661 # include <assert.h>
8662 #endif
8663
8664 #undef $ac_func
8665
8666 /* Override any GCC internal prototype to avoid an error.
8667    Use char because int might match the return type of a GCC
8668    builtin and then its argument prototype would still apply.  */
8669 #ifdef __cplusplus
8670 extern "C"
8671 #endif
8672 char $ac_func ();
8673 /* The GNU C library defines this for functions which it implements
8674     to always fail with ENOSYS.  Some functions are actually named
8675     something starting with __ and the normal name is an alias.  */
8676 #if defined __stub_$ac_func || defined __stub___$ac_func
8677 choke me
8678 #endif
8679
8680 int
8681 main ()
8682 {
8683 return $ac_func ();
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (ac_try="$ac_link"
8690 case "(($ac_try" in
8691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692   *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695   (eval "$ac_link") 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } && {
8702          test -z "$ac_c_werror_flag" ||
8703          test ! -s conftest.err
8704        } && test -s conftest$ac_exeext &&
8705        $as_test_x conftest$ac_exeext; then
8706   eval "$as_ac_var=yes"
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711         eval "$as_ac_var=no"
8712 fi
8713
8714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8715       conftest$ac_exeext conftest.$ac_ext
8716 fi
8717 ac_res=`eval echo '${'$as_ac_var'}'`
8718                { echo "$as_me:$LINENO: result: $ac_res" >&5
8719 echo "${ECHO_T}$ac_res" >&6; }
8720 if test `eval echo '${'$as_ac_var'}'` = yes; then
8721   cat >>confdefs.h <<_ACEOF
8722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8723 _ACEOF
8724
8725 else
8726   case " $LIBOBJS " in
8727   *" $ac_func.$ac_objext "* ) ;;
8728   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8729  ;;
8730 esac
8731
8732 fi
8733 done
8734
8735
8736 # replace daemon() function if it is not on the system
8737 { echo "$as_me:$LINENO: checking for library containing daemon" >&5
8738 echo $ECHO_N "checking for library containing daemon... $ECHO_C" >&6; }
8739 if test "${ac_cv_search_daemon+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   ac_func_search_save_LIBS=$LIBS
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750 /* Override any GCC internal prototype to avoid an error.
8751    Use char because int might match the return type of a GCC
8752    builtin and then its argument prototype would still apply.  */
8753 #ifdef __cplusplus
8754 extern "C"
8755 #endif
8756 char daemon ();
8757 int
8758 main ()
8759 {
8760 return daemon ();
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 for ac_lib in '' bsd; do
8766   if test -z "$ac_lib"; then
8767     ac_res="none required"
8768   else
8769     ac_res=-l$ac_lib
8770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8771   fi
8772   rm -f conftest.$ac_objext conftest$ac_exeext
8773 if { (ac_try="$ac_link"
8774 case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_link") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && {
8786          test -z "$ac_c_werror_flag" ||
8787          test ! -s conftest.err
8788        } && test -s conftest$ac_exeext &&
8789        $as_test_x conftest$ac_exeext; then
8790   ac_cv_search_daemon=$ac_res
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795
8796 fi
8797
8798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8799       conftest$ac_exeext
8800   if test "${ac_cv_search_daemon+set}" = set; then
8801   break
8802 fi
8803 done
8804 if test "${ac_cv_search_daemon+set}" = set; then
8805   :
8806 else
8807   ac_cv_search_daemon=no
8808 fi
8809 rm conftest.$ac_ext
8810 LIBS=$ac_func_search_save_LIBS
8811 fi
8812 { echo "$as_me:$LINENO: result: $ac_cv_search_daemon" >&5
8813 echo "${ECHO_T}$ac_cv_search_daemon" >&6; }
8814 ac_res=$ac_cv_search_daemon
8815 if test "$ac_res" != no; then
8816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8817
8818 fi
8819
8820
8821 for ac_func in daemon
8822 do
8823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8837 #define $ac_func innocuous_$ac_func
8838
8839 /* System header to define __stub macros and hopefully few prototypes,
8840     which can conflict with char $ac_func (); below.
8841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8842     <limits.h> exists even on freestanding compilers.  */
8843
8844 #ifdef __STDC__
8845 # include <limits.h>
8846 #else
8847 # include <assert.h>
8848 #endif
8849
8850 #undef $ac_func
8851
8852 /* Override any GCC internal prototype to avoid an error.
8853    Use char because int might match the return type of a GCC
8854    builtin and then its argument prototype would still apply.  */
8855 #ifdef __cplusplus
8856 extern "C"
8857 #endif
8858 char $ac_func ();
8859 /* The GNU C library defines this for functions which it implements
8860     to always fail with ENOSYS.  Some functions are actually named
8861     something starting with __ and the normal name is an alias.  */
8862 #if defined __stub_$ac_func || defined __stub___$ac_func
8863 choke me
8864 #endif
8865
8866 int
8867 main ()
8868 {
8869 return $ac_func ();
8870   ;
8871   return 0;
8872 }
8873 _ACEOF
8874 rm -f conftest.$ac_objext conftest$ac_exeext
8875 if { (ac_try="$ac_link"
8876 case "(($ac_try" in
8877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878   *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881   (eval "$ac_link") 2>conftest.er1
8882   ac_status=$?
8883   grep -v '^ *+' conftest.er1 >conftest.err
8884   rm -f conftest.er1
8885   cat conftest.err >&5
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } && {
8888          test -z "$ac_c_werror_flag" ||
8889          test ! -s conftest.err
8890        } && test -s conftest$ac_exeext &&
8891        $as_test_x conftest$ac_exeext; then
8892   eval "$as_ac_var=yes"
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897         eval "$as_ac_var=no"
8898 fi
8899
8900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8901       conftest$ac_exeext conftest.$ac_ext
8902 fi
8903 ac_res=`eval echo '${'$as_ac_var'}'`
8904                { echo "$as_me:$LINENO: result: $ac_res" >&5
8905 echo "${ECHO_T}$ac_res" >&6; }
8906 if test `eval echo '${'$as_ac_var'}'` = yes; then
8907   cat >>confdefs.h <<_ACEOF
8908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8909 _ACEOF
8910
8911 else
8912   case " $LIBOBJS " in
8913   *" $ac_func.$ac_objext "* ) ;;
8914   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8915  ;;
8916 esac
8917
8918 fi
8919 done
8920
8921
8922 # replace ether_ntoa_r() and ether_aton_r() if they are not found
8923
8924
8925 for ac_func in ether_aton_r ether_ntoa_r
8926 do
8927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8941 #define $ac_func innocuous_$ac_func
8942
8943 /* System header to define __stub macros and hopefully few prototypes,
8944     which can conflict with char $ac_func (); below.
8945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8946     <limits.h> exists even on freestanding compilers.  */
8947
8948 #ifdef __STDC__
8949 # include <limits.h>
8950 #else
8951 # include <assert.h>
8952 #endif
8953
8954 #undef $ac_func
8955
8956 /* Override any GCC internal prototype to avoid an error.
8957    Use char because int might match the return type of a GCC
8958    builtin and then its argument prototype would still apply.  */
8959 #ifdef __cplusplus
8960 extern "C"
8961 #endif
8962 char $ac_func ();
8963 /* The GNU C library defines this for functions which it implements
8964     to always fail with ENOSYS.  Some functions are actually named
8965     something starting with __ and the normal name is an alias.  */
8966 #if defined __stub_$ac_func || defined __stub___$ac_func
8967 choke me
8968 #endif
8969
8970 int
8971 main ()
8972 {
8973 return $ac_func ();
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (ac_try="$ac_link"
8980 case "(($ac_try" in
8981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982   *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985   (eval "$ac_link") 2>conftest.er1
8986   ac_status=$?
8987   grep -v '^ *+' conftest.er1 >conftest.err
8988   rm -f conftest.er1
8989   cat conftest.err >&5
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } && {
8992          test -z "$ac_c_werror_flag" ||
8993          test ! -s conftest.err
8994        } && test -s conftest$ac_exeext &&
8995        $as_test_x conftest$ac_exeext; then
8996   eval "$as_ac_var=yes"
8997 else
8998   echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001         eval "$as_ac_var=no"
9002 fi
9003
9004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005       conftest$ac_exeext conftest.$ac_ext
9006 fi
9007 ac_res=`eval echo '${'$as_ac_var'}'`
9008                { echo "$as_me:$LINENO: result: $ac_res" >&5
9009 echo "${ECHO_T}$ac_res" >&6; }
9010 if test `eval echo '${'$as_ac_var'}'` = yes; then
9011   cat >>confdefs.h <<_ACEOF
9012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9013 _ACEOF
9014
9015 else
9016
9017
9018 for ac_func in ether_aton ether_ntoa
9019 do
9020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9034 #define $ac_func innocuous_$ac_func
9035
9036 /* System header to define __stub macros and hopefully few prototypes,
9037     which can conflict with char $ac_func (); below.
9038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039     <limits.h> exists even on freestanding compilers.  */
9040
9041 #ifdef __STDC__
9042 # include <limits.h>
9043 #else
9044 # include <assert.h>
9045 #endif
9046
9047 #undef $ac_func
9048
9049 /* Override any GCC internal prototype to avoid an error.
9050    Use char because int might match the return type of a GCC
9051    builtin and then its argument prototype would still apply.  */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char $ac_func ();
9056 /* The GNU C library defines this for functions which it implements
9057     to always fail with ENOSYS.  Some functions are actually named
9058     something starting with __ and the normal name is an alias.  */
9059 #if defined __stub_$ac_func || defined __stub___$ac_func
9060 choke me
9061 #endif
9062
9063 int
9064 main ()
9065 {
9066 return $ac_func ();
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9073 case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078   (eval "$ac_link") 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } && {
9085          test -z "$ac_c_werror_flag" ||
9086          test ! -s conftest.err
9087        } && test -s conftest$ac_exeext &&
9088        $as_test_x conftest$ac_exeext; then
9089   eval "$as_ac_var=yes"
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094         eval "$as_ac_var=no"
9095 fi
9096
9097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9098       conftest$ac_exeext conftest.$ac_ext
9099 fi
9100 ac_res=`eval echo '${'$as_ac_var'}'`
9101                { echo "$as_me:$LINENO: result: $ac_res" >&5
9102 echo "${ECHO_T}$ac_res" >&6; }
9103 if test `eval echo '${'$as_ac_var'}'` = yes; then
9104   cat >>confdefs.h <<_ACEOF
9105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9106 _ACEOF
9107
9108 fi
9109 done
9110
9111                                            case " $LIBOBJS " in
9112   *" ether.$ac_objext "* ) ;;
9113   *) LIBOBJS="$LIBOBJS ether.$ac_objext"
9114  ;;
9115 esac
9116
9117 fi
9118 done
9119
9120
9121 # checks for types
9122 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9123 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9124 if test "${ac_cv_c_const+set}" = set; then
9125   echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127   cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h.  */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h.  */
9133
9134 int
9135 main ()
9136 {
9137 /* FIXME: Include the comments suggested by Paul. */
9138 #ifndef __cplusplus
9139   /* Ultrix mips cc rejects this.  */
9140   typedef int charset[2];
9141   const charset cs;
9142   /* SunOS 4.1.1 cc rejects this.  */
9143   char const *const *pcpcc;
9144   char **ppc;
9145   /* NEC SVR4.0.2 mips cc rejects this.  */
9146   struct point {int x, y;};
9147   static struct point const zero = {0,0};
9148   /* AIX XL C 1.02.0.0 rejects this.
9149      It does not let you subtract one const X* pointer from another in
9150      an arm of an if-expression whose if-part is not a constant
9151      expression */
9152   const char *g = "string";
9153   pcpcc = &g + (g ? g-g : 0);
9154   /* HPUX 7.0 cc rejects these. */
9155   ++pcpcc;
9156   ppc = (char**) pcpcc;
9157   pcpcc = (char const *const *) ppc;
9158   { /* SCO 3.2v4 cc rejects this.  */
9159     char *t;
9160     char const *s = 0 ? (char *) 0 : (char const *) 0;
9161
9162     *t++ = 0;
9163     if (s) return 0;
9164   }
9165   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9166     int x[] = {25, 17};
9167     const int *foo = &x[0];
9168     ++foo;
9169   }
9170   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9171     typedef const int *iptr;
9172     iptr p = 0;
9173     ++p;
9174   }
9175   { /* AIX XL C 1.02.0.0 rejects this saying
9176        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9177     struct s { int j; const int *ap[3]; };
9178     struct s *b; b->j = 5;
9179   }
9180   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9181     const int foo = 10;
9182     if (!foo) return 0;
9183   }
9184   return !cs[0] && !zero.x;
9185 #endif
9186
9187   ;
9188   return 0;
9189 }
9190 _ACEOF
9191 rm -f conftest.$ac_objext
9192 if { (ac_try="$ac_compile"
9193 case "(($ac_try" in
9194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195   *) ac_try_echo=$ac_try;;
9196 esac
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198   (eval "$ac_compile") 2>conftest.er1
9199   ac_status=$?
9200   grep -v '^ *+' conftest.er1 >conftest.err
9201   rm -f conftest.er1
9202   cat conftest.err >&5
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } && {
9205          test -z "$ac_c_werror_flag" ||
9206          test ! -s conftest.err
9207        } && test -s conftest.$ac_objext; then
9208   ac_cv_c_const=yes
9209 else
9210   echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213         ac_cv_c_const=no
9214 fi
9215
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217 fi
9218 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9219 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9220 if test $ac_cv_c_const = no; then
9221
9222 cat >>confdefs.h <<\_ACEOF
9223 #define const
9224 _ACEOF
9225
9226 fi
9227
9228 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9229 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9230 if test "${ac_cv_type_signal+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h.  */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h.  */
9239 #include <sys/types.h>
9240 #include <signal.h>
9241
9242 int
9243 main ()
9244 {
9245 return *(signal (0, 0)) (0) == 1;
9246   ;
9247   return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (ac_try="$ac_compile"
9252 case "(($ac_try" in
9253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254   *) ac_try_echo=$ac_try;;
9255 esac
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257   (eval "$ac_compile") 2>conftest.er1
9258   ac_status=$?
9259   grep -v '^ *+' conftest.er1 >conftest.err
9260   rm -f conftest.er1
9261   cat conftest.err >&5
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); } && {
9264          test -z "$ac_c_werror_flag" ||
9265          test ! -s conftest.err
9266        } && test -s conftest.$ac_objext; then
9267   ac_cv_type_signal=int
9268 else
9269   echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272         ac_cv_type_signal=void
9273 fi
9274
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9278 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9279
9280 cat >>confdefs.h <<_ACEOF
9281 #define RETSIGTYPE $ac_cv_type_signal
9282 _ACEOF
9283
9284
9285 { echo "$as_me:$LINENO: checking for mode_t" >&5
9286 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9287 if test "${ac_cv_type_mode_t+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h.  */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h.  */
9296 $ac_includes_default
9297 typedef mode_t ac__type_new_;
9298 int
9299 main ()
9300 {
9301 if ((ac__type_new_ *) 0)
9302   return 0;
9303 if (sizeof (ac__type_new_))
9304   return 0;
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9311 case "(($ac_try" in
9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313   *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316   (eval "$ac_compile") 2>conftest.er1
9317   ac_status=$?
9318   grep -v '^ *+' conftest.er1 >conftest.err
9319   rm -f conftest.er1
9320   cat conftest.err >&5
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } && {
9323          test -z "$ac_c_werror_flag" ||
9324          test ! -s conftest.err
9325        } && test -s conftest.$ac_objext; then
9326   ac_cv_type_mode_t=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331         ac_cv_type_mode_t=no
9332 fi
9333
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9335 fi
9336 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9337 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9338 if test $ac_cv_type_mode_t = yes; then
9339   :
9340 else
9341
9342 cat >>confdefs.h <<_ACEOF
9343 #define mode_t int
9344 _ACEOF
9345
9346 fi
9347
9348 { echo "$as_me:$LINENO: checking for size_t" >&5
9349 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9350 if test "${ac_cv_type_size_t+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359 $ac_includes_default
9360 typedef size_t ac__type_new_;
9361 int
9362 main ()
9363 {
9364 if ((ac__type_new_ *) 0)
9365   return 0;
9366 if (sizeof (ac__type_new_))
9367   return 0;
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext
9373 if { (ac_try="$ac_compile"
9374 case "(($ac_try" in
9375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376   *) ac_try_echo=$ac_try;;
9377 esac
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379   (eval "$ac_compile") 2>conftest.er1
9380   ac_status=$?
9381   grep -v '^ *+' conftest.er1 >conftest.err
9382   rm -f conftest.er1
9383   cat conftest.err >&5
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); } && {
9386          test -z "$ac_c_werror_flag" ||
9387          test ! -s conftest.err
9388        } && test -s conftest.$ac_objext; then
9389   ac_cv_type_size_t=yes
9390 else
9391   echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394         ac_cv_type_size_t=no
9395 fi
9396
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 fi
9399 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9400 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9401 if test $ac_cv_type_size_t = yes; then
9402   :
9403 else
9404
9405 cat >>confdefs.h <<_ACEOF
9406 #define size_t unsigned int
9407 _ACEOF
9408
9409 fi
9410
9411 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9412 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9413 if test "${ac_cv_type_uid_t+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 #include <sys/types.h>
9423
9424 _ACEOF
9425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9426   $EGREP "uid_t" >/dev/null 2>&1; then
9427   ac_cv_type_uid_t=yes
9428 else
9429   ac_cv_type_uid_t=no
9430 fi
9431 rm -f conftest*
9432
9433 fi
9434 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9435 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9436 if test $ac_cv_type_uid_t = no; then
9437
9438 cat >>confdefs.h <<\_ACEOF
9439 #define uid_t int
9440 _ACEOF
9441
9442
9443 cat >>confdefs.h <<\_ACEOF
9444 #define gid_t int
9445 _ACEOF
9446
9447 fi
9448
9449
9450 # check for support for the __thread keyword
9451 { echo "$as_me:$LINENO: checking whether $CC supports '__thread'" >&5
9452 echo $ECHO_N "checking whether $CC supports '__thread'... $ECHO_C" >&6; }
9453 if test "${mn_cv_c___thread_supported+set}" = set; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462 static __thread i;
9463 int
9464 main ()
9465 {
9466
9467   ;
9468   return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext
9472 if { (ac_try="$ac_compile"
9473 case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_compile") 2>conftest.er1
9479   ac_status=$?
9480   grep -v '^ *+' conftest.er1 >conftest.err
9481   rm -f conftest.er1
9482   cat conftest.err >&5
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } && {
9485          test -z "$ac_c_werror_flag" ||
9486          test ! -s conftest.err
9487        } && test -s conftest.$ac_objext; then
9488   mn_cv_c___thread_supported=yes
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493         mn_cv_c___thread_supported=no
9494 fi
9495
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 fi
9498 { echo "$as_me:$LINENO: result: $mn_cv_c___thread_supported" >&5
9499 echo "${ECHO_T}$mn_cv_c___thread_supported" >&6; }
9500 if test $mn_cv_c___thread_supported != yes
9501 then
9502   { echo "$as_me:$LINENO: WARNING: $CC does not support '__thread' keyword" >&5
9503 echo "$as_me: WARNING: $CC does not support '__thread' keyword" >&2;}
9504
9505 cat >>confdefs.h <<\_ACEOF
9506 #define __thread
9507 _ACEOF
9508
9509 fi
9510
9511 # check for support for the struct ether_addr structure
9512 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9513 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
9514 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523
9524     #include <sys/socket.h>
9525     #include <net/if.h>
9526     #include <netinet/in.h>
9527     #include <netinet/if_ether.h>
9528
9529 typedef struct ether_addr ac__type_new_;
9530 int
9531 main ()
9532 {
9533 if ((ac__type_new_ *) 0)
9534   return 0;
9535 if (sizeof (ac__type_new_))
9536   return 0;
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (ac_try="$ac_compile"
9543 case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548   (eval "$ac_compile") 2>conftest.er1
9549   ac_status=$?
9550   grep -v '^ *+' conftest.er1 >conftest.err
9551   rm -f conftest.er1
9552   cat conftest.err >&5
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } && {
9555          test -z "$ac_c_werror_flag" ||
9556          test ! -s conftest.err
9557        } && test -s conftest.$ac_objext; then
9558   ac_cv_type_struct_ether_addr=yes
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563         ac_cv_type_struct_ether_addr=no
9564 fi
9565
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9569 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
9570 if test $ac_cv_type_struct_ether_addr = yes; then
9571
9572 cat >>confdefs.h <<\_ACEOF
9573 #define HAVE_STRUCT_ETHER_ADDR 1
9574 _ACEOF
9575
9576 fi
9577
9578
9579 # check to see if socklen_t is defined
9580 { echo "$as_me:$LINENO: checking for socklen_t" >&5
9581 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
9582 if test "${ac_cv_type_socklen_t+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585   cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591
9592     #include <sys/types.h>
9593     #include <sys/socket.h>
9594
9595 typedef socklen_t ac__type_new_;
9596 int
9597 main ()
9598 {
9599 if ((ac__type_new_ *) 0)
9600   return 0;
9601 if (sizeof (ac__type_new_))
9602   return 0;
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 rm -f conftest.$ac_objext
9608 if { (ac_try="$ac_compile"
9609 case "(($ac_try" in
9610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611   *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614   (eval "$ac_compile") 2>conftest.er1
9615   ac_status=$?
9616   grep -v '^ *+' conftest.er1 >conftest.err
9617   rm -f conftest.er1
9618   cat conftest.err >&5
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); } && {
9621          test -z "$ac_c_werror_flag" ||
9622          test ! -s conftest.err
9623        } && test -s conftest.$ac_objext; then
9624   ac_cv_type_socklen_t=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629         ac_cv_type_socklen_t=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633 fi
9634 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
9635 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
9636 if test $ac_cv_type_socklen_t = yes; then
9637   :
9638 else
9639
9640 cat >>confdefs.h <<\_ACEOF
9641 #define socklen_t size_t
9642 _ACEOF
9643
9644 fi
9645
9646
9647 # check to see if struct sockaddr_storage is defined
9648 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9649 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
9650 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659
9660     #include <sys/types.h>
9661     #include <sys/socket.h>
9662
9663 typedef struct sockaddr_storage ac__type_new_;
9664 int
9665 main ()
9666 {
9667 if ((ac__type_new_ *) 0)
9668   return 0;
9669 if (sizeof (ac__type_new_))
9670   return 0;
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext
9676 if { (ac_try="$ac_compile"
9677 case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_compile") 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } && {
9689          test -z "$ac_c_werror_flag" ||
9690          test ! -s conftest.err
9691        } && test -s conftest.$ac_objext; then
9692   ac_cv_type_struct_sockaddr_storage=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697         ac_cv_type_struct_sockaddr_storage=no
9698 fi
9699
9700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9703 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
9704 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9705   :
9706 else
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define sockaddr_storage sockaddr_in
9710 _ACEOF
9711
9712 fi
9713
9714
9715 # check for support for the struct ucred structure
9716 { echo "$as_me:$LINENO: checking for struct ucred" >&5
9717 echo $ECHO_N "checking for struct ucred... $ECHO_C" >&6; }
9718 if test "${ac_cv_type_struct_ucred+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727
9728     #include <sys/socket.h>
9729     #include <sys/un.h>
9730     #include <sys/types.h>
9731
9732 typedef struct ucred ac__type_new_;
9733 int
9734 main ()
9735 {
9736 if ((ac__type_new_ *) 0)
9737   return 0;
9738 if (sizeof (ac__type_new_))
9739   return 0;
9740   ;
9741   return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext
9745 if { (ac_try="$ac_compile"
9746 case "(($ac_try" in
9747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748   *) ac_try_echo=$ac_try;;
9749 esac
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751   (eval "$ac_compile") 2>conftest.er1
9752   ac_status=$?
9753   grep -v '^ *+' conftest.er1 >conftest.err
9754   rm -f conftest.er1
9755   cat conftest.err >&5
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } && {
9758          test -z "$ac_c_werror_flag" ||
9759          test ! -s conftest.err
9760        } && test -s conftest.$ac_objext; then
9761   ac_cv_type_struct_ucred=yes
9762 else
9763   echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766         ac_cv_type_struct_ucred=no
9767 fi
9768
9769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9770 fi
9771 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ucred" >&5
9772 echo "${ECHO_T}$ac_cv_type_struct_ucred" >&6; }
9773 if test $ac_cv_type_struct_ucred = yes; then
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_STRUCT_UCRED 1
9777 _ACEOF
9778
9779 fi
9780
9781
9782 { echo "$as_me:$LINENO: checking for sasl_interact_t" >&5
9783 echo $ECHO_N "checking for sasl_interact_t... $ECHO_C" >&6; }
9784 if test "${ac_cv_type_sasl_interact_t+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 $ac_includes_default
9794 typedef sasl_interact_t ac__type_new_;
9795 int
9796 main ()
9797 {
9798 if ((ac__type_new_ *) 0)
9799   return 0;
9800 if (sizeof (ac__type_new_))
9801   return 0;
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9808 case "(($ac_try" in
9809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810   *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813   (eval "$ac_compile") 2>conftest.er1
9814   ac_status=$?
9815   grep -v '^ *+' conftest.er1 >conftest.err
9816   rm -f conftest.er1
9817   cat conftest.err >&5
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); } && {
9820          test -z "$ac_c_werror_flag" ||
9821          test ! -s conftest.err
9822        } && test -s conftest.$ac_objext; then
9823   ac_cv_type_sasl_interact_t=yes
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828         ac_cv_type_sasl_interact_t=no
9829 fi
9830
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 fi
9833 { echo "$as_me:$LINENO: result: $ac_cv_type_sasl_interact_t" >&5
9834 echo "${ECHO_T}$ac_cv_type_sasl_interact_t" >&6; }
9835 if test $ac_cv_type_sasl_interact_t = yes; then
9836
9837 cat >>confdefs.h <<\_ACEOF
9838 #define HAVE_SASL_INTERACT_T 1
9839 _ACEOF
9840
9841 fi
9842
9843
9844 # checks for LDAP library
9845 save_LIBS="$LIBS"
9846 LIBS="$nslcd_LIBS"
9847 save_CFLAGS="$CFLAGS"
9848
9849 # check threading stuff
9850
9851
9852
9853 ac_ext=c
9854 ac_cpp='$CPP $CPPFLAGS'
9855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9858
9859 acx_pthread_ok=no
9860
9861 # We used to check for pthread.h first, but this fails if pthread.h
9862 # requires special compiler flags (e.g. on True64 or Sequent).
9863 # It gets checked for in the link test anyway.
9864
9865 # First of all, check if the user has set any of the PTHREAD_LIBS,
9866 # etcetera environment variables, and if threads linking works using
9867 # them:
9868 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9869         save_CFLAGS="$CFLAGS"
9870         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9871         save_LIBS="$LIBS"
9872         LIBS="$PTHREAD_LIBS $LIBS"
9873         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9874 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
9875         cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881
9882 /* Override any GCC internal prototype to avoid an error.
9883    Use char because int might match the return type of a GCC
9884    builtin and then its argument prototype would still apply.  */
9885 #ifdef __cplusplus
9886 extern "C"
9887 #endif
9888 char pthread_join ();
9889 int
9890 main ()
9891 {
9892 return pthread_join ();
9893   ;
9894   return 0;
9895 }
9896 _ACEOF
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9899 case "(($ac_try" in
9900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901   *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904   (eval "$ac_link") 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } && {
9911          test -z "$ac_c_werror_flag" ||
9912          test ! -s conftest.err
9913        } && test -s conftest$ac_exeext &&
9914        $as_test_x conftest$ac_exeext; then
9915   acx_pthread_ok=yes
9916 else
9917   echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920
9921 fi
9922
9923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9924       conftest$ac_exeext conftest.$ac_ext
9925         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
9926 echo "${ECHO_T}$acx_pthread_ok" >&6; }
9927         if test x"$acx_pthread_ok" = xno; then
9928                 PTHREAD_LIBS=""
9929                 PTHREAD_CFLAGS=""
9930         fi
9931         LIBS="$save_LIBS"
9932         CFLAGS="$save_CFLAGS"
9933 fi
9934
9935 # We must check for the threads library under a number of different
9936 # names; the ordering is very important because some systems
9937 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9938 # libraries is broken (non-POSIX).
9939
9940 # Create a list of thread flags to try.  Items starting with a "-" are
9941 # C compiler flags, and other items are library names, except for "none"
9942 # which indicates that we try without any flags at all, and "pthread-config"
9943 # which is a program returning the flags for the Pth emulation library.
9944
9945 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9946
9947 # The ordering *is* (sometimes) important.  Some notes on the
9948 # individual items follow:
9949
9950 # pthreads: AIX (must check this before -lpthread)
9951 # none: in case threads are in libc; should be tried before -Kthread and
9952 #       other compiler flags to prevent continual compiler warnings
9953 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9954 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9955 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9956 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9957 # -pthreads: Solaris/gcc
9958 # -mthreads: Mingw32/gcc, Lynx/gcc
9959 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9960 #      doesn't hurt to check since this sometimes defines pthreads too;
9961 #      also defines -D_REENTRANT)
9962 #      ... -mt is also the pthreads flag for HP/aCC
9963 # pthread: Linux, etcetera
9964 # --thread-safe: KAI C++
9965 # pthread-config: use pthread-config program (for GNU Pth library)
9966
9967 case "${host_cpu}-${host_os}" in
9968         *solaris*)
9969
9970         # On Solaris (at least, for some versions), libc contains stubbed
9971         # (non-functional) versions of the pthreads routines, so link-based
9972         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9973         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9974         # a function called by this macro, so we could check for that, but
9975         # who knows whether they'll stub that too in a future libc.)  So,
9976         # we'll just look for -pthreads and -lpthread first:
9977
9978         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
9979         ;;
9980 esac
9981
9982 if test x"$acx_pthread_ok" = xno; then
9983 for flag in $acx_pthread_flags; do
9984
9985         case $flag in
9986                 none)
9987                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
9988 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
9989                 ;;
9990
9991                 -*)
9992                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
9993 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
9994                 PTHREAD_CFLAGS="$flag"
9995                 ;;
9996
9997                 pthread-config)
9998                 # Extract the first word of "pthread-config", so it can be a program name with args.
9999 set dummy pthread-config; ac_word=$2
10000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10002 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   if test -n "$acx_pthread_config"; then
10006   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
10007 else
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011   IFS=$as_save_IFS
10012   test -z "$as_dir" && as_dir=.
10013   for ac_exec_ext in '' $ac_executable_extensions; do
10014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015     ac_cv_prog_acx_pthread_config="yes"
10016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10017     break 2
10018   fi
10019 done
10020 done
10021 IFS=$as_save_IFS
10022
10023   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
10024 fi
10025 fi
10026 acx_pthread_config=$ac_cv_prog_acx_pthread_config
10027 if test -n "$acx_pthread_config"; then
10028   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
10029 echo "${ECHO_T}$acx_pthread_config" >&6; }
10030 else
10031   { echo "$as_me:$LINENO: result: no" >&5
10032 echo "${ECHO_T}no" >&6; }
10033 fi
10034
10035
10036                 if test x"$acx_pthread_config" = xno; then continue; fi
10037                 PTHREAD_CFLAGS="`pthread-config --cflags`"
10038                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10039                 ;;
10040
10041                 *)
10042                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
10043 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
10044                 PTHREAD_LIBS="-l$flag"
10045                 ;;
10046         esac
10047
10048         save_LIBS="$LIBS"
10049         save_CFLAGS="$CFLAGS"
10050         LIBS="$PTHREAD_LIBS $LIBS"
10051         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10052
10053         # Check for various functions.  We must include pthread.h,
10054         # since some functions may be macros.  (On the Sequent, we
10055         # need a special flag -Kthread to make this header compile.)
10056         # We check for pthread_join because it is in -lpthread on IRIX
10057         # while pthread_create is in libc.  We check for pthread_attr_init
10058         # due to DEC craziness with -lpthreads.  We check for
10059         # pthread_cleanup_push because it is one of the few pthread
10060         # functions on Solaris that doesn't have a non-functional libc stub.
10061         # We try pthread_create on general principles.
10062         cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h.  */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h.  */
10068 #include <pthread.h>
10069 int
10070 main ()
10071 {
10072 pthread_t th; pthread_join(th, 0);
10073                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
10074                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (ac_try="$ac_link"
10081 case "(($ac_try" in
10082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083   *) ac_try_echo=$ac_try;;
10084 esac
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086   (eval "$ac_link") 2>conftest.er1
10087   ac_status=$?
10088   grep -v '^ *+' conftest.er1 >conftest.err
10089   rm -f conftest.er1
10090   cat conftest.err >&5
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); } && {
10093          test -z "$ac_c_werror_flag" ||
10094          test ! -s conftest.err
10095        } && test -s conftest$ac_exeext &&
10096        $as_test_x conftest$ac_exeext; then
10097   acx_pthread_ok=yes
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102
10103 fi
10104
10105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10106       conftest$ac_exeext conftest.$ac_ext
10107
10108         LIBS="$save_LIBS"
10109         CFLAGS="$save_CFLAGS"
10110
10111         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
10112 echo "${ECHO_T}$acx_pthread_ok" >&6; }
10113         if test "x$acx_pthread_ok" = xyes; then
10114                 break;
10115         fi
10116
10117         PTHREAD_LIBS=""
10118         PTHREAD_CFLAGS=""
10119 done
10120 fi
10121
10122 # Various other checks:
10123 if test "x$acx_pthread_ok" = xyes; then
10124         save_LIBS="$LIBS"
10125         LIBS="$PTHREAD_LIBS $LIBS"
10126         save_CFLAGS="$CFLAGS"
10127         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10128
10129         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10130         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
10131 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
10132         attr_name=unknown
10133         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10134             cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140 #include <pthread.h>
10141 int
10142 main ()
10143 {
10144 int attr=$attr; return attr;
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153   *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156   (eval "$ac_link") 2>conftest.er1
10157   ac_status=$?
10158   grep -v '^ *+' conftest.er1 >conftest.err
10159   rm -f conftest.er1
10160   cat conftest.err >&5
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); } && {
10163          test -z "$ac_c_werror_flag" ||
10164          test ! -s conftest.err
10165        } && test -s conftest$ac_exeext &&
10166        $as_test_x conftest$ac_exeext; then
10167   attr_name=$attr; break
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172
10173 fi
10174
10175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10176       conftest$ac_exeext conftest.$ac_ext
10177         done
10178         { echo "$as_me:$LINENO: result: $attr_name" >&5
10179 echo "${ECHO_T}$attr_name" >&6; }
10180         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10181
10182 cat >>confdefs.h <<_ACEOF
10183 #define PTHREAD_CREATE_JOINABLE $attr_name
10184 _ACEOF
10185
10186         fi
10187
10188         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
10189 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
10190         flag=no
10191         case "${host_cpu}-${host_os}" in
10192             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
10193             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
10194         esac
10195         { echo "$as_me:$LINENO: result: ${flag}" >&5
10196 echo "${ECHO_T}${flag}" >&6; }
10197         if test "x$flag" != xno; then
10198             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10199         fi
10200
10201         LIBS="$save_LIBS"
10202         CFLAGS="$save_CFLAGS"
10203
10204         # More AIX lossage: must compile with xlc_r or cc_r
10205         if test x"$GCC" != xyes; then
10206           for ac_prog in xlc_r cc_r
10207 do
10208   # Extract the first word of "$ac_prog", so it can be a program name with args.
10209 set dummy $ac_prog; ac_word=$2
10210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10212 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   if test -n "$PTHREAD_CC"; then
10216   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10217 else
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10220 do
10221   IFS=$as_save_IFS
10222   test -z "$as_dir" && as_dir=.
10223   for ac_exec_ext in '' $ac_executable_extensions; do
10224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225     ac_cv_prog_PTHREAD_CC="$ac_prog"
10226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227     break 2
10228   fi
10229 done
10230 done
10231 IFS=$as_save_IFS
10232
10233 fi
10234 fi
10235 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10236 if test -n "$PTHREAD_CC"; then
10237   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
10238 echo "${ECHO_T}$PTHREAD_CC" >&6; }
10239 else
10240   { echo "$as_me:$LINENO: result: no" >&5
10241 echo "${ECHO_T}no" >&6; }
10242 fi
10243
10244
10245   test -n "$PTHREAD_CC" && break
10246 done
10247 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
10248
10249         else
10250           PTHREAD_CC=$CC
10251         fi
10252 else
10253         PTHREAD_CC="$CC"
10254 fi
10255
10256
10257
10258
10259
10260 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10261 if test x"$acx_pthread_ok" = xyes; then
10262
10263 cat >>confdefs.h <<\_ACEOF
10264 #define HAVE_PTHREAD 1
10265 _ACEOF
10266
10267         :
10268 else
10269         acx_pthread_ok=no
10270         { { echo "$as_me:$LINENO: error: no support for pthreads" >&5
10271 echo "$as_me: error: no support for pthreads" >&2;}
10272    { (exit 1); exit 1; }; }
10273 fi
10274 ac_ext=c
10275 ac_cpp='$CPP $CPPFLAGS'
10276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10279
10280
10281
10282 for ac_func in pthread_atfork
10283 do
10284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10298 #define $ac_func innocuous_$ac_func
10299
10300 /* System header to define __stub macros and hopefully few prototypes,
10301     which can conflict with char $ac_func (); below.
10302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303     <limits.h> exists even on freestanding compilers.  */
10304
10305 #ifdef __STDC__
10306 # include <limits.h>
10307 #else
10308 # include <assert.h>
10309 #endif
10310
10311 #undef $ac_func
10312
10313 /* Override any GCC internal prototype to avoid an error.
10314    Use char because int might match the return type of a GCC
10315    builtin and then its argument prototype would still apply.  */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char $ac_func ();
10320 /* The GNU C library defines this for functions which it implements
10321     to always fail with ENOSYS.  Some functions are actually named
10322     something starting with __ and the normal name is an alias.  */
10323 #if defined __stub_$ac_func || defined __stub___$ac_func
10324 choke me
10325 #endif
10326
10327 int
10328 main ()
10329 {
10330 return $ac_func ();
10331   ;
10332   return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_link") 2>conftest.er1
10343   ac_status=$?
10344   grep -v '^ *+' conftest.er1 >conftest.err
10345   rm -f conftest.er1
10346   cat conftest.err >&5
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } && {
10349          test -z "$ac_c_werror_flag" ||
10350          test ! -s conftest.err
10351        } && test -s conftest$ac_exeext &&
10352        $as_test_x conftest$ac_exeext; then
10353   eval "$as_ac_var=yes"
10354 else
10355   echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358         eval "$as_ac_var=no"
10359 fi
10360
10361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10362       conftest$ac_exeext conftest.$ac_ext
10363 fi
10364 ac_res=`eval echo '${'$as_ac_var'}'`
10365                { echo "$as_me:$LINENO: result: $ac_res" >&5
10366 echo "${ECHO_T}$ac_res" >&6; }
10367 if test `eval echo '${'$as_ac_var'}'` = yes; then
10368   cat >>confdefs.h <<_ACEOF
10369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10370 _ACEOF
10371
10372 fi
10373 done
10374
10375
10376 LIBS="$PTHREAD_LIBS $LIBS"
10377 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10378
10379 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
10380 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
10381 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   ac_check_lib_save_LIBS=$LIBS
10385 LIBS="-lgssapi $LIBS $LIBS"
10386 cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h.  */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h.  */
10392
10393 /* Override any GCC internal prototype to avoid an error.
10394    Use char because int might match the return type of a GCC
10395    builtin and then its argument prototype would still apply.  */
10396 #ifdef __cplusplus
10397 extern "C"
10398 #endif
10399 char gss_krb5_ccache_name ();
10400 int
10401 main ()
10402 {
10403 return gss_krb5_ccache_name ();
10404   ;
10405   return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext conftest$ac_exeext
10409 if { (ac_try="$ac_link"
10410 case "(($ac_try" in
10411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412   *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415   (eval "$ac_link") 2>conftest.er1
10416   ac_status=$?
10417   grep -v '^ *+' conftest.er1 >conftest.err
10418   rm -f conftest.er1
10419   cat conftest.err >&5
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } && {
10422          test -z "$ac_c_werror_flag" ||
10423          test ! -s conftest.err
10424        } && test -s conftest$ac_exeext &&
10425        $as_test_x conftest$ac_exeext; then
10426   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431         ac_cv_lib_gssapi_gss_krb5_ccache_name=no
10432 fi
10433
10434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10435       conftest$ac_exeext conftest.$ac_ext
10436 LIBS=$ac_check_lib_save_LIBS
10437 fi
10438 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
10439 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
10440 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
10441   LIBS="-lgssapi $LIBS" found_gssapi_lib=yes
10442 fi
10443
10444 if test -z "$found_gssapi_lib"
10445 then
10446   { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
10447 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
10448 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
10449   echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451   ac_check_lib_save_LIBS=$LIBS
10452 LIBS="-lgssapi_krb5 $LIBS $LIBS"
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459
10460 /* Override any GCC internal prototype to avoid an error.
10461    Use char because int might match the return type of a GCC
10462    builtin and then its argument prototype would still apply.  */
10463 #ifdef __cplusplus
10464 extern "C"
10465 #endif
10466 char gss_krb5_ccache_name ();
10467 int
10468 main ()
10469 {
10470 return gss_krb5_ccache_name ();
10471   ;
10472   return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479   *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482   (eval "$ac_link") 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } && {
10489          test -z "$ac_c_werror_flag" ||
10490          test ! -s conftest.err
10491        } && test -s conftest$ac_exeext &&
10492        $as_test_x conftest$ac_exeext; then
10493   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
10494 else
10495   echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498         ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
10499 fi
10500
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502       conftest$ac_exeext conftest.$ac_ext
10503 LIBS=$ac_check_lib_save_LIBS
10504 fi
10505 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
10506 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
10507 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
10508   LIBS="-lgssapi_krb5 $LIBS"
10509 fi
10510
10511 fi
10512
10513 if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = umich -o $with_ldap_lib = openldap \)
10514 then
10515   { echo "$as_me:$LINENO: checking for library containing ldap_search_ext" >&5
10516 echo $ECHO_N "checking for library containing ldap_search_ext... $ECHO_C" >&6; }
10517 if test "${ac_cv_search_ldap_search_ext+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   ac_func_search_save_LIBS=$LIBS
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527
10528 /* Override any GCC internal prototype to avoid an error.
10529    Use char because int might match the return type of a GCC
10530    builtin and then its argument prototype would still apply.  */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char ldap_search_ext ();
10535 int
10536 main ()
10537 {
10538 return ldap_search_ext ();
10539   ;
10540   return 0;
10541 }
10542 _ACEOF
10543 for ac_lib in '' ldap_r ldap; do
10544   if test -z "$ac_lib"; then
10545     ac_res="none required"
10546   else
10547     ac_res=-l$ac_lib
10548     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10549   fi
10550   rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557   (eval "$ac_link") 2>conftest.er1
10558   ac_status=$?
10559   grep -v '^ *+' conftest.er1 >conftest.err
10560   rm -f conftest.er1
10561   cat conftest.err >&5
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } && {
10564          test -z "$ac_c_werror_flag" ||
10565          test ! -s conftest.err
10566        } && test -s conftest$ac_exeext &&
10567        $as_test_x conftest$ac_exeext; then
10568   ac_cv_search_ldap_search_ext=$ac_res
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573
10574 fi
10575
10576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10577       conftest$ac_exeext
10578   if test "${ac_cv_search_ldap_search_ext+set}" = set; then
10579   break
10580 fi
10581 done
10582 if test "${ac_cv_search_ldap_search_ext+set}" = set; then
10583   :
10584 else
10585   ac_cv_search_ldap_search_ext=no
10586 fi
10587 rm conftest.$ac_ext
10588 LIBS=$ac_func_search_save_LIBS
10589 fi
10590 { echo "$as_me:$LINENO: result: $ac_cv_search_ldap_search_ext" >&5
10591 echo "${ECHO_T}$ac_cv_search_ldap_search_ext" >&6; }
10592 ac_res=$ac_cv_search_ldap_search_ext
10593 if test "$ac_res" != no; then
10594   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10595   found_ldap_lib=yes
10596 fi
10597
10598 fi
10599 if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape5 \)
10600 then
10601   { echo "$as_me:$LINENO: checking for main in -lldap50" >&5
10602 echo $ECHO_N "checking for main in -lldap50... $ECHO_C" >&6; }
10603 if test "${ac_cv_lib_ldap50_main+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lldap50 -lpthread $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h.  */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h.  */
10614
10615
10616 int
10617 main ()
10618 {
10619 return main ();
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (ac_try="$ac_link"
10626 case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_link") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } && {
10638          test -z "$ac_c_werror_flag" ||
10639          test ! -s conftest.err
10640        } && test -s conftest$ac_exeext &&
10641        $as_test_x conftest$ac_exeext; then
10642   ac_cv_lib_ldap50_main=yes
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647         ac_cv_lib_ldap50_main=no
10648 fi
10649
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651       conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10653 fi
10654 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap50_main" >&5
10655 echo "${ECHO_T}$ac_cv_lib_ldap50_main" >&6; }
10656 if test $ac_cv_lib_ldap50_main = yes; then
10657   LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4 $LIBS" found_ldap_lib=yes need_pthread=yes
10658 fi
10659
10660 fi
10661 if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape4 \)
10662 then
10663   { echo "$as_me:$LINENO: checking for main in -lldapssl41" >&5
10664 echo $ECHO_N "checking for main in -lldapssl41... $ECHO_C" >&6; }
10665 if test "${ac_cv_lib_ldapssl41_main+set}" = set; then
10666   echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668   ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-lldapssl41 -lpthread $LIBS"
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676
10677
10678 int
10679 main ()
10680 {
10681 return main ();
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690   *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693   (eval "$ac_link") 2>conftest.er1
10694   ac_status=$?
10695   grep -v '^ *+' conftest.er1 >conftest.err
10696   rm -f conftest.er1
10697   cat conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } && {
10700          test -z "$ac_c_werror_flag" ||
10701          test ! -s conftest.err
10702        } && test -s conftest$ac_exeext &&
10703        $as_test_x conftest$ac_exeext; then
10704   ac_cv_lib_ldapssl41_main=yes
10705 else
10706   echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709         ac_cv_lib_ldapssl41_main=no
10710 fi
10711
10712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10713       conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10715 fi
10716 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldapssl41_main" >&5
10717 echo "${ECHO_T}$ac_cv_lib_ldapssl41_main" >&6; }
10718 if test $ac_cv_lib_ldapssl41_main = yes; then
10719   LIBS="-lldapssl41 -lplc3 -lplds3 -lnspr3 $LIBS" found_ldap_lib=yes need_pthread=yes
10720 fi
10721
10722   if test -z "$found_ldap_lib"
10723   then
10724     { echo "$as_me:$LINENO: checking for main in -lldapssl40" >&5
10725 echo $ECHO_N "checking for main in -lldapssl40... $ECHO_C" >&6; }
10726 if test "${ac_cv_lib_ldapssl40_main+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   ac_check_lib_save_LIBS=$LIBS
10730 LIBS="-lldapssl40 -lpthread $LIBS"
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737
10738
10739 int
10740 main ()
10741 {
10742 return main ();
10743   ;
10744   return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754   (eval "$ac_link") 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } && {
10761          test -z "$ac_c_werror_flag" ||
10762          test ! -s conftest.err
10763        } && test -s conftest$ac_exeext &&
10764        $as_test_x conftest$ac_exeext; then
10765   ac_cv_lib_ldapssl40_main=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770         ac_cv_lib_ldapssl40_main=no
10771 fi
10772
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774       conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10776 fi
10777 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldapssl40_main" >&5
10778 echo "${ECHO_T}$ac_cv_lib_ldapssl40_main" >&6; }
10779 if test $ac_cv_lib_ldapssl40_main = yes; then
10780   LIBS="-lldapssl40 $LIBS" found_ldap_lib=yes need_pthread=yes
10781 fi
10782
10783   fi
10784   if test -z "$found_ldap_lib"
10785   then
10786     { echo "$as_me:$LINENO: checking for main in -lldap41" >&5
10787 echo $ECHO_N "checking for main in -lldap41... $ECHO_C" >&6; }
10788 if test "${ac_cv_lib_ldap41_main+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-lldap41  $LIBS"
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10799
10800
10801 int
10802 main ()
10803 {
10804 return main ();
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816   (eval "$ac_link") 2>conftest.er1
10817   ac_status=$?
10818   grep -v '^ *+' conftest.er1 >conftest.err
10819   rm -f conftest.er1
10820   cat conftest.err >&5
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } && {
10823          test -z "$ac_c_werror_flag" ||
10824          test ! -s conftest.err
10825        } && test -s conftest$ac_exeext &&
10826        $as_test_x conftest$ac_exeext; then
10827   ac_cv_lib_ldap41_main=yes
10828 else
10829   echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832         ac_cv_lib_ldap41_main=no
10833 fi
10834
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836       conftest$ac_exeext conftest.$ac_ext
10837 LIBS=$ac_check_lib_save_LIBS
10838 fi
10839 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap41_main" >&5
10840 echo "${ECHO_T}$ac_cv_lib_ldap41_main" >&6; }
10841 if test $ac_cv_lib_ldap41_main = yes; then
10842   LIBS="-lldap41 $LIBS" found_ldap_lib=yes need_pthread=no
10843 fi
10844
10845   fi
10846   if test -z "$found_ldap_lib"
10847   then
10848     { echo "$as_me:$LINENO: checking for main in -lldap40" >&5
10849 echo $ECHO_N "checking for main in -lldap40... $ECHO_C" >&6; }
10850 if test "${ac_cv_lib_ldap40_main+set}" = set; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-lldap40  $LIBS"
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h.  */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h.  */
10861
10862
10863 int
10864 main ()
10865 {
10866 return main ();
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_link") 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } && {
10885          test -z "$ac_c_werror_flag" ||
10886          test ! -s conftest.err
10887        } && test -s conftest$ac_exeext &&
10888        $as_test_x conftest$ac_exeext; then
10889   ac_cv_lib_ldap40_main=yes
10890 else
10891   echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10893
10894         ac_cv_lib_ldap40_main=no
10895 fi
10896
10897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10898       conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap40_main" >&5
10902 echo "${ECHO_T}$ac_cv_lib_ldap40_main" >&6; }
10903 if test $ac_cv_lib_ldap40_main = yes; then
10904   LIBS="-lldap40 $LIBS" found_ldap_lib=yes need_pthread=no
10905 fi
10906
10907   fi
10908 fi
10909 if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape3 \)
10910 then
10911   { echo "$as_me:$LINENO: checking for main in -lldapssl30" >&5
10912 echo $ECHO_N "checking for main in -lldapssl30... $ECHO_C" >&6; }
10913 if test "${ac_cv_lib_ldapssl30_main+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lldapssl30 -lpthread $LIBS"
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h.  */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h.  */
10924
10925
10926 int
10927 main ()
10928 {
10929 return main ();
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_link") 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } && {
10948          test -z "$ac_c_werror_flag" ||
10949          test ! -s conftest.err
10950        } && test -s conftest$ac_exeext &&
10951        $as_test_x conftest$ac_exeext; then
10952   ac_cv_lib_ldapssl30_main=yes
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957         ac_cv_lib_ldapssl30_main=no
10958 fi
10959
10960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10961       conftest$ac_exeext conftest.$ac_ext
10962 LIBS=$ac_check_lib_save_LIBS
10963 fi
10964 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldapssl30_main" >&5
10965 echo "${ECHO_T}$ac_cv_lib_ldapssl30_main" >&6; }
10966 if test $ac_cv_lib_ldapssl30_main = yes; then
10967   LIBS="-lldapssl30 $LIBS" found_ldap_lib=yes need_pthread=yes
10968 fi
10969
10970 fi
10971 if test -z "$found_ldap_lib"
10972 then
10973   { { echo "$as_me:$LINENO: error: could not locate a valid LDAP library" >&5
10974 echo "$as_me: error: could not locate a valid LDAP library" >&2;}
10975    { (exit 1); exit 1; }; }
10976 fi
10977 if test "$need_pthread" = "yes"
10978 then
10979
10980 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
10981 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
10982 if test "${ac_cv_lib_pthread_main+set}" = set; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985   ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-lpthread  $LIBS"
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993
10994
10995 int
10996 main ()
10997 {
10998 return main ();
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (ac_try="$ac_link"
11005 case "(($ac_try" in
11006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007   *) ac_try_echo=$ac_try;;
11008 esac
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010   (eval "$ac_link") 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } && {
11017          test -z "$ac_c_werror_flag" ||
11018          test ! -s conftest.err
11019        } && test -s conftest$ac_exeext &&
11020        $as_test_x conftest$ac_exeext; then
11021   ac_cv_lib_pthread_main=yes
11022 else
11023   echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026         ac_cv_lib_pthread_main=no
11027 fi
11028
11029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030       conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
11034 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
11035 if test $ac_cv_lib_pthread_main = yes; then
11036   cat >>confdefs.h <<_ACEOF
11037 #define HAVE_LIBPTHREAD 1
11038 _ACEOF
11039
11040   LIBS="-lpthread $LIBS"
11041
11042 fi
11043
11044 fi
11045 { echo "$as_me:$LINENO: checking for ldap_gss_bind in -lgssldap" >&5
11046 echo $ECHO_N "checking for ldap_gss_bind in -lgssldap... $ECHO_C" >&6; }
11047 if test "${ac_cv_lib_gssldap_ldap_gss_bind+set}" = set; then
11048   echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050   ac_check_lib_save_LIBS=$LIBS
11051 LIBS="-lgssldap $LIBS $LIBS"
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058
11059 /* Override any GCC internal prototype to avoid an error.
11060    Use char because int might match the return type of a GCC
11061    builtin and then its argument prototype would still apply.  */
11062 #ifdef __cplusplus
11063 extern "C"
11064 #endif
11065 char ldap_gss_bind ();
11066 int
11067 main ()
11068 {
11069 return ldap_gss_bind ();
11070   ;
11071   return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (ac_try="$ac_link"
11076 case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081   (eval "$ac_link") 2>conftest.er1
11082   ac_status=$?
11083   grep -v '^ *+' conftest.er1 >conftest.err
11084   rm -f conftest.er1
11085   cat conftest.err >&5
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } && {
11088          test -z "$ac_c_werror_flag" ||
11089          test ! -s conftest.err
11090        } && test -s conftest$ac_exeext &&
11091        $as_test_x conftest$ac_exeext; then
11092   ac_cv_lib_gssldap_ldap_gss_bind=yes
11093 else
11094   echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097         ac_cv_lib_gssldap_ldap_gss_bind=no
11098 fi
11099
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101       conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssldap_ldap_gss_bind" >&5
11105 echo "${ECHO_T}$ac_cv_lib_gssldap_ldap_gss_bind" >&6; }
11106 if test $ac_cv_lib_gssldap_ldap_gss_bind = yes; then
11107   LIBS="-lgssldap $LIBS"
11108 fi
11109
11110
11111 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
11112 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
11113 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lsasl2  $LIBS"
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124
11125 /* Override any GCC internal prototype to avoid an error.
11126    Use char because int might match the return type of a GCC
11127    builtin and then its argument prototype would still apply.  */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 char sasl_client_init ();
11132 int
11133 main ()
11134 {
11135 return sasl_client_init ();
11136   ;
11137   return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (ac_try="$ac_link"
11142 case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_link") 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } && {
11154          test -z "$ac_c_werror_flag" ||
11155          test ! -s conftest.err
11156        } && test -s conftest$ac_exeext &&
11157        $as_test_x conftest$ac_exeext; then
11158   ac_cv_lib_sasl2_sasl_client_init=yes
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163         ac_cv_lib_sasl2_sasl_client_init=no
11164 fi
11165
11166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11167       conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11169 fi
11170 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11171 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
11172 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11173   cat >>confdefs.h <<_ACEOF
11174 #define HAVE_LIBSASL2 1
11175 _ACEOF
11176
11177   LIBS="-lsasl2 $LIBS"
11178
11179 fi
11180
11181
11182
11183 for ac_func in sasl_auxprop_request
11184 do
11185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h.  */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h.  */
11197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11199 #define $ac_func innocuous_$ac_func
11200
11201 /* System header to define __stub macros and hopefully few prototypes,
11202     which can conflict with char $ac_func (); below.
11203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11204     <limits.h> exists even on freestanding compilers.  */
11205
11206 #ifdef __STDC__
11207 # include <limits.h>
11208 #else
11209 # include <assert.h>
11210 #endif
11211
11212 #undef $ac_func
11213
11214 /* Override any GCC internal prototype to avoid an error.
11215    Use char because int might match the return type of a GCC
11216    builtin and then its argument prototype would still apply.  */
11217 #ifdef __cplusplus
11218 extern "C"
11219 #endif
11220 char $ac_func ();
11221 /* The GNU C library defines this for functions which it implements
11222     to always fail with ENOSYS.  Some functions are actually named
11223     something starting with __ and the normal name is an alias.  */
11224 #if defined __stub_$ac_func || defined __stub___$ac_func
11225 choke me
11226 #endif
11227
11228 int
11229 main ()
11230 {
11231 return $ac_func ();
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (ac_try="$ac_link"
11238 case "(($ac_try" in
11239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240   *) ac_try_echo=$ac_try;;
11241 esac
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243   (eval "$ac_link") 2>conftest.er1
11244   ac_status=$?
11245   grep -v '^ *+' conftest.er1 >conftest.err
11246   rm -f conftest.er1
11247   cat conftest.err >&5
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); } && {
11250          test -z "$ac_c_werror_flag" ||
11251          test ! -s conftest.err
11252        } && test -s conftest$ac_exeext &&
11253        $as_test_x conftest$ac_exeext; then
11254   eval "$as_ac_var=yes"
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259         eval "$as_ac_var=no"
11260 fi
11261
11262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11263       conftest$ac_exeext conftest.$ac_ext
11264 fi
11265 ac_res=`eval echo '${'$as_ac_var'}'`
11266                { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11268 if test `eval echo '${'$as_ac_var'}'` = yes; then
11269   cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11271 _ACEOF
11272
11273 fi
11274 done
11275
11276
11277 for ac_func in gss_krb5_ccache_name
11278 do
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h.  */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h.  */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11293 #define $ac_func innocuous_$ac_func
11294
11295 /* System header to define __stub macros and hopefully few prototypes,
11296     which can conflict with char $ac_func (); below.
11297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298     <limits.h> exists even on freestanding compilers.  */
11299
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11305
11306 #undef $ac_func
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309    Use char because int might match the return type of a GCC
11310    builtin and then its argument prototype would still apply.  */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char $ac_func ();
11315 /* The GNU C library defines this for functions which it implements
11316     to always fail with ENOSYS.  Some functions are actually named
11317     something starting with __ and the normal name is an alias.  */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11319 choke me
11320 #endif
11321
11322 int
11323 main ()
11324 {
11325 return $ac_func ();
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_link") 2>conftest.er1
11338   ac_status=$?
11339   grep -v '^ *+' conftest.er1 >conftest.err
11340   rm -f conftest.er1
11341   cat conftest.err >&5
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } && {
11344          test -z "$ac_c_werror_flag" ||
11345          test ! -s conftest.err
11346        } && test -s conftest$ac_exeext &&
11347        $as_test_x conftest$ac_exeext; then
11348   eval "$as_ac_var=yes"
11349 else
11350   echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353         eval "$as_ac_var=no"
11354 fi
11355
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357       conftest$ac_exeext conftest.$ac_ext
11358 fi
11359 ac_res=`eval echo '${'$as_ac_var'}'`
11360                { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363   cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 _ACEOF
11366
11367 fi
11368 done
11369
11370
11371
11372
11373
11374 for ac_func in ldap_parse_result ldap_memfree ldap_controls_free ldap_control_free
11375 do
11376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11390 #define $ac_func innocuous_$ac_func
11391
11392 /* System header to define __stub macros and hopefully few prototypes,
11393     which can conflict with char $ac_func (); below.
11394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11395     <limits.h> exists even on freestanding compilers.  */
11396
11397 #ifdef __STDC__
11398 # include <limits.h>
11399 #else
11400 # include <assert.h>
11401 #endif
11402
11403 #undef $ac_func
11404
11405 /* Override any GCC internal prototype to avoid an error.
11406    Use char because int might match the return type of a GCC
11407    builtin and then its argument prototype would still apply.  */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 char $ac_func ();
11412 /* The GNU C library defines this for functions which it implements
11413     to always fail with ENOSYS.  Some functions are actually named
11414     something starting with __ and the normal name is an alias.  */
11415 #if defined __stub_$ac_func || defined __stub___$ac_func
11416 choke me
11417 #endif
11418
11419 int
11420 main ()
11421 {
11422 return $ac_func ();
11423   ;
11424   return 0;
11425 }
11426 _ACEOF
11427 rm -f conftest.$ac_objext conftest$ac_exeext
11428 if { (ac_try="$ac_link"
11429 case "(($ac_try" in
11430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431   *) ac_try_echo=$ac_try;;
11432 esac
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434   (eval "$ac_link") 2>conftest.er1
11435   ac_status=$?
11436   grep -v '^ *+' conftest.er1 >conftest.err
11437   rm -f conftest.er1
11438   cat conftest.err >&5
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); } && {
11441          test -z "$ac_c_werror_flag" ||
11442          test ! -s conftest.err
11443        } && test -s conftest$ac_exeext &&
11444        $as_test_x conftest$ac_exeext; then
11445   eval "$as_ac_var=yes"
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450         eval "$as_ac_var=no"
11451 fi
11452
11453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11454       conftest$ac_exeext conftest.$ac_ext
11455 fi
11456 ac_res=`eval echo '${'$as_ac_var'}'`
11457                { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11459 if test `eval echo '${'$as_ac_var'}'` = yes; then
11460   cat >>confdefs.h <<_ACEOF
11461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11462 _ACEOF
11463
11464 fi
11465 done
11466
11467
11468
11469
11470
11471 for ac_func in ldap_explode_dn ldap_explode_rdn ldap_set_option ldap_get_option
11472 do
11473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11487 #define $ac_func innocuous_$ac_func
11488
11489 /* System header to define __stub macros and hopefully few prototypes,
11490     which can conflict with char $ac_func (); below.
11491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11492     <limits.h> exists even on freestanding compilers.  */
11493
11494 #ifdef __STDC__
11495 # include <limits.h>
11496 #else
11497 # include <assert.h>
11498 #endif
11499
11500 #undef $ac_func
11501
11502 /* Override any GCC internal prototype to avoid an error.
11503    Use char because int might match the return type of a GCC
11504    builtin and then its argument prototype would still apply.  */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char $ac_func ();
11509 /* The GNU C library defines this for functions which it implements
11510     to always fail with ENOSYS.  Some functions are actually named
11511     something starting with __ and the normal name is an alias.  */
11512 #if defined __stub_$ac_func || defined __stub___$ac_func
11513 choke me
11514 #endif
11515
11516 int
11517 main ()
11518 {
11519 return $ac_func ();
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext conftest$ac_exeext
11525 if { (ac_try="$ac_link"
11526 case "(($ac_try" in
11527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528   *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531   (eval "$ac_link") 2>conftest.er1
11532   ac_status=$?
11533   grep -v '^ *+' conftest.er1 >conftest.err
11534   rm -f conftest.er1
11535   cat conftest.err >&5
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } && {
11538          test -z "$ac_c_werror_flag" ||
11539          test ! -s conftest.err
11540        } && test -s conftest$ac_exeext &&
11541        $as_test_x conftest$ac_exeext; then
11542   eval "$as_ac_var=yes"
11543 else
11544   echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547         eval "$as_ac_var=no"
11548 fi
11549
11550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11551       conftest$ac_exeext conftest.$ac_ext
11552 fi
11553 ac_res=`eval echo '${'$as_ac_var'}'`
11554                { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11556 if test `eval echo '${'$as_ac_var'}'` = yes; then
11557   cat >>confdefs.h <<_ACEOF
11558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11559 _ACEOF
11560
11561 fi
11562 done
11563
11564
11565
11566
11567
11568 for ac_func in ldap_abandon ldap_simple_bind_s ldap_unbind ldap_set_rebind_proc
11569 do
11570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576   cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11584 #define $ac_func innocuous_$ac_func
11585
11586 /* System header to define __stub macros and hopefully few prototypes,
11587     which can conflict with char $ac_func (); below.
11588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11589     <limits.h> exists even on freestanding compilers.  */
11590
11591 #ifdef __STDC__
11592 # include <limits.h>
11593 #else
11594 # include <assert.h>
11595 #endif
11596
11597 #undef $ac_func
11598
11599 /* Override any GCC internal prototype to avoid an error.
11600    Use char because int might match the return type of a GCC
11601    builtin and then its argument prototype would still apply.  */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 char $ac_func ();
11606 /* The GNU C library defines this for functions which it implements
11607     to always fail with ENOSYS.  Some functions are actually named
11608     something starting with __ and the normal name is an alias.  */
11609 #if defined __stub_$ac_func || defined __stub___$ac_func
11610 choke me
11611 #endif
11612
11613 int
11614 main ()
11615 {
11616 return $ac_func ();
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625   *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628   (eval "$ac_link") 2>conftest.er1
11629   ac_status=$?
11630   grep -v '^ *+' conftest.er1 >conftest.err
11631   rm -f conftest.er1
11632   cat conftest.err >&5
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); } && {
11635          test -z "$ac_c_werror_flag" ||
11636          test ! -s conftest.err
11637        } && test -s conftest$ac_exeext &&
11638        $as_test_x conftest$ac_exeext; then
11639   eval "$as_ac_var=yes"
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11643
11644         eval "$as_ac_var=no"
11645 fi
11646
11647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11648       conftest$ac_exeext conftest.$ac_ext
11649 fi
11650 ac_res=`eval echo '${'$as_ac_var'}'`
11651                { echo "$as_me:$LINENO: result: $ac_res" >&5
11652 echo "${ECHO_T}$ac_res" >&6; }
11653 if test `eval echo '${'$as_ac_var'}'` = yes; then
11654   cat >>confdefs.h <<_ACEOF
11655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11656 _ACEOF
11657
11658 fi
11659 done
11660
11661
11662
11663
11664 for ac_func in ldap_sasl_interactive_bind_s ldap_initialize ldap_search_ext
11665 do
11666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11680 #define $ac_func innocuous_$ac_func
11681
11682 /* System header to define __stub macros and hopefully few prototypes,
11683     which can conflict with char $ac_func (); below.
11684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685     <limits.h> exists even on freestanding compilers.  */
11686
11687 #ifdef __STDC__
11688 # include <limits.h>
11689 #else
11690 # include <assert.h>
11691 #endif
11692
11693 #undef $ac_func
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696    Use char because int might match the return type of a GCC
11697    builtin and then its argument prototype would still apply.  */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char $ac_func ();
11702 /* The GNU C library defines this for functions which it implements
11703     to always fail with ENOSYS.  Some functions are actually named
11704     something starting with __ and the normal name is an alias.  */
11705 #if defined __stub_$ac_func || defined __stub___$ac_func
11706 choke me
11707 #endif
11708
11709 int
11710 main ()
11711 {
11712 return $ac_func ();
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (ac_try="$ac_link"
11719 case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_link") 2>conftest.er1
11725   ac_status=$?
11726   grep -v '^ *+' conftest.er1 >conftest.err
11727   rm -f conftest.er1
11728   cat conftest.err >&5
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } && {
11731          test -z "$ac_c_werror_flag" ||
11732          test ! -s conftest.err
11733        } && test -s conftest$ac_exeext &&
11734        $as_test_x conftest$ac_exeext; then
11735   eval "$as_ac_var=yes"
11736 else
11737   echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740         eval "$as_ac_var=no"
11741 fi
11742
11743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11744       conftest$ac_exeext conftest.$ac_ext
11745 fi
11746 ac_res=`eval echo '${'$as_ac_var'}'`
11747                { echo "$as_me:$LINENO: result: $ac_res" >&5
11748 echo "${ECHO_T}$ac_res" >&6; }
11749 if test `eval echo '${'$as_ac_var'}'` = yes; then
11750   cat >>confdefs.h <<_ACEOF
11751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11752 _ACEOF
11753
11754 fi
11755 done
11756
11757
11758 for ac_func in ldap_create_control
11759 do
11760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11774 #define $ac_func innocuous_$ac_func
11775
11776 /* System header to define __stub macros and hopefully few prototypes,
11777     which can conflict with char $ac_func (); below.
11778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11779     <limits.h> exists even on freestanding compilers.  */
11780
11781 #ifdef __STDC__
11782 # include <limits.h>
11783 #else
11784 # include <assert.h>
11785 #endif
11786
11787 #undef $ac_func
11788
11789 /* Override any GCC internal prototype to avoid an error.
11790    Use char because int might match the return type of a GCC
11791    builtin and then its argument prototype would still apply.  */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 char $ac_func ();
11796 /* The GNU C library defines this for functions which it implements
11797     to always fail with ENOSYS.  Some functions are actually named
11798     something starting with __ and the normal name is an alias.  */
11799 #if defined __stub_$ac_func || defined __stub___$ac_func
11800 choke me
11801 #endif
11802
11803 int
11804 main ()
11805 {
11806 return $ac_func ();
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (ac_try="$ac_link"
11813 case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_link") 2>conftest.er1
11819   ac_status=$?
11820   grep -v '^ *+' conftest.er1 >conftest.err
11821   rm -f conftest.er1
11822   cat conftest.err >&5
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); } && {
11825          test -z "$ac_c_werror_flag" ||
11826          test ! -s conftest.err
11827        } && test -s conftest$ac_exeext &&
11828        $as_test_x conftest$ac_exeext; then
11829   eval "$as_ac_var=yes"
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834         eval "$as_ac_var=no"
11835 fi
11836
11837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11838       conftest$ac_exeext conftest.$ac_ext
11839 fi
11840 ac_res=`eval echo '${'$as_ac_var'}'`
11841                { echo "$as_me:$LINENO: result: $ac_res" >&5
11842 echo "${ECHO_T}$ac_res" >&6; }
11843 if test `eval echo '${'$as_ac_var'}'` = yes; then
11844   cat >>confdefs.h <<_ACEOF
11845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846 _ACEOF
11847
11848 fi
11849 done
11850
11851
11852
11853 for ac_func in ldap_domain2hostlist ldap_domain2dn
11854 do
11855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11859   echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861   cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11869 #define $ac_func innocuous_$ac_func
11870
11871 /* System header to define __stub macros and hopefully few prototypes,
11872     which can conflict with char $ac_func (); below.
11873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874     <limits.h> exists even on freestanding compilers.  */
11875
11876 #ifdef __STDC__
11877 # include <limits.h>
11878 #else
11879 # include <assert.h>
11880 #endif
11881
11882 #undef $ac_func
11883
11884 /* Override any GCC internal prototype to avoid an error.
11885    Use char because int might match the return type of a GCC
11886    builtin and then its argument prototype would still apply.  */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char $ac_func ();
11891 /* The GNU C library defines this for functions which it implements
11892     to always fail with ENOSYS.  Some functions are actually named
11893     something starting with __ and the normal name is an alias.  */
11894 #if defined __stub_$ac_func || defined __stub___$ac_func
11895 choke me
11896 #endif
11897
11898 int
11899 main ()
11900 {
11901 return $ac_func ();
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (ac_try="$ac_link"
11908 case "(($ac_try" in
11909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910   *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913   (eval "$ac_link") 2>conftest.er1
11914   ac_status=$?
11915   grep -v '^ *+' conftest.er1 >conftest.err
11916   rm -f conftest.er1
11917   cat conftest.err >&5
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); } && {
11920          test -z "$ac_c_werror_flag" ||
11921          test ! -s conftest.err
11922        } && test -s conftest$ac_exeext &&
11923        $as_test_x conftest$ac_exeext; then
11924   eval "$as_ac_var=yes"
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929         eval "$as_ac_var=no"
11930 fi
11931
11932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11933       conftest$ac_exeext conftest.$ac_ext
11934 fi
11935 ac_res=`eval echo '${'$as_ac_var'}'`
11936                { echo "$as_me:$LINENO: result: $ac_res" >&5
11937 echo "${ECHO_T}$ac_res" >&6; }
11938 if test `eval echo '${'$as_ac_var'}'` = yes; then
11939   cat >>confdefs.h <<_ACEOF
11940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11941 _ACEOF
11942
11943 fi
11944 done
11945
11946
11947
11948
11949 for ac_func in ldap_get_values ldap_value_free ldap_get_dn
11950 do
11951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11955   echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957   cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11965 #define $ac_func innocuous_$ac_func
11966
11967 /* System header to define __stub macros and hopefully few prototypes,
11968     which can conflict with char $ac_func (); below.
11969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11970     <limits.h> exists even on freestanding compilers.  */
11971
11972 #ifdef __STDC__
11973 # include <limits.h>
11974 #else
11975 # include <assert.h>
11976 #endif
11977
11978 #undef $ac_func
11979
11980 /* Override any GCC internal prototype to avoid an error.
11981    Use char because int might match the return type of a GCC
11982    builtin and then its argument prototype would still apply.  */
11983 #ifdef __cplusplus
11984 extern "C"
11985 #endif
11986 char $ac_func ();
11987 /* The GNU C library defines this for functions which it implements
11988     to always fail with ENOSYS.  Some functions are actually named
11989     something starting with __ and the normal name is an alias.  */
11990 #if defined __stub_$ac_func || defined __stub___$ac_func
11991 choke me
11992 #endif
11993
11994 int
11995 main ()
11996 {
11997 return $ac_func ();
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009   (eval "$ac_link") 2>conftest.er1
12010   ac_status=$?
12011   grep -v '^ *+' conftest.er1 >conftest.err
12012   rm -f conftest.er1
12013   cat conftest.err >&5
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } && {
12016          test -z "$ac_c_werror_flag" ||
12017          test ! -s conftest.err
12018        } && test -s conftest$ac_exeext &&
12019        $as_test_x conftest$ac_exeext; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025         eval "$as_ac_var=no"
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12029       conftest$ac_exeext conftest.$ac_ext
12030 fi
12031 ac_res=`eval echo '${'$as_ac_var'}'`
12032                { echo "$as_me:$LINENO: result: $ac_res" >&5
12033 echo "${ECHO_T}$ac_res" >&6; }
12034 if test `eval echo '${'$as_ac_var'}'` = yes; then
12035   cat >>confdefs.h <<_ACEOF
12036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 _ACEOF
12038
12039 fi
12040 done
12041
12042
12043
12044
12045 for ac_func in ldap_err2string ldap_msgfree ldap_result
12046 do
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12061 #define $ac_func innocuous_$ac_func
12062
12063 /* System header to define __stub macros and hopefully few prototypes,
12064     which can conflict with char $ac_func (); below.
12065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066     <limits.h> exists even on freestanding compilers.  */
12067
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12073
12074 #undef $ac_func
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077    Use char because int might match the return type of a GCC
12078    builtin and then its argument prototype would still apply.  */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char $ac_func ();
12083 /* The GNU C library defines this for functions which it implements
12084     to always fail with ENOSYS.  Some functions are actually named
12085     something starting with __ and the normal name is an alias.  */
12086 #if defined __stub_$ac_func || defined __stub___$ac_func
12087 choke me
12088 #endif
12089
12090 int
12091 main ()
12092 {
12093 return $ac_func ();
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102   *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105   (eval "$ac_link") 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } && {
12112          test -z "$ac_c_werror_flag" ||
12113          test ! -s conftest.err
12114        } && test -s conftest$ac_exeext &&
12115        $as_test_x conftest$ac_exeext; then
12116   eval "$as_ac_var=yes"
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121         eval "$as_ac_var=no"
12122 fi
12123
12124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12125       conftest$ac_exeext conftest.$ac_ext
12126 fi
12127 ac_res=`eval echo '${'$as_ac_var'}'`
12128                { echo "$as_me:$LINENO: result: $ac_res" >&5
12129 echo "${ECHO_T}$ac_res" >&6; }
12130 if test `eval echo '${'$as_ac_var'}'` = yes; then
12131   cat >>confdefs.h <<_ACEOF
12132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12133 _ACEOF
12134
12135 fi
12136 done
12137
12138
12139 # replace ldap_create_page_control() and ldap_parse_page_control()
12140
12141
12142 for ac_func in ldap_create_page_control ldap_parse_page_control
12143 do
12144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12148   echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150   cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12158 #define $ac_func innocuous_$ac_func
12159
12160 /* System header to define __stub macros and hopefully few prototypes,
12161     which can conflict with char $ac_func (); below.
12162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12163     <limits.h> exists even on freestanding compilers.  */
12164
12165 #ifdef __STDC__
12166 # include <limits.h>
12167 #else
12168 # include <assert.h>
12169 #endif
12170
12171 #undef $ac_func
12172
12173 /* Override any GCC internal prototype to avoid an error.
12174    Use char because int might match the return type of a GCC
12175    builtin and then its argument prototype would still apply.  */
12176 #ifdef __cplusplus
12177 extern "C"
12178 #endif
12179 char $ac_func ();
12180 /* The GNU C library defines this for functions which it implements
12181     to always fail with ENOSYS.  Some functions are actually named
12182     something starting with __ and the normal name is an alias.  */
12183 #if defined __stub_$ac_func || defined __stub___$ac_func
12184 choke me
12185 #endif
12186
12187 int
12188 main ()
12189 {
12190 return $ac_func ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_link") 2>conftest.er1
12203   ac_status=$?
12204   grep -v '^ *+' conftest.er1 >conftest.err
12205   rm -f conftest.er1
12206   cat conftest.err >&5
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); } && {
12209          test -z "$ac_c_werror_flag" ||
12210          test ! -s conftest.err
12211        } && test -s conftest$ac_exeext &&
12212        $as_test_x conftest$ac_exeext; then
12213   eval "$as_ac_var=yes"
12214 else
12215   echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12217
12218         eval "$as_ac_var=no"
12219 fi
12220
12221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12222       conftest$ac_exeext conftest.$ac_ext
12223 fi
12224 ac_res=`eval echo '${'$as_ac_var'}'`
12225                { echo "$as_me:$LINENO: result: $ac_res" >&5
12226 echo "${ECHO_T}$ac_res" >&6; }
12227 if test `eval echo '${'$as_ac_var'}'` = yes; then
12228   cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12230 _ACEOF
12231
12232 else
12233   case " $LIBOBJS " in
12234   *" pagectrl.$ac_objext "* ) ;;
12235   *) LIBOBJS="$LIBOBJS pagectrl.$ac_objext"
12236  ;;
12237 esac
12238
12239 fi
12240 done
12241
12242
12243 # check the number of arguments that ldap_set_rebind_proc() uses
12244 { echo "$as_me:$LINENO: checking number of arguments to ldap_set_rebind_proc" >&5
12245 echo $ECHO_N "checking number of arguments to ldap_set_rebind_proc... $ECHO_C" >&6; }
12246 if test "${nss_ldapd_cv_ldap_set_rebind_proc+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h.  */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h.  */
12255
12256             #include <lber.h>
12257             #include <ldap.h>
12258 int
12259 main ()
12260 {
12261 ldap_set_rebind_proc(0, 0, 0);
12262   ;
12263   return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext
12267 if { (ac_try="$ac_compile"
12268 case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_compile") 2>conftest.er1
12274   ac_status=$?
12275   grep -v '^ *+' conftest.er1 >conftest.err
12276   rm -f conftest.er1
12277   cat conftest.err >&5
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } && {
12280          test -z "$ac_c_werror_flag" ||
12281          test ! -s conftest.err
12282        } && test -s conftest.$ac_objext; then
12283   nss_ldapd_cv_ldap_set_rebind_proc=3
12284 else
12285   echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12287
12288         nss_ldapd_cv_ldap_set_rebind_proc=2
12289 fi
12290
12291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 fi
12293 { echo "$as_me:$LINENO: result: $nss_ldapd_cv_ldap_set_rebind_proc" >&5
12294 echo "${ECHO_T}$nss_ldapd_cv_ldap_set_rebind_proc" >&6; }
12295
12296 cat >>confdefs.h <<_ACEOF
12297 #define LDAP_SET_REBIND_PROC_ARGS $nss_ldapd_cv_ldap_set_rebind_proc
12298 _ACEOF
12299
12300
12301 CFLAGS="$save_CFLAGS"
12302 nslcd_LIBS="$LIBS"
12303 LIBS="$save_LIBS"
12304
12305
12306
12307
12308 # generate files
12309 ac_config_files="$ac_config_files Makefile compat/Makefile common/Makefile nss/Makefile nslcd/Makefile man/Makefile tests/Makefile"
12310
12311 cat >confcache <<\_ACEOF
12312 # This file is a shell script that caches the results of configure
12313 # tests run on this system so they can be shared between configure
12314 # scripts and configure runs, see configure's option --config-cache.
12315 # It is not useful on other systems.  If it contains results you don't
12316 # want to keep, you may remove or edit it.
12317 #
12318 # config.status only pays attention to the cache file if you give it
12319 # the --recheck option to rerun configure.
12320 #
12321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12323 # following values.
12324
12325 _ACEOF
12326
12327 # The following way of writing the cache mishandles newlines in values,
12328 # but we know of no workaround that is simple, portable, and efficient.
12329 # So, we kill variables containing newlines.
12330 # Ultrix sh set writes to stderr and can't be redirected directly,
12331 # and sets the high bit in the cache file unless we assign to the vars.
12332 (
12333   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12334     eval ac_val=\$$ac_var
12335     case $ac_val in #(
12336     *${as_nl}*)
12337       case $ac_var in #(
12338       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12339 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12340       esac
12341       case $ac_var in #(
12342       _ | IFS | as_nl) ;; #(
12343       *) $as_unset $ac_var ;;
12344       esac ;;
12345     esac
12346   done
12347
12348   (set) 2>&1 |
12349     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12350     *${as_nl}ac_space=\ *)
12351       # `set' does not quote correctly, so add quotes (double-quote
12352       # substitution turns \\\\ into \\, and sed turns \\ into \).
12353       sed -n \
12354         "s/'/'\\\\''/g;
12355           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12356       ;; #(
12357     *)
12358       # `set' quotes correctly as required by POSIX, so do not add quotes.
12359       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12360       ;;
12361     esac |
12362     sort
12363 ) |
12364   sed '
12365      /^ac_cv_env_/b end
12366      t clear
12367      :clear
12368      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12369      t end
12370      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12371      :end' >>confcache
12372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12373   if test -w "$cache_file"; then
12374     test "x$cache_file" != "x/dev/null" &&
12375       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12376 echo "$as_me: updating cache $cache_file" >&6;}
12377     cat confcache >$cache_file
12378   else
12379     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12380 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12381   fi
12382 fi
12383 rm -f confcache
12384
12385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12386 # Let make expand exec_prefix.
12387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12388
12389 DEFS=-DHAVE_CONFIG_H
12390
12391 ac_libobjs=
12392 ac_ltlibobjs=
12393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12394   # 1. Remove the extension, and $U if already installed.
12395   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12396   ac_i=`echo "$ac_i" | sed "$ac_script"`
12397   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12398   #    will be set to the directory where LIBOBJS objects are built.
12399   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12400   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12401 done
12402 LIBOBJS=$ac_libobjs
12403
12404 LTLIBOBJS=$ac_ltlibobjs
12405
12406
12407 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12408   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12409 Usually this means the macro was only invoked conditionally." >&5
12410 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12411 Usually this means the macro was only invoked conditionally." >&2;}
12412    { (exit 1); exit 1; }; }
12413 fi
12414 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12415   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12416 Usually this means the macro was only invoked conditionally." >&5
12417 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12418 Usually this means the macro was only invoked conditionally." >&2;}
12419    { (exit 1); exit 1; }; }
12420 fi
12421 if test -z "${GENMAN_TRUE}" && test -z "${GENMAN_FALSE}"; then
12422   { { echo "$as_me:$LINENO: error: conditional \"GENMAN\" was never defined.
12423 Usually this means the macro was only invoked conditionally." >&5
12424 echo "$as_me: error: conditional \"GENMAN\" was never defined.
12425 Usually this means the macro was only invoked conditionally." >&2;}
12426    { (exit 1); exit 1; }; }
12427 fi
12428
12429 : ${CONFIG_STATUS=./config.status}
12430 ac_clean_files_save=$ac_clean_files
12431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12432 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12433 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12434 cat >$CONFIG_STATUS <<_ACEOF
12435 #! $SHELL
12436 # Generated by $as_me.
12437 # Run this file to recreate the current configuration.
12438 # Compiler output produced by configure, useful for debugging
12439 # configure, is in config.log if it exists.
12440
12441 debug=false
12442 ac_cs_recheck=false
12443 ac_cs_silent=false
12444 SHELL=\${CONFIG_SHELL-$SHELL}
12445 _ACEOF
12446
12447 cat >>$CONFIG_STATUS <<\_ACEOF
12448 ## --------------------- ##
12449 ## M4sh Initialization.  ##
12450 ## --------------------- ##
12451
12452 # Be more Bourne compatible
12453 DUALCASE=1; export DUALCASE # for MKS sh
12454 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12455   emulate sh
12456   NULLCMD=:
12457   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12458   # is contrary to our usage.  Disable this feature.
12459   alias -g '${1+"$@"}'='"$@"'
12460   setopt NO_GLOB_SUBST
12461 else
12462   case `(set -o) 2>/dev/null` in
12463   *posix*) set -o posix ;;
12464 esac
12465
12466 fi
12467
12468
12469
12470
12471 # PATH needs CR
12472 # Avoid depending upon Character Ranges.
12473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12476 as_cr_digits='0123456789'
12477 as_cr_alnum=$as_cr_Letters$as_cr_digits
12478
12479 # The user is always right.
12480 if test "${PATH_SEPARATOR+set}" != set; then
12481   echo "#! /bin/sh" >conf$$.sh
12482   echo  "exit 0"   >>conf$$.sh
12483   chmod +x conf$$.sh
12484   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12485     PATH_SEPARATOR=';'
12486   else
12487     PATH_SEPARATOR=:
12488   fi
12489   rm -f conf$$.sh
12490 fi
12491
12492 # Support unset when possible.
12493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12494   as_unset=unset
12495 else
12496   as_unset=false
12497 fi
12498
12499
12500 # IFS
12501 # We need space, tab and new line, in precisely that order.  Quoting is
12502 # there to prevent editors from complaining about space-tab.
12503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12504 # splitting by setting IFS to empty value.)
12505 as_nl='
12506 '
12507 IFS=" ""        $as_nl"
12508
12509 # Find who we are.  Look in the path if we contain no directory separator.
12510 case $0 in
12511   *[\\/]* ) as_myself=$0 ;;
12512   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in $PATH
12514 do
12515   IFS=$as_save_IFS
12516   test -z "$as_dir" && as_dir=.
12517   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12518 done
12519 IFS=$as_save_IFS
12520
12521      ;;
12522 esac
12523 # We did not find ourselves, most probably we were run as `sh COMMAND'
12524 # in which case we are not to be found in the path.
12525 if test "x$as_myself" = x; then
12526   as_myself=$0
12527 fi
12528 if test ! -f "$as_myself"; then
12529   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12530   { (exit 1); exit 1; }
12531 fi
12532
12533 # Work around bugs in pre-3.0 UWIN ksh.
12534 for as_var in ENV MAIL MAILPATH
12535 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12536 done
12537 PS1='$ '
12538 PS2='> '
12539 PS4='+ '
12540
12541 # NLS nuisances.
12542 for as_var in \
12543   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12544   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12545   LC_TELEPHONE LC_TIME
12546 do
12547   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12548     eval $as_var=C; export $as_var
12549   else
12550     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12551   fi
12552 done
12553
12554 # Required to use basename.
12555 if expr a : '\(a\)' >/dev/null 2>&1 &&
12556    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12557   as_expr=expr
12558 else
12559   as_expr=false
12560 fi
12561
12562 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12563   as_basename=basename
12564 else
12565   as_basename=false
12566 fi
12567
12568
12569 # Name of the executable.
12570 as_me=`$as_basename -- "$0" ||
12571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12572          X"$0" : 'X\(//\)$' \| \
12573          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12574 echo X/"$0" |
12575     sed '/^.*\/\([^/][^/]*\)\/*$/{
12576             s//\1/
12577             q
12578           }
12579           /^X\/\(\/\/\)$/{
12580             s//\1/
12581             q
12582           }
12583           /^X\/\(\/\).*/{
12584             s//\1/
12585             q
12586           }
12587           s/.*/./; q'`
12588
12589 # CDPATH.
12590 $as_unset CDPATH
12591
12592
12593
12594   as_lineno_1=$LINENO
12595   as_lineno_2=$LINENO
12596   test "x$as_lineno_1" != "x$as_lineno_2" &&
12597   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12598
12599   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12600   # uniformly replaced by the line number.  The first 'sed' inserts a
12601   # line-number line after each line using $LINENO; the second 'sed'
12602   # does the real work.  The second script uses 'N' to pair each
12603   # line-number line with the line containing $LINENO, and appends
12604   # trailing '-' during substitution so that $LINENO is not a special
12605   # case at line end.
12606   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12607   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12608   # E. McMahon (1931-1989) for sed's syntax.  :-)
12609   sed -n '
12610     p
12611     /[$]LINENO/=
12612   ' <$as_myself |
12613     sed '
12614       s/[$]LINENO.*/&-/
12615       t lineno
12616       b
12617       :lineno
12618       N
12619       :loop
12620       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12621       t loop
12622       s/-\n.*//
12623     ' >$as_me.lineno &&
12624   chmod +x "$as_me.lineno" ||
12625     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12626    { (exit 1); exit 1; }; }
12627
12628   # Don't try to exec as it changes $[0], causing all sort of problems
12629   # (the dirname of $[0] is not the place where we might find the
12630   # original and so on.  Autoconf is especially sensitive to this).
12631   . "./$as_me.lineno"
12632   # Exit status is that of the last command.
12633   exit
12634 }
12635
12636
12637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12638   as_dirname=dirname
12639 else
12640   as_dirname=false
12641 fi
12642
12643 ECHO_C= ECHO_N= ECHO_T=
12644 case `echo -n x` in
12645 -n*)
12646   case `echo 'x\c'` in
12647   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12648   *)   ECHO_C='\c';;
12649   esac;;
12650 *)
12651   ECHO_N='-n';;
12652 esac
12653
12654 if expr a : '\(a\)' >/dev/null 2>&1 &&
12655    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12656   as_expr=expr
12657 else
12658   as_expr=false
12659 fi
12660
12661 rm -f conf$$ conf$$.exe conf$$.file
12662 if test -d conf$$.dir; then
12663   rm -f conf$$.dir/conf$$.file
12664 else
12665   rm -f conf$$.dir
12666   mkdir conf$$.dir
12667 fi
12668 echo >conf$$.file
12669 if ln -s conf$$.file conf$$ 2>/dev/null; then
12670   as_ln_s='ln -s'
12671   # ... but there are two gotchas:
12672   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12673   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12674   # In both cases, we have to default to `cp -p'.
12675   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12676     as_ln_s='cp -p'
12677 elif ln conf$$.file conf$$ 2>/dev/null; then
12678   as_ln_s=ln
12679 else
12680   as_ln_s='cp -p'
12681 fi
12682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12683 rmdir conf$$.dir 2>/dev/null
12684
12685 if mkdir -p . 2>/dev/null; then
12686   as_mkdir_p=:
12687 else
12688   test -d ./-p && rmdir ./-p
12689   as_mkdir_p=false
12690 fi
12691
12692 if test -x / >/dev/null 2>&1; then
12693   as_test_x='test -x'
12694 else
12695   if ls -dL / >/dev/null 2>&1; then
12696     as_ls_L_option=L
12697   else
12698     as_ls_L_option=
12699   fi
12700   as_test_x='
12701     eval sh -c '\''
12702       if test -d "$1"; then
12703         test -d "$1/.";
12704       else
12705         case $1 in
12706         -*)set "./$1";;
12707         esac;
12708         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12709         ???[sx]*):;;*)false;;esac;fi
12710     '\'' sh
12711   '
12712 fi
12713 as_executable_p=$as_test_x
12714
12715 # Sed expression to map a string onto a valid CPP name.
12716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12717
12718 # Sed expression to map a string onto a valid variable name.
12719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12720
12721
12722 exec 6>&1
12723
12724 # Save the log message, to keep $[0] and so on meaningful, and to
12725 # report actual input values of CONFIG_FILES etc. instead of their
12726 # values after options handling.
12727 ac_log="
12728 This file was extended by nss-ldapd $as_me 0.6.2, which was
12729 generated by GNU Autoconf 2.61.  Invocation command line was
12730
12731   CONFIG_FILES    = $CONFIG_FILES
12732   CONFIG_HEADERS  = $CONFIG_HEADERS
12733   CONFIG_LINKS    = $CONFIG_LINKS
12734   CONFIG_COMMANDS = $CONFIG_COMMANDS
12735   $ $0 $@
12736
12737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12738 "
12739
12740 _ACEOF
12741
12742 cat >>$CONFIG_STATUS <<_ACEOF
12743 # Files that config.status was made for.
12744 config_files="$ac_config_files"
12745 config_headers="$ac_config_headers"
12746 config_commands="$ac_config_commands"
12747
12748 _ACEOF
12749
12750 cat >>$CONFIG_STATUS <<\_ACEOF
12751 ac_cs_usage="\
12752 \`$as_me' instantiates files from templates according to the
12753 current configuration.
12754
12755 Usage: $0 [OPTIONS] [FILE]...
12756
12757   -h, --help       print this help, then exit
12758   -V, --version    print version number and configuration settings, then exit
12759   -q, --quiet      do not print progress messages
12760   -d, --debug      don't remove temporary files
12761       --recheck    update $as_me by reconfiguring in the same conditions
12762   --file=FILE[:TEMPLATE]
12763                    instantiate the configuration file FILE
12764   --header=FILE[:TEMPLATE]
12765                    instantiate the configuration header FILE
12766
12767 Configuration files:
12768 $config_files
12769
12770 Configuration headers:
12771 $config_headers
12772
12773 Configuration commands:
12774 $config_commands
12775
12776 Report bugs to <bug-autoconf@gnu.org>."
12777
12778 _ACEOF
12779 cat >>$CONFIG_STATUS <<_ACEOF
12780 ac_cs_version="\\
12781 nss-ldapd config.status 0.6.2
12782 configured by $0, generated by GNU Autoconf 2.61,
12783   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12784
12785 Copyright (C) 2006 Free Software Foundation, Inc.
12786 This config.status script is free software; the Free Software Foundation
12787 gives unlimited permission to copy, distribute and modify it."
12788
12789 ac_pwd='$ac_pwd'
12790 srcdir='$srcdir'
12791 INSTALL='$INSTALL'
12792 MKDIR_P='$MKDIR_P'
12793 _ACEOF
12794
12795 cat >>$CONFIG_STATUS <<\_ACEOF
12796 # If no file are specified by the user, then we need to provide default
12797 # value.  By we need to know if files were specified by the user.
12798 ac_need_defaults=:
12799 while test $# != 0
12800 do
12801   case $1 in
12802   --*=*)
12803     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12804     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12805     ac_shift=:
12806     ;;
12807   *)
12808     ac_option=$1
12809     ac_optarg=$2
12810     ac_shift=shift
12811     ;;
12812   esac
12813
12814   case $ac_option in
12815   # Handling of the options.
12816   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12817     ac_cs_recheck=: ;;
12818   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12819     echo "$ac_cs_version"; exit ;;
12820   --debug | --debu | --deb | --de | --d | -d )
12821     debug=: ;;
12822   --file | --fil | --fi | --f )
12823     $ac_shift
12824     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12825     ac_need_defaults=false;;
12826   --header | --heade | --head | --hea )
12827     $ac_shift
12828     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12829     ac_need_defaults=false;;
12830   --he | --h)
12831     # Conflict between --help and --header
12832     { echo "$as_me: error: ambiguous option: $1
12833 Try \`$0 --help' for more information." >&2
12834    { (exit 1); exit 1; }; };;
12835   --help | --hel | -h )
12836     echo "$ac_cs_usage"; exit ;;
12837   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12838   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12839     ac_cs_silent=: ;;
12840
12841   # This is an error.
12842   -*) { echo "$as_me: error: unrecognized option: $1
12843 Try \`$0 --help' for more information." >&2
12844    { (exit 1); exit 1; }; } ;;
12845
12846   *) ac_config_targets="$ac_config_targets $1"
12847      ac_need_defaults=false ;;
12848
12849   esac
12850   shift
12851 done
12852
12853 ac_configure_extra_args=
12854
12855 if $ac_cs_silent; then
12856   exec 6>/dev/null
12857   ac_configure_extra_args="$ac_configure_extra_args --silent"
12858 fi
12859
12860 _ACEOF
12861 cat >>$CONFIG_STATUS <<_ACEOF
12862 if \$ac_cs_recheck; then
12863   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12864   CONFIG_SHELL=$SHELL
12865   export CONFIG_SHELL
12866   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12867 fi
12868
12869 _ACEOF
12870 cat >>$CONFIG_STATUS <<\_ACEOF
12871 exec 5>>config.log
12872 {
12873   echo
12874   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12875 ## Running $as_me. ##
12876 _ASBOX
12877   echo "$ac_log"
12878 } >&5
12879
12880 _ACEOF
12881 cat >>$CONFIG_STATUS <<_ACEOF
12882 #
12883 # INIT-COMMANDS
12884 #
12885 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12886
12887 _ACEOF
12888
12889 cat >>$CONFIG_STATUS <<\_ACEOF
12890
12891 # Handling of arguments.
12892 for ac_config_target in $ac_config_targets
12893 do
12894   case $ac_config_target in
12895     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12896     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12897     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12898     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
12899     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
12900     "nss/Makefile") CONFIG_FILES="$CONFIG_FILES nss/Makefile" ;;
12901     "nslcd/Makefile") CONFIG_FILES="$CONFIG_FILES nslcd/Makefile" ;;
12902     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12903     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12904
12905   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12906 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12907    { (exit 1); exit 1; }; };;
12908   esac
12909 done
12910
12911
12912 # If the user did not use the arguments to specify the items to instantiate,
12913 # then the envvar interface is used.  Set only those that are not.
12914 # We use the long form for the default assignment because of an extremely
12915 # bizarre bug on SunOS 4.1.3.
12916 if $ac_need_defaults; then
12917   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12918   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12919   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12920 fi
12921
12922 # Have a temporary directory for convenience.  Make it in the build tree
12923 # simply because there is no reason against having it here, and in addition,
12924 # creating and moving files from /tmp can sometimes cause problems.
12925 # Hook for its removal unless debugging.
12926 # Note that there is a small window in which the directory will not be cleaned:
12927 # after its creation but before its name has been assigned to `$tmp'.
12928 $debug ||
12929 {
12930   tmp=
12931   trap 'exit_status=$?
12932   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12933 ' 0
12934   trap '{ (exit 1); exit 1; }' 1 2 13 15
12935 }
12936 # Create a (secure) tmp directory for tmp files.
12937
12938 {
12939   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12940   test -n "$tmp" && test -d "$tmp"
12941 }  ||
12942 {
12943   tmp=./conf$$-$RANDOM
12944   (umask 077 && mkdir "$tmp")
12945 } ||
12946 {
12947    echo "$me: cannot create a temporary directory in ." >&2
12948    { (exit 1); exit 1; }
12949 }
12950
12951 #
12952 # Set up the sed scripts for CONFIG_FILES section.
12953 #
12954
12955 # No need to generate the scripts if there are no CONFIG_FILES.
12956 # This happens for instance when ./config.status config.h
12957 if test -n "$CONFIG_FILES"; then
12958
12959 _ACEOF
12960
12961
12962
12963 ac_delim='%!_!# '
12964 for ac_last_try in false false false false false :; do
12965   cat >conf$$subs.sed <<_ACEOF
12966 SHELL!$SHELL$ac_delim
12967 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12968 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12969 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12970 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12971 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12972 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12973 exec_prefix!$exec_prefix$ac_delim
12974 prefix!$prefix$ac_delim
12975 program_transform_name!$program_transform_name$ac_delim
12976 bindir!$bindir$ac_delim
12977 sbindir!$sbindir$ac_delim
12978 libexecdir!$libexecdir$ac_delim
12979 datarootdir!$datarootdir$ac_delim
12980 datadir!$datadir$ac_delim
12981 sysconfdir!$sysconfdir$ac_delim
12982 sharedstatedir!$sharedstatedir$ac_delim
12983 localstatedir!$localstatedir$ac_delim
12984 includedir!$includedir$ac_delim
12985 oldincludedir!$oldincludedir$ac_delim
12986 docdir!$docdir$ac_delim
12987 infodir!$infodir$ac_delim
12988 htmldir!$htmldir$ac_delim
12989 dvidir!$dvidir$ac_delim
12990 pdfdir!$pdfdir$ac_delim
12991 psdir!$psdir$ac_delim
12992 libdir!$libdir$ac_delim
12993 localedir!$localedir$ac_delim
12994 mandir!$mandir$ac_delim
12995 DEFS!$DEFS$ac_delim
12996 ECHO_C!$ECHO_C$ac_delim
12997 ECHO_N!$ECHO_N$ac_delim
12998 ECHO_T!$ECHO_T$ac_delim
12999 LIBS!$LIBS$ac_delim
13000 build_alias!$build_alias$ac_delim
13001 host_alias!$host_alias$ac_delim
13002 target_alias!$target_alias$ac_delim
13003 RELEASE_MONTH!$RELEASE_MONTH$ac_delim
13004 build!$build$ac_delim
13005 build_cpu!$build_cpu$ac_delim
13006 build_vendor!$build_vendor$ac_delim
13007 build_os!$build_os$ac_delim
13008 host!$host$ac_delim
13009 host_cpu!$host_cpu$ac_delim
13010 host_vendor!$host_vendor$ac_delim
13011 host_os!$host_os$ac_delim
13012 target!$target$ac_delim
13013 target_cpu!$target_cpu$ac_delim
13014 target_vendor!$target_vendor$ac_delim
13015 target_os!$target_os$ac_delim
13016 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13017 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13018 INSTALL_DATA!$INSTALL_DATA$ac_delim
13019 am__isrc!$am__isrc$ac_delim
13020 CYGPATH_W!$CYGPATH_W$ac_delim
13021 PACKAGE!$PACKAGE$ac_delim
13022 VERSION!$VERSION$ac_delim
13023 ACLOCAL!$ACLOCAL$ac_delim
13024 AUTOCONF!$AUTOCONF$ac_delim
13025 AUTOMAKE!$AUTOMAKE$ac_delim
13026 AUTOHEADER!$AUTOHEADER$ac_delim
13027 MAKEINFO!$MAKEINFO$ac_delim
13028 install_sh!$install_sh$ac_delim
13029 STRIP!$STRIP$ac_delim
13030 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13031 mkdir_p!$mkdir_p$ac_delim
13032 AWK!$AWK$ac_delim
13033 SET_MAKE!$SET_MAKE$ac_delim
13034 am__leading_dot!$am__leading_dot$ac_delim
13035 AMTAR!$AMTAR$ac_delim
13036 am__tar!$am__tar$ac_delim
13037 am__untar!$am__untar$ac_delim
13038 CC!$CC$ac_delim
13039 CFLAGS!$CFLAGS$ac_delim
13040 LDFLAGS!$LDFLAGS$ac_delim
13041 CPPFLAGS!$CPPFLAGS$ac_delim
13042 ac_ct_CC!$ac_ct_CC$ac_delim
13043 EXEEXT!$EXEEXT$ac_delim
13044 OBJEXT!$OBJEXT$ac_delim
13045 DEPDIR!$DEPDIR$ac_delim
13046 am__include!$am__include$ac_delim
13047 am__quote!$am__quote$ac_delim
13048 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13049 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13050 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13051 CCDEPMODE!$CCDEPMODE$ac_delim
13052 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13053 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13054 CPP!$CPP$ac_delim
13055 RANLIB!$RANLIB$ac_delim
13056 GREP!$GREP$ac_delim
13057 EGREP!$EGREP$ac_delim
13058 DOCBOOK2X_MAN!$DOCBOOK2X_MAN$ac_delim
13059 GENMAN_TRUE!$GENMAN_TRUE$ac_delim
13060 GENMAN_FALSE!$GENMAN_FALSE$ac_delim
13061 NSS_LDAP_PATH_CONF!$NSS_LDAP_PATH_CONF$ac_delim
13062 NSLCD_PIDFILE!$NSLCD_PIDFILE$ac_delim
13063 _ACEOF
13064
13065   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13066     break
13067   elif $ac_last_try; then
13068     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13070    { (exit 1); exit 1; }; }
13071   else
13072     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13073   fi
13074 done
13075
13076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13077 if test -n "$ac_eof"; then
13078   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13079   ac_eof=`expr $ac_eof + 1`
13080 fi
13081
13082 cat >>$CONFIG_STATUS <<_ACEOF
13083 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13085 _ACEOF
13086 sed '
13087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13088 s/^/s,@/; s/!/@,|#_!!_#|/
13089 :n
13090 t n
13091 s/'"$ac_delim"'$/,g/; t
13092 s/$/\\/; p
13093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13094 ' >>$CONFIG_STATUS <conf$$subs.sed
13095 rm -f conf$$subs.sed
13096 cat >>$CONFIG_STATUS <<_ACEOF
13097 CEOF$ac_eof
13098 _ACEOF
13099
13100
13101 ac_delim='%!_!# '
13102 for ac_last_try in false false false false false :; do
13103   cat >conf$$subs.sed <<_ACEOF
13104 NSLCD_SOCKET!$NSLCD_SOCKET$ac_delim
13105 LIBOBJS!$LIBOBJS$ac_delim
13106 acx_pthread_config!$acx_pthread_config$ac_delim
13107 PTHREAD_CC!$PTHREAD_CC$ac_delim
13108 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
13109 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
13110 nss_ldap_so_LIBS!$nss_ldap_so_LIBS$ac_delim
13111 nslcd_LIBS!$nslcd_LIBS$ac_delim
13112 LTLIBOBJS!$LTLIBOBJS$ac_delim
13113 _ACEOF
13114
13115   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
13116     break
13117   elif $ac_last_try; then
13118     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13119 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13120    { (exit 1); exit 1; }; }
13121   else
13122     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13123   fi
13124 done
13125
13126 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13127 if test -n "$ac_eof"; then
13128   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13129   ac_eof=`expr $ac_eof + 1`
13130 fi
13131
13132 cat >>$CONFIG_STATUS <<_ACEOF
13133 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13135 _ACEOF
13136 sed '
13137 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13138 s/^/s,@/; s/!/@,|#_!!_#|/
13139 :n
13140 t n
13141 s/'"$ac_delim"'$/,g/; t
13142 s/$/\\/; p
13143 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13144 ' >>$CONFIG_STATUS <conf$$subs.sed
13145 rm -f conf$$subs.sed
13146 cat >>$CONFIG_STATUS <<_ACEOF
13147 :end
13148 s/|#_!!_#|//g
13149 CEOF$ac_eof
13150 _ACEOF
13151
13152
13153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13155 # trailing colons and then remove the whole line if VPATH becomes empty
13156 # (actually we leave an empty line to preserve line numbers).
13157 if test "x$srcdir" = x.; then
13158   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13159 s/:*\$(srcdir):*/:/
13160 s/:*\${srcdir}:*/:/
13161 s/:*@srcdir@:*/:/
13162 s/^\([^=]*=[     ]*\):*/\1/
13163 s/:*$//
13164 s/^[^=]*=[       ]*$//
13165 }'
13166 fi
13167
13168 cat >>$CONFIG_STATUS <<\_ACEOF
13169 fi # test -n "$CONFIG_FILES"
13170
13171
13172 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13173 do
13174   case $ac_tag in
13175   :[FHLC]) ac_mode=$ac_tag; continue;;
13176   esac
13177   case $ac_mode$ac_tag in
13178   :[FHL]*:*);;
13179   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13180 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13181    { (exit 1); exit 1; }; };;
13182   :[FH]-) ac_tag=-:-;;
13183   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13184   esac
13185   ac_save_IFS=$IFS
13186   IFS=:
13187   set x $ac_tag
13188   IFS=$ac_save_IFS
13189   shift
13190   ac_file=$1
13191   shift
13192
13193   case $ac_mode in
13194   :L) ac_source=$1;;
13195   :[FH])
13196     ac_file_inputs=
13197     for ac_f
13198     do
13199       case $ac_f in
13200       -) ac_f="$tmp/stdin";;
13201       *) # Look for the file first in the build tree, then in the source tree
13202          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13203          # because $ac_f cannot contain `:'.
13204          test -f "$ac_f" ||
13205            case $ac_f in
13206            [\\/$]*) false;;
13207            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13208            esac ||
13209            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13210 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13211    { (exit 1); exit 1; }; };;
13212       esac
13213       ac_file_inputs="$ac_file_inputs $ac_f"
13214     done
13215
13216     # Let's still pretend it is `configure' which instantiates (i.e., don't
13217     # use $as_me), people would be surprised to read:
13218     #    /* config.h.  Generated by config.status.  */
13219     configure_input="Generated from "`IFS=:
13220           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13221     if test x"$ac_file" != x-; then
13222       configure_input="$ac_file.  $configure_input"
13223       { echo "$as_me:$LINENO: creating $ac_file" >&5
13224 echo "$as_me: creating $ac_file" >&6;}
13225     fi
13226
13227     case $ac_tag in
13228     *:-:* | *:-) cat >"$tmp/stdin";;
13229     esac
13230     ;;
13231   esac
13232
13233   ac_dir=`$as_dirname -- "$ac_file" ||
13234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13235          X"$ac_file" : 'X\(//\)[^/]' \| \
13236          X"$ac_file" : 'X\(//\)$' \| \
13237          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13238 echo X"$ac_file" |
13239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13240             s//\1/
13241             q
13242           }
13243           /^X\(\/\/\)[^/].*/{
13244             s//\1/
13245             q
13246           }
13247           /^X\(\/\/\)$/{
13248             s//\1/
13249             q
13250           }
13251           /^X\(\/\).*/{
13252             s//\1/
13253             q
13254           }
13255           s/.*/./; q'`
13256   { as_dir="$ac_dir"
13257   case $as_dir in #(
13258   -*) as_dir=./$as_dir;;
13259   esac
13260   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13261     as_dirs=
13262     while :; do
13263       case $as_dir in #(
13264       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13265       *) as_qdir=$as_dir;;
13266       esac
13267       as_dirs="'$as_qdir' $as_dirs"
13268       as_dir=`$as_dirname -- "$as_dir" ||
13269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13270          X"$as_dir" : 'X\(//\)[^/]' \| \
13271          X"$as_dir" : 'X\(//\)$' \| \
13272          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13273 echo X"$as_dir" |
13274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13275             s//\1/
13276             q
13277           }
13278           /^X\(\/\/\)[^/].*/{
13279             s//\1/
13280             q
13281           }
13282           /^X\(\/\/\)$/{
13283             s//\1/
13284             q
13285           }
13286           /^X\(\/\).*/{
13287             s//\1/
13288             q
13289           }
13290           s/.*/./; q'`
13291       test -d "$as_dir" && break
13292     done
13293     test -z "$as_dirs" || eval "mkdir $as_dirs"
13294   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13295 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13296    { (exit 1); exit 1; }; }; }
13297   ac_builddir=.
13298
13299 case "$ac_dir" in
13300 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13301 *)
13302   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13303   # A ".." for each directory in $ac_dir_suffix.
13304   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13305   case $ac_top_builddir_sub in
13306   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13307   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13308   esac ;;
13309 esac
13310 ac_abs_top_builddir=$ac_pwd
13311 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13312 # for backward compatibility:
13313 ac_top_builddir=$ac_top_build_prefix
13314
13315 case $srcdir in
13316   .)  # We are building in place.
13317     ac_srcdir=.
13318     ac_top_srcdir=$ac_top_builddir_sub
13319     ac_abs_top_srcdir=$ac_pwd ;;
13320   [\\/]* | ?:[\\/]* )  # Absolute name.
13321     ac_srcdir=$srcdir$ac_dir_suffix;
13322     ac_top_srcdir=$srcdir
13323     ac_abs_top_srcdir=$srcdir ;;
13324   *) # Relative name.
13325     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13326     ac_top_srcdir=$ac_top_build_prefix$srcdir
13327     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13328 esac
13329 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13330
13331
13332   case $ac_mode in
13333   :F)
13334   #
13335   # CONFIG_FILE
13336   #
13337
13338   case $INSTALL in
13339   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13340   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13341   esac
13342   ac_MKDIR_P=$MKDIR_P
13343   case $MKDIR_P in
13344   [\\/$]* | ?:[\\/]* ) ;;
13345   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13346   esac
13347 _ACEOF
13348
13349 cat >>$CONFIG_STATUS <<\_ACEOF
13350 # If the template does not know about datarootdir, expand it.
13351 # FIXME: This hack should be removed a few years after 2.60.
13352 ac_datarootdir_hack=; ac_datarootdir_seen=
13353
13354 case `sed -n '/datarootdir/ {
13355   p
13356   q
13357 }
13358 /@datadir@/p
13359 /@docdir@/p
13360 /@infodir@/p
13361 /@localedir@/p
13362 /@mandir@/p
13363 ' $ac_file_inputs` in
13364 *datarootdir*) ac_datarootdir_seen=yes;;
13365 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13366   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13367 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13368 _ACEOF
13369 cat >>$CONFIG_STATUS <<_ACEOF
13370   ac_datarootdir_hack='
13371   s&@datadir@&$datadir&g
13372   s&@docdir@&$docdir&g
13373   s&@infodir@&$infodir&g
13374   s&@localedir@&$localedir&g
13375   s&@mandir@&$mandir&g
13376     s&\\\${datarootdir}&$datarootdir&g' ;;
13377 esac
13378 _ACEOF
13379
13380 # Neutralize VPATH when `$srcdir' = `.'.
13381 # Shell code in configure.ac might set extrasub.
13382 # FIXME: do we really want to maintain this feature?
13383 cat >>$CONFIG_STATUS <<_ACEOF
13384   sed "$ac_vpsub
13385 $extrasub
13386 _ACEOF
13387 cat >>$CONFIG_STATUS <<\_ACEOF
13388 :t
13389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13390 s&@configure_input@&$configure_input&;t t
13391 s&@top_builddir@&$ac_top_builddir_sub&;t t
13392 s&@srcdir@&$ac_srcdir&;t t
13393 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13394 s&@top_srcdir@&$ac_top_srcdir&;t t
13395 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13396 s&@builddir@&$ac_builddir&;t t
13397 s&@abs_builddir@&$ac_abs_builddir&;t t
13398 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13399 s&@INSTALL@&$ac_INSTALL&;t t
13400 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13401 $ac_datarootdir_hack
13402 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13403
13404 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13405   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13406   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13407   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13408 which seems to be undefined.  Please make sure it is defined." >&5
13409 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13410 which seems to be undefined.  Please make sure it is defined." >&2;}
13411
13412   rm -f "$tmp/stdin"
13413   case $ac_file in
13414   -) cat "$tmp/out"; rm -f "$tmp/out";;
13415   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13416   esac
13417  ;;
13418   :H)
13419   #
13420   # CONFIG_HEADER
13421   #
13422 _ACEOF
13423
13424 # Transform confdefs.h into a sed script `conftest.defines', that
13425 # substitutes the proper values into config.h.in to produce config.h.
13426 rm -f conftest.defines conftest.tail
13427 # First, append a space to every undef/define line, to ease matching.
13428 echo 's/$/ /' >conftest.defines
13429 # Then, protect against being on the right side of a sed subst, or in
13430 # an unquoted here document, in config.status.  If some macros were
13431 # called several times there might be several #defines for the same
13432 # symbol, which is useless.  But do not sort them, since the last
13433 # AC_DEFINE must be honored.
13434 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13435 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13436 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13437 # PARAMS is the parameter list in the macro definition--in most cases, it's
13438 # just an empty string.
13439 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13440 ac_dB='\\)[      (].*,\\1define\\2'
13441 ac_dC=' '
13442 ac_dD=' ,'
13443
13444 uniq confdefs.h |
13445   sed -n '
13446         t rset
13447         :rset
13448         s/^[     ]*#[    ]*define[       ][      ]*//
13449         t ok
13450         d
13451         :ok
13452         s/[\\&,]/\\&/g
13453         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13454         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13455   ' >>conftest.defines
13456
13457 # Remove the space that was appended to ease matching.
13458 # Then replace #undef with comments.  This is necessary, for
13459 # example, in the case of _POSIX_SOURCE, which is predefined and required
13460 # on some systems where configure will not decide to define it.
13461 # (The regexp can be short, since the line contains either #define or #undef.)
13462 echo 's/ $//
13463 s,^[     #]*u.*,/* & */,' >>conftest.defines
13464
13465 # Break up conftest.defines:
13466 ac_max_sed_lines=50
13467
13468 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13469 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13470 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13471 # et cetera.
13472 ac_in='$ac_file_inputs'
13473 ac_out='"$tmp/out1"'
13474 ac_nxt='"$tmp/out2"'
13475
13476 while :
13477 do
13478   # Write a here document:
13479     cat >>$CONFIG_STATUS <<_ACEOF
13480     # First, check the format of the line:
13481     cat >"\$tmp/defines.sed" <<\\CEOF
13482 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13483 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
13484 b
13485 :def
13486 _ACEOF
13487   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13488   echo 'CEOF
13489     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13490   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13491   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13492   grep . conftest.tail >/dev/null || break
13493   rm -f conftest.defines
13494   mv conftest.tail conftest.defines
13495 done
13496 rm -f conftest.defines conftest.tail
13497
13498 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13499 cat >>$CONFIG_STATUS <<\_ACEOF
13500   if test x"$ac_file" != x-; then
13501     echo "/* $configure_input  */" >"$tmp/config.h"
13502     cat "$ac_result" >>"$tmp/config.h"
13503     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13504       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13505 echo "$as_me: $ac_file is unchanged" >&6;}
13506     else
13507       rm -f $ac_file
13508       mv "$tmp/config.h" $ac_file
13509     fi
13510   else
13511     echo "/* $configure_input  */"
13512     cat "$ac_result"
13513   fi
13514   rm -f "$tmp/out12"
13515 # Compute $ac_file's index in $config_headers.
13516 _am_arg=$ac_file
13517 _am_stamp_count=1
13518 for _am_header in $config_headers :; do
13519   case $_am_header in
13520     $_am_arg | $_am_arg:* )
13521       break ;;
13522     * )
13523       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13524   esac
13525 done
13526 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13527 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13528          X"$_am_arg" : 'X\(//\)[^/]' \| \
13529          X"$_am_arg" : 'X\(//\)$' \| \
13530          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13531 echo X"$_am_arg" |
13532     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13533             s//\1/
13534             q
13535           }
13536           /^X\(\/\/\)[^/].*/{
13537             s//\1/
13538             q
13539           }
13540           /^X\(\/\/\)$/{
13541             s//\1/
13542             q
13543           }
13544           /^X\(\/\).*/{
13545             s//\1/
13546             q
13547           }
13548           s/.*/./; q'`/stamp-h$_am_stamp_count
13549  ;;
13550
13551   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13552 echo "$as_me: executing $ac_file commands" >&6;}
13553  ;;
13554   esac
13555
13556
13557   case $ac_file$ac_mode in
13558     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13559   # Strip MF so we end up with the name of the file.
13560   mf=`echo "$mf" | sed -e 's/:.*$//'`
13561   # Check whether this is an Automake generated Makefile or not.
13562   # We used to match only the files named `Makefile.in', but
13563   # some people rename them; so instead we look at the file content.
13564   # Grep'ing the first line is not enough: some people post-process
13565   # each Makefile.in and add a new line on top of each file to say so.
13566   # Grep'ing the whole file is not good either: AIX grep has a line
13567   # limit of 2048, but all sed's we know have understand at least 4000.
13568   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13569     dirpart=`$as_dirname -- "$mf" ||
13570 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13571          X"$mf" : 'X\(//\)[^/]' \| \
13572          X"$mf" : 'X\(//\)$' \| \
13573          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13574 echo X"$mf" |
13575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13576             s//\1/
13577             q
13578           }
13579           /^X\(\/\/\)[^/].*/{
13580             s//\1/
13581             q
13582           }
13583           /^X\(\/\/\)$/{
13584             s//\1/
13585             q
13586           }
13587           /^X\(\/\).*/{
13588             s//\1/
13589             q
13590           }
13591           s/.*/./; q'`
13592   else
13593     continue
13594   fi
13595   # Extract the definition of DEPDIR, am__include, and am__quote
13596   # from the Makefile without running `make'.
13597   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13598   test -z "$DEPDIR" && continue
13599   am__include=`sed -n 's/^am__include = //p' < "$mf"`
13600   test -z "am__include" && continue
13601   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13602   # When using ansi2knr, U may be empty or an underscore; expand it
13603   U=`sed -n 's/^U = //p' < "$mf"`
13604   # Find all dependency output files, they are included files with
13605   # $(DEPDIR) in their names.  We invoke sed twice because it is the
13606   # simplest approach to changing $(DEPDIR) to its actual value in the
13607   # expansion.
13608   for file in `sed -n "
13609     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13610        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13611     # Make sure the directory exists.
13612     test -f "$dirpart/$file" && continue
13613     fdir=`$as_dirname -- "$file" ||
13614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13615          X"$file" : 'X\(//\)[^/]' \| \
13616          X"$file" : 'X\(//\)$' \| \
13617          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13618 echo X"$file" |
13619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13620             s//\1/
13621             q
13622           }
13623           /^X\(\/\/\)[^/].*/{
13624             s//\1/
13625             q
13626           }
13627           /^X\(\/\/\)$/{
13628             s//\1/
13629             q
13630           }
13631           /^X\(\/\).*/{
13632             s//\1/
13633             q
13634           }
13635           s/.*/./; q'`
13636     { as_dir=$dirpart/$fdir
13637   case $as_dir in #(
13638   -*) as_dir=./$as_dir;;
13639   esac
13640   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13641     as_dirs=
13642     while :; do
13643       case $as_dir in #(
13644       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13645       *) as_qdir=$as_dir;;
13646       esac
13647       as_dirs="'$as_qdir' $as_dirs"
13648       as_dir=`$as_dirname -- "$as_dir" ||
13649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13650          X"$as_dir" : 'X\(//\)[^/]' \| \
13651          X"$as_dir" : 'X\(//\)$' \| \
13652          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13653 echo X"$as_dir" |
13654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13655             s//\1/
13656             q
13657           }
13658           /^X\(\/\/\)[^/].*/{
13659             s//\1/
13660             q
13661           }
13662           /^X\(\/\/\)$/{
13663             s//\1/
13664             q
13665           }
13666           /^X\(\/\).*/{
13667             s//\1/
13668             q
13669           }
13670           s/.*/./; q'`
13671       test -d "$as_dir" && break
13672     done
13673     test -z "$as_dirs" || eval "mkdir $as_dirs"
13674   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13675 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13676    { (exit 1); exit 1; }; }; }
13677     # echo "creating $dirpart/$file"
13678     echo '# dummy' > "$dirpart/$file"
13679   done
13680 done
13681  ;;
13682
13683   esac
13684 done # for ac_tag
13685
13686
13687 { (exit 0); exit 0; }
13688 _ACEOF
13689 chmod +x $CONFIG_STATUS
13690 ac_clean_files=$ac_clean_files_save
13691
13692
13693 # configure is writing to config.log, and then calls config.status.
13694 # config.status does its own redirection, appending to config.log.
13695 # Unfortunately, on DOS this fails, as config.log is still kept open
13696 # by configure, so config.status won't be able to write to it; its
13697 # output is simply discarded.  So we exec the FD to /dev/null,
13698 # effectively closing config.log, so it can be properly (re)opened and
13699 # appended to by config.status.  When coming back to configure, we
13700 # need to make the FD available again.
13701 if test "$no_create" != yes; then
13702   ac_cs_success=:
13703   ac_config_status_args=
13704   test "$silent" = yes &&
13705     ac_config_status_args="$ac_config_status_args --quiet"
13706   exec 5>/dev/null
13707   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13708   exec 5>>config.log
13709   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13710   # would make configure fail if this is the last instruction.
13711   $ac_cs_success || { (exit 1); exit 1; }
13712 fi
13713