]> git.sur5r.net Git - openldap/blob - configure
Add VLV support
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.699 2009/07/04 23:42:26 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DYNGROUP
912 BUILD_DYNLIST
913 BUILD_LASTMOD
914 BUILD_MEMBEROF
915 BUILD_PPOLICY
916 BUILD_PROXYCACHE
917 BUILD_REFINT
918 BUILD_RETCODE
919 BUILD_RWM
920 BUILD_SEQMOD
921 BUILD_SYNCPROV
922 BUILD_TRANSLUCENT
923 BUILD_UNIQUE
924 BUILD_VALSORT
925 LDAP_LIBS
926 SLAPD_LIBS
927 BDB_LIBS
928 SLAPD_NDB_LIBS
929 SLAPD_NDB_INCS
930 LTHREAD_LIBS
931 LUTIL_LIBS
932 WRAP_LIBS
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
935 SLAPD_NO_STATIC
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
940 PERL_CPPFLAGS
941 SLAPD_PERL_LDFLAGS
942 MOD_PERL_LDFLAGS
943 KRB4_LIBS
944 KRB5_LIBS
945 SASL_LIBS
946 TLS_LIBS
947 MODULES_LIBS
948 SLAPI_LIBS
949 LIBSLAPI
950 LIBSLAPITOOLS
951 AUTH_LIBS
952 ICU_LIBS
953 SLAPD_SLP_LIBS
954 SLAPD_GMP_LIBS
955 SLAPD_SQL_LDFLAGS
956 SLAPD_SQL_LIBS
957 SLAPD_SQL_INCLUDES
958 LTLIBOBJS'
959 ac_subst_files=''
960       ac_precious_vars='build_alias
961 host_alias
962 target_alias
963 CC
964 CFLAGS
965 LDFLAGS
966 LIBS
967 CPPFLAGS
968 CPP'
969
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
976 cache_file=/dev/null
977 exec_prefix=NONE
978 no_create=
979 no_recursion=
980 prefix=NONE
981 program_prefix=NONE
982 program_suffix=NONE
983 program_transform_name=s,x,x,
984 silent=
985 site=
986 srcdir=
987 verbose=
988 x_includes=NONE
989 x_libraries=NONE
990
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021   # If the previous option needs an argument, assign it.
1022   if test -n "$ac_prev"; then
1023     eval $ac_prev=\$ac_option
1024     ac_prev=
1025     continue
1026   fi
1027
1028   case $ac_option in
1029   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030   *)    ac_optarg=yes ;;
1031   esac
1032
1033   # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035   case $ac_dashdash$ac_option in
1036   --)
1037     ac_dashdash=yes ;;
1038
1039   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040     ac_prev=bindir ;;
1041   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042     bindir=$ac_optarg ;;
1043
1044   -build | --build | --buil | --bui | --bu)
1045     ac_prev=build_alias ;;
1046   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047     build_alias=$ac_optarg ;;
1048
1049   -cache-file | --cache-file | --cache-fil | --cache-fi \
1050   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051     ac_prev=cache_file ;;
1052   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054     cache_file=$ac_optarg ;;
1055
1056   --config-cache | -C)
1057     cache_file=config.cache ;;
1058
1059   -datadir | --datadir | --datadi | --datad)
1060     ac_prev=datadir ;;
1061   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062     datadir=$ac_optarg ;;
1063
1064   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065   | --dataroo | --dataro | --datar)
1066     ac_prev=datarootdir ;;
1067   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069     datarootdir=$ac_optarg ;;
1070
1071   -disable-* | --disable-*)
1072     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078     eval enable_$ac_feature=no ;;
1079
1080   -docdir | --docdir | --docdi | --doc | --do)
1081     ac_prev=docdir ;;
1082   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083     docdir=$ac_optarg ;;
1084
1085   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086     ac_prev=dvidir ;;
1087   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088     dvidir=$ac_optarg ;;
1089
1090   -enable-* | --enable-*)
1091     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095    { (exit 1); exit 1; }; }
1096     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1097     eval enable_$ac_feature=\$ac_optarg ;;
1098
1099   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101   | --exec | --exe | --ex)
1102     ac_prev=exec_prefix ;;
1103   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105   | --exec=* | --exe=* | --ex=*)
1106     exec_prefix=$ac_optarg ;;
1107
1108   -gas | --gas | --ga | --g)
1109     # Obsolete; use --with-gas.
1110     with_gas=yes ;;
1111
1112   -help | --help | --hel | --he | -h)
1113     ac_init_help=long ;;
1114   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115     ac_init_help=recursive ;;
1116   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117     ac_init_help=short ;;
1118
1119   -host | --host | --hos | --ho)
1120     ac_prev=host_alias ;;
1121   -host=* | --host=* | --hos=* | --ho=*)
1122     host_alias=$ac_optarg ;;
1123
1124   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125     ac_prev=htmldir ;;
1126   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127   | --ht=*)
1128     htmldir=$ac_optarg ;;
1129
1130   -includedir | --includedir | --includedi | --included | --include \
1131   | --includ | --inclu | --incl | --inc)
1132     ac_prev=includedir ;;
1133   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134   | --includ=* | --inclu=* | --incl=* | --inc=*)
1135     includedir=$ac_optarg ;;
1136
1137   -infodir | --infodir | --infodi | --infod | --info | --inf)
1138     ac_prev=infodir ;;
1139   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140     infodir=$ac_optarg ;;
1141
1142   -libdir | --libdir | --libdi | --libd)
1143     ac_prev=libdir ;;
1144   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145     libdir=$ac_optarg ;;
1146
1147   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148   | --libexe | --libex | --libe)
1149     ac_prev=libexecdir ;;
1150   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151   | --libexe=* | --libex=* | --libe=*)
1152     libexecdir=$ac_optarg ;;
1153
1154   -localedir | --localedir | --localedi | --localed | --locale)
1155     ac_prev=localedir ;;
1156   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157     localedir=$ac_optarg ;;
1158
1159   -localstatedir | --localstatedir | --localstatedi | --localstated \
1160   | --localstate | --localstat | --localsta | --localst | --locals)
1161     ac_prev=localstatedir ;;
1162   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164     localstatedir=$ac_optarg ;;
1165
1166   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167     ac_prev=mandir ;;
1168   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169     mandir=$ac_optarg ;;
1170
1171   -nfp | --nfp | --nf)
1172     # Obsolete; use --without-fp.
1173     with_fp=no ;;
1174
1175   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176   | --no-cr | --no-c | -n)
1177     no_create=yes ;;
1178
1179   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181     no_recursion=yes ;;
1182
1183   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185   | --oldin | --oldi | --old | --ol | --o)
1186     ac_prev=oldincludedir ;;
1187   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190     oldincludedir=$ac_optarg ;;
1191
1192   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193     ac_prev=prefix ;;
1194   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195     prefix=$ac_optarg ;;
1196
1197   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198   | --program-pre | --program-pr | --program-p)
1199     ac_prev=program_prefix ;;
1200   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202     program_prefix=$ac_optarg ;;
1203
1204   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205   | --program-suf | --program-su | --program-s)
1206     ac_prev=program_suffix ;;
1207   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209     program_suffix=$ac_optarg ;;
1210
1211   -program-transform-name | --program-transform-name \
1212   | --program-transform-nam | --program-transform-na \
1213   | --program-transform-n | --program-transform- \
1214   | --program-transform | --program-transfor \
1215   | --program-transfo | --program-transf \
1216   | --program-trans | --program-tran \
1217   | --progr-tra | --program-tr | --program-t)
1218     ac_prev=program_transform_name ;;
1219   -program-transform-name=* | --program-transform-name=* \
1220   | --program-transform-nam=* | --program-transform-na=* \
1221   | --program-transform-n=* | --program-transform-=* \
1222   | --program-transform=* | --program-transfor=* \
1223   | --program-transfo=* | --program-transf=* \
1224   | --program-trans=* | --program-tran=* \
1225   | --progr-tra=* | --program-tr=* | --program-t=*)
1226     program_transform_name=$ac_optarg ;;
1227
1228   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229     ac_prev=pdfdir ;;
1230   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231     pdfdir=$ac_optarg ;;
1232
1233   -psdir | --psdir | --psdi | --psd | --ps)
1234     ac_prev=psdir ;;
1235   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236     psdir=$ac_optarg ;;
1237
1238   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239   | -silent | --silent | --silen | --sile | --sil)
1240     silent=yes ;;
1241
1242   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243     ac_prev=sbindir ;;
1244   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245   | --sbi=* | --sb=*)
1246     sbindir=$ac_optarg ;;
1247
1248   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250   | --sharedst | --shareds | --shared | --share | --shar \
1251   | --sha | --sh)
1252     ac_prev=sharedstatedir ;;
1253   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256   | --sha=* | --sh=*)
1257     sharedstatedir=$ac_optarg ;;
1258
1259   -site | --site | --sit)
1260     ac_prev=site ;;
1261   -site=* | --site=* | --sit=*)
1262     site=$ac_optarg ;;
1263
1264   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265     ac_prev=srcdir ;;
1266   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267     srcdir=$ac_optarg ;;
1268
1269   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270   | --syscon | --sysco | --sysc | --sys | --sy)
1271     ac_prev=sysconfdir ;;
1272   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274     sysconfdir=$ac_optarg ;;
1275
1276   -target | --target | --targe | --targ | --tar | --ta | --t)
1277     ac_prev=target_alias ;;
1278   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279     target_alias=$ac_optarg ;;
1280
1281   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282     verbose=yes ;;
1283
1284   -version | --version | --versio | --versi | --vers | -V)
1285     ac_init_version=: ;;
1286
1287   -with-* | --with-*)
1288     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid package name: $ac_package" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1294     eval with_$ac_package=\$ac_optarg ;;
1295
1296   -without-* | --without-*)
1297     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300       { echo "$as_me: error: invalid package name: $ac_package" >&2
1301    { (exit 1); exit 1; }; }
1302     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1303     eval with_$ac_package=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) { echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325    { (exit 1); exit 1; }; }
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333    { (exit 1); exit 1; }; }
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   { echo "$as_me: error: missing argument to $ac_option" >&2
1351    { (exit 1); exit 1; }; }
1352 fi
1353
1354 # Be sure to have absolute directory names.
1355 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                 datadir sysconfdir sharedstatedir localstatedir includedir \
1357                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                 libdir localedir mandir
1359 do
1360   eval ac_val=\$$ac_var
1361   case $ac_val in
1362     [\\/$]* | ?:[\\/]* )  continue;;
1363     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364   esac
1365   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366    { (exit 1); exit 1; }; }
1367 done
1368
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1372 build=$build_alias
1373 host=$host_alias
1374 target=$target_alias
1375
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378   if test "x$build_alias" = x; then
1379     cross_compiling=maybe
1380     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381     If a cross compiler is detected then cross compile mode will be used." >&2
1382   elif test "x$build_alias" != "x$host_alias"; then
1383     cross_compiling=yes
1384   fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396   { echo "$as_me: error: Working directory cannot be determined" >&2
1397    { (exit 1); exit 1; }; }
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399   { echo "$as_me: error: pwd does not report name of working directory" >&2
1400    { (exit 1); exit 1; }; }
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405   ac_srcdir_defaulted=yes
1406   # Try the directory containing this script, then the parent directory.
1407   ac_confdir=`$as_dirname -- "$0" ||
1408 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409          X"$0" : 'X\(//\)[^/]' \| \
1410          X"$0" : 'X\(//\)$' \| \
1411          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1412 echo X"$0" |
1413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)[^/].*/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\).*/{
1426             s//\1/
1427             q
1428           }
1429           s/.*/./; q'`
1430   srcdir=$ac_confdir
1431   if test ! -r "$srcdir/$ac_unique_file"; then
1432     srcdir=..
1433   fi
1434 else
1435   ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1440    { (exit 1); exit 1; }; }
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1445    { (exit 1); exit 1; }; }
1446         pwd)`
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449   srcdir=.
1450 fi
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1454 case $srcdir in
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 esac
1457 for ac_var in $ac_precious_vars; do
1458   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459   eval ac_env_${ac_var}_value=\$${ac_var}
1460   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 done
1463
1464 #
1465 # Report the --help message.
1466 #
1467 if test "$ac_init_help" = "long"; then
1468   # Omit some internal or obsolete options to make the list less imposing.
1469   # This message is too long to be a string in the A/UX 3.1 sh.
1470   cat <<_ACEOF
1471 \`configure' configures this package to adapt to many kinds of systems.
1472
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE.  See below for descriptions of some of the useful variables.
1477
1478 Defaults for the options are specified in brackets.
1479
1480 Configuration:
1481   -h, --help              display this help and exit
1482       --help=short        display options specific to this package
1483       --help=recursive    display the short help of all the included packages
1484   -V, --version           display version information and exit
1485   -q, --quiet, --silent   do not print \`checking...' messages
1486       --cache-file=FILE   cache test results in FILE [disabled]
1487   -C, --config-cache      alias for \`--cache-file=config.cache'
1488   -n, --no-create         do not create output files
1489       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1490
1491 Installation directories:
1492   --prefix=PREFIX         install architecture-independent files in PREFIX
1493                           [$ac_default_prefix]
1494   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1495                           [PREFIX]
1496
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1501
1502 For better control, use the options below.
1503
1504 Fine tuning of the installation directories:
1505   --bindir=DIR           user executables [EPREFIX/bin]
1506   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1507   --libexecdir=DIR       program executables [EPREFIX/libexec]
1508   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1509   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1510   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1511   --libdir=DIR           object code libraries [EPREFIX/lib]
1512   --includedir=DIR       C header files [PREFIX/include]
1513   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1514   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1515   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1516   --infodir=DIR          info documentation [DATAROOTDIR/info]
1517   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1518   --mandir=DIR           man documentation [DATAROOTDIR/man]
1519   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1520   --htmldir=DIR          html documentation [DOCDIR]
1521   --dvidir=DIR           dvi documentation [DOCDIR]
1522   --pdfdir=DIR           pdf documentation [DOCDIR]
1523   --psdir=DIR            ps documentation [DOCDIR]
1524 _ACEOF
1525
1526   cat <<\_ACEOF
1527
1528 Program names:
1529   --program-prefix=PREFIX            prepend PREFIX to installed program names
1530   --program-suffix=SUFFIX            append SUFFIX to installed program names
1531   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1532
1533 System types:
1534   --build=BUILD     configure for building on BUILD [guessed]
1535   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1536   --target=TARGET   configure for building compilers for TARGET [HOST]
1537 _ACEOF
1538 fi
1539
1540 if test -n "$ac_init_help"; then
1541
1542   cat <<\_ACEOF
1543
1544 Optional Features:
1545   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1546   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1547   --enable-debug          enable debugging no|yes|traditional [yes]
1548   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1549   --enable-syslog         enable syslog support [auto]
1550   --enable-proctitle      enable proctitle support [yes]
1551   --enable-ipv6           enable IPv6 support [auto]
1552   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1553
1554 SLAPD (Standalone LDAP Daemon) Options:
1555   --enable-slapd          enable building slapd [yes]
1556     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1557     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1558     --enable-cleartext    enable cleartext passwords [yes]
1559     --enable-crypt        enable crypt(3) passwords [no]
1560     --enable-lmpasswd     enable LAN Manager passwords [no]
1561     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1562     --enable-modules      enable dynamic module support [no]
1563     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1564     --enable-rlookups     enable reverse lookups of client hostnames [no]
1565     --enable-slapi        enable SLAPI support (experimental) [no]
1566     --enable-slp          enable SLPv2 support [no]
1567     --enable-wrappers     enable tcp wrapper support [no]
1568
1569 SLAPD Backend Options:
1570     --enable-backends     enable all available backends no|yes|mod
1571     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1572     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1573     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1574     --enable-ldap         enable ldap backend no|yes|mod [no]
1575     --enable-meta         enable metadirectory backend no|yes|mod [no]
1576     --enable-monitor      enable monitor backend no|yes|mod [yes]
1577     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1578     --enable-null         enable null backend no|yes|mod [no]
1579     --enable-passwd       enable passwd backend no|yes|mod [no]
1580     --enable-perl         enable perl backend no|yes|mod [no]
1581     --enable-relay        enable relay backend no|yes|mod [yes]
1582     --enable-shell        enable shell backend no|yes|mod [no]
1583     --enable-sock         enable sock backend no|yes|mod [no]
1584     --enable-sql          enable sql backend no|yes|mod [no]
1585
1586 SLAPD Overlay Options:
1587     --enable-overlays     enable all available overlays no|yes|mod
1588     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1589     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1590     --enable-collect      Collect overlay no|yes|mod [no]
1591     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1592     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1593     --enable-deref        Dereference overlay no|yes|mod [no]
1594     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1595     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1596     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1597     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1598     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1599     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1600     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1601     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1602     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1603     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1604     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1605     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1606     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1607
1608 Library Generation & Linking Options
1609   --enable-static[=PKGS]  build static libraries [default=yes]
1610   --enable-shared[=PKGS]  build shared libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-dependency-tracking  speeds up one-time build
1614   --enable-dependency-tracking   do not reject slow dependency extractors
1615   --disable-libtool-lock  avoid locking (might break parallel builds)
1616
1617 Optional Packages:
1618   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1619   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1620   --with-subdir=DIR       change default subdirectory used for installs
1621   --with-cyrus-sasl       with Cyrus SASL support [auto]
1622   --with-fetch            with fetch(3) URL support [auto]
1623   --with-threads          with threads [auto]
1624   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1625   --with-yielding-select  with implicitly yielding select [auto]
1626   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1627   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1628   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629   --with-pic              try to use only PIC/non-PIC objects [default=use
1630                           both]
1631   --with-tags[=TAGS]      include additional configurations [automatic]
1632
1633 See INSTALL file for further details.
1634
1635 Some influential environment variables:
1636   CC          C compiler command
1637   CFLAGS      C compiler flags
1638   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1639               nonstandard directory <lib dir>
1640   LIBS        libraries to pass to the linker, e.g. -l<library>
1641   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1642               you have headers in a nonstandard directory <include dir>
1643   CPP         C preprocessor
1644
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1647
1648 _ACEOF
1649 ac_status=$?
1650 fi
1651
1652 if test "$ac_init_help" = "recursive"; then
1653   # If there are subdirs, report their specific --help.
1654   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655     test -d "$ac_dir" || continue
1656     ac_builddir=.
1657
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *)
1661   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1662   # A ".." for each directory in $ac_dir_suffix.
1663   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1664   case $ac_top_builddir_sub in
1665   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667   esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1673
1674 case $srcdir in
1675   .)  # We are building in place.
1676     ac_srcdir=.
1677     ac_top_srcdir=$ac_top_builddir_sub
1678     ac_abs_top_srcdir=$ac_pwd ;;
1679   [\\/]* | ?:[\\/]* )  # Absolute name.
1680     ac_srcdir=$srcdir$ac_dir_suffix;
1681     ac_top_srcdir=$srcdir
1682     ac_abs_top_srcdir=$srcdir ;;
1683   *) # Relative name.
1684     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685     ac_top_srcdir=$ac_top_build_prefix$srcdir
1686     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690     cd "$ac_dir" || { ac_status=$?; continue; }
1691     # Check for guested configure.
1692     if test -f "$ac_srcdir/configure.gnu"; then
1693       echo &&
1694       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695     elif test -f "$ac_srcdir/configure"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure" --help=recursive
1698     else
1699       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700     fi || ac_status=$?
1701     cd "$ac_pwd" || { ac_status=$?; break; }
1702   done
1703 fi
1704
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707   cat <<\_ACEOF
1708 configure
1709 generated by GNU Autoconf 2.61
1710
1711 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1712 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715
1716 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1717 Restrictions apply, see COPYRIGHT and LICENSE files.
1718 _ACEOF
1719   exit
1720 fi
1721 cat >config.log <<_ACEOF
1722 This file contains any messages produced by compilers while
1723 running configure, to aid debugging if configure makes a mistake.
1724
1725 It was created by $as_me, which was
1726 generated by GNU Autoconf 2.61.  Invocation command line was
1727
1728   $ $0 $@
1729
1730 _ACEOF
1731 exec 5>>config.log
1732 {
1733 cat <<_ASUNAME
1734 ## --------- ##
1735 ## Platform. ##
1736 ## --------- ##
1737
1738 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1743
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1746
1747 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1748 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1749 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1751 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1752 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1753 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1754
1755 _ASUNAME
1756
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760   IFS=$as_save_IFS
1761   test -z "$as_dir" && as_dir=.
1762   echo "PATH: $as_dir"
1763 done
1764 IFS=$as_save_IFS
1765
1766 } >&5
1767
1768 cat >&5 <<_ACEOF
1769
1770
1771 ## ----------- ##
1772 ## Core tests. ##
1773 ## ----------- ##
1774
1775 _ACEOF
1776
1777
1778 # Keep a trace of the command line.
1779 # Strip out --no-create and --no-recursion so they do not pile up.
1780 # Strip out --silent because we don't want to record it for future runs.
1781 # Also quote any args containing shell meta-characters.
1782 # Make two passes to allow for proper duplicate-argument suppression.
1783 ac_configure_args=
1784 ac_configure_args0=
1785 ac_configure_args1=
1786 ac_must_keep_next=false
1787 for ac_pass in 1 2
1788 do
1789   for ac_arg
1790   do
1791     case $ac_arg in
1792     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794     | -silent | --silent | --silen | --sile | --sil)
1795       continue ;;
1796     *\'*)
1797       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1798     esac
1799     case $ac_pass in
1800     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1801     2)
1802       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803       if test $ac_must_keep_next = true; then
1804         ac_must_keep_next=false # Got value, back to normal.
1805       else
1806         case $ac_arg in
1807           *=* | --config-cache | -C | -disable-* | --disable-* \
1808           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810           | -with-* | --with-* | -without-* | --without-* | --x)
1811             case "$ac_configure_args0 " in
1812               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813             esac
1814             ;;
1815           -* ) ac_must_keep_next=true ;;
1816         esac
1817       fi
1818       ac_configure_args="$ac_configure_args '$ac_arg'"
1819       ;;
1820     esac
1821   done
1822 done
1823 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1825
1826 # When interrupted or exit'd, cleanup temporary files, and complete
1827 # config.log.  We remove comments because anyway the quotes in there
1828 # would cause problems or look ugly.
1829 # WARNING: Use '\'' to represent an apostrophe within the trap.
1830 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831 trap 'exit_status=$?
1832   # Save into config.log some information that might help in debugging.
1833   {
1834     echo
1835
1836     cat <<\_ASBOX
1837 ## ---------------- ##
1838 ## Cache variables. ##
1839 ## ---------------- ##
1840 _ASBOX
1841     echo
1842     # The following way of writing the cache mishandles newlines in values,
1843 (
1844   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845     eval ac_val=\$$ac_var
1846     case $ac_val in #(
1847     *${as_nl}*)
1848       case $ac_var in #(
1849       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1850 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1851       esac
1852       case $ac_var in #(
1853       _ | IFS | as_nl) ;; #(
1854       *) $as_unset $ac_var ;;
1855       esac ;;
1856     esac
1857   done
1858   (set) 2>&1 |
1859     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1860     *${as_nl}ac_space=\ *)
1861       sed -n \
1862         "s/'\''/'\''\\\\'\'''\''/g;
1863           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1864       ;; #(
1865     *)
1866       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1867       ;;
1868     esac |
1869     sort
1870 )
1871     echo
1872
1873     cat <<\_ASBOX
1874 ## ----------------- ##
1875 ## Output variables. ##
1876 ## ----------------- ##
1877 _ASBOX
1878     echo
1879     for ac_var in $ac_subst_vars
1880     do
1881       eval ac_val=\$$ac_var
1882       case $ac_val in
1883       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884       esac
1885       echo "$ac_var='\''$ac_val'\''"
1886     done | sort
1887     echo
1888
1889     if test -n "$ac_subst_files"; then
1890       cat <<\_ASBOX
1891 ## ------------------- ##
1892 ## File substitutions. ##
1893 ## ------------------- ##
1894 _ASBOX
1895       echo
1896       for ac_var in $ac_subst_files
1897       do
1898         eval ac_val=\$$ac_var
1899         case $ac_val in
1900         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901         esac
1902         echo "$ac_var='\''$ac_val'\''"
1903       done | sort
1904       echo
1905     fi
1906
1907     if test -s confdefs.h; then
1908       cat <<\_ASBOX
1909 ## ----------- ##
1910 ## confdefs.h. ##
1911 ## ----------- ##
1912 _ASBOX
1913       echo
1914       cat confdefs.h
1915       echo
1916     fi
1917     test "$ac_signal" != 0 &&
1918       echo "$as_me: caught signal $ac_signal"
1919     echo "$as_me: exit $exit_status"
1920   } >&5
1921   rm -f core *.core core.conftest.* &&
1922     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1923     exit $exit_status
1924 ' 0
1925 for ac_signal in 1 2 13 15; do
1926   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1927 done
1928 ac_signal=0
1929
1930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1931 rm -f -r conftest* confdefs.h
1932
1933 # Predefined preprocessor variables.
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_NAME "$PACKAGE_NAME"
1937 _ACEOF
1938
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1942 _ACEOF
1943
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1947 _ACEOF
1948
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_STRING "$PACKAGE_STRING"
1952 _ACEOF
1953
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1957 _ACEOF
1958
1959
1960 # Let the site file select an alternate cache file if it wants to.
1961 # Prefer explicitly selected file to automatically selected ones.
1962 if test -n "$CONFIG_SITE"; then
1963   set x "$CONFIG_SITE"
1964 elif test "x$prefix" != xNONE; then
1965   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1966 else
1967   set x "$ac_default_prefix/share/config.site" \
1968         "$ac_default_prefix/etc/config.site"
1969 fi
1970 shift
1971 for ac_site_file
1972 do
1973   if test -r "$ac_site_file"; then
1974     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1975 echo "$as_me: loading site script $ac_site_file" >&6;}
1976     sed 's/^/| /' "$ac_site_file" >&5
1977     . "$ac_site_file"
1978   fi
1979 done
1980
1981
1982 # Check that the precious variables saved in the cache have kept the same
1983 # value.
1984 ac_cache_corrupted=false
1985 for ac_var in $ac_precious_vars; do
1986   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987   eval ac_new_set=\$ac_env_${ac_var}_set
1988   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989   eval ac_new_val=\$ac_env_${ac_var}_value
1990   case $ac_old_set,$ac_new_set in
1991     set,)
1992       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994       ac_cache_corrupted=: ;;
1995     ,set)
1996       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998       ac_cache_corrupted=: ;;
1999     ,);;
2000     *)
2001       if test "x$ac_old_val" != "x$ac_new_val"; then
2002         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2005 echo "$as_me:   former value:  $ac_old_val" >&2;}
2006         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2007 echo "$as_me:   current value: $ac_new_val" >&2;}
2008         ac_cache_corrupted=:
2009       fi;;
2010   esac
2011   # Pass precious variables to config.status.
2012   if test "$ac_new_set" = set; then
2013     case $ac_new_val in
2014     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2015     *) ac_arg=$ac_var=$ac_new_val ;;
2016     esac
2017     case " $ac_configure_args " in
2018       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2019       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020     esac
2021   fi
2022 done
2023 if $ac_cache_corrupted; then
2024   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2028    { (exit 1); exit 1; }; }
2029 fi
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080 ac_aux_dir=
2081 for ac_dir in build "$srcdir"/build; do
2082   if test -f "$ac_dir/install-sh"; then
2083     ac_aux_dir=$ac_dir
2084     ac_install_sh="$ac_aux_dir/install-sh -c"
2085     break
2086   elif test -f "$ac_dir/install.sh"; then
2087     ac_aux_dir=$ac_dir
2088     ac_install_sh="$ac_aux_dir/install.sh -c"
2089     break
2090   elif test -f "$ac_dir/shtool"; then
2091     ac_aux_dir=$ac_dir
2092     ac_install_sh="$ac_aux_dir/shtool install -c"
2093     break
2094   fi
2095 done
2096 if test -z "$ac_aux_dir"; then
2097   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2098 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2099    { (exit 1); exit 1; }; }
2100 fi
2101
2102 # These three variables are undocumented and unsupported,
2103 # and are intended to be withdrawn in a future Autoconf release.
2104 # They can cause serious problems if a builder's source tree is in a directory
2105 # whose full name contains unusual characters.
2106 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2107 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2108 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2109
2110
2111 eval `$ac_aux_dir/version.sh`
2112 if test -z "$OL_STRING"; then
2113         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2114 echo "$as_me: error: could not determine version" >&2;}
2115    { (exit 1); exit 1; }; }
2116 fi
2117
2118 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2119         ac_cv_shtool="$ac_aux_dir/shtool"
2120 else
2121         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2122 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125
2126 SHTOOL="$ac_cv_shtool"
2127
2128 TB="" TN=""
2129 if test -t 1; then
2130         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2131         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2132 fi
2133
2134 OPENLDAP_CVS=""
2135 if test -d $ac_aux_dir/CVS; then
2136         OPENLDAP_CVS="(from CVS sources) "
2137 fi
2138
2139 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2140
2141 # Make sure we can run config.sub.
2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2145    { (exit 1); exit 1; }; }
2146
2147 { echo "$as_me:$LINENO: checking build system type" >&5
2148 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_build+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158    { (exit 1); exit 1; }; }
2159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2162    { (exit 1); exit 1; }; }
2163
2164 fi
2165 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166 echo "${ECHO_T}$ac_cv_build" >&6; }
2167 case $ac_cv_build in
2168 *-*-*) ;;
2169 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170 echo "$as_me: error: invalid value of canonical build" >&2;}
2171    { (exit 1); exit 1; }; };;
2172 esac
2173 build=$ac_cv_build
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_build
2176 shift
2177 build_cpu=$1
2178 build_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 build_os=$*
2183 IFS=$ac_save_IFS
2184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2185
2186
2187 { echo "$as_me:$LINENO: checking host system type" >&5
2188 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2189 if test "${ac_cv_host+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   if test "x$host_alias" = x; then
2193   ac_cv_host=$ac_cv_build
2194 else
2195   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2198    { (exit 1); exit 1; }; }
2199 fi
2200
2201 fi
2202 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 echo "${ECHO_T}$ac_cv_host" >&6; }
2204 case $ac_cv_host in
2205 *-*-*) ;;
2206 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207 echo "$as_me: error: invalid value of canonical host" >&2;}
2208    { (exit 1); exit 1; }; };;
2209 esac
2210 host=$ac_cv_host
2211 ac_save_IFS=$IFS; IFS='-'
2212 set x $ac_cv_host
2213 shift
2214 host_cpu=$1
2215 host_vendor=$2
2216 shift; shift
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2219 host_os=$*
2220 IFS=$ac_save_IFS
2221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2222
2223
2224 { echo "$as_me:$LINENO: checking target system type" >&5
2225 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2226 if test "${ac_cv_target+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test "x$target_alias" = x; then
2230   ac_cv_target=$ac_cv_host
2231 else
2232   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237
2238 fi
2239 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240 echo "${ECHO_T}$ac_cv_target" >&6; }
2241 case $ac_cv_target in
2242 *-*-*) ;;
2243 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244 echo "$as_me: error: invalid value of canonical target" >&2;}
2245    { (exit 1); exit 1; }; };;
2246 esac
2247 target=$ac_cv_target
2248 ac_save_IFS=$IFS; IFS='-'
2249 set x $ac_cv_target
2250 shift
2251 target_cpu=$1
2252 target_vendor=$2
2253 shift; shift
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2256 target_os=$*
2257 IFS=$ac_save_IFS
2258 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2259
2260
2261 # The aliases save the names the user supplied, while $host etc.
2262 # will get canonicalized.
2263 test -n "$target_alias" &&
2264   test "$program_prefix$program_suffix$program_transform_name" = \
2265     NONENONEs,x,x, &&
2266   program_prefix=${target_alias}-
2267
2268 am__api_version="1.9"
2269 # Find a good install program.  We prefer a C program (faster),
2270 # so one script is as good as another.  But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2275 # AIX /bin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2284 if test -z "$INSTALL"; then
2285 if test "${ac_cv_path_install+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in
2295   ./ | .// | /cC/* | \
2296   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2298   /usr/ucb/* ) ;;
2299   *)
2300     # OSF1 and SCO ODT 3.0 have their own names for install.
2301     # Don't use installbsd from OSF since it installs stuff as root
2302     # by default.
2303     for ac_prog in ginstall scoinst install; do
2304       for ac_exec_ext in '' $ac_executable_extensions; do
2305         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2306           if test $ac_prog = install &&
2307             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308             # AIX install.  It has an incompatible calling convention.
2309             :
2310           elif test $ac_prog = install &&
2311             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312             # program-specific install script used by HP pwplus--don't use.
2313             :
2314           else
2315             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316             break 3
2317           fi
2318         fi
2319       done
2320     done
2321     ;;
2322 esac
2323 done
2324 IFS=$as_save_IFS
2325
2326
2327 fi
2328   if test "${ac_cv_path_install+set}" = set; then
2329     INSTALL=$ac_cv_path_install
2330   else
2331     # As a last resort, use the slow shell script.  Don't cache a
2332     # value for INSTALL within a source directory, because that will
2333     # break other packages using the cache if that directory is
2334     # removed, or if the value is a relative name.
2335     INSTALL=$ac_install_sh
2336   fi
2337 fi
2338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2339 echo "${ECHO_T}$INSTALL" >&6; }
2340
2341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2342 # It thinks the first close brace ends the variable substitution.
2343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2344
2345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2346
2347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2348
2349 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2350 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2351 # Just in case
2352 sleep 1
2353 echo timestamp > conftest.file
2354 # Do `set' in a subshell so we don't clobber the current shell's
2355 # arguments.  Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2358 # directory).
2359 if (
2360    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2361    if test "$*" = "X"; then
2362       # -L didn't work.
2363       set X `ls -t $srcdir/configure conftest.file`
2364    fi
2365    rm -f conftest.file
2366    if test "$*" != "X $srcdir/configure conftest.file" \
2367       && test "$*" != "X conftest.file $srcdir/configure"; then
2368
2369       # If neither matched, then we have a broken ls.  This can happen
2370       # if, for instance, CONFIG_SHELL is bash and it inherits a
2371       # broken ls alias from the environment.  This has actually
2372       # happened.  Such a system could not be considered "sane".
2373       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2374 alias in your environment" >&5
2375 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" >&2;}
2377    { (exit 1); exit 1; }; }
2378    fi
2379
2380    test "$2" = conftest.file
2381    )
2382 then
2383    # Ok.
2384    :
2385 else
2386    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2387 Check your system clock" >&5
2388 echo "$as_me: error: newly created file is older than distributed files!
2389 Check your system clock" >&2;}
2390    { (exit 1); exit 1; }; }
2391 fi
2392 { echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6; }
2394 test "$program_prefix" != NONE &&
2395   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $.  echo might interpret backslashes.
2400 # By default was `s,x,x', remove it if useless.
2401 cat <<\_ACEOF >conftest.sed
2402 s/[\\$]/&&/g;s/;s,x,x,$//
2403 _ACEOF
2404 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2405 rm -f conftest.sed
2406
2407 # expand $ac_aux_dir to an absolute path
2408 am_aux_dir=`cd $ac_aux_dir && pwd`
2409
2410 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413   am_missing_run="$MISSING --run "
2414 else
2415   am_missing_run=
2416   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2417 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418 fi
2419
2420 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2421   # We used to keeping the `.' as first argument, in order to
2422   # allow $(mkdir_p) to be used without argument.  As in
2423   #   $(mkdir_p) $(somedir)
2424   # where $(somedir) is conditionally defined.  However this is wrong
2425   # for two reasons:
2426   #  1. if the package is installed by a user who cannot write `.'
2427   #     make install will fail,
2428   #  2. the above comment should most certainly read
2429   #     $(mkdir_p) $(DESTDIR)$(somedir)
2430   #     so it does not work when $(somedir) is undefined and
2431   #     $(DESTDIR) is not.
2432   #  To support the latter case, we have to write
2433   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2434   #  so the `.' trick is pointless.
2435   mkdir_p='mkdir -p --'
2436 else
2437   # On NextStep and OpenStep, the `mkdir' command does not
2438   # recognize any option.  It will interpret all options as
2439   # directories to create, and then abort because `.' already
2440   # exists.
2441   for d in ./-p ./--version;
2442   do
2443     test -d $d && rmdir $d
2444   done
2445   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2446   if test -f "$ac_aux_dir/mkinstalldirs"; then
2447     mkdir_p='$(mkinstalldirs)'
2448   else
2449     mkdir_p='$(install_sh) -d'
2450   fi
2451 fi
2452
2453 for ac_prog in gawk mawk nawk awk
2454 do
2455   # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_AWK+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test -n "$AWK"; then
2463   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472     ac_cv_prog_AWK="$ac_prog"
2473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477 done
2478 IFS=$as_save_IFS
2479
2480 fi
2481 fi
2482 AWK=$ac_cv_prog_AWK
2483 if test -n "$AWK"; then
2484   { echo "$as_me:$LINENO: result: $AWK" >&5
2485 echo "${ECHO_T}$AWK" >&6; }
2486 else
2487   { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2489 fi
2490
2491
2492   test -n "$AWK" && break
2493 done
2494
2495 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2497 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2498 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   cat >conftest.make <<\_ACEOF
2502 SHELL = /bin/sh
2503 all:
2504         @echo '@@@%%%=$(MAKE)=@@@%%%'
2505 _ACEOF
2506 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2508   *@@@%%%=?*=@@@%%%*)
2509     eval ac_cv_prog_make_${ac_make}_set=yes;;
2510   *)
2511     eval ac_cv_prog_make_${ac_make}_set=no;;
2512 esac
2513 rm -f conftest.make
2514 fi
2515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2516   { echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6; }
2518   SET_MAKE=
2519 else
2520   { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522   SET_MAKE="MAKE=${MAKE-make}"
2523 fi
2524
2525 rm -rf .tst 2>/dev/null
2526 mkdir .tst 2>/dev/null
2527 if test -d .tst; then
2528   am__leading_dot=.
2529 else
2530   am__leading_dot=_
2531 fi
2532 rmdir .tst 2>/dev/null
2533
2534 # test to see if srcdir already configured
2535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2536    test -f $srcdir/config.status; then
2537   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2539    { (exit 1); exit 1; }; }
2540 fi
2541
2542 # test whether we have cygpath
2543 if test -z "$CYGPATH_W"; then
2544   if (cygpath --version) >/dev/null 2>/dev/null; then
2545     CYGPATH_W='cygpath -w'
2546   else
2547     CYGPATH_W=echo
2548   fi
2549 fi
2550
2551
2552 # Define the identity of the package.
2553  PACKAGE=$OL_PACKAGE
2554  VERSION=$OL_VERSION
2555
2556
2557 # Some tools Automake needs.
2558
2559 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2560
2561
2562 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2563
2564
2565 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2566
2567
2568 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2569
2570
2571 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2572
2573 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2574
2575 # Installed binaries are usually stripped using `strip' when the user
2576 # run `make install-strip'.  However `strip' might not be the right
2577 # tool to use in cross-compilation environments, therefore Automake
2578 # will honor the `STRIP' environment variable to overrule this program.
2579 if test "$cross_compiling" != no; then
2580   if test -n "$ac_tool_prefix"; then
2581   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}strip; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_STRIP+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$STRIP"; then
2589   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 STRIP=$ac_cv_prog_STRIP
2609 if test -n "$STRIP"; then
2610   { echo "$as_me:$LINENO: result: $STRIP" >&5
2611 echo "${ECHO_T}$STRIP" >&6; }
2612 else
2613   { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618 fi
2619 if test -z "$ac_cv_prog_STRIP"; then
2620   ac_ct_STRIP=$STRIP
2621   # Extract the first word of "strip", so it can be a program name with args.
2622 set dummy strip; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   if test -n "$ac_ct_STRIP"; then
2629   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636   for ac_exec_ext in '' $ac_executable_extensions; do
2637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638     ac_cv_prog_ac_ct_STRIP="strip"
2639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640     break 2
2641   fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2649 if test -n "$ac_ct_STRIP"; then
2650   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2651 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2652 else
2653   { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2655 fi
2656
2657   if test "x$ac_ct_STRIP" = x; then
2658     STRIP=":"
2659   else
2660     case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet.  If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&5
2665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet.  If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2668 ac_tool_warned=yes ;;
2669 esac
2670     STRIP=$ac_ct_STRIP
2671   fi
2672 else
2673   STRIP="$ac_cv_prog_STRIP"
2674 fi
2675
2676 fi
2677 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2678
2679 # We need awk for the "check" target.  The system "awk" is bad on
2680 # some platforms.
2681 # Always define AMTAR for backward compatibility.
2682
2683 AMTAR=${AMTAR-"${am_missing_run}tar"}
2684
2685 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2686
2687
2688
2689
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define OPENLDAP_PACKAGE "$PACKAGE"
2693 _ACEOF
2694
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define OPENLDAP_VERSION "$VERSION"
2698 _ACEOF
2699
2700
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define LDAP_VENDOR_VERSION $OL_API_INC
2704 _ACEOF
2705
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2709 _ACEOF
2710
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2714 _ACEOF
2715
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2719 _ACEOF
2720
2721
2722 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2723
2724 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2725
2726 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2727
2728
2729
2730
2731
2732
2733
2734 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2735
2736 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2737
2738 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2739
2740
2741 { echo "$as_me:$LINENO: checking configure arguments" >&5
2742 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2743
2744
2745 top_builddir=`pwd`
2746
2747 ldap_subdir="/openldap"
2748
2749
2750 # Check whether --with-subdir was given.
2751 if test "${with_subdir+set}" = set; then
2752   withval=$with_subdir; case "$withval" in
2753         no) ldap_subdir=""
2754                 ;;
2755         yes)
2756                 ;;
2757         /*|\\*)
2758                 ldap_subdir="$withval"
2759                 ;;
2760         *)
2761                 ldap_subdir="/$withval"
2762                 ;;
2763 esac
2764
2765 fi
2766
2767
2768 # OpenLDAP --enable-debug
2769
2770         # Check whether --enable-debug was given.
2771 if test "${enable_debug+set}" = set; then
2772   enableval=$enable_debug;
2773         ol_arg=invalid
2774         for ol_val in no yes traditional ; do
2775                 if test "$enableval" = "$ol_val" ; then
2776                         ol_arg="$ol_val"
2777                 fi
2778         done
2779         if test "$ol_arg" = "invalid" ; then
2780                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2781 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2782    { (exit 1); exit 1; }; }
2783         fi
2784         ol_enable_debug="$ol_arg"
2785
2786 else
2787         ol_enable_debug=yes
2788 fi
2789
2790 # end --enable-debug
2791 # OpenLDAP --enable-dynamic
2792
2793         # Check whether --enable-dynamic was given.
2794 if test "${enable_dynamic+set}" = set; then
2795   enableval=$enable_dynamic;
2796         ol_arg=invalid
2797         for ol_val in auto yes no ; do
2798                 if test "$enableval" = "$ol_val" ; then
2799                         ol_arg="$ol_val"
2800                 fi
2801         done
2802         if test "$ol_arg" = "invalid" ; then
2803                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2804 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2805    { (exit 1); exit 1; }; }
2806         fi
2807         ol_enable_dynamic="$ol_arg"
2808
2809 else
2810         ol_enable_dynamic=no
2811 fi
2812
2813 # end --enable-dynamic
2814 # OpenLDAP --enable-syslog
2815
2816         # Check whether --enable-syslog was given.
2817 if test "${enable_syslog+set}" = set; then
2818   enableval=$enable_syslog;
2819         ol_arg=invalid
2820         for ol_val in auto yes no ; do
2821                 if test "$enableval" = "$ol_val" ; then
2822                         ol_arg="$ol_val"
2823                 fi
2824         done
2825         if test "$ol_arg" = "invalid" ; then
2826                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2828    { (exit 1); exit 1; }; }
2829         fi
2830         ol_enable_syslog="$ol_arg"
2831
2832 else
2833         ol_enable_syslog=auto
2834 fi
2835
2836 # end --enable-syslog
2837 # OpenLDAP --enable-proctitle
2838
2839         # Check whether --enable-proctitle was given.
2840 if test "${enable_proctitle+set}" = set; then
2841   enableval=$enable_proctitle;
2842         ol_arg=invalid
2843         for ol_val in auto yes no ; do
2844                 if test "$enableval" = "$ol_val" ; then
2845                         ol_arg="$ol_val"
2846                 fi
2847         done
2848         if test "$ol_arg" = "invalid" ; then
2849                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2850 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2851    { (exit 1); exit 1; }; }
2852         fi
2853         ol_enable_proctitle="$ol_arg"
2854
2855 else
2856         ol_enable_proctitle=yes
2857 fi
2858
2859 # end --enable-proctitle
2860 ol_enable_referrals=${ol_enable_referrals-no}
2861 # OpenLDAP --enable-ipv6
2862
2863         # Check whether --enable-ipv6 was given.
2864 if test "${enable_ipv6+set}" = set; then
2865   enableval=$enable_ipv6;
2866         ol_arg=invalid
2867         for ol_val in auto yes no ; do
2868                 if test "$enableval" = "$ol_val" ; then
2869                         ol_arg="$ol_val"
2870                 fi
2871         done
2872         if test "$ol_arg" = "invalid" ; then
2873                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2874 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2875    { (exit 1); exit 1; }; }
2876         fi
2877         ol_enable_ipv6="$ol_arg"
2878
2879 else
2880         ol_enable_ipv6=auto
2881 fi
2882
2883 # end --enable-ipv6
2884 # OpenLDAP --enable-local
2885
2886         # Check whether --enable-local was given.
2887 if test "${enable_local+set}" = set; then
2888   enableval=$enable_local;
2889         ol_arg=invalid
2890         for ol_val in auto yes no ; do
2891                 if test "$enableval" = "$ol_val" ; then
2892                         ol_arg="$ol_val"
2893                 fi
2894         done
2895         if test "$ol_arg" = "invalid" ; then
2896                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2897 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2898    { (exit 1); exit 1; }; }
2899         fi
2900         ol_enable_local="$ol_arg"
2901
2902 else
2903         ol_enable_local=auto
2904 fi
2905
2906 # end --enable-local
2907
2908 # OpenLDAP --with-cyrus_sasl
2909
2910 # Check whether --with-cyrus_sasl was given.
2911 if test "${with_cyrus_sasl+set}" = set; then
2912   withval=$with_cyrus_sasl;
2913         ol_arg=invalid
2914         for ol_val in auto yes no  ; do
2915                 if test "$withval" = "$ol_val" ; then
2916                         ol_arg="$ol_val"
2917                 fi
2918         done
2919         if test "$ol_arg" = "invalid" ; then
2920                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2921 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2922    { (exit 1); exit 1; }; }
2923         fi
2924         ol_with_cyrus_sasl="$ol_arg"
2925
2926 else
2927         ol_with_cyrus_sasl="auto"
2928 fi
2929 # end --with-cyrus_sasl
2930
2931 # OpenLDAP --with-fetch
2932
2933 # Check whether --with-fetch was given.
2934 if test "${with_fetch+set}" = set; then
2935   withval=$with_fetch;
2936         ol_arg=invalid
2937         for ol_val in auto yes no  ; do
2938                 if test "$withval" = "$ol_val" ; then
2939                         ol_arg="$ol_val"
2940                 fi
2941         done
2942         if test "$ol_arg" = "invalid" ; then
2943                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2944 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2945    { (exit 1); exit 1; }; }
2946         fi
2947         ol_with_fetch="$ol_arg"
2948
2949 else
2950         ol_with_fetch="auto"
2951 fi
2952 # end --with-fetch
2953
2954 # OpenLDAP --with-threads
2955
2956 # Check whether --with-threads was given.
2957 if test "${with_threads+set}" = set; then
2958   withval=$with_threads;
2959         ol_arg=invalid
2960         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2961                 if test "$withval" = "$ol_val" ; then
2962                         ol_arg="$ol_val"
2963                 fi
2964         done
2965         if test "$ol_arg" = "invalid" ; then
2966                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2967 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2968    { (exit 1); exit 1; }; }
2969         fi
2970         ol_with_threads="$ol_arg"
2971
2972 else
2973         ol_with_threads="auto"
2974 fi
2975 # end --with-threads
2976
2977 # OpenLDAP --with-tls
2978
2979 # Check whether --with-tls was given.
2980 if test "${with_tls+set}" = set; then
2981   withval=$with_tls;
2982         ol_arg=invalid
2983         for ol_val in auto openssl gnutls moznss yes no  ; do
2984                 if test "$withval" = "$ol_val" ; then
2985                         ol_arg="$ol_val"
2986                 fi
2987         done
2988         if test "$ol_arg" = "invalid" ; then
2989                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2990 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2991    { (exit 1); exit 1; }; }
2992         fi
2993         ol_with_tls="$ol_arg"
2994
2995 else
2996         ol_with_tls="auto"
2997 fi
2998 # end --with-tls
2999
3000 # OpenLDAP --with-yielding_select
3001
3002 # Check whether --with-yielding_select was given.
3003 if test "${with_yielding_select+set}" = set; then
3004   withval=$with_yielding_select;
3005         ol_arg=invalid
3006         for ol_val in auto yes no manual  ; do
3007                 if test "$withval" = "$ol_val" ; then
3008                         ol_arg="$ol_val"
3009                 fi
3010         done
3011         if test "$ol_arg" = "invalid" ; then
3012                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3013 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3014    { (exit 1); exit 1; }; }
3015         fi
3016         ol_with_yielding_select="$ol_arg"
3017
3018 else
3019         ol_with_yielding_select="auto"
3020 fi
3021 # end --with-yielding_select
3022
3023 # OpenLDAP --with-mp
3024
3025 # Check whether --with-mp was given.
3026 if test "${with_mp+set}" = set; then
3027   withval=$with_mp;
3028         ol_arg=invalid
3029         for ol_val in auto longlong long bignum gmp yes no ; do
3030                 if test "$withval" = "$ol_val" ; then
3031                         ol_arg="$ol_val"
3032                 fi
3033         done
3034         if test "$ol_arg" = "invalid" ; then
3035                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3036 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3037    { (exit 1); exit 1; }; }
3038         fi
3039         ol_with_mp="$ol_arg"
3040
3041 else
3042         ol_with_mp="auto"
3043 fi
3044 # end --with-mp
3045
3046 # OpenLDAP --with-odbc
3047
3048 # Check whether --with-odbc was given.
3049 if test "${with_odbc+set}" = set; then
3050   withval=$with_odbc;
3051         ol_arg=invalid
3052         for ol_val in auto iodbc unixodbc odbc32  ; do
3053                 if test "$withval" = "$ol_val" ; then
3054                         ol_arg="$ol_val"
3055                 fi
3056         done
3057         if test "$ol_arg" = "invalid" ; then
3058                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3059 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3060    { (exit 1); exit 1; }; }
3061         fi
3062         ol_with_odbc="$ol_arg"
3063
3064 else
3065         ol_with_odbc="auto"
3066 fi
3067 # end --with-odbc
3068
3069
3070
3071 # Check whether --enable-xxslapdoptions was given.
3072 if test "${enable_xxslapdoptions+set}" = set; then
3073   enableval=$enable_xxslapdoptions;
3074 fi
3075
3076 # OpenLDAP --enable-slapd
3077
3078         # Check whether --enable-slapd was given.
3079 if test "${enable_slapd+set}" = set; then
3080   enableval=$enable_slapd;
3081         ol_arg=invalid
3082         for ol_val in auto yes no ; do
3083                 if test "$enableval" = "$ol_val" ; then
3084                         ol_arg="$ol_val"
3085                 fi
3086         done
3087         if test "$ol_arg" = "invalid" ; then
3088                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3090    { (exit 1); exit 1; }; }
3091         fi
3092         ol_enable_slapd="$ol_arg"
3093
3094 else
3095         ol_enable_slapd=yes
3096 fi
3097
3098 # end --enable-slapd
3099 # OpenLDAP --enable-dynacl
3100
3101         # Check whether --enable-dynacl was given.
3102 if test "${enable_dynacl+set}" = set; then
3103   enableval=$enable_dynacl;
3104         ol_arg=invalid
3105         for ol_val in auto yes no ; do
3106                 if test "$enableval" = "$ol_val" ; then
3107                         ol_arg="$ol_val"
3108                 fi
3109         done
3110         if test "$ol_arg" = "invalid" ; then
3111                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3113    { (exit 1); exit 1; }; }
3114         fi
3115         ol_enable_dynacl="$ol_arg"
3116
3117 else
3118         ol_enable_dynacl=no
3119 fi
3120
3121 # end --enable-dynacl
3122 # OpenLDAP --enable-aci
3123
3124         # Check whether --enable-aci was given.
3125 if test "${enable_aci+set}" = set; then
3126   enableval=$enable_aci;
3127         ol_arg=invalid
3128         for ol_val in no yes mod ; do
3129                 if test "$enableval" = "$ol_val" ; then
3130                         ol_arg="$ol_val"
3131                 fi
3132         done
3133         if test "$ol_arg" = "invalid" ; then
3134                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3136    { (exit 1); exit 1; }; }
3137         fi
3138         ol_enable_aci="$ol_arg"
3139
3140 else
3141         ol_enable_aci=no
3142 fi
3143
3144 # end --enable-aci
3145 # OpenLDAP --enable-cleartext
3146
3147         # Check whether --enable-cleartext was given.
3148 if test "${enable_cleartext+set}" = set; then
3149   enableval=$enable_cleartext;
3150         ol_arg=invalid
3151         for ol_val in auto yes no ; do
3152                 if test "$enableval" = "$ol_val" ; then
3153                         ol_arg="$ol_val"
3154                 fi
3155         done
3156         if test "$ol_arg" = "invalid" ; then
3157                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3159    { (exit 1); exit 1; }; }
3160         fi
3161         ol_enable_cleartext="$ol_arg"
3162
3163 else
3164         ol_enable_cleartext=yes
3165 fi
3166
3167 # end --enable-cleartext
3168 # OpenLDAP --enable-crypt
3169
3170         # Check whether --enable-crypt was given.
3171 if test "${enable_crypt+set}" = set; then
3172   enableval=$enable_crypt;
3173         ol_arg=invalid
3174         for ol_val in auto yes no ; do
3175                 if test "$enableval" = "$ol_val" ; then
3176                         ol_arg="$ol_val"
3177                 fi
3178         done
3179         if test "$ol_arg" = "invalid" ; then
3180                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3182    { (exit 1); exit 1; }; }
3183         fi
3184         ol_enable_crypt="$ol_arg"
3185
3186 else
3187         ol_enable_crypt=no
3188 fi
3189
3190 # end --enable-crypt
3191 # OpenLDAP --enable-lmpasswd
3192
3193         # Check whether --enable-lmpasswd was given.
3194 if test "${enable_lmpasswd+set}" = set; then
3195   enableval=$enable_lmpasswd;
3196         ol_arg=invalid
3197         for ol_val in auto yes no ; do
3198                 if test "$enableval" = "$ol_val" ; then
3199                         ol_arg="$ol_val"
3200                 fi
3201         done
3202         if test "$ol_arg" = "invalid" ; then
3203                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3205    { (exit 1); exit 1; }; }
3206         fi
3207         ol_enable_lmpasswd="$ol_arg"
3208
3209 else
3210         ol_enable_lmpasswd=no
3211 fi
3212
3213 # end --enable-lmpasswd
3214 # OpenLDAP --enable-spasswd
3215
3216         # Check whether --enable-spasswd was given.
3217 if test "${enable_spasswd+set}" = set; then
3218   enableval=$enable_spasswd;
3219         ol_arg=invalid
3220         for ol_val in auto yes no ; do
3221                 if test "$enableval" = "$ol_val" ; then
3222                         ol_arg="$ol_val"
3223                 fi
3224         done
3225         if test "$ol_arg" = "invalid" ; then
3226                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3228    { (exit 1); exit 1; }; }
3229         fi
3230         ol_enable_spasswd="$ol_arg"
3231
3232 else
3233         ol_enable_spasswd=no
3234 fi
3235
3236 # end --enable-spasswd
3237 # OpenLDAP --enable-modules
3238
3239         # Check whether --enable-modules was given.
3240 if test "${enable_modules+set}" = set; then
3241   enableval=$enable_modules;
3242         ol_arg=invalid
3243         for ol_val in auto yes no ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_modules="$ol_arg"
3254
3255 else
3256         ol_enable_modules=no
3257 fi
3258
3259 # end --enable-modules
3260 # OpenLDAP --enable-rewrite
3261
3262         # Check whether --enable-rewrite was given.
3263 if test "${enable_rewrite+set}" = set; then
3264   enableval=$enable_rewrite;
3265         ol_arg=invalid
3266         for ol_val in auto yes no ; do
3267                 if test "$enableval" = "$ol_val" ; then
3268                         ol_arg="$ol_val"
3269                 fi
3270         done
3271         if test "$ol_arg" = "invalid" ; then
3272                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3274    { (exit 1); exit 1; }; }
3275         fi
3276         ol_enable_rewrite="$ol_arg"
3277
3278 else
3279         ol_enable_rewrite=auto
3280 fi
3281
3282 # end --enable-rewrite
3283 # OpenLDAP --enable-rlookups
3284
3285         # Check whether --enable-rlookups was given.
3286 if test "${enable_rlookups+set}" = set; then
3287   enableval=$enable_rlookups;
3288         ol_arg=invalid
3289         for ol_val in auto yes no ; do
3290                 if test "$enableval" = "$ol_val" ; then
3291                         ol_arg="$ol_val"
3292                 fi
3293         done
3294         if test "$ol_arg" = "invalid" ; then
3295                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3297    { (exit 1); exit 1; }; }
3298         fi
3299         ol_enable_rlookups="$ol_arg"
3300
3301 else
3302         ol_enable_rlookups=no
3303 fi
3304
3305 # end --enable-rlookups
3306 # OpenLDAP --enable-slapi
3307
3308         # Check whether --enable-slapi was given.
3309 if test "${enable_slapi+set}" = set; then
3310   enableval=$enable_slapi;
3311         ol_arg=invalid
3312         for ol_val in auto yes no ; do
3313                 if test "$enableval" = "$ol_val" ; then
3314                         ol_arg="$ol_val"
3315                 fi
3316         done
3317         if test "$ol_arg" = "invalid" ; then
3318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3320    { (exit 1); exit 1; }; }
3321         fi
3322         ol_enable_slapi="$ol_arg"
3323
3324 else
3325         ol_enable_slapi=no
3326 fi
3327
3328 # end --enable-slapi
3329 # OpenLDAP --enable-slp
3330
3331         # Check whether --enable-slp was given.
3332 if test "${enable_slp+set}" = set; then
3333   enableval=$enable_slp;
3334         ol_arg=invalid
3335         for ol_val in auto yes no ; do
3336                 if test "$enableval" = "$ol_val" ; then
3337                         ol_arg="$ol_val"
3338                 fi
3339         done
3340         if test "$ol_arg" = "invalid" ; then
3341                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3343    { (exit 1); exit 1; }; }
3344         fi
3345         ol_enable_slp="$ol_arg"
3346
3347 else
3348         ol_enable_slp=no
3349 fi
3350
3351 # end --enable-slp
3352 # OpenLDAP --enable-wrappers
3353
3354         # Check whether --enable-wrappers was given.
3355 if test "${enable_wrappers+set}" = set; then
3356   enableval=$enable_wrappers;
3357         ol_arg=invalid
3358         for ol_val in auto yes no ; do
3359                 if test "$enableval" = "$ol_val" ; then
3360                         ol_arg="$ol_val"
3361                 fi
3362         done
3363         if test "$ol_arg" = "invalid" ; then
3364                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3365 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3366    { (exit 1); exit 1; }; }
3367         fi
3368         ol_enable_wrappers="$ol_arg"
3369
3370 else
3371         ol_enable_wrappers=no
3372 fi
3373
3374 # end --enable-wrappers
3375
3376 Backends="bdb \
3377         dnssrv \
3378         hdb \
3379         ldap \
3380         meta \
3381         monitor \
3382         ndb \
3383         null \
3384         passwd \
3385         perl \
3386         relay \
3387         shell \
3388         sock \
3389         sql"
3390
3391 # Check whether --enable-xxslapbackends was given.
3392 if test "${enable_xxslapbackends+set}" = set; then
3393   enableval=$enable_xxslapbackends;
3394 fi
3395
3396
3397 # OpenLDAP --enable-backends
3398
3399         # Check whether --enable-backends was given.
3400 if test "${enable_backends+set}" = set; then
3401   enableval=$enable_backends;
3402         ol_arg=invalid
3403         for ol_val in no yes mod ; do
3404                 if test "$enableval" = "$ol_val" ; then
3405                         ol_arg="$ol_val"
3406                 fi
3407         done
3408         if test "$ol_arg" = "invalid" ; then
3409                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3410 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3411    { (exit 1); exit 1; }; }
3412         fi
3413         ol_enable_backends="$ol_arg"
3414
3415 fi
3416
3417 # end --enable-backends
3418 # OpenLDAP --enable-bdb
3419
3420         # Check whether --enable-bdb was given.
3421 if test "${enable_bdb+set}" = set; then
3422   enableval=$enable_bdb;
3423         ol_arg=invalid
3424         for ol_val in no yes mod ; do
3425                 if test "$enableval" = "$ol_val" ; then
3426                         ol_arg="$ol_val"
3427                 fi
3428         done
3429         if test "$ol_arg" = "invalid" ; then
3430                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3431 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3432    { (exit 1); exit 1; }; }
3433         fi
3434         ol_enable_bdb="$ol_arg"
3435
3436 else
3437         ol_enable_bdb=${ol_enable_backends:-no}
3438 fi
3439
3440 # end --enable-bdb
3441 # OpenLDAP --enable-dnssrv
3442
3443         # Check whether --enable-dnssrv was given.
3444 if test "${enable_dnssrv+set}" = set; then
3445   enableval=$enable_dnssrv;
3446         ol_arg=invalid
3447         for ol_val in no yes mod ; do
3448                 if test "$enableval" = "$ol_val" ; then
3449                         ol_arg="$ol_val"
3450                 fi
3451         done
3452         if test "$ol_arg" = "invalid" ; then
3453                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3454 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3455    { (exit 1); exit 1; }; }
3456         fi
3457         ol_enable_dnssrv="$ol_arg"
3458
3459 else
3460         ol_enable_dnssrv=${ol_enable_backends:-no}
3461 fi
3462
3463 # end --enable-dnssrv
3464 # OpenLDAP --enable-hdb
3465
3466         # Check whether --enable-hdb was given.
3467 if test "${enable_hdb+set}" = set; then
3468   enableval=$enable_hdb;
3469         ol_arg=invalid
3470         for ol_val in no yes mod ; do
3471                 if test "$enableval" = "$ol_val" ; then
3472                         ol_arg="$ol_val"
3473                 fi
3474         done
3475         if test "$ol_arg" = "invalid" ; then
3476                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3477 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3478    { (exit 1); exit 1; }; }
3479         fi
3480         ol_enable_hdb="$ol_arg"
3481
3482 else
3483         ol_enable_hdb=${ol_enable_backends:-yes}
3484 fi
3485
3486 # end --enable-hdb
3487 # OpenLDAP --enable-ldap
3488
3489         # Check whether --enable-ldap was given.
3490 if test "${enable_ldap+set}" = set; then
3491   enableval=$enable_ldap;
3492         ol_arg=invalid
3493         for ol_val in no yes mod ; do
3494                 if test "$enableval" = "$ol_val" ; then
3495                         ol_arg="$ol_val"
3496                 fi
3497         done
3498         if test "$ol_arg" = "invalid" ; then
3499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3501    { (exit 1); exit 1; }; }
3502         fi
3503         ol_enable_ldap="$ol_arg"
3504
3505 else
3506         ol_enable_ldap=${ol_enable_backends:-no}
3507 fi
3508
3509 # end --enable-ldap
3510 # OpenLDAP --enable-meta
3511
3512         # Check whether --enable-meta was given.
3513 if test "${enable_meta+set}" = set; then
3514   enableval=$enable_meta;
3515         ol_arg=invalid
3516         for ol_val in no yes mod ; do
3517                 if test "$enableval" = "$ol_val" ; then
3518                         ol_arg="$ol_val"
3519                 fi
3520         done
3521         if test "$ol_arg" = "invalid" ; then
3522                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3524    { (exit 1); exit 1; }; }
3525         fi
3526         ol_enable_meta="$ol_arg"
3527
3528 else
3529         ol_enable_meta=${ol_enable_backends:-no}
3530 fi
3531
3532 # end --enable-meta
3533 # OpenLDAP --enable-monitor
3534
3535         # Check whether --enable-monitor was given.
3536 if test "${enable_monitor+set}" = set; then
3537   enableval=$enable_monitor;
3538         ol_arg=invalid
3539         for ol_val in no yes mod ; do
3540                 if test "$enableval" = "$ol_val" ; then
3541                         ol_arg="$ol_val"
3542                 fi
3543         done
3544         if test "$ol_arg" = "invalid" ; then
3545                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3547    { (exit 1); exit 1; }; }
3548         fi
3549         ol_enable_monitor="$ol_arg"
3550
3551 else
3552         ol_enable_monitor=${ol_enable_backends:-yes}
3553 fi
3554
3555 # end --enable-monitor
3556 # OpenLDAP --enable-ndb
3557
3558         # Check whether --enable-ndb was given.
3559 if test "${enable_ndb+set}" = set; then
3560   enableval=$enable_ndb;
3561         ol_arg=invalid
3562         for ol_val in no yes mod ; do
3563                 if test "$enableval" = "$ol_val" ; then
3564                         ol_arg="$ol_val"
3565                 fi
3566         done
3567         if test "$ol_arg" = "invalid" ; then
3568                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3569 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3570    { (exit 1); exit 1; }; }
3571         fi
3572         ol_enable_ndb="$ol_arg"
3573
3574 else
3575         ol_enable_ndb=${ol_enable_backends:-no}
3576 fi
3577
3578 # end --enable-ndb
3579 # OpenLDAP --enable-null
3580
3581         # Check whether --enable-null was given.
3582 if test "${enable_null+set}" = set; then
3583   enableval=$enable_null;
3584         ol_arg=invalid
3585         for ol_val in no yes mod ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_null="$ol_arg"
3596
3597 else
3598         ol_enable_null=${ol_enable_backends:-no}
3599 fi
3600
3601 # end --enable-null
3602 # OpenLDAP --enable-passwd
3603
3604         # Check whether --enable-passwd was given.
3605 if test "${enable_passwd+set}" = set; then
3606   enableval=$enable_passwd;
3607         ol_arg=invalid
3608         for ol_val in no yes mod ; do
3609                 if test "$enableval" = "$ol_val" ; then
3610                         ol_arg="$ol_val"
3611                 fi
3612         done
3613         if test "$ol_arg" = "invalid" ; then
3614                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3615 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3616    { (exit 1); exit 1; }; }
3617         fi
3618         ol_enable_passwd="$ol_arg"
3619
3620 else
3621         ol_enable_passwd=${ol_enable_backends:-no}
3622 fi
3623
3624 # end --enable-passwd
3625 # OpenLDAP --enable-perl
3626
3627         # Check whether --enable-perl was given.
3628 if test "${enable_perl+set}" = set; then
3629   enableval=$enable_perl;
3630         ol_arg=invalid
3631         for ol_val in no yes mod ; do
3632                 if test "$enableval" = "$ol_val" ; then
3633                         ol_arg="$ol_val"
3634                 fi
3635         done
3636         if test "$ol_arg" = "invalid" ; then
3637                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3638 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3639    { (exit 1); exit 1; }; }
3640         fi
3641         ol_enable_perl="$ol_arg"
3642
3643 else
3644         ol_enable_perl=${ol_enable_backends:-no}
3645 fi
3646
3647 # end --enable-perl
3648 # OpenLDAP --enable-relay
3649
3650         # Check whether --enable-relay was given.
3651 if test "${enable_relay+set}" = set; then
3652   enableval=$enable_relay;
3653         ol_arg=invalid
3654         for ol_val in no yes mod ; do
3655                 if test "$enableval" = "$ol_val" ; then
3656                         ol_arg="$ol_val"
3657                 fi
3658         done
3659         if test "$ol_arg" = "invalid" ; then
3660                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3661 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3662    { (exit 1); exit 1; }; }
3663         fi
3664         ol_enable_relay="$ol_arg"
3665
3666 else
3667         ol_enable_relay=${ol_enable_backends:-yes}
3668 fi
3669
3670 # end --enable-relay
3671 # OpenLDAP --enable-shell
3672
3673         # Check whether --enable-shell was given.
3674 if test "${enable_shell+set}" = set; then
3675   enableval=$enable_shell;
3676         ol_arg=invalid
3677         for ol_val in no yes mod ; do
3678                 if test "$enableval" = "$ol_val" ; then
3679                         ol_arg="$ol_val"
3680                 fi
3681         done
3682         if test "$ol_arg" = "invalid" ; then
3683                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3684 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3685    { (exit 1); exit 1; }; }
3686         fi
3687         ol_enable_shell="$ol_arg"
3688
3689 else
3690         ol_enable_shell=${ol_enable_backends:-no}
3691 fi
3692
3693 # end --enable-shell
3694 # OpenLDAP --enable-sock
3695
3696         # Check whether --enable-sock was given.
3697 if test "${enable_sock+set}" = set; then
3698   enableval=$enable_sock;
3699         ol_arg=invalid
3700         for ol_val in no yes mod ; do
3701                 if test "$enableval" = "$ol_val" ; then
3702                         ol_arg="$ol_val"
3703                 fi
3704         done
3705         if test "$ol_arg" = "invalid" ; then
3706                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3707 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3708    { (exit 1); exit 1; }; }
3709         fi
3710         ol_enable_sock="$ol_arg"
3711
3712 else
3713         ol_enable_sock=${ol_enable_backends:-no}
3714 fi
3715
3716 # end --enable-sock
3717 # OpenLDAP --enable-sql
3718
3719         # Check whether --enable-sql was given.
3720 if test "${enable_sql+set}" = set; then
3721   enableval=$enable_sql;
3722         ol_arg=invalid
3723         for ol_val in no yes mod ; do
3724                 if test "$enableval" = "$ol_val" ; then
3725                         ol_arg="$ol_val"
3726                 fi
3727         done
3728         if test "$ol_arg" = "invalid" ; then
3729                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3730 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3731    { (exit 1); exit 1; }; }
3732         fi
3733         ol_enable_sql="$ol_arg"
3734
3735 else
3736         ol_enable_sql=${ol_enable_backends:-no}
3737 fi
3738
3739 # end --enable-sql
3740
3741 Overlays="accesslog \
3742         auditlog \
3743         collect \
3744         constraint \
3745         dds \
3746         deref \
3747         dyngroup \
3748         dynlist \
3749         memberof \
3750         ppolicy \
3751         proxycache \
3752         refint \
3753         retcode \
3754         rwm \
3755         seqmod \
3756         syncprov \
3757         translucent \
3758         unique \
3759         valsort"
3760
3761 # Check whether --enable-xxslapoverlays was given.
3762 if test "${enable_xxslapoverlays+set}" = set; then
3763   enableval=$enable_xxslapoverlays;
3764 fi
3765
3766
3767 # OpenLDAP --enable-overlays
3768
3769         # Check whether --enable-overlays was given.
3770 if test "${enable_overlays+set}" = set; then
3771   enableval=$enable_overlays;
3772         ol_arg=invalid
3773         for ol_val in no yes mod ; do
3774                 if test "$enableval" = "$ol_val" ; then
3775                         ol_arg="$ol_val"
3776                 fi
3777         done
3778         if test "$ol_arg" = "invalid" ; then
3779                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3780 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3781    { (exit 1); exit 1; }; }
3782         fi
3783         ol_enable_overlays="$ol_arg"
3784
3785 fi
3786
3787 # end --enable-overlays
3788 # OpenLDAP --enable-accesslog
3789
3790         # Check whether --enable-accesslog was given.
3791 if test "${enable_accesslog+set}" = set; then
3792   enableval=$enable_accesslog;
3793         ol_arg=invalid
3794         for ol_val in no yes mod ; do
3795                 if test "$enableval" = "$ol_val" ; then
3796                         ol_arg="$ol_val"
3797                 fi
3798         done
3799         if test "$ol_arg" = "invalid" ; then
3800                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3801 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3802    { (exit 1); exit 1; }; }
3803         fi
3804         ol_enable_accesslog="$ol_arg"
3805
3806 else
3807         ol_enable_accesslog=${ol_enable_overlays:-no}
3808 fi
3809
3810 # end --enable-accesslog
3811
3812 # OpenLDAP --enable-auditlog
3813
3814         # Check whether --enable-auditlog was given.
3815 if test "${enable_auditlog+set}" = set; then
3816   enableval=$enable_auditlog;
3817         ol_arg=invalid
3818         for ol_val in no yes mod ; do
3819                 if test "$enableval" = "$ol_val" ; then
3820                         ol_arg="$ol_val"
3821                 fi
3822         done
3823         if test "$ol_arg" = "invalid" ; then
3824                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3825 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3826    { (exit 1); exit 1; }; }
3827         fi
3828         ol_enable_auditlog="$ol_arg"
3829
3830 else
3831         ol_enable_auditlog=${ol_enable_overlays:-no}
3832 fi
3833
3834 # end --enable-auditlog
3835
3836 # OpenLDAP --enable-collect
3837
3838         # Check whether --enable-collect was given.
3839 if test "${enable_collect+set}" = set; then
3840   enableval=$enable_collect;
3841         ol_arg=invalid
3842         for ol_val in no yes mod ; do
3843                 if test "$enableval" = "$ol_val" ; then
3844                         ol_arg="$ol_val"
3845                 fi
3846         done
3847         if test "$ol_arg" = "invalid" ; then
3848                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3849 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3850    { (exit 1); exit 1; }; }
3851         fi
3852         ol_enable_collect="$ol_arg"
3853
3854 else
3855         ol_enable_collect=${ol_enable_overlays:-no}
3856 fi
3857
3858 # end --enable-collect
3859
3860 # OpenLDAP --enable-constraint
3861
3862         # Check whether --enable-constraint was given.
3863 if test "${enable_constraint+set}" = set; then
3864   enableval=$enable_constraint;
3865         ol_arg=invalid
3866         for ol_val in no yes mod ; do
3867                 if test "$enableval" = "$ol_val" ; then
3868                         ol_arg="$ol_val"
3869                 fi
3870         done
3871         if test "$ol_arg" = "invalid" ; then
3872                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3873 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3874    { (exit 1); exit 1; }; }
3875         fi
3876         ol_enable_constraint="$ol_arg"
3877
3878 else
3879         ol_enable_constraint=${ol_enable_overlays:-no}
3880 fi
3881
3882 # end --enable-constraint
3883
3884 # OpenLDAP --enable-dds
3885
3886         # Check whether --enable-dds was given.
3887 if test "${enable_dds+set}" = set; then
3888   enableval=$enable_dds;
3889         ol_arg=invalid
3890         for ol_val in no yes mod ; do
3891                 if test "$enableval" = "$ol_val" ; then
3892                         ol_arg="$ol_val"
3893                 fi
3894         done
3895         if test "$ol_arg" = "invalid" ; then
3896                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3897 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3898    { (exit 1); exit 1; }; }
3899         fi
3900         ol_enable_dds="$ol_arg"
3901
3902 else
3903         ol_enable_dds=${ol_enable_overlays:-no}
3904 fi
3905
3906 # end --enable-dds
3907
3908 # OpenLDAP --enable-deref
3909
3910         # Check whether --enable-deref was given.
3911 if test "${enable_deref+set}" = set; then
3912   enableval=$enable_deref;
3913         ol_arg=invalid
3914         for ol_val in no yes mod ; do
3915                 if test "$enableval" = "$ol_val" ; then
3916                         ol_arg="$ol_val"
3917                 fi
3918         done
3919         if test "$ol_arg" = "invalid" ; then
3920                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3921 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3922    { (exit 1); exit 1; }; }
3923         fi
3924         ol_enable_deref="$ol_arg"
3925
3926 else
3927         ol_enable_deref=${ol_enable_overlays:-no}
3928 fi
3929
3930 # end --enable-deref
3931
3932 # OpenLDAP --enable-dyngroup
3933
3934         # Check whether --enable-dyngroup was given.
3935 if test "${enable_dyngroup+set}" = set; then
3936   enableval=$enable_dyngroup;
3937         ol_arg=invalid
3938         for ol_val in no yes mod ; do
3939                 if test "$enableval" = "$ol_val" ; then
3940                         ol_arg="$ol_val"
3941                 fi
3942         done
3943         if test "$ol_arg" = "invalid" ; then
3944                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3945 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3946    { (exit 1); exit 1; }; }
3947         fi
3948         ol_enable_dyngroup="$ol_arg"
3949
3950 else
3951         ol_enable_dyngroup=${ol_enable_overlays:-no}
3952 fi
3953
3954 # end --enable-dyngroup
3955
3956 # OpenLDAP --enable-dynlist
3957
3958         # Check whether --enable-dynlist was given.
3959 if test "${enable_dynlist+set}" = set; then
3960   enableval=$enable_dynlist;
3961         ol_arg=invalid
3962         for ol_val in no yes mod ; do
3963                 if test "$enableval" = "$ol_val" ; then
3964                         ol_arg="$ol_val"
3965                 fi
3966         done
3967         if test "$ol_arg" = "invalid" ; then
3968                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3969 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3970    { (exit 1); exit 1; }; }
3971         fi
3972         ol_enable_dynlist="$ol_arg"
3973
3974 else
3975         ol_enable_dynlist=${ol_enable_overlays:-no}
3976 fi
3977
3978 # end --enable-dynlist
3979
3980 # OpenLDAP --enable-memberof
3981
3982         # Check whether --enable-memberof was given.
3983 if test "${enable_memberof+set}" = set; then
3984   enableval=$enable_memberof;
3985         ol_arg=invalid
3986         for ol_val in no yes mod ; do
3987                 if test "$enableval" = "$ol_val" ; then
3988                         ol_arg="$ol_val"
3989                 fi
3990         done
3991         if test "$ol_arg" = "invalid" ; then
3992                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3993 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3994    { (exit 1); exit 1; }; }
3995         fi
3996         ol_enable_memberof="$ol_arg"
3997
3998 else
3999         ol_enable_memberof=${ol_enable_overlays:-no}
4000 fi
4001
4002 # end --enable-memberof
4003
4004 # OpenLDAP --enable-ppolicy
4005
4006         # Check whether --enable-ppolicy was given.
4007 if test "${enable_ppolicy+set}" = set; then
4008   enableval=$enable_ppolicy;
4009         ol_arg=invalid
4010         for ol_val in no yes mod ; do
4011                 if test "$enableval" = "$ol_val" ; then
4012                         ol_arg="$ol_val"
4013                 fi
4014         done
4015         if test "$ol_arg" = "invalid" ; then
4016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4017 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4018    { (exit 1); exit 1; }; }
4019         fi
4020         ol_enable_ppolicy="$ol_arg"
4021
4022 else
4023         ol_enable_ppolicy=${ol_enable_overlays:-no}
4024 fi
4025
4026 # end --enable-ppolicy
4027
4028 # OpenLDAP --enable-proxycache
4029
4030         # Check whether --enable-proxycache was given.
4031 if test "${enable_proxycache+set}" = set; then
4032   enableval=$enable_proxycache;
4033         ol_arg=invalid
4034         for ol_val in no yes mod ; do
4035                 if test "$enableval" = "$ol_val" ; then
4036                         ol_arg="$ol_val"
4037                 fi
4038         done
4039         if test "$ol_arg" = "invalid" ; then
4040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4041 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4042    { (exit 1); exit 1; }; }
4043         fi
4044         ol_enable_proxycache="$ol_arg"
4045
4046 else
4047         ol_enable_proxycache=${ol_enable_overlays:-no}
4048 fi
4049
4050 # end --enable-proxycache
4051
4052 # OpenLDAP --enable-refint
4053
4054         # Check whether --enable-refint was given.
4055 if test "${enable_refint+set}" = set; then
4056   enableval=$enable_refint;
4057         ol_arg=invalid
4058         for ol_val in no yes mod ; do
4059                 if test "$enableval" = "$ol_val" ; then
4060                         ol_arg="$ol_val"
4061                 fi
4062         done
4063         if test "$ol_arg" = "invalid" ; then
4064                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4065 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4066    { (exit 1); exit 1; }; }
4067         fi
4068         ol_enable_refint="$ol_arg"
4069
4070 else
4071         ol_enable_refint=${ol_enable_overlays:-no}
4072 fi
4073
4074 # end --enable-refint
4075
4076 # OpenLDAP --enable-retcode
4077
4078         # Check whether --enable-retcode was given.
4079 if test "${enable_retcode+set}" = set; then
4080   enableval=$enable_retcode;
4081         ol_arg=invalid
4082         for ol_val in no yes mod ; do
4083                 if test "$enableval" = "$ol_val" ; then
4084                         ol_arg="$ol_val"
4085                 fi
4086         done
4087         if test "$ol_arg" = "invalid" ; then
4088                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4089 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4090    { (exit 1); exit 1; }; }
4091         fi
4092         ol_enable_retcode="$ol_arg"
4093
4094 else
4095         ol_enable_retcode=${ol_enable_overlays:-no}
4096 fi
4097
4098 # end --enable-retcode
4099
4100 # OpenLDAP --enable-rwm
4101
4102         # Check whether --enable-rwm was given.
4103 if test "${enable_rwm+set}" = set; then
4104   enableval=$enable_rwm;
4105         ol_arg=invalid
4106         for ol_val in no yes mod ; do
4107                 if test "$enableval" = "$ol_val" ; then
4108                         ol_arg="$ol_val"
4109                 fi
4110         done
4111         if test "$ol_arg" = "invalid" ; then
4112                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4113 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4114    { (exit 1); exit 1; }; }
4115         fi
4116         ol_enable_rwm="$ol_arg"
4117
4118 else
4119         ol_enable_rwm=${ol_enable_overlays:-no}
4120 fi
4121
4122 # end --enable-rwm
4123
4124 # OpenLDAP --enable-seqmod
4125
4126         # Check whether --enable-seqmod was given.
4127 if test "${enable_seqmod+set}" = set; then
4128   enableval=$enable_seqmod;
4129         ol_arg=invalid
4130         for ol_val in no yes mod ; do
4131                 if test "$enableval" = "$ol_val" ; then
4132                         ol_arg="$ol_val"
4133                 fi
4134         done
4135         if test "$ol_arg" = "invalid" ; then
4136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4137 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4138    { (exit 1); exit 1; }; }
4139         fi
4140         ol_enable_seqmod="$ol_arg"
4141
4142 else
4143         ol_enable_seqmod=${ol_enable_overlays:-yes}
4144 fi
4145
4146 # end --enable-seqmod
4147
4148 # OpenLDAP --enable-syncprov
4149
4150         # Check whether --enable-syncprov was given.
4151 if test "${enable_syncprov+set}" = set; then
4152   enableval=$enable_syncprov;
4153         ol_arg=invalid
4154         for ol_val in no yes mod ; do
4155                 if test "$enableval" = "$ol_val" ; then
4156                         ol_arg="$ol_val"
4157                 fi
4158         done
4159         if test "$ol_arg" = "invalid" ; then
4160                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4161 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4162    { (exit 1); exit 1; }; }
4163         fi
4164         ol_enable_syncprov="$ol_arg"
4165
4166 else
4167         ol_enable_syncprov=${ol_enable_overlays:-yes}
4168 fi
4169
4170 # end --enable-syncprov
4171
4172 # OpenLDAP --enable-translucent
4173
4174         # Check whether --enable-translucent was given.
4175 if test "${enable_translucent+set}" = set; then
4176   enableval=$enable_translucent;
4177         ol_arg=invalid
4178         for ol_val in no yes mod ; do
4179                 if test "$enableval" = "$ol_val" ; then
4180                         ol_arg="$ol_val"
4181                 fi
4182         done
4183         if test "$ol_arg" = "invalid" ; then
4184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4185 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4186    { (exit 1); exit 1; }; }
4187         fi
4188         ol_enable_translucent="$ol_arg"
4189
4190 else
4191         ol_enable_translucent=${ol_enable_overlays:-no}
4192 fi
4193
4194 # end --enable-translucent
4195
4196 # OpenLDAP --enable-unique
4197
4198         # Check whether --enable-unique was given.
4199 if test "${enable_unique+set}" = set; then
4200   enableval=$enable_unique;
4201         ol_arg=invalid
4202         for ol_val in no yes mod ; do
4203                 if test "$enableval" = "$ol_val" ; then
4204                         ol_arg="$ol_val"
4205                 fi
4206         done
4207         if test "$ol_arg" = "invalid" ; then
4208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4209 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4210    { (exit 1); exit 1; }; }
4211         fi
4212         ol_enable_unique="$ol_arg"
4213
4214 else
4215         ol_enable_unique=${ol_enable_overlays:-no}
4216 fi
4217
4218 # end --enable-unique
4219
4220 # OpenLDAP --enable-valsort
4221
4222         # Check whether --enable-valsort was given.
4223 if test "${enable_valsort+set}" = set; then
4224   enableval=$enable_valsort;
4225         ol_arg=invalid
4226         for ol_val in no yes mod ; do
4227                 if test "$enableval" = "$ol_val" ; then
4228                         ol_arg="$ol_val"
4229                 fi
4230         done
4231         if test "$ol_arg" = "invalid" ; then
4232                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4233 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4234    { (exit 1); exit 1; }; }
4235         fi
4236         ol_enable_valsort="$ol_arg"
4237
4238 else
4239         ol_enable_valsort=${ol_enable_overlays:-no}
4240 fi
4241
4242 # end --enable-valsort
4243
4244
4245 # Check whether --enable-xxliboptions was given.
4246 if test "${enable_xxliboptions+set}" = set; then
4247   enableval=$enable_xxliboptions;
4248 fi
4249
4250 # Check whether --enable-static was given.
4251 if test "${enable_static+set}" = set; then
4252   enableval=$enable_static; p=${PACKAGE-default}
4253     case $enableval in
4254     yes) enable_static=yes ;;
4255     no) enable_static=no ;;
4256     *)
4257      enable_static=no
4258       # Look at the argument we got.  We use all the common list separators.
4259       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4260       for pkg in $enableval; do
4261         IFS="$lt_save_ifs"
4262         if test "X$pkg" = "X$p"; then
4263           enable_static=yes
4264         fi
4265       done
4266       IFS="$lt_save_ifs"
4267       ;;
4268     esac
4269 else
4270   enable_static=yes
4271 fi
4272
4273
4274 # Check whether --enable-shared was given.
4275 if test "${enable_shared+set}" = set; then
4276   enableval=$enable_shared; p=${PACKAGE-default}
4277     case $enableval in
4278     yes) enable_shared=yes ;;
4279     no) enable_shared=no ;;
4280     *)
4281       enable_shared=no
4282       # Look at the argument we got.  We use all the common list separators.
4283       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4284       for pkg in $enableval; do
4285         IFS="$lt_save_ifs"
4286         if test "X$pkg" = "X$p"; then
4287           enable_shared=yes
4288         fi
4289       done
4290       IFS="$lt_save_ifs"
4291       ;;
4292     esac
4293 else
4294   enable_shared=yes
4295 fi
4296
4297
4298
4299
4300 # validate options
4301 if test $ol_enable_slapd = no ; then
4302                 if test $ol_enable_slapi = yes ; then
4303                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4304 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4305         fi
4306         case "$ol_enable_backends" in yes | mod)
4307                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4308 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4309         esac
4310         for i in $Backends; do
4311                 eval "ol_tmp=\$ol_enable_$i"
4312                 if test $ol_tmp != no ; then
4313                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4314 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4315                         eval "ol_enable_$i=no"
4316                 fi
4317         done
4318         if test $ol_enable_modules = yes ; then
4319                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4320 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4321         fi
4322         if test $ol_enable_wrappers = yes ; then
4323                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4324 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4325         fi
4326         if test $ol_enable_rlookups = yes ; then
4327                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4328 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4329         fi
4330         if test $ol_enable_dynacl = yes ; then
4331                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4333         fi
4334         if test $ol_enable_aci != no ; then
4335                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4337         fi
4338         if test $ol_enable_rewrite = yes ; then
4339                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4340 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4341         fi
4342                 case "$ol_enable_overlays" in yes | mod)
4343                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4344 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4345         esac
4346         for i in $Overlays; do
4347                 eval "ol_tmp=\$ol_enable_$i"
4348                 if test $ol_tmp != no ; then
4349                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4350 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4351                         eval "ol_enable_$i=no"
4352                 fi
4353         done
4354
4355         # force settings to no
4356         ol_enable_slapi=no
4357
4358         ol_enable_backends=
4359         ol_enable_overlays=
4360         ol_enable_modules=no
4361         ol_enable_rlookups=no
4362         ol_enable_dynacl=no
4363         ol_enable_aci=no
4364         ol_enable_wrappers=no
4365
4366         ol_enable_rewrite=no
4367
4368 elif test $ol_enable_modules != yes &&
4369         test $ol_enable_bdb = no &&
4370         test $ol_enable_dnssrv = no &&
4371         test $ol_enable_hdb = no &&
4372         test $ol_enable_ldap = no &&
4373         test $ol_enable_meta = no &&
4374         test $ol_enable_monitor = no &&
4375         test $ol_enable_ndb = no &&
4376         test $ol_enable_null = no &&
4377         test $ol_enable_passwd = no &&
4378         test $ol_enable_perl = no &&
4379         test $ol_enable_relay = no &&
4380         test $ol_enable_shell = no &&
4381         test $ol_enable_sock = no &&
4382         test $ol_enable_sql = no ; then
4383
4384         if test $ol_enable_slapd = yes ; then
4385                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4386 echo "$as_me: error: slapd requires a backend" >&2;}
4387    { (exit 1); exit 1; }; }
4388         else
4389                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4390 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4391                 ol_enable_slapd=no
4392         fi
4393 fi
4394
4395 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4396         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4397 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4398    { (exit 1); exit 1; }; }
4399 fi
4400
4401 if test $ol_enable_lmpasswd = yes ; then
4402         if test $ol_with_tls = no ; then
4403                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4404 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4405    { (exit 1); exit 1; }; }
4406         fi
4407 fi
4408
4409 if test $ol_enable_spasswd = yes ; then
4410         if test $ol_with_cyrus_sasl = no ; then
4411                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4412 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4413    { (exit 1); exit 1; }; }
4414         fi
4415         ol_with_cyrus_sasl=yes
4416 fi
4417
4418 { echo "$as_me:$LINENO: result: done" >&5
4419 echo "${ECHO_T}done" >&6; }
4420
4421 LDAP_LIBS=
4422 BDB_LIBS=
4423 SLAPD_NDB_LIBS=
4424 SLAPD_NDB_INCS=
4425 LTHREAD_LIBS=
4426 LUTIL_LIBS=
4427
4428 SLAPD_LIBS=
4429
4430 BUILD_SLAPD=no
4431
4432 BUILD_THREAD=no
4433
4434 BUILD_SLAPI=no
4435 SLAPD_SLAPI_DEPEND=
4436
4437 BUILD_BDB=no
4438 BUILD_DNSSRV=no
4439 BUILD_HDB=no
4440 BUILD_LDAP=no
4441 BUILD_META=no
4442 BUILD_MONITOR=no
4443 BUILD_NDB=no
4444 BUILD_NULL=no
4445 BUILD_PASSWD=no
4446 BUILD_PERL=no
4447 BUILD_RELAY=no
4448 BUILD_SHELL=no
4449 BUILD_SOCK=no
4450 BUILD_SQL=no
4451
4452 BUILD_ACCESSLOG=no
4453 BUILD_AUDITLOG=no
4454 BUILD_CONSTRAINT=no
4455 BUILD_DDS=no
4456 BUILD_DENYOP=no
4457 BUILD_DYNGROUP=no
4458 BUILD_DYNLIST=no
4459 BUILD_LASTMOD=no
4460 BUILD_MEMBEROF=no
4461 BUILD_PPOLICY=no
4462 BUILD_PROXYCACHE=no
4463 BUILD_REFINT=no
4464 BUILD_RETCODE=no
4465 BUILD_RWM=no
4466 BUILD_SEQMOD=no
4467 BUILD_SYNCPROV=no
4468 BUILD_TRANSLUCENT=no
4469 BUILD_UNIQUE=no
4470 BUILD_VALSORT=no
4471
4472 SLAPD_STATIC_OVERLAYS=
4473 SLAPD_DYNAMIC_OVERLAYS=
4474
4475 SLAPD_MODULES_LDFLAGS=
4476 SLAPD_MODULES_CPPFLAGS=
4477
4478 SLAPD_STATIC_BACKENDS=back-ldif
4479 SLAPD_DYNAMIC_BACKENDS=
4480
4481 SLAPD_PERL_LDFLAGS=
4482 MOD_PERL_LDFLAGS=
4483 PERL_CPPFLAGS=
4484
4485 SLAPD_SQL_LDFLAGS=
4486 SLAPD_SQL_LIBS=
4487 SLAPD_SQL_INCLUDES=
4488
4489 KRB4_LIBS=
4490 KRB5_LIBS=
4491 SASL_LIBS=
4492 TLS_LIBS=
4493 MODULES_LIBS=
4494 SLAPI_LIBS=
4495 LIBSLAPI=
4496 LIBSLAPITOOLS=
4497 AUTH_LIBS=
4498 ICU_LIBS=
4499
4500 SLAPD_SLP_LIBS=
4501 SLAPD_GMP_LIBS=
4502
4503
4504
4505 cat >>confdefs.h <<\_ACEOF
4506 #define HAVE_MKVERSION 1
4507 _ACEOF
4508
4509
4510
4511
4512 ol_aix_threads=no
4513 case "$target" in
4514 *-*-aix*)       if test -z "$CC" ; then
4515                 case "$ol_with_threads" in
4516                 auto | yes |  posix) ol_aix_threads=yes ;;
4517                 esac
4518         fi
4519 ;;
4520 esac
4521
4522 if test $ol_aix_threads = yes ; then
4523         if test -z "${CC}" ; then
4524                 for ac_prog in cc_r xlc_r cc
4525 do
4526   # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   if test -n "$CC"; then
4534   ac_cv_prog_CC="$CC" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541   for ac_exec_ext in '' $ac_executable_extensions; do
4542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543     ac_cv_prog_CC="$ac_prog"
4544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 CC=$ac_cv_prog_CC
4554 if test -n "$CC"; then
4555   { echo "$as_me:$LINENO: result: $CC" >&5
4556 echo "${ECHO_T}$CC" >&6; }
4557 else
4558   { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4560 fi
4561
4562
4563   test -n "$CC" && break
4564 done
4565
4566
4567                 if test "$CC" = cc ; then
4568                                                 if test $ol_with_threads != auto ; then
4569                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4570 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4571    { (exit 1); exit 1; }; }
4572                         else
4573                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4574 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4575                         fi
4576                         ol_with_threads=no
4577                 fi
4578         fi
4579
4580         case ${CC} in cc_r | xlc_r)
4581                 ol_with_threads=posix
4582                 ol_cv_pthread_create=yes
4583                 ;;
4584         esac
4585 fi
4586
4587 if test -z "${CC}"; then
4588         for ac_prog in cc gcc
4589 do
4590   # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_CC+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   if test -n "$CC"; then
4598   ac_cv_prog_CC="$CC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_prog_CC="$ac_prog"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619   { echo "$as_me:$LINENO: result: $CC" >&5
4620 echo "${ECHO_T}$CC" >&6; }
4621 else
4622   { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4624 fi
4625
4626
4627   test -n "$CC" && break
4628 done
4629 test -n "$CC" || CC="missing"
4630
4631
4632         if test "${CC}" = "missing" ; then
4633                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4634 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4635    { (exit 1); exit 1; }; }
4636         fi
4637 fi
4638
4639 if test -z "${AR}"; then
4640         for ac_prog in ar gar
4641 do
4642   # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_AR+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   if test -n "$AR"; then
4650   ac_cv_prog_AR="$AR" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_prog_AR="$ac_prog"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 AR=$ac_cv_prog_AR
4670 if test -n "$AR"; then
4671   { echo "$as_me:$LINENO: result: $AR" >&5
4672 echo "${ECHO_T}$AR" >&6; }
4673 else
4674   { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4676 fi
4677
4678
4679   test -n "$AR" && break
4680 done
4681 test -n "$AR" || AR="missing"
4682
4683
4684         if test "${AR}" = "missing" ; then
4685                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4686 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4687    { (exit 1); exit 1; }; }
4688         fi
4689 fi
4690
4691
4692
4693
4694
4695 # Check whether --enable-fast-install was given.
4696 if test "${enable_fast_install+set}" = set; then
4697   enableval=$enable_fast_install; p=${PACKAGE-default}
4698     case $enableval in
4699     yes) enable_fast_install=yes ;;
4700     no) enable_fast_install=no ;;
4701     *)
4702       enable_fast_install=no
4703       # Look at the argument we got.  We use all the common list separators.
4704       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4705       for pkg in $enableval; do
4706         IFS="$lt_save_ifs"
4707         if test "X$pkg" = "X$p"; then
4708           enable_fast_install=yes
4709         fi
4710       done
4711       IFS="$lt_save_ifs"
4712       ;;
4713     esac
4714 else
4715   enable_fast_install=yes
4716 fi
4717
4718
4719 DEPDIR="${am__leading_dot}deps"
4720
4721 ac_config_commands="$ac_config_commands depfiles"
4722
4723
4724 am_make=${MAKE-make}
4725 cat > confinc << 'END'
4726 am__doit:
4727         @echo done
4728 .PHONY: am__doit
4729 END
4730 # If we don't find an include directive, just comment out the code.
4731 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4732 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4733 am__include="#"
4734 am__quote=
4735 _am_result=none
4736 # First try GNU make style include.
4737 echo "include confinc" > confmf
4738 # We grep out `Entering directory' and `Leaving directory'
4739 # messages which can occur if `w' ends up in MAKEFLAGS.
4740 # In particular we don't look at `^make:' because GNU make might
4741 # be invoked under some other name (usually "gmake"), in which
4742 # case it prints its new name instead of `make'.
4743 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4744    am__include=include
4745    am__quote=
4746    _am_result=GNU
4747 fi
4748 # Now try BSD make style include.
4749 if test "$am__include" = "#"; then
4750    echo '.include "confinc"' > confmf
4751    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4752       am__include=.include
4753       am__quote="\""
4754       _am_result=BSD
4755    fi
4756 fi
4757
4758
4759 { echo "$as_me:$LINENO: result: $_am_result" >&5
4760 echo "${ECHO_T}$_am_result" >&6; }
4761 rm -f confinc confmf
4762
4763 # Check whether --enable-dependency-tracking was given.
4764 if test "${enable_dependency_tracking+set}" = set; then
4765   enableval=$enable_dependency_tracking;
4766 fi
4767
4768 if test "x$enable_dependency_tracking" != xno; then
4769   am_depcomp="$ac_aux_dir/depcomp"
4770   AMDEPBACKSLASH='\'
4771 fi
4772
4773
4774 if test "x$enable_dependency_tracking" != xno; then
4775   AMDEP_TRUE=
4776   AMDEP_FALSE='#'
4777 else
4778   AMDEP_TRUE='#'
4779   AMDEP_FALSE=
4780 fi
4781
4782
4783
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 if test -n "$ac_tool_prefix"; then
4790   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   if test -n "$CC"; then
4798   ac_cv_prog_CC="$CC" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805   for ac_exec_ext in '' $ac_executable_extensions; do
4806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 CC=$ac_cv_prog_CC
4818 if test -n "$CC"; then
4819   { echo "$as_me:$LINENO: result: $CC" >&5
4820 echo "${ECHO_T}$CC" >&6; }
4821 else
4822   { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4824 fi
4825
4826
4827 fi
4828 if test -z "$ac_cv_prog_CC"; then
4829   ac_ct_CC=$CC
4830   # Extract the first word of "gcc", so it can be a program name with args.
4831 set dummy gcc; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   if test -n "$ac_ct_CC"; then
4838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845   for ac_exec_ext in '' $ac_executable_extensions; do
4846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847     ac_cv_prog_ac_ct_CC="gcc"
4848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4860 echo "${ECHO_T}$ac_ct_CC" >&6; }
4861 else
4862   { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4864 fi
4865
4866   if test "x$ac_ct_CC" = x; then
4867     CC=""
4868   else
4869     case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4872 whose name does not start with the host triplet.  If you think this
4873 configuration is useful to you, please write to autoconf@gnu.org." >&5
4874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4875 whose name does not start with the host triplet.  If you think this
4876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4877 ac_tool_warned=yes ;;
4878 esac
4879     CC=$ac_ct_CC
4880   fi
4881 else
4882   CC="$ac_cv_prog_CC"
4883 fi
4884
4885 if test -z "$CC"; then
4886           if test -n "$ac_tool_prefix"; then
4887     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}cc; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_CC+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   if test -n "$CC"; then
4895   ac_cv_prog_CC="$CC" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     ac_cv_prog_CC="${ac_tool_prefix}cc"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 fi
4913 fi
4914 CC=$ac_cv_prog_CC
4915 if test -n "$CC"; then
4916   { echo "$as_me:$LINENO: result: $CC" >&5
4917 echo "${ECHO_T}$CC" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923
4924   fi
4925 fi
4926 if test -z "$CC"; then
4927   # Extract the first word of "cc", so it can be a program name with args.
4928 set dummy cc; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_prog_CC+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   if test -n "$CC"; then
4935   ac_cv_prog_CC="$CC" # Let the user override the test.
4936 else
4937   ac_prog_rejected=no
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943   for ac_exec_ext in '' $ac_executable_extensions; do
4944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4946        ac_prog_rejected=yes
4947        continue
4948      fi
4949     ac_cv_prog_CC="cc"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 if test $ac_prog_rejected = yes; then
4958   # We found a bogon in the path, so make sure we never use it.
4959   set dummy $ac_cv_prog_CC
4960   shift
4961   if test $# != 0; then
4962     # We chose a different compiler from the bogus one.
4963     # However, it has the same basename, so the bogon will be chosen
4964     # first if we set CC to just the basename; use the full file name.
4965     shift
4966     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4967   fi
4968 fi
4969 fi
4970 fi
4971 CC=$ac_cv_prog_CC
4972 if test -n "$CC"; then
4973   { echo "$as_me:$LINENO: result: $CC" >&5
4974 echo "${ECHO_T}$CC" >&6; }
4975 else
4976   { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4978 fi
4979
4980
4981 fi
4982 if test -z "$CC"; then
4983   if test -n "$ac_tool_prefix"; then
4984   for ac_prog in cl.exe
4985   do
4986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_prog_CC+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   if test -n "$CC"; then
4994   ac_cv_prog_CC="$CC" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001   for ac_exec_ext in '' $ac_executable_extensions; do
5002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 CC=$ac_cv_prog_CC
5014 if test -n "$CC"; then
5015   { echo "$as_me:$LINENO: result: $CC" >&5
5016 echo "${ECHO_T}$CC" >&6; }
5017 else
5018   { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5020 fi
5021
5022
5023     test -n "$CC" && break
5024   done
5025 fi
5026 if test -z "$CC"; then
5027   ac_ct_CC=$CC
5028   for ac_prog in cl.exe
5029 do
5030   # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   if test -n "$ac_ct_CC"; then
5038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_prog_ac_ct_CC="$ac_prog"
5048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5058 if test -n "$ac_ct_CC"; then
5059   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5060 echo "${ECHO_T}$ac_ct_CC" >&6; }
5061 else
5062   { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5064 fi
5065
5066
5067   test -n "$ac_ct_CC" && break
5068 done
5069
5070   if test "x$ac_ct_CC" = x; then
5071     CC=""
5072   else
5073     case $cross_compiling:$ac_tool_warned in
5074 yes:)
5075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5076 whose name does not start with the host triplet.  If you think this
5077 configuration is useful to you, please write to autoconf@gnu.org." >&5
5078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5079 whose name does not start with the host triplet.  If you think this
5080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5081 ac_tool_warned=yes ;;
5082 esac
5083     CC=$ac_ct_CC
5084   fi
5085 fi
5086
5087 fi
5088
5089
5090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5091 See \`config.log' for more details." >&5
5092 echo "$as_me: error: no acceptable C compiler found in \$PATH
5093 See \`config.log' for more details." >&2;}
5094    { (exit 1); exit 1; }; }
5095
5096 # Provide some information about the compiler.
5097 echo "$as_me:$LINENO: checking for C compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (ac_try="$ac_compiler --version >&5"
5100 case "(($ac_try" in
5101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102   *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105   (eval "$ac_compiler --version >&5") 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }
5109 { (ac_try="$ac_compiler -v >&5"
5110 case "(($ac_try" in
5111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112   *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115   (eval "$ac_compiler -v >&5") 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }
5119 { (ac_try="$ac_compiler -V >&5"
5120 case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125   (eval "$ac_compiler -V >&5") 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }
5129
5130 cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136
5137 int
5138 main ()
5139 {
5140
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 ac_clean_files_save=$ac_clean_files
5146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5147 # Try to create an executable without -o first, disregard a.out.
5148 # It will help us diagnose broken compilers, and finding out an intuition
5149 # of exeext.
5150 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5151 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5153 #
5154 # List of possible output files, starting from the most likely.
5155 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5156 # only as a last resort.  b.out is created by i960 compilers.
5157 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5158 #
5159 # The IRIX 6 linker writes into existing files which may not be
5160 # executable, retaining their permissions.  Remove them first so a
5161 # subsequent execution test works.
5162 ac_rmfiles=
5163 for ac_file in $ac_files
5164 do
5165   case $ac_file in
5166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5167     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5168   esac
5169 done
5170 rm -f $ac_rmfiles
5171
5172 if { (ac_try="$ac_link_default"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178   (eval "$ac_link_default") 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; then
5182   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5183 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5184 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5185 # so that the user can short-circuit this test for compilers unknown to
5186 # Autoconf.
5187 for ac_file in $ac_files ''
5188 do
5189   test -f "$ac_file" || continue
5190   case $ac_file in
5191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5192         ;;
5193     [ab].out )
5194         # We found the default executable, but exeext='' is most
5195         # certainly right.
5196         break;;
5197     *.* )
5198         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5199         then :; else
5200            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5201         fi
5202         # We set ac_cv_exeext here because the later test for it is not
5203         # safe: cross compilers may not add the suffix if given an `-o'
5204         # argument, so we may need to know it at that point already.
5205         # Even if this section looks crufty: it has the advantage of
5206         # actually working.
5207         break;;
5208     * )
5209         break;;
5210   esac
5211 done
5212 test "$ac_cv_exeext" = no && ac_cv_exeext=
5213
5214 else
5215   ac_file=''
5216 fi
5217
5218 { echo "$as_me:$LINENO: result: $ac_file" >&5
5219 echo "${ECHO_T}$ac_file" >&6; }
5220 if test -z "$ac_file"; then
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C compiler cannot create executables
5227 See \`config.log' for more details." >&2;}
5228    { (exit 77); exit 77; }; }
5229 fi
5230
5231 ac_exeext=$ac_cv_exeext
5232
5233 # Check that the compiler produces executables we can run.  If not, either
5234 # the compiler is broken, or we cross compile.
5235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5238 # If not cross compiling, check that we can run a simple program.
5239 if test "$cross_compiling" != yes; then
5240   if { ac_try='./$ac_file'
5241   { (case "(($ac_try" in
5242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243   *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246   (eval "$ac_try") 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; }; then
5250     cross_compiling=no
5251   else
5252     if test "$cross_compiling" = maybe; then
5253         cross_compiling=yes
5254     else
5255         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5256 If you meant to cross compile, use \`--host'.
5257 See \`config.log' for more details." >&5
5258 echo "$as_me: error: cannot run C compiled programs.
5259 If you meant to cross compile, use \`--host'.
5260 See \`config.log' for more details." >&2;}
5261    { (exit 1); exit 1; }; }
5262     fi
5263   fi
5264 fi
5265 { echo "$as_me:$LINENO: result: yes" >&5
5266 echo "${ECHO_T}yes" >&6; }
5267
5268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5269 ac_clean_files=$ac_clean_files_save
5270 # Check that the compiler produces executables we can run.  If not, either
5271 # the compiler is broken, or we cross compile.
5272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5275 echo "${ECHO_T}$cross_compiling" >&6; }
5276
5277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5279 if { (ac_try="$ac_link"
5280 case "(($ac_try" in
5281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282   *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285   (eval "$ac_link") 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; then
5289   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5290 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5291 # work properly (i.e., refer to `conftest.exe'), while it won't with
5292 # `rm'.
5293 for ac_file in conftest.exe conftest conftest.*; do
5294   test -f "$ac_file" || continue
5295   case $ac_file in
5296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5297     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5298           break;;
5299     * ) break;;
5300   esac
5301 done
5302 else
5303   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5304 See \`config.log' for more details." >&5
5305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5306 See \`config.log' for more details." >&2;}
5307    { (exit 1); exit 1; }; }
5308 fi
5309
5310 rm -f conftest$ac_cv_exeext
5311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5313
5314 rm -f conftest.$ac_ext
5315 EXEEXT=$ac_cv_exeext
5316 ac_exeext=$EXEEXT
5317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5319 if test "${ac_cv_objext+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 int
5330 main ()
5331 {
5332
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.o conftest.obj
5338 if { (ac_try="$ac_compile"
5339 case "(($ac_try" in
5340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341   *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344   (eval "$ac_compile") 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; then
5348   for ac_file in conftest.o conftest.obj conftest.*; do
5349   test -f "$ac_file" || continue;
5350   case $ac_file in
5351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5352     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5353        break;;
5354   esac
5355 done
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5361 See \`config.log' for more details." >&5
5362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5363 See \`config.log' for more details." >&2;}
5364    { (exit 1); exit 1; }; }
5365 fi
5366
5367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5368 fi
5369 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5370 echo "${ECHO_T}$ac_cv_objext" >&6; }
5371 OBJEXT=$ac_cv_objext
5372 ac_objext=$OBJEXT
5373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5374 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378   cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384
5385 int
5386 main ()
5387 {
5388 #ifndef __GNUC__
5389        choke me
5390 #endif
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5398 case "(($ac_try" in
5399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400   *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403   (eval "$ac_compile") 2>conftest.er1
5404   ac_status=$?
5405   grep -v '^ *+' conftest.er1 >conftest.err
5406   rm -f conftest.er1
5407   cat conftest.err >&5
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } && {
5410          test -z "$ac_c_werror_flag" ||
5411          test ! -s conftest.err
5412        } && test -s conftest.$ac_objext; then
5413   ac_compiler_gnu=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418         ac_compiler_gnu=no
5419 fi
5420
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5423
5424 fi
5425 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5427 GCC=`test $ac_compiler_gnu = yes && echo yes`
5428 ac_test_CFLAGS=${CFLAGS+set}
5429 ac_save_CFLAGS=$CFLAGS
5430 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5431 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5432 if test "${ac_cv_prog_cc_g+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   ac_save_c_werror_flag=$ac_c_werror_flag
5436    ac_c_werror_flag=yes
5437    ac_cv_prog_cc_g=no
5438    CFLAGS="-g"
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
5446 int
5447 main ()
5448 {
5449
5450   ;
5451   return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458   *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461   (eval "$ac_compile") 2>conftest.er1
5462   ac_status=$?
5463   grep -v '^ *+' conftest.er1 >conftest.err
5464   rm -f conftest.er1
5465   cat conftest.err >&5
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } && {
5468          test -z "$ac_c_werror_flag" ||
5469          test ! -s conftest.err
5470        } && test -s conftest.$ac_objext; then
5471   ac_cv_prog_cc_g=yes
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476         CFLAGS=""
5477       cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483
5484 int
5485 main ()
5486 {
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_compile") 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } && {
5506          test -z "$ac_c_werror_flag" ||
5507          test ! -s conftest.err
5508        } && test -s conftest.$ac_objext; then
5509   :
5510 else
5511   echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514         ac_c_werror_flag=$ac_save_c_werror_flag
5515          CFLAGS="-g"
5516          cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522
5523 int
5524 main ()
5525 {
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535   *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538   (eval "$ac_compile") 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } && {
5545          test -z "$ac_c_werror_flag" ||
5546          test ! -s conftest.err
5547        } && test -s conftest.$ac_objext; then
5548   ac_cv_prog_cc_g=yes
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553
5554 fi
5555
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 fi
5558
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 fi
5561
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563    ac_c_werror_flag=$ac_save_c_werror_flag
5564 fi
5565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5567 if test "$ac_test_CFLAGS" = set; then
5568   CFLAGS=$ac_save_CFLAGS
5569 elif test $ac_cv_prog_cc_g = yes; then
5570   if test "$GCC" = yes; then
5571     CFLAGS="-g -O2"
5572   else
5573     CFLAGS="-g"
5574   fi
5575 else
5576   if test "$GCC" = yes; then
5577     CFLAGS="-O2"
5578   else
5579     CFLAGS=
5580   fi
5581 fi
5582 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5583 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5584 if test "${ac_cv_prog_cc_c89+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_cv_prog_cc_c89=no
5588 ac_save_CC=$CC
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h.  */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h.  */
5595 #include <stdarg.h>
5596 #include <stdio.h>
5597 #include <sys/types.h>
5598 #include <sys/stat.h>
5599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5600 struct buf { int x; };
5601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5602 static char *e (p, i)
5603      char **p;
5604      int i;
5605 {
5606   return p[i];
5607 }
5608 static char *f (char * (*g) (char **, int), char **p, ...)
5609 {
5610   char *s;
5611   va_list v;
5612   va_start (v,p);
5613   s = g (p, va_arg (v,int));
5614   va_end (v);
5615   return s;
5616 }
5617
5618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5619    function prototypes and stuff, but not '\xHH' hex character constants.
5620    These don't provoke an error unfortunately, instead are silently treated
5621    as 'x'.  The following induces an error, until -std is added to get
5622    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5623    array size at least.  It's necessary to write '\x00'==0 to get something
5624    that's true only with -std.  */
5625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5626
5627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5628    inside strings and character constants.  */
5629 #define FOO(x) 'x'
5630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5631
5632 int test (int i, double x);
5633 struct s1 {int (*f) (int a);};
5634 struct s2 {int (*f) (double a);};
5635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5636 int argc;
5637 char **argv;
5638 int
5639 main ()
5640 {
5641 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5647         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5648 do
5649   CC="$ac_save_CC $ac_arg"
5650   rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654   *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657   (eval "$ac_compile") 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
5661   cat conftest.err >&5
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } && {
5664          test -z "$ac_c_werror_flag" ||
5665          test ! -s conftest.err
5666        } && test -s conftest.$ac_objext; then
5667   ac_cv_prog_cc_c89=$ac_arg
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672
5673 fi
5674
5675 rm -f core conftest.err conftest.$ac_objext
5676   test "x$ac_cv_prog_cc_c89" != "xno" && break
5677 done
5678 rm -f conftest.$ac_ext
5679 CC=$ac_save_CC
5680
5681 fi
5682 # AC_CACHE_VAL
5683 case "x$ac_cv_prog_cc_c89" in
5684   x)
5685     { echo "$as_me:$LINENO: result: none needed" >&5
5686 echo "${ECHO_T}none needed" >&6; } ;;
5687   xno)
5688     { echo "$as_me:$LINENO: result: unsupported" >&5
5689 echo "${ECHO_T}unsupported" >&6; } ;;
5690   *)
5691     CC="$CC $ac_cv_prog_cc_c89"
5692     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5693 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5694 esac
5695
5696
5697 ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702
5703 depcc="$CC"   am_compiler_list=
5704
5705 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5706 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5707 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711   # We make a subdir and do the tests there.  Otherwise we can end up
5712   # making bogus files that we don't know about and never remove.  For
5713   # instance it was reported that on HP-UX the gcc test will end up
5714   # making a dummy file named `D' -- because `-MD' means `put the output
5715   # in D'.
5716   mkdir conftest.dir
5717   # Copy depcomp to subdir because otherwise we won't find it if we're
5718   # using a relative directory.
5719   cp "$am_depcomp" conftest.dir
5720   cd conftest.dir
5721   # We will build objects and dependencies in a subdirectory because
5722   # it helps to detect inapplicable dependency modes.  For instance
5723   # both Tru64's cc and ICC support -MD to output dependencies as a
5724   # side effect of compilation, but ICC will put the dependencies in
5725   # the current directory while Tru64 will put them in the object
5726   # directory.
5727   mkdir sub
5728
5729   am_cv_CC_dependencies_compiler_type=none
5730   if test "$am_compiler_list" = ""; then
5731      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5732   fi
5733   for depmode in $am_compiler_list; do
5734     # Setup a source with many dependencies, because some compilers
5735     # like to wrap large dependency lists on column 80 (with \), and
5736     # we should not choose a depcomp mode which is confused by this.
5737     #
5738     # We need to recreate these files for each test, as the compiler may
5739     # overwrite some of them when testing with obscure command lines.
5740     # This happens at least with the AIX C compiler.
5741     : > sub/conftest.c
5742     for i in 1 2 3 4 5 6; do
5743       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5744       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745       # Solaris 8's {/usr,}/bin/sh.
5746       touch sub/conftst$i.h
5747     done
5748     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5749
5750     case $depmode in
5751     nosideeffect)
5752       # after this tag, mechanisms are not by side-effect, so they'll
5753       # only be used when explicitly requested
5754       if test "x$enable_dependency_tracking" = xyes; then
5755         continue
5756       else
5757         break
5758       fi
5759       ;;
5760     none) break ;;
5761     esac
5762     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5763     # mode.  It turns out that the SunPro C++ compiler does not properly
5764     # handle `-M -o', and we need to detect this.
5765     if depmode=$depmode \
5766        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5767        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5768        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5769          >/dev/null 2>conftest.err &&
5770        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5771        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5772        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5773       # icc doesn't choke on unknown options, it will just issue warnings
5774       # or remarks (even with -Werror).  So we grep stderr for any message
5775       # that says an option was ignored or not supported.
5776       # When given -MP, icc 7.0 and 7.1 complain thusly:
5777       #   icc: Command line warning: ignoring option '-M'; no argument required
5778       # The diagnosis changed in icc 8.0:
5779       #   icc: Command line remark: option '-MP' not supported
5780       if (grep 'ignoring option' conftest.err ||
5781           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5782         am_cv_CC_dependencies_compiler_type=$depmode
5783         break
5784       fi
5785     fi
5786   done
5787
5788   cd ..
5789   rm -rf conftest.dir
5790 else
5791   am_cv_CC_dependencies_compiler_type=none
5792 fi
5793
5794 fi
5795 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5796 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5797 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5798
5799
5800
5801 if
5802   test "x$enable_dependency_tracking" != xno \
5803   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5804   am__fastdepCC_TRUE=
5805   am__fastdepCC_FALSE='#'
5806 else
5807   am__fastdepCC_TRUE='#'
5808   am__fastdepCC_FALSE=
5809 fi
5810
5811
5812 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5813 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5814 if test "${lt_cv_path_SED+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   # Loop through the user's path and test for sed and gsed.
5818 # Then use that list of sed's as ones to test for truncation.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for lt_ac_prog in sed gsed; do
5825     for ac_exec_ext in '' $ac_executable_extensions; do
5826       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5827         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5828       fi
5829     done
5830   done
5831 done
5832 lt_ac_max=0
5833 lt_ac_count=0
5834 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5835 # along with /bin/sed that truncates output.
5836 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5837   test ! -f $lt_ac_sed && continue
5838   cat /dev/null > conftest.in
5839   lt_ac_count=0
5840   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5841   # Check for GNU sed and select it if it is found.
5842   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5843     lt_cv_path_SED=$lt_ac_sed
5844     break
5845   fi
5846   while true; do
5847     cat conftest.in conftest.in >conftest.tmp
5848     mv conftest.tmp conftest.in
5849     cp conftest.in conftest.nl
5850     echo >>conftest.nl
5851     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5852     cmp -s conftest.out conftest.nl || break
5853     # 10000 chars as input seems more than enough
5854     test $lt_ac_count -gt 10 && break
5855     lt_ac_count=`expr $lt_ac_count + 1`
5856     if test $lt_ac_count -gt $lt_ac_max; then
5857       lt_ac_max=$lt_ac_count
5858       lt_cv_path_SED=$lt_ac_sed
5859     fi
5860   done
5861 done
5862
5863 fi
5864
5865 SED=$lt_cv_path_SED
5866 { echo "$as_me:$LINENO: result: $SED" >&5
5867 echo "${ECHO_T}$SED" >&6; }
5868
5869 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5870 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_GREP+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   # Extract the first word of "grep ggrep" to use in msg output
5875 if test -z "$GREP"; then
5876 set dummy grep ggrep; ac_prog_name=$2
5877 if test "${ac_cv_path_GREP+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   ac_path_GREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_prog in grep ggrep; do
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5890     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5891     # Check for GNU ac_path_GREP and select it if it is found.
5892   # Check for GNU $ac_path_GREP
5893 case `"$ac_path_GREP" --version 2>&1` in
5894 *GNU*)
5895   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5896 *)
5897   ac_count=0
5898   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5899   while :
5900   do
5901     cat "conftest.in" "conftest.in" >"conftest.tmp"
5902     mv "conftest.tmp" "conftest.in"
5903     cp "conftest.in" "conftest.nl"
5904     echo 'GREP' >> "conftest.nl"
5905     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907     ac_count=`expr $ac_count + 1`
5908     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5909       # Best one so far, save it but keep looking for a better one
5910       ac_cv_path_GREP="$ac_path_GREP"
5911       ac_path_GREP_max=$ac_count
5912     fi
5913     # 10*(2^10) chars as input seems more than enough
5914     test $ac_count -gt 10 && break
5915   done
5916   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917 esac
5918
5919
5920     $ac_path_GREP_found && break 3
5921   done
5922 done
5923
5924 done
5925 IFS=$as_save_IFS
5926
5927
5928 fi
5929
5930 GREP="$ac_cv_path_GREP"
5931 if test -z "$GREP"; then
5932   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5933 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5934    { (exit 1); exit 1; }; }
5935 fi
5936
5937 else
5938   ac_cv_path_GREP=$GREP
5939 fi
5940
5941
5942 fi
5943 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5944 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5945  GREP="$ac_cv_path_GREP"
5946
5947
5948 { echo "$as_me:$LINENO: checking for egrep" >&5
5949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5950 if test "${ac_cv_path_EGREP+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5954    then ac_cv_path_EGREP="$GREP -E"
5955    else
5956      # Extract the first word of "egrep" to use in msg output
5957 if test -z "$EGREP"; then
5958 set dummy egrep; ac_prog_name=$2
5959 if test "${ac_cv_path_EGREP+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   ac_path_EGREP_found=false
5963 # Loop through the user's path and test for each of PROGNAME-LIST
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_prog in egrep; do
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5972     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5973     # Check for GNU ac_path_EGREP and select it if it is found.
5974   # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in
5976 *GNU*)
5977   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5978 *)
5979   ac_count=0
5980   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5981   while :
5982   do
5983     cat "conftest.in" "conftest.in" >"conftest.tmp"
5984     mv "conftest.tmp" "conftest.in"
5985     cp "conftest.in" "conftest.nl"
5986     echo 'EGREP' >> "conftest.nl"
5987     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5988     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5989     ac_count=`expr $ac_count + 1`
5990     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5991       # Best one so far, save it but keep looking for a better one
5992       ac_cv_path_EGREP="$ac_path_EGREP"
5993       ac_path_EGREP_max=$ac_count
5994     fi
5995     # 10*(2^10) chars as input seems more than enough
5996     test $ac_count -gt 10 && break
5997   done
5998   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5999 esac
6000
6001
6002     $ac_path_EGREP_found && break 3
6003   done
6004 done
6005
6006 done
6007 IFS=$as_save_IFS
6008
6009
6010 fi
6011
6012 EGREP="$ac_cv_path_EGREP"
6013 if test -z "$EGREP"; then
6014   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6015 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6016    { (exit 1); exit 1; }; }
6017 fi
6018
6019 else
6020   ac_cv_path_EGREP=$EGREP
6021 fi
6022
6023
6024    fi
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6027 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6028  EGREP="$ac_cv_path_EGREP"
6029
6030
6031
6032 # Check whether --with-gnu-ld was given.
6033 if test "${with_gnu_ld+set}" = set; then
6034   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6035 else
6036   with_gnu_ld=no
6037 fi
6038
6039 ac_prog=ld
6040 if test "$GCC" = yes; then
6041   # Check if gcc -print-prog-name=ld gives a path.
6042   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6043 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6044   case $host in
6045   *-*-mingw*)
6046     # gcc leaves a trailing carriage return which upsets mingw
6047     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6048   *)
6049     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6050   esac
6051   case $ac_prog in
6052     # Accept absolute paths.
6053     [\\/]* | ?:[\\/]*)
6054       re_direlt='/[^/][^/]*/\.\./'
6055       # Canonicalize the pathname of ld
6056       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6057       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6058         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6059       done
6060       test -z "$LD" && LD="$ac_prog"
6061       ;;
6062   "")
6063     # If it fails, then pretend we aren't using GCC.
6064     ac_prog=ld
6065     ;;
6066   *)
6067     # If it is relative, then search for the first ld in PATH.
6068     with_gnu_ld=unknown
6069     ;;
6070   esac
6071 elif test "$with_gnu_ld" = yes; then
6072   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6073 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6074 else
6075   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6076 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6077 fi
6078 if test "${lt_cv_path_LD+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   if test -z "$LD"; then
6082   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6083   for ac_dir in $PATH; do
6084     IFS="$lt_save_ifs"
6085     test -z "$ac_dir" && ac_dir=.
6086     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6087       lt_cv_path_LD="$ac_dir/$ac_prog"
6088       # Check to see if the program is GNU ld.  I'd rather use --version,
6089       # but apparently some variants of GNU ld only accept -v.
6090       # Break only if it was the GNU/non-GNU ld that we prefer.
6091       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6092       *GNU* | *'with BFD'*)
6093         test "$with_gnu_ld" != no && break
6094         ;;
6095       *)
6096         test "$with_gnu_ld" != yes && break
6097         ;;
6098       esac
6099     fi
6100   done
6101   IFS="$lt_save_ifs"
6102 else
6103   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6104 fi
6105 fi
6106
6107 LD="$lt_cv_path_LD"
6108 if test -n "$LD"; then
6109   { echo "$as_me:$LINENO: result: $LD" >&5
6110 echo "${ECHO_T}$LD" >&6; }
6111 else
6112   { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6116 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6117    { (exit 1); exit 1; }; }
6118 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6119 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6120 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6124 case `$LD -v 2>&1 </dev/null` in
6125 *GNU* | *'with BFD'*)
6126   lt_cv_prog_gnu_ld=yes
6127   ;;
6128 *)
6129   lt_cv_prog_gnu_ld=no
6130   ;;
6131 esac
6132 fi
6133 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6134 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6135 with_gnu_ld=$lt_cv_prog_gnu_ld
6136
6137
6138 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6139 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6140 if test "${lt_cv_ld_reload_flag+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   lt_cv_ld_reload_flag='-r'
6144 fi
6145 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6146 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6147 reload_flag=$lt_cv_ld_reload_flag
6148 case $reload_flag in
6149 "" | " "*) ;;
6150 *) reload_flag=" $reload_flag" ;;
6151 esac
6152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6153 case $host_os in
6154   darwin*)
6155     if test "$GCC" = yes; then
6156       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6157     else
6158       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6159     fi
6160     ;;
6161 esac
6162
6163 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6164 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6165 if test "${lt_cv_path_NM+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   if test -n "$NM"; then
6169   # Let the user override the test.
6170   lt_cv_path_NM="$NM"
6171 else
6172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6173   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6174     IFS="$lt_save_ifs"
6175     test -z "$ac_dir" && ac_dir=.
6176     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6177     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6178       # Check to see if the nm accepts a BSD-compat flag.
6179       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6180       #   nm: unknown option "B" ignored
6181       # Tru64's nm complains that /dev/null is an invalid object file
6182       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6183       */dev/null* | *'Invalid file or object type'*)
6184         lt_cv_path_NM="$tmp_nm -B"
6185         break
6186         ;;
6187       *)
6188         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6189         */dev/null*)
6190           lt_cv_path_NM="$tmp_nm -p"
6191           break
6192           ;;
6193         *)
6194           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6195           continue # so that we can try to find one that supports BSD flags
6196           ;;
6197         esac
6198       esac
6199     fi
6200   done
6201   IFS="$lt_save_ifs"
6202   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6203 fi
6204 fi
6205 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6206 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6207 NM="$lt_cv_path_NM"
6208
6209 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6211 LN_S=$as_ln_s
6212 if test "$LN_S" = "ln -s"; then
6213   { echo "$as_me:$LINENO: result: yes" >&5
6214 echo "${ECHO_T}yes" >&6; }
6215 else
6216   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6217 echo "${ECHO_T}no, using $LN_S" >&6; }
6218 fi
6219
6220 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6221 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6222 if test "${lt_cv_deplibs_check_method+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   lt_cv_file_magic_cmd='$MAGIC_CMD'
6226 lt_cv_file_magic_test_file=
6227 lt_cv_deplibs_check_method='unknown'
6228 # Need to set the preceding variable on all platforms that support
6229 # interlibrary dependencies.
6230 # 'none' -- dependencies not supported.
6231 # `unknown' -- same as none, but documents that we really don't know.
6232 # 'pass_all' -- all dependencies passed with no checks.
6233 # 'test_compile' -- check by making test program.
6234 # 'file_magic [[regex]]' -- check by looking for files in library path
6235 # which responds to the $file_magic_cmd with a given extended regex.
6236 # If you have `file' or equivalent on your system and you're not sure
6237 # whether `pass_all' will *always* work, you probably want this one.
6238
6239 case $host_os in
6240 aix4* | aix5*)
6241   lt_cv_deplibs_check_method=pass_all
6242   ;;
6243
6244 beos*)
6245   lt_cv_deplibs_check_method=pass_all
6246   ;;
6247
6248 bsdi[45]*)
6249   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6250   lt_cv_file_magic_cmd='/usr/bin/file -L'
6251   lt_cv_file_magic_test_file=/shlib/libc.so
6252   ;;
6253
6254 cygwin*)
6255   # func_win32_libid is a shell function defined in ltmain.sh
6256   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257   lt_cv_file_magic_cmd='func_win32_libid'
6258   ;;
6259
6260 mingw* | pw32*)
6261   # Base MSYS/MinGW do not provide the 'file' command needed by
6262   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6263   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6264   lt_cv_file_magic_cmd='$OBJDUMP -f'
6265   ;;
6266
6267 darwin* | rhapsody*)
6268   lt_cv_deplibs_check_method=pass_all
6269   ;;
6270
6271 freebsd* | kfreebsd*-gnu | dragonfly*)
6272   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6273     case $host_cpu in
6274     i*86 )
6275       # Not sure whether the presence of OpenBSD here was a mistake.
6276       # Let's accept both of them until this is cleared up.
6277       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6278       lt_cv_file_magic_cmd=/usr/bin/file
6279       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6280       ;;
6281     esac
6282   else
6283     lt_cv_deplibs_check_method=pass_all
6284   fi
6285   ;;
6286
6287 gnu*)
6288   lt_cv_deplibs_check_method=pass_all
6289   ;;
6290
6291 hpux10.20* | hpux11*)
6292   lt_cv_file_magic_cmd=/usr/bin/file
6293   case $host_cpu in
6294   ia64*)
6295     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6296     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6297     ;;
6298   hppa*64*)
6299     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6300     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6301     ;;
6302   *)
6303     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6304     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6305     ;;
6306   esac
6307   ;;
6308
6309 irix5* | irix6* | nonstopux*)
6310   case $LD in
6311   *-32|*"-32 ") libmagic=32-bit;;
6312   *-n32|*"-n32 ") libmagic=N32;;
6313   *-64|*"-64 ") libmagic=64-bit;;
6314   *) libmagic=never-match;;
6315   esac
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 # This must be Linux ELF.
6320 linux*)
6321   lt_cv_deplibs_check_method=pass_all
6322   ;;
6323
6324 netbsd*)
6325   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6326     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6327   else
6328     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6329   fi
6330   ;;
6331
6332 newos6*)
6333   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6334   lt_cv_file_magic_cmd=/usr/bin/file
6335   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6336   ;;
6337
6338 nto-qnx*)
6339   lt_cv_deplibs_check_method=unknown
6340   ;;
6341
6342 openbsd*)
6343   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6344     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6345   else
6346     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6347   fi
6348   ;;
6349
6350 osf3* | osf4* | osf5*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353
6354 sco3.2v5*)
6355   lt_cv_deplibs_check_method=pass_all
6356   ;;
6357
6358 solaris*)
6359   lt_cv_deplibs_check_method=pass_all
6360   ;;
6361
6362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6363   case $host_vendor in
6364   motorola)
6365     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6366     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6367     ;;
6368   ncr)
6369     lt_cv_deplibs_check_method=pass_all
6370     ;;
6371   sequent)
6372     lt_cv_file_magic_cmd='/bin/file'
6373     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6374     ;;
6375   sni)
6376     lt_cv_file_magic_cmd='/bin/file'
6377     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6378     lt_cv_file_magic_test_file=/lib/libc.so
6379     ;;
6380   siemens)
6381     lt_cv_deplibs_check_method=pass_all
6382     ;;
6383   esac
6384   ;;
6385
6386 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389 esac
6390
6391 fi
6392 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6393 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6394 file_magic_cmd=$lt_cv_file_magic_cmd
6395 deplibs_check_method=$lt_cv_deplibs_check_method
6396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6397
6398
6399
6400
6401 # If no C compiler was specified, use CC.
6402 LTCC=${LTCC-"$CC"}
6403
6404 # Allow CC to be a program name with arguments.
6405 compiler=$CC
6406
6407
6408 # Check whether --enable-libtool-lock was given.
6409 if test "${enable_libtool_lock+set}" = set; then
6410   enableval=$enable_libtool_lock;
6411 fi
6412
6413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6414
6415 # Some flags need to be propagated to the compiler or linker for good
6416 # libtool support.
6417 case $host in
6418 ia64-*-hpux*)
6419   # Find out which ABI we are using.
6420   echo 'int i;' > conftest.$ac_ext
6421   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; then
6426     case `/usr/bin/file conftest.$ac_objext` in
6427     *ELF-32*)
6428       HPUX_IA64_MODE="32"
6429       ;;
6430     *ELF-64*)
6431       HPUX_IA64_MODE="64"
6432       ;;
6433     esac
6434   fi
6435   rm -rf conftest*
6436   ;;
6437 *-*-irix6*)
6438   # Find out which ABI we are using.
6439   echo '#line 6439 "configure"' > conftest.$ac_ext
6440   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441   (eval $ac_compile) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; then
6445    if test "$lt_cv_prog_gnu_ld" = yes; then
6446     case `/usr/bin/file conftest.$ac_objext` in
6447     *32-bit*)
6448       LD="${LD-ld} -melf32bsmip"
6449       ;;
6450     *N32*)
6451       LD="${LD-ld} -melf32bmipn32"
6452       ;;
6453     *64-bit*)
6454       LD="${LD-ld} -melf64bmip"
6455       ;;
6456     esac
6457    else
6458     case `/usr/bin/file conftest.$ac_objext` in
6459     *32-bit*)
6460       LD="${LD-ld} -32"
6461       ;;
6462     *N32*)
6463       LD="${LD-ld} -n32"
6464       ;;
6465     *64-bit*)
6466       LD="${LD-ld} -64"
6467       ;;
6468     esac
6469    fi
6470   fi
6471   rm -rf conftest*
6472   ;;
6473
6474 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6475   # Find out which ABI we are using.
6476   echo 'int i;' > conftest.$ac_ext
6477   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478   (eval $ac_compile) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; then
6482     case `/usr/bin/file conftest.o` in
6483     *32-bit*)
6484       case $host in
6485         x86_64-*linux*)
6486           LD="${LD-ld} -m elf_i386"
6487           ;;
6488         ppc64-*linux*|powerpc64-*linux*)
6489           LD="${LD-ld} -m elf32ppclinux"
6490           ;;
6491         s390x-*linux*)
6492           LD="${LD-ld} -m elf_s390"
6493           ;;
6494         sparc64-*linux*)
6495           LD="${LD-ld} -m elf32_sparc"
6496           ;;
6497       esac
6498       ;;
6499     *64-bit*)
6500       case $host in
6501         x86_64-*linux*)
6502           LD="${LD-ld} -m elf_x86_64"
6503           ;;
6504         ppc*-*linux*|powerpc*-*linux*)
6505           LD="${LD-ld} -m elf64ppc"
6506           ;;
6507         s390*-*linux*)
6508           LD="${LD-ld} -m elf64_s390"
6509           ;;
6510         sparc*-*linux*)
6511           LD="${LD-ld} -m elf64_sparc"
6512           ;;
6513       esac
6514       ;;
6515     esac
6516   fi
6517   rm -rf conftest*
6518   ;;
6519
6520 *-*-sco3.2v5*)
6521   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6522   SAVE_CFLAGS="$CFLAGS"
6523   CFLAGS="$CFLAGS -belf"
6524   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6525 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6526 if test "${lt_cv_cc_needs_belf+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   ac_ext=c
6530 ac_cpp='$CPP $CPPFLAGS'
6531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534
6535      cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h.  */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h.  */
6541
6542 int
6543 main ()
6544 {
6545
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (ac_try="$ac_link"
6552 case "(($ac_try" in
6553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554   *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557   (eval "$ac_link") 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } && {
6564          test -z "$ac_c_werror_flag" ||
6565          test ! -s conftest.err
6566        } && test -s conftest$ac_exeext &&
6567        $as_test_x conftest$ac_exeext; then
6568   lt_cv_cc_needs_belf=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         lt_cv_cc_needs_belf=no
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6577       conftest$ac_exeext conftest.$ac_ext
6578      ac_ext=c
6579 ac_cpp='$CPP $CPPFLAGS'
6580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6583
6584 fi
6585 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6586 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6587   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6588     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6589     CFLAGS="$SAVE_CFLAGS"
6590   fi
6591   ;;
6592 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6593   if test -n "$ac_tool_prefix"; then
6594   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   if test -n "$DLLTOOL"; then
6602   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609   for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 DLLTOOL=$ac_cv_prog_DLLTOOL
6622 if test -n "$DLLTOOL"; then
6623   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6624 echo "${ECHO_T}$DLLTOOL" >&6; }
6625 else
6626   { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_prog_DLLTOOL"; then
6633   ac_ct_DLLTOOL=$DLLTOOL
6634   # Extract the first word of "dlltool", so it can be a program name with args.
6635 set dummy dlltool; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   if test -n "$ac_ct_DLLTOOL"; then
6642   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649   for ac_exec_ext in '' $ac_executable_extensions; do
6650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6662 if test -n "$ac_ct_DLLTOOL"; then
6663   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6664 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6665 else
6666   { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6668 fi
6669
6670   if test "x$ac_ct_DLLTOOL" = x; then
6671     DLLTOOL="false"
6672   else
6673     case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet.  If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&5
6678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet.  If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683     DLLTOOL=$ac_ct_DLLTOOL
6684   fi
6685 else
6686   DLLTOOL="$ac_cv_prog_DLLTOOL"
6687 fi
6688
6689   if test -n "$ac_tool_prefix"; then
6690   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}as; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_AS+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   if test -n "$AS"; then
6698   ac_cv_prog_AS="$AS" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705   for ac_exec_ext in '' $ac_executable_extensions; do
6706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707     ac_cv_prog_AS="${ac_tool_prefix}as"
6708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 AS=$ac_cv_prog_AS
6718 if test -n "$AS"; then
6719   { echo "$as_me:$LINENO: result: $AS" >&5
6720 echo "${ECHO_T}$AS" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727 fi
6728 if test -z "$ac_cv_prog_AS"; then
6729   ac_ct_AS=$AS
6730   # Extract the first word of "as", so it can be a program name with args.
6731 set dummy as; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   if test -n "$ac_ct_AS"; then
6738   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745   for ac_exec_ext in '' $ac_executable_extensions; do
6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747     ac_cv_prog_ac_ct_AS="as"
6748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6758 if test -n "$ac_ct_AS"; then
6759   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6760 echo "${ECHO_T}$ac_ct_AS" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766   if test "x$ac_ct_AS" = x; then
6767     AS="false"
6768   else
6769     case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6772 whose name does not start with the host triplet.  If you think this
6773 configuration is useful to you, please write to autoconf@gnu.org." >&5
6774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet.  If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779     AS=$ac_ct_AS
6780   fi
6781 else
6782   AS="$ac_cv_prog_AS"
6783 fi
6784
6785   if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test -n "$OBJDUMP"; then
6794   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 OBJDUMP=$ac_cv_prog_OBJDUMP
6814 if test -n "$OBJDUMP"; then
6815   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6816 echo "${ECHO_T}$OBJDUMP" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_OBJDUMP"; then
6825   ac_ct_OBJDUMP=$OBJDUMP
6826   # Extract the first word of "objdump", so it can be a program name with args.
6827 set dummy objdump; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   if test -n "$ac_ct_OBJDUMP"; then
6834   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6854 if test -n "$ac_ct_OBJDUMP"; then
6855   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6856 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_OBJDUMP" = x; then
6863     OBJDUMP="false"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet.  If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875     OBJDUMP=$ac_ct_OBJDUMP
6876   fi
6877 else
6878   OBJDUMP="$ac_cv_prog_OBJDUMP"
6879 fi
6880
6881   ;;
6882
6883 esac
6884
6885 need_locks="$enable_libtool_lock"
6886
6887
6888 ac_ext=c
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6895 # On Suns, sometimes $CPP names a directory.
6896 if test -n "$CPP" && test -d "$CPP"; then
6897   CPP=
6898 fi
6899 if test -z "$CPP"; then
6900   if test "${ac_cv_prog_CPP+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903       # Double quotes because CPP needs to be expanded
6904     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6905     do
6906       ac_preproc_ok=false
6907 for ac_c_preproc_warn_flag in '' yes
6908 do
6909   # Use a header file that comes with gcc, so configuring glibc
6910   # with a fresh cross-compiler works.
6911   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6912   # <limits.h> exists even on freestanding compilers.
6913   # On the NeXT, cc -E runs the code through the compiler's parser,
6914   # not just through cpp. "Syntax error" is here to catch this case.
6915   cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 #ifdef __STDC__
6922 # include <limits.h>
6923 #else
6924 # include <assert.h>
6925 #endif
6926                      Syntax error
6927 _ACEOF
6928 if { (ac_try="$ac_cpp conftest.$ac_ext"
6929 case "(($ac_try" in
6930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931   *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } >/dev/null && {
6941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942          test ! -s conftest.err
6943        }; then
6944   :
6945 else
6946   echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949   # Broken: fails on valid input.
6950 continue
6951 fi
6952
6953 rm -f conftest.err conftest.$ac_ext
6954
6955   # OK, works on sane cases.  Now check whether nonexistent headers
6956   # can be detected and how.
6957   cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963 #include <ac_nonexistent.h>
6964 _ACEOF
6965 if { (ac_try="$ac_cpp conftest.$ac_ext"
6966 case "(($ac_try" in
6967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968   *) ac_try_echo=$ac_try;;
6969 esac
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } >/dev/null && {
6978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6979          test ! -s conftest.err
6980        }; then
6981   # Broken: success on invalid input.
6982 continue
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987   # Passes both tests.
6988 ac_preproc_ok=:
6989 break
6990 fi
6991
6992 rm -f conftest.err conftest.$ac_ext
6993
6994 done
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
6998   break
6999 fi
7000
7001     done
7002     ac_cv_prog_CPP=$CPP
7003
7004 fi
7005   CPP=$ac_cv_prog_CPP
7006 else
7007   ac_cv_prog_CPP=$CPP
7008 fi
7009 { echo "$as_me:$LINENO: result: $CPP" >&5
7010 echo "${ECHO_T}$CPP" >&6; }
7011 ac_preproc_ok=false
7012 for ac_c_preproc_warn_flag in '' yes
7013 do
7014   # Use a header file that comes with gcc, so configuring glibc
7015   # with a fresh cross-compiler works.
7016   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017   # <limits.h> exists even on freestanding compilers.
7018   # On the NeXT, cc -E runs the code through the compiler's parser,
7019   # not just through cpp. "Syntax error" is here to catch this case.
7020   cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026 #ifdef __STDC__
7027 # include <limits.h>
7028 #else
7029 # include <assert.h>
7030 #endif
7031                      Syntax error
7032 _ACEOF
7033 if { (ac_try="$ac_cpp conftest.$ac_ext"
7034 case "(($ac_try" in
7035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036   *) ac_try_echo=$ac_try;;
7037 esac
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040   ac_status=$?
7041   grep -v '^ *+' conftest.er1 >conftest.err
7042   rm -f conftest.er1
7043   cat conftest.err >&5
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); } >/dev/null && {
7046          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047          test ! -s conftest.err
7048        }; then
7049   :
7050 else
7051   echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7053
7054   # Broken: fails on valid input.
7055 continue
7056 fi
7057
7058 rm -f conftest.err conftest.$ac_ext
7059
7060   # OK, works on sane cases.  Now check whether nonexistent headers
7061   # can be detected and how.
7062   cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068 #include <ac_nonexistent.h>
7069 _ACEOF
7070 if { (ac_try="$ac_cpp conftest.$ac_ext"
7071 case "(($ac_try" in
7072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073   *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7077   ac_status=$?
7078   grep -v '^ *+' conftest.er1 >conftest.err
7079   rm -f conftest.er1
7080   cat conftest.err >&5
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); } >/dev/null && {
7083          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7084          test ! -s conftest.err
7085        }; then
7086   # Broken: success on invalid input.
7087 continue
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092   # Passes both tests.
7093 ac_preproc_ok=:
7094 break
7095 fi
7096
7097 rm -f conftest.err conftest.$ac_ext
7098
7099 done
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then
7103   :
7104 else
7105   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7108 See \`config.log' for more details." >&2;}
7109    { (exit 1); exit 1; }; }
7110 fi
7111
7112 ac_ext=c
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117
7118
7119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7121 if test "${ac_cv_header_stdc+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 #include <stdlib.h>
7131 #include <stdarg.h>
7132 #include <string.h>
7133 #include <float.h>
7134
7135 int
7136 main ()
7137 {
7138
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147   *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150   (eval "$ac_compile") 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } && {
7157          test -z "$ac_c_werror_flag" ||
7158          test ! -s conftest.err
7159        } && test -s conftest.$ac_objext; then
7160   ac_cv_header_stdc=yes
7161 else
7162   echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165         ac_cv_header_stdc=no
7166 fi
7167
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169
7170 if test $ac_cv_header_stdc = yes; then
7171   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7172   cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178 #include <string.h>
7179
7180 _ACEOF
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182   $EGREP "memchr" >/dev/null 2>&1; then
7183   :
7184 else
7185   ac_cv_header_stdc=no
7186 fi
7187 rm -f conftest*
7188
7189 fi
7190
7191 if test $ac_cv_header_stdc = yes; then
7192   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 #include <stdlib.h>
7200
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203   $EGREP "free" >/dev/null 2>&1; then
7204   :
7205 else
7206   ac_cv_header_stdc=no
7207 fi
7208 rm -f conftest*
7209
7210 fi
7211
7212 if test $ac_cv_header_stdc = yes; then
7213   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7214   if test "$cross_compiling" = yes; then
7215   :
7216 else
7217   cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h.  */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h.  */
7223 #include <ctype.h>
7224 #include <stdlib.h>
7225 #if ((' ' & 0x0FF) == 0x020)
7226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7228 #else
7229 # define ISLOWER(c) \
7230                    (('a' <= (c) && (c) <= 'i') \
7231                      || ('j' <= (c) && (c) <= 'r') \
7232                      || ('s' <= (c) && (c) <= 'z'))
7233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234 #endif
7235
7236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7237 int
7238 main ()
7239 {
7240   int i;
7241   for (i = 0; i < 256; i++)
7242     if (XOR (islower (i), ISLOWER (i))
7243         || toupper (i) != TOUPPER (i))
7244       return 2;
7245   return 0;
7246 }
7247 _ACEOF
7248 rm -f conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7250 case "(($ac_try" in
7251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252   *) ac_try_echo=$ac_try;;
7253 esac
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255   (eval "$ac_link") 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7259   { (case "(($ac_try" in
7260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261   *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264   (eval "$ac_try") 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; }; then
7268   :
7269 else
7270   echo "$as_me: program exited with status $ac_status" >&5
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 ( exit $ac_status )
7275 ac_cv_header_stdc=no
7276 fi
7277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7278 fi
7279
7280
7281 fi
7282 fi
7283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7285 if test $ac_cv_header_stdc = yes; then
7286
7287 cat >>confdefs.h <<\_ACEOF
7288 #define STDC_HEADERS 1
7289 _ACEOF
7290
7291 fi
7292
7293 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304                   inttypes.h stdint.h unistd.h
7305 do
7306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318 $ac_includes_default
7319
7320 #include <$ac_header>
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7324 case "(($ac_try" in
7325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326   *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329   (eval "$ac_compile") 2>conftest.er1
7330   ac_status=$?
7331   grep -v '^ *+' conftest.er1 >conftest.err
7332   rm -f conftest.er1
7333   cat conftest.err >&5
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); } && {
7336          test -z "$ac_c_werror_flag" ||
7337          test ! -s conftest.err
7338        } && test -s conftest.$ac_objext; then
7339   eval "$as_ac_Header=yes"
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344         eval "$as_ac_Header=no"
7345 fi
7346
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 fi
7349 ac_res=`eval echo '${'$as_ac_Header'}'`
7350                { echo "$as_me:$LINENO: result: $ac_res" >&5
7351 echo "${ECHO_T}$ac_res" >&6; }
7352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7353   cat >>confdefs.h <<_ACEOF
7354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7355 _ACEOF
7356
7357 fi
7358
7359 done
7360
7361
7362
7363 for ac_header in dlfcn.h
7364 do
7365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7367   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 fi
7372 ac_res=`eval echo '${'$as_ac_Header'}'`
7373                { echo "$as_me:$LINENO: result: $ac_res" >&5
7374 echo "${ECHO_T}$ac_res" >&6; }
7375 else
7376   # Is the header compilable?
7377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7379 cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385 $ac_includes_default
7386 #include <$ac_header>
7387 _ACEOF
7388 rm -f conftest.$ac_objext
7389 if { (ac_try="$ac_compile"
7390 case "(($ac_try" in
7391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392   *) ac_try_echo=$ac_try;;
7393 esac
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395   (eval "$ac_compile") 2>conftest.er1
7396   ac_status=$?
7397   grep -v '^ *+' conftest.er1 >conftest.err
7398   rm -f conftest.er1
7399   cat conftest.err >&5
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } && {
7402          test -z "$ac_c_werror_flag" ||
7403          test ! -s conftest.err
7404        } && test -s conftest.$ac_objext; then
7405   ac_header_compiler=yes
7406 else
7407   echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7409
7410         ac_header_compiler=no
7411 fi
7412
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7415 echo "${ECHO_T}$ac_header_compiler" >&6; }
7416
7417 # Is the header present?
7418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426 #include <$ac_header>
7427 _ACEOF
7428 if { (ac_try="$ac_cpp conftest.$ac_ext"
7429 case "(($ac_try" in
7430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431   *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7435   ac_status=$?
7436   grep -v '^ *+' conftest.er1 >conftest.err
7437   rm -f conftest.er1
7438   cat conftest.err >&5
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } >/dev/null && {
7441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7442          test ! -s conftest.err
7443        }; then
7444   ac_header_preproc=yes
7445 else
7446   echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449   ac_header_preproc=no
7450 fi
7451
7452 rm -f conftest.err conftest.$ac_ext
7453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7454 echo "${ECHO_T}$ac_header_preproc" >&6; }
7455
7456 # So?  What about this header?
7457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7458   yes:no: )
7459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7463     ac_header_preproc=yes
7464     ;;
7465   no:yes:* )
7466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7478     ( cat <<\_ASBOX
7479 ## --------------------------------------------- ##
7480 ## Report this to <http://www.openldap.org/its/> ##
7481 ## --------------------------------------------- ##
7482 _ASBOX
7483      ) | sed "s/^/$as_me: WARNING:     /" >&2
7484     ;;
7485 esac
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   eval "$as_ac_Header=\$ac_header_preproc"
7492 fi
7493 ac_res=`eval echo '${'$as_ac_Header'}'`
7494                { echo "$as_me:$LINENO: result: $ac_res" >&5
7495 echo "${ECHO_T}$ac_res" >&6; }
7496
7497 fi
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499   cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501 _ACEOF
7502
7503 fi
7504
7505 done
7506
7507
7508 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7509
7510 # find the maximum length of command line arguments
7511 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7512 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7513 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516     i=0
7517   teststring="ABCD"
7518
7519   case $build_os in
7520   msdosdjgpp*)
7521     # On DJGPP, this test can blow up pretty badly due to problems in libc
7522     # (any single argument exceeding 2000 bytes causes a buffer overrun
7523     # during glob expansion).  Even if it were fixed, the result of this
7524     # check would be larger than it should be.
7525     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7526     ;;
7527
7528   gnu*)
7529     # Under GNU Hurd, this test is not required because there is
7530     # no limit to the length of command line arguments.
7531     # Libtool will interpret -1 as no limit whatsoever
7532     lt_cv_sys_max_cmd_len=-1;
7533     ;;
7534
7535   cygwin* | mingw*)
7536     # On Win9x/ME, this test blows up -- it succeeds, but takes
7537     # about 5 minutes as the teststring grows exponentially.
7538     # Worse, since 9x/ME are not pre-emptively multitasking,
7539     # you end up with a "frozen" computer, even though with patience
7540     # the test eventually succeeds (with a max line length of 256k).
7541     # Instead, let's just punt: use the minimum linelength reported by
7542     # all of the supported platforms: 8192 (on NT/2K/XP).
7543     lt_cv_sys_max_cmd_len=8192;
7544     ;;
7545
7546   amigaos*)
7547     # On AmigaOS with pdksh, this test takes hours, literally.
7548     # So we just punt and use a minimum line length of 8192.
7549     lt_cv_sys_max_cmd_len=8192;
7550     ;;
7551
7552   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7553     # This has been around since 386BSD, at least.  Likely further.
7554     if test -x /sbin/sysctl; then
7555       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7556     elif test -x /usr/sbin/sysctl; then
7557       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7558     else
7559       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7560     fi
7561     # And add a safety zone
7562     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7564     ;;
7565   osf*)
7566     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7567     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7568     # nice to cause kernel panics so lets avoid the loop below.
7569     # First set a reasonable default.
7570     lt_cv_sys_max_cmd_len=16384
7571     #
7572     if test -x /sbin/sysconfig; then
7573       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7574         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7575       esac
7576     fi
7577     ;;
7578   *)
7579     # If test is not a shell built-in, we'll probably end up computing a
7580     # maximum length that is only half of the actual maximum length, but
7581     # we can't tell.
7582     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7583     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7584                = "XX$teststring") >/dev/null 2>&1 &&
7585             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7586             lt_cv_sys_max_cmd_len=$new_result &&
7587             test $i != 17 # 1/2 MB should be enough
7588     do
7589       i=`expr $i + 1`
7590       teststring=$teststring$teststring
7591     done
7592     teststring=
7593     # Add a significant safety factor because C++ compilers can tack on massive
7594     # amounts of additional arguments before passing them to the linker.
7595     # It appears as though 1/2 is a usable value.
7596     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7597     ;;
7598   esac
7599
7600 fi
7601
7602 if test -n $lt_cv_sys_max_cmd_len ; then
7603   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7604 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7605 else
7606   { echo "$as_me:$LINENO: result: none" >&5
7607 echo "${ECHO_T}none" >&6; }
7608 fi
7609
7610
7611
7612
7613 # Check for command to grab the raw symbol name followed by C symbol from nm.
7614 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7615 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7616 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619
7620 # These are sane defaults that work on at least a few old systems.
7621 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7622
7623 # Character class describing NM global symbol codes.
7624 symcode='[BCDEGRST]'
7625
7626 # Regexp to match symbols that can be accessed directly from C.
7627 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7628
7629 # Transform an extracted symbol line into a proper C declaration
7630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7631
7632 # Transform an extracted symbol line into symbol name and symbol address
7633 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7634
7635 # Define system-specific variables.
7636 case $host_os in
7637 aix*)
7638   symcode='[BCDT]'
7639   ;;
7640 cygwin* | mingw* | pw32*)
7641   symcode='[ABCDGISTW]'
7642   ;;
7643 hpux*) # Its linker distinguishes data from code symbols
7644   if test "$host_cpu" = ia64; then
7645     symcode='[ABCDEGRST]'
7646   fi
7647   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7648   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7649   ;;
7650 linux*)
7651   if test "$host_cpu" = ia64; then
7652     symcode='[ABCDGIRSTW]'
7653     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7654     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7655   fi
7656   ;;
7657 irix* | nonstopux*)
7658   symcode='[BCDEGRST]'
7659   ;;
7660 osf*)
7661   symcode='[BCDEGQRST]'
7662   ;;
7663 solaris* | sysv5*)
7664   symcode='[BDRT]'
7665   ;;
7666 sysv4)
7667   symcode='[DFNSTU]'
7668   ;;
7669 esac
7670
7671 # Handle CRLF in mingw tool chain
7672 opt_cr=
7673 case $build_os in
7674 mingw*)
7675   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7676   ;;
7677 esac
7678
7679 # If we're using GNU nm, then use its standard symbol codes.
7680 case `$NM -V 2>&1` in
7681 *GNU* | *'with BFD'*)
7682   symcode='[ABCDGIRSTW]' ;;
7683 esac
7684
7685 # Try without a prefix undercore, then with it.
7686 for ac_symprfx in "" "_"; do
7687
7688   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7689   symxfrm="\\1 $ac_symprfx\\2 \\2"
7690
7691   # Write the raw and C identifiers.
7692   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7693
7694   # Check to see that the pipe works correctly.
7695   pipe_works=no
7696
7697   rm -f conftest*
7698   cat > conftest.$ac_ext <<EOF
7699 #ifdef __cplusplus
7700 extern "C" {
7701 #endif
7702 char nm_test_var;
7703 void nm_test_func(){}
7704 #ifdef __cplusplus
7705 }
7706 #endif
7707 int main(){nm_test_var='a';nm_test_func();return(0);}
7708 EOF
7709
7710   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711   (eval $ac_compile) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; then
7715     # Now try to grab the symbols.
7716     nlist=conftest.nm
7717     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7718   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } && test -s "$nlist"; then
7722       # Try sorting and uniquifying the output.
7723       if sort "$nlist" | uniq > "$nlist"T; then
7724         mv -f "$nlist"T "$nlist"
7725       else
7726         rm -f "$nlist"T
7727       fi
7728
7729       # Make sure that we snagged all the symbols we need.
7730       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7731         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7732           cat <<EOF > conftest.$ac_ext
7733 #ifdef __cplusplus
7734 extern "C" {
7735 #endif
7736
7737 EOF
7738           # Now generate the symbol file.
7739           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7740
7741           cat <<EOF >> conftest.$ac_ext
7742 #if defined (__STDC__) && __STDC__
7743 # define lt_ptr_t void *
7744 #else
7745 # define lt_ptr_t char *
7746 # define const
7747 #endif
7748
7749 /* The mapping between symbol names and symbols. */
7750 const struct {
7751   const char *name;
7752   lt_ptr_t address;
7753 }
7754 lt_preloaded_symbols[] =
7755 {
7756 EOF
7757           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7758           cat <<\EOF >> conftest.$ac_ext
7759   {0, (lt_ptr_t) 0}
7760 };
7761
7762 #ifdef __cplusplus
7763 }
7764 #endif
7765 EOF
7766           # Now try linking the two files.
7767           mv conftest.$ac_objext conftstm.$ac_objext
7768           lt_save_LIBS="$LIBS"
7769           lt_save_CFLAGS="$CFLAGS"
7770           LIBS="conftstm.$ac_objext"
7771           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7772           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773   (eval $ac_link) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7777             pipe_works=yes
7778           fi
7779           LIBS="$lt_save_LIBS"
7780           CFLAGS="$lt_save_CFLAGS"
7781         else
7782           echo "cannot find nm_test_func in $nlist" >&5
7783         fi
7784       else
7785         echo "cannot find nm_test_var in $nlist" >&5
7786       fi
7787     else
7788       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7789     fi
7790   else
7791     echo "$progname: failed program was:" >&5
7792     cat conftest.$ac_ext >&5
7793   fi
7794   rm -f conftest* conftst*
7795
7796   # Do not use the global_symbol_pipe unless it works.
7797   if test "$pipe_works" = yes; then
7798     break
7799   else
7800     lt_cv_sys_global_symbol_pipe=
7801   fi
7802 done
7803
7804 fi
7805
7806 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7807   lt_cv_sys_global_symbol_to_cdecl=
7808 fi
7809 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7810   { echo "$as_me:$LINENO: result: failed" >&5
7811 echo "${ECHO_T}failed" >&6; }
7812 else
7813   { echo "$as_me:$LINENO: result: ok" >&5
7814 echo "${ECHO_T}ok" >&6; }
7815 fi
7816
7817 { echo "$as_me:$LINENO: checking for objdir" >&5
7818 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7819 if test "${lt_cv_objdir+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   rm -f .libs 2>/dev/null
7823 mkdir .libs 2>/dev/null
7824 if test -d .libs; then
7825   lt_cv_objdir=.libs
7826 else
7827   # MS-DOS does not allow filenames that begin with a dot.
7828   lt_cv_objdir=_libs
7829 fi
7830 rmdir .libs 2>/dev/null
7831 fi
7832 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7833 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7834 objdir=$lt_cv_objdir
7835
7836
7837
7838
7839
7840 case $host_os in
7841 aix3*)
7842   # AIX sometimes has problems with the GCC collect2 program.  For some
7843   # reason, if we set the COLLECT_NAMES environment variable, the problems
7844   # vanish in a puff of smoke.
7845   if test "X${COLLECT_NAMES+set}" != Xset; then
7846     COLLECT_NAMES=
7847     export COLLECT_NAMES
7848   fi
7849   ;;
7850 esac
7851
7852 # Sed substitution that helps us do robust quoting.  It backslashifies
7853 # metacharacters that are still active within double-quoted strings.
7854 Xsed='sed -e 1s/^X//'
7855 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7856
7857 # Same as above, but do not quote variable references.
7858 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7859
7860 # Sed substitution to delay expansion of an escaped shell variable in a
7861 # double_quote_subst'ed string.
7862 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7863
7864 # Sed substitution to avoid accidental globbing in evaled expressions
7865 no_glob_subst='s/\*/\\\*/g'
7866
7867 # Constants:
7868 rm="rm -f"
7869
7870 # Global variables:
7871 default_ofile=libtool
7872 can_build_shared=yes
7873
7874 # All known linkers require a `.a' archive for static linking (except MSVC,
7875 # which needs '.lib').
7876 libext=a
7877 ltmain="$ac_aux_dir/ltmain.sh"
7878 ofile="$default_ofile"
7879 with_gnu_ld="$lt_cv_prog_gnu_ld"
7880
7881 if test -n "$ac_tool_prefix"; then
7882   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7883 set dummy ${ac_tool_prefix}ar; ac_word=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_prog_AR+set}" = set; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889   if test -n "$AR"; then
7890   ac_cv_prog_AR="$AR" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897   for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_prog_AR="${ac_tool_prefix}ar"
7900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 AR=$ac_cv_prog_AR
7910 if test -n "$AR"; then
7911   { echo "$as_me:$LINENO: result: $AR" >&5
7912 echo "${ECHO_T}$AR" >&6; }
7913 else
7914   { echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6; }
7916 fi
7917
7918
7919 fi
7920 if test -z "$ac_cv_prog_AR"; then
7921   ac_ct_AR=$AR
7922   # Extract the first word of "ar", so it can be a program name with args.
7923 set dummy ar; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   if test -n "$ac_ct_AR"; then
7930   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935   IFS=$as_save_IFS
7936   test -z "$as_dir" && as_dir=.
7937   for ac_exec_ext in '' $ac_executable_extensions; do
7938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939     ac_cv_prog_ac_ct_AR="ar"
7940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941     break 2
7942   fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7950 if test -n "$ac_ct_AR"; then
7951   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7952 echo "${ECHO_T}$ac_ct_AR" >&6; }
7953 else
7954   { echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6; }
7956 fi
7957
7958   if test "x$ac_ct_AR" = x; then
7959     AR="false"
7960   else
7961     case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7964 whose name does not start with the host triplet.  If you think this
7965 configuration is useful to you, please write to autoconf@gnu.org." >&5
7966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7967 whose name does not start with the host triplet.  If you think this
7968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7969 ac_tool_warned=yes ;;
7970 esac
7971     AR=$ac_ct_AR
7972   fi
7973 else
7974   AR="$ac_cv_prog_AR"
7975 fi
7976
7977 if test -n "$ac_tool_prefix"; then
7978   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7979 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_prog_RANLIB+set}" = set; then
7983   echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985   if test -n "$RANLIB"; then
7986   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993   for ac_exec_ext in '' $ac_executable_extensions; do
7994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 RANLIB=$ac_cv_prog_RANLIB
8006 if test -n "$RANLIB"; then
8007   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8008 echo "${ECHO_T}$RANLIB" >&6; }
8009 else
8010   { echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6; }
8012 fi
8013
8014
8015 fi
8016 if test -z "$ac_cv_prog_RANLIB"; then
8017   ac_ct_RANLIB=$RANLIB
8018   # Extract the first word of "ranlib", so it can be a program name with args.
8019 set dummy ranlib; ac_word=$2
8020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8023   echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025   if test -n "$ac_ct_RANLIB"; then
8026   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033   for ac_exec_ext in '' $ac_executable_extensions; do
8034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035     ac_cv_prog_ac_ct_RANLIB="ranlib"
8036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037     break 2
8038   fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8046 if test -n "$ac_ct_RANLIB"; then
8047   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8048 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8049 else
8050   { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8052 fi
8053
8054   if test "x$ac_ct_RANLIB" = x; then
8055     RANLIB=":"
8056   else
8057     case $cross_compiling:$ac_tool_warned in
8058 yes:)
8059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8060 whose name does not start with the host triplet.  If you think this
8061 configuration is useful to you, please write to autoconf@gnu.org." >&5
8062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8063 whose name does not start with the host triplet.  If you think this
8064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8065 ac_tool_warned=yes ;;
8066 esac
8067     RANLIB=$ac_ct_RANLIB
8068   fi
8069 else
8070   RANLIB="$ac_cv_prog_RANLIB"
8071 fi
8072
8073 if test -n "$ac_tool_prefix"; then
8074   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}strip; ac_word=$2
8076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8078 if test "${ac_cv_prog_STRIP+set}" = set; then
8079   echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081   if test -n "$STRIP"; then
8082   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087   IFS=$as_save_IFS
8088   test -z "$as_dir" && as_dir=.
8089   for ac_exec_ext in '' $ac_executable_extensions; do
8090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093     break 2
8094   fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 STRIP=$ac_cv_prog_STRIP
8102 if test -n "$STRIP"; then
8103   { echo "$as_me:$LINENO: result: $STRIP" >&5
8104 echo "${ECHO_T}$STRIP" >&6; }
8105 else
8106   { echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6; }
8108 fi
8109
8110
8111 fi
8112 if test -z "$ac_cv_prog_STRIP"; then
8113   ac_ct_STRIP=$STRIP
8114   # Extract the first word of "strip", so it can be a program name with args.
8115 set dummy strip; ac_word=$2
8116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8118 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   if test -n "$ac_ct_STRIP"; then
8122   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127   IFS=$as_save_IFS
8128   test -z "$as_dir" && as_dir=.
8129   for ac_exec_ext in '' $ac_executable_extensions; do
8130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131     ac_cv_prog_ac_ct_STRIP="strip"
8132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133     break 2
8134   fi
8135 done
8136 done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8142 if test -n "$ac_ct_STRIP"; then
8143   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8144 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8145 else
8146   { echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6; }
8148 fi
8149
8150   if test "x$ac_ct_STRIP" = x; then
8151     STRIP=":"
8152   else
8153     case $cross_compiling:$ac_tool_warned in
8154 yes:)
8155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8156 whose name does not start with the host triplet.  If you think this
8157 configuration is useful to you, please write to autoconf@gnu.org." >&5
8158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8159 whose name does not start with the host triplet.  If you think this
8160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8161 ac_tool_warned=yes ;;
8162 esac
8163     STRIP=$ac_ct_STRIP
8164   fi
8165 else
8166   STRIP="$ac_cv_prog_STRIP"
8167 fi
8168
8169
8170 old_CC="$CC"
8171 old_CFLAGS="$CFLAGS"
8172
8173 # Set sane defaults for various variables
8174 test -z "$AR" && AR=ar
8175 test -z "$AR_FLAGS" && AR_FLAGS=cru
8176 test -z "$AS" && AS=as
8177 test -z "$CC" && CC=cc
8178 test -z "$LTCC" && LTCC=$CC
8179 test -z "$DLLTOOL" && DLLTOOL=dlltool
8180 test -z "$LD" && LD=ld
8181 test -z "$LN_S" && LN_S="ln -s"
8182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8183 test -z "$NM" && NM=nm
8184 test -z "$SED" && SED=sed
8185 test -z "$OBJDUMP" && OBJDUMP=objdump
8186 test -z "$RANLIB" && RANLIB=:
8187 test -z "$STRIP" && STRIP=:
8188 test -z "$ac_objext" && ac_objext=o
8189
8190 # Determine commands to create old-style static archives.
8191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8192 old_postinstall_cmds='chmod 644 $oldlib'
8193 old_postuninstall_cmds=
8194
8195 if test -n "$RANLIB"; then
8196   case $host_os in
8197   openbsd*)
8198     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8199     ;;
8200   *)
8201     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8202     ;;
8203   esac
8204   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8205 fi
8206
8207 for cc_temp in $compiler""; do
8208   case $cc_temp in
8209     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8210     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8211     \-*) ;;
8212     *) break;;
8213   esac
8214 done
8215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8216
8217
8218 # Only perform the check for file, if the check method requires it
8219 case $deplibs_check_method in
8220 file_magic*)
8221   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8222     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   case $MAGIC_CMD in
8228 [\\/*] |  ?:[\\/]*)
8229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8230   ;;
8231 *)
8232   lt_save_MAGIC_CMD="$MAGIC_CMD"
8233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235   for ac_dir in $ac_dummy; do
8236     IFS="$lt_save_ifs"
8237     test -z "$ac_dir" && ac_dir=.
8238     if test -f $ac_dir/${ac_tool_prefix}file; then
8239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8240       if test -n "$file_magic_test_file"; then
8241         case $deplibs_check_method in
8242         "file_magic "*)
8243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246             $EGREP "$file_magic_regex" > /dev/null; then
8247             :
8248           else
8249             cat <<EOF 1>&2
8250
8251 *** Warning: the command libtool uses to detect shared libraries,
8252 *** $file_magic_cmd, produces output that libtool cannot recognize.
8253 *** The result is that libtool may fail to recognize shared libraries
8254 *** as such.  This will affect the creation of libtool libraries that
8255 *** depend on shared libraries, but programs linked with such libtool
8256 *** libraries will work regardless of this problem.  Nevertheless, you
8257 *** may want to report the problem to your system manager and/or to
8258 *** bug-libtool@gnu.org
8259
8260 EOF
8261           fi ;;
8262         esac
8263       fi
8264       break
8265     fi
8266   done
8267   IFS="$lt_save_ifs"
8268   MAGIC_CMD="$lt_save_MAGIC_CMD"
8269   ;;
8270 esac
8271 fi
8272
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if test -n "$MAGIC_CMD"; then
8275   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8277 else
8278   { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8280 fi
8281
8282 if test -z "$lt_cv_path_MAGIC_CMD"; then
8283   if test -n "$ac_tool_prefix"; then
8284     { echo "$as_me:$LINENO: checking for file" >&5
8285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   case $MAGIC_CMD in
8290 [\\/*] |  ?:[\\/]*)
8291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8292   ;;
8293 *)
8294   lt_save_MAGIC_CMD="$MAGIC_CMD"
8295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8296   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8297   for ac_dir in $ac_dummy; do
8298     IFS="$lt_save_ifs"
8299     test -z "$ac_dir" && ac_dir=.
8300     if test -f $ac_dir/file; then
8301       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8302       if test -n "$file_magic_test_file"; then
8303         case $deplibs_check_method in
8304         "file_magic "*)
8305           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8306           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8307           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8308             $EGREP "$file_magic_regex" > /dev/null; then
8309             :
8310           else
8311             cat <<EOF 1>&2
8312
8313 *** Warning: the command libtool uses to detect shared libraries,
8314 *** $file_magic_cmd, produces output that libtool cannot recognize.
8315 *** The result is that libtool may fail to recognize shared libraries
8316 *** as such.  This will affect the creation of libtool libraries that
8317 *** depend on shared libraries, but programs linked with such libtool
8318 *** libraries will work regardless of this problem.  Nevertheless, you
8319 *** may want to report the problem to your system manager and/or to
8320 *** bug-libtool@gnu.org
8321
8322 EOF
8323           fi ;;
8324         esac
8325       fi
8326       break
8327     fi
8328   done
8329   IFS="$lt_save_ifs"
8330   MAGIC_CMD="$lt_save_MAGIC_CMD"
8331   ;;
8332 esac
8333 fi
8334
8335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8336 if test -n "$MAGIC_CMD"; then
8337   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8339 else
8340   { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8342 fi
8343
8344   else
8345     MAGIC_CMD=:
8346   fi
8347 fi
8348
8349   fi
8350   ;;
8351 esac
8352
8353 enable_dlopen=yes
8354 enable_win32_dll=yes
8355
8356 # Check whether --enable-libtool-lock was given.
8357 if test "${enable_libtool_lock+set}" = set; then
8358   enableval=$enable_libtool_lock;
8359 fi
8360
8361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8362
8363
8364 # Check whether --with-pic was given.
8365 if test "${with_pic+set}" = set; then
8366   withval=$with_pic; pic_mode="$withval"
8367 else
8368   pic_mode=default
8369 fi
8370
8371 test -z "$pic_mode" && pic_mode=default
8372
8373 # Use C for the default configuration in the libtool script
8374 tagname=
8375 lt_save_CC="$CC"
8376 ac_ext=c
8377 ac_cpp='$CPP $CPPFLAGS'
8378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8381
8382
8383 # Source file extension for C test sources.
8384 ac_ext=c
8385
8386 # Object file extension for compiled C test sources.
8387 objext=o
8388 objext=$objext
8389
8390 # Code to be used in simple compile tests
8391 lt_simple_compile_test_code="int some_variable = 0;\n"
8392
8393 # Code to be used in simple link tests
8394 lt_simple_link_test_code='int main(){return(0);}\n'
8395
8396
8397 # If no C compiler was specified, use CC.
8398 LTCC=${LTCC-"$CC"}
8399
8400 # Allow CC to be a program name with arguments.
8401 compiler=$CC
8402
8403
8404 # save warnings/boilerplate of simple test code
8405 ac_outfile=conftest.$ac_objext
8406 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8408 _lt_compiler_boilerplate=`cat conftest.err`
8409 $rm conftest*
8410
8411 ac_outfile=conftest.$ac_objext
8412 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8414 _lt_linker_boilerplate=`cat conftest.err`
8415 $rm conftest*
8416
8417
8418 #
8419 # Check for any special shared library compilation flags.
8420 #
8421 lt_prog_cc_shlib=
8422 if test "$GCC" = no; then
8423   case $host_os in
8424   sco3.2v5*)
8425     lt_prog_cc_shlib='-belf'
8426     ;;
8427   esac
8428 fi
8429 if test -n "$lt_prog_cc_shlib"; then
8430   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8431 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8432   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8433   else
8434     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8435 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8436     lt_cv_prog_cc_can_build_shared=no
8437   fi
8438 fi
8439
8440
8441 #
8442 # Check to make sure the static flag actually works.
8443 #
8444 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8445 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8446 if test "${lt_prog_compiler_static_works+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   lt_prog_compiler_static_works=no
8450    save_LDFLAGS="$LDFLAGS"
8451    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8452    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8453    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454      # The linker can only warn and ignore the option if not recognized
8455      # So say no if there are warnings
8456      if test -s conftest.err; then
8457        # Append any errors to the config.log.
8458        cat conftest.err 1>&5
8459        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8460        $SED '/^$/d' conftest.err >conftest.er2
8461        if diff conftest.exp conftest.er2 >/dev/null; then
8462          lt_prog_compiler_static_works=yes
8463        fi
8464      else
8465        lt_prog_compiler_static_works=yes
8466      fi
8467    fi
8468    $rm conftest*
8469    LDFLAGS="$save_LDFLAGS"
8470
8471 fi
8472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8473 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8474
8475 if test x"$lt_prog_compiler_static_works" = xyes; then
8476     :
8477 else
8478     lt_prog_compiler_static=
8479 fi
8480
8481
8482
8483
8484 lt_prog_compiler_no_builtin_flag=
8485
8486 if test "$GCC" = yes; then
8487   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8488
8489
8490 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8491 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8492 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   lt_cv_prog_compiler_rtti_exceptions=no
8496   ac_outfile=conftest.$ac_objext
8497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8498    lt_compiler_flag="-fno-rtti -fno-exceptions"
8499    # Insert the option either (1) after the last *FLAGS variable, or
8500    # (2) before a word containing "conftest.", or (3) at the end.
8501    # Note that $ac_compile itself does not contain backslashes and begins
8502    # with a dollar sign (not a hyphen), so the echo should work correctly.
8503    # The option is referenced via a variable to avoid confusing sed.
8504    lt_compile=`echo "$ac_compile" | $SED \
8505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507    -e 's:$: $lt_compiler_flag:'`
8508    (eval echo "\"\$as_me:8508: $lt_compile\"" >&5)
8509    (eval "$lt_compile" 2>conftest.err)
8510    ac_status=$?
8511    cat conftest.err >&5
8512    echo "$as_me:8512: \$? = $ac_status" >&5
8513    if (exit $ac_status) && test -s "$ac_outfile"; then
8514      # The compiler can only warn and ignore the option if not recognized
8515      # So say no if there are warnings other than the usual output.
8516      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8517      $SED '/^$/d' conftest.err >conftest.er2
8518      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8519        lt_cv_prog_compiler_rtti_exceptions=yes
8520      fi
8521    fi
8522    $rm conftest*
8523
8524 fi
8525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8526 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8527
8528 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8529     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8530 else
8531     :
8532 fi
8533
8534 fi
8535
8536 lt_prog_compiler_wl=
8537 lt_prog_compiler_pic=
8538 lt_prog_compiler_static=
8539
8540 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8541 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8542
8543   if test "$GCC" = yes; then
8544     lt_prog_compiler_wl='-Wl,'
8545     lt_prog_compiler_static='-static'
8546
8547     case $host_os in
8548       aix*)
8549       # All AIX code is PIC.
8550       if test "$host_cpu" = ia64; then
8551         # AIX 5 now supports IA64 processor
8552         lt_prog_compiler_static='-Bstatic'
8553       fi
8554       ;;
8555
8556     amigaos*)
8557       # FIXME: we need at least 68020 code to build shared libraries, but
8558       # adding the `-m68020' flag to GCC prevents building anything better,
8559       # like `-m68040'.
8560       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8561       ;;
8562
8563     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8564       # PIC is the default for these OSes.
8565       ;;
8566
8567     mingw* | pw32* | os2*)
8568       # This hack is so that the source file can tell whether it is being
8569       # built for inclusion in a dll (and should export symbols for example).
8570       lt_prog_compiler_pic='-DDLL_EXPORT'
8571       ;;
8572
8573     darwin* | rhapsody*)
8574       # PIC is the default on this platform
8575       # Common symbols not allowed in MH_DYLIB files
8576       lt_prog_compiler_pic='-fno-common'
8577       ;;
8578
8579     msdosdjgpp*)
8580       # Just because we use GCC doesn't mean we suddenly get shared libraries
8581       # on systems that don't support them.
8582       lt_prog_compiler_can_build_shared=no
8583       enable_shared=no
8584       ;;
8585
8586     sysv4*MP*)
8587       if test -d /usr/nec; then
8588         lt_prog_compiler_pic=-Kconform_pic
8589       fi
8590       ;;
8591
8592     hpux*)
8593       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8594       # not for PA HP-UX.
8595       case $host_cpu in
8596       hppa*64*|ia64*)
8597         # +Z the default
8598         ;;
8599       *)
8600         lt_prog_compiler_pic='-fPIC'
8601         ;;
8602       esac
8603       ;;
8604
8605     *)
8606       lt_prog_compiler_pic='-fPIC'
8607       ;;
8608     esac
8609   else
8610     # PORTME Check for flag to pass linker flags through the system compiler.
8611     case $host_os in
8612     aix*)
8613       lt_prog_compiler_wl='-Wl,'
8614       if test "$host_cpu" = ia64; then
8615         # AIX 5 now supports IA64 processor
8616         lt_prog_compiler_static='-Bstatic'
8617       else
8618         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8619       fi
8620       ;;
8621       darwin*)
8622         # PIC is the default on this platform
8623         # Common symbols not allowed in MH_DYLIB files
8624        case $cc_basename in
8625          xlc*)
8626          lt_prog_compiler_pic='-qnocommon'
8627          lt_prog_compiler_wl='-Wl,'
8628          ;;
8629        esac
8630        ;;
8631
8632     mingw* | pw32* | os2*)
8633       # This hack is so that the source file can tell whether it is being
8634       # built for inclusion in a dll (and should export symbols for example).
8635       lt_prog_compiler_pic='-DDLL_EXPORT'
8636       ;;
8637
8638     hpux9* | hpux10* | hpux11*)
8639       lt_prog_compiler_wl='-Wl,'
8640       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8641       # not for PA HP-UX.
8642       case $host_cpu in
8643       hppa*64*|ia64*)
8644         # +Z the default
8645         ;;
8646       *)
8647         lt_prog_compiler_pic='+Z'
8648         ;;
8649       esac
8650       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8651       lt_prog_compiler_static='${wl}-a ${wl}archive'
8652       ;;
8653
8654     irix5* | irix6* | nonstopux*)
8655       lt_prog_compiler_wl='-Wl,'
8656       # PIC (with -KPIC) is the default.
8657       lt_prog_compiler_static='-non_shared'
8658       ;;
8659
8660     newsos6)
8661       lt_prog_compiler_pic='-KPIC'
8662       lt_prog_compiler_static='-Bstatic'
8663       ;;
8664
8665     linux*)
8666       case $cc_basename in
8667       icc* | ecc*)
8668         lt_prog_compiler_wl='-Wl,'
8669         lt_prog_compiler_pic='-KPIC'
8670         lt_prog_compiler_static='-static'
8671         ;;
8672       pgcc* | pgf77* | pgf90* | pgf95*)
8673         # Portland Group compilers (*not* the Pentium gcc compiler,
8674         # which looks to be a dead project)
8675         lt_prog_compiler_wl='-Wl,'
8676         lt_prog_compiler_pic='-fpic'
8677         lt_prog_compiler_static='-Bstatic'
8678         ;;
8679       ccc*)
8680         lt_prog_compiler_wl='-Wl,'
8681         # All Alpha code is PIC.
8682         lt_prog_compiler_static='-non_shared'
8683         ;;
8684       esac
8685       ;;
8686
8687     osf3* | osf4* | osf5*)
8688       lt_prog_compiler_wl='-Wl,'
8689       # All OSF/1 code is PIC.
8690       lt_prog_compiler_static='-non_shared'
8691       ;;
8692
8693     sco3.2v5*)
8694       lt_prog_compiler_pic='-Kpic'
8695       lt_prog_compiler_static='-dn'
8696       ;;
8697
8698     solaris*)
8699       lt_prog_compiler_pic='-KPIC'
8700       lt_prog_compiler_static='-Bstatic'
8701       case $cc_basename in
8702       f77* | f90* | f95*)
8703         lt_prog_compiler_wl='-Qoption ld ';;
8704       *)
8705         lt_prog_compiler_wl='-Wl,';;
8706       esac
8707       ;;
8708
8709     sunos4*)
8710       lt_prog_compiler_wl='-Qoption ld '
8711       lt_prog_compiler_pic='-PIC'
8712       lt_prog_compiler_static='-Bstatic'
8713       ;;
8714
8715     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8716       lt_prog_compiler_wl='-Wl,'
8717       lt_prog_compiler_pic='-KPIC'
8718       lt_prog_compiler_static='-Bstatic'
8719       ;;
8720
8721     sysv4*MP*)
8722       if test -d /usr/nec ;then
8723         lt_prog_compiler_pic='-Kconform_pic'
8724         lt_prog_compiler_static='-Bstatic'
8725       fi
8726       ;;
8727
8728     unicos*)
8729       lt_prog_compiler_wl='-Wl,'
8730       lt_prog_compiler_can_build_shared=no
8731       ;;
8732
8733     uts4*)
8734       lt_prog_compiler_pic='-pic'
8735       lt_prog_compiler_static='-Bstatic'
8736       ;;
8737
8738     *)
8739       lt_prog_compiler_can_build_shared=no
8740       ;;
8741     esac
8742   fi
8743
8744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8745 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8746
8747 #
8748 # Check to make sure the PIC flag actually works.
8749 #
8750 if test -n "$lt_prog_compiler_pic"; then
8751
8752 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8753 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8754 if test "${lt_prog_compiler_pic_works+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   lt_prog_compiler_pic_works=no
8758   ac_outfile=conftest.$ac_objext
8759    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8760    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8761    # Insert the option either (1) after the last *FLAGS variable, or
8762    # (2) before a word containing "conftest.", or (3) at the end.
8763    # Note that $ac_compile itself does not contain backslashes and begins
8764    # with a dollar sign (not a hyphen), so the echo should work correctly.
8765    # The option is referenced via a variable to avoid confusing sed.
8766    lt_compile=`echo "$ac_compile" | $SED \
8767    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769    -e 's:$: $lt_compiler_flag:'`
8770    (eval echo "\"\$as_me:8770: $lt_compile\"" >&5)
8771    (eval "$lt_compile" 2>conftest.err)
8772    ac_status=$?
8773    cat conftest.err >&5
8774    echo "$as_me:8774: \$? = $ac_status" >&5
8775    if (exit $ac_status) && test -s "$ac_outfile"; then
8776      # The compiler can only warn and ignore the option if not recognized
8777      # So say no if there are warnings other than the usual output.
8778      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8779      $SED '/^$/d' conftest.err >conftest.er2
8780      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8781        lt_prog_compiler_pic_works=yes
8782      fi
8783    fi
8784    $rm conftest*
8785
8786 fi
8787 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8788 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8789
8790 if test x"$lt_prog_compiler_pic_works" = xyes; then
8791     case $lt_prog_compiler_pic in
8792      "" | " "*) ;;
8793      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8794      esac
8795 else
8796     lt_prog_compiler_pic=
8797      lt_prog_compiler_can_build_shared=no
8798 fi
8799
8800 fi
8801 case $host_os in
8802   # For platforms which do not support PIC, -DPIC is meaningless:
8803   *djgpp*)
8804     lt_prog_compiler_pic=
8805     ;;
8806   *)
8807     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8808     ;;
8809 esac
8810
8811 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8812 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816   lt_cv_prog_compiler_c_o=no
8817    $rm -r conftest 2>/dev/null
8818    mkdir conftest
8819    cd conftest
8820    mkdir out
8821    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8822
8823    lt_compiler_flag="-o out/conftest2.$ac_objext"
8824    # Insert the option either (1) after the last *FLAGS variable, or
8825    # (2) before a word containing "conftest.", or (3) at the end.
8826    # Note that $ac_compile itself does not contain backslashes and begins
8827    # with a dollar sign (not a hyphen), so the echo should work correctly.
8828    lt_compile=`echo "$ac_compile" | $SED \
8829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8831    -e 's:$: $lt_compiler_flag:'`
8832    (eval echo "\"\$as_me:8832: $lt_compile\"" >&5)
8833    (eval "$lt_compile" 2>out/conftest.err)
8834    ac_status=$?
8835    cat out/conftest.err >&5
8836    echo "$as_me:8836: \$? = $ac_status" >&5
8837    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8838    then
8839      # The compiler can only warn and ignore the option if not recognized
8840      # So say no if there are warnings
8841      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8842      $SED '/^$/d' out/conftest.err >out/conftest.er2
8843      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8844        lt_cv_prog_compiler_c_o=yes
8845      fi
8846    fi
8847    chmod u+w . 2>&5
8848    $rm conftest*
8849    # SGI C++ compiler will create directory out/ii_files/ for
8850    # template instantiation
8851    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8852    $rm out/* && rmdir out
8853    cd ..
8854    rmdir conftest
8855    $rm conftest*
8856
8857 fi
8858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8860
8861
8862 hard_links="nottested"
8863 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8864   # do not overwrite the value of need_locks provided by the user
8865   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8867   hard_links=yes
8868   $rm conftest*
8869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8870   touch conftest.a
8871   ln conftest.a conftest.b 2>&5 || hard_links=no
8872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8873   { echo "$as_me:$LINENO: result: $hard_links" >&5
8874 echo "${ECHO_T}$hard_links" >&6; }
8875   if test "$hard_links" = no; then
8876     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8878     need_locks=warn
8879   fi
8880 else
8881   need_locks=no
8882 fi
8883
8884 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8886
8887   runpath_var=
8888   allow_undefined_flag=
8889   enable_shared_with_static_runtimes=no
8890   archive_cmds=
8891   archive_expsym_cmds=
8892   old_archive_From_new_cmds=
8893   old_archive_from_expsyms_cmds=
8894   export_dynamic_flag_spec=
8895   whole_archive_flag_spec=
8896   thread_safe_flag_spec=
8897   hardcode_libdir_flag_spec=
8898   hardcode_libdir_flag_spec_ld=
8899   hardcode_libdir_separator=
8900   hardcode_direct=no
8901   hardcode_minus_L=no
8902   hardcode_shlibpath_var=unsupported
8903   link_all_deplibs=unknown
8904   hardcode_automatic=no
8905   module_cmds=
8906   module_expsym_cmds=
8907   always_export_symbols=no
8908   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8909   # include_expsyms should be a list of space-separated symbols to be *always*
8910   # included in the symbol list
8911   include_expsyms=
8912   # exclude_expsyms can be an extended regexp of symbols to exclude
8913   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8914   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8915   # as well as any symbol that contains `d'.
8916   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8917   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8918   # platforms (ab)use it in PIC code, but their linkers get confused if
8919   # the symbol is explicitly referenced.  Since portable code cannot
8920   # rely on this symbol name, it's probably fine to never include it in
8921   # preloaded symbol tables.
8922   extract_expsyms_cmds=
8923   # Just being paranoid about ensuring that cc_basename is set.
8924   for cc_temp in $compiler""; do
8925   case $cc_temp in
8926     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8927     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8928     \-*) ;;
8929     *) break;;
8930   esac
8931 done
8932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8933
8934   case $host_os in
8935   cygwin* | mingw* | pw32*)
8936     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8937     # When not using gcc, we currently assume that we are using
8938     # Microsoft Visual C++.
8939     if test "$GCC" != yes; then
8940       with_gnu_ld=no
8941     fi
8942     ;;
8943   openbsd*)
8944     with_gnu_ld=no
8945     ;;
8946   esac
8947
8948   ld_shlibs=yes
8949   if test "$with_gnu_ld" = yes; then
8950     # If archive_cmds runs LD, not CC, wlarc should be empty
8951     wlarc='${wl}'
8952
8953     # Set some defaults for GNU ld with shared library support. These
8954     # are reset later if shared libraries are not supported. Putting them
8955     # here allows them to be overridden if necessary.
8956     runpath_var=LD_RUN_PATH
8957     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8958     export_dynamic_flag_spec='${wl}--export-dynamic'
8959     # ancient GNU ld didn't support --whole-archive et. al.
8960     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8961         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8962       else
8963         whole_archive_flag_spec=
8964     fi
8965     supports_anon_versioning=no
8966     case `$LD -v 2>/dev/null` in
8967       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8968       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8969       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8970       *\ 2.11.*) ;; # other 2.11 versions
8971       *) supports_anon_versioning=yes ;;
8972     esac
8973
8974     # See if GNU ld supports shared libraries.
8975     case $host_os in
8976     aix3* | aix4* | aix5*)
8977       # On AIX/PPC, the GNU linker is very broken
8978       if test "$host_cpu" != ia64; then
8979         ld_shlibs=no
8980         cat <<EOF 1>&2
8981
8982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8983 *** to be unable to reliably create shared libraries on AIX.
8984 *** Therefore, libtool is disabling shared libraries support.  If you
8985 *** really care for shared libraries, you may want to modify your PATH
8986 *** so that a non-GNU linker is found, and then restart.
8987
8988 EOF
8989       fi
8990       ;;
8991
8992     amigaos*)
8993       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8994       hardcode_libdir_flag_spec='-L$libdir'
8995       hardcode_minus_L=yes
8996
8997       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8998       # that the semantics of dynamic libraries on AmigaOS, at least up
8999       # to version 4, is to share data among multiple programs linked
9000       # with the same dynamic library.  Since this doesn't match the
9001       # behavior of shared libraries on other platforms, we can't use
9002       # them.
9003       ld_shlibs=no
9004       ;;
9005
9006     beos*)
9007       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9008         allow_undefined_flag=unsupported
9009         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9010         # support --undefined.  This deserves some investigation.  FIXME
9011         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012       else
9013         ld_shlibs=no
9014       fi
9015       ;;
9016
9017     cygwin* | mingw* | pw32*)
9018       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9019       # as there is no search path for DLLs.
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       allow_undefined_flag=unsupported
9022       always_export_symbols=no
9023       enable_shared_with_static_runtimes=yes
9024       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9025
9026       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9028         # If the export-symbols file already is a .def file (1st line
9029         # is EXPORTS), use it as is; otherwise, prepend...
9030         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9031           cp $export_symbols $output_objdir/$soname.def;
9032         else
9033           echo EXPORTS > $output_objdir/$soname.def;
9034           cat $export_symbols >> $output_objdir/$soname.def;
9035         fi~
9036         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9037       else
9038         ld_shlibs=no
9039       fi
9040       ;;
9041
9042     linux*)
9043       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9044         tmp_addflag=
9045         case $cc_basename,$host_cpu in
9046         pgcc*)                          # Portland Group C compiler
9047           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9048           tmp_addflag=' $pic_flag'
9049           ;;
9050         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9051           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9052           tmp_addflag=' $pic_flag -Mnomain' ;;
9053         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9054           tmp_addflag=' -i_dynamic' ;;
9055         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9056           tmp_addflag=' -i_dynamic -nofor_main' ;;
9057         ifc* | ifort*)                  # Intel Fortran compiler
9058           tmp_addflag=' -nofor_main' ;;
9059         esac
9060         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061
9062         if test $supports_anon_versioning = yes; then
9063           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9064   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9065   $echo "local: *; };" >> $output_objdir/$libname.ver~
9066           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9067         fi
9068       else
9069         ld_shlibs=no
9070       fi
9071       ;;
9072
9073     netbsd*)
9074       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9075         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9076         wlarc=
9077       else
9078         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9080       fi
9081       ;;
9082
9083     solaris* | sysv5*)
9084       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9085         ld_shlibs=no
9086         cat <<EOF 1>&2
9087
9088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9089 *** create shared libraries on Solaris systems.  Therefore, libtool
9090 *** is disabling shared libraries support.  We urge you to upgrade GNU
9091 *** binutils to release 2.9.1 or newer.  Another option is to modify
9092 *** your PATH or compiler configuration so that the native linker is
9093 *** used, and then restart.
9094
9095 EOF
9096       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9097         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9099       else
9100         ld_shlibs=no
9101       fi
9102       ;;
9103
9104     sunos4*)
9105       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9106       wlarc=
9107       hardcode_direct=yes
9108       hardcode_shlibpath_var=no
9109       ;;
9110
9111     *)
9112       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9115       else
9116         ld_shlibs=no
9117       fi
9118       ;;
9119     esac
9120
9121     if test "$ld_shlibs" = no; then
9122       runpath_var=
9123       hardcode_libdir_flag_spec=
9124       export_dynamic_flag_spec=
9125       whole_archive_flag_spec=
9126     fi
9127   else
9128     # PORTME fill in a description of your system's linker (not GNU ld)
9129     case $host_os in
9130     aix3*)
9131       allow_undefined_flag=unsupported
9132       always_export_symbols=yes
9133       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9134       # Note: this linker hardcodes the directories in LIBPATH if there
9135       # are no directories specified by -L.
9136       hardcode_minus_L=yes
9137       if test "$GCC" = yes && test -z "$link_static_flag"; then
9138         # Neither direct hardcoding nor static linking is supported with a
9139         # broken collect2.
9140         hardcode_direct=unsupported
9141       fi
9142       ;;
9143
9144     aix4* | aix5*)
9145       if test "$host_cpu" = ia64; then
9146         # On IA64, the linker does run time linking by default, so we don't
9147         # have to do anything special.
9148         aix_use_runtimelinking=no
9149         exp_sym_flag='-Bexport'
9150         no_entry_flag=""
9151       else
9152         # If we're using GNU nm, then we don't want the "-C" option.
9153         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9154         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9155           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9156         else
9157           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9158         fi
9159         aix_use_runtimelinking=no
9160
9161         # Test if we are trying to use run time linking or normal
9162         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9163         # need to do runtime linking.
9164         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9165           for ld_flag in $LDFLAGS; do
9166           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9167             aix_use_runtimelinking=yes
9168             break
9169           fi
9170           done
9171         esac
9172
9173         exp_sym_flag='-bexport'
9174         no_entry_flag='-bnoentry'
9175       fi
9176
9177       # When large executables or shared objects are built, AIX ld can
9178       # have problems creating the table of contents.  If linking a library
9179       # or program results in "error TOC overflow" add -mminimal-toc to
9180       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9181       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9182
9183       archive_cmds=''
9184       hardcode_direct=yes
9185       hardcode_libdir_separator=':'
9186       link_all_deplibs=yes
9187
9188       if test "$GCC" = yes; then
9189         case $host_os in aix4.[012]|aix4.[012].*)
9190         # We only want to do this on AIX 4.2 and lower, the check
9191         # below for broken collect2 doesn't work under 4.3+
9192           collect2name=`${CC} -print-prog-name=collect2`
9193           if test -f "$collect2name" && \
9194            strings "$collect2name" | grep resolve_lib_name >/dev/null
9195           then
9196           # We have reworked collect2
9197           hardcode_direct=yes
9198           else
9199           # We have old collect2
9200           hardcode_direct=unsupported
9201           # It fails to find uninstalled libraries when the uninstalled
9202           # path is not listed in the libpath.  Setting hardcode_minus_L
9203           # to unsupported forces relinking
9204           hardcode_minus_L=yes
9205           hardcode_libdir_flag_spec='-L$libdir'
9206           hardcode_libdir_separator=
9207           fi
9208         esac
9209         shared_flag='-shared'
9210         if test "$aix_use_runtimelinking" = yes; then
9211           shared_flag="$shared_flag "'${wl}-G'
9212         fi
9213       else
9214         # not using gcc
9215         if test "$host_cpu" = ia64; then
9216         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9217         # chokes on -Wl,-G. The following line is correct:
9218           shared_flag='-G'
9219         else
9220         if test "$aix_use_runtimelinking" = yes; then
9221             shared_flag='${wl}-G'
9222           else
9223             shared_flag='${wl}-bM:SRE'
9224         fi
9225         fi
9226       fi
9227
9228       # It seems that -bexpall does not export symbols beginning with
9229       # underscore (_), so it is better to generate a list of symbols to export.
9230       always_export_symbols=yes
9231       if test "$aix_use_runtimelinking" = yes; then
9232         # Warning - without using the other runtime loading flags (-brtl),
9233         # -berok will link without error, but may produce a broken library.
9234         allow_undefined_flag='-berok'
9235        # Determine the default libpath from the value encoded in an empty executable.
9236        cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h.  */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h.  */
9242
9243 int
9244 main ()
9245 {
9246
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9253 case "(($ac_try" in
9254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255   *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258   (eval "$ac_link") 2>conftest.er1
9259   ac_status=$?
9260   grep -v '^ *+' conftest.er1 >conftest.err
9261   rm -f conftest.er1
9262   cat conftest.err >&5
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } && {
9265          test -z "$ac_c_werror_flag" ||
9266          test ! -s conftest.err
9267        } && test -s conftest$ac_exeext &&
9268        $as_test_x conftest$ac_exeext; then
9269
9270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9271 }'`
9272 # Check for a 64-bit object if we didn't find anything.
9273 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9274 }'`; fi
9275 else
9276   echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279
9280 fi
9281
9282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9283       conftest$ac_exeext conftest.$ac_ext
9284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9285
9286        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9287         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9288        else
9289         if test "$host_cpu" = ia64; then
9290           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9291           allow_undefined_flag="-z nodefs"
9292           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9293         else
9294          # Determine the default libpath from the value encoded in an empty executable.
9295          cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h.  */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h.  */
9301
9302 int
9303 main ()
9304 {
9305
9306   ;
9307   return 0;
9308 }
9309 _ACEOF
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9312 case "(($ac_try" in
9313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314   *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317   (eval "$ac_link") 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && {
9324          test -z "$ac_c_werror_flag" ||
9325          test ! -s conftest.err
9326        } && test -s conftest$ac_exeext &&
9327        $as_test_x conftest$ac_exeext; then
9328
9329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9330 }'`
9331 # Check for a 64-bit object if we didn't find anything.
9332 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9333 }'`; fi
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338
9339 fi
9340
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342       conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344
9345          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346           # Warning - without using the other run time loading flags,
9347           # -berok will link without error, but may produce a broken library.
9348           no_undefined_flag=' ${wl}-bernotok'
9349           allow_undefined_flag=' ${wl}-berok'
9350           # -bexpall does not export symbols beginning with underscore (_)
9351           always_export_symbols=yes
9352           # Exported symbols can be pulled into shared objects from archives
9353           whole_archive_flag_spec=' '
9354           archive_cmds_need_lc=yes
9355           # This is similar to how AIX traditionally builds its shared libraries.
9356           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9357         fi
9358       fi
9359       ;;
9360
9361     amigaos*)
9362       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9363       hardcode_libdir_flag_spec='-L$libdir'
9364       hardcode_minus_L=yes
9365       # see comment about different semantics on the GNU ld section
9366       ld_shlibs=no
9367       ;;
9368
9369     bsdi[45]*)
9370       export_dynamic_flag_spec=-rdynamic
9371       ;;
9372
9373     cygwin* | mingw* | pw32*)
9374       # When not using gcc, we currently assume that we are using
9375       # Microsoft Visual C++.
9376       # hardcode_libdir_flag_spec is actually meaningless, as there is
9377       # no search path for DLLs.
9378       hardcode_libdir_flag_spec=' '
9379       allow_undefined_flag=unsupported
9380       # Tell ltmain to make .lib files, not .a files.
9381       libext=lib
9382       # Tell ltmain to make .dll files, not .so files.
9383       shrext_cmds=".dll"
9384       # FIXME: Setting linknames here is a bad hack.
9385       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9386       # The linker will automatically build a .lib file if we build a DLL.
9387       old_archive_From_new_cmds='true'
9388       # FIXME: Should let the user specify the lib program.
9389       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9390       fix_srcfile_path='`cygpath -w "$srcfile"`'
9391       enable_shared_with_static_runtimes=yes
9392       ;;
9393
9394     darwin* | rhapsody*)
9395       case $host_os in
9396         rhapsody* | darwin1.[012])
9397          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9398          ;;
9399        *) # Darwin 1.3 on
9400          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9401            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9402          else
9403            case ${MACOSX_DEPLOYMENT_TARGET} in
9404              10.[012])
9405                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9406                ;;
9407              10.*)
9408                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9409                ;;
9410            esac
9411          fi
9412          ;;
9413       esac
9414       archive_cmds_need_lc=no
9415       hardcode_direct=no
9416       hardcode_automatic=yes
9417       hardcode_shlibpath_var=unsupported
9418       whole_archive_flag_spec=''
9419       link_all_deplibs=yes
9420     if test "$GCC" = yes ; then
9421         output_verbose_link_cmd='echo'
9422         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9423       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9425       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9426       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9427     else
9428       case $cc_basename in
9429         xlc*)
9430          output_verbose_link_cmd='echo'
9431          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9432          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9434          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9435           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9436           ;;
9437        *)
9438          ld_shlibs=no
9439           ;;
9440       esac
9441     fi
9442       ;;
9443
9444     dgux*)
9445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446       hardcode_libdir_flag_spec='-L$libdir'
9447       hardcode_shlibpath_var=no
9448       ;;
9449
9450     freebsd1*)
9451       ld_shlibs=no
9452       ;;
9453
9454     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455     # support.  Future versions do this automatically, but an explicit c++rt0.o
9456     # does not break anything, and helps significantly (at the cost of a little
9457     # extra space).
9458     freebsd2.2*)
9459       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460       hardcode_libdir_flag_spec='-R$libdir'
9461       hardcode_direct=yes
9462       hardcode_shlibpath_var=no
9463       ;;
9464
9465     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9466     freebsd2*)
9467       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468       hardcode_direct=yes
9469       hardcode_minus_L=yes
9470       hardcode_shlibpath_var=no
9471       ;;
9472
9473     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474     freebsd* | kfreebsd*-gnu | dragonfly*)
9475       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476       hardcode_libdir_flag_spec='-R$libdir'
9477       hardcode_direct=yes
9478       hardcode_shlibpath_var=no
9479       ;;
9480
9481     hpux9*)
9482       if test "$GCC" = yes; then
9483         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9484       else
9485         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9486       fi
9487       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488       hardcode_libdir_separator=:
9489       hardcode_direct=yes
9490
9491       # hardcode_minus_L: Not really in the search PATH,
9492       # but as the default location of the library.
9493       hardcode_minus_L=yes
9494       export_dynamic_flag_spec='${wl}-E'
9495       ;;
9496
9497     hpux10* | hpux11*)
9498       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9499         case $host_cpu in
9500         hppa*64*|ia64*)
9501           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502           ;;
9503         *)
9504           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9505           ;;
9506         esac
9507       else
9508         case $host_cpu in
9509         hppa*64*|ia64*)
9510           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9511           ;;
9512         *)
9513           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514           ;;
9515         esac
9516       fi
9517       if test "$with_gnu_ld" = no; then
9518         case $host_cpu in
9519         hppa*64*)
9520           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521           hardcode_libdir_flag_spec_ld='+b $libdir'
9522           hardcode_libdir_separator=:
9523           hardcode_direct=no
9524           hardcode_shlibpath_var=no
9525           ;;
9526         ia64*)
9527           hardcode_libdir_flag_spec='-L$libdir'
9528           hardcode_direct=no
9529           hardcode_shlibpath_var=no
9530
9531           # hardcode_minus_L: Not really in the search PATH,
9532           # but as the default location of the library.
9533           hardcode_minus_L=yes
9534           ;;
9535         *)
9536           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537           hardcode_libdir_separator=:
9538           hardcode_direct=yes
9539           export_dynamic_flag_spec='${wl}-E'
9540
9541           # hardcode_minus_L: Not really in the search PATH,
9542           # but as the default location of the library.
9543           hardcode_minus_L=yes
9544           ;;
9545         esac
9546       fi
9547       ;;
9548
9549     irix5* | irix6* | nonstopux*)
9550       if test "$GCC" = yes; then
9551         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9552       else
9553         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9554         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9555       fi
9556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557       hardcode_libdir_separator=:
9558       link_all_deplibs=yes
9559       ;;
9560
9561     netbsd*)
9562       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9564       else
9565         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9566       fi
9567       hardcode_libdir_flag_spec='-R$libdir'
9568       hardcode_direct=yes
9569       hardcode_shlibpath_var=no
9570       ;;
9571
9572     newsos6)
9573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574       hardcode_direct=yes
9575       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576       hardcode_libdir_separator=:
9577       hardcode_shlibpath_var=no
9578       ;;
9579
9580     openbsd*)
9581       hardcode_direct=yes
9582       hardcode_shlibpath_var=no
9583       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587         export_dynamic_flag_spec='${wl}-E'
9588       else
9589        case $host_os in
9590          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592            hardcode_libdir_flag_spec='-R$libdir'
9593            ;;
9594          *)
9595            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597            ;;
9598        esac
9599       fi
9600       ;;
9601
9602     os2*)
9603       hardcode_libdir_flag_spec='-L$libdir'
9604       hardcode_minus_L=yes
9605       allow_undefined_flag=unsupported
9606       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9607       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9608       ;;
9609
9610     osf3*)
9611       if test "$GCC" = yes; then
9612         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9614       else
9615         allow_undefined_flag=' -expect_unresolved \*'
9616         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9617       fi
9618       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619       hardcode_libdir_separator=:
9620       ;;
9621
9622     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9623       if test "$GCC" = yes; then
9624         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9626         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627       else
9628         allow_undefined_flag=' -expect_unresolved \*'
9629         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9630         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9631         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9632
9633         # Both c and cxx compiler support -rpath directly
9634         hardcode_libdir_flag_spec='-rpath $libdir'
9635       fi
9636       hardcode_libdir_separator=:
9637       ;;
9638
9639     sco3.2v5*)
9640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641       hardcode_shlibpath_var=no
9642       export_dynamic_flag_spec='${wl}-Bexport'
9643       runpath_var=LD_RUN_PATH
9644       hardcode_runpath_var=yes
9645       ;;
9646
9647     solaris*)
9648       no_undefined_flag=' -z text'
9649       if test "$GCC" = yes; then
9650         wlarc='${wl}'
9651         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9653           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9654       else
9655         wlarc=''
9656         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9658         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9659       fi
9660       hardcode_libdir_flag_spec='-R$libdir'
9661       hardcode_shlibpath_var=no
9662       case $host_os in
9663       solaris2.[0-5] | solaris2.[0-5].*) ;;
9664       *)
9665         # The compiler driver will combine linker options so we
9666         # cannot just pass the convience library names through
9667         # without $wl, iff we do not link with $LD.
9668         # Luckily, gcc supports the same syntax we need for Sun Studio.
9669         # Supported since Solaris 2.6 (maybe 2.5.1?)
9670         case $wlarc in
9671         '')
9672           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9673         *)
9674           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9675         esac ;;
9676       esac
9677       link_all_deplibs=yes
9678       ;;
9679
9680     sunos4*)
9681       if test "x$host_vendor" = xsequent; then
9682         # Use $CC to link under sequent, because it throws in some extra .o
9683         # files that make .init and .fini sections work.
9684         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685       else
9686         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687       fi
9688       hardcode_libdir_flag_spec='-L$libdir'
9689       hardcode_direct=yes
9690       hardcode_minus_L=yes
9691       hardcode_shlibpath_var=no
9692       ;;
9693
9694     sysv4)
9695       case $host_vendor in
9696         sni)
9697           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698           hardcode_direct=yes # is this really true???
9699         ;;
9700         siemens)
9701           ## LD is ld it makes a PLAMLIB
9702           ## CC just makes a GrossModule.
9703           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704           reload_cmds='$CC -r -o $output$reload_objs'
9705           hardcode_direct=no
9706         ;;
9707         motorola)
9708           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710         ;;
9711       esac
9712       runpath_var='LD_RUN_PATH'
9713       hardcode_shlibpath_var=no
9714       ;;
9715
9716     sysv4.3*)
9717       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718       hardcode_shlibpath_var=no
9719       export_dynamic_flag_spec='-Bexport'
9720       ;;
9721
9722     sysv4*MP*)
9723       if test -d /usr/nec; then
9724         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725         hardcode_shlibpath_var=no
9726         runpath_var=LD_RUN_PATH
9727         hardcode_runpath_var=yes
9728         ld_shlibs=yes
9729       fi
9730       ;;
9731
9732     sysv4.2uw2*)
9733       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734       hardcode_direct=yes
9735       hardcode_minus_L=no
9736       hardcode_shlibpath_var=no
9737       hardcode_runpath_var=yes
9738       runpath_var=LD_RUN_PATH
9739       ;;
9740
9741    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9742       no_undefined_flag='${wl}-z ${wl}text'
9743       if test "$GCC" = yes; then
9744         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745       else
9746         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747       fi
9748       runpath_var='LD_RUN_PATH'
9749       hardcode_shlibpath_var=no
9750       ;;
9751
9752     sysv5*)
9753       no_undefined_flag=' -z text'
9754       # $CC -shared without GNU ld will not create a library from C++
9755       # object files and a static libstdc++, better avoid it by now
9756       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9758                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9759       hardcode_libdir_flag_spec=
9760       hardcode_shlibpath_var=no
9761       runpath_var='LD_RUN_PATH'
9762       ;;
9763
9764     uts4*)
9765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766       hardcode_libdir_flag_spec='-L$libdir'
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     *)
9771       ld_shlibs=no
9772       ;;
9773     esac
9774   fi
9775
9776 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9777 echo "${ECHO_T}$ld_shlibs" >&6; }
9778 test "$ld_shlibs" = no && can_build_shared=no
9779
9780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9781 if test "$GCC" = yes; then
9782   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9783 fi
9784
9785 #
9786 # Do we need to explicitly link libc?
9787 #
9788 case "x$archive_cmds_need_lc" in
9789 x|xyes)
9790   # Assume -lc should be added
9791   archive_cmds_need_lc=yes
9792
9793   if test "$enable_shared" = yes && test "$GCC" = yes; then
9794     case $archive_cmds in
9795     *'~'*)
9796       # FIXME: we may have to deal with multi-command sequences.
9797       ;;
9798     '$CC '*)
9799       # Test whether the compiler implicitly links with -lc since on some
9800       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9801       # to ld, don't add -lc before -lgcc.
9802       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9804       $rm conftest*
9805       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9806
9807       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } 2>conftest.err; then
9812         soname=conftest
9813         lib=conftest
9814         libobjs=conftest.$ac_objext
9815         deplibs=
9816         wl=$lt_prog_compiler_wl
9817         compiler_flags=-v
9818         linker_flags=-v
9819         verstring=
9820         output_objdir=.
9821         libname=conftest
9822         lt_save_allow_undefined_flag=$allow_undefined_flag
9823         allow_undefined_flag=
9824         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9825   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }
9829         then
9830           archive_cmds_need_lc=no
9831         else
9832           archive_cmds_need_lc=yes
9833         fi
9834         allow_undefined_flag=$lt_save_allow_undefined_flag
9835       else
9836         cat conftest.err 1>&5
9837       fi
9838       $rm conftest*
9839       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9840 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9841       ;;
9842     esac
9843   fi
9844   ;;
9845 esac
9846
9847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9849 library_names_spec=
9850 libname_spec='lib$name'
9851 soname_spec=
9852 shrext_cmds=".so"
9853 postinstall_cmds=
9854 postuninstall_cmds=
9855 finish_cmds=
9856 finish_eval=
9857 shlibpath_var=
9858 shlibpath_overrides_runpath=unknown
9859 version_type=none
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865     # if the path contains ";" then we assume it to be the separator
9866     # otherwise default to the standard path separator (i.e. ":") - it is
9867     # assumed that no part of a normal pathname contains ";" but that should
9868     # okay in the real world where ";" in dirpaths is itself problematic.
9869     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9870   else
9871     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9872   fi
9873 else
9874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9875 fi
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9878
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9882
9883 case $host_os in
9884 aix3*)
9885   version_type=linux
9886   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887   shlibpath_var=LIBPATH
9888
9889   # AIX 3 has no versioning support, so we append a major version to the name.
9890   soname_spec='${libname}${release}${shared_ext}$major'
9891   ;;
9892
9893 aix4* | aix5*)
9894   version_type=linux
9895   need_lib_prefix=no
9896   need_version=no
9897   hardcode_into_libs=yes
9898   if test "$host_cpu" = ia64; then
9899     # AIX 5 supports IA64
9900     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901     shlibpath_var=LD_LIBRARY_PATH
9902   else
9903     # With GCC up to 2.95.x, collect2 would create an import file
9904     # for dependence libraries.  The import file would start with
9905     # the line `#! .'.  This would cause the generated library to
9906     # depend on `.', always an invalid library.  This was fixed in
9907     # development snapshots of GCC prior to 3.0.
9908     case $host_os in
9909       aix4 | aix4.[01] | aix4.[01].*)
9910       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9911            echo ' yes '
9912            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9913         :
9914       else
9915         can_build_shared=no
9916       fi
9917       ;;
9918     esac
9919     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920     # soname into executable. Probably we can add versioning support to
9921     # collect2, so additional links can be useful in future.
9922     if test "$aix_use_runtimelinking" = yes; then
9923       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924       # instead of lib<name>.a to let people know that these are not
9925       # typical AIX shared libraries.
9926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927     else
9928       # We preserve .a as extension for shared libraries through AIX4.2
9929       # and later when we are not doing run time linking.
9930       library_names_spec='${libname}${release}.a $libname.a'
9931       soname_spec='${libname}${release}${shared_ext}$major'
9932     fi
9933     shlibpath_var=LIBPATH
9934   fi
9935   ;;
9936
9937 amigaos*)
9938   library_names_spec='$libname.ixlibrary $libname.a'
9939   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9941   ;;
9942
9943 beos*)
9944   library_names_spec='${libname}${shared_ext}'
9945   dynamic_linker="$host_os ld.so"
9946   shlibpath_var=LIBRARY_PATH
9947   ;;
9948
9949 bsdi[45]*)
9950   version_type=linux
9951   need_version=no
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953   soname_spec='${libname}${release}${shared_ext}$major'
9954   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955   shlibpath_var=LD_LIBRARY_PATH
9956   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958   # the default ld.so.conf also contains /usr/contrib/lib and
9959   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960   # libtool to hard-code these into programs
9961   ;;
9962
9963 cygwin* | mingw* | pw32*)
9964   version_type=windows
9965   shrext_cmds=".dll"
9966   need_version=no
9967   need_lib_prefix=no
9968
9969   case $GCC,$host_os in
9970   yes,cygwin* | yes,mingw* | yes,pw32*)
9971     library_names_spec='$libname.dll.a'
9972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973     postinstall_cmds='base_file=`basename \${file}`~
9974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975       dldir=$destdir/`dirname \$dlpath`~
9976       test -d \$dldir || mkdir -p \$dldir~
9977       $install_prog $dir/$dlname \$dldir/$dlname~
9978       chmod a+x \$dldir/$dlname'
9979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980       dlpath=$dir/\$dldll~
9981        $rm \$dlpath'
9982     shlibpath_overrides_runpath=yes
9983
9984     case $host_os in
9985     cygwin*)
9986       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9987       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9989       ;;
9990     mingw*)
9991       # MinGW DLLs use traditional 'lib' prefix
9992       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9995         # It is most probably a Windows format PATH printed by
9996         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9997         # path with ; separators, and with drive letters. We can handle the
9998         # drive letters (cygwin fileutils understands them), so leave them,
9999         # especially as we might pass files found there to a mingw objdump,
10000         # which wouldn't understand a cygwinified path. Ahh.
10001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10002       else
10003         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10004       fi
10005       ;;
10006     pw32*)
10007       # pw32 DLLs use 'pw' prefix rather than 'lib'
10008       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009       ;;
10010     esac
10011     ;;
10012
10013   *)
10014     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10015     ;;
10016   esac
10017   dynamic_linker='Win32 ld.exe'
10018   # FIXME: first we should search . and the directory the executable is in
10019   shlibpath_var=PATH
10020   ;;
10021
10022 darwin* | rhapsody*)
10023   dynamic_linker="$host_os dyld"
10024   version_type=darwin
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028   soname_spec='${libname}${release}${major}$shared_ext'
10029   shlibpath_overrides_runpath=yes
10030   shlibpath_var=DYLD_LIBRARY_PATH
10031   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10032   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10033   if test "$GCC" = yes; then
10034     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10035   else
10036     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10037   fi
10038   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10039   ;;
10040
10041 dgux*)
10042   version_type=linux
10043   need_lib_prefix=no
10044   need_version=no
10045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046   soname_spec='${libname}${release}${shared_ext}$major'
10047   shlibpath_var=LD_LIBRARY_PATH
10048   ;;
10049
10050 freebsd1*)
10051   dynamic_linker=no
10052   ;;
10053
10054 kfreebsd*-gnu)
10055   version_type=linux
10056   need_lib_prefix=no
10057   need_version=no
10058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   shlibpath_var=LD_LIBRARY_PATH
10061   shlibpath_overrides_runpath=no
10062   hardcode_into_libs=yes
10063   dynamic_linker='GNU ld.so'
10064   ;;
10065
10066 freebsd* | dragonfly*)
10067   # DragonFly does not have aout.  When/if they implement a new
10068   # versioning mechanism, adjust this.
10069   if test -x /usr/bin/objformat; then
10070     objformat=`/usr/bin/objformat`
10071   else
10072     case $host_os in
10073     freebsd[123]*) objformat=aout ;;
10074     *) objformat=elf ;;
10075     esac
10076   fi
10077   version_type=freebsd-$objformat
10078   case $version_type in
10079     freebsd-elf*)
10080       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081       need_version=no
10082       need_lib_prefix=no
10083       ;;
10084     freebsd-*)
10085       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10086       need_version=yes
10087       ;;
10088   esac
10089   shlibpath_var=LD_LIBRARY_PATH
10090   case $host_os in
10091   freebsd2*)
10092     shlibpath_overrides_runpath=yes
10093     ;;
10094   freebsd3.[01]* | freebsdelf3.[01]*)
10095     shlibpath_overrides_runpath=yes
10096     hardcode_into_libs=yes
10097     ;;
10098   *) # from 3.2 on
10099     shlibpath_overrides_runpath=no
10100     hardcode_into_libs=yes
10101     ;;
10102   esac
10103   ;;
10104
10105 gnu*)
10106   version_type=linux
10107   need_lib_prefix=no
10108   need_version=no
10109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10110   soname_spec='${libname}${release}${shared_ext}$major'
10111   shlibpath_var=LD_LIBRARY_PATH
10112   hardcode_into_libs=yes
10113   ;;
10114
10115 hpux9* | hpux10* | hpux11*)
10116   # Give a soname corresponding to the major version so that dld.sl refuses to
10117   # link against other versions.
10118   version_type=sunos
10119   need_lib_prefix=no
10120   need_version=no
10121   case $host_cpu in
10122   ia64*)
10123     shrext_cmds='.so'
10124     hardcode_into_libs=yes
10125     dynamic_linker="$host_os dld.so"
10126     shlibpath_var=LD_LIBRARY_PATH
10127     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129     soname_spec='${libname}${release}${shared_ext}$major'
10130     if test "X$HPUX_IA64_MODE" = X32; then
10131       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10132     else
10133       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10134     fi
10135     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10136     ;;
10137    hppa*64*)
10138      shrext_cmds='.sl'
10139      hardcode_into_libs=yes
10140      dynamic_linker="$host_os dld.sl"
10141      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10142      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144      soname_spec='${libname}${release}${shared_ext}$major'
10145      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10146      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10147      ;;
10148    *)
10149     shrext_cmds='.sl'
10150     dynamic_linker="$host_os dld.sl"
10151     shlibpath_var=SHLIB_PATH
10152     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154     soname_spec='${libname}${release}${shared_ext}$major'
10155     ;;
10156   esac
10157   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10158   postinstall_cmds='chmod 555 $lib'
10159   ;;
10160
10161 irix5* | irix6* | nonstopux*)
10162   case $host_os in
10163     nonstopux*) version_type=nonstopux ;;
10164     *)
10165         if test "$lt_cv_prog_gnu_ld" = yes; then
10166                 version_type=linux
10167         else
10168                 version_type=irix
10169         fi ;;
10170   esac
10171   need_lib_prefix=no
10172   need_version=no
10173   soname_spec='${libname}${release}${shared_ext}$major'
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10175   case $host_os in
10176   irix5* | nonstopux*)
10177     libsuff= shlibsuff=
10178     ;;
10179   *)
10180     case $LD in # libtool.m4 will add one of these switches to LD
10181     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182       libsuff= shlibsuff= libmagic=32-bit;;
10183     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184       libsuff=32 shlibsuff=N32 libmagic=N32;;
10185     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187     *) libsuff= shlibsuff= libmagic=never-match;;
10188     esac
10189     ;;
10190   esac
10191   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192   shlibpath_overrides_runpath=no
10193   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195   hardcode_into_libs=yes
10196   ;;
10197
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10200   dynamic_linker=no
10201   ;;
10202
10203 # This must be Linux ELF.
10204 linux*)
10205   version_type=linux
10206   need_lib_prefix=no
10207   need_version=no
10208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209   soname_spec='${libname}${release}${shared_ext}$major'
10210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   shlibpath_overrides_runpath=no
10213   # This implies no fast_install, which is unacceptable.
10214   # Some rework will be needed to allow for fast_install
10215   # before this can be enabled.
10216   hardcode_into_libs=yes
10217
10218   # Append ld.so.conf contents to the search path
10219   if test -f /etc/ld.so.conf; then
10220     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10221     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10222   fi
10223
10224   # We used to test for /lib/ld.so.1 and disable shared libraries on
10225   # powerpc, because MkLinux only supported shared libraries with the
10226   # GNU dynamic linker.  Since this was broken with cross compilers,
10227   # most powerpc-linux boxes support dynamic linking these days and
10228   # people can always --disable-shared, the test was removed, and we
10229   # assume the GNU/Linux dynamic linker is in use.
10230   dynamic_linker='GNU/Linux ld.so'
10231   ;;
10232
10233 knetbsd*-gnu)
10234   version_type=linux
10235   need_lib_prefix=no
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=no
10241   hardcode_into_libs=yes
10242   dynamic_linker='GNU ld.so'
10243   ;;
10244
10245 netbsd*)
10246   version_type=sunos
10247   need_lib_prefix=no
10248   need_version=no
10249   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252     dynamic_linker='NetBSD (a.out) ld.so'
10253   else
10254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255     soname_spec='${libname}${release}${shared_ext}$major'
10256     dynamic_linker='NetBSD ld.elf_so'
10257   fi
10258   shlibpath_var=LD_LIBRARY_PATH
10259   shlibpath_overrides_runpath=yes
10260   hardcode_into_libs=yes
10261   ;;
10262
10263 newsos6)
10264   version_type=linux
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266   shlibpath_var=LD_LIBRARY_PATH
10267   shlibpath_overrides_runpath=yes
10268   ;;
10269
10270 nto-qnx*)
10271   version_type=linux
10272   need_lib_prefix=no
10273   need_version=no
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275   soname_spec='${libname}${release}${shared_ext}$major'
10276   shlibpath_var=LD_LIBRARY_PATH
10277   shlibpath_overrides_runpath=yes
10278   ;;
10279
10280 openbsd*)
10281   version_type=sunos
10282   need_lib_prefix=no
10283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10284   case $host_os in
10285     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10286     *)                         need_version=no  ;;
10287   esac
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10292     case $host_os in
10293       openbsd2.[89] | openbsd2.[89].*)
10294         shlibpath_overrides_runpath=no
10295         ;;
10296       *)
10297         shlibpath_overrides_runpath=yes
10298         ;;
10299       esac
10300   else
10301     shlibpath_overrides_runpath=yes
10302   fi
10303   ;;
10304
10305 os2*)
10306   libname_spec='$name'
10307   shrext_cmds=".dll"
10308   need_lib_prefix=no
10309   library_names_spec='$libname${shared_ext} $libname.a'
10310   dynamic_linker='OS/2 ld.exe'
10311   shlibpath_var=LIBPATH
10312   ;;
10313
10314 osf3* | osf4* | osf5*)
10315   version_type=osf
10316   need_lib_prefix=no
10317   need_version=no
10318   soname_spec='${libname}${release}${shared_ext}$major'
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10323   ;;
10324
10325 sco3.2v5*)
10326   version_type=osf
10327   soname_spec='${libname}${release}${shared_ext}$major'
10328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   ;;
10331
10332 solaris*)
10333   version_type=linux
10334   need_lib_prefix=no
10335   need_version=no
10336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337   soname_spec='${libname}${release}${shared_ext}$major'
10338   shlibpath_var=LD_LIBRARY_PATH
10339   shlibpath_overrides_runpath=yes
10340   hardcode_into_libs=yes
10341   # ldd complains unless libraries are executable
10342   postinstall_cmds='chmod +x $lib'
10343   ;;
10344
10345 sunos4*)
10346   version_type=sunos
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10349   shlibpath_var=LD_LIBRARY_PATH
10350   shlibpath_overrides_runpath=yes
10351   if test "$with_gnu_ld" = yes; then
10352     need_lib_prefix=no
10353   fi
10354   need_version=yes
10355   ;;
10356
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10358   version_type=linux
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   case $host_vendor in
10363     sni)
10364       shlibpath_overrides_runpath=no
10365       need_lib_prefix=no
10366       export_dynamic_flag_spec='${wl}-Blargedynsym'
10367       runpath_var=LD_RUN_PATH
10368       ;;
10369     siemens)
10370       need_lib_prefix=no
10371       ;;
10372     motorola)
10373       need_lib_prefix=no
10374       need_version=no
10375       shlibpath_overrides_runpath=no
10376       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10377       ;;
10378   esac
10379   ;;
10380
10381 sysv4*MP*)
10382   if test -d /usr/nec ;then
10383     version_type=linux
10384     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10385     soname_spec='$libname${shared_ext}.$major'
10386     shlibpath_var=LD_LIBRARY_PATH
10387   fi
10388   ;;
10389
10390 uts4*)
10391   version_type=linux
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   shlibpath_var=LD_LIBRARY_PATH
10395   ;;
10396
10397 *)
10398   dynamic_linker=no
10399   ;;
10400 esac
10401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10402 echo "${ECHO_T}$dynamic_linker" >&6; }
10403 test "$dynamic_linker" = no && can_build_shared=no
10404
10405 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10407 hardcode_action=
10408 if test -n "$hardcode_libdir_flag_spec" || \
10409    test -n "$runpath_var" || \
10410    test "X$hardcode_automatic" = "Xyes" ; then
10411
10412   # We can hardcode non-existant directories.
10413   if test "$hardcode_direct" != no &&
10414      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10415      # have to relink, otherwise we might link with an installed library
10416      # when we should be linking with a yet-to-be-installed one
10417      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10418      test "$hardcode_minus_L" != no; then
10419     # Linking always hardcodes the temporary library directory.
10420     hardcode_action=relink
10421   else
10422     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10423     hardcode_action=immediate
10424   fi
10425 else
10426   # We cannot hardcode anything, or else we can only hardcode existing
10427   # directories.
10428   hardcode_action=unsupported
10429 fi
10430 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10431 echo "${ECHO_T}$hardcode_action" >&6; }
10432
10433 if test "$hardcode_action" = relink; then
10434   # Fast installation is not supported
10435   enable_fast_install=no
10436 elif test "$shlibpath_overrides_runpath" = yes ||
10437      test "$enable_shared" = no; then
10438   # Fast installation is not necessary
10439   enable_fast_install=needless
10440 fi
10441
10442 striplib=
10443 old_striplib=
10444 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10446 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10447   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449   { echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6; }
10451 else
10452 # FIXME - insert some real tests, host_os isn't really good enough
10453   case $host_os in
10454    darwin*)
10455        if test -n "$STRIP" ; then
10456          striplib="$STRIP -x"
10457          { echo "$as_me:$LINENO: result: yes" >&5
10458 echo "${ECHO_T}yes" >&6; }
10459        else
10460   { echo "$as_me:$LINENO: result: no" >&5
10461 echo "${ECHO_T}no" >&6; }
10462 fi
10463        ;;
10464    *)
10465   { echo "$as_me:$LINENO: result: no" >&5
10466 echo "${ECHO_T}no" >&6; }
10467     ;;
10468   esac
10469 fi
10470
10471 if test "x$enable_dlopen" != xyes; then
10472   enable_dlopen=unknown
10473   enable_dlopen_self=unknown
10474   enable_dlopen_self_static=unknown
10475 else
10476   lt_cv_dlopen=no
10477   lt_cv_dlopen_libs=
10478
10479   case $host_os in
10480   beos*)
10481     lt_cv_dlopen="load_add_on"
10482     lt_cv_dlopen_libs=
10483     lt_cv_dlopen_self=yes
10484     ;;
10485
10486   mingw* | pw32*)
10487     lt_cv_dlopen="LoadLibrary"
10488     lt_cv_dlopen_libs=
10489    ;;
10490
10491   cygwin*)
10492     lt_cv_dlopen="dlopen"
10493     lt_cv_dlopen_libs=
10494    ;;
10495
10496   darwin*)
10497   # if libdl is installed we need to link against it
10498     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10501   echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503   ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-ldl  $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h.  */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h.  */
10511
10512 /* Override any GCC internal prototype to avoid an error.
10513    Use char because int might match the return type of a GCC
10514    builtin and then its argument prototype would still apply.  */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 char dlopen ();
10519 int
10520 main ()
10521 {
10522 return dlopen ();
10523   ;
10524   return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531   *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534   (eval "$ac_link") 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } && {
10541          test -z "$ac_c_werror_flag" ||
10542          test ! -s conftest.err
10543        } && test -s conftest$ac_exeext &&
10544        $as_test_x conftest$ac_exeext; then
10545   ac_cv_lib_dl_dlopen=yes
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550         ac_cv_lib_dl_dlopen=no
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554       conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10559 if test $ac_cv_lib_dl_dlopen = yes; then
10560   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561 else
10562
10563     lt_cv_dlopen="dyld"
10564     lt_cv_dlopen_libs=
10565     lt_cv_dlopen_self=yes
10566
10567 fi
10568
10569    ;;
10570
10571   *)
10572     { echo "$as_me:$LINENO: checking for shl_load" >&5
10573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10574 if test "${ac_cv_func_shl_load+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10585 #define shl_load innocuous_shl_load
10586
10587 /* System header to define __stub macros and hopefully few prototypes,
10588     which can conflict with char shl_load (); below.
10589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10590     <limits.h> exists even on freestanding compilers.  */
10591
10592 #ifdef __STDC__
10593 # include <limits.h>
10594 #else
10595 # include <assert.h>
10596 #endif
10597
10598 #undef shl_load
10599
10600 /* Override any GCC internal prototype to avoid an error.
10601    Use char because int might match the return type of a GCC
10602    builtin and then its argument prototype would still apply.  */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 char shl_load ();
10607 /* The GNU C library defines this for functions which it implements
10608     to always fail with ENOSYS.  Some functions are actually named
10609     something starting with __ and the normal name is an alias.  */
10610 #if defined __stub_shl_load || defined __stub___shl_load
10611 choke me
10612 #endif
10613
10614 int
10615 main ()
10616 {
10617 return shl_load ();
10618   ;
10619   return 0;
10620 }
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626   *) ac_try_echo=$ac_try;;
10627 esac
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629   (eval "$ac_link") 2>conftest.er1
10630   ac_status=$?
10631   grep -v '^ *+' conftest.er1 >conftest.err
10632   rm -f conftest.er1
10633   cat conftest.err >&5
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); } && {
10636          test -z "$ac_c_werror_flag" ||
10637          test ! -s conftest.err
10638        } && test -s conftest$ac_exeext &&
10639        $as_test_x conftest$ac_exeext; then
10640   ac_cv_func_shl_load=yes
10641 else
10642   echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645         ac_cv_func_shl_load=no
10646 fi
10647
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649       conftest$ac_exeext conftest.$ac_ext
10650 fi
10651 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10652 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10653 if test $ac_cv_func_shl_load = yes; then
10654   lt_cv_dlopen="shl_load"
10655 else
10656   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10657 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10658 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-ldld  $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671    Use char because int might match the return type of a GCC
10672    builtin and then its argument prototype would still apply.  */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char shl_load ();
10677 int
10678 main ()
10679 {
10680 return shl_load ();
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689   *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692   (eval "$ac_link") 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } && {
10699          test -z "$ac_c_werror_flag" ||
10700          test ! -s conftest.err
10701        } && test -s conftest$ac_exeext &&
10702        $as_test_x conftest$ac_exeext; then
10703   ac_cv_lib_dld_shl_load=yes
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708         ac_cv_lib_dld_shl_load=no
10709 fi
10710
10711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10712       conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10714 fi
10715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10716 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10717 if test $ac_cv_lib_dld_shl_load = yes; then
10718   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10719 else
10720   { echo "$as_me:$LINENO: checking for dlopen" >&5
10721 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10722 if test "${ac_cv_func_dlopen+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10733 #define dlopen innocuous_dlopen
10734
10735 /* System header to define __stub macros and hopefully few prototypes,
10736     which can conflict with char dlopen (); below.
10737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10738     <limits.h> exists even on freestanding compilers.  */
10739
10740 #ifdef __STDC__
10741 # include <limits.h>
10742 #else
10743 # include <assert.h>
10744 #endif
10745
10746 #undef dlopen
10747
10748 /* Override any GCC internal prototype to avoid an error.
10749    Use char because int might match the return type of a GCC
10750    builtin and then its argument prototype would still apply.  */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char dlopen ();
10755 /* The GNU C library defines this for functions which it implements
10756     to always fail with ENOSYS.  Some functions are actually named
10757     something starting with __ and the normal name is an alias.  */
10758 #if defined __stub_dlopen || defined __stub___dlopen
10759 choke me
10760 #endif
10761
10762 int
10763 main ()
10764 {
10765 return dlopen ();
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_link") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } && {
10784          test -z "$ac_c_werror_flag" ||
10785          test ! -s conftest.err
10786        } && test -s conftest$ac_exeext &&
10787        $as_test_x conftest$ac_exeext; then
10788   ac_cv_func_dlopen=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793         ac_cv_func_dlopen=no
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797       conftest$ac_exeext conftest.$ac_ext
10798 fi
10799 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10800 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10801 if test $ac_cv_func_dlopen = yes; then
10802   lt_cv_dlopen="dlopen"
10803 else
10804   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10805 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10806 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   ac_check_lib_save_LIBS=$LIBS
10810 LIBS="-ldl  $LIBS"
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819    Use char because int might match the return type of a GCC
10820    builtin and then its argument prototype would still apply.  */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char dlopen ();
10825 int
10826 main ()
10827 {
10828 return dlopen ();
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840   (eval "$ac_link") 2>conftest.er1
10841   ac_status=$?
10842   grep -v '^ *+' conftest.er1 >conftest.err
10843   rm -f conftest.er1
10844   cat conftest.err >&5
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } && {
10847          test -z "$ac_c_werror_flag" ||
10848          test ! -s conftest.err
10849        } && test -s conftest$ac_exeext &&
10850        $as_test_x conftest$ac_exeext; then
10851   ac_cv_lib_dl_dlopen=yes
10852 else
10853   echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856         ac_cv_lib_dl_dlopen=no
10857 fi
10858
10859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10860       conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10862 fi
10863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10865 if test $ac_cv_lib_dl_dlopen = yes; then
10866   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10867 else
10868   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld  $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881
10882 /* Override any GCC internal prototype to avoid an error.
10883    Use char because int might match the return type of a GCC
10884    builtin and then its argument prototype would still apply.  */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char dlopen ();
10889 int
10890 main ()
10891 {
10892 return dlopen ();
10893   ;
10894   return 0;
10895 }
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (ac_try="$ac_link"
10899 case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_link") 2>conftest.er1
10905   ac_status=$?
10906   grep -v '^ *+' conftest.er1 >conftest.err
10907   rm -f conftest.er1
10908   cat conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } && {
10911          test -z "$ac_c_werror_flag" ||
10912          test ! -s conftest.err
10913        } && test -s conftest$ac_exeext &&
10914        $as_test_x conftest$ac_exeext; then
10915   ac_cv_lib_svld_dlopen=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920         ac_cv_lib_svld_dlopen=no
10921 fi
10922
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924       conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10926 fi
10927 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10928 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10929 if test $ac_cv_lib_svld_dlopen = yes; then
10930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10931 else
10932   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-ldld  $LIBS"
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h.  */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h.  */
10945
10946 /* Override any GCC internal prototype to avoid an error.
10947    Use char because int might match the return type of a GCC
10948    builtin and then its argument prototype would still apply.  */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char dld_link ();
10953 int
10954 main ()
10955 {
10956 return dld_link ();
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_link") 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } && {
10975          test -z "$ac_c_werror_flag" ||
10976          test ! -s conftest.err
10977        } && test -s conftest$ac_exeext &&
10978        $as_test_x conftest$ac_exeext; then
10979   ac_cv_lib_dld_dld_link=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984         ac_cv_lib_dld_dld_link=no
10985 fi
10986
10987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10988       conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10993 if test $ac_cv_lib_dld_dld_link = yes; then
10994   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10995 fi
10996
10997
10998 fi
10999
11000
11001 fi
11002
11003
11004 fi
11005
11006
11007 fi
11008
11009
11010 fi
11011
11012     ;;
11013   esac
11014
11015   if test "x$lt_cv_dlopen" != xno; then
11016     enable_dlopen=yes
11017   else
11018     enable_dlopen=no
11019   fi
11020
11021   case $lt_cv_dlopen in
11022   dlopen)
11023     save_CPPFLAGS="$CPPFLAGS"
11024     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11025
11026     save_LDFLAGS="$LDFLAGS"
11027     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11028
11029     save_LIBS="$LIBS"
11030     LIBS="$lt_cv_dlopen_libs $LIBS"
11031
11032     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11033 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11034 if test "${lt_cv_dlopen_self+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037           if test "$cross_compiling" = yes; then :
11038   lt_cv_dlopen_self=cross
11039 else
11040   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11041   lt_status=$lt_dlunknown
11042   cat > conftest.$ac_ext <<EOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11045
11046 #if HAVE_DLFCN_H
11047 #include <dlfcn.h>
11048 #endif
11049
11050 #include <stdio.h>
11051
11052 #ifdef RTLD_GLOBAL
11053 #  define LT_DLGLOBAL           RTLD_GLOBAL
11054 #else
11055 #  ifdef DL_GLOBAL
11056 #    define LT_DLGLOBAL         DL_GLOBAL
11057 #  else
11058 #    define LT_DLGLOBAL         0
11059 #  endif
11060 #endif
11061
11062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11063    find out it does not work in some platform. */
11064 #ifndef LT_DLLAZY_OR_NOW
11065 #  ifdef RTLD_LAZY
11066 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11067 #  else
11068 #    ifdef DL_LAZY
11069 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11070 #    else
11071 #      ifdef RTLD_NOW
11072 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11073 #      else
11074 #        ifdef DL_NOW
11075 #          define LT_DLLAZY_OR_NOW      DL_NOW
11076 #        else
11077 #          define LT_DLLAZY_OR_NOW      0
11078 #        endif
11079 #      endif
11080 #    endif
11081 #  endif
11082 #endif
11083
11084 #ifdef __cplusplus
11085 extern "C" void exit (int);
11086 #endif
11087
11088 void fnord() { int i=42;}
11089 int main ()
11090 {
11091   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092   int status = $lt_dlunknown;
11093
11094   if (self)
11095     {
11096       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11097       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11098       /* dlclose (self); */
11099     }
11100
11101     exit (status);
11102 }
11103 EOF
11104   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105   (eval $ac_link) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11109     (./conftest; exit; ) >&5 2>/dev/null
11110     lt_status=$?
11111     case x$lt_status in
11112       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11113       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11114       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11115     esac
11116   else :
11117     # compilation failed
11118     lt_cv_dlopen_self=no
11119   fi
11120 fi
11121 rm -fr conftest*
11122
11123
11124 fi
11125 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11126 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11127
11128     if test "x$lt_cv_dlopen_self" = xyes; then
11129       LDFLAGS="$LDFLAGS $link_static_flag"
11130       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11131 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11132 if test "${lt_cv_dlopen_self_static+set}" = set; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135           if test "$cross_compiling" = yes; then :
11136   lt_cv_dlopen_self_static=cross
11137 else
11138   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139   lt_status=$lt_dlunknown
11140   cat > conftest.$ac_ext <<EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11143
11144 #if HAVE_DLFCN_H
11145 #include <dlfcn.h>
11146 #endif
11147
11148 #include <stdio.h>
11149
11150 #ifdef RTLD_GLOBAL
11151 #  define LT_DLGLOBAL           RTLD_GLOBAL
11152 #else
11153 #  ifdef DL_GLOBAL
11154 #    define LT_DLGLOBAL         DL_GLOBAL
11155 #  else
11156 #    define LT_DLGLOBAL         0
11157 #  endif
11158 #endif
11159
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161    find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11163 #  ifdef RTLD_LAZY
11164 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11165 #  else
11166 #    ifdef DL_LAZY
11167 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11168 #    else
11169 #      ifdef RTLD_NOW
11170 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11171 #      else
11172 #        ifdef DL_NOW
11173 #          define LT_DLLAZY_OR_NOW      DL_NOW
11174 #        else
11175 #          define LT_DLLAZY_OR_NOW      0
11176 #        endif
11177 #      endif
11178 #    endif
11179 #  endif
11180 #endif
11181
11182 #ifdef __cplusplus
11183 extern "C" void exit (int);
11184 #endif
11185
11186 void fnord() { int i=42;}
11187 int main ()
11188 {
11189   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190   int status = $lt_dlunknown;
11191
11192   if (self)
11193     {
11194       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11195       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11196       /* dlclose (self); */
11197     }
11198
11199     exit (status);
11200 }
11201 EOF
11202   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203   (eval $ac_link) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207     (./conftest; exit; ) >&5 2>/dev/null
11208     lt_status=$?
11209     case x$lt_status in
11210       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11211       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11212       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11213     esac
11214   else :
11215     # compilation failed
11216     lt_cv_dlopen_self_static=no
11217   fi
11218 fi
11219 rm -fr conftest*
11220
11221
11222 fi
11223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11224 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11225     fi
11226
11227     CPPFLAGS="$save_CPPFLAGS"
11228     LDFLAGS="$save_LDFLAGS"
11229     LIBS="$save_LIBS"
11230     ;;
11231   esac
11232
11233   case $lt_cv_dlopen_self in
11234   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11235   *) enable_dlopen_self=unknown ;;
11236   esac
11237
11238   case $lt_cv_dlopen_self_static in
11239   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11240   *) enable_dlopen_self_static=unknown ;;
11241   esac
11242 fi
11243
11244
11245 # Report which librarie types wil actually be built
11246 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11247 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11248 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11249 echo "${ECHO_T}$can_build_shared" >&6; }
11250
11251 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11252 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11254
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11257 case $host_os in
11258 aix3*)
11259   test "$enable_shared" = yes && enable_static=no
11260   if test -n "$RANLIB"; then
11261     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262     postinstall_cmds='$RANLIB $lib'
11263   fi
11264   ;;
11265
11266 aix4* | aix5*)
11267   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268     test "$enable_shared" = yes && enable_static=no
11269   fi
11270     ;;
11271 esac
11272 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11273 echo "${ECHO_T}$enable_shared" >&6; }
11274
11275 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { echo "$as_me:$LINENO: result: $enable_static" >&5
11280 echo "${ECHO_T}$enable_static" >&6; }
11281
11282 # The else clause should only fire when bootstrapping the
11283 # libtool distribution, otherwise you forgot to ship ltmain.sh
11284 # with your package, and you will get complaints that there are
11285 # no rules to generate ltmain.sh.
11286 if test -f "$ltmain"; then
11287   # See if we are running on zsh, and set the options which allow our commands through
11288   # without removal of \ escapes.
11289   if test -n "${ZSH_VERSION+set}" ; then
11290     setopt NO_GLOB_SUBST
11291   fi
11292   # Now quote all the things that may contain metacharacters while being
11293   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11294   # variables and quote the copies for generation of the libtool script.
11295   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11296     SED SHELL STRIP \
11297     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11298     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11299     deplibs_check_method reload_flag reload_cmds need_locks \
11300     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11301     lt_cv_sys_global_symbol_to_c_name_address \
11302     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11303     old_postinstall_cmds old_postuninstall_cmds \
11304     compiler \
11305     CC \
11306     LD \
11307     lt_prog_compiler_wl \
11308     lt_prog_compiler_pic \
11309     lt_prog_compiler_static \
11310     lt_prog_compiler_no_builtin_flag \
11311     export_dynamic_flag_spec \
11312     thread_safe_flag_spec \
11313     whole_archive_flag_spec \
11314     enable_shared_with_static_runtimes \
11315     old_archive_cmds \
11316     old_archive_from_new_cmds \
11317     predep_objects \
11318     postdep_objects \
11319     predeps \
11320     postdeps \
11321     compiler_lib_search_path \
11322     archive_cmds \
11323     archive_expsym_cmds \
11324     postinstall_cmds \
11325     postuninstall_cmds \
11326     old_archive_from_expsyms_cmds \
11327     allow_undefined_flag \
11328     no_undefined_flag \
11329     export_symbols_cmds \
11330     hardcode_libdir_flag_spec \
11331     hardcode_libdir_flag_spec_ld \
11332     hardcode_libdir_separator \
11333     hardcode_automatic \
11334     module_cmds \
11335     module_expsym_cmds \
11336     lt_cv_prog_compiler_c_o \
11337     exclude_expsyms \
11338     include_expsyms; do
11339
11340     case $var in
11341     old_archive_cmds | \
11342     old_archive_from_new_cmds | \
11343     archive_cmds | \
11344     archive_expsym_cmds | \
11345     module_cmds | \
11346     module_expsym_cmds | \
11347     old_archive_from_expsyms_cmds | \
11348     export_symbols_cmds | \
11349     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11350     postinstall_cmds | postuninstall_cmds | \
11351     old_postinstall_cmds | old_postuninstall_cmds | \
11352     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11353       # Double-quote double-evaled strings.
11354       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11355       ;;
11356     *)
11357       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11358       ;;
11359     esac
11360   done
11361
11362   case $lt_echo in
11363   *'\$0 --fallback-echo"')
11364     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11365     ;;
11366   esac
11367
11368 cfgfile="${ofile}T"
11369   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11370   $rm -f "$cfgfile"
11371   { echo "$as_me:$LINENO: creating $ofile" >&5
11372 echo "$as_me: creating $ofile" >&6;}
11373
11374   cat <<__EOF__ >> "$cfgfile"
11375 #! $SHELL
11376
11377 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11378 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11380 #
11381 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11382 # Free Software Foundation, Inc.
11383 #
11384 # This file is part of GNU Libtool:
11385 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11386 #
11387 # This program is free software; you can redistribute it and/or modify
11388 # it under the terms of the GNU General Public License as published by
11389 # the Free Software Foundation; either version 2 of the License, or
11390 # (at your option) any later version.
11391 #
11392 # This program is distributed in the hope that it will be useful, but
11393 # WITHOUT ANY WARRANTY; without even the implied warranty of
11394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11395 # General Public License for more details.
11396 #
11397 # You should have received a copy of the GNU General Public License
11398 # along with this program; if not, write to the Free Software
11399 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11400 #
11401 # As a special exception to the GNU General Public License, if you
11402 # distribute this file as part of a program that contains a
11403 # configuration script generated by Autoconf, you may include it under
11404 # the same distribution terms that you use for the rest of that program.
11405
11406 # A sed program that does not truncate output.
11407 SED=$lt_SED
11408
11409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11410 Xsed="$SED -e 1s/^X//"
11411
11412 # The HP-UX ksh and POSIX shell print the target directory to stdout
11413 # if CDPATH is set.
11414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11415
11416 # The names of the tagged configurations supported by this script.
11417 available_tags=
11418
11419 # ### BEGIN LIBTOOL CONFIG
11420
11421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11422
11423 # Shell to use when invoking shell scripts.
11424 SHELL=$lt_SHELL
11425
11426 # Whether or not to build shared libraries.
11427 build_libtool_libs=$enable_shared
11428
11429 # Whether or not to build static libraries.
11430 build_old_libs=$enable_static
11431
11432 # Whether or not to add -lc for building shared libraries.
11433 build_libtool_need_lc=$archive_cmds_need_lc
11434
11435 # Whether or not to disallow shared libs when runtime libs are static
11436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11437
11438 # Whether or not to optimize for fast installation.
11439 fast_install=$enable_fast_install
11440
11441 # The host system.
11442 host_alias=$host_alias
11443 host=$host
11444 host_os=$host_os
11445
11446 # The build system.
11447 build_alias=$build_alias
11448 build=$build
11449 build_os=$build_os
11450
11451 # An echo program that does not interpret backslashes.
11452 echo=$lt_echo
11453
11454 # The archiver.
11455 AR=$lt_AR
11456 AR_FLAGS=$lt_AR_FLAGS
11457
11458 # A C compiler.
11459 LTCC=$lt_LTCC
11460
11461 # A language-specific compiler.
11462 CC=$lt_compiler
11463
11464 # Is the compiler the GNU C compiler?
11465 with_gcc=$GCC
11466
11467 # An ERE matcher.
11468 EGREP=$lt_EGREP
11469
11470 # The linker used to build libraries.
11471 LD=$lt_LD
11472
11473 # Whether we need hard or soft links.
11474 LN_S=$lt_LN_S
11475
11476 # A BSD-compatible nm program.
11477 NM=$lt_NM
11478
11479 # A symbol stripping program
11480 STRIP=$lt_STRIP
11481
11482 # Used to examine libraries when file_magic_cmd begins "file"
11483 MAGIC_CMD=$MAGIC_CMD
11484
11485 # Used on cygwin: DLL creation program.
11486 DLLTOOL="$DLLTOOL"
11487
11488 # Used on cygwin: object dumper.
11489 OBJDUMP="$OBJDUMP"
11490
11491 # Used on cygwin: assembler.
11492 AS="$AS"
11493
11494 # The name of the directory that contains temporary libtool files.
11495 objdir=$objdir
11496
11497 # How to create reloadable object files.
11498 reload_flag=$lt_reload_flag
11499 reload_cmds=$lt_reload_cmds
11500
11501 # How to pass a linker flag through the compiler.
11502 wl=$lt_lt_prog_compiler_wl
11503
11504 # Object file suffix (normally "o").
11505 objext="$ac_objext"
11506
11507 # Old archive suffix (normally "a").
11508 libext="$libext"
11509
11510 # Shared library suffix (normally ".so").
11511 shrext_cmds='$shrext_cmds'
11512
11513 # Executable file suffix (normally "").
11514 exeext="$exeext"
11515
11516 # Additional compiler flags for building library objects.
11517 pic_flag=$lt_lt_prog_compiler_pic
11518 pic_mode=$pic_mode
11519
11520 # What is the maximum length of a command?
11521 max_cmd_len=$lt_cv_sys_max_cmd_len
11522
11523 # Does compiler simultaneously support -c and -o options?
11524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11525
11526 # Must we lock files when doing compilation?
11527 need_locks=$lt_need_locks
11528
11529 # Do we need the lib prefix for modules?
11530 need_lib_prefix=$need_lib_prefix
11531
11532 # Do we need a version for libraries?
11533 need_version=$need_version
11534
11535 # Whether dlopen is supported.
11536 dlopen_support=$enable_dlopen
11537
11538 # Whether dlopen of programs is supported.
11539 dlopen_self=$enable_dlopen_self
11540
11541 # Whether dlopen of statically linked programs is supported.
11542 dlopen_self_static=$enable_dlopen_self_static
11543
11544 # Compiler flag to prevent dynamic linking.
11545 link_static_flag=$lt_lt_prog_compiler_static
11546
11547 # Compiler flag to turn off builtin functions.
11548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11549
11550 # Compiler flag to allow reflexive dlopens.
11551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11552
11553 # Compiler flag to generate shared objects directly from archives.
11554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11555
11556 # Compiler flag to generate thread-safe objects.
11557 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11558
11559 # Library versioning type.
11560 version_type=$version_type
11561
11562 # Format of library name prefix.
11563 libname_spec=$lt_libname_spec
11564
11565 # List of archive names.  First name is the real one, the rest are links.
11566 # The last name is the one that the linker finds with -lNAME.
11567 library_names_spec=$lt_library_names_spec
11568
11569 # The coded name of the library, if different from the real name.
11570 soname_spec=$lt_soname_spec
11571
11572 # Commands used to build and install an old-style archive.
11573 RANLIB=$lt_RANLIB
11574 old_archive_cmds=$lt_old_archive_cmds
11575 old_postinstall_cmds=$lt_old_postinstall_cmds
11576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11577
11578 # Create an old-style archive from a shared archive.
11579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11580
11581 # Create a temporary old-style archive to link instead of a shared archive.
11582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11583
11584 # Commands used to build and install a shared archive.
11585 archive_cmds=$lt_archive_cmds
11586 archive_expsym_cmds=$lt_archive_expsym_cmds
11587 postinstall_cmds=$lt_postinstall_cmds
11588 postuninstall_cmds=$lt_postuninstall_cmds
11589
11590 # Commands used to build a loadable module (assumed same as above if empty)
11591 module_cmds=$lt_module_cmds
11592 module_expsym_cmds=$lt_module_expsym_cmds
11593
11594 # Commands to strip libraries.
11595 old_striplib=$lt_old_striplib
11596 striplib=$lt_striplib
11597
11598 # Dependencies to place before the objects being linked to create a
11599 # shared library.
11600 predep_objects=$lt_predep_objects
11601
11602 # Dependencies to place after the objects being linked to create a
11603 # shared library.
11604 postdep_objects=$lt_postdep_objects
11605
11606 # Dependencies to place before the objects being linked to create a
11607 # shared library.
11608 predeps=$lt_predeps
11609
11610 # Dependencies to place after the objects being linked to create a
11611 # shared library.
11612 postdeps=$lt_postdeps
11613
11614 # The library search path used internally by the compiler when linking
11615 # a shared library.
11616 compiler_lib_search_path=$lt_compiler_lib_search_path
11617
11618 # Method to check whether dependent libraries are shared objects.
11619 deplibs_check_method=$lt_deplibs_check_method
11620
11621 # Command to use when deplibs_check_method == file_magic.
11622 file_magic_cmd=$lt_file_magic_cmd
11623
11624 # Flag that allows shared libraries with undefined symbols to be built.
11625 allow_undefined_flag=$lt_allow_undefined_flag
11626
11627 # Flag that forces no undefined symbols.
11628 no_undefined_flag=$lt_no_undefined_flag
11629
11630 # Commands used to finish a libtool library installation in a directory.
11631 finish_cmds=$lt_finish_cmds
11632
11633 # Same as above, but a single script fragment to be evaled but not shown.
11634 finish_eval=$lt_finish_eval
11635
11636 # Take the output of nm and produce a listing of raw symbols and C names.
11637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11638
11639 # Transform the output of nm in a proper C declaration
11640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11641
11642 # Transform the output of nm in a C name address pair
11643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11644
11645 # This is the shared library runtime path variable.
11646 runpath_var=$runpath_var
11647
11648 # This is the shared library path variable.
11649 shlibpath_var=$shlibpath_var
11650
11651 # Is shlibpath searched before the hard-coded library search path?
11652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11653
11654 # How to hardcode a shared library path into an executable.
11655 hardcode_action=$hardcode_action
11656
11657 # Whether we should hardcode library paths into libraries.
11658 hardcode_into_libs=$hardcode_into_libs
11659
11660 # Flag to hardcode \$libdir into a binary during linking.
11661 # This must work even if \$libdir does not exist.
11662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11663
11664 # If ld is used when linking, flag to hardcode \$libdir into
11665 # a binary during linking. This must work even if \$libdir does
11666 # not exist.
11667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11668
11669 # Whether we need a single -rpath flag with a separated argument.
11670 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11671
11672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_direct=$hardcode_direct
11675
11676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11677 # resulting binary.
11678 hardcode_minus_L=$hardcode_minus_L
11679
11680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11681 # the resulting binary.
11682 hardcode_shlibpath_var=$hardcode_shlibpath_var
11683
11684 # Set to yes if building a shared library automatically hardcodes DIR into the library
11685 # and all subsequent libraries and executables linked against it.
11686 hardcode_automatic=$hardcode_automatic
11687
11688 # Variables whose values should be saved in libtool wrapper scripts and
11689 # restored at relink time.
11690 variables_saved_for_relink="$variables_saved_for_relink"
11691
11692 # Whether libtool must link a program against all its dependency libraries.
11693 link_all_deplibs=$link_all_deplibs
11694
11695 # Compile-time system search path for libraries
11696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11697
11698 # Run-time system search path for libraries
11699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11700
11701 # Fix the shell variable \$srcfile for the compiler.
11702 fix_srcfile_path="$fix_srcfile_path"
11703
11704 # Set to yes if exported symbols are required.
11705 always_export_symbols=$always_export_symbols
11706
11707 # The commands to list exported symbols.
11708 export_symbols_cmds=$lt_export_symbols_cmds
11709
11710 # The commands to extract the exported symbol list from a shared archive.
11711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11712
11713 # Symbols that should not be listed in the preloaded symbols.
11714 exclude_expsyms=$lt_exclude_expsyms
11715
11716 # Symbols that must always be exported.
11717 include_expsyms=$lt_include_expsyms
11718
11719 # ### END LIBTOOL CONFIG
11720
11721 __EOF__
11722
11723
11724   case $host_os in
11725   aix3*)
11726     cat <<\EOF >> "$cfgfile"
11727
11728 # AIX sometimes has problems with the GCC collect2 program.  For some
11729 # reason, if we set the COLLECT_NAMES environment variable, the problems
11730 # vanish in a puff of smoke.
11731 if test "X${COLLECT_NAMES+set}" != Xset; then
11732   COLLECT_NAMES=
11733   export COLLECT_NAMES
11734 fi
11735 EOF
11736     ;;
11737   esac
11738
11739   # We use sed instead of cat because bash on DJGPP gets confused if
11740   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11741   # text mode, it properly converts lines to CR/LF.  This bash problem
11742   # is reportedly fixed, but why not run on old versions too?
11743   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11744
11745   mv -f "$cfgfile" "$ofile" || \
11746     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11747   chmod +x "$ofile"
11748
11749 else
11750   # If there is no Makefile yet, we rely on a make rule to execute
11751   # `config.status --recheck' to rerun these tests and create the
11752   # libtool script then.
11753   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11754   if test -f "$ltmain_in"; then
11755     test -f Makefile && make "$ltmain"
11756   fi
11757 fi
11758
11759
11760 ac_ext=c
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766 CC="$lt_save_CC"
11767
11768
11769 # Check whether --with-tags was given.
11770 if test "${with_tags+set}" = set; then
11771   withval=$with_tags; tagnames="$withval"
11772 fi
11773
11774
11775 if test -f "$ltmain" && test -n "$tagnames"; then
11776   if test ! -f "${ofile}"; then
11777     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11778 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11779   fi
11780
11781   if test -z "$LTCC"; then
11782     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11783     if test -z "$LTCC"; then
11784       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11785 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11786     else
11787       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11788 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11789     fi
11790   fi
11791
11792   # Extract list of available tagged configurations in $ofile.
11793   # Note that this assumes the entire list is on one line.
11794   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11795
11796   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11797   for tagname in $tagnames; do
11798     IFS="$lt_save_ifs"
11799     # Check whether tagname contains only valid characters
11800     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11801     "") ;;
11802     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11803 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11804    { (exit 1); exit 1; }; }
11805         ;;
11806     esac
11807
11808     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11809     then
11810       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11811 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11812    { (exit 1); exit 1; }; }
11813     fi
11814
11815     # Update the list of available tags.
11816     if test -n "$tagname"; then
11817       echo appending configuration tag \"$tagname\" to $ofile
11818
11819       case $tagname in
11820       CXX)
11821         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11822             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11823             (test "X$CXX" != "Xg++"))) ; then
11824           :
11825         else
11826           tagname=""
11827         fi
11828         ;;
11829
11830       F77)
11831         if test -n "$F77" && test "X$F77" != "Xno"; then
11832           :
11833         else
11834           tagname=""
11835         fi
11836         ;;
11837
11838       GCJ)
11839         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11840           :
11841         else
11842           tagname=""
11843         fi
11844         ;;
11845
11846       RC)
11847
11848
11849 # Source file extension for RC test sources.
11850 ac_ext=rc
11851
11852 # Object file extension for compiled RC test sources.
11853 objext=o
11854 objext_RC=$objext
11855
11856 # Code to be used in simple compile tests
11857 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11858
11859 # Code to be used in simple link tests
11860 lt_simple_link_test_code="$lt_simple_compile_test_code"
11861
11862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11863
11864 # If no C compiler was specified, use CC.
11865 LTCC=${LTCC-"$CC"}
11866
11867 # Allow CC to be a program name with arguments.
11868 compiler=$CC
11869
11870
11871 # save warnings/boilerplate of simple test code
11872 ac_outfile=conftest.$ac_objext
11873 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11875 _lt_compiler_boilerplate=`cat conftest.err`
11876 $rm conftest*
11877
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_linker_boilerplate=`cat conftest.err`
11882 $rm conftest*
11883
11884
11885 # Allow CC to be a program name with arguments.
11886 lt_save_CC="$CC"
11887 CC=${RC-"windres"}
11888 compiler=$CC
11889 compiler_RC=$CC
11890 for cc_temp in $compiler""; do
11891   case $cc_temp in
11892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11894     \-*) ;;
11895     *) break;;
11896   esac
11897 done
11898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11899
11900 lt_cv_prog_compiler_c_o_RC=yes
11901
11902 # The else clause should only fire when bootstrapping the
11903 # libtool distribution, otherwise you forgot to ship ltmain.sh
11904 # with your package, and you will get complaints that there are
11905 # no rules to generate ltmain.sh.
11906 if test -f "$ltmain"; then
11907   # See if we are running on zsh, and set the options which allow our commands through
11908   # without removal of \ escapes.
11909   if test -n "${ZSH_VERSION+set}" ; then
11910     setopt NO_GLOB_SUBST
11911   fi
11912   # Now quote all the things that may contain metacharacters while being
11913   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11914   # variables and quote the copies for generation of the libtool script.
11915   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11916     SED SHELL STRIP \
11917     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11918     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11919     deplibs_check_method reload_flag reload_cmds need_locks \
11920     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11921     lt_cv_sys_global_symbol_to_c_name_address \
11922     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11923     old_postinstall_cmds old_postuninstall_cmds \
11924     compiler_RC \
11925     CC_RC \
11926     LD_RC \
11927     lt_prog_compiler_wl_RC \
11928     lt_prog_compiler_pic_RC \
11929     lt_prog_compiler_static_RC \
11930     lt_prog_compiler_no_builtin_flag_RC \
11931     export_dynamic_flag_spec_RC \
11932     thread_safe_flag_spec_RC \
11933     whole_archive_flag_spec_RC \
11934     enable_shared_with_static_runtimes_RC \
11935     old_archive_cmds_RC \
11936     old_archive_from_new_cmds_RC \
11937     predep_objects_RC \
11938     postdep_objects_RC \
11939     predeps_RC \
11940     postdeps_RC \
11941     compiler_lib_search_path_RC \
11942     archive_cmds_RC \
11943     archive_expsym_cmds_RC \
11944     postinstall_cmds_RC \
11945     postuninstall_cmds_RC \
11946     old_archive_from_expsyms_cmds_RC \
11947     allow_undefined_flag_RC \
11948     no_undefined_flag_RC \
11949     export_symbols_cmds_RC \
11950     hardcode_libdir_flag_spec_RC \
11951     hardcode_libdir_flag_spec_ld_RC \
11952     hardcode_libdir_separator_RC \
11953     hardcode_automatic_RC \
11954     module_cmds_RC \
11955     module_expsym_cmds_RC \
11956     lt_cv_prog_compiler_c_o_RC \
11957     exclude_expsyms_RC \
11958     include_expsyms_RC; do
11959
11960     case $var in
11961     old_archive_cmds_RC | \
11962     old_archive_from_new_cmds_RC | \
11963     archive_cmds_RC | \
11964     archive_expsym_cmds_RC | \
11965     module_cmds_RC | \
11966     module_expsym_cmds_RC | \
11967     old_archive_from_expsyms_cmds_RC | \
11968     export_symbols_cmds_RC | \
11969     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11970     postinstall_cmds | postuninstall_cmds | \
11971     old_postinstall_cmds | old_postuninstall_cmds | \
11972     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11973       # Double-quote double-evaled strings.
11974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11975       ;;
11976     *)
11977       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11978       ;;
11979     esac
11980   done
11981
11982   case $lt_echo in
11983   *'\$0 --fallback-echo"')
11984     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11985     ;;
11986   esac
11987
11988 cfgfile="$ofile"
11989
11990   cat <<__EOF__ >> "$cfgfile"
11991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11992
11993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11994
11995 # Shell to use when invoking shell scripts.
11996 SHELL=$lt_SHELL
11997
11998 # Whether or not to build shared libraries.
11999 build_libtool_libs=$enable_shared
12000
12001 # Whether or not to build static libraries.
12002 build_old_libs=$enable_static
12003
12004 # Whether or not to add -lc for building shared libraries.
12005 build_libtool_need_lc=$archive_cmds_need_lc_RC
12006
12007 # Whether or not to disallow shared libs when runtime libs are static
12008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12009
12010 # Whether or not to optimize for fast installation.
12011 fast_install=$enable_fast_install
12012
12013 # The host system.
12014 host_alias=$host_alias
12015 host=$host
12016 host_os=$host_os
12017
12018 # The build system.
12019 build_alias=$build_alias
12020 build=$build
12021 build_os=$build_os
12022
12023 # An echo program that does not interpret backslashes.
12024 echo=$lt_echo
12025
12026 # The archiver.
12027 AR=$lt_AR
12028 AR_FLAGS=$lt_AR_FLAGS
12029
12030 # A C compiler.
12031 LTCC=$lt_LTCC
12032
12033 # A language-specific compiler.
12034 CC=$lt_compiler_RC
12035
12036 # Is the compiler the GNU C compiler?
12037 with_gcc=$GCC_RC
12038
12039 # An ERE matcher.
12040 EGREP=$lt_EGREP
12041
12042 # The linker used to build libraries.
12043 LD=$lt_LD_RC
12044
12045 # Whether we need hard or soft links.
12046 LN_S=$lt_LN_S
12047
12048 # A BSD-compatible nm program.
12049 NM=$lt_NM
12050
12051 # A symbol stripping program
12052 STRIP=$lt_STRIP
12053
12054 # Used to examine libraries when file_magic_cmd begins "file"
12055 MAGIC_CMD=$MAGIC_CMD
12056
12057 # Used on cygwin: DLL creation program.
12058 DLLTOOL="$DLLTOOL"
12059
12060 # Used on cygwin: object dumper.
12061 OBJDUMP="$OBJDUMP"
12062
12063 # Used on cygwin: assembler.
12064 AS="$AS"
12065
12066 # The name of the directory that contains temporary libtool files.
12067 objdir=$objdir
12068
12069 # How to create reloadable object files.
12070 reload_flag=$lt_reload_flag
12071 reload_cmds=$lt_reload_cmds
12072
12073 # How to pass a linker flag through the compiler.
12074 wl=$lt_lt_prog_compiler_wl_RC
12075
12076 # Object file suffix (normally "o").
12077 objext="$ac_objext"
12078
12079 # Old archive suffix (normally "a").
12080 libext="$libext"
12081
12082 # Shared library suffix (normally ".so").
12083 shrext_cmds='$shrext_cmds'
12084
12085 # Executable file suffix (normally "").
12086 exeext="$exeext"
12087
12088 # Additional compiler flags for building library objects.
12089 pic_flag=$lt_lt_prog_compiler_pic_RC
12090 pic_mode=$pic_mode
12091
12092 # What is the maximum length of a command?
12093 max_cmd_len=$lt_cv_sys_max_cmd_len
12094
12095 # Does compiler simultaneously support -c and -o options?
12096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12097
12098 # Must we lock files when doing compilation?
12099 need_locks=$lt_need_locks
12100
12101 # Do we need the lib prefix for modules?
12102 need_lib_prefix=$need_lib_prefix
12103
12104 # Do we need a version for libraries?
12105 need_version=$need_version
12106
12107 # Whether dlopen is supported.
12108 dlopen_support=$enable_dlopen
12109
12110 # Whether dlopen of programs is supported.
12111 dlopen_self=$enable_dlopen_self
12112
12113 # Whether dlopen of statically linked programs is supported.
12114 dlopen_self_static=$enable_dlopen_self_static
12115
12116 # Compiler flag to prevent dynamic linking.
12117 link_static_flag=$lt_lt_prog_compiler_static_RC
12118
12119 # Compiler flag to turn off builtin functions.
12120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12121
12122 # Compiler flag to allow reflexive dlopens.
12123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12124
12125 # Compiler flag to generate shared objects directly from archives.
12126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12127
12128 # Compiler flag to generate thread-safe objects.
12129 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12130
12131 # Library versioning type.
12132 version_type=$version_type
12133
12134 # Format of library name prefix.
12135 libname_spec=$lt_libname_spec
12136
12137 # List of archive names.  First name is the real one, the rest are links.
12138 # The last name is the one that the linker finds with -lNAME.
12139 library_names_spec=$lt_library_names_spec
12140
12141 # The coded name of the library, if different from the real name.
12142 soname_spec=$lt_soname_spec
12143
12144 # Commands used to build and install an old-style archive.
12145 RANLIB=$lt_RANLIB
12146 old_archive_cmds=$lt_old_archive_cmds_RC
12147 old_postinstall_cmds=$lt_old_postinstall_cmds
12148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12149
12150 # Create an old-style archive from a shared archive.
12151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12152
12153 # Create a temporary old-style archive to link instead of a shared archive.
12154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12155
12156 # Commands used to build and install a shared archive.
12157 archive_cmds=$lt_archive_cmds_RC
12158 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12159 postinstall_cmds=$lt_postinstall_cmds
12160 postuninstall_cmds=$lt_postuninstall_cmds
12161
12162 # Commands used to build a loadable module (assumed same as above if empty)
12163 module_cmds=$lt_module_cmds_RC
12164 module_expsym_cmds=$lt_module_expsym_cmds_RC
12165
12166 # Commands to strip libraries.
12167 old_striplib=$lt_old_striplib
12168 striplib=$lt_striplib
12169
12170 # Dependencies to place before the objects being linked to create a
12171 # shared library.
12172 predep_objects=$lt_predep_objects_RC
12173
12174 # Dependencies to place after the objects being linked to create a
12175 # shared library.
12176 postdep_objects=$lt_postdep_objects_RC
12177
12178 # Dependencies to place before the objects being linked to create a
12179 # shared library.
12180 predeps=$lt_predeps_RC
12181
12182 # Dependencies to place after the objects being linked to create a
12183 # shared library.
12184 postdeps=$lt_postdeps_RC
12185
12186 # The library search path used internally by the compiler when linking
12187 # a shared library.
12188 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12189
12190 # Method to check whether dependent libraries are shared objects.
12191 deplibs_check_method=$lt_deplibs_check_method
12192
12193 # Command to use when deplibs_check_method == file_magic.
12194 file_magic_cmd=$lt_file_magic_cmd
12195
12196 # Flag that allows shared libraries with undefined symbols to be built.
12197 allow_undefined_flag=$lt_allow_undefined_flag_RC
12198
12199 # Flag that forces no undefined symbols.
12200 no_undefined_flag=$lt_no_undefined_flag_RC
12201
12202 # Commands used to finish a libtool library installation in a directory.
12203 finish_cmds=$lt_finish_cmds
12204
12205 # Same as above, but a single script fragment to be evaled but not shown.
12206 finish_eval=$lt_finish_eval
12207
12208 # Take the output of nm and produce a listing of raw symbols and C names.
12209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12210
12211 # Transform the output of nm in a proper C declaration
12212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12213
12214 # Transform the output of nm in a C name address pair
12215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12216
12217 # This is the shared library runtime path variable.
12218 runpath_var=$runpath_var
12219
12220 # This is the shared library path variable.
12221 shlibpath_var=$shlibpath_var
12222
12223 # Is shlibpath searched before the hard-coded library search path?
12224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12225
12226 # How to hardcode a shared library path into an executable.
12227 hardcode_action=$hardcode_action_RC
12228
12229 # Whether we should hardcode library paths into libraries.
12230 hardcode_into_libs=$hardcode_into_libs
12231
12232 # Flag to hardcode \$libdir into a binary during linking.
12233 # This must work even if \$libdir does not exist.
12234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12235
12236 # If ld is used when linking, flag to hardcode \$libdir into
12237 # a binary during linking. This must work even if \$libdir does
12238 # not exist.
12239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12240
12241 # Whether we need a single -rpath flag with a separated argument.
12242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12243
12244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12245 # resulting binary.
12246 hardcode_direct=$hardcode_direct_RC
12247
12248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12249 # resulting binary.
12250 hardcode_minus_L=$hardcode_minus_L_RC
12251
12252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12253 # the resulting binary.
12254 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12255
12256 # Set to yes if building a shared library automatically hardcodes DIR into the library
12257 # and all subsequent libraries and executables linked against it.
12258 hardcode_automatic=$hardcode_automatic_RC
12259
12260 # Variables whose values should be saved in libtool wrapper scripts and
12261 # restored at relink time.
12262 variables_saved_for_relink="$variables_saved_for_relink"
12263
12264 # Whether libtool must link a program against all its dependency libraries.
12265 link_all_deplibs=$link_all_deplibs_RC
12266
12267 # Compile-time system search path for libraries
12268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12269
12270 # Run-time system search path for libraries
12271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12272
12273 # Fix the shell variable \$srcfile for the compiler.
12274 fix_srcfile_path="$fix_srcfile_path_RC"
12275
12276 # Set to yes if exported symbols are required.
12277 always_export_symbols=$always_export_symbols_RC
12278
12279 # The commands to list exported symbols.
12280 export_symbols_cmds=$lt_export_symbols_cmds_RC
12281
12282 # The commands to extract the exported symbol list from a shared archive.
12283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12284
12285 # Symbols that should not be listed in the preloaded symbols.
12286 exclude_expsyms=$lt_exclude_expsyms_RC
12287
12288 # Symbols that must always be exported.
12289 include_expsyms=$lt_include_expsyms_RC
12290
12291 # ### END LIBTOOL TAG CONFIG: $tagname
12292
12293 __EOF__
12294
12295
12296 else
12297   # If there is no Makefile yet, we rely on a make rule to execute
12298   # `config.status --recheck' to rerun these tests and create the
12299   # libtool script then.
12300   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12301   if test -f "$ltmain_in"; then
12302     test -f Makefile && make "$ltmain"
12303   fi
12304 fi
12305
12306
12307 ac_ext=c
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12312
12313 CC="$lt_save_CC"
12314
12315         ;;
12316
12317       *)
12318         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12319 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12320    { (exit 1); exit 1; }; }
12321         ;;
12322       esac
12323
12324       # Append the new tag name to the list of available tags.
12325       if test -n "$tagname" ; then
12326       available_tags="$available_tags $tagname"
12327     fi
12328     fi
12329   done
12330   IFS="$lt_save_ifs"
12331
12332   # Now substitute the updated list of available tags.
12333   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12334     mv "${ofile}T" "$ofile"
12335     chmod +x "$ofile"
12336   else
12337     rm -f "${ofile}T"
12338     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12339 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12340    { (exit 1); exit 1; }; }
12341   fi
12342 fi
12343
12344
12345
12346 # This can be used to rebuild libtool when needed
12347 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12348
12349 # Always use our own libtool.
12350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12351
12352 # Prevent multiple expansion
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363 ol_link_perl=no
12364 if test $ol_enable_perl != no ; then
12365         # Extract the first word of "perl", so it can be a program name with args.
12366 set dummy perl; ac_word=$2
12367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12369 if test "${ac_cv_path_PERLBIN+set}" = set; then
12370   echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372   case $PERLBIN in
12373   [\\/]* | ?:[\\/]*)
12374   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12375   ;;
12376   *)
12377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12379 do
12380   IFS=$as_save_IFS
12381   test -z "$as_dir" && as_dir=.
12382   for ac_exec_ext in '' $ac_executable_extensions; do
12383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12386     break 2
12387   fi
12388 done
12389 done
12390 IFS=$as_save_IFS
12391
12392   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12393   ;;
12394 esac
12395 fi
12396 PERLBIN=$ac_cv_path_PERLBIN
12397 if test -n "$PERLBIN"; then
12398   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12399 echo "${ECHO_T}$PERLBIN" >&6; }
12400 else
12401   { echo "$as_me:$LINENO: result: no" >&5
12402 echo "${ECHO_T}no" >&6; }
12403 fi
12404
12405
12406
12407         if test "no$PERLBIN" = "no" ; then
12408                 if test $ol_enable_perl = yes ; then
12409                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12410 echo "$as_me: error: could not locate perl" >&2;}
12411    { (exit 1); exit 1; }; }
12412                 fi
12413
12414         else
12415                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12416                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12417
12418                 if test x"$ol_enable_perl" = "xyes" ; then
12419                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12420                 else
12421                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12422                 fi
12423                                 ol_link_perl=yes
12424         fi
12425 fi
12426
12427 ac_ext=c
12428 ac_cpp='$CPP $CPPFLAGS'
12429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12434 # On Suns, sometimes $CPP names a directory.
12435 if test -n "$CPP" && test -d "$CPP"; then
12436   CPP=
12437 fi
12438 if test -z "$CPP"; then
12439   if test "${ac_cv_prog_CPP+set}" = set; then
12440   echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442       # Double quotes because CPP needs to be expanded
12443     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12444     do
12445       ac_preproc_ok=false
12446 for ac_c_preproc_warn_flag in '' yes
12447 do
12448   # Use a header file that comes with gcc, so configuring glibc
12449   # with a fresh cross-compiler works.
12450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12451   # <limits.h> exists even on freestanding compilers.
12452   # On the NeXT, cc -E runs the code through the compiler's parser,
12453   # not just through cpp. "Syntax error" is here to catch this case.
12454   cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460 #ifdef __STDC__
12461 # include <limits.h>
12462 #else
12463 # include <assert.h>
12464 #endif
12465                      Syntax error
12466 _ACEOF
12467 if { (ac_try="$ac_cpp conftest.$ac_ext"
12468 case "(($ac_try" in
12469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470   *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12474   ac_status=$?
12475   grep -v '^ *+' conftest.er1 >conftest.err
12476   rm -f conftest.er1
12477   cat conftest.err >&5
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } >/dev/null && {
12480          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12481          test ! -s conftest.err
12482        }; then
12483   :
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488   # Broken: fails on valid input.
12489 continue
12490 fi
12491
12492 rm -f conftest.err conftest.$ac_ext
12493
12494   # OK, works on sane cases.  Now check whether nonexistent headers
12495   # can be detected and how.
12496   cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502 #include <ac_nonexistent.h>
12503 _ACEOF
12504 if { (ac_try="$ac_cpp conftest.$ac_ext"
12505 case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } >/dev/null && {
12517          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12518          test ! -s conftest.err
12519        }; then
12520   # Broken: success on invalid input.
12521 continue
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526   # Passes both tests.
12527 ac_preproc_ok=:
12528 break
12529 fi
12530
12531 rm -f conftest.err conftest.$ac_ext
12532
12533 done
12534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12535 rm -f conftest.err conftest.$ac_ext
12536 if $ac_preproc_ok; then
12537   break
12538 fi
12539
12540     done
12541     ac_cv_prog_CPP=$CPP
12542
12543 fi
12544   CPP=$ac_cv_prog_CPP
12545 else
12546   ac_cv_prog_CPP=$CPP
12547 fi
12548 { echo "$as_me:$LINENO: result: $CPP" >&5
12549 echo "${ECHO_T}$CPP" >&6; }
12550 ac_preproc_ok=false
12551 for ac_c_preproc_warn_flag in '' yes
12552 do
12553   # Use a header file that comes with gcc, so configuring glibc
12554   # with a fresh cross-compiler works.
12555   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556   # <limits.h> exists even on freestanding compilers.
12557   # On the NeXT, cc -E runs the code through the compiler's parser,
12558   # not just through cpp. "Syntax error" is here to catch this case.
12559   cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 #ifdef __STDC__
12566 # include <limits.h>
12567 #else
12568 # include <assert.h>
12569 #endif
12570                      Syntax error
12571 _ACEOF
12572 if { (ac_try="$ac_cpp conftest.$ac_ext"
12573 case "(($ac_try" in
12574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575   *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12579   ac_status=$?
12580   grep -v '^ *+' conftest.er1 >conftest.err
12581   rm -f conftest.er1
12582   cat conftest.err >&5
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } >/dev/null && {
12585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12586          test ! -s conftest.err
12587        }; then
12588   :
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593   # Broken: fails on valid input.
12594 continue
12595 fi
12596
12597 rm -f conftest.err conftest.$ac_ext
12598
12599   # OK, works on sane cases.  Now check whether nonexistent headers
12600   # can be detected and how.
12601   cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 #include <ac_nonexistent.h>
12608 _ACEOF
12609 if { (ac_try="$ac_cpp conftest.$ac_ext"
12610 case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12616   ac_status=$?
12617   grep -v '^ *+' conftest.er1 >conftest.err
12618   rm -f conftest.er1
12619   cat conftest.err >&5
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); } >/dev/null && {
12622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12623          test ! -s conftest.err
12624        }; then
12625   # Broken: success on invalid input.
12626 continue
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631   # Passes both tests.
12632 ac_preproc_ok=:
12633 break
12634 fi
12635
12636 rm -f conftest.err conftest.$ac_ext
12637
12638 done
12639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12640 rm -f conftest.err conftest.$ac_ext
12641 if $ac_preproc_ok; then
12642   :
12643 else
12644   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12645 See \`config.log' for more details." >&5
12646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12647 See \`config.log' for more details." >&2;}
12648    { (exit 1); exit 1; }; }
12649 fi
12650
12651 ac_ext=c
12652 ac_cpp='$CPP $CPPFLAGS'
12653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12656
12657 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12658 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12659 if test "${ol_cv_msvc+set}" = set; then
12660   echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662   cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h.  */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h.  */
12668
12669 #ifndef _MSC_VER
12670 #include <__FOO__/generate_error.h>
12671 #endif
12672
12673 _ACEOF
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } >/dev/null && {
12687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12688          test ! -s conftest.err
12689        }; then
12690   ol_cv_msvc=yes
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695   ol_cv_msvc=no
12696 fi
12697
12698 rm -f conftest.err conftest.$ac_ext
12699 fi
12700 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12701 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12702
12703 case $host_os in
12704   *mingw32* ) ac_cv_mingw32=yes ;;
12705   *cygwin* ) ac_cv_cygwin=yes ;;
12706   *interix* ) ac_cv_interix=yes ;;
12707 esac
12708
12709
12710
12711
12712 cat >>confdefs.h <<_ACEOF
12713 #define EXEEXT "${EXEEXT}"
12714 _ACEOF
12715
12716
12717 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12718 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12719 if test "${ac_cv_lib_be_be_app+set}" = set; then
12720   echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722   ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lbe -lroot -lnet $LIBS"
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h.  */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h.  */
12730
12731 /* Override any GCC internal prototype to avoid an error.
12732    Use char because int might match the return type of a GCC
12733    builtin and then its argument prototype would still apply.  */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 char be_app ();
12738 int
12739 main ()
12740 {
12741 return be_app ();
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753   (eval "$ac_link") 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } && {
12760          test -z "$ac_c_werror_flag" ||
12761          test ! -s conftest.err
12762        } && test -s conftest$ac_exeext &&
12763        $as_test_x conftest$ac_exeext; then
12764   ac_cv_lib_be_be_app=yes
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769         ac_cv_lib_be_be_app=no
12770 fi
12771
12772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12773       conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12775 fi
12776 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12777 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12778 if test $ac_cv_lib_be_be_app = yes; then
12779   LIBS="$LIBS -lbe -lroot -lnet"
12780 else
12781   :
12782 fi
12783
12784
12785 ac_ext=c
12786 ac_cpp='$CPP $CPPFLAGS'
12787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12790 if test -n "$ac_tool_prefix"; then
12791   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12795 if test "${ac_cv_prog_CC+set}" = set; then
12796   echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798   if test -n "$CC"; then
12799   ac_cv_prog_CC="$CC" # Let the user override the test.
12800 else
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804   IFS=$as_save_IFS
12805   test -z "$as_dir" && as_dir=.
12806   for ac_exec_ext in '' $ac_executable_extensions; do
12807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12808     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12810     break 2
12811   fi
12812 done
12813 done
12814 IFS=$as_save_IFS
12815
12816 fi
12817 fi
12818 CC=$ac_cv_prog_CC
12819 if test -n "$CC"; then
12820   { echo "$as_me:$LINENO: result: $CC" >&5
12821 echo "${ECHO_T}$CC" >&6; }
12822 else
12823   { echo "$as_me:$LINENO: result: no" >&5
12824 echo "${ECHO_T}no" >&6; }
12825 fi
12826
12827
12828 fi
12829 if test -z "$ac_cv_prog_CC"; then
12830   ac_ct_CC=$CC
12831   # Extract the first word of "gcc", so it can be a program name with args.
12832 set dummy gcc; ac_word=$2
12833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   if test -n "$ac_ct_CC"; then
12839   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12843 do
12844   IFS=$as_save_IFS
12845   test -z "$as_dir" && as_dir=.
12846   for ac_exec_ext in '' $ac_executable_extensions; do
12847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848     ac_cv_prog_ac_ct_CC="gcc"
12849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12850     break 2
12851   fi
12852 done
12853 done
12854 IFS=$as_save_IFS
12855
12856 fi
12857 fi
12858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12859 if test -n "$ac_ct_CC"; then
12860   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12861 echo "${ECHO_T}$ac_ct_CC" >&6; }
12862 else
12863   { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12865 fi
12866
12867   if test "x$ac_ct_CC" = x; then
12868     CC=""
12869   else
12870     case $cross_compiling:$ac_tool_warned in
12871 yes:)
12872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12873 whose name does not start with the host triplet.  If you think this
12874 configuration is useful to you, please write to autoconf@gnu.org." >&5
12875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12876 whose name does not start with the host triplet.  If you think this
12877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12878 ac_tool_warned=yes ;;
12879 esac
12880     CC=$ac_ct_CC
12881   fi
12882 else
12883   CC="$ac_cv_prog_CC"
12884 fi
12885
12886 if test -z "$CC"; then
12887           if test -n "$ac_tool_prefix"; then
12888     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12889 set dummy ${ac_tool_prefix}cc; ac_word=$2
12890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12892 if test "${ac_cv_prog_CC+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   if test -n "$CC"; then
12896   ac_cv_prog_CC="$CC" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12900 do
12901   IFS=$as_save_IFS
12902   test -z "$as_dir" && as_dir=.
12903   for ac_exec_ext in '' $ac_executable_extensions; do
12904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905     ac_cv_prog_CC="${ac_tool_prefix}cc"
12906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12907     break 2
12908   fi
12909 done
12910 done
12911 IFS=$as_save_IFS
12912
12913 fi
12914 fi
12915 CC=$ac_cv_prog_CC
12916 if test -n "$CC"; then
12917   { echo "$as_me:$LINENO: result: $CC" >&5
12918 echo "${ECHO_T}$CC" >&6; }
12919 else
12920   { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12922 fi
12923
12924
12925   fi
12926 fi
12927 if test -z "$CC"; then
12928   # Extract the first word of "cc", so it can be a program name with args.
12929 set dummy cc; ac_word=$2
12930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12932 if test "${ac_cv_prog_CC+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   if test -n "$CC"; then
12936   ac_cv_prog_CC="$CC" # Let the user override the test.
12937 else
12938   ac_prog_rejected=no
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12941 do
12942   IFS=$as_save_IFS
12943   test -z "$as_dir" && as_dir=.
12944   for ac_exec_ext in '' $ac_executable_extensions; do
12945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12947        ac_prog_rejected=yes
12948        continue
12949      fi
12950     ac_cv_prog_CC="cc"
12951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12952     break 2
12953   fi
12954 done
12955 done
12956 IFS=$as_save_IFS
12957
12958 if test $ac_prog_rejected = yes; then
12959   # We found a bogon in the path, so make sure we never use it.
12960   set dummy $ac_cv_prog_CC
12961   shift
12962   if test $# != 0; then
12963     # We chose a different compiler from the bogus one.
12964     # However, it has the same basename, so the bogon will be chosen
12965     # first if we set CC to just the basename; use the full file name.
12966     shift
12967     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12968   fi
12969 fi
12970 fi
12971 fi
12972 CC=$ac_cv_prog_CC
12973 if test -n "$CC"; then
12974   { echo "$as_me:$LINENO: result: $CC" >&5
12975 echo "${ECHO_T}$CC" >&6; }
12976 else
12977   { echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6; }
12979 fi
12980
12981
12982 fi
12983 if test -z "$CC"; then
12984   if test -n "$ac_tool_prefix"; then
12985   for ac_prog in cl.exe
12986   do
12987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991 if test "${ac_cv_prog_CC+set}" = set; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994   if test -n "$CC"; then
12995   ac_cv_prog_CC="$CC" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000   IFS=$as_save_IFS
13001   test -z "$as_dir" && as_dir=.
13002   for ac_exec_ext in '' $ac_executable_extensions; do
13003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13006     break 2
13007   fi
13008 done
13009 done
13010 IFS=$as_save_IFS
13011
13012 fi
13013 fi
13014 CC=$ac_cv_prog_CC
13015 if test -n "$CC"; then
13016   { echo "$as_me:$LINENO: result: $CC" >&5
13017 echo "${ECHO_T}$CC" >&6; }
13018 else
13019   { echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6; }
13021 fi
13022
13023
13024     test -n "$CC" && break
13025   done
13026 fi
13027 if test -z "$CC"; then
13028   ac_ct_CC=$CC
13029   for ac_prog in cl.exe
13030 do
13031   # Extract the first word of "$ac_prog", so it can be a program name with args.
13032 set dummy $ac_prog; ac_word=$2
13033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038   if test -n "$ac_ct_CC"; then
13039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13040 else
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13043 do
13044   IFS=$as_save_IFS
13045   test -z "$as_dir" && as_dir=.
13046   for ac_exec_ext in '' $ac_executable_extensions; do
13047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13048     ac_cv_prog_ac_ct_CC="$ac_prog"
13049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13050     break 2
13051   fi
13052 done
13053 done
13054 IFS=$as_save_IFS
13055
13056 fi
13057 fi
13058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13059 if test -n "$ac_ct_CC"; then
13060   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13061 echo "${ECHO_T}$ac_ct_CC" >&6; }
13062 else
13063   { echo "$as_me:$LINENO: result: no" >&5
13064 echo "${ECHO_T}no" >&6; }
13065 fi
13066
13067
13068   test -n "$ac_ct_CC" && break
13069 done
13070
13071   if test "x$ac_ct_CC" = x; then
13072     CC=""
13073   else
13074     case $cross_compiling:$ac_tool_warned in
13075 yes:)
13076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13077 whose name does not start with the host triplet.  If you think this
13078 configuration is useful to you, please write to autoconf@gnu.org." >&5
13079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13080 whose name does not start with the host triplet.  If you think this
13081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13082 ac_tool_warned=yes ;;
13083 esac
13084     CC=$ac_ct_CC
13085   fi
13086 fi
13087
13088 fi
13089
13090
13091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13092 See \`config.log' for more details." >&5
13093 echo "$as_me: error: no acceptable C compiler found in \$PATH
13094 See \`config.log' for more details." >&2;}
13095    { (exit 1); exit 1; }; }
13096
13097 # Provide some information about the compiler.
13098 echo "$as_me:$LINENO: checking for C compiler version" >&5
13099 ac_compiler=`set X $ac_compile; echo $2`
13100 { (ac_try="$ac_compiler --version >&5"
13101 case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_compiler --version >&5") 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }
13110 { (ac_try="$ac_compiler -v >&5"
13111 case "(($ac_try" in
13112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113   *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116   (eval "$ac_compiler -v >&5") 2>&5
13117   ac_status=$?
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); }
13120 { (ac_try="$ac_compiler -V >&5"
13121 case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_compiler -V >&5") 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }
13130
13131 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13132 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13133 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142
13143 int
13144 main ()
13145 {
13146 #ifndef __GNUC__
13147        choke me
13148 #endif
13149
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158   *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161   (eval "$ac_compile") 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } && {
13168          test -z "$ac_c_werror_flag" ||
13169          test ! -s conftest.err
13170        } && test -s conftest.$ac_objext; then
13171   ac_compiler_gnu=yes
13172 else
13173   echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176         ac_compiler_gnu=no
13177 fi
13178
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13181
13182 fi
13183 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13184 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13185 GCC=`test $ac_compiler_gnu = yes && echo yes`
13186 ac_test_CFLAGS=${CFLAGS+set}
13187 ac_save_CFLAGS=$CFLAGS
13188 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13189 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13190 if test "${ac_cv_prog_cc_g+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   ac_save_c_werror_flag=$ac_c_werror_flag
13194    ac_c_werror_flag=yes
13195    ac_cv_prog_cc_g=no
13196    CFLAGS="-g"
13197    cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203
13204 int
13205 main ()
13206 {
13207
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216   *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219   (eval "$ac_compile") 2>conftest.er1
13220   ac_status=$?
13221   grep -v '^ *+' conftest.er1 >conftest.err
13222   rm -f conftest.er1
13223   cat conftest.err >&5
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } && {
13226          test -z "$ac_c_werror_flag" ||
13227          test ! -s conftest.err
13228        } && test -s conftest.$ac_objext; then
13229   ac_cv_prog_cc_g=yes
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234         CFLAGS=""
13235       cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h.  */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h.  */
13241
13242 int
13243 main ()
13244 {
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254   *) ac_try_echo=$ac_try;;
13255 esac
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257   (eval "$ac_compile") 2>conftest.er1
13258   ac_status=$?
13259   grep -v '^ *+' conftest.er1 >conftest.err
13260   rm -f conftest.er1
13261   cat conftest.err >&5
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } && {
13264          test -z "$ac_c_werror_flag" ||
13265          test ! -s conftest.err
13266        } && test -s conftest.$ac_objext; then
13267   :
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272         ac_c_werror_flag=$ac_save_c_werror_flag
13273          CFLAGS="-g"
13274          cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280
13281 int
13282 main ()
13283 {
13284
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_compile") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } && {
13303          test -z "$ac_c_werror_flag" ||
13304          test ! -s conftest.err
13305        } && test -s conftest.$ac_objext; then
13306   ac_cv_prog_cc_g=yes
13307 else
13308   echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311
13312 fi
13313
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 fi
13316
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321    ac_c_werror_flag=$ac_save_c_werror_flag
13322 fi
13323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13324 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13325 if test "$ac_test_CFLAGS" = set; then
13326   CFLAGS=$ac_save_CFLAGS
13327 elif test $ac_cv_prog_cc_g = yes; then
13328   if test "$GCC" = yes; then
13329     CFLAGS="-g -O2"
13330   else
13331     CFLAGS="-g"
13332   fi
13333 else
13334   if test "$GCC" = yes; then
13335     CFLAGS="-O2"
13336   else
13337     CFLAGS=
13338   fi
13339 fi
13340 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13341 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13342 if test "${ac_cv_prog_cc_c89+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   ac_cv_prog_cc_c89=no
13346 ac_save_CC=$CC
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h.  */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h.  */
13353 #include <stdarg.h>
13354 #include <stdio.h>
13355 #include <sys/types.h>
13356 #include <sys/stat.h>
13357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13358 struct buf { int x; };
13359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13360 static char *e (p, i)
13361      char **p;
13362      int i;
13363 {
13364   return p[i];
13365 }
13366 static char *f (char * (*g) (char **, int), char **p, ...)
13367 {
13368   char *s;
13369   va_list v;
13370   va_start (v,p);
13371   s = g (p, va_arg (v,int));
13372   va_end (v);
13373   return s;
13374 }
13375
13376 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13377    function prototypes and stuff, but not '\xHH' hex character constants.
13378    These don't provoke an error unfortunately, instead are silently treated
13379    as 'x'.  The following induces an error, until -std is added to get
13380    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13381    array size at least.  It's necessary to write '\x00'==0 to get something
13382    that's true only with -std.  */
13383 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13384
13385 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13386    inside strings and character constants.  */
13387 #define FOO(x) 'x'
13388 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13389
13390 int test (int i, double x);
13391 struct s1 {int (*f) (int a);};
13392 struct s2 {int (*f) (double a);};
13393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13394 int argc;
13395 char **argv;
13396 int
13397 main ()
13398 {
13399 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13405         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13406 do
13407   CC="$ac_save_CC $ac_arg"
13408   rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_compile") 2>conftest.er1
13416   ac_status=$?
13417   grep -v '^ *+' conftest.er1 >conftest.err
13418   rm -f conftest.er1
13419   cat conftest.err >&5
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } && {
13422          test -z "$ac_c_werror_flag" ||
13423          test ! -s conftest.err
13424        } && test -s conftest.$ac_objext; then
13425   ac_cv_prog_cc_c89=$ac_arg
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext
13434   test "x$ac_cv_prog_cc_c89" != "xno" && break
13435 done
13436 rm -f conftest.$ac_ext
13437 CC=$ac_save_CC
13438
13439 fi
13440 # AC_CACHE_VAL
13441 case "x$ac_cv_prog_cc_c89" in
13442   x)
13443     { echo "$as_me:$LINENO: result: none needed" >&5
13444 echo "${ECHO_T}none needed" >&6; } ;;
13445   xno)
13446     { echo "$as_me:$LINENO: result: unsupported" >&5
13447 echo "${ECHO_T}unsupported" >&6; } ;;
13448   *)
13449     CC="$CC $ac_cv_prog_cc_c89"
13450     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13451 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13452 esac
13453
13454
13455 ac_ext=c
13456 ac_cpp='$CPP $CPPFLAGS'
13457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13460
13461 depcc="$CC"   am_compiler_list=
13462
13463 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13464 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13465 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13469   # We make a subdir and do the tests there.  Otherwise we can end up
13470   # making bogus files that we don't know about and never remove.  For
13471   # instance it was reported that on HP-UX the gcc test will end up
13472   # making a dummy file named `D' -- because `-MD' means `put the output
13473   # in D'.
13474   mkdir conftest.dir
13475   # Copy depcomp to subdir because otherwise we won't find it if we're
13476   # using a relative directory.
13477   cp "$am_depcomp" conftest.dir
13478   cd conftest.dir
13479   # We will build objects and dependencies in a subdirectory because
13480   # it helps to detect inapplicable dependency modes.  For instance
13481   # both Tru64's cc and ICC support -MD to output dependencies as a
13482   # side effect of compilation, but ICC will put the dependencies in
13483   # the current directory while Tru64 will put them in the object
13484   # directory.
13485   mkdir sub
13486
13487   am_cv_CC_dependencies_compiler_type=none
13488   if test "$am_compiler_list" = ""; then
13489      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13490   fi
13491   for depmode in $am_compiler_list; do
13492     # Setup a source with many dependencies, because some compilers
13493     # like to wrap large dependency lists on column 80 (with \), and
13494     # we should not choose a depcomp mode which is confused by this.
13495     #
13496     # We need to recreate these files for each test, as the compiler may
13497     # overwrite some of them when testing with obscure command lines.
13498     # This happens at least with the AIX C compiler.
13499     : > sub/conftest.c
13500     for i in 1 2 3 4 5 6; do
13501       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13502       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13503       # Solaris 8's {/usr,}/bin/sh.
13504       touch sub/conftst$i.h
13505     done
13506     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13507
13508     case $depmode in
13509     nosideeffect)
13510       # after this tag, mechanisms are not by side-effect, so they'll
13511       # only be used when explicitly requested
13512       if test "x$enable_dependency_tracking" = xyes; then
13513         continue
13514       else
13515         break
13516       fi
13517       ;;
13518     none) break ;;
13519     esac
13520     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13521     # mode.  It turns out that the SunPro C++ compiler does not properly
13522     # handle `-M -o', and we need to detect this.
13523     if depmode=$depmode \
13524        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13525        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13526        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13527          >/dev/null 2>conftest.err &&
13528        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13529        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13530        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13531       # icc doesn't choke on unknown options, it will just issue warnings
13532       # or remarks (even with -Werror).  So we grep stderr for any message
13533       # that says an option was ignored or not supported.
13534       # When given -MP, icc 7.0 and 7.1 complain thusly:
13535       #   icc: Command line warning: ignoring option '-M'; no argument required
13536       # The diagnosis changed in icc 8.0:
13537       #   icc: Command line remark: option '-MP' not supported
13538       if (grep 'ignoring option' conftest.err ||
13539           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13540         am_cv_CC_dependencies_compiler_type=$depmode
13541         break
13542       fi
13543     fi
13544   done
13545
13546   cd ..
13547   rm -rf conftest.dir
13548 else
13549   am_cv_CC_dependencies_compiler_type=none
13550 fi
13551
13552 fi
13553 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13554 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13555 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13556
13557
13558
13559 if
13560   test "x$enable_dependency_tracking" != xno \
13561   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13562   am__fastdepCC_TRUE=
13563   am__fastdepCC_FALSE='#'
13564 else
13565   am__fastdepCC_TRUE='#'
13566   am__fastdepCC_FALSE=
13567 fi
13568
13569
13570 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13571         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13572 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13573    { (exit 1); exit 1; }; }
13574 fi
13575
13576 # test for make depend flag
13577 OL_MKDEP=
13578 OL_MKDEP_FLAGS=
13579 if test -z "${MKDEP}"; then
13580         OL_MKDEP="${CC-cc}"
13581         if test -z "${MKDEP_FLAGS}"; then
13582                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13583 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13584 if test "${ol_cv_mkdep+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587
13588                         ol_cv_mkdep=no
13589                         for flag in "-M" "-xM"; do
13590                                 cat > conftest.c <<EOF
13591  noCode;
13592 EOF
13593                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; } \
13599                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13600                                 then
13601                                         if test ! -f conftest."${ac_object}" ; then
13602                                                 ol_cv_mkdep=$flag
13603                                                 OL_MKDEP_FLAGS="$flag"
13604                                                 break
13605                                         fi
13606                                 fi
13607                         done
13608                         rm -f conftest*
13609
13610 fi
13611 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13612 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13613                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13614         else
13615                 cc_cv_mkdep=yes
13616                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13617         fi
13618 else
13619         cc_cv_mkdep=yes
13620         OL_MKDEP="${MKDEP}"
13621         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13622 fi
13623
13624
13625
13626 if test "${ol_cv_mkdep}" = no ; then
13627         # this will soon become an error
13628         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13629 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13630 fi
13631
13632 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13633 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_s_afopen+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-ls  $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645
13646 /* Override any GCC internal prototype to avoid an error.
13647    Use char because int might match the return type of a GCC
13648    builtin and then its argument prototype would still apply.  */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char afopen ();
13653 int
13654 main ()
13655 {
13656 return afopen ();
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668   (eval "$ac_link") 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } && {
13675          test -z "$ac_c_werror_flag" ||
13676          test ! -s conftest.err
13677        } && test -s conftest$ac_exeext &&
13678        $as_test_x conftest$ac_exeext; then
13679   ac_cv_lib_s_afopen=yes
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684         ac_cv_lib_s_afopen=no
13685 fi
13686
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688       conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13690 fi
13691 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13692 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13693 if test $ac_cv_lib_s_afopen = yes; then
13694
13695         AUTH_LIBS=-ls
13696
13697 cat >>confdefs.h <<\_ACEOF
13698 #define HAVE_AIX_SECURITY 1
13699 _ACEOF
13700
13701
13702 fi
13703
13704
13705 case "$target" in
13706 *-ibm-openedition)
13707         ac_cv_func_getopt=no
13708
13709 cat >>confdefs.h <<\_ACEOF
13710 #define BOTH_STRINGS_H 1
13711 _ACEOF
13712
13713         ;;
13714 esac
13715
13716 ol_link_modules=no
13717 WITH_MODULES_ENABLED=no
13718 if test $ol_enable_modules != no ; then
13719
13720 for ac_header in ltdl.h
13721 do
13722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 fi
13729 ac_res=`eval echo '${'$as_ac_Header'}'`
13730                { echo "$as_me:$LINENO: result: $ac_res" >&5
13731 echo "${ECHO_T}$ac_res" >&6; }
13732 else
13733   # Is the header compilable?
13734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 $ac_includes_default
13743 #include <$ac_header>
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_compile") 2>conftest.er1
13753   ac_status=$?
13754   grep -v '^ *+' conftest.er1 >conftest.err
13755   rm -f conftest.er1
13756   cat conftest.err >&5
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } && {
13759          test -z "$ac_c_werror_flag" ||
13760          test ! -s conftest.err
13761        } && test -s conftest.$ac_objext; then
13762   ac_header_compiler=yes
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767         ac_header_compiler=no
13768 fi
13769
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 echo "${ECHO_T}$ac_header_compiler" >&6; }
13773
13774 # Is the header present?
13775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h.  */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h.  */
13783 #include <$ac_header>
13784 _ACEOF
13785 if { (ac_try="$ac_cpp conftest.$ac_ext"
13786 case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13792   ac_status=$?
13793   grep -v '^ *+' conftest.er1 >conftest.err
13794   rm -f conftest.er1
13795   cat conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } >/dev/null && {
13798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13799          test ! -s conftest.err
13800        }; then
13801   ac_header_preproc=yes
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806   ac_header_preproc=no
13807 fi
13808
13809 rm -f conftest.err conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13811 echo "${ECHO_T}$ac_header_preproc" >&6; }
13812
13813 # So?  What about this header?
13814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13815   yes:no: )
13816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13820     ac_header_preproc=yes
13821     ;;
13822   no:yes:* )
13823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13835     ( cat <<\_ASBOX
13836 ## --------------------------------------------- ##
13837 ## Report this to <http://www.openldap.org/its/> ##
13838 ## --------------------------------------------- ##
13839 _ASBOX
13840      ) | sed "s/^/$as_me: WARNING:     /" >&2
13841     ;;
13842 esac
13843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   eval "$as_ac_Header=\$ac_header_preproc"
13849 fi
13850 ac_res=`eval echo '${'$as_ac_Header'}'`
13851                { echo "$as_me:$LINENO: result: $ac_res" >&5
13852 echo "${ECHO_T}$ac_res" >&6; }
13853
13854 fi
13855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856   cat >>confdefs.h <<_ACEOF
13857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858 _ACEOF
13859
13860 fi
13861
13862 done
13863
13864
13865         if test $ac_cv_header_ltdl_h = no ; then
13866                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13867 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13868    { (exit 1); exit 1; }; }
13869         fi
13870
13871         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13872 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13873 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lltdl  $LIBS"
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884
13885 /* Override any GCC internal prototype to avoid an error.
13886    Use char because int might match the return type of a GCC
13887    builtin and then its argument prototype would still apply.  */
13888 #ifdef __cplusplus
13889 extern "C"
13890 #endif
13891 char lt_dlinit ();
13892 int
13893 main ()
13894 {
13895 return lt_dlinit ();
13896   ;
13897   return 0;
13898 }
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904   *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907   (eval "$ac_link") 2>conftest.er1
13908   ac_status=$?
13909   grep -v '^ *+' conftest.er1 >conftest.err
13910   rm -f conftest.er1
13911   cat conftest.err >&5
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); } && {
13914          test -z "$ac_c_werror_flag" ||
13915          test ! -s conftest.err
13916        } && test -s conftest$ac_exeext &&
13917        $as_test_x conftest$ac_exeext; then
13918   ac_cv_lib_ltdl_lt_dlinit=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923         ac_cv_lib_ltdl_lt_dlinit=no
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927       conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13929 fi
13930 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13931 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13932 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13933
13934                 MODULES_LIBS=-lltdl
13935
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_LIBLTDL 1
13938 _ACEOF
13939
13940
13941 fi
13942
13943
13944         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13945                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13946 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13947    { (exit 1); exit 1; }; }
13948         fi
13949         ol_link_modules=yes
13950         WITH_MODULES_ENABLED=yes
13951
13952 else
13953         for i in $Backends; do
13954                 eval "ol_tmp=\$ol_enable_$i"
13955                 if test $ol_tmp = mod ; then
13956                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13957 echo "$as_me: WARNING: building static $i backend" >&2;}
13958                         eval "ol_enable_$i=yes"
13959                 fi
13960         done
13961         for i in $Overlays; do
13962                 eval "ol_tmp=\$ol_enable_$i"
13963                 if test $ol_tmp = mod ; then
13964                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13965 echo "$as_me: WARNING: building static $i overlay" >&2;}
13966                         eval "ol_enable_$i=yes"
13967                 fi
13968         done
13969 fi
13970
13971 # test for EBCDIC
13972 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13973 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
13974 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977
13978         cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984
13985 #if !('M' == 0xd4)
13986 #include <__ASCII__/generate_error.h>
13987 #endif
13988
13989 _ACEOF
13990 if { (ac_try="$ac_cpp conftest.$ac_ext"
13991 case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13997   ac_status=$?
13998   grep -v '^ *+' conftest.er1 >conftest.err
13999   rm -f conftest.er1
14000   cat conftest.err >&5
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } >/dev/null && {
14003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14004          test ! -s conftest.err
14005        }; then
14006   ol_cv_cpp_ebcdic=yes
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011   ol_cv_cpp_ebcdic=no
14012 fi
14013
14014 rm -f conftest.err conftest.$ac_ext
14015 fi
14016 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14017 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14018 if test $ol_cv_cpp_ebcdic = yes ; then
14019
14020 cat >>confdefs.h <<\_ACEOF
14021 #define HAVE_EBCDIC 1
14022 _ACEOF
14023
14024 fi
14025
14026 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14027 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14028 if test "${ol_cv_header_stdc+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031   cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h.  */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h.  */
14037 #include <stdlib.h>
14038 #include <stdarg.h>
14039 #include <string.h>
14040 #include <float.h>
14041 _ACEOF
14042 if { (ac_try="$ac_cpp conftest.$ac_ext"
14043 case "(($ac_try" in
14044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045   *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14049   ac_status=$?
14050   grep -v '^ *+' conftest.er1 >conftest.err
14051   rm -f conftest.er1
14052   cat conftest.err >&5
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } >/dev/null && {
14055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14056          test ! -s conftest.err
14057        }; then
14058   ol_cv_header_stdc=yes
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063   ol_cv_header_stdc=no
14064 fi
14065
14066 rm -f conftest.err conftest.$ac_ext
14067
14068 if test $ol_cv_header_stdc = yes; then
14069   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076 #include <string.h>
14077
14078 _ACEOF
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080   $EGREP "memchr" >/dev/null 2>&1; then
14081   :
14082 else
14083   ol_cv_header_stdc=no
14084 fi
14085 rm -f conftest*
14086
14087 fi
14088
14089 if test $ol_cv_header_stdc = yes; then
14090   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 #include <stdlib.h>
14098
14099 _ACEOF
14100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14101   $EGREP "free" >/dev/null 2>&1; then
14102   :
14103 else
14104   ol_cv_header_stdc=no
14105 fi
14106 rm -f conftest*
14107
14108 fi
14109
14110 if test $ol_cv_header_stdc = yes; then
14111   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14112 if test "$cross_compiling" = yes; then
14113   :
14114 else
14115   cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121 #include <ctype.h>
14122 #ifndef HAVE_EBCDIC
14123 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14124 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14125 #else
14126 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14127                 || ('j' <= (c) && (c) <= 'r') \
14128                 || ('s' <= (c) && (c) <= 'z'))
14129 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14130 #endif
14131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14132 int main () { int i; for (i = 0; i < 256; i++)
14133 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14134 exit (0); }
14135
14136 _ACEOF
14137 rm -f conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_link") 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14148   { (case "(($ac_try" in
14149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150   *) ac_try_echo=$ac_try;;
14151 esac
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153   (eval "$ac_try") 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; }; then
14157   :
14158 else
14159   echo "$as_me: program exited with status $ac_status" >&5
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ( exit $ac_status )
14164 ol_cv_header_stdc=no
14165 fi
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14167 fi
14168
14169
14170 fi
14171 fi
14172 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14173 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14174 if test $ol_cv_header_stdc = yes; then
14175   cat >>confdefs.h <<\_ACEOF
14176 #define STDC_HEADERS 1
14177 _ACEOF
14178
14179 fi
14180 ac_cv_header_stdc=disable
14181
14182
14183 if test $ol_cv_header_stdc != yes; then
14184         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14185 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14186 fi
14187
14188
14189
14190
14191
14192
14193 ac_header_dirent=no
14194 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14195   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14196 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14197 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14199   echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201   cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h.  */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h.  */
14207 #include <sys/types.h>
14208 #include <$ac_hdr>
14209
14210 int
14211 main ()
14212 {
14213 if ((DIR *) 0)
14214 return 0;
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 if { (ac_try="$ac_compile"
14221 case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_compile") 2>conftest.er1
14227   ac_status=$?
14228   grep -v '^ *+' conftest.er1 >conftest.err
14229   rm -f conftest.er1
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } && {
14233          test -z "$ac_c_werror_flag" ||
14234          test ! -s conftest.err
14235        } && test -s conftest.$ac_objext; then
14236   eval "$as_ac_Header=yes"
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241         eval "$as_ac_Header=no"
14242 fi
14243
14244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 fi
14246 ac_res=`eval echo '${'$as_ac_Header'}'`
14247                { echo "$as_me:$LINENO: result: $ac_res" >&5
14248 echo "${ECHO_T}$ac_res" >&6; }
14249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14250   cat >>confdefs.h <<_ACEOF
14251 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14252 _ACEOF
14253
14254 ac_header_dirent=$ac_hdr; break
14255 fi
14256
14257 done
14258 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14259 if test $ac_header_dirent = dirent.h; then
14260   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14262 if test "${ac_cv_search_opendir+set}" = set; then
14263   echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265   ac_func_search_save_LIBS=$LIBS
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272
14273 /* Override any GCC internal prototype to avoid an error.
14274    Use char because int might match the return type of a GCC
14275    builtin and then its argument prototype would still apply.  */
14276 #ifdef __cplusplus
14277 extern "C"
14278 #endif
14279 char opendir ();
14280 int
14281 main ()
14282 {
14283 return opendir ();
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 for ac_lib in '' dir; do
14289   if test -z "$ac_lib"; then
14290     ac_res="none required"
14291   else
14292     ac_res=-l$ac_lib
14293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14294   fi
14295   rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
14297 case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_link") 2>conftest.er1
14303   ac_status=$?
14304   grep -v '^ *+' conftest.er1 >conftest.err
14305   rm -f conftest.er1
14306   cat conftest.err >&5
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } && {
14309          test -z "$ac_c_werror_flag" ||
14310          test ! -s conftest.err
14311        } && test -s conftest$ac_exeext &&
14312        $as_test_x conftest$ac_exeext; then
14313   ac_cv_search_opendir=$ac_res
14314 else
14315   echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14322       conftest$ac_exeext
14323   if test "${ac_cv_search_opendir+set}" = set; then
14324   break
14325 fi
14326 done
14327 if test "${ac_cv_search_opendir+set}" = set; then
14328   :
14329 else
14330   ac_cv_search_opendir=no
14331 fi
14332 rm conftest.$ac_ext
14333 LIBS=$ac_func_search_save_LIBS
14334 fi
14335 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14336 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14337 ac_res=$ac_cv_search_opendir
14338 if test "$ac_res" != no; then
14339   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14340
14341 fi
14342
14343 else
14344   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14345 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14346 if test "${ac_cv_search_opendir+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   ac_func_search_save_LIBS=$LIBS
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h.  */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h.  */
14356
14357 /* Override any GCC internal prototype to avoid an error.
14358    Use char because int might match the return type of a GCC
14359    builtin and then its argument prototype would still apply.  */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char opendir ();
14364 int
14365 main ()
14366 {
14367 return opendir ();
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 for ac_lib in '' x; do
14373   if test -z "$ac_lib"; then
14374     ac_res="none required"
14375   else
14376     ac_res=-l$ac_lib
14377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14378   fi
14379   rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_link") 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } && {
14393          test -z "$ac_c_werror_flag" ||
14394          test ! -s conftest.err
14395        } && test -s conftest$ac_exeext &&
14396        $as_test_x conftest$ac_exeext; then
14397   ac_cv_search_opendir=$ac_res
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402
14403 fi
14404
14405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14406       conftest$ac_exeext
14407   if test "${ac_cv_search_opendir+set}" = set; then
14408   break
14409 fi
14410 done
14411 if test "${ac_cv_search_opendir+set}" = set; then
14412   :
14413 else
14414   ac_cv_search_opendir=no
14415 fi
14416 rm conftest.$ac_ext
14417 LIBS=$ac_func_search_save_LIBS
14418 fi
14419 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14420 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14421 ac_res=$ac_cv_search_opendir
14422 if test "$ac_res" != no; then
14423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14424
14425 fi
14426
14427 fi
14428
14429 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14430 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14431 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 #include <sys/types.h>
14441 #include <sys/wait.h>
14442 #ifndef WEXITSTATUS
14443 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14444 #endif
14445 #ifndef WIFEXITED
14446 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14447 #endif
14448
14449 int
14450 main ()
14451 {
14452   int s;
14453   wait (&s);
14454   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (ac_try="$ac_compile"
14461 case "(($ac_try" in
14462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463   *) ac_try_echo=$ac_try;;
14464 esac
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466   (eval "$ac_compile") 2>conftest.er1
14467   ac_status=$?
14468   grep -v '^ *+' conftest.er1 >conftest.err
14469   rm -f conftest.er1
14470   cat conftest.err >&5
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } && {
14473          test -z "$ac_c_werror_flag" ||
14474          test ! -s conftest.err
14475        } && test -s conftest.$ac_objext; then
14476   ac_cv_header_sys_wait_h=yes
14477 else
14478   echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14480
14481         ac_cv_header_sys_wait_h=no
14482 fi
14483
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 fi
14486 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14487 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14488 if test $ac_cv_header_sys_wait_h = yes; then
14489
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_SYS_WAIT_H 1
14492 _ACEOF
14493
14494 fi
14495
14496 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14497 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14498 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507 #include <sys/types.h>
14508 #include <termios.h>
14509 #ifdef TIOCGWINSZ
14510   yes
14511 #endif
14512
14513 _ACEOF
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515   $EGREP "yes" >/dev/null 2>&1; then
14516   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14517 else
14518   ac_cv_sys_tiocgwinsz_in_termios_h=no
14519 fi
14520 rm -f conftest*
14521
14522 fi
14523 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14524 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14525
14526 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14527   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14528 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14529 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   cat >conftest.$ac_ext <<_ACEOF
14533 /* confdefs.h.  */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h.  */
14538 #include <sys/types.h>
14539 #include <sys/ioctl.h>
14540 #ifdef TIOCGWINSZ
14541   yes
14542 #endif
14543
14544 _ACEOF
14545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14546   $EGREP "yes" >/dev/null 2>&1; then
14547   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14548 else
14549   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14550 fi
14551 rm -f conftest*
14552
14553 fi
14554 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14555 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14556
14557   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14558
14559 cat >>confdefs.h <<\_ACEOF
14560 #define GWINSZ_IN_SYS_IOCTL 1
14561 _ACEOF
14562
14563   fi
14564 fi
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614 for ac_header in \
14615         arpa/inet.h             \
14616         arpa/nameser.h  \
14617         assert.h                \
14618         bits/types.h    \
14619         conio.h                 \
14620         crypt.h                 \
14621         direct.h                \
14622         errno.h                 \
14623         fcntl.h                 \
14624         filio.h                 \
14625         getopt.h                \
14626         grp.h                   \
14627         io.h                    \
14628         libutil.h               \
14629         limits.h                \
14630         locale.h                \
14631         malloc.h                \
14632         memory.h                \
14633         psap.h                  \
14634         pwd.h                   \
14635         process.h               \
14636         sgtty.h                 \
14637         shadow.h                \
14638         stddef.h                \
14639         string.h                \
14640         strings.h               \
14641         sysexits.h              \
14642         sys/file.h              \
14643         sys/filio.h             \
14644         sys/fstyp.h             \
14645         sys/errno.h             \
14646         sys/ioctl.h             \
14647         sys/param.h             \
14648         sys/privgrp.h   \
14649         sys/resource.h  \
14650         sys/select.h    \
14651         sys/socket.h    \
14652         sys/stat.h              \
14653         sys/syslog.h    \
14654         sys/time.h              \
14655         sys/types.h             \
14656         sys/uio.h               \
14657         sys/vmount.h    \
14658         syslog.h                \
14659         termios.h               \
14660         unistd.h                \
14661         utime.h                 \
14662
14663 do
14664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 fi
14671 ac_res=`eval echo '${'$as_ac_Header'}'`
14672                { echo "$as_me:$LINENO: result: $ac_res" >&5
14673 echo "${ECHO_T}$ac_res" >&6; }
14674 else
14675   # Is the header compilable?
14676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 $ac_includes_default
14685 #include <$ac_header>
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691   *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694   (eval "$ac_compile") 2>conftest.er1
14695   ac_status=$?
14696   grep -v '^ *+' conftest.er1 >conftest.err
14697   rm -f conftest.er1
14698   cat conftest.err >&5
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } && {
14701          test -z "$ac_c_werror_flag" ||
14702          test ! -s conftest.err
14703        } && test -s conftest.$ac_objext; then
14704   ac_header_compiler=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709         ac_header_compiler=no
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 #include <$ac_header>
14726 _ACEOF
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } >/dev/null && {
14740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14741          test ! -s conftest.err
14742        }; then
14743   ac_header_preproc=yes
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748   ac_header_preproc=no
14749 fi
14750
14751 rm -f conftest.err conftest.$ac_ext
14752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14753 echo "${ECHO_T}$ac_header_preproc" >&6; }
14754
14755 # So?  What about this header?
14756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14757   yes:no: )
14758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14762     ac_header_preproc=yes
14763     ;;
14764   no:yes:* )
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14777     ( cat <<\_ASBOX
14778 ## --------------------------------------------- ##
14779 ## Report this to <http://www.openldap.org/its/> ##
14780 ## --------------------------------------------- ##
14781 _ASBOX
14782      ) | sed "s/^/$as_me: WARNING:     /" >&2
14783     ;;
14784 esac
14785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788   echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790   eval "$as_ac_Header=\$ac_header_preproc"
14791 fi
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793                { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795
14796 fi
14797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14798   cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14800 _ACEOF
14801
14802 fi
14803
14804 done
14805
14806
14807 if test "$ac_cv_mingw32" = yes \
14808         -o "$ac_cv_interix" = yes \
14809         -o "$ol_cv_msvc" = yes
14810 then
14811
14812
14813 for ac_header in winsock.h winsock2.h
14814 do
14815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 fi
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823                { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14825 else
14826   # Is the header compilable?
14827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 $ac_includes_default
14836 #include <$ac_header>
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842   *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845   (eval "$ac_compile") 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } && {
14852          test -z "$ac_c_werror_flag" ||
14853          test ! -s conftest.err
14854        } && test -s conftest.$ac_objext; then
14855   ac_header_compiler=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860         ac_header_compiler=no
14861 fi
14862
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865 echo "${ECHO_T}$ac_header_compiler" >&6; }
14866
14867 # Is the header present?
14868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h.  */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h.  */
14876 #include <$ac_header>
14877 _ACEOF
14878 if { (ac_try="$ac_cpp conftest.$ac_ext"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14885   ac_status=$?
14886   grep -v '^ *+' conftest.er1 >conftest.err
14887   rm -f conftest.er1
14888   cat conftest.err >&5
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); } >/dev/null && {
14891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14892          test ! -s conftest.err
14893        }; then
14894   ac_header_preproc=yes
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899   ac_header_preproc=no
14900 fi
14901
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14905
14906 # So?  What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14908   yes:no: )
14909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14913     ac_header_preproc=yes
14914     ;;
14915   no:yes:* )
14916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14928     ( cat <<\_ASBOX
14929 ## --------------------------------------------- ##
14930 ## Report this to <http://www.openldap.org/its/> ##
14931 ## --------------------------------------------- ##
14932 _ASBOX
14933      ) | sed "s/^/$as_me: WARNING:     /" >&2
14934     ;;
14935 esac
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   eval "$as_ac_Header=\$ac_header_preproc"
14942 fi
14943 ac_res=`eval echo '${'$as_ac_Header'}'`
14944                { echo "$as_me:$LINENO: result: $ac_res" >&5
14945 echo "${ECHO_T}$ac_res" >&6; }
14946
14947 fi
14948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14949   cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14951 _ACEOF
14952
14953 fi
14954
14955 done
14956
14957 fi
14958
14959
14960 for ac_header in resolv.h
14961 do
14962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968   cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974 $ac_includes_default
14975 #include <netinet/in.h>
14976
14977
14978 #include <$ac_header>
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_compile") 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } && {
14994          test -z "$ac_c_werror_flag" ||
14995          test ! -s conftest.err
14996        } && test -s conftest.$ac_objext; then
14997   eval "$as_ac_Header=yes"
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002         eval "$as_ac_Header=no"
15003 fi
15004
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006 fi
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008                { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15011   cat >>confdefs.h <<_ACEOF
15012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15013 _ACEOF
15014
15015 fi
15016
15017 done
15018
15019
15020
15021 for ac_header in netinet/tcp.h
15022 do
15023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 $ac_includes_default
15036 #include <netinet/in.h>
15037
15038
15039 #include <$ac_header>
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045   *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048   (eval "$ac_compile") 2>conftest.er1
15049   ac_status=$?
15050   grep -v '^ *+' conftest.er1 >conftest.err
15051   rm -f conftest.er1
15052   cat conftest.err >&5
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } && {
15055          test -z "$ac_c_werror_flag" ||
15056          test ! -s conftest.err
15057        } && test -s conftest.$ac_objext; then
15058   eval "$as_ac_Header=yes"
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063         eval "$as_ac_Header=no"
15064 fi
15065
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 fi
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069                { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072   cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15074 _ACEOF
15075
15076 fi
15077
15078 done
15079
15080
15081
15082 for ac_header in sys/ucred.h
15083 do
15084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096 $ac_includes_default
15097 #ifdef HAVE_SYS_PARAM_H
15098 #include <sys/param.h>
15099 #endif
15100
15101
15102 #include <$ac_header>
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108   *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111   (eval "$ac_compile") 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } && {
15118          test -z "$ac_c_werror_flag" ||
15119          test ! -s conftest.err
15120        } && test -s conftest.$ac_objext; then
15121   eval "$as_ac_Header=yes"
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126         eval "$as_ac_Header=no"
15127 fi
15128
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 ac_res=`eval echo '${'$as_ac_Header'}'`
15132                { echo "$as_me:$LINENO: result: $ac_res" >&5
15133 echo "${ECHO_T}$ac_res" >&6; }
15134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15135   cat >>confdefs.h <<_ACEOF
15136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15137 _ACEOF
15138
15139 fi
15140
15141 done
15142
15143
15144
15145
15146
15147 for ac_func in sigaction sigset
15148 do
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155   cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15163 #define $ac_func innocuous_$ac_func
15164
15165 /* System header to define __stub macros and hopefully few prototypes,
15166     which can conflict with char $ac_func (); below.
15167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168     <limits.h> exists even on freestanding compilers.  */
15169
15170 #ifdef __STDC__
15171 # include <limits.h>
15172 #else
15173 # include <assert.h>
15174 #endif
15175
15176 #undef $ac_func
15177
15178 /* Override any GCC internal prototype to avoid an error.
15179    Use char because int might match the return type of a GCC
15180    builtin and then its argument prototype would still apply.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 char $ac_func ();
15185 /* The GNU C library defines this for functions which it implements
15186     to always fail with ENOSYS.  Some functions are actually named
15187     something starting with __ and the normal name is an alias.  */
15188 #if defined __stub_$ac_func || defined __stub___$ac_func
15189 choke me
15190 #endif
15191
15192 int
15193 main ()
15194 {
15195 return $ac_func ();
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204   *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207   (eval "$ac_link") 2>conftest.er1
15208   ac_status=$?
15209   grep -v '^ *+' conftest.er1 >conftest.err
15210   rm -f conftest.er1
15211   cat conftest.err >&5
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); } && {
15214          test -z "$ac_c_werror_flag" ||
15215          test ! -s conftest.err
15216        } && test -s conftest$ac_exeext &&
15217        $as_test_x conftest$ac_exeext; then
15218   eval "$as_ac_var=yes"
15219 else
15220   echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15222
15223         eval "$as_ac_var=no"
15224 fi
15225
15226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227       conftest$ac_exeext conftest.$ac_ext
15228 fi
15229 ac_res=`eval echo '${'$as_ac_var'}'`
15230                { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15232 if test `eval echo '${'$as_ac_var'}'` = yes; then
15233   cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15235 _ACEOF
15236
15237 fi
15238 done
15239
15240
15241 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15242
15243 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15244 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15245 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15246   echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248   ac_check_lib_save_LIBS=$LIBS
15249 LIBS="-lV3  $LIBS"
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h.  */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h.  */
15256
15257 /* Override any GCC internal prototype to avoid an error.
15258    Use char because int might match the return type of a GCC
15259    builtin and then its argument prototype would still apply.  */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 char sigset ();
15264 int
15265 main ()
15266 {
15267 return sigset ();
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_link") 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } && {
15286          test -z "$ac_c_werror_flag" ||
15287          test ! -s conftest.err
15288        } && test -s conftest$ac_exeext &&
15289        $as_test_x conftest$ac_exeext; then
15290   ac_cv_lib_V3_sigset=yes
15291 else
15292   echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295         ac_cv_lib_V3_sigset=no
15296 fi
15297
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299       conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15301 fi
15302 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15303 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15304 if test $ac_cv_lib_V3_sigset = yes; then
15305   cat >>confdefs.h <<_ACEOF
15306 #define HAVE_LIBV3 1
15307 _ACEOF
15308
15309   LIBS="-lV3 $LIBS"
15310
15311 fi
15312
15313 fi
15314
15315 if test $ol_cv_msvc = yes ; then
15316    ol_cv_winsock=yes
15317 fi
15318
15319 if test "$ac_cv_header_winsock_h" = yes; then
15320         { echo "$as_me:$LINENO: checking for winsock" >&5
15321 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15322 if test "${ol_cv_winsock+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325
15326         save_LIBS="$LIBS"
15327         for curlib in none ws2_32 wsock32; do
15328                 if test $curlib != none ; then
15329                 LIBS="$save_LIBS -l$curlib"
15330                 fi
15331                 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 #include <winsock.h>
15338
15339 int
15340 main ()
15341 {
15342
15343                         socket(0,0,0);
15344                         select(0,NULL,NULL,NULL,NULL);
15345                         closesocket(0);
15346                         gethostname(NULL,0);
15347
15348   ;
15349   return 0;
15350 }
15351 _ACEOF
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356   *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359   (eval "$ac_link") 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } && {
15366          test -z "$ac_c_werror_flag" ||
15367          test ! -s conftest.err
15368        } && test -s conftest$ac_exeext &&
15369        $as_test_x conftest$ac_exeext; then
15370   ol_cv_winsock=$curlib
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375         ol_cv_winsock=no
15376 fi
15377
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379       conftest$ac_exeext conftest.$ac_ext
15380
15381                 test "$ol_cv_winsock" != no && break
15382         done
15383         LIBS="$save_LIBS"
15384
15385 fi
15386 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15387 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15388
15389         if test $ol_cv_winsock != no ; then
15390
15391 cat >>confdefs.h <<\_ACEOF
15392 #define HAVE_WINSOCK 1
15393 _ACEOF
15394
15395         ac_cv_func_socket=yes
15396         ac_cv_func_select=yes
15397         ac_cv_func_closesocket=yes
15398         ac_cv_func_gethostname=yes
15399
15400                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15401                 LIBS="$LIBS -l$ol_cv_winsock"
15402                 fi
15403
15404         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15405
15406 cat >>confdefs.h <<\_ACEOF
15407 #define HAVE_WINSOCK2 1
15408 _ACEOF
15409
15410         fi
15411         fi
15412 fi
15413
15414
15415 { echo "$as_me:$LINENO: checking for socket" >&5
15416 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15417 if test "${ac_cv_func_socket+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15428 #define socket innocuous_socket
15429
15430 /* System header to define __stub macros and hopefully few prototypes,
15431     which can conflict with char socket (); below.
15432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433     <limits.h> exists even on freestanding compilers.  */
15434
15435 #ifdef __STDC__
15436 # include <limits.h>
15437 #else
15438 # include <assert.h>
15439 #endif
15440
15441 #undef socket
15442
15443 /* Override any GCC internal prototype to avoid an error.
15444    Use char because int might match the return type of a GCC
15445    builtin and then its argument prototype would still apply.  */
15446 #ifdef __cplusplus
15447 extern "C"
15448 #endif
15449 char socket ();
15450 /* The GNU C library defines this for functions which it implements
15451     to always fail with ENOSYS.  Some functions are actually named
15452     something starting with __ and the normal name is an alias.  */
15453 #if defined __stub_socket || defined __stub___socket
15454 choke me
15455 #endif
15456
15457 int
15458 main ()
15459 {
15460 return socket ();
15461   ;
15462   return 0;
15463 }
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_link") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } && {
15479          test -z "$ac_c_werror_flag" ||
15480          test ! -s conftest.err
15481        } && test -s conftest$ac_exeext &&
15482        $as_test_x conftest$ac_exeext; then
15483   ac_cv_func_socket=yes
15484 else
15485   echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488         ac_cv_func_socket=no
15489 fi
15490
15491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15492       conftest$ac_exeext conftest.$ac_ext
15493 fi
15494 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15495 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15496 if test $ac_cv_func_socket = yes; then
15497   :
15498 else
15499
15500
15501 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15502 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15503 if test "${ac_cv_lib_socket_main+set}" = set; then
15504   echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506   ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-lsocket  $LIBS"
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h.  */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h.  */
15514
15515
15516 int
15517 main ()
15518 {
15519 return main ();
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (ac_try="$ac_link"
15526 case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_link") 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } && {
15538          test -z "$ac_c_werror_flag" ||
15539          test ! -s conftest.err
15540        } && test -s conftest$ac_exeext &&
15541        $as_test_x conftest$ac_exeext; then
15542   ac_cv_lib_socket_main=yes
15543 else
15544   echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15546
15547         ac_cv_lib_socket_main=no
15548 fi
15549
15550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15551       conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15553 fi
15554 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15555 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15556 if test $ac_cv_lib_socket_main = yes; then
15557   cat >>confdefs.h <<_ACEOF
15558 #define HAVE_LIBSOCKET 1
15559 _ACEOF
15560
15561   LIBS="-lsocket $LIBS"
15562
15563 fi
15564
15565
15566 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15567 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15568 if test "${ac_cv_lib_net_main+set}" = set; then
15569   echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571   ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lnet  $LIBS"
15573 cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579
15580
15581 int
15582 main ()
15583 {
15584 return main ();
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_link") 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } && {
15603          test -z "$ac_c_werror_flag" ||
15604          test ! -s conftest.err
15605        } && test -s conftest$ac_exeext &&
15606        $as_test_x conftest$ac_exeext; then
15607   ac_cv_lib_net_main=yes
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612         ac_cv_lib_net_main=no
15613 fi
15614
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616       conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15618 fi
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15620 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15621 if test $ac_cv_lib_net_main = yes; then
15622   cat >>confdefs.h <<_ACEOF
15623 #define HAVE_LIBNET 1
15624 _ACEOF
15625
15626   LIBS="-lnet $LIBS"
15627
15628 fi
15629
15630
15631 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15632 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lnsl_s  $LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644
15645
15646 int
15647 main ()
15648 {
15649 return main ();
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_link") 2>conftest.er1
15662   ac_status=$?
15663   grep -v '^ *+' conftest.er1 >conftest.err
15664   rm -f conftest.er1
15665   cat conftest.err >&5
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); } && {
15668          test -z "$ac_c_werror_flag" ||
15669          test ! -s conftest.err
15670        } && test -s conftest$ac_exeext &&
15671        $as_test_x conftest$ac_exeext; then
15672   ac_cv_lib_nsl_s_main=yes
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677         ac_cv_lib_nsl_s_main=no
15678 fi
15679
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681       conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15683 fi
15684 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15685 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15686 if test $ac_cv_lib_nsl_s_main = yes; then
15687   cat >>confdefs.h <<_ACEOF
15688 #define HAVE_LIBNSL_S 1
15689 _ACEOF
15690
15691   LIBS="-lnsl_s $LIBS"
15692
15693 fi
15694
15695
15696 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15697 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15698 if test "${ac_cv_lib_nsl_main+set}" = set; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-lnsl  $LIBS"
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709
15710
15711 int
15712 main ()
15713 {
15714 return main ();
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (ac_try="$ac_link"
15721 case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726   (eval "$ac_link") 2>conftest.er1
15727   ac_status=$?
15728   grep -v '^ *+' conftest.er1 >conftest.err
15729   rm -f conftest.er1
15730   cat conftest.err >&5
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } && {
15733          test -z "$ac_c_werror_flag" ||
15734          test ! -s conftest.err
15735        } && test -s conftest$ac_exeext &&
15736        $as_test_x conftest$ac_exeext; then
15737   ac_cv_lib_nsl_main=yes
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742         ac_cv_lib_nsl_main=no
15743 fi
15744
15745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746       conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15748 fi
15749 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15750 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15751 if test $ac_cv_lib_nsl_main = yes; then
15752   cat >>confdefs.h <<_ACEOF
15753 #define HAVE_LIBNSL 1
15754 _ACEOF
15755
15756   LIBS="-lnsl $LIBS"
15757
15758 fi
15759
15760
15761 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15762 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15763 if test "${ac_cv_lib_inet_socket+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   ac_check_lib_save_LIBS=$LIBS
15767 LIBS="-linet  $LIBS"
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774
15775 /* Override any GCC internal prototype to avoid an error.
15776    Use char because int might match the return type of a GCC
15777    builtin and then its argument prototype would still apply.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 char socket ();
15782 int
15783 main ()
15784 {
15785 return socket ();
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_link") 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } && {
15804          test -z "$ac_c_werror_flag" ||
15805          test ! -s conftest.err
15806        } && test -s conftest$ac_exeext &&
15807        $as_test_x conftest$ac_exeext; then
15808   ac_cv_lib_inet_socket=yes
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813         ac_cv_lib_inet_socket=no
15814 fi
15815
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817       conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15819 fi
15820 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15821 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15822 if test $ac_cv_lib_inet_socket = yes; then
15823   cat >>confdefs.h <<_ACEOF
15824 #define HAVE_LIBINET 1
15825 _ACEOF
15826
15827   LIBS="-linet $LIBS"
15828
15829 fi
15830
15831
15832 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15833 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_gen_main+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837   ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lgen  $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845
15846
15847 int
15848 main ()
15849 {
15850 return main ();
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (ac_try="$ac_link"
15857 case "(($ac_try" in
15858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859   *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862   (eval "$ac_link") 2>conftest.er1
15863   ac_status=$?
15864   grep -v '^ *+' conftest.er1 >conftest.err
15865   rm -f conftest.er1
15866   cat conftest.err >&5
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); } && {
15869          test -z "$ac_c_werror_flag" ||
15870          test ! -s conftest.err
15871        } && test -s conftest$ac_exeext &&
15872        $as_test_x conftest$ac_exeext; then
15873   ac_cv_lib_gen_main=yes
15874 else
15875   echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878         ac_cv_lib_gen_main=no
15879 fi
15880
15881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882       conftest$ac_exeext conftest.$ac_ext
15883 LIBS=$ac_check_lib_save_LIBS
15884 fi
15885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15886 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15887 if test $ac_cv_lib_gen_main = yes; then
15888   cat >>confdefs.h <<_ACEOF
15889 #define HAVE_LIBGEN 1
15890 _ACEOF
15891
15892   LIBS="-lgen $LIBS"
15893
15894 fi
15895
15896
15897 fi
15898
15899
15900 { echo "$as_me:$LINENO: checking for select" >&5
15901 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15902 if test "${ac_cv_func_select+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 /* Define select to an innocuous variant, in case <limits.h> declares select.
15912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15913 #define select innocuous_select
15914
15915 /* System header to define __stub macros and hopefully few prototypes,
15916     which can conflict with char select (); below.
15917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918     <limits.h> exists even on freestanding compilers.  */
15919
15920 #ifdef __STDC__
15921 # include <limits.h>
15922 #else
15923 # include <assert.h>
15924 #endif
15925
15926 #undef select
15927
15928 /* Override any GCC internal prototype to avoid an error.
15929    Use char because int might match the return type of a GCC
15930    builtin and then its argument prototype would still apply.  */
15931 #ifdef __cplusplus
15932 extern "C"
15933 #endif
15934 char select ();
15935 /* The GNU C library defines this for functions which it implements
15936     to always fail with ENOSYS.  Some functions are actually named
15937     something starting with __ and the normal name is an alias.  */
15938 #if defined __stub_select || defined __stub___select
15939 choke me
15940 #endif
15941
15942 int
15943 main ()
15944 {
15945 return select ();
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 rm -f conftest.$ac_objext conftest$ac_exeext
15951 if { (ac_try="$ac_link"
15952 case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_link") 2>conftest.er1
15958   ac_status=$?
15959   grep -v '^ *+' conftest.er1 >conftest.err
15960   rm -f conftest.er1
15961   cat conftest.err >&5
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } && {
15964          test -z "$ac_c_werror_flag" ||
15965          test ! -s conftest.err
15966        } && test -s conftest$ac_exeext &&
15967        $as_test_x conftest$ac_exeext; then
15968   ac_cv_func_select=yes
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973         ac_cv_func_select=no
15974 fi
15975
15976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15977       conftest$ac_exeext conftest.$ac_ext
15978 fi
15979 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15980 echo "${ECHO_T}$ac_cv_func_select" >&6; }
15981 if test $ac_cv_func_select = yes; then
15982   :
15983 else
15984   { { echo "$as_me:$LINENO: error: select() required." >&5
15985 echo "$as_me: error: select() required." >&2;}
15986    { (exit 1); exit 1; }; }
15987 fi
15988
15989
15990 if test "${ac_cv_header_winsock_h}" != yes; then
15991
15992
15993 for ac_header in sys/select.h sys/socket.h
15994 do
15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 fi
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003                { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16005 else
16006   # Is the header compilable?
16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 $ac_includes_default
16016 #include <$ac_header>
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_compile") 2>conftest.er1
16026   ac_status=$?
16027   grep -v '^ *+' conftest.er1 >conftest.err
16028   rm -f conftest.er1
16029   cat conftest.err >&5
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); } && {
16032          test -z "$ac_c_werror_flag" ||
16033          test ! -s conftest.err
16034        } && test -s conftest.$ac_objext; then
16035   ac_header_compiler=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040         ac_header_compiler=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16046
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 #include <$ac_header>
16057 _ACEOF
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } >/dev/null && {
16071          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16072          test ! -s conftest.err
16073        }; then
16074   ac_header_preproc=yes
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079   ac_header_preproc=no
16080 fi
16081
16082 rm -f conftest.err conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16084 echo "${ECHO_T}$ac_header_preproc" >&6; }
16085
16086 # So?  What about this header?
16087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16088   yes:no: )
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16093     ac_header_preproc=yes
16094     ;;
16095   no:yes:* )
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16108     ( cat <<\_ASBOX
16109 ## --------------------------------------------- ##
16110 ## Report this to <http://www.openldap.org/its/> ##
16111 ## --------------------------------------------- ##
16112 _ASBOX
16113      ) | sed "s/^/$as_me: WARNING:     /" >&2
16114     ;;
16115 esac
16116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   eval "$as_ac_Header=\$ac_header_preproc"
16122 fi
16123 ac_res=`eval echo '${'$as_ac_Header'}'`
16124                { echo "$as_me:$LINENO: result: $ac_res" >&5
16125 echo "${ECHO_T}$ac_res" >&6; }
16126
16127 fi
16128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16129   cat >>confdefs.h <<_ACEOF
16130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16131 _ACEOF
16132
16133 fi
16134
16135 done
16136
16137 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16138 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16139 if test "${ac_cv_func_select_args+set}" = set; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16143  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16144   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16145    cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 $ac_includes_default
16152 #ifdef HAVE_SYS_SELECT_H
16153 # include <sys/select.h>
16154 #endif
16155 #ifdef HAVE_SYS_SOCKET_H
16156 # include <sys/socket.h>
16157 #endif
16158
16159 int
16160 main ()
16161 {
16162 extern int select ($ac_arg1,
16163                                             $ac_arg234, $ac_arg234, $ac_arg234,
16164                                             $ac_arg5);
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_compile") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } && {
16183          test -z "$ac_c_werror_flag" ||
16184          test ! -s conftest.err
16185        } && test -s conftest.$ac_objext; then
16186   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191
16192 fi
16193
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195   done
16196  done
16197 done
16198 # Provide a safe default value.
16199 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16200
16201 fi
16202 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16203 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16204 ac_save_IFS=$IFS; IFS=','
16205 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16206 IFS=$ac_save_IFS
16207 shift
16208
16209 cat >>confdefs.h <<_ACEOF
16210 #define SELECT_TYPE_ARG1 $1
16211 _ACEOF
16212
16213
16214 cat >>confdefs.h <<_ACEOF
16215 #define SELECT_TYPE_ARG234 ($2)
16216 _ACEOF
16217
16218
16219 cat >>confdefs.h <<_ACEOF
16220 #define SELECT_TYPE_ARG5 ($3)
16221 _ACEOF
16222
16223 rm -f conftest*
16224
16225 fi
16226
16227
16228
16229 for ac_func in poll
16230 do
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16245 #define $ac_func innocuous_$ac_func
16246
16247 /* System header to define __stub macros and hopefully few prototypes,
16248     which can conflict with char $ac_func (); below.
16249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250     <limits.h> exists even on freestanding compilers.  */
16251
16252 #ifdef __STDC__
16253 # include <limits.h>
16254 #else
16255 # include <assert.h>
16256 #endif
16257
16258 #undef $ac_func
16259
16260 /* Override any GCC internal prototype to avoid an error.
16261    Use char because int might match the return type of a GCC
16262    builtin and then its argument prototype would still apply.  */
16263 #ifdef __cplusplus
16264 extern "C"
16265 #endif
16266 char $ac_func ();
16267 /* The GNU C library defines this for functions which it implements
16268     to always fail with ENOSYS.  Some functions are actually named
16269     something starting with __ and the normal name is an alias.  */
16270 #if defined __stub_$ac_func || defined __stub___$ac_func
16271 choke me
16272 #endif
16273
16274 int
16275 main ()
16276 {
16277 return $ac_func ();
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289   (eval "$ac_link") 2>conftest.er1
16290   ac_status=$?
16291   grep -v '^ *+' conftest.er1 >conftest.err
16292   rm -f conftest.er1
16293   cat conftest.err >&5
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } && {
16296          test -z "$ac_c_werror_flag" ||
16297          test ! -s conftest.err
16298        } && test -s conftest$ac_exeext &&
16299        $as_test_x conftest$ac_exeext; then
16300   eval "$as_ac_var=yes"
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305         eval "$as_ac_var=no"
16306 fi
16307
16308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16309       conftest$ac_exeext conftest.$ac_ext
16310 fi
16311 ac_res=`eval echo '${'$as_ac_var'}'`
16312                { echo "$as_me:$LINENO: result: $ac_res" >&5
16313 echo "${ECHO_T}$ac_res" >&6; }
16314 if test `eval echo '${'$as_ac_var'}'` = yes; then
16315   cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16317 _ACEOF
16318
16319 fi
16320 done
16321
16322 if test $ac_cv_func_poll = yes; then
16323
16324
16325 for ac_header in poll.h sys/poll.h
16326 do
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 fi
16334 ac_res=`eval echo '${'$as_ac_Header'}'`
16335                { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 else
16338   # Is the header compilable?
16339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 $ac_includes_default
16348 #include <$ac_header>
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_compile") 2>conftest.er1
16358   ac_status=$?
16359   grep -v '^ *+' conftest.er1 >conftest.err
16360   rm -f conftest.er1
16361   cat conftest.err >&5
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); } && {
16364          test -z "$ac_c_werror_flag" ||
16365          test ! -s conftest.err
16366        } && test -s conftest.$ac_objext; then
16367   ac_header_compiler=yes
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372         ac_header_compiler=no
16373 fi
16374
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377 echo "${ECHO_T}$ac_header_compiler" >&6; }
16378
16379 # Is the header present?
16380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 #include <$ac_header>
16389 _ACEOF
16390 if { (ac_try="$ac_cpp conftest.$ac_ext"
16391 case "(($ac_try" in
16392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393   *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16397   ac_status=$?
16398   grep -v '^ *+' conftest.er1 >conftest.err
16399   rm -f conftest.er1
16400   cat conftest.err >&5
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); } >/dev/null && {
16403          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16404          test ! -s conftest.err
16405        }; then
16406   ac_header_preproc=yes
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411   ac_header_preproc=no
16412 fi
16413
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16417
16418 # So?  What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16420   yes:no: )
16421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425     ac_header_preproc=yes
16426     ;;
16427   no:yes:* )
16428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16440     ( cat <<\_ASBOX
16441 ## --------------------------------------------- ##
16442 ## Report this to <http://www.openldap.org/its/> ##
16443 ## --------------------------------------------- ##
16444 _ASBOX
16445      ) | sed "s/^/$as_me: WARNING:     /" >&2
16446     ;;
16447 esac
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453   eval "$as_ac_Header=\$ac_header_preproc"
16454 fi
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456                { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458
16459 fi
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461   cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466
16467 done
16468
16469 fi
16470
16471
16472 for ac_header in sys/epoll.h
16473 do
16474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 fi
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482                { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16484 else
16485   # Is the header compilable?
16486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494 $ac_includes_default
16495 #include <$ac_header>
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_compile") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } && {
16511          test -z "$ac_c_werror_flag" ||
16512          test ! -s conftest.err
16513        } && test -s conftest.$ac_objext; then
16514   ac_header_compiler=yes
16515 else
16516   echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16518
16519         ac_header_compiler=no
16520 fi
16521
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16524 echo "${ECHO_T}$ac_header_compiler" >&6; }
16525
16526 # Is the header present?
16527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535 #include <$ac_header>
16536 _ACEOF
16537 if { (ac_try="$ac_cpp conftest.$ac_ext"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } >/dev/null && {
16550          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16551          test ! -s conftest.err
16552        }; then
16553   ac_header_preproc=yes
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558   ac_header_preproc=no
16559 fi
16560
16561 rm -f conftest.err conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563 echo "${ECHO_T}$ac_header_preproc" >&6; }
16564
16565 # So?  What about this header?
16566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16567   yes:no: )
16568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16572     ac_header_preproc=yes
16573     ;;
16574   no:yes:* )
16575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16577     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16578 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16579     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16581     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16582 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16585     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16587     ( cat <<\_ASBOX
16588 ## --------------------------------------------- ##
16589 ## Report this to <http://www.openldap.org/its/> ##
16590 ## --------------------------------------------- ##
16591 _ASBOX
16592      ) | sed "s/^/$as_me: WARNING:     /" >&2
16593     ;;
16594 esac
16595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   eval "$as_ac_Header=\$ac_header_preproc"
16601 fi
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603                { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16605
16606 fi
16607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16608   cat >>confdefs.h <<_ACEOF
16609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16610 _ACEOF
16611
16612 fi
16613
16614 done
16615
16616 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16617         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16618 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16619         if test "$cross_compiling" = yes; then
16620   { echo "$as_me:$LINENO: result: no" >&5
16621 echo "${ECHO_T}no" >&6; }
16622 else
16623   cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h.  */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h.  */
16629 int main(int argc, char **argv)
16630 {
16631         int epfd = epoll_create(256);
16632         exit (epfd == -1 ? 1 : 0);
16633 }
16634 _ACEOF
16635 rm -f conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_link") 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16646   { (case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651   (eval "$ac_try") 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; }; then
16655   { echo "$as_me:$LINENO: result: yes" >&5
16656 echo "${ECHO_T}yes" >&6; }
16657
16658 cat >>confdefs.h <<\_ACEOF
16659 #define HAVE_EPOLL 1
16660 _ACEOF
16661
16662 else
16663   echo "$as_me: program exited with status $ac_status" >&5
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ( exit $ac_status )
16668 { echo "$as_me:$LINENO: result: no" >&5
16669 echo "${ECHO_T}no" >&6; }
16670 fi
16671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16672 fi
16673
16674
16675 fi
16676
16677
16678 for ac_header in sys/devpoll.h
16679 do
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 fi
16687 ac_res=`eval echo '${'$as_ac_Header'}'`
16688                { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16690 else
16691   # Is the header compilable?
16692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 $ac_includes_default
16701 #include <$ac_header>
16702 _ACEOF
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_compile") 2>conftest.er1
16711   ac_status=$?
16712   grep -v '^ *+' conftest.er1 >conftest.err
16713   rm -f conftest.er1
16714   cat conftest.err >&5
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); } && {
16717          test -z "$ac_c_werror_flag" ||
16718          test ! -s conftest.err
16719        } && test -s conftest.$ac_objext; then
16720   ac_header_compiler=yes
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725         ac_header_compiler=no
16726 fi
16727
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6; }
16731
16732 # Is the header present?
16733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <$ac_header>
16742 _ACEOF
16743 if { (ac_try="$ac_cpp conftest.$ac_ext"
16744 case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } >/dev/null && {
16756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16757          test ! -s conftest.err
16758        }; then
16759   ac_header_preproc=yes
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764   ac_header_preproc=no
16765 fi
16766
16767 rm -f conftest.err conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6; }
16770
16771 # So?  What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16773   yes:no: )
16774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16778     ac_header_preproc=yes
16779     ;;
16780   no:yes:* )
16781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16793     ( cat <<\_ASBOX
16794 ## --------------------------------------------- ##
16795 ## Report this to <http://www.openldap.org/its/> ##
16796 ## --------------------------------------------- ##
16797 _ASBOX
16798      ) | sed "s/^/$as_me: WARNING:     /" >&2
16799     ;;
16800 esac
16801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   eval "$as_ac_Header=\$ac_header_preproc"
16807 fi
16808 ac_res=`eval echo '${'$as_ac_Header'}'`
16809                { echo "$as_me:$LINENO: result: $ac_res" >&5
16810 echo "${ECHO_T}$ac_res" >&6; }
16811
16812 fi
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814   cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816 _ACEOF
16817
16818 fi
16819
16820 done
16821
16822 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16823                 -a "${ac_cv_header_poll_h}" = yes ; \
16824 then
16825         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16826 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16827         if test "$cross_compiling" = yes; then
16828   { echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6; }
16830 else
16831   cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837 int main(int argc, char **argv)
16838 {
16839         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16840         exit (devpollfd == -1 ? 1 : 0);
16841 }
16842 _ACEOF
16843 rm -f conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847   *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850   (eval "$ac_link") 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16854   { (case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_try") 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863   { echo "$as_me:$LINENO: result: yes" >&5
16864 echo "${ECHO_T}yes" >&6; }
16865
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_DEVPOLL 1
16868 _ACEOF
16869
16870 else
16871   echo "$as_me: program exited with status $ac_status" >&5
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875 ( exit $ac_status )
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16878 fi
16879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16880 fi
16881
16882
16883 fi
16884
16885 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16886 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16887 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890
16891         cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897
16898 #include <stdio.h>
16899 #include <sys/types.h>
16900 #include <errno.h>
16901 #ifdef _WIN32
16902 #include <stdlib.h>
16903 #endif
16904 int
16905 main ()
16906 {
16907 char *c = (char *) *sys_errlist
16908   ;
16909   return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext
16913 if { (ac_try="$ac_compile"
16914 case "(($ac_try" in
16915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916   *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919   (eval "$ac_compile") 2>conftest.er1
16920   ac_status=$?
16921   grep -v '^ *+' conftest.er1 >conftest.err
16922   rm -f conftest.er1
16923   cat conftest.err >&5
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } && {
16926          test -z "$ac_c_werror_flag" ||
16927          test ! -s conftest.err
16928        } && test -s conftest.$ac_objext; then
16929   ol_cv_dcl_sys_errlist=yes
16930         ol_cv_have_sys_errlist=yes
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935         ol_cv_dcl_sys_errlist=no
16936 fi
16937
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16941 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16942 #
16943 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16944 if test $ol_cv_dcl_sys_errlist = no ; then
16945
16946 cat >>confdefs.h <<\_ACEOF
16947 #define DECL_SYS_ERRLIST 1
16948 _ACEOF
16949
16950
16951         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16952 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16953 if test "${ol_cv_have_sys_errlist+set}" = set; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956
16957                 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 #include <errno.h>
16964 int
16965 main ()
16966 {
16967 char *c = (char *) *sys_errlist
16968   ;
16969   return 0;
16970 }
16971 _ACEOF
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (ac_try="$ac_link"
16974 case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_link") 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } && {
16986          test -z "$ac_c_werror_flag" ||
16987          test ! -s conftest.err
16988        } && test -s conftest$ac_exeext &&
16989        $as_test_x conftest$ac_exeext; then
16990   ol_cv_have_sys_errlist=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995         ol_cv_have_sys_errlist=no
16996 fi
16997
16998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16999       conftest$ac_exeext conftest.$ac_ext
17000 fi
17001 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17002 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17003 fi
17004 if test $ol_cv_have_sys_errlist = yes ; then
17005
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE_SYS_ERRLIST 1
17008 _ACEOF
17009
17010 fi
17011
17012
17013 for ac_func in strerror strerror_r
17014 do
17015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17019   echo $ECHO_N "(cached) $ECHO_C" >&6
17020 else
17021   cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17029 #define $ac_func innocuous_$ac_func
17030
17031 /* System header to define __stub macros and hopefully few prototypes,
17032     which can conflict with char $ac_func (); below.
17033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17034     <limits.h> exists even on freestanding compilers.  */
17035
17036 #ifdef __STDC__
17037 # include <limits.h>
17038 #else
17039 # include <assert.h>
17040 #endif
17041
17042 #undef $ac_func
17043
17044 /* Override any GCC internal prototype to avoid an error.
17045    Use char because int might match the return type of a GCC
17046    builtin and then its argument prototype would still apply.  */
17047 #ifdef __cplusplus
17048 extern "C"
17049 #endif
17050 char $ac_func ();
17051 /* The GNU C library defines this for functions which it implements
17052     to always fail with ENOSYS.  Some functions are actually named
17053     something starting with __ and the normal name is an alias.  */
17054 #if defined __stub_$ac_func || defined __stub___$ac_func
17055 choke me
17056 #endif
17057
17058 int
17059 main ()
17060 {
17061 return $ac_func ();
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_link") 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } && {
17080          test -z "$ac_c_werror_flag" ||
17081          test ! -s conftest.err
17082        } && test -s conftest$ac_exeext &&
17083        $as_test_x conftest$ac_exeext; then
17084   eval "$as_ac_var=yes"
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089         eval "$as_ac_var=no"
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17093       conftest$ac_exeext conftest.$ac_ext
17094 fi
17095 ac_res=`eval echo '${'$as_ac_var'}'`
17096                { echo "$as_me:$LINENO: result: $ac_res" >&5
17097 echo "${ECHO_T}$ac_res" >&6; }
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099   cat >>confdefs.h <<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17101 _ACEOF
17102
17103 fi
17104 done
17105
17106 ol_cv_func_strerror_r=no
17107 if test "${ac_cv_func_strerror_r}" = yes ; then
17108         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17109 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17110 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113
17114         cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120 #include <string.h>
17121 _ACEOF
17122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17123   $EGREP "strerror_r" >/dev/null 2>&1; then
17124   ol_decl_strerror_r=yes
17125 else
17126   ol_decl_strerror_r=no
17127 fi
17128 rm -f conftest*
17129
17130         if test $ol_decl_strerror_r = yes ; then
17131                 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 #include <string.h>
17138 int
17139 main ()
17140 {
17141    /* from autoconf 2.59 */
17142                                 char buf[100];
17143                                 char x = *strerror_r (0, buf, sizeof buf);
17144                                 char *p = strerror_r (0, buf, sizeof buf);
17145
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157   (eval "$ac_compile") 2>conftest.er1
17158   ac_status=$?
17159   grep -v '^ *+' conftest.er1 >conftest.err
17160   rm -f conftest.er1
17161   cat conftest.err >&5
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } && {
17164          test -z "$ac_c_werror_flag" ||
17165          test ! -s conftest.err
17166        } && test -s conftest.$ac_objext; then
17167   ol_cv_nonposix_strerror_r=yes
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172         ol_cv_nonposix_strerror_r=no
17173 fi
17174
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176         else
17177                 if test "$cross_compiling" = yes; then
17178   ol_cv_nonposix_strerror=no
17179 else
17180   cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186
17187                         main() {
17188                                 char buf[100];
17189                                 buf[0] = 0;
17190                                 strerror_r( 1, buf, sizeof buf );
17191                                 exit( buf[0] == 0 );
17192                         }
17193
17194 _ACEOF
17195 rm -f conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_link") 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; }; then
17215   ol_cv_nonposix_strerror_r=yes
17216 else
17217   echo "$as_me: program exited with status $ac_status" >&5
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 ( exit $ac_status )
17222 ol_cv_nonposix_strerror=no
17223 fi
17224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17225 fi
17226
17227
17228         fi
17229
17230 fi
17231 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17232 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17233 if test $ol_cv_nonposix_strerror_r = yes ; then
17234
17235 cat >>confdefs.h <<\_ACEOF
17236 #define HAVE_NONPOSIX_STRERROR_R 1
17237 _ACEOF
17238
17239 fi
17240
17241 elif test "${ac_cv_func_strerror}" = no ; then
17242         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17243 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17244 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17245   echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247
17248         cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254
17255 #include <stdio.h>
17256 #include <sys/types.h>
17257 #include <errno.h>
17258 #ifdef _WIN32
17259 #include <stdlib.h>
17260 #endif
17261 int
17262 main ()
17263 {
17264 char *c = (char *) *sys_errlist
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276   (eval "$ac_compile") 2>conftest.er1
17277   ac_status=$?
17278   grep -v '^ *+' conftest.er1 >conftest.err
17279   rm -f conftest.er1
17280   cat conftest.err >&5
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } && {
17283          test -z "$ac_c_werror_flag" ||
17284          test ! -s conftest.err
17285        } && test -s conftest.$ac_objext; then
17286   ol_cv_dcl_sys_errlist=yes
17287         ol_cv_have_sys_errlist=yes
17288 else
17289   echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292         ol_cv_dcl_sys_errlist=no
17293 fi
17294
17295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17296 fi
17297 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17298 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17299 #
17300 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17301 if test $ol_cv_dcl_sys_errlist = no ; then
17302
17303 cat >>confdefs.h <<\_ACEOF
17304 #define DECL_SYS_ERRLIST 1
17305 _ACEOF
17306
17307
17308         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17309 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17310 if test "${ol_cv_have_sys_errlist+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313
17314                 cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h.  */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h.  */
17320 #include <errno.h>
17321 int
17322 main ()
17323 {
17324 char *c = (char *) *sys_errlist
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_link") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && {
17343          test -z "$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        } && test -s conftest$ac_exeext &&
17346        $as_test_x conftest$ac_exeext; then
17347   ol_cv_have_sys_errlist=yes
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352         ol_cv_have_sys_errlist=no
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356       conftest$ac_exeext conftest.$ac_ext
17357 fi
17358 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17359 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17360 fi
17361 if test $ol_cv_have_sys_errlist = yes ; then
17362
17363 cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_SYS_ERRLIST 1
17365 _ACEOF
17366
17367 fi
17368
17369 fi
17370
17371
17372
17373 for ac_header in regex.h
17374 do
17375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387 $ac_includes_default
17388 #ifdef HAVE_SYS_TYPES_H
17389 #include <sys/types.h>
17390 #endif
17391
17392
17393 #include <$ac_header>
17394 _ACEOF
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_compile") 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } && {
17409          test -z "$ac_c_werror_flag" ||
17410          test ! -s conftest.err
17411        } && test -s conftest.$ac_objext; then
17412   eval "$as_ac_Header=yes"
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417         eval "$as_ac_Header=no"
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 fi
17422 ac_res=`eval echo '${'$as_ac_Header'}'`
17423                { echo "$as_me:$LINENO: result: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426   cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17428 _ACEOF
17429
17430 fi
17431
17432 done
17433
17434
17435 if test "$ac_cv_header_regex_h" != yes ; then
17436         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17437 echo "$as_me: error: POSIX regex.h required." >&2;}
17438    { (exit 1); exit 1; }; }
17439 fi
17440 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17441 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17442 if test "${ac_cv_search_regfree+set}" = set; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   ac_func_search_save_LIBS=$LIBS
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452
17453 /* Override any GCC internal prototype to avoid an error.
17454    Use char because int might match the return type of a GCC
17455    builtin and then its argument prototype would still apply.  */
17456 #ifdef __cplusplus
17457 extern "C"
17458 #endif
17459 char regfree ();
17460 int
17461 main ()
17462 {
17463 return regfree ();
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 for ac_lib in '' regex gnuregex; do
17469   if test -z "$ac_lib"; then
17470     ac_res="none required"
17471   else
17472     ac_res=-l$ac_lib
17473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17474   fi
17475   rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_link") 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } && {
17489          test -z "$ac_c_werror_flag" ||
17490          test ! -s conftest.err
17491        } && test -s conftest$ac_exeext &&
17492        $as_test_x conftest$ac_exeext; then
17493   ac_cv_search_regfree=$ac_res
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498
17499 fi
17500
17501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17502       conftest$ac_exeext
17503   if test "${ac_cv_search_regfree+set}" = set; then
17504   break
17505 fi
17506 done
17507 if test "${ac_cv_search_regfree+set}" = set; then
17508   :
17509 else
17510   ac_cv_search_regfree=no
17511 fi
17512 rm conftest.$ac_ext
17513 LIBS=$ac_func_search_save_LIBS
17514 fi
17515 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17516 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17517 ac_res=$ac_cv_search_regfree
17518 if test "$ac_res" != no; then
17519   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17520   :
17521 else
17522   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17523 echo "$as_me: error: POSIX regex required." >&2;}
17524    { (exit 1); exit 1; }; }
17525 fi
17526
17527
17528
17529 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17530 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17531 if test "${ol_cv_c_posix_regex+set}" = set; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534
17535         if test "$cross_compiling" = yes; then
17536   ol_cv_c_posix_regex=cross
17537 else
17538   cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h.  */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h.  */
17544
17545 #include <sys/types.h>
17546 #include <regex.h>
17547 static char *pattern, *string;
17548 main()
17549 {
17550         int rc;
17551         regex_t re;
17552
17553         pattern = "^A";
17554
17555         if(regcomp(&re, pattern, 0)) {
17556                 return -1;
17557         }
17558
17559         string = "ALL MATCH";
17560
17561         rc = regexec(&re, string, 0, (void*)0, 0);
17562
17563         regfree(&re);
17564
17565         return rc;
17566 }
17567 _ACEOF
17568 rm -f conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_link") 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579   { (case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_try") 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; }; then
17588   ol_cv_c_posix_regex=yes
17589 else
17590   echo "$as_me: program exited with status $ac_status" >&5
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 ( exit $ac_status )
17595 ol_cv_c_posix_regex=no
17596 fi
17597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17598 fi
17599
17600
17601 fi
17602 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17603 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17604
17605 if test "$ol_cv_c_posix_regex" = no ; then
17606         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17607 echo "$as_me: error: broken POSIX regex!" >&2;}
17608    { (exit 1); exit 1; }; }
17609 fi
17610
17611
17612 have_uuid=no
17613
17614 for ac_header in sys/uuid.h
17615 do
17616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17618   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 fi
17623 ac_res=`eval echo '${'$as_ac_Header'}'`
17624                { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17626 else
17627   # Is the header compilable?
17628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636 $ac_includes_default
17637 #include <$ac_header>
17638 _ACEOF
17639 rm -f conftest.$ac_objext
17640 if { (ac_try="$ac_compile"
17641 case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_compile") 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } && {
17653          test -z "$ac_c_werror_flag" ||
17654          test ! -s conftest.err
17655        } && test -s conftest.$ac_objext; then
17656   ac_header_compiler=yes
17657 else
17658   echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17660
17661         ac_header_compiler=no
17662 fi
17663
17664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17666 echo "${ECHO_T}$ac_header_compiler" >&6; }
17667
17668 # Is the header present?
17669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677 #include <$ac_header>
17678 _ACEOF
17679 if { (ac_try="$ac_cpp conftest.$ac_ext"
17680 case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17686   ac_status=$?
17687   grep -v '^ *+' conftest.er1 >conftest.err
17688   rm -f conftest.er1
17689   cat conftest.err >&5
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } >/dev/null && {
17692          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17693          test ! -s conftest.err
17694        }; then
17695   ac_header_preproc=yes
17696 else
17697   echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17699
17700   ac_header_preproc=no
17701 fi
17702
17703 rm -f conftest.err conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17705 echo "${ECHO_T}$ac_header_preproc" >&6; }
17706
17707 # So?  What about this header?
17708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17709   yes:no: )
17710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17714     ac_header_preproc=yes
17715     ;;
17716   no:yes:* )
17717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17729     ( cat <<\_ASBOX
17730 ## --------------------------------------------- ##
17731 ## Report this to <http://www.openldap.org/its/> ##
17732 ## --------------------------------------------- ##
17733 _ASBOX
17734      ) | sed "s/^/$as_me: WARNING:     /" >&2
17735     ;;
17736 esac
17737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17740   echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742   eval "$as_ac_Header=\$ac_header_preproc"
17743 fi
17744 ac_res=`eval echo '${'$as_ac_Header'}'`
17745                { echo "$as_me:$LINENO: result: $ac_res" >&5
17746 echo "${ECHO_T}$ac_res" >&6; }
17747
17748 fi
17749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17750   cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17752 _ACEOF
17753
17754 fi
17755
17756 done
17757
17758 if test $ac_cv_header_sys_uuid_h = yes ; then
17759         save_LIBS="$LIBS"
17760         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17761 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17762 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17763   echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765   ac_func_search_save_LIBS=$LIBS
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772
17773 /* Override any GCC internal prototype to avoid an error.
17774    Use char because int might match the return type of a GCC
17775    builtin and then its argument prototype would still apply.  */
17776 #ifdef __cplusplus
17777 extern "C"
17778 #endif
17779 char uuid_to_str ();
17780 int
17781 main ()
17782 {
17783 return uuid_to_str ();
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 for ac_lib in '' uuid; do
17789   if test -z "$ac_lib"; then
17790     ac_res="none required"
17791   else
17792     ac_res=-l$ac_lib
17793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17794   fi
17795   rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (ac_try="$ac_link"
17797 case "(($ac_try" in
17798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799   *) ac_try_echo=$ac_try;;
17800 esac
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802   (eval "$ac_link") 2>conftest.er1
17803   ac_status=$?
17804   grep -v '^ *+' conftest.er1 >conftest.err
17805   rm -f conftest.er1
17806   cat conftest.err >&5
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); } && {
17809          test -z "$ac_c_werror_flag" ||
17810          test ! -s conftest.err
17811        } && test -s conftest$ac_exeext &&
17812        $as_test_x conftest$ac_exeext; then
17813   ac_cv_search_uuid_to_str=$ac_res
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818
17819 fi
17820
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822       conftest$ac_exeext
17823   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17824   break
17825 fi
17826 done
17827 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17828   :
17829 else
17830   ac_cv_search_uuid_to_str=no
17831 fi
17832 rm conftest.$ac_ext
17833 LIBS=$ac_func_search_save_LIBS
17834 fi
17835 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17836 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17837 ac_res=$ac_cv_search_uuid_to_str
17838 if test "$ac_res" != no; then
17839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17840   have_uuid=yes
17841 else
17842   :
17843 fi
17844
17845         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17846 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17847 if test "${ac_cv_search_uuid_create+set}" = set; then
17848   echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850   ac_func_search_save_LIBS=$LIBS
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h.  */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h.  */
17857
17858 /* Override any GCC internal prototype to avoid an error.
17859    Use char because int might match the return type of a GCC
17860    builtin and then its argument prototype would still apply.  */
17861 #ifdef __cplusplus
17862 extern "C"
17863 #endif
17864 char uuid_create ();
17865 int
17866 main ()
17867 {
17868 return uuid_create ();
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 for ac_lib in '' uuid; do
17874   if test -z "$ac_lib"; then
17875     ac_res="none required"
17876   else
17877     ac_res=-l$ac_lib
17878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17879   fi
17880   rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887   (eval "$ac_link") 2>conftest.er1
17888   ac_status=$?
17889   grep -v '^ *+' conftest.er1 >conftest.err
17890   rm -f conftest.er1
17891   cat conftest.err >&5
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } && {
17894          test -z "$ac_c_werror_flag" ||
17895          test ! -s conftest.err
17896        } && test -s conftest$ac_exeext &&
17897        $as_test_x conftest$ac_exeext; then
17898   ac_cv_search_uuid_create=$ac_res
17899 else
17900   echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903
17904 fi
17905
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17907       conftest$ac_exeext
17908   if test "${ac_cv_search_uuid_create+set}" = set; then
17909   break
17910 fi
17911 done
17912 if test "${ac_cv_search_uuid_create+set}" = set; then
17913   :
17914 else
17915   ac_cv_search_uuid_create=no
17916 fi
17917 rm conftest.$ac_ext
17918 LIBS=$ac_func_search_save_LIBS
17919 fi
17920 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17921 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17922 ac_res=$ac_cv_search_uuid_create
17923 if test "$ac_res" != no; then
17924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17925   :
17926 else
17927   have_uuid=no
17928 fi
17929
17930         LIBS="$save_LIBS"
17931
17932         if test $have_uuid = yes ; then
17933
17934 cat >>confdefs.h <<\_ACEOF
17935 #define HAVE_UUID_TO_STR 1
17936 _ACEOF
17937
17938
17939                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17940                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17941         fi
17942 fi
17943
17944 if test $have_uuid = no ; then
17945
17946 for ac_header in uuid/uuid.h
17947 do
17948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 fi
17955 ac_res=`eval echo '${'$as_ac_Header'}'`
17956                { echo "$as_me:$LINENO: result: $ac_res" >&5
17957 echo "${ECHO_T}$ac_res" >&6; }
17958 else
17959   # Is the header compilable?
17960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968 $ac_includes_default
17969 #include <$ac_header>
17970 _ACEOF
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975   *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978   (eval "$ac_compile") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } && {
17985          test -z "$ac_c_werror_flag" ||
17986          test ! -s conftest.err
17987        } && test -s conftest.$ac_objext; then
17988   ac_header_compiler=yes
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993         ac_header_compiler=no
17994 fi
17995
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17998 echo "${ECHO_T}$ac_header_compiler" >&6; }
17999
18000 # Is the header present?
18001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h.  */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h.  */
18009 #include <$ac_header>
18010 _ACEOF
18011 if { (ac_try="$ac_cpp conftest.$ac_ext"
18012 case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18018   ac_status=$?
18019   grep -v '^ *+' conftest.er1 >conftest.err
18020   rm -f conftest.er1
18021   cat conftest.err >&5
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); } >/dev/null && {
18024          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18025          test ! -s conftest.err
18026        }; then
18027   ac_header_preproc=yes
18028 else
18029   echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032   ac_header_preproc=no
18033 fi
18034
18035 rm -f conftest.err conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18037 echo "${ECHO_T}$ac_header_preproc" >&6; }
18038
18039 # So?  What about this header?
18040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18041   yes:no: )
18042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18046     ac_header_preproc=yes
18047     ;;
18048   no:yes:* )
18049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18061     ( cat <<\_ASBOX
18062 ## --------------------------------------------- ##
18063 ## Report this to <http://www.openldap.org/its/> ##
18064 ## --------------------------------------------- ##
18065 _ASBOX
18066      ) | sed "s/^/$as_me: WARNING:     /" >&2
18067     ;;
18068 esac
18069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18072   echo $ECHO_N "(cached) $ECHO_C" >&6
18073 else
18074   eval "$as_ac_Header=\$ac_header_preproc"
18075 fi
18076 ac_res=`eval echo '${'$as_ac_Header'}'`
18077                { echo "$as_me:$LINENO: result: $ac_res" >&5
18078 echo "${ECHO_T}$ac_res" >&6; }
18079
18080 fi
18081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18082   cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18084 _ACEOF
18085
18086 fi
18087
18088 done
18089
18090         if test $ac_cv_header_uuid_uuid_h = yes ; then
18091                 save_LIBS="$LIBS"
18092                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18093 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18094 if test "${ac_cv_search_uuid_generate+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   ac_func_search_save_LIBS=$LIBS
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104
18105 /* Override any GCC internal prototype to avoid an error.
18106    Use char because int might match the return type of a GCC
18107    builtin and then its argument prototype would still apply.  */
18108 #ifdef __cplusplus
18109 extern "C"
18110 #endif
18111 char uuid_generate ();
18112 int
18113 main ()
18114 {
18115 return uuid_generate ();
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 for ac_lib in '' uuid; do
18121   if test -z "$ac_lib"; then
18122     ac_res="none required"
18123   else
18124     ac_res=-l$ac_lib
18125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18126   fi
18127   rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_link") 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } && {
18141          test -z "$ac_c_werror_flag" ||
18142          test ! -s conftest.err
18143        } && test -s conftest$ac_exeext &&
18144        $as_test_x conftest$ac_exeext; then
18145   ac_cv_search_uuid_generate=$ac_res
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150
18151 fi
18152
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18154       conftest$ac_exeext
18155   if test "${ac_cv_search_uuid_generate+set}" = set; then
18156   break
18157 fi
18158 done
18159 if test "${ac_cv_search_uuid_generate+set}" = set; then
18160   :
18161 else
18162   ac_cv_search_uuid_generate=no
18163 fi
18164 rm conftest.$ac_ext
18165 LIBS=$ac_func_search_save_LIBS
18166 fi
18167 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18168 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18169 ac_res=$ac_cv_search_uuid_generate
18170 if test "$ac_res" != no; then
18171   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18172   have_uuid=yes
18173 else
18174   :
18175 fi
18176
18177                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18178 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18179 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18180   echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182   ac_func_search_save_LIBS=$LIBS
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189
18190 /* Override any GCC internal prototype to avoid an error.
18191    Use char because int might match the return type of a GCC
18192    builtin and then its argument prototype would still apply.  */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char uuid_unparse_lower ();
18197 int
18198 main ()
18199 {
18200 return uuid_unparse_lower ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 for ac_lib in '' uuid; do
18206   if test -z "$ac_lib"; then
18207     ac_res="none required"
18208   else
18209     ac_res=-l$ac_lib
18210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18211   fi
18212   rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_link") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } && {
18226          test -z "$ac_c_werror_flag" ||
18227          test ! -s conftest.err
18228        } && test -s conftest$ac_exeext &&
18229        $as_test_x conftest$ac_exeext; then
18230   ac_cv_search_uuid_unparse_lower=$ac_res
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235
18236 fi
18237
18238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18239       conftest$ac_exeext
18240   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18241   break
18242 fi
18243 done
18244 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18245   :
18246 else
18247   ac_cv_search_uuid_unparse_lower=no
18248 fi
18249 rm conftest.$ac_ext
18250 LIBS=$ac_func_search_save_LIBS
18251 fi
18252 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18253 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18254 ac_res=$ac_cv_search_uuid_unparse_lower
18255 if test "$ac_res" != no; then
18256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18257   :
18258 else
18259   have_uuid=no
18260 fi
18261
18262                 LIBS="$save_LIBS"
18263
18264                 if test $have_uuid = yes ; then
18265
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE_UUID_GENERATE 1
18268 _ACEOF
18269
18270
18271                         test "$ac_cv_search_uuid_generate" = "none required" || \
18272                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18273                 fi
18274         fi
18275 fi
18276
18277 if test $have_uuid = no ; then
18278         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18279 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18280         save_LIBS="$LIBS"
18281         LIBS="$LIBS -lrpcrt4"
18282         cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288
18289                 int __stdcall UuidCreate(void *);
18290                 int __stdcall UuidToStringA(void *,void **);
18291
18292 int
18293 main ()
18294 {
18295
18296                 UuidCreate(0);
18297                 UuidToStringA(0,0);
18298
18299   ;
18300   return 0;
18301 }
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307   *) ac_try_echo=$ac_try;;
18308 esac
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310   (eval "$ac_link") 2>conftest.er1
18311   ac_status=$?
18312   grep -v '^ *+' conftest.er1 >conftest.err
18313   rm -f conftest.er1
18314   cat conftest.err >&5
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); } && {
18317          test -z "$ac_c_werror_flag" ||
18318          test ! -s conftest.err
18319        } && test -s conftest$ac_exeext &&
18320        $as_test_x conftest$ac_exeext; then
18321   need_rpcrt=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326         need_rpcrt=no
18327 fi
18328
18329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18330       conftest$ac_exeext conftest.$ac_ext
18331         if test $need_rpcrt = yes; then
18332                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18333         fi
18334         LIBS="$save_LIBS"
18335         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18336 echo "${ECHO_T}$need_rpcrt" >&6; }
18337 fi
18338
18339 ol_cv_lib_resolver=no
18340 if test $ol_cv_lib_resolver = no ; then
18341         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18342 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18343 if test "${ol_cv_resolver_none+set}" = set; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346
18347         ol_RESOLVER_LIB=
18348         ol_LIBS=$LIBS
18349         LIBS="$ol_RESOLVER_LIB $LIBS"
18350
18351         cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h.  */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h.  */
18357
18358 #ifdef HAVE_SYS_TYPES_H
18359 #       include <sys/types.h>
18360 #endif
18361 #include <netinet/in.h>
18362 #ifdef HAVE_ARPA_NAMESER_H
18363 #       include <arpa/nameser.h>
18364 #endif
18365 #ifdef HAVE_RESOLV_H
18366 #       include <resolv.h>
18367 #endif
18368
18369 int
18370 main ()
18371 {
18372 {
18373         int len, status;
18374         char *request = NULL;
18375         unsigned char reply[64*1024];
18376         unsigned char host[64*1024];
18377         unsigned char *p;
18378
18379 #ifdef NS_HFIXEDSZ
18380         /* Bind 8/9 interface */
18381         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18382 #else
18383         /* Bind 4 interface */
18384 # ifndef T_SRV
18385 #  define T_SRV 33
18386 # endif
18387         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18388 #endif
18389         p = reply;
18390 #ifdef NS_HFIXEDSZ
18391         /* Bind 8/9 interface */
18392         p += NS_HFIXEDSZ;
18393 #elif defined(HFIXEDSZ)
18394         /* Bind 4 interface w/ HFIXEDSZ */
18395         p += HFIXEDSZ;
18396 #else
18397         /* Bind 4 interface w/o HFIXEDSZ */
18398         p += sizeof(HEADER);
18399 #endif
18400         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18401 }
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_link") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } && {
18420          test -z "$ac_c_werror_flag" ||
18421          test ! -s conftest.err
18422        } && test -s conftest$ac_exeext &&
18423        $as_test_x conftest$ac_exeext; then
18424   ol_cv_resolver_none=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429         ol_cv_resolver_none=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18433       conftest$ac_exeext conftest.$ac_ext
18434
18435         LIBS="$ol_LIBS"
18436
18437 fi
18438 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18439 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18440
18441         if test $ol_cv_resolver_none = yes ; then
18442                 ol_cv_lib_resolver=yes
18443         fi
18444 fi
18445
18446 if test $ol_cv_lib_resolver = no ; then
18447         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18448 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18449 if test "${ol_cv_resolver_resolv+set}" = set; then
18450   echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452
18453         ol_RESOLVER_LIB=-lresolv
18454         ol_LIBS=$LIBS
18455         LIBS="$ol_RESOLVER_LIB $LIBS"
18456
18457         cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463
18464 #ifdef HAVE_SYS_TYPES_H
18465 #       include <sys/types.h>
18466 #endif
18467 #include <netinet/in.h>
18468 #ifdef HAVE_ARPA_NAMESER_H
18469 #       include <arpa/nameser.h>
18470 #endif
18471 #ifdef HAVE_RESOLV_H
18472 #       include <resolv.h>
18473 #endif
18474
18475 int
18476 main ()
18477 {
18478 {
18479         int len, status;
18480         char *request = NULL;
18481         unsigned char reply[64*1024];
18482         unsigned char host[64*1024];
18483         unsigned char *p;
18484
18485 #ifdef NS_HFIXEDSZ
18486         /* Bind 8/9 interface */
18487         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18488 #else
18489         /* Bind 4 interface */
18490 # ifndef T_SRV
18491 #  define T_SRV 33
18492 # endif
18493         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18494 #endif
18495         p = reply;
18496 #ifdef NS_HFIXEDSZ
18497         /* Bind 8/9 interface */
18498         p += NS_HFIXEDSZ;
18499 #elif defined(HFIXEDSZ)
18500         /* Bind 4 interface w/ HFIXEDSZ */
18501         p += HFIXEDSZ;
18502 #else
18503         /* Bind 4 interface w/o HFIXEDSZ */
18504         p += sizeof(HEADER);
18505 #endif
18506         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18507 }
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_link") 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } && {
18526          test -z "$ac_c_werror_flag" ||
18527          test ! -s conftest.err
18528        } && test -s conftest$ac_exeext &&
18529        $as_test_x conftest$ac_exeext; then
18530   ol_cv_resolver_resolv=yes
18531 else
18532   echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18534
18535         ol_cv_resolver_resolv=no
18536 fi
18537
18538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18539       conftest$ac_exeext conftest.$ac_ext
18540
18541         LIBS="$ol_LIBS"
18542
18543 fi
18544 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18545 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18546
18547         if test $ol_cv_resolver_resolv = yes ; then
18548                 ol_cv_lib_resolver=-lresolv
18549         fi
18550 fi
18551
18552 if test $ol_cv_lib_resolver = no ; then
18553         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18554 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18555 if test "${ol_cv_resolver_bind+set}" = set; then
18556   echo $ECHO_N "(cached) $ECHO_C" >&6
18557 else
18558
18559         ol_RESOLVER_LIB=-lbind
18560         ol_LIBS=$LIBS
18561         LIBS="$ol_RESOLVER_LIB $LIBS"
18562
18563         cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h.  */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h.  */
18569
18570 #ifdef HAVE_SYS_TYPES_H
18571 #       include <sys/types.h>
18572 #endif
18573 #include <netinet/in.h>
18574 #ifdef HAVE_ARPA_NAMESER_H
18575 #       include <arpa/nameser.h>
18576 #endif
18577 #ifdef HAVE_RESOLV_H
18578 #       include <resolv.h>
18579 #endif
18580
18581 int
18582 main ()
18583 {
18584 {
18585         int len, status;
18586         char *request = NULL;
18587         unsigned char reply[64*1024];
18588         unsigned char host[64*1024];
18589         unsigned char *p;
18590
18591 #ifdef NS_HFIXEDSZ
18592         /* Bind 8/9 interface */
18593         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18594 #else
18595         /* Bind 4 interface */
18596 # ifndef T_SRV
18597 #  define T_SRV 33
18598 # endif
18599         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18600 #endif
18601         p = reply;
18602 #ifdef NS_HFIXEDSZ
18603         /* Bind 8/9 interface */
18604         p += NS_HFIXEDSZ;
18605 #elif defined(HFIXEDSZ)
18606         /* Bind 4 interface w/ HFIXEDSZ */
18607         p += HFIXEDSZ;
18608 #else
18609         /* Bind 4 interface w/o HFIXEDSZ */
18610         p += sizeof(HEADER);
18611 #endif
18612         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18613 }
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (ac_try="$ac_link"
18620 case "(($ac_try" in
18621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622   *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625   (eval "$ac_link") 2>conftest.er1
18626   ac_status=$?
18627   grep -v '^ *+' conftest.er1 >conftest.err
18628   rm -f conftest.er1
18629   cat conftest.err >&5
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); } && {
18632          test -z "$ac_c_werror_flag" ||
18633          test ! -s conftest.err
18634        } && test -s conftest$ac_exeext &&
18635        $as_test_x conftest$ac_exeext; then
18636   ol_cv_resolver_bind=yes
18637 else
18638   echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18640
18641         ol_cv_resolver_bind=no
18642 fi
18643
18644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18645       conftest$ac_exeext conftest.$ac_ext
18646
18647         LIBS="$ol_LIBS"
18648
18649 fi
18650 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18651 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18652
18653         if test $ol_cv_resolver_bind = yes ; then
18654                 ol_cv_lib_resolver=-lbind
18655         fi
18656 fi
18657
18658
18659
18660 ol_link_dnssrv=no
18661 if test "$ol_cv_lib_resolver" != no ; then
18662
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_RES_QUERY 1
18665 _ACEOF
18666
18667
18668         if test "$ol_enable_dnssrv" != no ; then
18669                 ol_link_dnssrv=yes
18670         fi
18671
18672         if test "$ol_cv_lib_resolver" != yes ; then
18673                 LIBS="$ol_cv_lib_resolver $LIBS"
18674         fi
18675 fi
18676
18677 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18678         if test "$ol_link_dnssrv" = no ; then
18679                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18680 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18681    { (exit 1); exit 1; }; }
18682         fi
18683 else
18684         ol_enable_dnssrv=no
18685 fi
18686
18687
18688 for ac_func in hstrerror
18689 do
18690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18694   echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
18696   cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18704 #define $ac_func innocuous_$ac_func
18705
18706 /* System header to define __stub macros and hopefully few prototypes,
18707     which can conflict with char $ac_func (); below.
18708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709     <limits.h> exists even on freestanding compilers.  */
18710
18711 #ifdef __STDC__
18712 # include <limits.h>
18713 #else
18714 # include <assert.h>
18715 #endif
18716
18717 #undef $ac_func
18718
18719 /* Override any GCC internal prototype to avoid an error.
18720    Use char because int might match the return type of a GCC
18721    builtin and then its argument prototype would still apply.  */
18722 #ifdef __cplusplus
18723 extern "C"
18724 #endif
18725 char $ac_func ();
18726 /* The GNU C library defines this for functions which it implements
18727     to always fail with ENOSYS.  Some functions are actually named
18728     something starting with __ and the normal name is an alias.  */
18729 #if defined __stub_$ac_func || defined __stub___$ac_func
18730 choke me
18731 #endif
18732
18733 int
18734 main ()
18735 {
18736 return $ac_func ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748   (eval "$ac_link") 2>conftest.er1
18749   ac_status=$?
18750   grep -v '^ *+' conftest.er1 >conftest.err
18751   rm -f conftest.er1
18752   cat conftest.err >&5
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); } && {
18755          test -z "$ac_c_werror_flag" ||
18756          test ! -s conftest.err
18757        } && test -s conftest$ac_exeext &&
18758        $as_test_x conftest$ac_exeext; then
18759   eval "$as_ac_var=yes"
18760 else
18761   echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764         eval "$as_ac_var=no"
18765 fi
18766
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768       conftest$ac_exeext conftest.$ac_ext
18769 fi
18770 ac_res=`eval echo '${'$as_ac_var'}'`
18771                { echo "$as_me:$LINENO: result: $ac_res" >&5
18772 echo "${ECHO_T}$ac_res" >&6; }
18773 if test `eval echo '${'$as_ac_var'}'` = yes; then
18774   cat >>confdefs.h <<_ACEOF
18775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18776 _ACEOF
18777
18778 fi
18779 done
18780
18781
18782
18783
18784
18785
18786 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18787 do
18788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18792   echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794   cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18802 #define $ac_func innocuous_$ac_func
18803
18804 /* System header to define __stub macros and hopefully few prototypes,
18805     which can conflict with char $ac_func (); below.
18806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18807     <limits.h> exists even on freestanding compilers.  */
18808
18809 #ifdef __STDC__
18810 # include <limits.h>
18811 #else
18812 # include <assert.h>
18813 #endif
18814
18815 #undef $ac_func
18816
18817 /* Override any GCC internal prototype to avoid an error.
18818    Use char because int might match the return type of a GCC
18819    builtin and then its argument prototype would still apply.  */
18820 #ifdef __cplusplus
18821 extern "C"
18822 #endif
18823 char $ac_func ();
18824 /* The GNU C library defines this for functions which it implements
18825     to always fail with ENOSYS.  Some functions are actually named
18826     something starting with __ and the normal name is an alias.  */
18827 #if defined __stub_$ac_func || defined __stub___$ac_func
18828 choke me
18829 #endif
18830
18831 int
18832 main ()
18833 {
18834 return $ac_func ();
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_link") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && {
18853          test -z "$ac_c_werror_flag" ||
18854          test ! -s conftest.err
18855        } && test -s conftest$ac_exeext &&
18856        $as_test_x conftest$ac_exeext; then
18857   eval "$as_ac_var=yes"
18858 else
18859   echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862         eval "$as_ac_var=no"
18863 fi
18864
18865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18866       conftest$ac_exeext conftest.$ac_ext
18867 fi
18868 ac_res=`eval echo '${'$as_ac_var'}'`
18869                { echo "$as_me:$LINENO: result: $ac_res" >&5
18870 echo "${ECHO_T}$ac_res" >&6; }
18871 if test `eval echo '${'$as_ac_var'}'` = yes; then
18872   cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18874 _ACEOF
18875
18876 fi
18877 done
18878
18879
18880 ol_link_ipv6=no
18881 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18882         if test $ol_enable_ipv6 = yes ; then
18883                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18884 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18885    { (exit 1); exit 1; }; }
18886         fi
18887 elif test $ol_enable_ipv6 != no ; then
18888         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18889 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18890 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893
18894                 cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h.  */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h.  */
18900
18901 #                       include <netinet/in.h>
18902 #                       ifdef INET6_ADDRSTRLEN
18903                                 __has_inet6_addrstrlen__;
18904 #                       endif
18905
18906 _ACEOF
18907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18908   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18909   ol_cv_inet6_addrstrlen=yes
18910 else
18911   ol_cv_inet6_addrstrlen=no
18912 fi
18913 rm -f conftest*
18914
18915 fi
18916 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18917 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18918
18919
18920         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18921 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18922 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925
18926                 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932
18933 #include <sys/types.h>
18934 #include <sys/socket.h>
18935
18936 int
18937 main ()
18938 {
18939
18940                         struct sockaddr_storage ss;
18941
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (ac_try="$ac_compile"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_compile") 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } && {
18960          test -z "$ac_c_werror_flag" ||
18961          test ! -s conftest.err
18962        } && test -s conftest.$ac_objext; then
18963   ol_cv_struct_sockaddr_storage=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         ol_cv_struct_sockaddr_storage=no
18969 fi
18970
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18972 fi
18973 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18974 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
18975
18976         if test $ol_cv_inet6_addrstrlen = yes &&
18977            test $ol_cv_struct_sockaddr_storage = yes ; then
18978                 ol_link_ipv6=yes
18979         elif test $ol_enable_ipv6 = yes &&
18980              test $ol_cv_inet6_addrstrlen = no ; then
18981                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18982 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18983    { (exit 1); exit 1; }; }
18984         elif test $ol_enable_ipv6 = yes &&
18985              test $ol_cv_struct_sockaddr_storage = no ; then
18986                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18987 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18988    { (exit 1); exit 1; }; }
18989         fi
18990 fi
18991
18992 if test $ol_enable_local != no ; then
18993
18994 for ac_header in sys/un.h
18995 do
18996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18998   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 fi
19003 ac_res=`eval echo '${'$as_ac_Header'}'`
19004                { echo "$as_me:$LINENO: result: $ac_res" >&5
19005 echo "${ECHO_T}$ac_res" >&6; }
19006 else
19007   # Is the header compilable?
19008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h.  */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h.  */
19016 $ac_includes_default
19017 #include <$ac_header>
19018 _ACEOF
19019 rm -f conftest.$ac_objext
19020 if { (ac_try="$ac_compile"
19021 case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_compile") 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } && {
19033          test -z "$ac_c_werror_flag" ||
19034          test ! -s conftest.err
19035        } && test -s conftest.$ac_objext; then
19036   ac_header_compiler=yes
19037 else
19038   echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19040
19041         ac_header_compiler=no
19042 fi
19043
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19046 echo "${ECHO_T}$ac_header_compiler" >&6; }
19047
19048 # Is the header present?
19049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h.  */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h.  */
19057 #include <$ac_header>
19058 _ACEOF
19059 if { (ac_try="$ac_cpp conftest.$ac_ext"
19060 case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19066   ac_status=$?
19067   grep -v '^ *+' conftest.er1 >conftest.err
19068   rm -f conftest.er1
19069   cat conftest.err >&5
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); } >/dev/null && {
19072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19073          test ! -s conftest.err
19074        }; then
19075   ac_header_preproc=yes
19076 else
19077   echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080   ac_header_preproc=no
19081 fi
19082
19083 rm -f conftest.err conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19085 echo "${ECHO_T}$ac_header_preproc" >&6; }
19086
19087 # So?  What about this header?
19088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19089   yes:no: )
19090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19094     ac_header_preproc=yes
19095     ;;
19096   no:yes:* )
19097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19109     ( cat <<\_ASBOX
19110 ## --------------------------------------------- ##
19111 ## Report this to <http://www.openldap.org/its/> ##
19112 ## --------------------------------------------- ##
19113 _ASBOX
19114      ) | sed "s/^/$as_me: WARNING:     /" >&2
19115     ;;
19116 esac
19117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122   eval "$as_ac_Header=\$ac_header_preproc"
19123 fi
19124 ac_res=`eval echo '${'$as_ac_Header'}'`
19125                { echo "$as_me:$LINENO: result: $ac_res" >&5
19126 echo "${ECHO_T}$ac_res" >&6; }
19127
19128 fi
19129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19130   cat >>confdefs.h <<_ACEOF
19131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19132 _ACEOF
19133
19134 fi
19135
19136 done
19137
19138
19139         if test $ol_enable_local = auto ; then
19140                 ol_enable_local=$ac_cv_header_sys_un_h
19141         elif test $ac_cv_header_sys_un_h = no ; then
19142                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19143 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19144    { (exit 1); exit 1; }; }
19145         fi
19146 fi
19147
19148
19149 if test $ol_with_tls = yes ; then
19150         ol_with_tls=auto
19151 fi
19152
19153 ol_link_tls=no
19154 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19155
19156 for ac_header in openssl/ssl.h
19157 do
19158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 fi
19165 ac_res=`eval echo '${'$as_ac_Header'}'`
19166                { echo "$as_me:$LINENO: result: $ac_res" >&5
19167 echo "${ECHO_T}$ac_res" >&6; }
19168 else
19169   # Is the header compilable?
19170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178 $ac_includes_default
19179 #include <$ac_header>
19180 _ACEOF
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_compile") 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } && {
19195          test -z "$ac_c_werror_flag" ||
19196          test ! -s conftest.err
19197        } && test -s conftest.$ac_objext; then
19198   ac_header_compiler=yes
19199 else
19200   echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203         ac_header_compiler=no
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208 echo "${ECHO_T}$ac_header_compiler" >&6; }
19209
19210 # Is the header present?
19211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19213 cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h.  */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h.  */
19219 #include <$ac_header>
19220 _ACEOF
19221 if { (ac_try="$ac_cpp conftest.$ac_ext"
19222 case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } >/dev/null && {
19234          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19235          test ! -s conftest.err
19236        }; then
19237   ac_header_preproc=yes
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242   ac_header_preproc=no
19243 fi
19244
19245 rm -f conftest.err conftest.$ac_ext
19246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19247 echo "${ECHO_T}$ac_header_preproc" >&6; }
19248
19249 # So?  What about this header?
19250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19251   yes:no: )
19252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19256     ac_header_preproc=yes
19257     ;;
19258   no:yes:* )
19259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19271     ( cat <<\_ASBOX
19272 ## --------------------------------------------- ##
19273 ## Report this to <http://www.openldap.org/its/> ##
19274 ## --------------------------------------------- ##
19275 _ASBOX
19276      ) | sed "s/^/$as_me: WARNING:     /" >&2
19277     ;;
19278 esac
19279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19282   echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284   eval "$as_ac_Header=\$ac_header_preproc"
19285 fi
19286 ac_res=`eval echo '${'$as_ac_Header'}'`
19287                { echo "$as_me:$LINENO: result: $ac_res" >&5
19288 echo "${ECHO_T}$ac_res" >&6; }
19289
19290 fi
19291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19292   cat >>confdefs.h <<_ACEOF
19293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19294 _ACEOF
19295
19296 fi
19297
19298 done
19299
19300
19301         if test $ac_cv_header_openssl_ssl_h = yes ; then
19302                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19303 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19304 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19305   echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307   ac_check_lib_save_LIBS=$LIBS
19308 LIBS="-lssl -lcrypto $LIBS"
19309 cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h.  */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h.  */
19315
19316 /* Override any GCC internal prototype to avoid an error.
19317    Use char because int might match the return type of a GCC
19318    builtin and then its argument prototype would still apply.  */
19319 #ifdef __cplusplus
19320 extern "C"
19321 #endif
19322 char SSL_library_init ();
19323 int
19324 main ()
19325 {
19326 return SSL_library_init ();
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (ac_try="$ac_link"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_link") 2>conftest.er1
19339   ac_status=$?
19340   grep -v '^ *+' conftest.er1 >conftest.err
19341   rm -f conftest.er1
19342   cat conftest.err >&5
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } && {
19345          test -z "$ac_c_werror_flag" ||
19346          test ! -s conftest.err
19347        } && test -s conftest$ac_exeext &&
19348        $as_test_x conftest$ac_exeext; then
19349   ac_cv_lib_ssl_SSL_library_init=yes
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354         ac_cv_lib_ssl_SSL_library_init=no
19355 fi
19356
19357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19358       conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19360 fi
19361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19362 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19363 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19364   have_openssl=yes
19365                         need_rsaref=no
19366 else
19367   have_openssl=no
19368 fi
19369
19370
19371                 if test $have_openssl = no ; then
19372                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19373 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19374 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19379 cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385
19386 /* Override any GCC internal prototype to avoid an error.
19387    Use char because int might match the return type of a GCC
19388    builtin and then its argument prototype would still apply.  */
19389 #ifdef __cplusplus
19390 extern "C"
19391 #endif
19392 char ssl3_accept ();
19393 int
19394 main ()
19395 {
19396 return ssl3_accept ();
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405   *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408   (eval "$ac_link") 2>conftest.er1
19409   ac_status=$?
19410   grep -v '^ *+' conftest.er1 >conftest.err
19411   rm -f conftest.er1
19412   cat conftest.err >&5
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } && {
19415          test -z "$ac_c_werror_flag" ||
19416          test ! -s conftest.err
19417        } && test -s conftest$ac_exeext &&
19418        $as_test_x conftest$ac_exeext; then
19419   ac_cv_lib_ssl_ssl3_accept=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424         ac_cv_lib_ssl_ssl3_accept=no
19425 fi
19426
19427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19428       conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19430 fi
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19432 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19433 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19434   have_openssl=yes
19435                                 need_rsaref=yes
19436 else
19437   have_openssl=no
19438 fi
19439
19440                 fi
19441
19442                 if test $have_openssl = yes ; then
19443                         ol_with_tls=openssl
19444                         ol_link_tls=yes
19445
19446
19447 cat >>confdefs.h <<\_ACEOF
19448 #define HAVE_OPENSSL 1
19449 _ACEOF
19450
19451
19452                         if test $need_rsaref = yes; then
19453
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_RSAREF 1
19456 _ACEOF
19457
19458
19459                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19460                         else
19461                                 TLS_LIBS="-lssl -lcrypto"
19462                         fi
19463
19464                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19465 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19466 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469
19470                 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476
19477 #ifdef HAVE_OPENSSL_SSL_H
19478 #include <openssl/ssl.h>
19479 #endif
19480
19481 /* Require 0.9.7d+ */
19482 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19483         char *__ssl_compat = "0.9.7d";
19484 #endif
19485
19486 _ACEOF
19487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19488   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19489   ol_cv_ssl_crl_compat=yes
19490 else
19491   ol_cv_ssl_crl_compat=no
19492 fi
19493 rm -f conftest*
19494
19495 fi
19496 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19497 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19498
19499                         if test $ol_cv_ssl_crl_compat = yes ; then
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_OPENSSL_CRL 1
19503 _ACEOF
19504
19505                         fi
19506                 fi
19507         fi
19508 fi
19509
19510 if test $ol_link_tls = no ; then
19511         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19512
19513 for ac_header in gnutls/gnutls.h
19514 do
19515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19520   echo $ECHO_N "(cached) $ECHO_C" >&6
19521 fi
19522 ac_res=`eval echo '${'$as_ac_Header'}'`
19523                { echo "$as_me:$LINENO: result: $ac_res" >&5
19524 echo "${ECHO_T}$ac_res" >&6; }
19525 else
19526   # Is the header compilable?
19527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h.  */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h.  */
19535 $ac_includes_default
19536 #include <$ac_header>
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542   *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545   (eval "$ac_compile") 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } && {
19552          test -z "$ac_c_werror_flag" ||
19553          test ! -s conftest.err
19554        } && test -s conftest.$ac_objext; then
19555   ac_header_compiler=yes
19556 else
19557   echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560         ac_header_compiler=no
19561 fi
19562
19563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19565 echo "${ECHO_T}$ac_header_compiler" >&6; }
19566
19567 # Is the header present?
19568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19570 cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h.  */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h.  */
19576 #include <$ac_header>
19577 _ACEOF
19578 if { (ac_try="$ac_cpp conftest.$ac_ext"
19579 case "(($ac_try" in
19580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581   *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19585   ac_status=$?
19586   grep -v '^ *+' conftest.er1 >conftest.err
19587   rm -f conftest.er1
19588   cat conftest.err >&5
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); } >/dev/null && {
19591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19592          test ! -s conftest.err
19593        }; then
19594   ac_header_preproc=yes
19595 else
19596   echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19598
19599   ac_header_preproc=no
19600 fi
19601
19602 rm -f conftest.err conftest.$ac_ext
19603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19604 echo "${ECHO_T}$ac_header_preproc" >&6; }
19605
19606 # So?  What about this header?
19607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19608   yes:no: )
19609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19613     ac_header_preproc=yes
19614     ;;
19615   no:yes:* )
19616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19628     ( cat <<\_ASBOX
19629 ## --------------------------------------------- ##
19630 ## Report this to <http://www.openldap.org/its/> ##
19631 ## --------------------------------------------- ##
19632 _ASBOX
19633      ) | sed "s/^/$as_me: WARNING:     /" >&2
19634     ;;
19635 esac
19636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639   echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641   eval "$as_ac_Header=\$ac_header_preproc"
19642 fi
19643 ac_res=`eval echo '${'$as_ac_Header'}'`
19644                { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 echo "${ECHO_T}$ac_res" >&6; }
19646
19647 fi
19648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19649   cat >>confdefs.h <<_ACEOF
19650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19651 _ACEOF
19652
19653 fi
19654
19655 done
19656
19657
19658                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19659                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19660 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lgnutls  $LIBS"
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672
19673 /* Override any GCC internal prototype to avoid an error.
19674    Use char because int might match the return type of a GCC
19675    builtin and then its argument prototype would still apply.  */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 char gnutls_init ();
19680 int
19681 main ()
19682 {
19683 return gnutls_init ();
19684   ;
19685   return 0;
19686 }
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_link") 2>conftest.er1
19696   ac_status=$?
19697   grep -v '^ *+' conftest.er1 >conftest.err
19698   rm -f conftest.er1
19699   cat conftest.err >&5
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); } && {
19702          test -z "$ac_c_werror_flag" ||
19703          test ! -s conftest.err
19704        } && test -s conftest$ac_exeext &&
19705        $as_test_x conftest$ac_exeext; then
19706   ac_cv_lib_gnutls_gnutls_init=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711         ac_cv_lib_gnutls_gnutls_init=no
19712 fi
19713
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715       conftest$ac_exeext conftest.$ac_ext
19716 LIBS=$ac_check_lib_save_LIBS
19717 fi
19718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19719 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19720 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19721   have_gnutls=yes
19722 else
19723   have_gnutls=no
19724 fi
19725
19726
19727                         if test $have_gnutls = yes ; then
19728                                 ol_with_tls=gnutls
19729                                 ol_link_tls=yes
19730
19731                                 TLS_LIBS="-lgnutls"
19732
19733
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_GNUTLS 1
19736 _ACEOF
19737
19738                         fi
19739                 fi
19740         fi
19741 fi
19742
19743 if test $ol_link_tls = no ; then
19744         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19745                 have_moznss=no
19746
19747 for ac_header in nssutil.h
19748 do
19749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19754   echo $ECHO_N "(cached) $ECHO_C" >&6
19755 fi
19756 ac_res=`eval echo '${'$as_ac_Header'}'`
19757                { echo "$as_me:$LINENO: result: $ac_res" >&5
19758 echo "${ECHO_T}$ac_res" >&6; }
19759 else
19760   # Is the header compilable?
19761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 $ac_includes_default
19770 #include <$ac_header>
19771 _ACEOF
19772 rm -f conftest.$ac_objext
19773 if { (ac_try="$ac_compile"
19774 case "(($ac_try" in
19775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776   *) ac_try_echo=$ac_try;;
19777 esac
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779   (eval "$ac_compile") 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } && {
19786          test -z "$ac_c_werror_flag" ||
19787          test ! -s conftest.err
19788        } && test -s conftest.$ac_objext; then
19789   ac_header_compiler=yes
19790 else
19791   echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794         ac_header_compiler=no
19795 fi
19796
19797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19799 echo "${ECHO_T}$ac_header_compiler" >&6; }
19800
19801 # Is the header present?
19802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19804 cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 #include <$ac_header>
19811 _ACEOF
19812 if { (ac_try="$ac_cpp conftest.$ac_ext"
19813 case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19819   ac_status=$?
19820   grep -v '^ *+' conftest.er1 >conftest.err
19821   rm -f conftest.er1
19822   cat conftest.err >&5
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); } >/dev/null && {
19825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19826          test ! -s conftest.err
19827        }; then
19828   ac_header_preproc=yes
19829 else
19830   echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833   ac_header_preproc=no
19834 fi
19835
19836 rm -f conftest.err conftest.$ac_ext
19837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19838 echo "${ECHO_T}$ac_header_preproc" >&6; }
19839
19840 # So?  What about this header?
19841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19842   yes:no: )
19843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19847     ac_header_preproc=yes
19848     ;;
19849   no:yes:* )
19850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19862     ( cat <<\_ASBOX
19863 ## --------------------------------------------- ##
19864 ## Report this to <http://www.openldap.org/its/> ##
19865 ## --------------------------------------------- ##
19866 _ASBOX
19867      ) | sed "s/^/$as_me: WARNING:     /" >&2
19868     ;;
19869 esac
19870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19873   echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875   eval "$as_ac_Header=\$ac_header_preproc"
19876 fi
19877 ac_res=`eval echo '${'$as_ac_Header'}'`
19878                { echo "$as_me:$LINENO: result: $ac_res" >&5
19879 echo "${ECHO_T}$ac_res" >&6; }
19880
19881 fi
19882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19883   cat >>confdefs.h <<_ACEOF
19884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19885 _ACEOF
19886
19887 fi
19888
19889 done
19890
19891                 if test "$ac_cv_header_nssutil_h" = yes ; then
19892                         { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
19893 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
19894 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
19895   echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897   ac_check_lib_save_LIBS=$LIBS
19898 LIBS="-lnss3  $LIBS"
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h.  */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h.  */
19905
19906 /* Override any GCC internal prototype to avoid an error.
19907    Use char because int might match the return type of a GCC
19908    builtin and then its argument prototype would still apply.  */
19909 #ifdef __cplusplus
19910 extern "C"
19911 #endif
19912 char NSS_Initialize ();
19913 int
19914 main ()
19915 {
19916 return NSS_Initialize ();
19917   ;
19918   return 0;
19919 }
19920 _ACEOF
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925   *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928   (eval "$ac_link") 2>conftest.er1
19929   ac_status=$?
19930   grep -v '^ *+' conftest.er1 >conftest.err
19931   rm -f conftest.er1
19932   cat conftest.err >&5
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); } && {
19935          test -z "$ac_c_werror_flag" ||
19936          test ! -s conftest.err
19937        } && test -s conftest$ac_exeext &&
19938        $as_test_x conftest$ac_exeext; then
19939   ac_cv_lib_nss3_NSS_Initialize=yes
19940 else
19941   echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944         ac_cv_lib_nss3_NSS_Initialize=no
19945 fi
19946
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948       conftest$ac_exeext conftest.$ac_ext
19949 LIBS=$ac_check_lib_save_LIBS
19950 fi
19951 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
19952 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
19953 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
19954    have_moznss=yes
19955 else
19956    have_moznss=no
19957 fi
19958
19959                 fi
19960
19961                 if test "$have_moznss" = yes ; then
19962                         ol_with_tls=moznss
19963                         ol_link_tls=yes
19964
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_MOZNSS 1
19967 _ACEOF
19968
19969                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
19970                 else
19971                         { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
19972 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
19973    { (exit 1); exit 1; }; }
19974                 fi
19975         fi
19976 fi
19977
19978 WITH_TLS=no
19979 if test $ol_link_tls = yes ; then
19980
19981 cat >>confdefs.h <<\_ACEOF
19982 #define HAVE_TLS 1
19983 _ACEOF
19984
19985         WITH_TLS=yes
19986 elif test $ol_with_tls = auto ; then
19987         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19988 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19989         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19990 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19991 elif test $ol_with_tls != no ; then
19992         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19993 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19994    { (exit 1); exit 1; }; }
19995 else
19996         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19997 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19998 fi
19999
20000 if test $ol_enable_lmpasswd != no; then
20001         if test $ol_link_tls != yes ; then
20002                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20003 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20004    { (exit 1); exit 1; }; }
20005         fi
20006
20007
20008 cat >>confdefs.h <<\_ACEOF
20009 #define SLAPD_LMHASH 1
20010 _ACEOF
20011
20012 fi
20013
20014 ol_link_threads=no
20015
20016 case $ol_with_threads in auto | yes | nt)
20017
20018
20019         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20020 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20021 if test "${ac_cv_func__beginthread+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20032 #define _beginthread innocuous__beginthread
20033
20034 /* System header to define __stub macros and hopefully few prototypes,
20035     which can conflict with char _beginthread (); below.
20036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20037     <limits.h> exists even on freestanding compilers.  */
20038
20039 #ifdef __STDC__
20040 # include <limits.h>
20041 #else
20042 # include <assert.h>
20043 #endif
20044
20045 #undef _beginthread
20046
20047 /* Override any GCC internal prototype to avoid an error.
20048    Use char because int might match the return type of a GCC
20049    builtin and then its argument prototype would still apply.  */
20050 #ifdef __cplusplus
20051 extern "C"
20052 #endif
20053 char _beginthread ();
20054 /* The GNU C library defines this for functions which it implements
20055     to always fail with ENOSYS.  Some functions are actually named
20056     something starting with __ and the normal name is an alias.  */
20057 #if defined __stub__beginthread || defined __stub____beginthread
20058 choke me
20059 #endif
20060
20061 int
20062 main ()
20063 {
20064 return _beginthread ();
20065   ;
20066   return 0;
20067 }
20068 _ACEOF
20069 rm -f conftest.$ac_objext conftest$ac_exeext
20070 if { (ac_try="$ac_link"
20071 case "(($ac_try" in
20072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073   *) ac_try_echo=$ac_try;;
20074 esac
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076   (eval "$ac_link") 2>conftest.er1
20077   ac_status=$?
20078   grep -v '^ *+' conftest.er1 >conftest.err
20079   rm -f conftest.er1
20080   cat conftest.err >&5
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); } && {
20083          test -z "$ac_c_werror_flag" ||
20084          test ! -s conftest.err
20085        } && test -s conftest$ac_exeext &&
20086        $as_test_x conftest$ac_exeext; then
20087   ac_cv_func__beginthread=yes
20088 else
20089   echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092         ac_cv_func__beginthread=no
20093 fi
20094
20095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20096       conftest$ac_exeext conftest.$ac_ext
20097 fi
20098 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20099 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20100
20101
20102         if test $ac_cv_func__beginthread = yes ; then
20103
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_NT_THREADS 1
20106 _ACEOF
20107
20108                 ol_cv_nt_threads=yes
20109         fi
20110
20111
20112         if test "$ol_cv_nt_threads" = yes ; then
20113                 ol_link_threads=nt
20114                 ol_with_threads=found
20115                 ol_with_yielding_select=yes
20116
20117
20118 cat >>confdefs.h <<\_ACEOF
20119 #define HAVE_NT_SERVICE_MANAGER 1
20120 _ACEOF
20121
20122
20123 cat >>confdefs.h <<\_ACEOF
20124 #define HAVE_NT_EVENT_LOG 1
20125 _ACEOF
20126
20127         fi
20128
20129         if test $ol_with_threads = nt ; then
20130                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20131 echo "$as_me: error: could not locate NT Threads" >&2;}
20132    { (exit 1); exit 1; }; }
20133         fi
20134         ;;
20135 esac
20136
20137 case $ol_with_threads in auto | yes | posix)
20138
20139
20140 for ac_header in pthread.h
20141 do
20142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20144   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 fi
20149 ac_res=`eval echo '${'$as_ac_Header'}'`
20150                { echo "$as_me:$LINENO: result: $ac_res" >&5
20151 echo "${ECHO_T}$ac_res" >&6; }
20152 else
20153   # Is the header compilable?
20154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162 $ac_includes_default
20163 #include <$ac_header>
20164 _ACEOF
20165 rm -f conftest.$ac_objext
20166 if { (ac_try="$ac_compile"
20167 case "(($ac_try" in
20168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169   *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172   (eval "$ac_compile") 2>conftest.er1
20173   ac_status=$?
20174   grep -v '^ *+' conftest.er1 >conftest.err
20175   rm -f conftest.er1
20176   cat conftest.err >&5
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); } && {
20179          test -z "$ac_c_werror_flag" ||
20180          test ! -s conftest.err
20181        } && test -s conftest.$ac_objext; then
20182   ac_header_compiler=yes
20183 else
20184   echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187         ac_header_compiler=no
20188 fi
20189
20190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20192 echo "${ECHO_T}$ac_header_compiler" >&6; }
20193
20194 # Is the header present?
20195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h.  */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h.  */
20203 #include <$ac_header>
20204 _ACEOF
20205 if { (ac_try="$ac_cpp conftest.$ac_ext"
20206 case "(($ac_try" in
20207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208   *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } >/dev/null && {
20218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20219          test ! -s conftest.err
20220        }; then
20221   ac_header_preproc=yes
20222 else
20223   echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20225
20226   ac_header_preproc=no
20227 fi
20228
20229 rm -f conftest.err conftest.$ac_ext
20230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20231 echo "${ECHO_T}$ac_header_preproc" >&6; }
20232
20233 # So?  What about this header?
20234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20235   yes:no: )
20236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20240     ac_header_preproc=yes
20241     ;;
20242   no:yes:* )
20243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20255     ( cat <<\_ASBOX
20256 ## --------------------------------------------- ##
20257 ## Report this to <http://www.openldap.org/its/> ##
20258 ## --------------------------------------------- ##
20259 _ASBOX
20260      ) | sed "s/^/$as_me: WARNING:     /" >&2
20261     ;;
20262 esac
20263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   eval "$as_ac_Header=\$ac_header_preproc"
20269 fi
20270 ac_res=`eval echo '${'$as_ac_Header'}'`
20271                { echo "$as_me:$LINENO: result: $ac_res" >&5
20272 echo "${ECHO_T}$ac_res" >&6; }
20273
20274 fi
20275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20276   cat >>confdefs.h <<_ACEOF
20277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20278 _ACEOF
20279
20280 fi
20281
20282 done
20283
20284
20285         if test $ac_cv_header_pthread_h = yes ; then
20286                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20287 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20288 if test "${ol_cv_pthread_version+set}" = set; then
20289   echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291
20292         cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h.  */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h.  */
20298
20299 #               include <pthread.h>
20300
20301 int
20302 main ()
20303 {
20304
20305                 int i = PTHREAD_CREATE_JOINABLE;
20306
20307   ;
20308   return 0;
20309 }
20310 _ACEOF
20311 rm -f conftest.$ac_objext
20312 if { (ac_try="$ac_compile"
20313 case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_compile") 2>conftest.er1
20319   ac_status=$?
20320   grep -v '^ *+' conftest.er1 >conftest.err
20321   rm -f conftest.er1
20322   cat conftest.err >&5
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); } && {
20325          test -z "$ac_c_werror_flag" ||
20326          test ! -s conftest.err
20327        } && test -s conftest.$ac_objext; then
20328
20329         cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335 #include <pthread.h>
20336
20337 _ACEOF
20338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20339   $EGREP "pthread_detach" >/dev/null 2>&1; then
20340   ol_cv_pthread_version=10
20341 else
20342   ol_cv_pthread_version=8
20343 fi
20344 rm -f conftest*
20345
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350
20351         cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357
20358 #               include <pthread.h>
20359 #               ifdef PTHREAD_CREATE_UNDETACHED
20360                 draft7
20361 #               endif
20362
20363 _ACEOF
20364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20365   $EGREP "draft7" >/dev/null 2>&1; then
20366   ol_cv_pthread_version=7
20367 else
20368
20369         cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375 #include <pthread.h>
20376
20377 _ACEOF
20378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20379   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20380   ol_cv_pthread_version=6
20381 else
20382
20383         cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389
20390 #               include <pthread.h>
20391 #ifdef          PTHREAD_MUTEX_INITIALIZER
20392                 draft5
20393 #endif
20394
20395 _ACEOF
20396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20397   $EGREP "draft5" >/dev/null 2>&1; then
20398   ol_cv_pthread_version=5
20399 else
20400   ol_cv_pthread_version=4
20401 fi
20402 rm -f conftest*
20403
20404 fi
20405 rm -f conftest*
20406
20407 fi
20408 rm -f conftest*
20409
20410 fi
20411
20412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413
20414 fi
20415 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20416 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20417
20418
20419                 if test $ol_cv_pthread_version != 0 ; then
20420
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_PTHREADS $ol_cv_pthread_version
20423 _ACEOF
20424
20425                 else
20426                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20427 echo "$as_me: error: unknown pthread version" >&2;}
20428    { (exit 1); exit 1; }; }
20429                 fi
20430
20431                 # consider threads found
20432                 ol_with_threads=found
20433
20434
20435         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20436 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20437 if test "${ol_cv_header_linux_threads+set}" = set; then
20438   echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440   cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h.  */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h.  */
20446 #include <pthread.h>
20447 _ACEOF
20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20449   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20450   ol_cv_header_linux_threads=yes
20451 else
20452   ol_cv_header_linux_threads=no
20453 fi
20454 rm -f conftest*
20455
20456
20457 fi
20458 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20459 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20460         if test $ol_cv_header_linux_threads = yes; then
20461
20462 cat >>confdefs.h <<\_ACEOF
20463 #define HAVE_LINUX_THREADS 1
20464 _ACEOF
20465
20466         fi
20467
20468
20469         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20470 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20471 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h.  */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h.  */
20480 #include <pthread.h>
20481 #ifdef _POSIX_THREAD_IS_GNU_PTH
20482         __gnu_pth__;
20483 #endif
20484
20485 _ACEOF
20486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20487   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20488   ol_cv_header_gnu_pth_pthread_h=yes
20489 else
20490   ol_cv_header_gnu_pth_pthread_h=no
20491 fi
20492 rm -f conftest*
20493
20494
20495 fi
20496 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20497 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20498
20499
20500                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20501
20502 for ac_header in sched.h
20503 do
20504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20509   echo $ECHO_N "(cached) $ECHO_C" >&6
20510 fi
20511 ac_res=`eval echo '${'$as_ac_Header'}'`
20512                { echo "$as_me:$LINENO: result: $ac_res" >&5
20513 echo "${ECHO_T}$ac_res" >&6; }
20514 else
20515   # Is the header compilable?
20516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h.  */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h.  */
20524 $ac_includes_default
20525 #include <$ac_header>
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (ac_try="$ac_compile"
20529 case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_compile") 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } && {
20541          test -z "$ac_c_werror_flag" ||
20542          test ! -s conftest.err
20543        } && test -s conftest.$ac_objext; then
20544   ac_header_compiler=yes
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549         ac_header_compiler=no
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20554 echo "${ECHO_T}$ac_header_compiler" >&6; }
20555
20556 # Is the header present?
20557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h.  */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h.  */
20565 #include <$ac_header>
20566 _ACEOF
20567 if { (ac_try="$ac_cpp conftest.$ac_ext"
20568 case "(($ac_try" in
20569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570   *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } >/dev/null && {
20580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20581          test ! -s conftest.err
20582        }; then
20583   ac_header_preproc=yes
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588   ac_header_preproc=no
20589 fi
20590
20591 rm -f conftest.err conftest.$ac_ext
20592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20593 echo "${ECHO_T}$ac_header_preproc" >&6; }
20594
20595 # So?  What about this header?
20596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20597   yes:no: )
20598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20602     ac_header_preproc=yes
20603     ;;
20604   no:yes:* )
20605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20617     ( cat <<\_ASBOX
20618 ## --------------------------------------------- ##
20619 ## Report this to <http://www.openldap.org/its/> ##
20620 ## --------------------------------------------- ##
20621 _ASBOX
20622      ) | sed "s/^/$as_me: WARNING:     /" >&2
20623     ;;
20624 esac
20625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   eval "$as_ac_Header=\$ac_header_preproc"
20631 fi
20632 ac_res=`eval echo '${'$as_ac_Header'}'`
20633                { echo "$as_me:$LINENO: result: $ac_res" >&5
20634 echo "${ECHO_T}$ac_res" >&6; }
20635
20636 fi
20637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20638   cat >>confdefs.h <<_ACEOF
20639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20640 _ACEOF
20641
20642 fi
20643
20644 done
20645
20646                 fi
20647
20648
20649                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20650 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20651 if test "${ol_cv_pthread_create+set}" = set; then
20652   echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654
20655                         if test "$cross_compiling" = yes; then
20656   cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662
20663 /* pthread test headers */
20664 #include <pthread.h>
20665 #if HAVE_PTHREADS < 7
20666 #include <errno.h>
20667 #endif
20668 #ifndef NULL
20669 #define NULL (void*)0
20670 #endif
20671
20672 static void *task(p)
20673         void *p;
20674 {
20675         return (void *) (p == NULL);
20676 }
20677
20678 int
20679 main ()
20680 {
20681
20682         /* pthread test function */
20683 #ifndef PTHREAD_CREATE_DETACHED
20684 #define PTHREAD_CREATE_DETACHED 1
20685 #endif
20686         pthread_t t;
20687         int status;
20688         int detach = PTHREAD_CREATE_DETACHED;
20689
20690 #if HAVE_PTHREADS > 4
20691         /* Final pthreads */
20692         pthread_attr_t attr;
20693
20694         status = pthread_attr_init(&attr);
20695         if( status ) return status;
20696
20697 #if HAVE_PTHREADS < 7
20698         status = pthread_attr_setdetachstate(&attr, &detach);
20699         if( status < 0 ) status = errno;
20700 #else
20701         status = pthread_attr_setdetachstate(&attr, detach);
20702 #endif
20703         if( status ) return status;
20704         status = pthread_create( &t, &attr, task, NULL );
20705 #if HAVE_PTHREADS < 7
20706         if( status < 0 ) status = errno;
20707 #endif
20708         if( status ) return status;
20709 #else
20710         /* Draft 4 pthreads */
20711         status = pthread_create( &t, pthread_attr_default, task, NULL );
20712         if( status ) return errno;
20713
20714         /* give thread a chance to complete */
20715         /* it should remain joinable and hence detachable */
20716         sleep( 1 );
20717
20718         status = pthread_detach( &t );
20719         if( status ) return errno;
20720 #endif
20721
20722 #ifdef HAVE_LINUX_THREADS
20723         pthread_kill_other_threads_np();
20724 #endif
20725
20726         return 0;
20727
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_link") 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } && {
20746          test -z "$ac_c_werror_flag" ||
20747          test ! -s conftest.err
20748        } && test -s conftest$ac_exeext &&
20749        $as_test_x conftest$ac_exeext; then
20750   ol_cv_pthread_create=yes
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755         ol_cv_pthread_create=no
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20759       conftest$ac_exeext conftest.$ac_ext
20760 else
20761   cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h.  */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h.  */
20767
20768 /* pthread test headers */
20769 #include <pthread.h>
20770 #if HAVE_PTHREADS < 7
20771 #include <errno.h>
20772 #endif
20773 #ifndef NULL
20774 #define NULL (void*)0
20775 #endif
20776
20777 static void *task(p)
20778         void *p;
20779 {
20780         return (void *) (p == NULL);
20781 }
20782
20783
20784 int main(argc, argv)
20785         int argc;
20786         char **argv;
20787 {
20788
20789         /* pthread test function */
20790 #ifndef PTHREAD_CREATE_DETACHED
20791 #define PTHREAD_CREATE_DETACHED 1
20792 #endif
20793         pthread_t t;
20794         int status;
20795         int detach = PTHREAD_CREATE_DETACHED;
20796
20797 #if HAVE_PTHREADS > 4
20798         /* Final pthreads */
20799         pthread_attr_t attr;
20800
20801         status = pthread_attr_init(&attr);
20802         if( status ) return status;
20803
20804 #if HAVE_PTHREADS < 7
20805         status = pthread_attr_setdetachstate(&attr, &detach);
20806         if( status < 0 ) status = errno;
20807 #else
20808         status = pthread_attr_setdetachstate(&attr, detach);
20809 #endif
20810         if( status ) return status;
20811         status = pthread_create( &t, &attr, task, NULL );
20812 #if HAVE_PTHREADS < 7
20813         if( status < 0 ) status = errno;
20814 #endif
20815         if( status ) return status;
20816 #else
20817         /* Draft 4 pthreads */
20818         status = pthread_create( &t, pthread_attr_default, task, NULL );
20819         if( status ) return errno;
20820
20821         /* give thread a chance to complete */
20822         /* it should remain joinable and hence detachable */
20823         sleep( 1 );
20824
20825         status = pthread_detach( &t );
20826         if( status ) return errno;
20827 #endif
20828
20829 #ifdef HAVE_LINUX_THREADS
20830         pthread_kill_other_threads_np();
20831 #endif
20832
20833         return 0;
20834
20835 }
20836
20837 _ACEOF
20838 rm -f conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842   *) ac_try_echo=$ac_try;;
20843 esac
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845   (eval "$ac_link") 2>&5
20846   ac_status=$?
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20849   { (case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_try") 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; }; then
20858   ol_cv_pthread_create=yes
20859 else
20860   echo "$as_me: program exited with status $ac_status" >&5
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ( exit $ac_status )
20865 ol_cv_pthread_create=no
20866 fi
20867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20868 fi
20869
20870
20871 fi
20872 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20873 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20874
20875                 if test $ol_cv_pthread_create != no ; then
20876                         ol_link_threads=posix
20877                         ol_link_pthreads=""
20878                 fi
20879
20880                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20881 if test "$ol_link_threads" = no ; then
20882         # try -kthread
20883         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20884 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20885 if test "${ol_cv_pthread_kthread+set}" = set; then
20886   echo $ECHO_N "(cached) $ECHO_C" >&6
20887 else
20888
20889                 # save the flags
20890                 ol_LIBS="$LIBS"
20891                 LIBS="-kthread $LIBS"
20892
20893                 if test "$cross_compiling" = yes; then
20894   cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900
20901 /* pthread test headers */
20902 #include <pthread.h>
20903 #if HAVE_PTHREADS < 7
20904 #include <errno.h>
20905 #endif
20906 #ifndef NULL
20907 #define NULL (void*)0
20908 #endif
20909
20910 static void *task(p)
20911         void *p;
20912 {
20913         return (void *) (p == NULL);
20914 }
20915
20916 int
20917 main ()
20918 {
20919
20920         /* pthread test function */
20921 #ifndef PTHREAD_CREATE_DETACHED
20922 #define PTHREAD_CREATE_DETACHED 1
20923 #endif
20924         pthread_t t;
20925         int status;
20926         int detach = PTHREAD_CREATE_DETACHED;
20927
20928 #if HAVE_PTHREADS > 4
20929         /* Final pthreads */
20930         pthread_attr_t attr;
20931
20932         status = pthread_attr_init(&attr);
20933         if( status ) return status;
20934
20935 #if HAVE_PTHREADS < 7
20936         status = pthread_attr_setdetachstate(&attr, &detach);
20937         if( status < 0 ) status = errno;
20938 #else
20939         status = pthread_attr_setdetachstate(&attr, detach);
20940 #endif
20941         if( status ) return status;
20942         status = pthread_create( &t, &attr, task, NULL );
20943 #if HAVE_PTHREADS < 7
20944         if( status < 0 ) status = errno;
20945 #endif
20946         if( status ) return status;
20947 #else
20948         /* Draft 4 pthreads */
20949         status = pthread_create( &t, pthread_attr_default, task, NULL );
20950         if( status ) return errno;
20951
20952         /* give thread a chance to complete */
20953         /* it should remain joinable and hence detachable */
20954         sleep( 1 );
20955
20956         status = pthread_detach( &t );
20957         if( status ) return errno;
20958 #endif
20959
20960 #ifdef HAVE_LINUX_THREADS
20961         pthread_kill_other_threads_np();
20962 #endif
20963
20964         return 0;
20965
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (ac_try="$ac_link"
20972 case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_link") 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } && {
20984          test -z "$ac_c_werror_flag" ||
20985          test ! -s conftest.err
20986        } && test -s conftest$ac_exeext &&
20987        $as_test_x conftest$ac_exeext; then
20988   ol_cv_pthread_kthread=yes
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993         ol_cv_pthread_kthread=no
20994 fi
20995
20996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20997       conftest$ac_exeext conftest.$ac_ext
20998 else
20999   cat >conftest.$ac_ext <<_ACEOF
21000 /* confdefs.h.  */
21001 _ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h.  */
21005
21006 /* pthread test headers */
21007 #include <pthread.h>
21008 #if HAVE_PTHREADS < 7
21009 #include <errno.h>
21010 #endif
21011 #ifndef NULL
21012 #define NULL (void*)0
21013 #endif
21014
21015 static void *task(p)
21016         void *p;
21017 {
21018         return (void *) (p == NULL);
21019 }
21020
21021
21022 int main(argc, argv)
21023         int argc;
21024         char **argv;
21025 {
21026
21027         /* pthread test function */
21028 #ifndef PTHREAD_CREATE_DETACHED
21029 #define PTHREAD_CREATE_DETACHED 1
21030 #endif
21031         pthread_t t;
21032         int status;
21033         int detach = PTHREAD_CREATE_DETACHED;
21034
21035 #if HAVE_PTHREADS > 4
21036         /* Final pthreads */
21037         pthread_attr_t attr;
21038
21039         status = pthread_attr_init(&attr);
21040         if( status ) return status;
21041
21042 #if HAVE_PTHREADS < 7
21043         status = pthread_attr_setdetachstate(&attr, &detach);
21044         if( status < 0 ) status = errno;
21045 #else
21046         status = pthread_attr_setdetachstate(&attr, detach);
21047 #endif
21048         if( status ) return status;
21049         status = pthread_create( &t, &attr, task, NULL );
21050 #if HAVE_PTHREADS < 7
21051         if( status < 0 ) status = errno;
21052 #endif
21053         if( status ) return status;
21054 #else
21055         /* Draft 4 pthreads */
21056         status = pthread_create( &t, pthread_attr_default, task, NULL );
21057         if( status ) return errno;
21058
21059         /* give thread a chance to complete */
21060         /* it should remain joinable and hence detachable */
21061         sleep( 1 );
21062
21063         status = pthread_detach( &t );
21064         if( status ) return errno;
21065 #endif
21066
21067 #ifdef HAVE_LINUX_THREADS
21068         pthread_kill_other_threads_np();
21069 #endif
21070
21071         return 0;
21072
21073 }
21074
21075 _ACEOF
21076 rm -f conftest$ac_exeext
21077 if { (ac_try="$ac_link"
21078 case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_link") 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21087   { (case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_try") 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); }; }; then
21096   ol_cv_pthread_kthread=yes
21097 else
21098   echo "$as_me: program exited with status $ac_status" >&5
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 ( exit $ac_status )
21103 ol_cv_pthread_kthread=no
21104 fi
21105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21106 fi
21107
21108
21109
21110                 # restore the LIBS
21111                 LIBS="$ol_LIBS"
21112
21113 fi
21114 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21115 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21116
21117         if test $ol_cv_pthread_kthread = yes ; then
21118                 ol_link_pthreads="-kthread"
21119                 ol_link_threads=posix
21120         fi
21121 fi
21122
21123                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21124 if test "$ol_link_threads" = no ; then
21125         # try -pthread
21126         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21127 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21128 if test "${ol_cv_pthread_pthread+set}" = set; then
21129   echo $ECHO_N "(cached) $ECHO_C" >&6
21130 else
21131
21132                 # save the flags
21133                 ol_LIBS="$LIBS"
21134                 LIBS="-pthread $LIBS"
21135
21136                 if test "$cross_compiling" = yes; then
21137   cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143
21144 /* pthread test headers */
21145 #include <pthread.h>
21146 #if HAVE_PTHREADS < 7
21147 #include <errno.h>
21148 #endif
21149 #ifndef NULL
21150 #define NULL (void*)0
21151 #endif
21152
21153 static void *task(p)
21154         void *p;
21155 {
21156         return (void *) (p == NULL);
21157 }
21158
21159 int
21160 main ()
21161 {
21162
21163         /* pthread test function */
21164 #ifndef PTHREAD_CREATE_DETACHED
21165 #define PTHREAD_CREATE_DETACHED 1
21166 #endif
21167         pthread_t t;
21168         int status;
21169         int detach = PTHREAD_CREATE_DETACHED;
21170
21171 #if HAVE_PTHREADS > 4
21172         /* Final pthreads */
21173         pthread_attr_t attr;
21174
21175         status = pthread_attr_init(&attr);
21176         if( status ) return status;
21177
21178 #if HAVE_PTHREADS < 7
21179         status = pthread_attr_setdetachstate(&attr, &detach);
21180         if( status < 0 ) status = errno;
21181 #else
21182         status = pthread_attr_setdetachstate(&attr, detach);
21183 #endif
21184         if( status ) return status;
21185         status = pthread_create( &t, &attr, task, NULL );
21186 #if HAVE_PTHREADS < 7
21187         if( status < 0 ) status = errno;
21188 #endif
21189         if( status ) return status;
21190 #else
21191         /* Draft 4 pthreads */
21192         status = pthread_create( &t, pthread_attr_default, task, NULL );
21193         if( status ) return errno;
21194
21195         /* give thread a chance to complete */
21196         /* it should remain joinable and hence detachable */
21197         sleep( 1 );
21198
21199         status = pthread_detach( &t );
21200         if( status ) return errno;
21201 #endif
21202
21203 #ifdef HAVE_LINUX_THREADS
21204         pthread_kill_other_threads_np();
21205 #endif
21206
21207         return 0;
21208
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext conftest$ac_exeext
21214 if { (ac_try="$ac_link"
21215 case "(($ac_try" in
21216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217   *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220   (eval "$ac_link") 2>conftest.er1
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
21224   cat conftest.err >&5
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } && {
21227          test -z "$ac_c_werror_flag" ||
21228          test ! -s conftest.err
21229        } && test -s conftest$ac_exeext &&
21230        $as_test_x conftest$ac_exeext; then
21231   ol_cv_pthread_pthread=yes
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236         ol_cv_pthread_pthread=no
21237 fi
21238
21239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21240       conftest$ac_exeext conftest.$ac_ext
21241 else
21242   cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h.  */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h.  */
21248
21249 /* pthread test headers */
21250 #include <pthread.h>
21251 #if HAVE_PTHREADS < 7
21252 #include <errno.h>
21253 #endif
21254 #ifndef NULL
21255 #define NULL (void*)0
21256 #endif
21257
21258 static void *task(p)
21259         void *p;
21260 {
21261         return (void *) (p == NULL);
21262 }
21263
21264
21265 int main(argc, argv)
21266         int argc;
21267         char **argv;
21268 {
21269
21270         /* pthread test function */
21271 #ifndef PTHREAD_CREATE_DETACHED
21272 #define PTHREAD_CREATE_DETACHED 1
21273 #endif
21274         pthread_t t;
21275         int status;
21276         int detach = PTHREAD_CREATE_DETACHED;
21277
21278 #if HAVE_PTHREADS > 4
21279         /* Final pthreads */
21280         pthread_attr_t attr;
21281
21282         status = pthread_attr_init(&attr);
21283         if( status ) return status;
21284
21285 #if HAVE_PTHREADS < 7
21286         status = pthread_attr_setdetachstate(&attr, &detach);
21287         if( status < 0 ) status = errno;
21288 #else
21289         status = pthread_attr_setdetachstate(&attr, detach);
21290 #endif
21291         if( status ) return status;
21292         status = pthread_create( &t, &attr, task, NULL );
21293 #if HAVE_PTHREADS < 7
21294         if( status < 0 ) status = errno;
21295 #endif
21296         if( status ) return status;
21297 #else
21298         /* Draft 4 pthreads */
21299         status = pthread_create( &t, pthread_attr_default, task, NULL );
21300         if( status ) return errno;
21301
21302         /* give thread a chance to complete */
21303         /* it should remain joinable and hence detachable */
21304         sleep( 1 );
21305
21306         status = pthread_detach( &t );
21307         if( status ) return errno;
21308 #endif
21309
21310 #ifdef HAVE_LINUX_THREADS
21311         pthread_kill_other_threads_np();
21312 #endif
21313
21314         return 0;
21315
21316 }
21317
21318 _ACEOF
21319 rm -f conftest$ac_exeext
21320 if { (ac_try="$ac_link"
21321 case "(($ac_try" in
21322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323   *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326   (eval "$ac_link") 2>&5
21327   ac_status=$?
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21330   { (case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_try") 2>&5
21336   ac_status=$?
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); }; }; then
21339   ol_cv_pthread_pthread=yes
21340 else
21341   echo "$as_me: program exited with status $ac_status" >&5
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345 ( exit $ac_status )
21346 ol_cv_pthread_pthread=no
21347 fi
21348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21349 fi
21350
21351
21352
21353                 # restore the LIBS
21354                 LIBS="$ol_LIBS"
21355
21356 fi
21357 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21358 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21359
21360         if test $ol_cv_pthread_pthread = yes ; then
21361                 ol_link_pthreads="-pthread"
21362                 ol_link_threads=posix
21363         fi
21364 fi
21365
21366                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21367 if test "$ol_link_threads" = no ; then
21368         # try -pthreads
21369         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21370 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21371 if test "${ol_cv_pthread_pthreads+set}" = set; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374
21375                 # save the flags
21376                 ol_LIBS="$LIBS"
21377                 LIBS="-pthreads $LIBS"
21378
21379                 if test "$cross_compiling" = yes; then
21380   cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386
21387 /* pthread test headers */
21388 #include <pthread.h>
21389 #if HAVE_PTHREADS < 7
21390 #include <errno.h>
21391 #endif
21392 #ifndef NULL
21393 #define NULL (void*)0
21394 #endif
21395
21396 static void *task(p)
21397         void *p;
21398 {
21399         return (void *) (p == NULL);
21400 }
21401
21402 int
21403 main ()
21404 {
21405
21406         /* pthread test function */
21407 #ifndef PTHREAD_CREATE_DETACHED
21408 #define PTHREAD_CREATE_DETACHED 1
21409 #endif
21410         pthread_t t;
21411         int status;
21412         int detach = PTHREAD_CREATE_DETACHED;
21413
21414 #if HAVE_PTHREADS > 4
21415         /* Final pthreads */
21416         pthread_attr_t attr;
21417
21418         status = pthread_attr_init(&attr);
21419         if( status ) return status;
21420
21421 #if HAVE_PTHREADS < 7
21422         status = pthread_attr_setdetachstate(&attr, &detach);
21423         if( status < 0 ) status = errno;
21424 #else
21425         status = pthread_attr_setdetachstate(&attr, detach);
21426 #endif
21427         if( status ) return status;
21428         status = pthread_create( &t, &attr, task, NULL );
21429 #if HAVE_PTHREADS < 7
21430         if( status < 0 ) status = errno;
21431 #endif
21432         if( status ) return status;
21433 #else
21434         /* Draft 4 pthreads */
21435         status = pthread_create( &t, pthread_attr_default, task, NULL );
21436         if( status ) return errno;
21437
21438         /* give thread a chance to complete */
21439         /* it should remain joinable and hence detachable */
21440         sleep( 1 );
21441
21442         status = pthread_detach( &t );
21443         if( status ) return errno;
21444 #endif
21445
21446 #ifdef HAVE_LINUX_THREADS
21447         pthread_kill_other_threads_np();
21448 #endif
21449
21450         return 0;
21451
21452   ;
21453   return 0;
21454 }
21455 _ACEOF
21456 rm -f conftest.$ac_objext conftest$ac_exeext
21457 if { (ac_try="$ac_link"
21458 case "(($ac_try" in
21459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460   *) ac_try_echo=$ac_try;;
21461 esac
21462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463   (eval "$ac_link") 2>conftest.er1
21464   ac_status=$?
21465   grep -v '^ *+' conftest.er1 >conftest.err
21466   rm -f conftest.er1
21467   cat conftest.err >&5
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } && {
21470          test -z "$ac_c_werror_flag" ||
21471          test ! -s conftest.err
21472        } && test -s conftest$ac_exeext &&
21473        $as_test_x conftest$ac_exeext; then
21474   ol_cv_pthread_pthreads=yes
21475 else
21476   echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21478
21479         ol_cv_pthread_pthreads=no
21480 fi
21481
21482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21483       conftest$ac_exeext conftest.$ac_ext
21484 else
21485   cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491
21492 /* pthread test headers */
21493 #include <pthread.h>
21494 #if HAVE_PTHREADS < 7
21495 #include <errno.h>
21496 #endif
21497 #ifndef NULL
21498 #define NULL (void*)0
21499 #endif
21500
21501 static void *task(p)
21502         void *p;
21503 {
21504         return (void *) (p == NULL);
21505 }
21506
21507
21508 int main(argc, argv)
21509         int argc;
21510         char **argv;
21511 {
21512
21513         /* pthread test function */
21514 #ifndef PTHREAD_CREATE_DETACHED
21515 #define PTHREAD_CREATE_DETACHED 1
21516 #endif
21517         pthread_t t;
21518         int status;
21519         int detach = PTHREAD_CREATE_DETACHED;
21520
21521 #if HAVE_PTHREADS > 4
21522         /* Final pthreads */
21523         pthread_attr_t attr;
21524
21525         status = pthread_attr_init(&attr);
21526         if( status ) return status;
21527
21528 #if HAVE_PTHREADS < 7
21529         status = pthread_attr_setdetachstate(&attr, &detach);
21530         if( status < 0 ) status = errno;
21531 #else
21532         status = pthread_attr_setdetachstate(&attr, detach);
21533 #endif
21534         if( status ) return status;
21535         status = pthread_create( &t, &attr, task, NULL );
21536 #if HAVE_PTHREADS < 7
21537         if( status < 0 ) status = errno;
21538 #endif
21539         if( status ) return status;
21540 #else
21541         /* Draft 4 pthreads */
21542         status = pthread_create( &t, pthread_attr_default, task, NULL );
21543         if( status ) return errno;
21544
21545         /* give thread a chance to complete */
21546         /* it should remain joinable and hence detachable */
21547         sleep( 1 );
21548
21549         status = pthread_detach( &t );
21550         if( status ) return errno;
21551 #endif
21552
21553 #ifdef HAVE_LINUX_THREADS
21554         pthread_kill_other_threads_np();
21555 #endif
21556
21557         return 0;
21558
21559 }
21560
21561 _ACEOF
21562 rm -f conftest$ac_exeext
21563 if { (ac_try="$ac_link"
21564 case "(($ac_try" in
21565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566   *) ac_try_echo=$ac_try;;
21567 esac
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569   (eval "$ac_link") 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21573   { (case "(($ac_try" in
21574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575   *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578   (eval "$ac_try") 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; }; then
21582   ol_cv_pthread_pthreads=yes
21583 else
21584   echo "$as_me: program exited with status $ac_status" >&5
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588 ( exit $ac_status )
21589 ol_cv_pthread_pthreads=no
21590 fi
21591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21592 fi
21593
21594
21595
21596                 # restore the LIBS
21597                 LIBS="$ol_LIBS"
21598
21599 fi
21600 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21601 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21602
21603         if test $ol_cv_pthread_pthreads = yes ; then
21604                 ol_link_pthreads="-pthreads"
21605                 ol_link_threads=posix
21606         fi
21607 fi
21608
21609                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21610 if test "$ol_link_threads" = no ; then
21611         # try -mthreads
21612         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21613 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21614 if test "${ol_cv_pthread_mthreads+set}" = set; then
21615   echo $ECHO_N "(cached) $ECHO_C" >&6
21616 else
21617
21618                 # save the flags
21619                 ol_LIBS="$LIBS"
21620                 LIBS="-mthreads $LIBS"
21621
21622                 if test "$cross_compiling" = yes; then
21623   cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629
21630 /* pthread test headers */
21631 #include <pthread.h>
21632 #if HAVE_PTHREADS < 7
21633 #include <errno.h>
21634 #endif
21635 #ifndef NULL
21636 #define NULL (void*)0
21637 #endif
21638
21639 static void *task(p)
21640         void *p;
21641 {
21642         return (void *) (p == NULL);
21643 }
21644
21645 int
21646 main ()
21647 {
21648
21649         /* pthread test function */
21650 #ifndef PTHREAD_CREATE_DETACHED
21651 #define PTHREAD_CREATE_DETACHED 1
21652 #endif
21653         pthread_t t;
21654         int status;
21655         int detach = PTHREAD_CREATE_DETACHED;
21656
21657 #if HAVE_PTHREADS > 4
21658         /* Final pthreads */
21659         pthread_attr_t attr;
21660
21661         status = pthread_attr_init(&attr);
21662         if( status ) return status;
21663
21664 #if HAVE_PTHREADS < 7
21665         status = pthread_attr_setdetachstate(&attr, &detach);
21666         if( status < 0 ) status = errno;
21667 #else
21668         status = pthread_attr_setdetachstate(&attr, detach);
21669 #endif
21670         if( status ) return status;
21671         status = pthread_create( &t, &attr, task, NULL );
21672 #if HAVE_PTHREADS < 7
21673         if( status < 0 ) status = errno;
21674 #endif
21675         if( status ) return status;
21676 #else
21677         /* Draft 4 pthreads */
21678         status = pthread_create( &t, pthread_attr_default, task, NULL );
21679         if( status ) return errno;
21680
21681         /* give thread a chance to complete */
21682         /* it should remain joinable and hence detachable */
21683         sleep( 1 );
21684
21685         status = pthread_detach( &t );
21686         if( status ) return errno;
21687 #endif
21688
21689 #ifdef HAVE_LINUX_THREADS
21690         pthread_kill_other_threads_np();
21691 #endif
21692
21693         return 0;
21694
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext conftest$ac_exeext
21700 if { (ac_try="$ac_link"
21701 case "(($ac_try" in
21702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703   *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706   (eval "$ac_link") 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } && {
21713          test -z "$ac_c_werror_flag" ||
21714          test ! -s conftest.err
21715        } && test -s conftest$ac_exeext &&
21716        $as_test_x conftest$ac_exeext; then
21717   ol_cv_pthread_mthreads=yes
21718 else
21719   echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722         ol_cv_pthread_mthreads=no
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21726       conftest$ac_exeext conftest.$ac_ext
21727 else
21728   cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734
21735 /* pthread test headers */
21736 #include <pthread.h>
21737 #if HAVE_PTHREADS < 7
21738 #include <errno.h>
21739 #endif
21740 #ifndef NULL
21741 #define NULL (void*)0
21742 #endif
21743
21744 static void *task(p)
21745         void *p;
21746 {
21747         return (void *) (p == NULL);
21748 }
21749
21750
21751 int main(argc, argv)
21752         int argc;
21753         char **argv;
21754 {
21755
21756         /* pthread test function */
21757 #ifndef PTHREAD_CREATE_DETACHED
21758 #define PTHREAD_CREATE_DETACHED 1
21759 #endif
21760         pthread_t t;
21761         int status;
21762         int detach = PTHREAD_CREATE_DETACHED;
21763
21764 #if HAVE_PTHREADS > 4
21765         /* Final pthreads */
21766         pthread_attr_t attr;
21767
21768         status = pthread_attr_init(&attr);
21769         if( status ) return status;
21770
21771 #if HAVE_PTHREADS < 7
21772         status = pthread_attr_setdetachstate(&attr, &detach);
21773         if( status < 0 ) status = errno;
21774 #else
21775         status = pthread_attr_setdetachstate(&attr, detach);
21776 #endif
21777         if( status ) return status;
21778         status = pthread_create( &t, &attr, task, NULL );
21779 #if HAVE_PTHREADS < 7
21780         if( status < 0 ) status = errno;
21781 #endif
21782         if( status ) return status;
21783 #else
21784         /* Draft 4 pthreads */
21785         status = pthread_create( &t, pthread_attr_default, task, NULL );
21786         if( status ) return errno;
21787
21788         /* give thread a chance to complete */
21789         /* it should remain joinable and hence detachable */
21790         sleep( 1 );
21791
21792         status = pthread_detach( &t );
21793         if( status ) return errno;
21794 #endif
21795
21796 #ifdef HAVE_LINUX_THREADS
21797         pthread_kill_other_threads_np();
21798 #endif
21799
21800         return 0;
21801
21802 }
21803
21804 _ACEOF
21805 rm -f conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809   *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812   (eval "$ac_link") 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21816   { (case "(($ac_try" in
21817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818   *) ac_try_echo=$ac_try;;
21819 esac
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821   (eval "$ac_try") 2>&5
21822   ac_status=$?
21823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824   (exit $ac_status); }; }; then
21825   ol_cv_pthread_mthreads=yes
21826 else
21827   echo "$as_me: program exited with status $ac_status" >&5
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831 ( exit $ac_status )
21832 ol_cv_pthread_mthreads=no
21833 fi
21834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21835 fi
21836
21837
21838
21839                 # restore the LIBS
21840                 LIBS="$ol_LIBS"
21841
21842 fi
21843 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21844 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21845
21846         if test $ol_cv_pthread_mthreads = yes ; then
21847                 ol_link_pthreads="-mthreads"
21848                 ol_link_threads=posix
21849         fi
21850 fi
21851
21852                 # Pthread try link: -thread (ol_cv_pthread_thread)
21853 if test "$ol_link_threads" = no ; then
21854         # try -thread
21855         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21856 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21857 if test "${ol_cv_pthread_thread+set}" = set; then
21858   echo $ECHO_N "(cached) $ECHO_C" >&6
21859 else
21860
21861                 # save the flags
21862                 ol_LIBS="$LIBS"
21863                 LIBS="-thread $LIBS"
21864
21865                 if test "$cross_compiling" = yes; then
21866   cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872
21873 /* pthread test headers */
21874 #include <pthread.h>
21875 #if HAVE_PTHREADS < 7
21876 #include <errno.h>
21877 #endif
21878 #ifndef NULL
21879 #define NULL (void*)0
21880 #endif
21881
21882 static void *task(p)
21883         void *p;
21884 {
21885         return (void *) (p == NULL);
21886 }
21887
21888 int
21889 main ()
21890 {
21891
21892         /* pthread test function */
21893 #ifndef PTHREAD_CREATE_DETACHED
21894 #define PTHREAD_CREATE_DETACHED 1
21895 #endif
21896         pthread_t t;
21897         int status;
21898         int detach = PTHREAD_CREATE_DETACHED;
21899
21900 #if HAVE_PTHREADS > 4
21901         /* Final pthreads */
21902         pthread_attr_t attr;
21903
21904         status = pthread_attr_init(&attr);
21905         if( status ) return status;
21906
21907 #if HAVE_PTHREADS < 7
21908         status = pthread_attr_setdetachstate(&attr, &detach);
21909         if( status < 0 ) status = errno;
21910 #else
21911         status = pthread_attr_setdetachstate(&attr, detach);
21912 #endif
21913         if( status ) return status;
21914         status = pthread_create( &t, &attr, task, NULL );
21915 #if HAVE_PTHREADS < 7
21916         if( status < 0 ) status = errno;
21917 #endif
21918         if( status ) return status;
21919 #else
21920         /* Draft 4 pthreads */
21921         status = pthread_create( &t, pthread_attr_default, task, NULL );
21922         if( status ) return errno;
21923
21924         /* give thread a chance to complete */
21925         /* it should remain joinable and hence detachable */
21926         sleep( 1 );
21927
21928         status = pthread_detach( &t );
21929         if( status ) return errno;
21930 #endif
21931
21932 #ifdef HAVE_LINUX_THREADS
21933         pthread_kill_other_threads_np();
21934 #endif
21935
21936         return 0;
21937
21938   ;
21939   return 0;
21940 }
21941 _ACEOF
21942 rm -f conftest.$ac_objext conftest$ac_exeext
21943 if { (ac_try="$ac_link"
21944 case "(($ac_try" in
21945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946   *) ac_try_echo=$ac_try;;
21947 esac
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949   (eval "$ac_link") 2>conftest.er1
21950   ac_status=$?
21951   grep -v '^ *+' conftest.er1 >conftest.err
21952   rm -f conftest.er1
21953   cat conftest.err >&5
21954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955   (exit $ac_status); } && {
21956          test -z "$ac_c_werror_flag" ||
21957          test ! -s conftest.err
21958        } && test -s conftest$ac_exeext &&
21959        $as_test_x conftest$ac_exeext; then
21960   ol_cv_pthread_thread=yes
21961 else
21962   echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965         ol_cv_pthread_thread=no
21966 fi
21967
21968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21969       conftest$ac_exeext conftest.$ac_ext
21970 else
21971   cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h.  */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h.  */
21977
21978 /* pthread test headers */
21979 #include <pthread.h>
21980 #if HAVE_PTHREADS < 7
21981 #include <errno.h>
21982 #endif
21983 #ifndef NULL
21984 #define NULL (void*)0
21985 #endif
21986
21987 static void *task(p)
21988         void *p;
21989 {
21990         return (void *) (p == NULL);
21991 }
21992
21993
21994 int main(argc, argv)
21995         int argc;
21996         char **argv;
21997 {
21998
21999         /* pthread test function */
22000 #ifndef PTHREAD_CREATE_DETACHED
22001 #define PTHREAD_CREATE_DETACHED 1
22002 #endif
22003         pthread_t t;
22004         int status;
22005         int detach = PTHREAD_CREATE_DETACHED;
22006
22007 #if HAVE_PTHREADS > 4
22008         /* Final pthreads */
22009         pthread_attr_t attr;
22010
22011         status = pthread_attr_init(&attr);
22012         if( status ) return status;
22013
22014 #if HAVE_PTHREADS < 7
22015         status = pthread_attr_setdetachstate(&attr, &detach);
22016         if( status < 0 ) status = errno;
22017 #else
22018         status = pthread_attr_setdetachstate(&attr, detach);
22019 #endif
22020         if( status ) return status;
22021         status = pthread_create( &t, &attr, task, NULL );
22022 #if HAVE_PTHREADS < 7
22023         if( status < 0 ) status = errno;
22024 #endif
22025         if( status ) return status;
22026 #else
22027         /* Draft 4 pthreads */
22028         status = pthread_create( &t, pthread_attr_default, task, NULL );
22029         if( status ) return errno;
22030
22031         /* give thread a chance to complete */
22032         /* it should remain joinable and hence detachable */
22033         sleep( 1 );
22034
22035         status = pthread_detach( &t );
22036         if( status ) return errno;
22037 #endif
22038
22039 #ifdef HAVE_LINUX_THREADS
22040         pthread_kill_other_threads_np();
22041 #endif
22042
22043         return 0;
22044
22045 }
22046
22047 _ACEOF
22048 rm -f conftest$ac_exeext
22049 if { (ac_try="$ac_link"
22050 case "(($ac_try" in
22051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052   *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055   (eval "$ac_link") 2>&5
22056   ac_status=$?
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22059   { (case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_try") 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068   ol_cv_pthread_thread=yes
22069 else
22070   echo "$as_me: program exited with status $ac_status" >&5
22071 echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074 ( exit $ac_status )
22075 ol_cv_pthread_thread=no
22076 fi
22077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22078 fi
22079
22080
22081
22082                 # restore the LIBS
22083                 LIBS="$ol_LIBS"
22084
22085 fi
22086 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22087 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22088
22089         if test $ol_cv_pthread_thread = yes ; then
22090                 ol_link_pthreads="-thread"
22091                 ol_link_threads=posix
22092         fi
22093 fi
22094
22095
22096                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22097 if test "$ol_link_threads" = no ; then
22098         # try -lpthread -lmach -lexc -lc_r
22099         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22100 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22101 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104
22105                 # save the flags
22106                 ol_LIBS="$LIBS"
22107                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22108
22109                 if test "$cross_compiling" = yes; then
22110   cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h.  */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h.  */
22116
22117 /* pthread test headers */
22118 #include <pthread.h>
22119 #if HAVE_PTHREADS < 7
22120 #include <errno.h>
22121 #endif
22122 #ifndef NULL
22123 #define NULL (void*)0
22124 #endif
22125
22126 static void *task(p)
22127         void *p;
22128 {
22129         return (void *) (p == NULL);
22130 }
22131
22132 int
22133 main ()
22134 {
22135
22136         /* pthread test function */
22137 #ifndef PTHREAD_CREATE_DETACHED
22138 #define PTHREAD_CREATE_DETACHED 1
22139 #endif
22140         pthread_t t;
22141         int status;
22142         int detach = PTHREAD_CREATE_DETACHED;
22143
22144 #if HAVE_PTHREADS > 4
22145         /* Final pthreads */
22146         pthread_attr_t attr;
22147
22148         status = pthread_attr_init(&attr);
22149         if( status ) return status;
22150
22151 #if HAVE_PTHREADS < 7
22152         status = pthread_attr_setdetachstate(&attr, &detach);
22153         if( status < 0 ) status = errno;
22154 #else
22155         status = pthread_attr_setdetachstate(&attr, detach);
22156 #endif
22157         if( status ) return status;
22158         status = pthread_create( &t, &attr, task, NULL );
22159 #if HAVE_PTHREADS < 7
22160         if( status < 0 ) status = errno;
22161 #endif
22162         if( status ) return status;
22163 #else
22164         /* Draft 4 pthreads */
22165         status = pthread_create( &t, pthread_attr_default, task, NULL );
22166         if( status ) return errno;
22167
22168         /* give thread a chance to complete */
22169         /* it should remain joinable and hence detachable */
22170         sleep( 1 );
22171
22172         status = pthread_detach( &t );
22173         if( status ) return errno;
22174 #endif
22175
22176 #ifdef HAVE_LINUX_THREADS
22177         pthread_kill_other_threads_np();
22178 #endif
22179
22180         return 0;
22181
22182   ;
22183   return 0;
22184 }
22185 _ACEOF
22186 rm -f conftest.$ac_objext conftest$ac_exeext
22187 if { (ac_try="$ac_link"
22188 case "(($ac_try" in
22189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190   *) ac_try_echo=$ac_try;;
22191 esac
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193   (eval "$ac_link") 2>conftest.er1
22194   ac_status=$?
22195   grep -v '^ *+' conftest.er1 >conftest.err
22196   rm -f conftest.er1
22197   cat conftest.err >&5
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); } && {
22200          test -z "$ac_c_werror_flag" ||
22201          test ! -s conftest.err
22202        } && test -s conftest$ac_exeext &&
22203        $as_test_x conftest$ac_exeext; then
22204   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22205 else
22206   echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22210 fi
22211
22212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22213       conftest$ac_exeext conftest.$ac_ext
22214 else
22215   cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h.  */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h.  */
22221
22222 /* pthread test headers */
22223 #include <pthread.h>
22224 #if HAVE_PTHREADS < 7
22225 #include <errno.h>
22226 #endif
22227 #ifndef NULL
22228 #define NULL (void*)0
22229 #endif
22230
22231 static void *task(p)
22232         void *p;
22233 {
22234         return (void *) (p == NULL);
22235 }
22236
22237
22238 int main(argc, argv)
22239         int argc;
22240         char **argv;
22241 {
22242
22243         /* pthread test function */
22244 #ifndef PTHREAD_CREATE_DETACHED
22245 #define PTHREAD_CREATE_DETACHED 1
22246 #endif
22247         pthread_t t;
22248         int status;
22249         int detach = PTHREAD_CREATE_DETACHED;
22250
22251 #if HAVE_PTHREADS > 4
22252         /* Final pthreads */
22253         pthread_attr_t attr;
22254
22255         status = pthread_attr_init(&attr);
22256         if( status ) return status;
22257
22258 #if HAVE_PTHREADS < 7
22259         status = pthread_attr_setdetachstate(&attr, &detach);
22260         if( status < 0 ) status = errno;
22261 #else
22262         status = pthread_attr_setdetachstate(&attr, detach);
22263 #endif
22264         if( status ) return status;
22265         status = pthread_create( &t, &attr, task, NULL );
22266 #if HAVE_PTHREADS < 7
22267         if( status < 0 ) status = errno;
22268 #endif
22269         if( status ) return status;
22270 #else
22271         /* Draft 4 pthreads */
22272         status = pthread_create( &t, pthread_attr_default, task, NULL );
22273         if( status ) return errno;
22274
22275         /* give thread a chance to complete */
22276         /* it should remain joinable and hence detachable */
22277         sleep( 1 );
22278
22279         status = pthread_detach( &t );
22280         if( status ) return errno;
22281 #endif
22282
22283 #ifdef HAVE_LINUX_THREADS
22284         pthread_kill_other_threads_np();
22285 #endif
22286
22287         return 0;
22288
22289 }
22290
22291 _ACEOF
22292 rm -f conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296   *) ac_try_echo=$ac_try;;
22297 esac
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299   (eval "$ac_link") 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22303   { (case "(($ac_try" in
22304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305   *) ac_try_echo=$ac_try;;
22306 esac
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308   (eval "$ac_try") 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; }; then
22312   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22313 else
22314   echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ( exit $ac_status )
22319 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22320 fi
22321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22322 fi
22323
22324
22325
22326                 # restore the LIBS
22327                 LIBS="$ol_LIBS"
22328
22329 fi
22330 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22331 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22332
22333         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22334                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22335                 ol_link_threads=posix
22336         fi
22337 fi
22338
22339                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22340 if test "$ol_link_threads" = no ; then
22341         # try -lpthread -lmach -lexc
22342         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22343 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22344 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22345   echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347
22348                 # save the flags
22349                 ol_LIBS="$LIBS"
22350                 LIBS="-lpthread -lmach -lexc $LIBS"
22351
22352                 if test "$cross_compiling" = yes; then
22353   cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h.  */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h.  */
22359
22360 /* pthread test headers */
22361 #include <pthread.h>
22362 #if HAVE_PTHREADS < 7
22363 #include <errno.h>
22364 #endif
22365 #ifndef NULL
22366 #define NULL (void*)0
22367 #endif
22368
22369 static void *task(p)
22370         void *p;
22371 {
22372         return (void *) (p == NULL);
22373 }
22374
22375 int
22376 main ()
22377 {
22378
22379         /* pthread test function */
22380 #ifndef PTHREAD_CREATE_DETACHED
22381 #define PTHREAD_CREATE_DETACHED 1
22382 #endif
22383         pthread_t t;
22384         int status;
22385         int detach = PTHREAD_CREATE_DETACHED;
22386
22387 #if HAVE_PTHREADS > 4
22388         /* Final pthreads */
22389         pthread_attr_t attr;
22390
22391         status = pthread_attr_init(&attr);
22392         if( status ) return status;
22393
22394 #if HAVE_PTHREADS < 7
22395         status = pthread_attr_setdetachstate(&attr, &detach);
22396         if( status < 0 ) status = errno;
22397 #else
22398         status = pthread_attr_setdetachstate(&attr, detach);
22399 #endif
22400         if( status ) return status;
22401         status = pthread_create( &t, &attr, task, NULL );
22402 #if HAVE_PTHREADS < 7
22403         if( status < 0 ) status = errno;
22404 #endif
22405         if( status ) return status;
22406 #else
22407         /* Draft 4 pthreads */
22408         status = pthread_create( &t, pthread_attr_default, task, NULL );
22409         if( status ) return errno;
22410
22411         /* give thread a chance to complete */
22412         /* it should remain joinable and hence detachable */
22413         sleep( 1 );
22414
22415         status = pthread_detach( &t );
22416         if( status ) return errno;
22417 #endif
22418
22419 #ifdef HAVE_LINUX_THREADS
22420         pthread_kill_other_threads_np();
22421 #endif
22422
22423         return 0;
22424
22425   ;
22426   return 0;
22427 }
22428 _ACEOF
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (ac_try="$ac_link"
22431 case "(($ac_try" in
22432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433   *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436   (eval "$ac_link") 2>conftest.er1
22437   ac_status=$?
22438   grep -v '^ *+' conftest.er1 >conftest.err
22439   rm -f conftest.er1
22440   cat conftest.err >&5
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } && {
22443          test -z "$ac_c_werror_flag" ||
22444          test ! -s conftest.err
22445        } && test -s conftest$ac_exeext &&
22446        $as_test_x conftest$ac_exeext; then
22447   ol_cv_pthread_lpthread_lmach_lexc=yes
22448 else
22449   echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452         ol_cv_pthread_lpthread_lmach_lexc=no
22453 fi
22454
22455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22456       conftest$ac_exeext conftest.$ac_ext
22457 else
22458   cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h.  */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h.  */
22464
22465 /* pthread test headers */
22466 #include <pthread.h>
22467 #if HAVE_PTHREADS < 7
22468 #include <errno.h>
22469 #endif
22470 #ifndef NULL
22471 #define NULL (void*)0
22472 #endif
22473
22474 static void *task(p)
22475         void *p;
22476 {
22477         return (void *) (p == NULL);
22478 }
22479
22480
22481 int main(argc, argv)
22482         int argc;
22483         char **argv;
22484 {
22485
22486         /* pthread test function */
22487 #ifndef PTHREAD_CREATE_DETACHED
22488 #define PTHREAD_CREATE_DETACHED 1
22489 #endif
22490         pthread_t t;
22491         int status;
22492         int detach = PTHREAD_CREATE_DETACHED;
22493
22494 #if HAVE_PTHREADS > 4
22495         /* Final pthreads */
22496         pthread_attr_t attr;
22497
22498         status = pthread_attr_init(&attr);
22499         if( status ) return status;
22500
22501 #if HAVE_PTHREADS < 7
22502         status = pthread_attr_setdetachstate(&attr, &detach);
22503         if( status < 0 ) status = errno;
22504 #else
22505         status = pthread_attr_setdetachstate(&attr, detach);
22506 #endif
22507         if( status ) return status;
22508         status = pthread_create( &t, &attr, task, NULL );
22509 #if HAVE_PTHREADS < 7
22510         if( status < 0 ) status = errno;
22511 #endif
22512         if( status ) return status;
22513 #else
22514         /* Draft 4 pthreads */
22515         status = pthread_create( &t, pthread_attr_default, task, NULL );
22516         if( status ) return errno;
22517
22518         /* give thread a chance to complete */
22519         /* it should remain joinable and hence detachable */
22520         sleep( 1 );
22521
22522         status = pthread_detach( &t );
22523         if( status ) return errno;
22524 #endif
22525
22526 #ifdef HAVE_LINUX_THREADS
22527         pthread_kill_other_threads_np();
22528 #endif
22529
22530         return 0;
22531
22532 }
22533
22534 _ACEOF
22535 rm -f conftest$ac_exeext
22536 if { (ac_try="$ac_link"
22537 case "(($ac_try" in
22538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539   *) ac_try_echo=$ac_try;;
22540 esac
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542   (eval "$ac_link") 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22546   { (case "(($ac_try" in
22547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548   *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551   (eval "$ac_try") 2>&5
22552   ac_status=$?
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); }; }; then
22555   ol_cv_pthread_lpthread_lmach_lexc=yes
22556 else
22557   echo "$as_me: program exited with status $ac_status" >&5
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561 ( exit $ac_status )
22562 ol_cv_pthread_lpthread_lmach_lexc=no
22563 fi
22564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22565 fi
22566
22567
22568
22569                 # restore the LIBS
22570                 LIBS="$ol_LIBS"
22571
22572 fi
22573 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22574 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22575
22576         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22577                 ol_link_pthreads="-lpthread -lmach -lexc"
22578                 ol_link_threads=posix
22579         fi
22580 fi
22581
22582
22583                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22584 if test "$ol_link_threads" = no ; then
22585         # try -lpthread -Wl,-woff,85
22586         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22587 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22588 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591
22592                 # save the flags
22593                 ol_LIBS="$LIBS"
22594                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22595
22596                 if test "$cross_compiling" = yes; then
22597   cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603
22604 /* pthread test headers */
22605 #include <pthread.h>
22606 #if HAVE_PTHREADS < 7
22607 #include <errno.h>
22608 #endif
22609 #ifndef NULL
22610 #define NULL (void*)0
22611 #endif
22612
22613 static void *task(p)
22614         void *p;
22615 {
22616         return (void *) (p == NULL);
22617 }
22618
22619 int
22620 main ()
22621 {
22622
22623         /* pthread test function */
22624 #ifndef PTHREAD_CREATE_DETACHED
22625 #define PTHREAD_CREATE_DETACHED 1
22626 #endif
22627         pthread_t t;
22628         int status;
22629         int detach = PTHREAD_CREATE_DETACHED;
22630
22631 #if HAVE_PTHREADS > 4
22632         /* Final pthreads */
22633         pthread_attr_t attr;
22634
22635         status = pthread_attr_init(&attr);
22636         if( status ) return status;
22637
22638 #if HAVE_PTHREADS < 7
22639         status = pthread_attr_setdetachstate(&attr, &detach);
22640         if( status < 0 ) status = errno;
22641 #else
22642         status = pthread_attr_setdetachstate(&attr, detach);
22643 #endif
22644         if( status ) return status;
22645         status = pthread_create( &t, &attr, task, NULL );
22646 #if HAVE_PTHREADS < 7
22647         if( status < 0 ) status = errno;
22648 #endif
22649         if( status ) return status;
22650 #else
22651         /* Draft 4 pthreads */
22652         status = pthread_create( &t, pthread_attr_default, task, NULL );
22653         if( status ) return errno;
22654
22655         /* give thread a chance to complete */
22656         /* it should remain joinable and hence detachable */
22657         sleep( 1 );
22658
22659         status = pthread_detach( &t );
22660         if( status ) return errno;
22661 #endif
22662
22663 #ifdef HAVE_LINUX_THREADS
22664         pthread_kill_other_threads_np();
22665 #endif
22666
22667         return 0;
22668
22669   ;
22670   return 0;
22671 }
22672 _ACEOF
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (ac_try="$ac_link"
22675 case "(($ac_try" in
22676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677   *) ac_try_echo=$ac_try;;
22678 esac
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680   (eval "$ac_link") 2>conftest.er1
22681   ac_status=$?
22682   grep -v '^ *+' conftest.er1 >conftest.err
22683   rm -f conftest.er1
22684   cat conftest.err >&5
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); } && {
22687          test -z "$ac_c_werror_flag" ||
22688          test ! -s conftest.err
22689        } && test -s conftest$ac_exeext &&
22690        $as_test_x conftest$ac_exeext; then
22691   ol_cv_pthread_lib_lpthread_woff=yes
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696         ol_cv_pthread_lib_lpthread_woff=no
22697 fi
22698
22699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700       conftest$ac_exeext conftest.$ac_ext
22701 else
22702   cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708
22709 /* pthread test headers */
22710 #include <pthread.h>
22711 #if HAVE_PTHREADS < 7
22712 #include <errno.h>
22713 #endif
22714 #ifndef NULL
22715 #define NULL (void*)0
22716 #endif
22717
22718 static void *task(p)
22719         void *p;
22720 {
22721         return (void *) (p == NULL);
22722 }
22723
22724
22725 int main(argc, argv)
22726         int argc;
22727         char **argv;
22728 {
22729
22730         /* pthread test function */
22731 #ifndef PTHREAD_CREATE_DETACHED
22732 #define PTHREAD_CREATE_DETACHED 1
22733 #endif
22734         pthread_t t;
22735         int status;
22736         int detach = PTHREAD_CREATE_DETACHED;
22737
22738 #if HAVE_PTHREADS > 4
22739         /* Final pthreads */
22740         pthread_attr_t attr;
22741
22742         status = pthread_attr_init(&attr);
22743         if( status ) return status;
22744
22745 #if HAVE_PTHREADS < 7
22746         status = pthread_attr_setdetachstate(&attr, &detach);
22747         if( status < 0 ) status = errno;
22748 #else
22749         status = pthread_attr_setdetachstate(&attr, detach);
22750 #endif
22751         if( status ) return status;
22752         status = pthread_create( &t, &attr, task, NULL );
22753 #if HAVE_PTHREADS < 7
22754         if( status < 0 ) status = errno;
22755 #endif
22756         if( status ) return status;
22757 #else
22758         /* Draft 4 pthreads */
22759         status = pthread_create( &t, pthread_attr_default, task, NULL );
22760         if( status ) return errno;
22761
22762         /* give thread a chance to complete */
22763         /* it should remain joinable and hence detachable */
22764         sleep( 1 );
22765
22766         status = pthread_detach( &t );
22767         if( status ) return errno;
22768 #endif
22769
22770 #ifdef HAVE_LINUX_THREADS
22771         pthread_kill_other_threads_np();
22772 #endif
22773
22774         return 0;
22775
22776 }
22777
22778 _ACEOF
22779 rm -f conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783   *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786   (eval "$ac_link") 2>&5
22787   ac_status=$?
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22790   { (case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_try") 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); }; }; then
22799   ol_cv_pthread_lib_lpthread_woff=yes
22800 else
22801   echo "$as_me: program exited with status $ac_status" >&5
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805 ( exit $ac_status )
22806 ol_cv_pthread_lib_lpthread_woff=no
22807 fi
22808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22809 fi
22810
22811
22812
22813                 # restore the LIBS
22814                 LIBS="$ol_LIBS"
22815
22816 fi
22817 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22818 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22819
22820         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22821                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22822                 ol_link_threads=posix
22823         fi
22824 fi
22825
22826
22827                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22828 if test "$ol_link_threads" = no ; then
22829         # try -lpthread
22830         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22831 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22832 if test "${ol_cv_pthread_lpthread+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835
22836                 # save the flags
22837                 ol_LIBS="$LIBS"
22838                 LIBS="-lpthread $LIBS"
22839
22840                 if test "$cross_compiling" = yes; then
22841   cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h.  */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h.  */
22847
22848 /* pthread test headers */
22849 #include <pthread.h>
22850 #if HAVE_PTHREADS < 7
22851 #include <errno.h>
22852 #endif
22853 #ifndef NULL
22854 #define NULL (void*)0
22855 #endif
22856
22857 static void *task(p)
22858         void *p;
22859 {
22860         return (void *) (p == NULL);
22861 }
22862
22863 int
22864 main ()
22865 {
22866
22867         /* pthread test function */
22868 #ifndef PTHREAD_CREATE_DETACHED
22869 #define PTHREAD_CREATE_DETACHED 1
22870 #endif
22871         pthread_t t;
22872         int status;
22873         int detach = PTHREAD_CREATE_DETACHED;
22874
22875 #if HAVE_PTHREADS > 4
22876         /* Final pthreads */
22877         pthread_attr_t attr;
22878
22879         status = pthread_attr_init(&attr);
22880         if( status ) return status;
22881
22882 #if HAVE_PTHREADS < 7
22883         status = pthread_attr_setdetachstate(&attr, &detach);
22884         if( status < 0 ) status = errno;
22885 #else
22886         status = pthread_attr_setdetachstate(&attr, detach);
22887 #endif
22888         if( status ) return status;
22889         status = pthread_create( &t, &attr, task, NULL );
22890 #if HAVE_PTHREADS < 7
22891         if( status < 0 ) status = errno;
22892 #endif
22893         if( status ) return status;
22894 #else
22895         /* Draft 4 pthreads */
22896         status = pthread_create( &t, pthread_attr_default, task, NULL );
22897         if( status ) return errno;
22898
22899         /* give thread a chance to complete */
22900         /* it should remain joinable and hence detachable */
22901         sleep( 1 );
22902
22903         status = pthread_detach( &t );
22904         if( status ) return errno;
22905 #endif
22906
22907 #ifdef HAVE_LINUX_THREADS
22908         pthread_kill_other_threads_np();
22909 #endif
22910
22911         return 0;
22912
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (ac_try="$ac_link"
22919 case "(($ac_try" in
22920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921   *) ac_try_echo=$ac_try;;
22922 esac
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924   (eval "$ac_link") 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } && {
22931          test -z "$ac_c_werror_flag" ||
22932          test ! -s conftest.err
22933        } && test -s conftest$ac_exeext &&
22934        $as_test_x conftest$ac_exeext; then
22935   ol_cv_pthread_lpthread=yes
22936 else
22937   echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940         ol_cv_pthread_lpthread=no
22941 fi
22942
22943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22944       conftest$ac_exeext conftest.$ac_ext
22945 else
22946   cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h.  */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h.  */
22952
22953 /* pthread test headers */
22954 #include <pthread.h>
22955 #if HAVE_PTHREADS < 7
22956 #include <errno.h>
22957 #endif
22958 #ifndef NULL
22959 #define NULL (void*)0
22960 #endif
22961
22962 static void *task(p)
22963         void *p;
22964 {
22965         return (void *) (p == NULL);
22966 }
22967
22968
22969 int main(argc, argv)
22970         int argc;
22971         char **argv;
22972 {
22973
22974         /* pthread test function */
22975 #ifndef PTHREAD_CREATE_DETACHED
22976 #define PTHREAD_CREATE_DETACHED 1
22977 #endif
22978         pthread_t t;
22979         int status;
22980         int detach = PTHREAD_CREATE_DETACHED;
22981
22982 #if HAVE_PTHREADS > 4
22983         /* Final pthreads */
22984         pthread_attr_t attr;
22985
22986         status = pthread_attr_init(&attr);
22987         if( status ) return status;
22988
22989 #if HAVE_PTHREADS < 7
22990         status = pthread_attr_setdetachstate(&attr, &detach);
22991         if( status < 0 ) status = errno;
22992 #else
22993         status = pthread_attr_setdetachstate(&attr, detach);
22994 #endif
22995         if( status ) return status;
22996         status = pthread_create( &t, &attr, task, NULL );
22997 #if HAVE_PTHREADS < 7
22998         if( status < 0 ) status = errno;
22999 #endif
23000         if( status ) return status;
23001 #else
23002         /* Draft 4 pthreads */
23003         status = pthread_create( &t, pthread_attr_default, task, NULL );
23004         if( status ) return errno;
23005
23006         /* give thread a chance to complete */
23007         /* it should remain joinable and hence detachable */
23008         sleep( 1 );
23009
23010         status = pthread_detach( &t );
23011         if( status ) return errno;
23012 #endif
23013
23014 #ifdef HAVE_LINUX_THREADS
23015         pthread_kill_other_threads_np();
23016 #endif
23017
23018         return 0;
23019
23020 }
23021
23022 _ACEOF
23023 rm -f conftest$ac_exeext
23024 if { (ac_try="$ac_link"
23025 case "(($ac_try" in
23026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027   *) ac_try_echo=$ac_try;;
23028 esac
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030   (eval "$ac_link") 2>&5
23031   ac_status=$?
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23034   { (case "(($ac_try" in
23035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036   *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039   (eval "$ac_try") 2>&5
23040   ac_status=$?
23041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042   (exit $ac_status); }; }; then
23043   ol_cv_pthread_lpthread=yes
23044 else
23045   echo "$as_me: program exited with status $ac_status" >&5
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 ( exit $ac_status )
23050 ol_cv_pthread_lpthread=no
23051 fi
23052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23053 fi
23054
23055
23056
23057                 # restore the LIBS
23058                 LIBS="$ol_LIBS"
23059
23060 fi
23061 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23062 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23063
23064         if test $ol_cv_pthread_lpthread = yes ; then
23065                 ol_link_pthreads="-lpthread"
23066                 ol_link_threads=posix
23067         fi
23068 fi
23069
23070                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23071 if test "$ol_link_threads" = no ; then
23072         # try -lc_r
23073         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23074 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23075 if test "${ol_cv_pthread_lc_r+set}" = set; then
23076   echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078
23079                 # save the flags
23080                 ol_LIBS="$LIBS"
23081                 LIBS="-lc_r $LIBS"
23082
23083                 if test "$cross_compiling" = yes; then
23084   cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h.  */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h.  */
23090
23091 /* pthread test headers */
23092 #include <pthread.h>
23093 #if HAVE_PTHREADS < 7
23094 #include <errno.h>
23095 #endif
23096 #ifndef NULL
23097 #define NULL (void*)0
23098 #endif
23099
23100 static void *task(p)
23101         void *p;
23102 {
23103         return (void *) (p == NULL);
23104 }
23105
23106 int
23107 main ()
23108 {
23109
23110         /* pthread test function */
23111 #ifndef PTHREAD_CREATE_DETACHED
23112 #define PTHREAD_CREATE_DETACHED 1
23113 #endif
23114         pthread_t t;
23115         int status;
23116         int detach = PTHREAD_CREATE_DETACHED;
23117
23118 #if HAVE_PTHREADS > 4
23119         /* Final pthreads */
23120         pthread_attr_t attr;
23121
23122         status = pthread_attr_init(&attr);
23123         if( status ) return status;
23124
23125 #if HAVE_PTHREADS < 7
23126         status = pthread_attr_setdetachstate(&attr, &detach);
23127         if( status < 0 ) status = errno;
23128 #else
23129         status = pthread_attr_setdetachstate(&attr, detach);
23130 #endif
23131         if( status ) return status;
23132         status = pthread_create( &t, &attr, task, NULL );
23133 #if HAVE_PTHREADS < 7
23134         if( status < 0 ) status = errno;
23135 #endif
23136         if( status ) return status;
23137 #else
23138         /* Draft 4 pthreads */
23139         status = pthread_create( &t, pthread_attr_default, task, NULL );
23140         if( status ) return errno;
23141
23142         /* give thread a chance to complete */
23143         /* it should remain joinable and hence detachable */
23144         sleep( 1 );
23145
23146         status = pthread_detach( &t );
23147         if( status ) return errno;
23148 #endif
23149
23150 #ifdef HAVE_LINUX_THREADS
23151         pthread_kill_other_threads_np();
23152 #endif
23153
23154         return 0;
23155
23156   ;
23157   return 0;
23158 }
23159 _ACEOF
23160 rm -f conftest.$ac_objext conftest$ac_exeext
23161 if { (ac_try="$ac_link"
23162 case "(($ac_try" in
23163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164   *) ac_try_echo=$ac_try;;
23165 esac
23166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23167   (eval "$ac_link") 2>conftest.er1
23168   ac_status=$?
23169   grep -v '^ *+' conftest.er1 >conftest.err
23170   rm -f conftest.er1
23171   cat conftest.err >&5
23172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); } && {
23174          test -z "$ac_c_werror_flag" ||
23175          test ! -s conftest.err
23176        } && test -s conftest$ac_exeext &&
23177        $as_test_x conftest$ac_exeext; then
23178   ol_cv_pthread_lc_r=yes
23179 else
23180   echo "$as_me: failed program was:" >&5
23181 sed 's/^/| /' conftest.$ac_ext >&5
23182
23183         ol_cv_pthread_lc_r=no
23184 fi
23185
23186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23187       conftest$ac_exeext conftest.$ac_ext
23188 else
23189   cat >conftest.$ac_ext <<_ACEOF
23190 /* confdefs.h.  */
23191 _ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h.  */
23195
23196 /* pthread test headers */
23197 #include <pthread.h>
23198 #if HAVE_PTHREADS < 7
23199 #include <errno.h>
23200 #endif
23201 #ifndef NULL
23202 #define NULL (void*)0
23203 #endif
23204
23205 static void *task(p)
23206         void *p;
23207 {
23208         return (void *) (p == NULL);
23209 }
23210
23211
23212 int main(argc, argv)
23213         int argc;
23214         char **argv;
23215 {
23216
23217         /* pthread test function */
23218 #ifndef PTHREAD_CREATE_DETACHED
23219 #define PTHREAD_CREATE_DETACHED 1
23220 #endif
23221         pthread_t t;
23222         int status;
23223         int detach = PTHREAD_CREATE_DETACHED;
23224
23225 #if HAVE_PTHREADS > 4
23226         /* Final pthreads */
23227         pthread_attr_t attr;
23228
23229         status = pthread_attr_init(&attr);
23230         if( status ) return status;
23231
23232 #if HAVE_PTHREADS < 7
23233         status = pthread_attr_setdetachstate(&attr, &detach);
23234         if( status < 0 ) status = errno;
23235 #else
23236         status = pthread_attr_setdetachstate(&attr, detach);
23237 #endif
23238         if( status ) return status;
23239         status = pthread_create( &t, &attr, task, NULL );
23240 #if HAVE_PTHREADS < 7
23241         if( status < 0 ) status = errno;
23242 #endif
23243         if( status ) return status;
23244 #else
23245         /* Draft 4 pthreads */
23246         status = pthread_create( &t, pthread_attr_default, task, NULL );
23247         if( status ) return errno;
23248
23249         /* give thread a chance to complete */
23250         /* it should remain joinable and hence detachable */
23251         sleep( 1 );
23252
23253         status = pthread_detach( &t );
23254         if( status ) return errno;
23255 #endif
23256
23257 #ifdef HAVE_LINUX_THREADS
23258         pthread_kill_other_threads_np();
23259 #endif
23260
23261         return 0;
23262
23263 }
23264
23265 _ACEOF
23266 rm -f conftest$ac_exeext
23267 if { (ac_try="$ac_link"
23268 case "(($ac_try" in
23269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270   *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273   (eval "$ac_link") 2>&5
23274   ac_status=$?
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23277   { (case "(($ac_try" in
23278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279   *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282   (eval "$ac_try") 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; }; then
23286   ol_cv_pthread_lc_r=yes
23287 else
23288   echo "$as_me: program exited with status $ac_status" >&5
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 ( exit $ac_status )
23293 ol_cv_pthread_lc_r=no
23294 fi
23295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23296 fi
23297
23298
23299
23300                 # restore the LIBS
23301                 LIBS="$ol_LIBS"
23302
23303 fi
23304 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23305 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23306
23307         if test $ol_cv_pthread_lc_r = yes ; then
23308                 ol_link_pthreads="-lc_r"
23309                 ol_link_threads=posix
23310         fi
23311 fi
23312
23313
23314                 # Pthread try link: -threads (ol_cv_pthread_threads)
23315 if test "$ol_link_threads" = no ; then
23316         # try -threads
23317         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23318 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23319 if test "${ol_cv_pthread_threads+set}" = set; then
23320   echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322
23323                 # save the flags
23324                 ol_LIBS="$LIBS"
23325                 LIBS="-threads $LIBS"
23326
23327                 if test "$cross_compiling" = yes; then
23328   cat >conftest.$ac_ext <<_ACEOF
23329 /* confdefs.h.  */
23330 _ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h.  */
23334
23335 /* pthread test headers */
23336 #include <pthread.h>
23337 #if HAVE_PTHREADS < 7
23338 #include <errno.h>
23339 #endif
23340 #ifndef NULL
23341 #define NULL (void*)0
23342 #endif
23343
23344 static void *task(p)
23345         void *p;
23346 {
23347         return (void *) (p == NULL);
23348 }
23349
23350 int
23351 main ()
23352 {
23353
23354         /* pthread test function */
23355 #ifndef PTHREAD_CREATE_DETACHED
23356 #define PTHREAD_CREATE_DETACHED 1
23357 #endif
23358         pthread_t t;
23359         int status;
23360         int detach = PTHREAD_CREATE_DETACHED;
23361
23362 #if HAVE_PTHREADS > 4
23363         /* Final pthreads */
23364         pthread_attr_t attr;
23365
23366         status = pthread_attr_init(&attr);
23367         if( status ) return status;
23368
23369 #if HAVE_PTHREADS < 7
23370         status = pthread_attr_setdetachstate(&attr, &detach);
23371         if( status < 0 ) status = errno;
23372 #else
23373         status = pthread_attr_setdetachstate(&attr, detach);
23374 #endif
23375         if( status ) return status;
23376         status = pthread_create( &t, &attr, task, NULL );
23377 #if HAVE_PTHREADS < 7
23378         if( status < 0 ) status = errno;
23379 #endif
23380         if( status ) return status;
23381 #else
23382         /* Draft 4 pthreads */
23383         status = pthread_create( &t, pthread_attr_default, task, NULL );
23384         if( status ) return errno;
23385
23386         /* give thread a chance to complete */
23387         /* it should remain joinable and hence detachable */
23388         sleep( 1 );
23389
23390         status = pthread_detach( &t );
23391         if( status ) return errno;
23392 #endif
23393
23394 #ifdef HAVE_LINUX_THREADS
23395         pthread_kill_other_threads_np();
23396 #endif
23397
23398         return 0;
23399
23400   ;
23401   return 0;
23402 }
23403 _ACEOF
23404 rm -f conftest.$ac_objext conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408   *) ac_try_echo=$ac_try;;
23409 esac
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411   (eval "$ac_link") 2>conftest.er1
23412   ac_status=$?
23413   grep -v '^ *+' conftest.er1 >conftest.err
23414   rm -f conftest.er1
23415   cat conftest.err >&5
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); } && {
23418          test -z "$ac_c_werror_flag" ||
23419          test ! -s conftest.err
23420        } && test -s conftest$ac_exeext &&
23421        $as_test_x conftest$ac_exeext; then
23422   ol_cv_pthread_threads=yes
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427         ol_cv_pthread_threads=no
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23431       conftest$ac_exeext conftest.$ac_ext
23432 else
23433   cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h.  */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h.  */
23439
23440 /* pthread test headers */
23441 #include <pthread.h>
23442 #if HAVE_PTHREADS < 7
23443 #include <errno.h>
23444 #endif
23445 #ifndef NULL
23446 #define NULL (void*)0
23447 #endif
23448
23449 static void *task(p)
23450         void *p;
23451 {
23452         return (void *) (p == NULL);
23453 }
23454
23455
23456 int main(argc, argv)
23457         int argc;
23458         char **argv;
23459 {
23460
23461         /* pthread test function */
23462 #ifndef PTHREAD_CREATE_DETACHED
23463 #define PTHREAD_CREATE_DETACHED 1
23464 #endif
23465         pthread_t t;
23466         int status;
23467         int detach = PTHREAD_CREATE_DETACHED;
23468
23469 #if HAVE_PTHREADS > 4
23470         /* Final pthreads */
23471         pthread_attr_t attr;
23472
23473         status = pthread_attr_init(&attr);
23474         if( status ) return status;
23475
23476 #if HAVE_PTHREADS < 7
23477         status = pthread_attr_setdetachstate(&attr, &detach);
23478         if( status < 0 ) status = errno;
23479 #else
23480         status = pthread_attr_setdetachstate(&attr, detach);
23481 #endif
23482         if( status ) return status;
23483         status = pthread_create( &t, &attr, task, NULL );
23484 #if HAVE_PTHREADS < 7
23485         if( status < 0 ) status = errno;
23486 #endif
23487         if( status ) return status;
23488 #else
23489         /* Draft 4 pthreads */
23490         status = pthread_create( &t, pthread_attr_default, task, NULL );
23491         if( status ) return errno;
23492
23493         /* give thread a chance to complete */
23494         /* it should remain joinable and hence detachable */
23495         sleep( 1 );
23496
23497         status = pthread_detach( &t );
23498         if( status ) return errno;
23499 #endif
23500
23501 #ifdef HAVE_LINUX_THREADS
23502         pthread_kill_other_threads_np();
23503 #endif
23504
23505         return 0;
23506
23507 }
23508
23509 _ACEOF
23510 rm -f conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514   *) ac_try_echo=$ac_try;;
23515 esac
23516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23517   (eval "$ac_link") 2>&5
23518   ac_status=$?
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23521   { (case "(($ac_try" in
23522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523   *) ac_try_echo=$ac_try;;
23524 esac
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526   (eval "$ac_try") 2>&5
23527   ac_status=$?
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); }; }; then
23530   ol_cv_pthread_threads=yes
23531 else
23532   echo "$as_me: program exited with status $ac_status" >&5
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23535
23536 ( exit $ac_status )
23537 ol_cv_pthread_threads=no
23538 fi
23539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23540 fi
23541
23542
23543
23544                 # restore the LIBS
23545                 LIBS="$ol_LIBS"
23546
23547 fi
23548 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23549 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23550
23551         if test $ol_cv_pthread_threads = yes ; then
23552                 ol_link_pthreads="-threads"
23553                 ol_link_threads=posix
23554         fi
23555 fi
23556
23557
23558                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23559 if test "$ol_link_threads" = no ; then
23560         # try -lpthreads -lmach -lexc -lc_r
23561         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23562 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23563 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23564   echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566
23567                 # save the flags
23568                 ol_LIBS="$LIBS"
23569                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23570
23571                 if test "$cross_compiling" = yes; then
23572   cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578
23579 /* pthread test headers */
23580 #include <pthread.h>
23581 #if HAVE_PTHREADS < 7
23582 #include <errno.h>
23583 #endif
23584 #ifndef NULL
23585 #define NULL (void*)0
23586 #endif
23587
23588 static void *task(p)
23589         void *p;
23590 {
23591         return (void *) (p == NULL);
23592 }
23593
23594 int
23595 main ()
23596 {
23597
23598         /* pthread test function */
23599 #ifndef PTHREAD_CREATE_DETACHED
23600 #define PTHREAD_CREATE_DETACHED 1
23601 #endif
23602         pthread_t t;
23603         int status;
23604         int detach = PTHREAD_CREATE_DETACHED;
23605
23606 #if HAVE_PTHREADS > 4
23607         /* Final pthreads */
23608         pthread_attr_t attr;
23609
23610         status = pthread_attr_init(&attr);
23611         if( status ) return status;
23612
23613 #if HAVE_PTHREADS < 7
23614         status = pthread_attr_setdetachstate(&attr, &detach);
23615         if( status < 0 ) status = errno;
23616 #else
23617         status = pthread_attr_setdetachstate(&attr, detach);
23618 #endif
23619         if( status ) return status;
23620         status = pthread_create( &t, &attr, task, NULL );
23621 #if HAVE_PTHREADS < 7
23622         if( status < 0 ) status = errno;
23623 #endif
23624         if( status ) return status;
23625 #else
23626         /* Draft 4 pthreads */
23627         status = pthread_create( &t, pthread_attr_default, task, NULL );
23628         if( status ) return errno;
23629
23630         /* give thread a chance to complete */
23631         /* it should remain joinable and hence detachable */
23632         sleep( 1 );
23633
23634         status = pthread_detach( &t );
23635         if( status ) return errno;
23636 #endif
23637
23638 #ifdef HAVE_LINUX_THREADS
23639         pthread_kill_other_threads_np();
23640 #endif
23641
23642         return 0;
23643
23644   ;
23645   return 0;
23646 }
23647 _ACEOF
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (ac_try="$ac_link"
23650 case "(($ac_try" in
23651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652   *) ac_try_echo=$ac_try;;
23653 esac
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655   (eval "$ac_link") 2>conftest.er1
23656   ac_status=$?
23657   grep -v '^ *+' conftest.er1 >conftest.err
23658   rm -f conftest.er1
23659   cat conftest.err >&5
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); } && {
23662          test -z "$ac_c_werror_flag" ||
23663          test ! -s conftest.err
23664        } && test -s conftest$ac_exeext &&
23665        $as_test_x conftest$ac_exeext; then
23666   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23667 else
23668   echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23670
23671         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23672 fi
23673
23674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23675       conftest$ac_exeext conftest.$ac_ext
23676 else
23677   cat >conftest.$ac_ext <<_ACEOF
23678 /* confdefs.h.  */
23679 _ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h.  */
23683
23684 /* pthread test headers */
23685 #include <pthread.h>
23686 #if HAVE_PTHREADS < 7
23687 #include <errno.h>
23688 #endif
23689 #ifndef NULL
23690 #define NULL (void*)0
23691 #endif
23692
23693 static void *task(p)
23694         void *p;
23695 {
23696         return (void *) (p == NULL);
23697 }
23698
23699
23700 int main(argc, argv)
23701         int argc;
23702         char **argv;
23703 {
23704
23705         /* pthread test function */
23706 #ifndef PTHREAD_CREATE_DETACHED
23707 #define PTHREAD_CREATE_DETACHED 1
23708 #endif
23709         pthread_t t;
23710         int status;
23711         int detach = PTHREAD_CREATE_DETACHED;
23712
23713 #if HAVE_PTHREADS > 4
23714         /* Final pthreads */
23715         pthread_attr_t attr;
23716
23717         status = pthread_attr_init(&attr);
23718         if( status ) return status;
23719
23720 #if HAVE_PTHREADS < 7
23721         status = pthread_attr_setdetachstate(&attr, &detach);
23722         if( status < 0 ) status = errno;
23723 #else
23724         status = pthread_attr_setdetachstate(&attr, detach);
23725 #endif
23726         if( status ) return status;
23727         status = pthread_create( &t, &attr, task, NULL );
23728 #if HAVE_PTHREADS < 7
23729         if( status < 0 ) status = errno;
23730 #endif
23731         if( status ) return status;
23732 #else
23733         /* Draft 4 pthreads */
23734         status = pthread_create( &t, pthread_attr_default, task, NULL );
23735         if( status ) return errno;
23736
23737         /* give thread a chance to complete */
23738         /* it should remain joinable and hence detachable */
23739         sleep( 1 );
23740
23741         status = pthread_detach( &t );
23742         if( status ) return errno;
23743 #endif
23744
23745 #ifdef HAVE_LINUX_THREADS
23746         pthread_kill_other_threads_np();
23747 #endif
23748
23749         return 0;
23750
23751 }
23752
23753 _ACEOF
23754 rm -f conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758   *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761   (eval "$ac_link") 2>&5
23762   ac_status=$?
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23765   { (case "(($ac_try" in
23766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767   *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770   (eval "$ac_try") 2>&5
23771   ac_status=$?
23772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773   (exit $ac_status); }; }; then
23774   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23775 else
23776   echo "$as_me: program exited with status $ac_status" >&5
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780 ( exit $ac_status )
23781 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23782 fi
23783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23784 fi
23785
23786
23787
23788                 # restore the LIBS
23789                 LIBS="$ol_LIBS"
23790
23791 fi
23792 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23793 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23794
23795         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23796                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23797                 ol_link_threads=posix
23798         fi
23799 fi
23800
23801                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23802 if test "$ol_link_threads" = no ; then
23803         # try -lpthreads -lmach -lexc
23804         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23805 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23806 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23807   echo $ECHO_N "(cached) $ECHO_C" >&6
23808 else
23809
23810                 # save the flags
23811                 ol_LIBS="$LIBS"
23812                 LIBS="-lpthreads -lmach -lexc $LIBS"
23813
23814                 if test "$cross_compiling" = yes; then
23815   cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h.  */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h.  */
23821
23822 /* pthread test headers */
23823 #include <pthread.h>
23824 #if HAVE_PTHREADS < 7
23825 #include <errno.h>
23826 #endif
23827 #ifndef NULL
23828 #define NULL (void*)0
23829 #endif
23830
23831 static void *task(p)
23832         void *p;
23833 {
23834         return (void *) (p == NULL);
23835 }
23836
23837 int
23838 main ()
23839 {
23840
23841         /* pthread test function */
23842 #ifndef PTHREAD_CREATE_DETACHED
23843 #define PTHREAD_CREATE_DETACHED 1
23844 #endif
23845         pthread_t t;
23846         int status;
23847         int detach = PTHREAD_CREATE_DETACHED;
23848
23849 #if HAVE_PTHREADS > 4
23850         /* Final pthreads */
23851         pthread_attr_t attr;
23852
23853         status = pthread_attr_init(&attr);
23854         if( status ) return status;
23855
23856 #if HAVE_PTHREADS < 7
23857         status = pthread_attr_setdetachstate(&attr, &detach);
23858         if( status < 0 ) status = errno;
23859 #else
23860         status = pthread_attr_setdetachstate(&attr, detach);
23861 #endif
23862         if( status ) return status;
23863         status = pthread_create( &t, &attr, task, NULL );
23864 #if HAVE_PTHREADS < 7
23865         if( status < 0 ) status = errno;
23866 #endif
23867         if( status ) return status;
23868 #else
23869         /* Draft 4 pthreads */
23870         status = pthread_create( &t, pthread_attr_default, task, NULL );
23871         if( status ) return errno;
23872
23873         /* give thread a chance to complete */
23874         /* it should remain joinable and hence detachable */
23875         sleep( 1 );
23876
23877         status = pthread_detach( &t );
23878         if( status ) return errno;
23879 #endif
23880
23881 #ifdef HAVE_LINUX_THREADS
23882         pthread_kill_other_threads_np();
23883 #endif
23884
23885         return 0;
23886
23887   ;
23888   return 0;
23889 }
23890 _ACEOF
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (ac_try="$ac_link"
23893 case "(($ac_try" in
23894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895   *) ac_try_echo=$ac_try;;
23896 esac
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898   (eval "$ac_link") 2>conftest.er1
23899   ac_status=$?
23900   grep -v '^ *+' conftest.er1 >conftest.err
23901   rm -f conftest.er1
23902   cat conftest.err >&5
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); } && {
23905          test -z "$ac_c_werror_flag" ||
23906          test ! -s conftest.err
23907        } && test -s conftest$ac_exeext &&
23908        $as_test_x conftest$ac_exeext; then
23909   ol_cv_pthread_lpthreads_lmach_lexc=yes
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914         ol_cv_pthread_lpthreads_lmach_lexc=no
23915 fi
23916
23917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23918       conftest$ac_exeext conftest.$ac_ext
23919 else
23920   cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h.  */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h.  */
23926
23927 /* pthread test headers */
23928 #include <pthread.h>
23929 #if HAVE_PTHREADS < 7
23930 #include <errno.h>
23931 #endif
23932 #ifndef NULL
23933 #define NULL (void*)0
23934 #endif
23935
23936 static void *task(p)
23937         void *p;
23938 {
23939         return (void *) (p == NULL);
23940 }
23941
23942
23943 int main(argc, argv)
23944         int argc;
23945         char **argv;
23946 {
23947
23948         /* pthread test function */
23949 #ifndef PTHREAD_CREATE_DETACHED
23950 #define PTHREAD_CREATE_DETACHED 1
23951 #endif
23952         pthread_t t;
23953         int status;
23954         int detach = PTHREAD_CREATE_DETACHED;
23955
23956 #if HAVE_PTHREADS > 4
23957         /* Final pthreads */
23958         pthread_attr_t attr;
23959
23960         status = pthread_attr_init(&attr);
23961         if( status ) return status;
23962
23963 #if HAVE_PTHREADS < 7
23964         status = pthread_attr_setdetachstate(&attr, &detach);
23965         if( status < 0 ) status = errno;
23966 #else
23967         status = pthread_attr_setdetachstate(&attr, detach);
23968 #endif
23969         if( status ) return status;
23970         status = pthread_create( &t, &attr, task, NULL );
23971 #if HAVE_PTHREADS < 7
23972         if( status < 0 ) status = errno;
23973 #endif
23974         if( status ) return status;
23975 #else
23976         /* Draft 4 pthreads */
23977         status = pthread_create( &t, pthread_attr_default, task, NULL );
23978         if( status ) return errno;
23979
23980         /* give thread a chance to complete */
23981         /* it should remain joinable and hence detachable */
23982         sleep( 1 );
23983
23984         status = pthread_detach( &t );
23985         if( status ) return errno;
23986 #endif
23987
23988 #ifdef HAVE_LINUX_THREADS
23989         pthread_kill_other_threads_np();
23990 #endif
23991
23992         return 0;
23993
23994 }
23995
23996 _ACEOF
23997 rm -f conftest$ac_exeext
23998 if { (ac_try="$ac_link"
23999 case "(($ac_try" in
24000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001   *) ac_try_echo=$ac_try;;
24002 esac
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004   (eval "$ac_link") 2>&5
24005   ac_status=$?
24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24008   { (case "(($ac_try" in
24009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010   *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013   (eval "$ac_try") 2>&5
24014   ac_status=$?
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); }; }; then
24017   ol_cv_pthread_lpthreads_lmach_lexc=yes
24018 else
24019   echo "$as_me: program exited with status $ac_status" >&5
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ( exit $ac_status )
24024 ol_cv_pthread_lpthreads_lmach_lexc=no
24025 fi
24026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24027 fi
24028
24029
24030
24031                 # restore the LIBS
24032                 LIBS="$ol_LIBS"
24033
24034 fi
24035 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24036 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24037
24038         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24039                 ol_link_pthreads="-lpthreads -lmach -lexc"
24040                 ol_link_threads=posix
24041         fi
24042 fi
24043
24044                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24045 if test "$ol_link_threads" = no ; then
24046         # try -lpthreads -lexc
24047         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24048 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24049 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24050   echo $ECHO_N "(cached) $ECHO_C" >&6
24051 else
24052
24053                 # save the flags
24054                 ol_LIBS="$LIBS"
24055                 LIBS="-lpthreads -lexc $LIBS"
24056
24057                 if test "$cross_compiling" = yes; then
24058   cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h.  */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h.  */
24064
24065 /* pthread test headers */
24066 #include <pthread.h>
24067 #if HAVE_PTHREADS < 7
24068 #include <errno.h>
24069 #endif
24070 #ifndef NULL
24071 #define NULL (void*)0
24072 #endif
24073
24074 static void *task(p)
24075         void *p;
24076 {
24077         return (void *) (p == NULL);
24078 }
24079
24080 int
24081 main ()
24082 {
24083
24084         /* pthread test function */
24085 #ifndef PTHREAD_CREATE_DETACHED
24086 #define PTHREAD_CREATE_DETACHED 1
24087 #endif
24088         pthread_t t;
24089         int status;
24090         int detach = PTHREAD_CREATE_DETACHED;
24091
24092 #if HAVE_PTHREADS > 4
24093         /* Final pthreads */
24094         pthread_attr_t attr;
24095
24096         status = pthread_attr_init(&attr);
24097         if( status ) return status;
24098
24099 #if HAVE_PTHREADS < 7
24100         status = pthread_attr_setdetachstate(&attr, &detach);
24101         if( status < 0 ) status = errno;
24102 #else
24103         status = pthread_attr_setdetachstate(&attr, detach);
24104 #endif
24105         if( status ) return status;
24106         status = pthread_create( &t, &attr, task, NULL );
24107 #if HAVE_PTHREADS < 7
24108         if( status < 0 ) status = errno;
24109 #endif
24110         if( status ) return status;
24111 #else
24112         /* Draft 4 pthreads */
24113         status = pthread_create( &t, pthread_attr_default, task, NULL );
24114         if( status ) return errno;
24115
24116         /* give thread a chance to complete */
24117         /* it should remain joinable and hence detachable */
24118         sleep( 1 );
24119
24120         status = pthread_detach( &t );
24121         if( status ) return errno;
24122 #endif
24123
24124 #ifdef HAVE_LINUX_THREADS
24125         pthread_kill_other_threads_np();
24126 #endif
24127
24128         return 0;
24129
24130   ;
24131   return 0;
24132 }
24133 _ACEOF
24134 rm -f conftest.$ac_objext conftest$ac_exeext
24135 if { (ac_try="$ac_link"
24136 case "(($ac_try" in
24137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138   *) ac_try_echo=$ac_try;;
24139 esac
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141   (eval "$ac_link") 2>conftest.er1
24142   ac_status=$?
24143   grep -v '^ *+' conftest.er1 >conftest.err
24144   rm -f conftest.er1
24145   cat conftest.err >&5
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); } && {
24148          test -z "$ac_c_werror_flag" ||
24149          test ! -s conftest.err
24150        } && test -s conftest$ac_exeext &&
24151        $as_test_x conftest$ac_exeext; then
24152   ol_cv_pthread_lpthreads_lexc=yes
24153 else
24154   echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24156
24157         ol_cv_pthread_lpthreads_lexc=no
24158 fi
24159
24160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24161       conftest$ac_exeext conftest.$ac_ext
24162 else
24163   cat >conftest.$ac_ext <<_ACEOF
24164 /* confdefs.h.  */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h.  */
24169
24170 /* pthread test headers */
24171 #include <pthread.h>
24172 #if HAVE_PTHREADS < 7
24173 #include <errno.h>
24174 #endif
24175 #ifndef NULL
24176 #define NULL (void*)0
24177 #endif
24178
24179 static void *task(p)
24180         void *p;
24181 {
24182         return (void *) (p == NULL);
24183 }
24184
24185
24186 int main(argc, argv)
24187         int argc;
24188         char **argv;
24189 {
24190
24191         /* pthread test function */
24192 #ifndef PTHREAD_CREATE_DETACHED
24193 #define PTHREAD_CREATE_DETACHED 1
24194 #endif
24195         pthread_t t;
24196         int status;
24197         int detach = PTHREAD_CREATE_DETACHED;
24198
24199 #if HAVE_PTHREADS > 4
24200         /* Final pthreads */
24201         pthread_attr_t attr;
24202
24203         status = pthread_attr_init(&attr);
24204         if( status ) return status;
24205
24206 #if HAVE_PTHREADS < 7
24207         status = pthread_attr_setdetachstate(&attr, &detach);
24208         if( status < 0 ) status = errno;
24209 #else
24210         status = pthread_attr_setdetachstate(&attr, detach);
24211 #endif
24212         if( status ) return status;
24213         status = pthread_create( &t, &attr, task, NULL );
24214 #if HAVE_PTHREADS < 7
24215         if( status < 0 ) status = errno;
24216 #endif
24217         if( status ) return status;
24218 #else
24219         /* Draft 4 pthreads */
24220         status = pthread_create( &t, pthread_attr_default, task, NULL );
24221         if( status ) return errno;
24222
24223         /* give thread a chance to complete */
24224         /* it should remain joinable and hence detachable */
24225         sleep( 1 );
24226
24227         status = pthread_detach( &t );
24228         if( status ) return errno;
24229 #endif
24230
24231 #ifdef HAVE_LINUX_THREADS
24232         pthread_kill_other_threads_np();
24233 #endif
24234
24235         return 0;
24236
24237 }
24238
24239 _ACEOF
24240 rm -f conftest$ac_exeext
24241 if { (ac_try="$ac_link"
24242 case "(($ac_try" in
24243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244   *) ac_try_echo=$ac_try;;
24245 esac
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247   (eval "$ac_link") 2>&5
24248   ac_status=$?
24249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24251   { (case "(($ac_try" in
24252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253   *) ac_try_echo=$ac_try;;
24254 esac
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256   (eval "$ac_try") 2>&5
24257   ac_status=$?
24258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259   (exit $ac_status); }; }; then
24260   ol_cv_pthread_lpthreads_lexc=yes
24261 else
24262   echo "$as_me: program exited with status $ac_status" >&5
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24265
24266 ( exit $ac_status )
24267 ol_cv_pthread_lpthreads_lexc=no
24268 fi
24269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24270 fi
24271
24272
24273
24274                 # restore the LIBS
24275                 LIBS="$ol_LIBS"
24276
24277 fi
24278 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24279 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24280
24281         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24282                 ol_link_pthreads="-lpthreads -lexc"
24283                 ol_link_threads=posix
24284         fi
24285 fi
24286
24287
24288                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24289 if test "$ol_link_threads" = no ; then
24290         # try -lpthreads
24291         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24292 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24293 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24294   echo $ECHO_N "(cached) $ECHO_C" >&6
24295 else
24296
24297                 # save the flags
24298                 ol_LIBS="$LIBS"
24299                 LIBS="-lpthreads $LIBS"
24300
24301                 if test "$cross_compiling" = yes; then
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308
24309 /* pthread test headers */
24310 #include <pthread.h>
24311 #if HAVE_PTHREADS < 7
24312 #include <errno.h>
24313 #endif
24314 #ifndef NULL
24315 #define NULL (void*)0
24316 #endif
24317
24318 static void *task(p)
24319         void *p;
24320 {
24321         return (void *) (p == NULL);
24322 }
24323
24324 int
24325 main ()
24326 {
24327
24328         /* pthread test function */
24329 #ifndef PTHREAD_CREATE_DETACHED
24330 #define PTHREAD_CREATE_DETACHED 1
24331 #endif
24332         pthread_t t;
24333         int status;
24334         int detach = PTHREAD_CREATE_DETACHED;
24335
24336 #if HAVE_PTHREADS > 4
24337         /* Final pthreads */
24338         pthread_attr_t attr;
24339
24340         status = pthread_attr_init(&attr);
24341         if( status ) return status;
24342
24343 #if HAVE_PTHREADS < 7
24344         status = pthread_attr_setdetachstate(&attr, &detach);
24345         if( status < 0 ) status = errno;
24346 #else
24347         status = pthread_attr_setdetachstate(&attr, detach);
24348 #endif
24349         if( status ) return status;
24350         status = pthread_create( &t, &attr, task, NULL );
24351 #if HAVE_PTHREADS < 7
24352         if( status < 0 ) status = errno;
24353 #endif
24354         if( status ) return status;
24355 #else
24356         /* Draft 4 pthreads */
24357         status = pthread_create( &t, pthread_attr_default, task, NULL );
24358         if( status ) return errno;
24359
24360         /* give thread a chance to complete */
24361         /* it should remain joinable and hence detachable */
24362         sleep( 1 );
24363
24364         status = pthread_detach( &t );
24365         if( status ) return errno;
24366 #endif
24367
24368 #ifdef HAVE_LINUX_THREADS
24369         pthread_kill_other_threads_np();
24370 #endif
24371
24372         return 0;
24373
24374   ;
24375   return 0;
24376 }
24377 _ACEOF
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (ac_try="$ac_link"
24380 case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385   (eval "$ac_link") 2>conftest.er1
24386   ac_status=$?
24387   grep -v '^ *+' conftest.er1 >conftest.err
24388   rm -f conftest.er1
24389   cat conftest.err >&5
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); } && {
24392          test -z "$ac_c_werror_flag" ||
24393          test ! -s conftest.err
24394        } && test -s conftest$ac_exeext &&
24395        $as_test_x conftest$ac_exeext; then
24396   ol_cv_pthread_lib_lpthreads=yes
24397 else
24398   echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24400
24401         ol_cv_pthread_lib_lpthreads=no
24402 fi
24403
24404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24405       conftest$ac_exeext conftest.$ac_ext
24406 else
24407   cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h.  */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h.  */
24413
24414 /* pthread test headers */
24415 #include <pthread.h>
24416 #if HAVE_PTHREADS < 7
24417 #include <errno.h>
24418 #endif
24419 #ifndef NULL
24420 #define NULL (void*)0
24421 #endif
24422
24423 static void *task(p)
24424         void *p;
24425 {
24426         return (void *) (p == NULL);
24427 }
24428
24429
24430 int main(argc, argv)
24431         int argc;
24432         char **argv;
24433 {
24434
24435         /* pthread test function */
24436 #ifndef PTHREAD_CREATE_DETACHED
24437 #define PTHREAD_CREATE_DETACHED 1
24438 #endif
24439         pthread_t t;
24440         int status;
24441         int detach = PTHREAD_CREATE_DETACHED;
24442
24443 #if HAVE_PTHREADS > 4
24444         /* Final pthreads */
24445         pthread_attr_t attr;
24446
24447         status = pthread_attr_init(&attr);
24448         if( status ) return status;
24449
24450 #if HAVE_PTHREADS < 7
24451         status = pthread_attr_setdetachstate(&attr, &detach);
24452         if( status < 0 ) status = errno;
24453 #else
24454         status = pthread_attr_setdetachstate(&attr, detach);
24455 #endif
24456         if( status ) return status;
24457         status = pthread_create( &t, &attr, task, NULL );
24458 #if HAVE_PTHREADS < 7
24459         if( status < 0 ) status = errno;
24460 #endif
24461         if( status ) return status;
24462 #else
24463         /* Draft 4 pthreads */
24464         status = pthread_create( &t, pthread_attr_default, task, NULL );
24465         if( status ) return errno;
24466
24467         /* give thread a chance to complete */
24468         /* it should remain joinable and hence detachable */
24469         sleep( 1 );
24470
24471         status = pthread_detach( &t );
24472         if( status ) return errno;
24473 #endif
24474
24475 #ifdef HAVE_LINUX_THREADS
24476         pthread_kill_other_threads_np();
24477 #endif
24478
24479         return 0;
24480
24481 }
24482
24483 _ACEOF
24484 rm -f conftest$ac_exeext
24485 if { (ac_try="$ac_link"
24486 case "(($ac_try" in
24487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488   *) ac_try_echo=$ac_try;;
24489 esac
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491   (eval "$ac_link") 2>&5
24492   ac_status=$?
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24495   { (case "(($ac_try" in
24496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497   *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500   (eval "$ac_try") 2>&5
24501   ac_status=$?
24502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503   (exit $ac_status); }; }; then
24504   ol_cv_pthread_lib_lpthreads=yes
24505 else
24506   echo "$as_me: program exited with status $ac_status" >&5
24507 echo "$as_me: failed program was:" >&5
24508 sed 's/^/| /' conftest.$ac_ext >&5
24509
24510 ( exit $ac_status )
24511 ol_cv_pthread_lib_lpthreads=no
24512 fi
24513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24514 fi
24515
24516
24517
24518                 # restore the LIBS
24519                 LIBS="$ol_LIBS"
24520
24521 fi
24522 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24523 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24524
24525         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24526                 ol_link_pthreads="-lpthreads"
24527                 ol_link_threads=posix
24528         fi
24529 fi
24530
24531
24532                 if test $ol_link_threads != no ; then
24533                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24534
24535                                                 save_CPPFLAGS="$CPPFLAGS"
24536                         save_LIBS="$LIBS"
24537                         LIBS="$LTHREAD_LIBS $LIBS"
24538
24539
24540
24541
24542 for ac_func in sched_yield pthread_yield thr_yield
24543 do
24544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24548   echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550   cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24558 #define $ac_func innocuous_$ac_func
24559
24560 /* System header to define __stub macros and hopefully few prototypes,
24561     which can conflict with char $ac_func (); below.
24562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24563     <limits.h> exists even on freestanding compilers.  */
24564
24565 #ifdef __STDC__
24566 # include <limits.h>
24567 #else
24568 # include <assert.h>
24569 #endif
24570
24571 #undef $ac_func
24572
24573 /* Override any GCC internal prototype to avoid an error.
24574    Use char because int might match the return type of a GCC
24575    builtin and then its argument prototype would still apply.  */
24576 #ifdef __cplusplus
24577 extern "C"
24578 #endif
24579 char $ac_func ();
24580 /* The GNU C library defines this for functions which it implements
24581     to always fail with ENOSYS.  Some functions are actually named
24582     something starting with __ and the normal name is an alias.  */
24583 #if defined __stub_$ac_func || defined __stub___$ac_func
24584 choke me
24585 #endif
24586
24587 int
24588 main ()
24589 {
24590 return $ac_func ();
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest.$ac_objext conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599   *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602   (eval "$ac_link") 2>conftest.er1
24603   ac_status=$?
24604   grep -v '^ *+' conftest.er1 >conftest.err
24605   rm -f conftest.er1
24606   cat conftest.err >&5
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } && {
24609          test -z "$ac_c_werror_flag" ||
24610          test ! -s conftest.err
24611        } && test -s conftest$ac_exeext &&
24612        $as_test_x conftest$ac_exeext; then
24613   eval "$as_ac_var=yes"
24614 else
24615   echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24617
24618         eval "$as_ac_var=no"
24619 fi
24620
24621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24622       conftest$ac_exeext conftest.$ac_ext
24623 fi
24624 ac_res=`eval echo '${'$as_ac_var'}'`
24625                { echo "$as_me:$LINENO: result: $ac_res" >&5
24626 echo "${ECHO_T}$ac_res" >&6; }
24627 if test `eval echo '${'$as_ac_var'}'` = yes; then
24628   cat >>confdefs.h <<_ACEOF
24629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24630 _ACEOF
24631
24632 fi
24633 done
24634
24635
24636                         if test $ac_cv_func_sched_yield = no &&
24637                            test $ac_cv_func_pthread_yield = no &&
24638                            test $ac_cv_func_thr_yield = no ; then
24639                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24640 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24641 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24642   echo $ECHO_N "(cached) $ECHO_C" >&6
24643 else
24644   ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lrt  $LIBS"
24646 cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h.  */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h.  */
24652
24653 /* Override any GCC internal prototype to avoid an error.
24654    Use char because int might match the return type of a GCC
24655    builtin and then its argument prototype would still apply.  */
24656 #ifdef __cplusplus
24657 extern "C"
24658 #endif
24659 char sched_yield ();
24660 int
24661 main ()
24662 {
24663 return sched_yield ();
24664   ;
24665   return 0;
24666 }
24667 _ACEOF
24668 rm -f conftest.$ac_objext conftest$ac_exeext
24669 if { (ac_try="$ac_link"
24670 case "(($ac_try" in
24671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672   *) ac_try_echo=$ac_try;;
24673 esac
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675   (eval "$ac_link") 2>conftest.er1
24676   ac_status=$?
24677   grep -v '^ *+' conftest.er1 >conftest.err
24678   rm -f conftest.er1
24679   cat conftest.err >&5
24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681   (exit $ac_status); } && {
24682          test -z "$ac_c_werror_flag" ||
24683          test ! -s conftest.err
24684        } && test -s conftest$ac_exeext &&
24685        $as_test_x conftest$ac_exeext; then
24686   ac_cv_lib_rt_sched_yield=yes
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691         ac_cv_lib_rt_sched_yield=no
24692 fi
24693
24694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24695       conftest$ac_exeext conftest.$ac_ext
24696 LIBS=$ac_check_lib_save_LIBS
24697 fi
24698 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24699 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24700 if test $ac_cv_lib_rt_sched_yield = yes; then
24701   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24702
24703 cat >>confdefs.h <<\_ACEOF
24704 #define HAVE_SCHED_YIELD 1
24705 _ACEOF
24706
24707                                         ac_cv_func_sched_yield=yes
24708 else
24709   ac_cv_func_sched_yield=no
24710 fi
24711
24712                         fi
24713                         if test $ac_cv_func_sched_yield = no &&
24714                            test $ac_cv_func_pthread_yield = no &&
24715                            test "$ac_cv_func_thr_yield" = no ; then
24716                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24717 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24718                         fi
24719
24720
24721 for ac_func in pthread_kill
24722 do
24723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 else
24729   cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24737 #define $ac_func innocuous_$ac_func
24738
24739 /* System header to define __stub macros and hopefully few prototypes,
24740     which can conflict with char $ac_func (); below.
24741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24742     <limits.h> exists even on freestanding compilers.  */
24743
24744 #ifdef __STDC__
24745 # include <limits.h>
24746 #else
24747 # include <assert.h>
24748 #endif
24749
24750 #undef $ac_func
24751
24752 /* Override any GCC internal prototype to avoid an error.
24753    Use char because int might match the return type of a GCC
24754    builtin and then its argument prototype would still apply.  */
24755 #ifdef __cplusplus
24756 extern "C"
24757 #endif
24758 char $ac_func ();
24759 /* The GNU C library defines this for functions which it implements
24760     to always fail with ENOSYS.  Some functions are actually named
24761     something starting with __ and the normal name is an alias.  */
24762 #if defined __stub_$ac_func || defined __stub___$ac_func
24763 choke me
24764 #endif
24765
24766 int
24767 main ()
24768 {
24769 return $ac_func ();
24770   ;
24771   return 0;
24772 }
24773 _ACEOF
24774 rm -f conftest.$ac_objext conftest$ac_exeext
24775 if { (ac_try="$ac_link"
24776 case "(($ac_try" in
24777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778   *) ac_try_echo=$ac_try;;
24779 esac
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781   (eval "$ac_link") 2>conftest.er1
24782   ac_status=$?
24783   grep -v '^ *+' conftest.er1 >conftest.err
24784   rm -f conftest.er1
24785   cat conftest.err >&5
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); } && {
24788          test -z "$ac_c_werror_flag" ||
24789          test ! -s conftest.err
24790        } && test -s conftest$ac_exeext &&
24791        $as_test_x conftest$ac_exeext; then
24792   eval "$as_ac_var=yes"
24793 else
24794   echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797         eval "$as_ac_var=no"
24798 fi
24799
24800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24801       conftest$ac_exeext conftest.$ac_ext
24802 fi
24803 ac_res=`eval echo '${'$as_ac_var'}'`
24804                { echo "$as_me:$LINENO: result: $ac_res" >&5
24805 echo "${ECHO_T}$ac_res" >&6; }
24806 if test `eval echo '${'$as_ac_var'}'` = yes; then
24807   cat >>confdefs.h <<_ACEOF
24808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24809 _ACEOF
24810
24811 fi
24812 done
24813
24814
24815                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24816 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24817 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24818   echo $ECHO_N "(cached) $ECHO_C" >&6
24819 else
24820
24821                                                                 cat >conftest.$ac_ext <<_ACEOF
24822 /* confdefs.h.  */
24823 _ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h.  */
24827
24828 #include <pthread.h>
24829 pthread_rwlock_t rwlock;
24830
24831 int
24832 main ()
24833 {
24834 pthread_rwlock_destroy(&rwlock);
24835   ;
24836   return 0;
24837 }
24838 _ACEOF
24839 rm -f conftest.$ac_objext conftest$ac_exeext
24840 if { (ac_try="$ac_link"
24841 case "(($ac_try" in
24842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843   *) ac_try_echo=$ac_try;;
24844 esac
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846   (eval "$ac_link") 2>conftest.er1
24847   ac_status=$?
24848   grep -v '^ *+' conftest.er1 >conftest.err
24849   rm -f conftest.er1
24850   cat conftest.err >&5
24851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852   (exit $ac_status); } && {
24853          test -z "$ac_c_werror_flag" ||
24854          test ! -s conftest.err
24855        } && test -s conftest$ac_exeext &&
24856        $as_test_x conftest$ac_exeext; then
24857   ol_cv_func_pthread_rwlock_destroy=yes
24858 else
24859   echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24861
24862         ol_cv_func_pthread_rwlock_destroy=no
24863 fi
24864
24865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24866       conftest$ac_exeext conftest.$ac_ext
24867
24868 fi
24869 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24870 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24871                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24872
24873 cat >>confdefs.h <<\_ACEOF
24874 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24875 _ACEOF
24876
24877                         fi
24878
24879                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24880 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24881 if test "${ol_cv_func_pthread_detach+set}" = set; then
24882   echo $ECHO_N "(cached) $ECHO_C" >&6
24883 else
24884
24885                                                                 cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891
24892 #include <pthread.h>
24893 #ifndef NULL
24894 #define NULL (void*)0
24895 #endif
24896
24897 int
24898 main ()
24899 {
24900 pthread_detach(NULL);
24901   ;
24902   return 0;
24903 }
24904 _ACEOF
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909   *) ac_try_echo=$ac_try;;
24910 esac
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912   (eval "$ac_link") 2>conftest.er1
24913   ac_status=$?
24914   grep -v '^ *+' conftest.er1 >conftest.err
24915   rm -f conftest.er1
24916   cat conftest.err >&5
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); } && {
24919          test -z "$ac_c_werror_flag" ||
24920          test ! -s conftest.err
24921        } && test -s conftest$ac_exeext &&
24922        $as_test_x conftest$ac_exeext; then
24923   ol_cv_func_pthread_detach=yes
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928         ol_cv_func_pthread_detach=no
24929 fi
24930
24931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24932       conftest$ac_exeext conftest.$ac_ext
24933
24934 fi
24935 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24936 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24937
24938                         if test $ol_cv_func_pthread_detach = no ; then
24939                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24940 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24941    { (exit 1); exit 1; }; }
24942                         fi
24943
24944
24945 cat >>confdefs.h <<\_ACEOF
24946 #define HAVE_PTHREAD_DETACH 1
24947 _ACEOF
24948
24949
24950
24951
24952
24953
24954 for ac_func in \
24955                                 pthread_setconcurrency \
24956                                 pthread_getconcurrency \
24957                                 thr_setconcurrency \
24958                                 thr_getconcurrency \
24959
24960 do
24961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24965   echo $ECHO_N "(cached) $ECHO_C" >&6
24966 else
24967   cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h.  */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h.  */
24973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24975 #define $ac_func innocuous_$ac_func
24976
24977 /* System header to define __stub macros and hopefully few prototypes,
24978     which can conflict with char $ac_func (); below.
24979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24980     <limits.h> exists even on freestanding compilers.  */
24981
24982 #ifdef __STDC__
24983 # include <limits.h>
24984 #else
24985 # include <assert.h>
24986 #endif
24987
24988 #undef $ac_func
24989
24990 /* Override any GCC internal prototype to avoid an error.
24991    Use char because int might match the return type of a GCC
24992    builtin and then its argument prototype would still apply.  */
24993 #ifdef __cplusplus
24994 extern "C"
24995 #endif
24996 char $ac_func ();
24997 /* The GNU C library defines this for functions which it implements
24998     to always fail with ENOSYS.  Some functions are actually named
24999     something starting with __ and the normal name is an alias.  */
25000 #if defined __stub_$ac_func || defined __stub___$ac_func
25001 choke me
25002 #endif
25003
25004 int
25005 main ()
25006 {
25007 return $ac_func ();
25008   ;
25009   return 0;
25010 }
25011 _ACEOF
25012 rm -f conftest.$ac_objext conftest$ac_exeext
25013 if { (ac_try="$ac_link"
25014 case "(($ac_try" in
25015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25016   *) ac_try_echo=$ac_try;;
25017 esac
25018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25019   (eval "$ac_link") 2>conftest.er1
25020   ac_status=$?
25021   grep -v '^ *+' conftest.er1 >conftest.err
25022   rm -f conftest.er1
25023   cat conftest.err >&5
25024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025   (exit $ac_status); } && {
25026          test -z "$ac_c_werror_flag" ||
25027          test ! -s conftest.err
25028        } && test -s conftest$ac_exeext &&
25029        $as_test_x conftest$ac_exeext; then
25030   eval "$as_ac_var=yes"
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035         eval "$as_ac_var=no"
25036 fi
25037
25038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25039       conftest$ac_exeext conftest.$ac_ext
25040 fi
25041 ac_res=`eval echo '${'$as_ac_var'}'`
25042                { echo "$as_me:$LINENO: result: $ac_res" >&5
25043 echo "${ECHO_T}$ac_res" >&6; }
25044 if test `eval echo '${'$as_ac_var'}'` = yes; then
25045   cat >>confdefs.h <<_ACEOF
25046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25047 _ACEOF
25048
25049 fi
25050 done
25051
25052
25053
25054
25055 for ac_func in pthread_kill_other_threads_np
25056 do
25057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25061   echo $ECHO_N "(cached) $ECHO_C" >&6
25062 else
25063   cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h.  */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h.  */
25069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25071 #define $ac_func innocuous_$ac_func
25072
25073 /* System header to define __stub macros and hopefully few prototypes,
25074     which can conflict with char $ac_func (); below.
25075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25076     <limits.h> exists even on freestanding compilers.  */
25077
25078 #ifdef __STDC__
25079 # include <limits.h>
25080 #else
25081 # include <assert.h>
25082 #endif
25083
25084 #undef $ac_func
25085
25086 /* Override any GCC internal prototype to avoid an error.
25087    Use char because int might match the return type of a GCC
25088    builtin and then its argument prototype would still apply.  */
25089 #ifdef __cplusplus
25090 extern "C"
25091 #endif
25092 char $ac_func ();
25093 /* The GNU C library defines this for functions which it implements
25094     to always fail with ENOSYS.  Some functions are actually named
25095     something starting with __ and the normal name is an alias.  */
25096 #if defined __stub_$ac_func || defined __stub___$ac_func
25097 choke me
25098 #endif
25099
25100 int
25101 main ()
25102 {
25103 return $ac_func ();
25104   ;
25105   return 0;
25106 }
25107 _ACEOF
25108 rm -f conftest.$ac_objext conftest$ac_exeext
25109 if { (ac_try="$ac_link"
25110 case "(($ac_try" in
25111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112   *) ac_try_echo=$ac_try;;
25113 esac
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115   (eval "$ac_link") 2>conftest.er1
25116   ac_status=$?
25117   grep -v '^ *+' conftest.er1 >conftest.err
25118   rm -f conftest.er1
25119   cat conftest.err >&5
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); } && {
25122          test -z "$ac_c_werror_flag" ||
25123          test ! -s conftest.err
25124        } && test -s conftest$ac_exeext &&
25125        $as_test_x conftest$ac_exeext; then
25126   eval "$as_ac_var=yes"
25127 else
25128   echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131         eval "$as_ac_var=no"
25132 fi
25133
25134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25135       conftest$ac_exeext conftest.$ac_ext
25136 fi
25137 ac_res=`eval echo '${'$as_ac_var'}'`
25138                { echo "$as_me:$LINENO: result: $ac_res" >&5
25139 echo "${ECHO_T}$ac_res" >&6; }
25140 if test `eval echo '${'$as_ac_var'}'` = yes; then
25141   cat >>confdefs.h <<_ACEOF
25142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25143 _ACEOF
25144
25145 fi
25146 done
25147
25148         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25149 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25150 if test "${ol_cv_sys_linux_threads+set}" = set; then
25151   echo $ECHO_N "(cached) $ECHO_C" >&6
25152 else
25153   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25154 fi
25155 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25156 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25157
25158
25159
25160
25161         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25162 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25163 if test "${ol_cv_linux_threads+set}" = set; then
25164   echo $ECHO_N "(cached) $ECHO_C" >&6
25165 else
25166
25167                 if test $ol_cv_header_linux_threads = yes &&
25168                    test $ol_cv_sys_linux_threads = yes; then
25169                         ol_cv_linux_threads=yes
25170                 elif test $ol_cv_header_linux_threads = no &&
25171                      test $ol_cv_sys_linux_threads = no; then
25172                         ol_cv_linux_threads=no
25173                 else
25174                         ol_cv_linux_threads=error
25175                 fi
25176
25177 fi
25178 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25179 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25180
25181
25182                         if test $ol_cv_linux_threads = error; then
25183                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25184 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25185    { (exit 1); exit 1; }; };
25186                         fi
25187
25188                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25189 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25190 if test "${ol_cv_pthread_create_works+set}" = set; then
25191   echo $ECHO_N "(cached) $ECHO_C" >&6
25192 else
25193
25194                         if test "$cross_compiling" = yes; then
25195                                 ol_cv_pthread_create_works=yes
25196 else
25197   cat >conftest.$ac_ext <<_ACEOF
25198 /* confdefs.h.  */
25199 _ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h.  */
25203
25204 /* pthread test headers */
25205 #include <pthread.h>
25206 #if HAVE_PTHREADS < 7
25207 #include <errno.h>
25208 #endif
25209 #ifndef NULL
25210 #define NULL (void*)0
25211 #endif
25212
25213 static void *task(p)
25214         void *p;
25215 {
25216         return (void *) (p == NULL);
25217 }
25218
25219
25220 int main(argc, argv)
25221         int argc;
25222         char **argv;
25223 {
25224
25225         /* pthread test function */
25226 #ifndef PTHREAD_CREATE_DETACHED
25227 #define PTHREAD_CREATE_DETACHED 1
25228 #endif
25229         pthread_t t;
25230         int status;
25231         int detach = PTHREAD_CREATE_DETACHED;
25232
25233 #if HAVE_PTHREADS > 4
25234         /* Final pthreads */
25235         pthread_attr_t attr;
25236
25237         status = pthread_attr_init(&attr);
25238         if( status ) return status;
25239
25240 #if HAVE_PTHREADS < 7
25241         status = pthread_attr_setdetachstate(&attr, &detach);
25242         if( status < 0 ) status = errno;
25243 #else
25244         status = pthread_attr_setdetachstate(&attr, detach);
25245 #endif
25246         if( status ) return status;
25247         status = pthread_create( &t, &attr, task, NULL );
25248 #if HAVE_PTHREADS < 7
25249         if( status < 0 ) status = errno;
25250 #endif
25251         if( status ) return status;
25252 #else
25253         /* Draft 4 pthreads */
25254         status = pthread_create( &t, pthread_attr_default, task, NULL );
25255         if( status ) return errno;
25256
25257         /* give thread a chance to complete */
25258         /* it should remain joinable and hence detachable */
25259         sleep( 1 );
25260
25261         status = pthread_detach( &t );
25262         if( status ) return errno;
25263 #endif
25264
25265 #ifdef HAVE_LINUX_THREADS
25266         pthread_kill_other_threads_np();
25267 #endif
25268
25269         return 0;
25270
25271 }
25272
25273 _ACEOF
25274 rm -f conftest$ac_exeext
25275 if { (ac_try="$ac_link"
25276 case "(($ac_try" in
25277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25278   *) ac_try_echo=$ac_try;;
25279 esac
25280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25281   (eval "$ac_link") 2>&5
25282   ac_status=$?
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25285   { (case "(($ac_try" in
25286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287   *) ac_try_echo=$ac_try;;
25288 esac
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290   (eval "$ac_try") 2>&5
25291   ac_status=$?
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); }; }; then
25294   ol_cv_pthread_create_works=yes
25295 else
25296   echo "$as_me: program exited with status $ac_status" >&5
25297 echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25299
25300 ( exit $ac_status )
25301 ol_cv_pthread_create_works=no
25302 fi
25303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25304 fi
25305
25306
25307 fi
25308 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25309 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25310
25311                         if test $ol_cv_pthread_create_works = no ; then
25312                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25313 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25314    { (exit 1); exit 1; }; }
25315                         fi
25316
25317                         ol_replace_broken_yield=no
25318
25319                         if test $ol_replace_broken_yield = yes ; then
25320
25321 cat >>confdefs.h <<\_ACEOF
25322 #define REPLACE_BROKEN_YIELD 1
25323 _ACEOF
25324
25325                         fi
25326
25327                                                 if test $ol_with_yielding_select = auto ; then
25328                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25329 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25330 if test "${ol_cv_pthread_select_yields+set}" = set; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 else
25333
25334                                 if test "$cross_compiling" = yes; then
25335   ol_cv_pthread_select_yields=cross
25336 else
25337   cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343
25344 #include <sys/types.h>
25345 #include <sys/time.h>
25346 #include <unistd.h>
25347 #include <pthread.h>
25348 #ifndef NULL
25349 #define NULL (void*) 0
25350 #endif
25351
25352 static int fildes[2];
25353
25354 static void *task(p)
25355         void *p;
25356 {
25357         int i;
25358         struct timeval tv;
25359
25360         fd_set rfds;
25361
25362         tv.tv_sec=10;
25363         tv.tv_usec=0;
25364
25365         FD_ZERO(&rfds);
25366         FD_SET(fildes[0], &rfds);
25367
25368         /* we're not interested in any fds */
25369         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25370
25371         if(i < 0) {
25372                 perror("select");
25373                 exit(10);
25374         }
25375
25376         exit(0); /* if we exit here, the select blocked the whole process */
25377 }
25378
25379 int main(argc, argv)
25380         int argc;
25381         char **argv;
25382 {
25383         pthread_t t;
25384
25385         /* create a pipe to select */
25386         if(pipe(&fildes[0])) {
25387                 perror("select");
25388                 exit(1);
25389         }
25390
25391 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25392         (void) pthread_setconcurrency(2);
25393 #else
25394 #ifdef HAVE_THR_SETCONCURRENCY
25395         /* Set Solaris LWP concurrency to 2 */
25396         thr_setconcurrency(2);
25397 #endif
25398 #endif
25399
25400 #if HAVE_PTHREADS < 6
25401         pthread_create(&t, pthread_attr_default, task, NULL);
25402 #else
25403         pthread_create(&t, NULL, task, NULL);
25404 #endif
25405
25406         /* make sure task runs first */
25407 #ifdef HAVE_THR_YIELD
25408         thr_yield();
25409 #elif defined( HAVE_SCHED_YIELD )
25410         sched_yield();
25411 #elif defined( HAVE_PTHREAD_YIELD )
25412         pthread_yield();
25413 #endif
25414
25415         exit(2);
25416 }
25417 _ACEOF
25418 rm -f conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425   (eval "$ac_link") 2>&5
25426   ac_status=$?
25427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25429   { (case "(($ac_try" in
25430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431   *) ac_try_echo=$ac_try;;
25432 esac
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434   (eval "$ac_try") 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; }; then
25438   ol_cv_pthread_select_yields=no
25439 else
25440   echo "$as_me: program exited with status $ac_status" >&5
25441 echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25443
25444 ( exit $ac_status )
25445 ol_cv_pthread_select_yields=yes
25446 fi
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25448 fi
25449
25450
25451 fi
25452 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25453 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25454
25455                                 if test $ol_cv_pthread_select_yields = cross ; then
25456                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25457 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25458    { (exit 1); exit 1; }; }
25459                                 fi
25460
25461                                 if test $ol_cv_pthread_select_yields = yes ; then
25462                                         ol_with_yielding_select=yes
25463                                 fi
25464                         fi
25465
25466                                                 CPPFLAGS="$save_CPPFLAGS"
25467                         LIBS="$save_LIBS"
25468                 else
25469                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25470 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25471    { (exit 1); exit 1; }; }
25472                 fi
25473         fi
25474
25475         if test $ol_with_threads = posix ; then
25476                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25477 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25478    { (exit 1); exit 1; }; }
25479         fi
25480         ;;
25481 esac
25482
25483 case $ol_with_threads in auto | yes | mach)
25484
25485
25486
25487 for ac_header in mach/cthreads.h cthreads.h
25488 do
25489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25491   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25494   echo $ECHO_N "(cached) $ECHO_C" >&6
25495 fi
25496 ac_res=`eval echo '${'$as_ac_Header'}'`
25497                { echo "$as_me:$LINENO: result: $ac_res" >&5
25498 echo "${ECHO_T}$ac_res" >&6; }
25499 else
25500   # Is the header compilable?
25501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25503 cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h.  */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h.  */
25509 $ac_includes_default
25510 #include <$ac_header>
25511 _ACEOF
25512 rm -f conftest.$ac_objext
25513 if { (ac_try="$ac_compile"
25514 case "(($ac_try" in
25515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516   *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519   (eval "$ac_compile") 2>conftest.er1
25520   ac_status=$?
25521   grep -v '^ *+' conftest.er1 >conftest.err
25522   rm -f conftest.er1
25523   cat conftest.err >&5
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); } && {
25526          test -z "$ac_c_werror_flag" ||
25527          test ! -s conftest.err
25528        } && test -s conftest.$ac_objext; then
25529   ac_header_compiler=yes
25530 else
25531   echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25533
25534         ac_header_compiler=no
25535 fi
25536
25537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25539 echo "${ECHO_T}$ac_header_compiler" >&6; }
25540
25541 # Is the header present?
25542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25544 cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550 #include <$ac_header>
25551 _ACEOF
25552 if { (ac_try="$ac_cpp conftest.$ac_ext"
25553 case "(($ac_try" in
25554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25555   *) ac_try_echo=$ac_try;;
25556 esac
25557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25559   ac_status=$?
25560   grep -v '^ *+' conftest.er1 >conftest.err
25561   rm -f conftest.er1
25562   cat conftest.err >&5
25563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564   (exit $ac_status); } >/dev/null && {
25565          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25566          test ! -s conftest.err
25567        }; then
25568   ac_header_preproc=yes
25569 else
25570   echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25572
25573   ac_header_preproc=no
25574 fi
25575
25576 rm -f conftest.err conftest.$ac_ext
25577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25578 echo "${ECHO_T}$ac_header_preproc" >&6; }
25579
25580 # So?  What about this header?
25581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25582   yes:no: )
25583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25587     ac_header_preproc=yes
25588     ;;
25589   no:yes:* )
25590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25602     ( cat <<\_ASBOX
25603 ## --------------------------------------------- ##
25604 ## Report this to <http://www.openldap.org/its/> ##
25605 ## --------------------------------------------- ##
25606 _ASBOX
25607      ) | sed "s/^/$as_me: WARNING:     /" >&2
25608     ;;
25609 esac
25610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25613   echo $ECHO_N "(cached) $ECHO_C" >&6
25614 else
25615   eval "$as_ac_Header=\$ac_header_preproc"
25616 fi
25617 ac_res=`eval echo '${'$as_ac_Header'}'`
25618                { echo "$as_me:$LINENO: result: $ac_res" >&5
25619 echo "${ECHO_T}$ac_res" >&6; }
25620
25621 fi
25622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25623   cat >>confdefs.h <<_ACEOF
25624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25625 _ACEOF
25626
25627 fi
25628
25629 done
25630
25631         if test $ac_cv_header_mach_cthreads_h = yes ; then
25632                 ol_with_threads=found
25633
25634                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25635 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25636 if test "${ac_cv_func_cthread_fork+set}" = set; then
25637   echo $ECHO_N "(cached) $ECHO_C" >&6
25638 else
25639   cat >conftest.$ac_ext <<_ACEOF
25640 /* confdefs.h.  */
25641 _ACEOF
25642 cat confdefs.h >>conftest.$ac_ext
25643 cat >>conftest.$ac_ext <<_ACEOF
25644 /* end confdefs.h.  */
25645 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25647 #define cthread_fork innocuous_cthread_fork
25648
25649 /* System header to define __stub macros and hopefully few prototypes,
25650     which can conflict with char cthread_fork (); below.
25651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25652     <limits.h> exists even on freestanding compilers.  */
25653
25654 #ifdef __STDC__
25655 # include <limits.h>
25656 #else
25657 # include <assert.h>
25658 #endif
25659
25660 #undef cthread_fork
25661
25662 /* Override any GCC internal prototype to avoid an error.
25663    Use char because int might match the return type of a GCC
25664    builtin and then its argument prototype would still apply.  */
25665 #ifdef __cplusplus
25666 extern "C"
25667 #endif
25668 char cthread_fork ();
25669 /* The GNU C library defines this for functions which it implements
25670     to always fail with ENOSYS.  Some functions are actually named
25671     something starting with __ and the normal name is an alias.  */
25672 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25673 choke me
25674 #endif
25675
25676 int
25677 main ()
25678 {
25679 return cthread_fork ();
25680   ;
25681   return 0;
25682 }
25683 _ACEOF
25684 rm -f conftest.$ac_objext conftest$ac_exeext
25685 if { (ac_try="$ac_link"
25686 case "(($ac_try" in
25687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688   *) ac_try_echo=$ac_try;;
25689 esac
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691   (eval "$ac_link") 2>conftest.er1
25692   ac_status=$?
25693   grep -v '^ *+' conftest.er1 >conftest.err
25694   rm -f conftest.er1
25695   cat conftest.err >&5
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); } && {
25698          test -z "$ac_c_werror_flag" ||
25699          test ! -s conftest.err
25700        } && test -s conftest$ac_exeext &&
25701        $as_test_x conftest$ac_exeext; then
25702   ac_cv_func_cthread_fork=yes
25703 else
25704   echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25706
25707         ac_cv_func_cthread_fork=no
25708 fi
25709
25710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25711       conftest$ac_exeext conftest.$ac_ext
25712 fi
25713 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25714 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25715 if test $ac_cv_func_cthread_fork = yes; then
25716   ol_link_threads=yes
25717 fi
25718
25719
25720                 if test $ol_link_threads = no ; then
25721                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25722 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25723 if test "${ol_cv_cthread_all_load+set}" = set; then
25724   echo $ECHO_N "(cached) $ECHO_C" >&6
25725 else
25726
25727                                                                 save_LIBS="$LIBS"
25728                                 LIBS="-all_load $LIBS"
25729                                 cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 #include <mach/cthreads.h>
25736 int
25737 main ()
25738 {
25739
25740                                         cthread_fork((void *)0, (void *)0);
25741
25742   ;
25743   return 0;
25744 }
25745 _ACEOF
25746 rm -f conftest.$ac_objext conftest$ac_exeext
25747 if { (ac_try="$ac_link"
25748 case "(($ac_try" in
25749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750   *) ac_try_echo=$ac_try;;
25751 esac
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753   (eval "$ac_link") 2>conftest.er1
25754   ac_status=$?
25755   grep -v '^ *+' conftest.er1 >conftest.err
25756   rm -f conftest.er1
25757   cat conftest.err >&5
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); } && {
25760          test -z "$ac_c_werror_flag" ||
25761          test ! -s conftest.err
25762        } && test -s conftest$ac_exeext &&
25763        $as_test_x conftest$ac_exeext; then
25764   ol_cv_cthread_all_load=yes
25765 else
25766   echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25768
25769         ol_cv_cthread_all_load=no
25770 fi
25771
25772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25773       conftest$ac_exeext conftest.$ac_ext
25774                                                                 LIBS="$save_LIBS"
25775
25776 fi
25777 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25778 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25779
25780                         if test $ol_cv_cthread_all_load = yes ; then
25781                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25782                                 ol_link_threads=mach
25783                                 ol_with_threads=found
25784                         fi
25785                 fi
25786
25787         elif test $ac_cv_header_cthreads_h = yes ; then
25788
25789                 ol_with_threads=found
25790
25791                                 save_LIBS="$LIBS"
25792                 LIBS="$LIBS -lthreads"
25793                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25794 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25795 if test "${ac_cv_func_cthread_fork+set}" = set; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798   cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25806 #define cthread_fork innocuous_cthread_fork
25807
25808 /* System header to define __stub macros and hopefully few prototypes,
25809     which can conflict with char cthread_fork (); below.
25810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25811     <limits.h> exists even on freestanding compilers.  */
25812
25813 #ifdef __STDC__
25814 # include <limits.h>
25815 #else
25816 # include <assert.h>
25817 #endif
25818
25819 #undef cthread_fork
25820
25821 /* Override any GCC internal prototype to avoid an error.
25822    Use char because int might match the return type of a GCC
25823    builtin and then its argument prototype would still apply.  */
25824 #ifdef __cplusplus
25825 extern "C"
25826 #endif
25827 char cthread_fork ();
25828 /* The GNU C library defines this for functions which it implements
25829     to always fail with ENOSYS.  Some functions are actually named
25830     something starting with __ and the normal name is an alias.  */
25831 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25832 choke me
25833 #endif
25834
25835 int
25836 main ()
25837 {
25838 return cthread_fork ();
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext conftest$ac_exeext
25844 if { (ac_try="$ac_link"
25845 case "(($ac_try" in
25846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25847   *) ac_try_echo=$ac_try;;
25848 esac
25849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25850   (eval "$ac_link") 2>conftest.er1
25851   ac_status=$?
25852   grep -v '^ *+' conftest.er1 >conftest.err
25853   rm -f conftest.er1
25854   cat conftest.err >&5
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); } && {
25857          test -z "$ac_c_werror_flag" ||
25858          test ! -s conftest.err
25859        } && test -s conftest$ac_exeext &&
25860        $as_test_x conftest$ac_exeext; then
25861   ac_cv_func_cthread_fork=yes
25862 else
25863   echo "$as_me: failed program was:" >&5
25864 sed 's/^/| /' conftest.$ac_ext >&5
25865
25866         ac_cv_func_cthread_fork=no
25867 fi
25868
25869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25870       conftest$ac_exeext conftest.$ac_ext
25871 fi
25872 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25873 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25874 if test $ac_cv_func_cthread_fork = yes; then
25875   ol_link_threads=yes
25876 fi
25877
25878                 LIBS="$save_LIBS"
25879
25880                 if test $ol_link_threads = yes ; then
25881                         LTHREAD_LIBS="-lthreads"
25882                         ol_link_threads=mach
25883                         ol_with_threads=found
25884                 else
25885                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25886 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25887    { (exit 1); exit 1; }; }
25888                 fi
25889
25890         elif test $ol_with_threads = mach ; then
25891                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25892 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25893    { (exit 1); exit 1; }; }
25894         fi
25895
25896         if test $ol_link_threads = mach ; then
25897
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_MACH_CTHREADS 1
25900 _ACEOF
25901
25902         elif test $ol_with_threads = found ; then
25903                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25904 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25905    { (exit 1); exit 1; }; }
25906         fi
25907         ;;
25908 esac
25909
25910 case $ol_with_threads in auto | yes | pth)
25911
25912
25913 for ac_header in pth.h
25914 do
25915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25917   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25920   echo $ECHO_N "(cached) $ECHO_C" >&6
25921 fi
25922 ac_res=`eval echo '${'$as_ac_Header'}'`
25923                { echo "$as_me:$LINENO: result: $ac_res" >&5
25924 echo "${ECHO_T}$ac_res" >&6; }
25925 else
25926   # Is the header compilable?
25927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25929 cat >conftest.$ac_ext <<_ACEOF
25930 /* confdefs.h.  */
25931 _ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h.  */
25935 $ac_includes_default
25936 #include <$ac_header>
25937 _ACEOF
25938 rm -f conftest.$ac_objext
25939 if { (ac_try="$ac_compile"
25940 case "(($ac_try" in
25941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25942   *) ac_try_echo=$ac_try;;
25943 esac
25944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25945   (eval "$ac_compile") 2>conftest.er1
25946   ac_status=$?
25947   grep -v '^ *+' conftest.er1 >conftest.err
25948   rm -f conftest.er1
25949   cat conftest.err >&5
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); } && {
25952          test -z "$ac_c_werror_flag" ||
25953          test ! -s conftest.err
25954        } && test -s conftest.$ac_objext; then
25955   ac_header_compiler=yes
25956 else
25957   echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25959
25960         ac_header_compiler=no
25961 fi
25962
25963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25965 echo "${ECHO_T}$ac_header_compiler" >&6; }
25966
25967 # Is the header present?
25968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25970 cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h.  */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h.  */
25976 #include <$ac_header>
25977 _ACEOF
25978 if { (ac_try="$ac_cpp conftest.$ac_ext"
25979 case "(($ac_try" in
25980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981   *) ac_try_echo=$ac_try;;
25982 esac
25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25985   ac_status=$?
25986   grep -v '^ *+' conftest.er1 >conftest.err
25987   rm -f conftest.er1
25988   cat conftest.err >&5
25989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990   (exit $ac_status); } >/dev/null && {
25991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25992          test ! -s conftest.err
25993        }; then
25994   ac_header_preproc=yes
25995 else
25996   echo "$as_me: failed program was:" >&5
25997 sed 's/^/| /' conftest.$ac_ext >&5
25998
25999   ac_header_preproc=no
26000 fi
26001
26002 rm -f conftest.err conftest.$ac_ext
26003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26004 echo "${ECHO_T}$ac_header_preproc" >&6; }
26005
26006 # So?  What about this header?
26007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26008   yes:no: )
26009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26013     ac_header_preproc=yes
26014     ;;
26015   no:yes:* )
26016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26028     ( cat <<\_ASBOX
26029 ## --------------------------------------------- ##
26030 ## Report this to <http://www.openldap.org/its/> ##
26031 ## --------------------------------------------- ##
26032 _ASBOX
26033      ) | sed "s/^/$as_me: WARNING:     /" >&2
26034     ;;
26035 esac
26036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26039   echo $ECHO_N "(cached) $ECHO_C" >&6
26040 else
26041   eval "$as_ac_Header=\$ac_header_preproc"
26042 fi
26043 ac_res=`eval echo '${'$as_ac_Header'}'`
26044                { echo "$as_me:$LINENO: result: $ac_res" >&5
26045 echo "${ECHO_T}$ac_res" >&6; }
26046
26047 fi
26048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26049   cat >>confdefs.h <<_ACEOF
26050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26051 _ACEOF
26052
26053 fi
26054
26055 done
26056
26057
26058         if test $ac_cv_header_pth_h = yes ; then
26059                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26060 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26061 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064   ac_check_lib_save_LIBS=$LIBS
26065 LIBS="-lpth  $LIBS"
26066 cat >conftest.$ac_ext <<_ACEOF
26067 /* confdefs.h.  */
26068 _ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h.  */
26072
26073 /* Override any GCC internal prototype to avoid an error.
26074    Use char because int might match the return type of a GCC
26075    builtin and then its argument prototype would still apply.  */
26076 #ifdef __cplusplus
26077 extern "C"
26078 #endif
26079 char pth_version ();
26080 int
26081 main ()
26082 {
26083 return pth_version ();
26084   ;
26085   return 0;
26086 }
26087 _ACEOF
26088 rm -f conftest.$ac_objext conftest$ac_exeext
26089 if { (ac_try="$ac_link"
26090 case "(($ac_try" in
26091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092   *) ac_try_echo=$ac_try;;
26093 esac
26094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26095   (eval "$ac_link") 2>conftest.er1
26096   ac_status=$?
26097   grep -v '^ *+' conftest.er1 >conftest.err
26098   rm -f conftest.er1
26099   cat conftest.err >&5
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); } && {
26102          test -z "$ac_c_werror_flag" ||
26103          test ! -s conftest.err
26104        } && test -s conftest$ac_exeext &&
26105        $as_test_x conftest$ac_exeext; then
26106   ac_cv_lib_pth_pth_version=yes
26107 else
26108   echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111         ac_cv_lib_pth_pth_version=no
26112 fi
26113
26114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26115       conftest$ac_exeext conftest.$ac_ext
26116 LIBS=$ac_check_lib_save_LIBS
26117 fi
26118 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26119 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26120 if test $ac_cv_lib_pth_pth_version = yes; then
26121   have_pth=yes
26122 else
26123   have_pth=no
26124 fi
26125
26126
26127                 if test $have_pth = yes ; then
26128
26129 cat >>confdefs.h <<\_ACEOF
26130 #define HAVE_GNU_PTH 1
26131 _ACEOF
26132
26133                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26134                         ol_link_threads=pth
26135                         ol_with_threads=found
26136
26137                         if test $ol_with_yielding_select = auto ; then
26138                                 ol_with_yielding_select=yes
26139                         fi
26140                 fi
26141         fi
26142         ;;
26143 esac
26144
26145 case $ol_with_threads in auto | yes | lwp)
26146
26147
26148
26149 for ac_header in thread.h synch.h
26150 do
26151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26153   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26156   echo $ECHO_N "(cached) $ECHO_C" >&6
26157 fi
26158 ac_res=`eval echo '${'$as_ac_Header'}'`
26159                { echo "$as_me:$LINENO: result: $ac_res" >&5
26160 echo "${ECHO_T}$ac_res" >&6; }
26161 else
26162   # Is the header compilable?
26163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26165 cat >conftest.$ac_ext <<_ACEOF
26166 /* confdefs.h.  */
26167 _ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h.  */
26171 $ac_includes_default
26172 #include <$ac_header>
26173 _ACEOF
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178   *) ac_try_echo=$ac_try;;
26179 esac
26180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181   (eval "$ac_compile") 2>conftest.er1
26182   ac_status=$?
26183   grep -v '^ *+' conftest.er1 >conftest.err
26184   rm -f conftest.er1
26185   cat conftest.err >&5
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); } && {
26188          test -z "$ac_c_werror_flag" ||
26189          test ! -s conftest.err
26190        } && test -s conftest.$ac_objext; then
26191   ac_header_compiler=yes
26192 else
26193   echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26195
26196         ac_header_compiler=no
26197 fi
26198
26199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26201 echo "${ECHO_T}$ac_header_compiler" >&6; }
26202
26203 # Is the header present?
26204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26206 cat >conftest.$ac_ext <<_ACEOF
26207 /* confdefs.h.  */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h.  */
26212 #include <$ac_header>
26213 _ACEOF
26214 if { (ac_try="$ac_cpp conftest.$ac_ext"
26215 case "(($ac_try" in
26216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217   *) ac_try_echo=$ac_try;;
26218 esac
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26221   ac_status=$?
26222   grep -v '^ *+' conftest.er1 >conftest.err
26223   rm -f conftest.er1
26224   cat conftest.err >&5
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); } >/dev/null && {
26227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26228          test ! -s conftest.err
26229        }; then
26230   ac_header_preproc=yes
26231 else
26232   echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26234
26235   ac_header_preproc=no
26236 fi
26237
26238 rm -f conftest.err conftest.$ac_ext
26239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26240 echo "${ECHO_T}$ac_header_preproc" >&6; }
26241
26242 # So?  What about this header?
26243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26244   yes:no: )
26245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26249     ac_header_preproc=yes
26250     ;;
26251   no:yes:* )
26252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26264     ( cat <<\_ASBOX
26265 ## --------------------------------------------- ##
26266 ## Report this to <http://www.openldap.org/its/> ##
26267 ## --------------------------------------------- ##
26268 _ASBOX
26269      ) | sed "s/^/$as_me: WARNING:     /" >&2
26270     ;;
26271 esac
26272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277   eval "$as_ac_Header=\$ac_header_preproc"
26278 fi
26279 ac_res=`eval echo '${'$as_ac_Header'}'`
26280                { echo "$as_me:$LINENO: result: $ac_res" >&5
26281 echo "${ECHO_T}$ac_res" >&6; }
26282
26283 fi
26284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26285   cat >>confdefs.h <<_ACEOF
26286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26287 _ACEOF
26288
26289 fi
26290
26291 done
26292
26293         if test $ac_cv_header_thread_h = yes &&
26294            test $ac_cv_header_synch_h = yes ; then
26295                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26296 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26297 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300   ac_check_lib_save_LIBS=$LIBS
26301 LIBS="-lthread  $LIBS"
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308
26309 /* Override any GCC internal prototype to avoid an error.
26310    Use char because int might match the return type of a GCC
26311    builtin and then its argument prototype would still apply.  */
26312 #ifdef __cplusplus
26313 extern "C"
26314 #endif
26315 char thr_create ();
26316 int
26317 main ()
26318 {
26319 return thr_create ();
26320   ;
26321   return 0;
26322 }
26323 _ACEOF
26324 rm -f conftest.$ac_objext conftest$ac_exeext
26325 if { (ac_try="$ac_link"
26326 case "(($ac_try" in
26327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328   *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331   (eval "$ac_link") 2>conftest.er1
26332   ac_status=$?
26333   grep -v '^ *+' conftest.er1 >conftest.err
26334   rm -f conftest.er1
26335   cat conftest.err >&5
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); } && {
26338          test -z "$ac_c_werror_flag" ||
26339          test ! -s conftest.err
26340        } && test -s conftest$ac_exeext &&
26341        $as_test_x conftest$ac_exeext; then
26342   ac_cv_lib_thread_thr_create=yes
26343 else
26344   echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347         ac_cv_lib_thread_thr_create=no
26348 fi
26349
26350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26351       conftest$ac_exeext conftest.$ac_ext
26352 LIBS=$ac_check_lib_save_LIBS
26353 fi
26354 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26355 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26356 if test $ac_cv_lib_thread_thr_create = yes; then
26357   have_thr=yes
26358 else
26359   have_thr=no
26360 fi
26361
26362
26363                 if test $have_thr = yes ; then
26364
26365 cat >>confdefs.h <<\_ACEOF
26366 #define HAVE_THR 1
26367 _ACEOF
26368
26369                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26370                         ol_link_threads=thr
26371
26372                         if test $ol_with_yielding_select = auto ; then
26373                                 ol_with_yielding_select=yes
26374                         fi
26375
26376
26377
26378 for ac_func in \
26379                                 thr_setconcurrency \
26380                                 thr_getconcurrency \
26381
26382 do
26383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26387   echo $ECHO_N "(cached) $ECHO_C" >&6
26388 else
26389   cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h.  */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h.  */
26395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26397 #define $ac_func innocuous_$ac_func
26398
26399 /* System header to define __stub macros and hopefully few prototypes,
26400     which can conflict with char $ac_func (); below.
26401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26402     <limits.h> exists even on freestanding compilers.  */
26403
26404 #ifdef __STDC__
26405 # include <limits.h>
26406 #else
26407 # include <assert.h>
26408 #endif
26409
26410 #undef $ac_func
26411
26412 /* Override any GCC internal prototype to avoid an error.
26413    Use char because int might match the return type of a GCC
26414    builtin and then its argument prototype would still apply.  */
26415 #ifdef __cplusplus
26416 extern "C"
26417 #endif
26418 char $ac_func ();
26419 /* The GNU C library defines this for functions which it implements
26420     to always fail with ENOSYS.  Some functions are actually named
26421     something starting with __ and the normal name is an alias.  */
26422 #if defined __stub_$ac_func || defined __stub___$ac_func
26423 choke me
26424 #endif
26425
26426 int
26427 main ()
26428 {
26429 return $ac_func ();
26430   ;
26431   return 0;
26432 }
26433 _ACEOF
26434 rm -f conftest.$ac_objext conftest$ac_exeext
26435 if { (ac_try="$ac_link"
26436 case "(($ac_try" in
26437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438   *) ac_try_echo=$ac_try;;
26439 esac
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441   (eval "$ac_link") 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } && {
26448          test -z "$ac_c_werror_flag" ||
26449          test ! -s conftest.err
26450        } && test -s conftest$ac_exeext &&
26451        $as_test_x conftest$ac_exeext; then
26452   eval "$as_ac_var=yes"
26453 else
26454   echo "$as_me: failed program was:" >&5
26455 sed 's/^/| /' conftest.$ac_ext >&5
26456
26457         eval "$as_ac_var=no"
26458 fi
26459
26460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26461       conftest$ac_exeext conftest.$ac_ext
26462 fi
26463 ac_res=`eval echo '${'$as_ac_var'}'`
26464                { echo "$as_me:$LINENO: result: $ac_res" >&5
26465 echo "${ECHO_T}$ac_res" >&6; }
26466 if test `eval echo '${'$as_ac_var'}'` = yes; then
26467   cat >>confdefs.h <<_ACEOF
26468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26469 _ACEOF
26470
26471 fi
26472 done
26473
26474                 fi
26475         fi
26476
26477
26478 for ac_header in lwp/lwp.h
26479 do
26480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26482   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26485   echo $ECHO_N "(cached) $ECHO_C" >&6
26486 fi
26487 ac_res=`eval echo '${'$as_ac_Header'}'`
26488                { echo "$as_me:$LINENO: result: $ac_res" >&5
26489 echo "${ECHO_T}$ac_res" >&6; }
26490 else
26491   # Is the header compilable?
26492 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26494 cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h.  */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h.  */
26500 $ac_includes_default
26501 #include <$ac_header>
26502 _ACEOF
26503 rm -f conftest.$ac_objext
26504 if { (ac_try="$ac_compile"
26505 case "(($ac_try" in
26506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26507   *) ac_try_echo=$ac_try;;
26508 esac
26509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26510   (eval "$ac_compile") 2>conftest.er1
26511   ac_status=$?
26512   grep -v '^ *+' conftest.er1 >conftest.err
26513   rm -f conftest.er1
26514   cat conftest.err >&5
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); } && {
26517          test -z "$ac_c_werror_flag" ||
26518          test ! -s conftest.err
26519        } && test -s conftest.$ac_objext; then
26520   ac_header_compiler=yes
26521 else
26522   echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525         ac_header_compiler=no
26526 fi
26527
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26530 echo "${ECHO_T}$ac_header_compiler" >&6; }
26531
26532 # Is the header present?
26533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26535 cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 #include <$ac_header>
26542 _ACEOF
26543 if { (ac_try="$ac_cpp conftest.$ac_ext"
26544 case "(($ac_try" in
26545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546   *) ac_try_echo=$ac_try;;
26547 esac
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26550   ac_status=$?
26551   grep -v '^ *+' conftest.er1 >conftest.err
26552   rm -f conftest.er1
26553   cat conftest.err >&5
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); } >/dev/null && {
26556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26557          test ! -s conftest.err
26558        }; then
26559   ac_header_preproc=yes
26560 else
26561   echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564   ac_header_preproc=no
26565 fi
26566
26567 rm -f conftest.err conftest.$ac_ext
26568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26569 echo "${ECHO_T}$ac_header_preproc" >&6; }
26570
26571 # So?  What about this header?
26572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26573   yes:no: )
26574     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26578     ac_header_preproc=yes
26579     ;;
26580   no:yes:* )
26581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26583     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26584 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26585     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26587     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26588 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26591     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26593     ( cat <<\_ASBOX
26594 ## --------------------------------------------- ##
26595 ## Report this to <http://www.openldap.org/its/> ##
26596 ## --------------------------------------------- ##
26597 _ASBOX
26598      ) | sed "s/^/$as_me: WARNING:     /" >&2
26599     ;;
26600 esac
26601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26604   echo $ECHO_N "(cached) $ECHO_C" >&6
26605 else
26606   eval "$as_ac_Header=\$ac_header_preproc"
26607 fi
26608 ac_res=`eval echo '${'$as_ac_Header'}'`
26609                { echo "$as_me:$LINENO: result: $ac_res" >&5
26610 echo "${ECHO_T}$ac_res" >&6; }
26611
26612 fi
26613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26614   cat >>confdefs.h <<_ACEOF
26615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26616 _ACEOF
26617
26618 fi
26619
26620 done
26621
26622         if test $ac_cv_header_lwp_lwp_h = yes ; then
26623                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26624 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26625 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26626   echo $ECHO_N "(cached) $ECHO_C" >&6
26627 else
26628   ac_check_lib_save_LIBS=$LIBS
26629 LIBS="-llwp  $LIBS"
26630 cat >conftest.$ac_ext <<_ACEOF
26631 /* confdefs.h.  */
26632 _ACEOF
26633 cat confdefs.h >>conftest.$ac_ext
26634 cat >>conftest.$ac_ext <<_ACEOF
26635 /* end confdefs.h.  */
26636
26637 /* Override any GCC internal prototype to avoid an error.
26638    Use char because int might match the return type of a GCC
26639    builtin and then its argument prototype would still apply.  */
26640 #ifdef __cplusplus
26641 extern "C"
26642 #endif
26643 char lwp_create ();
26644 int
26645 main ()
26646 {
26647 return lwp_create ();
26648   ;
26649   return 0;
26650 }
26651 _ACEOF
26652 rm -f conftest.$ac_objext conftest$ac_exeext
26653 if { (ac_try="$ac_link"
26654 case "(($ac_try" in
26655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26656   *) ac_try_echo=$ac_try;;
26657 esac
26658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26659   (eval "$ac_link") 2>conftest.er1
26660   ac_status=$?
26661   grep -v '^ *+' conftest.er1 >conftest.err
26662   rm -f conftest.er1
26663   cat conftest.err >&5
26664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665   (exit $ac_status); } && {
26666          test -z "$ac_c_werror_flag" ||
26667          test ! -s conftest.err
26668        } && test -s conftest$ac_exeext &&
26669        $as_test_x conftest$ac_exeext; then
26670   ac_cv_lib_lwp_lwp_create=yes
26671 else
26672   echo "$as_me: failed program was:" >&5
26673 sed 's/^/| /' conftest.$ac_ext >&5
26674
26675         ac_cv_lib_lwp_lwp_create=no
26676 fi
26677
26678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26679       conftest$ac_exeext conftest.$ac_ext
26680 LIBS=$ac_check_lib_save_LIBS
26681 fi
26682 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26683 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26684 if test $ac_cv_lib_lwp_lwp_create = yes; then
26685   have_lwp=yes
26686 else
26687   have_lwp=no
26688 fi
26689
26690
26691                 if test $have_lwp = yes ; then
26692
26693 cat >>confdefs.h <<\_ACEOF
26694 #define HAVE_LWP 1
26695 _ACEOF
26696
26697                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26698                         ol_link_threads=lwp
26699
26700                         if test $ol_with_yielding_select = auto ; then
26701                                 ol_with_yielding_select=no
26702                         fi
26703                 fi
26704         fi
26705         ;;
26706 esac
26707
26708 if test $ol_with_yielding_select = yes ; then
26709
26710 cat >>confdefs.h <<\_ACEOF
26711 #define HAVE_YIELDING_SELECT 1
26712 _ACEOF
26713
26714 fi
26715
26716 if test $ol_with_threads = manual ; then
26717                 ol_link_threads=yes
26718
26719         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26720 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26721
26722
26723
26724 for ac_header in pthread.h sched.h
26725 do
26726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26728   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26731   echo $ECHO_N "(cached) $ECHO_C" >&6
26732 fi
26733 ac_res=`eval echo '${'$as_ac_Header'}'`
26734                { echo "$as_me:$LINENO: result: $ac_res" >&5
26735 echo "${ECHO_T}$ac_res" >&6; }
26736 else
26737   # Is the header compilable?
26738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26740 cat >conftest.$ac_ext <<_ACEOF
26741 /* confdefs.h.  */
26742 _ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h.  */
26746 $ac_includes_default
26747 #include <$ac_header>
26748 _ACEOF
26749 rm -f conftest.$ac_objext
26750 if { (ac_try="$ac_compile"
26751 case "(($ac_try" in
26752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26753   *) ac_try_echo=$ac_try;;
26754 esac
26755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26756   (eval "$ac_compile") 2>conftest.er1
26757   ac_status=$?
26758   grep -v '^ *+' conftest.er1 >conftest.err
26759   rm -f conftest.er1
26760   cat conftest.err >&5
26761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); } && {
26763          test -z "$ac_c_werror_flag" ||
26764          test ! -s conftest.err
26765        } && test -s conftest.$ac_objext; then
26766   ac_header_compiler=yes
26767 else
26768   echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26770
26771         ac_header_compiler=no
26772 fi
26773
26774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26776 echo "${ECHO_T}$ac_header_compiler" >&6; }
26777
26778 # Is the header present?
26779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26781 cat >conftest.$ac_ext <<_ACEOF
26782 /* confdefs.h.  */
26783 _ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h.  */
26787 #include <$ac_header>
26788 _ACEOF
26789 if { (ac_try="$ac_cpp conftest.$ac_ext"
26790 case "(($ac_try" in
26791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792   *) ac_try_echo=$ac_try;;
26793 esac
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26796   ac_status=$?
26797   grep -v '^ *+' conftest.er1 >conftest.err
26798   rm -f conftest.er1
26799   cat conftest.err >&5
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); } >/dev/null && {
26802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26803          test ! -s conftest.err
26804        }; then
26805   ac_header_preproc=yes
26806 else
26807   echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26809
26810   ac_header_preproc=no
26811 fi
26812
26813 rm -f conftest.err conftest.$ac_ext
26814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26815 echo "${ECHO_T}$ac_header_preproc" >&6; }
26816
26817 # So?  What about this header?
26818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26819   yes:no: )
26820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26824     ac_header_preproc=yes
26825     ;;
26826   no:yes:* )
26827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26839     ( cat <<\_ASBOX
26840 ## --------------------------------------------- ##
26841 ## Report this to <http://www.openldap.org/its/> ##
26842 ## --------------------------------------------- ##
26843 _ASBOX
26844      ) | sed "s/^/$as_me: WARNING:     /" >&2
26845     ;;
26846 esac
26847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26850   echo $ECHO_N "(cached) $ECHO_C" >&6
26851 else
26852   eval "$as_ac_Header=\$ac_header_preproc"
26853 fi
26854 ac_res=`eval echo '${'$as_ac_Header'}'`
26855                { echo "$as_me:$LINENO: result: $ac_res" >&5
26856 echo "${ECHO_T}$ac_res" >&6; }
26857
26858 fi
26859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26860   cat >>confdefs.h <<_ACEOF
26861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26862 _ACEOF
26863
26864 fi
26865
26866 done
26867
26868
26869
26870 for ac_func in sched_yield pthread_yield
26871 do
26872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26876   echo $ECHO_N "(cached) $ECHO_C" >&6
26877 else
26878   cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h.  */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h.  */
26884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26886 #define $ac_func innocuous_$ac_func
26887
26888 /* System header to define __stub macros and hopefully few prototypes,
26889     which can conflict with char $ac_func (); below.
26890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26891     <limits.h> exists even on freestanding compilers.  */
26892
26893 #ifdef __STDC__
26894 # include <limits.h>
26895 #else
26896 # include <assert.h>
26897 #endif
26898
26899 #undef $ac_func
26900
26901 /* Override any GCC internal prototype to avoid an error.
26902    Use char because int might match the return type of a GCC
26903    builtin and then its argument prototype would still apply.  */
26904 #ifdef __cplusplus
26905 extern "C"
26906 #endif
26907 char $ac_func ();
26908 /* The GNU C library defines this for functions which it implements
26909     to always fail with ENOSYS.  Some functions are actually named
26910     something starting with __ and the normal name is an alias.  */
26911 #if defined __stub_$ac_func || defined __stub___$ac_func
26912 choke me
26913 #endif
26914
26915 int
26916 main ()
26917 {
26918 return $ac_func ();
26919   ;
26920   return 0;
26921 }
26922 _ACEOF
26923 rm -f conftest.$ac_objext conftest$ac_exeext
26924 if { (ac_try="$ac_link"
26925 case "(($ac_try" in
26926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927   *) ac_try_echo=$ac_try;;
26928 esac
26929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26930   (eval "$ac_link") 2>conftest.er1
26931   ac_status=$?
26932   grep -v '^ *+' conftest.er1 >conftest.err
26933   rm -f conftest.er1
26934   cat conftest.err >&5
26935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936   (exit $ac_status); } && {
26937          test -z "$ac_c_werror_flag" ||
26938          test ! -s conftest.err
26939        } && test -s conftest$ac_exeext &&
26940        $as_test_x conftest$ac_exeext; then
26941   eval "$as_ac_var=yes"
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946         eval "$as_ac_var=no"
26947 fi
26948
26949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26950       conftest$ac_exeext conftest.$ac_ext
26951 fi
26952 ac_res=`eval echo '${'$as_ac_var'}'`
26953                { echo "$as_me:$LINENO: result: $ac_res" >&5
26954 echo "${ECHO_T}$ac_res" >&6; }
26955 if test `eval echo '${'$as_ac_var'}'` = yes; then
26956   cat >>confdefs.h <<_ACEOF
26957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26958 _ACEOF
26959
26960 fi
26961 done
26962
26963
26964         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26965 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26966 if test "${ol_cv_header_linux_threads+set}" = set; then
26967   echo $ECHO_N "(cached) $ECHO_C" >&6
26968 else
26969   cat >conftest.$ac_ext <<_ACEOF
26970 /* confdefs.h.  */
26971 _ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h.  */
26975 #include <pthread.h>
26976 _ACEOF
26977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26978   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26979   ol_cv_header_linux_threads=yes
26980 else
26981   ol_cv_header_linux_threads=no
26982 fi
26983 rm -f conftest*
26984
26985
26986 fi
26987 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26988 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26989         if test $ol_cv_header_linux_threads = yes; then
26990
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE_LINUX_THREADS 1
26993 _ACEOF
26994
26995         fi
26996
26997
26998
26999 for ac_header in mach/cthreads.h
27000 do
27001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27003   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27006   echo $ECHO_N "(cached) $ECHO_C" >&6
27007 fi
27008 ac_res=`eval echo '${'$as_ac_Header'}'`
27009                { echo "$as_me:$LINENO: result: $ac_res" >&5
27010 echo "${ECHO_T}$ac_res" >&6; }
27011 else
27012   # Is the header compilable?
27013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27015 cat >conftest.$ac_ext <<_ACEOF
27016 /* confdefs.h.  */
27017 _ACEOF
27018 cat confdefs.h >>conftest.$ac_ext
27019 cat >>conftest.$ac_ext <<_ACEOF
27020 /* end confdefs.h.  */
27021 $ac_includes_default
27022 #include <$ac_header>
27023 _ACEOF
27024 rm -f conftest.$ac_objext
27025 if { (ac_try="$ac_compile"
27026 case "(($ac_try" in
27027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028   *) ac_try_echo=$ac_try;;
27029 esac
27030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27031   (eval "$ac_compile") 2>conftest.er1
27032   ac_status=$?
27033   grep -v '^ *+' conftest.er1 >conftest.err
27034   rm -f conftest.er1
27035   cat conftest.err >&5
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); } && {
27038          test -z "$ac_c_werror_flag" ||
27039          test ! -s conftest.err
27040        } && test -s conftest.$ac_objext; then
27041   ac_header_compiler=yes
27042 else
27043   echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27045
27046         ac_header_compiler=no
27047 fi
27048
27049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27051 echo "${ECHO_T}$ac_header_compiler" >&6; }
27052
27053 # Is the header present?
27054 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27056 cat >conftest.$ac_ext <<_ACEOF
27057 /* confdefs.h.  */
27058 _ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h.  */
27062 #include <$ac_header>
27063 _ACEOF
27064 if { (ac_try="$ac_cpp conftest.$ac_ext"
27065 case "(($ac_try" in
27066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067   *) ac_try_echo=$ac_try;;
27068 esac
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27071   ac_status=$?
27072   grep -v '^ *+' conftest.er1 >conftest.err
27073   rm -f conftest.er1
27074   cat conftest.err >&5
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); } >/dev/null && {
27077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27078          test ! -s conftest.err
27079        }; then
27080   ac_header_preproc=yes
27081 else
27082   echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085   ac_header_preproc=no
27086 fi
27087
27088 rm -f conftest.err conftest.$ac_ext
27089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27090 echo "${ECHO_T}$ac_header_preproc" >&6; }
27091
27092 # So?  What about this header?
27093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27094   yes:no: )
27095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27099     ac_header_preproc=yes
27100     ;;
27101   no:yes:* )
27102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27114     ( cat <<\_ASBOX
27115 ## --------------------------------------------- ##
27116 ## Report this to <http://www.openldap.org/its/> ##
27117 ## --------------------------------------------- ##
27118 _ASBOX
27119      ) | sed "s/^/$as_me: WARNING:     /" >&2
27120     ;;
27121 esac
27122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27125   echo $ECHO_N "(cached) $ECHO_C" >&6
27126 else
27127   eval "$as_ac_Header=\$ac_header_preproc"
27128 fi
27129 ac_res=`eval echo '${'$as_ac_Header'}'`
27130                { echo "$as_me:$LINENO: result: $ac_res" >&5
27131 echo "${ECHO_T}$ac_res" >&6; }
27132
27133 fi
27134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27135   cat >>confdefs.h <<_ACEOF
27136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27137 _ACEOF
27138
27139 fi
27140
27141 done
27142
27143
27144 for ac_header in lwp/lwp.h
27145 do
27146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27148   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 fi
27153 ac_res=`eval echo '${'$as_ac_Header'}'`
27154                { echo "$as_me:$LINENO: result: $ac_res" >&5
27155 echo "${ECHO_T}$ac_res" >&6; }
27156 else
27157   # Is the header compilable?
27158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27160 cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h.  */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h.  */
27166 $ac_includes_default
27167 #include <$ac_header>
27168 _ACEOF
27169 rm -f conftest.$ac_objext
27170 if { (ac_try="$ac_compile"
27171 case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176   (eval "$ac_compile") 2>conftest.er1
27177   ac_status=$?
27178   grep -v '^ *+' conftest.er1 >conftest.err
27179   rm -f conftest.er1
27180   cat conftest.err >&5
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); } && {
27183          test -z "$ac_c_werror_flag" ||
27184          test ! -s conftest.err
27185        } && test -s conftest.$ac_objext; then
27186   ac_header_compiler=yes
27187 else
27188   echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27190
27191         ac_header_compiler=no
27192 fi
27193
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27196 echo "${ECHO_T}$ac_header_compiler" >&6; }
27197
27198 # Is the header present?
27199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27201 cat >conftest.$ac_ext <<_ACEOF
27202 /* confdefs.h.  */
27203 _ACEOF
27204 cat confdefs.h >>conftest.$ac_ext
27205 cat >>conftest.$ac_ext <<_ACEOF
27206 /* end confdefs.h.  */
27207 #include <$ac_header>
27208 _ACEOF
27209 if { (ac_try="$ac_cpp conftest.$ac_ext"
27210 case "(($ac_try" in
27211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27212   *) ac_try_echo=$ac_try;;
27213 esac
27214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27216   ac_status=$?
27217   grep -v '^ *+' conftest.er1 >conftest.err
27218   rm -f conftest.er1
27219   cat conftest.err >&5
27220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221   (exit $ac_status); } >/dev/null && {
27222          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27223          test ! -s conftest.err
27224        }; then
27225   ac_header_preproc=yes
27226 else
27227   echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27229
27230   ac_header_preproc=no
27231 fi
27232
27233 rm -f conftest.err conftest.$ac_ext
27234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27235 echo "${ECHO_T}$ac_header_preproc" >&6; }
27236
27237 # So?  What about this header?
27238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27239   yes:no: )
27240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27244     ac_header_preproc=yes
27245     ;;
27246   no:yes:* )
27247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27259     ( cat <<\_ASBOX
27260 ## --------------------------------------------- ##
27261 ## Report this to <http://www.openldap.org/its/> ##
27262 ## --------------------------------------------- ##
27263 _ASBOX
27264      ) | sed "s/^/$as_me: WARNING:     /" >&2
27265     ;;
27266 esac
27267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27270   echo $ECHO_N "(cached) $ECHO_C" >&6
27271 else
27272   eval "$as_ac_Header=\$ac_header_preproc"
27273 fi
27274 ac_res=`eval echo '${'$as_ac_Header'}'`
27275                { echo "$as_me:$LINENO: result: $ac_res" >&5
27276 echo "${ECHO_T}$ac_res" >&6; }
27277
27278 fi
27279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27280   cat >>confdefs.h <<_ACEOF
27281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27282 _ACEOF
27283
27284 fi
27285
27286 done
27287
27288
27289
27290 for ac_header in thread.h synch.h
27291 do
27292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27294   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27297   echo $ECHO_N "(cached) $ECHO_C" >&6
27298 fi
27299 ac_res=`eval echo '${'$as_ac_Header'}'`
27300                { echo "$as_me:$LINENO: result: $ac_res" >&5
27301 echo "${ECHO_T}$ac_res" >&6; }
27302 else
27303   # Is the header compilable?
27304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27306 cat >conftest.$ac_ext <<_ACEOF
27307 /* confdefs.h.  */
27308 _ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h.  */
27312 $ac_includes_default
27313 #include <$ac_header>
27314 _ACEOF
27315 rm -f conftest.$ac_objext
27316 if { (ac_try="$ac_compile"
27317 case "(($ac_try" in
27318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319   *) ac_try_echo=$ac_try;;
27320 esac
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322   (eval "$ac_compile") 2>conftest.er1
27323   ac_status=$?
27324   grep -v '^ *+' conftest.er1 >conftest.err
27325   rm -f conftest.er1
27326   cat conftest.err >&5
27327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328   (exit $ac_status); } && {
27329          test -z "$ac_c_werror_flag" ||
27330          test ! -s conftest.err
27331        } && test -s conftest.$ac_objext; then
27332   ac_header_compiler=yes
27333 else
27334   echo "$as_me: failed program was:" >&5
27335 sed 's/^/| /' conftest.$ac_ext >&5
27336
27337         ac_header_compiler=no
27338 fi
27339
27340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27342 echo "${ECHO_T}$ac_header_compiler" >&6; }
27343
27344 # Is the header present?
27345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27347 cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h.  */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h.  */
27353 #include <$ac_header>
27354 _ACEOF
27355 if { (ac_try="$ac_cpp conftest.$ac_ext"
27356 case "(($ac_try" in
27357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358   *) ac_try_echo=$ac_try;;
27359 esac
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27362   ac_status=$?
27363   grep -v '^ *+' conftest.er1 >conftest.err
27364   rm -f conftest.er1
27365   cat conftest.err >&5
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); } >/dev/null && {
27368          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27369          test ! -s conftest.err
27370        }; then
27371   ac_header_preproc=yes
27372 else
27373   echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376   ac_header_preproc=no
27377 fi
27378
27379 rm -f conftest.err conftest.$ac_ext
27380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27381 echo "${ECHO_T}$ac_header_preproc" >&6; }
27382
27383 # So?  What about this header?
27384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27385   yes:no: )
27386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27390     ac_header_preproc=yes
27391     ;;
27392   no:yes:* )
27393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27405     ( cat <<\_ASBOX
27406 ## --------------------------------------------- ##
27407 ## Report this to <http://www.openldap.org/its/> ##
27408 ## --------------------------------------------- ##
27409 _ASBOX
27410      ) | sed "s/^/$as_me: WARNING:     /" >&2
27411     ;;
27412 esac
27413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27416   echo $ECHO_N "(cached) $ECHO_C" >&6
27417 else
27418   eval "$as_ac_Header=\$ac_header_preproc"
27419 fi
27420 ac_res=`eval echo '${'$as_ac_Header'}'`
27421                { echo "$as_me:$LINENO: result: $ac_res" >&5
27422 echo "${ECHO_T}$ac_res" >&6; }
27423
27424 fi
27425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27426   cat >>confdefs.h <<_ACEOF
27427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27428 _ACEOF
27429
27430 fi
27431
27432 done
27433
27434 fi
27435
27436 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27437                         cat >>confdefs.h <<\_ACEOF
27438 #define REENTRANT 1
27439 _ACEOF
27440
27441         cat >>confdefs.h <<\_ACEOF
27442 #define _REENTRANT 1
27443 _ACEOF
27444
27445         cat >>confdefs.h <<\_ACEOF
27446 #define THREAD_SAFE 1
27447 _ACEOF
27448
27449         cat >>confdefs.h <<\_ACEOF
27450 #define _THREAD_SAFE 1
27451 _ACEOF
27452
27453         cat >>confdefs.h <<\_ACEOF
27454 #define THREADSAFE 1
27455 _ACEOF
27456
27457         cat >>confdefs.h <<\_ACEOF
27458 #define _THREADSAFE 1
27459 _ACEOF
27460
27461         cat >>confdefs.h <<\_ACEOF
27462 #define _SGI_MP_SOURCE 1
27463 _ACEOF
27464
27465
27466                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27467 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27468 if test "${ol_cv_errno_thread_specific+set}" = set; then
27469   echo $ECHO_N "(cached) $ECHO_C" >&6
27470 else
27471
27472                 cat >conftest.$ac_ext <<_ACEOF
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 #include <errno.h>
27479 int
27480 main ()
27481 {
27482 errno = 0;
27483   ;
27484   return 0;
27485 }
27486 _ACEOF
27487 rm -f conftest.$ac_objext conftest$ac_exeext
27488 if { (ac_try="$ac_link"
27489 case "(($ac_try" in
27490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491   *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494   (eval "$ac_link") 2>conftest.er1
27495   ac_status=$?
27496   grep -v '^ *+' conftest.er1 >conftest.err
27497   rm -f conftest.er1
27498   cat conftest.err >&5
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); } && {
27501          test -z "$ac_c_werror_flag" ||
27502          test ! -s conftest.err
27503        } && test -s conftest$ac_exeext &&
27504        $as_test_x conftest$ac_exeext; then
27505   ol_cv_errno_thread_specific=yes
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510         ol_cv_errno_thread_specific=no
27511 fi
27512
27513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27514       conftest$ac_exeext conftest.$ac_ext
27515
27516 fi
27517 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27518 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27519
27520                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27521 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27522 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27523   echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525
27526                 cat >conftest.$ac_ext <<_ACEOF
27527 /* confdefs.h.  */
27528 _ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h.  */
27532 #include <netdb.h>
27533 int
27534 main ()
27535 {
27536 h_errno = 0;
27537   ;
27538   return 0;
27539 }
27540 _ACEOF
27541 rm -f conftest.$ac_objext conftest$ac_exeext
27542 if { (ac_try="$ac_link"
27543 case "(($ac_try" in
27544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545   *) ac_try_echo=$ac_try;;
27546 esac
27547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27548   (eval "$ac_link") 2>conftest.er1
27549   ac_status=$?
27550   grep -v '^ *+' conftest.er1 >conftest.err
27551   rm -f conftest.er1
27552   cat conftest.err >&5
27553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); } && {
27555          test -z "$ac_c_werror_flag" ||
27556          test ! -s conftest.err
27557        } && test -s conftest$ac_exeext &&
27558        $as_test_x conftest$ac_exeext; then
27559   ol_cv_h_errno_thread_specific=yes
27560 else
27561   echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564         ol_cv_h_errno_thread_specific=no
27565 fi
27566
27567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27568       conftest$ac_exeext conftest.$ac_ext
27569
27570 fi
27571 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27572 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27573
27574         if test $ol_cv_errno_thread_specific != yes ||
27575            test $ol_cv_h_errno_thread_specific != yes ; then
27576                 LIBS="$LTHREAD_LIBS $LIBS"
27577                 LTHREAD_LIBS=""
27578         fi
27579
27580 fi
27581
27582 if test $ol_link_threads = no ; then
27583         if test $ol_with_threads = yes ; then
27584                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27585 echo "$as_me: error: no suitable thread support" >&2;}
27586    { (exit 1); exit 1; }; }
27587         fi
27588
27589         if test $ol_with_threads = auto ; then
27590                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27591 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27592                 ol_with_threads=no
27593         fi
27594
27595
27596 cat >>confdefs.h <<\_ACEOF
27597 #define NO_THREADS 1
27598 _ACEOF
27599
27600         LTHREAD_LIBS=""
27601         BUILD_THREAD=no
27602 else
27603         BUILD_THREAD=yes
27604 fi
27605
27606 if test $ol_link_threads != no ; then
27607
27608 cat >>confdefs.h <<\_ACEOF
27609 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27610 _ACEOF
27611
27612 fi
27613
27614
27615
27616
27617 for ac_func in \
27618         ctime_r                 \
27619         gethostbyname_r gethostbyaddr_r \
27620
27621 do
27622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27626   echo $ECHO_N "(cached) $ECHO_C" >&6
27627 else
27628   cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h.  */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h.  */
27634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27636 #define $ac_func innocuous_$ac_func
27637
27638 /* System header to define __stub macros and hopefully few prototypes,
27639     which can conflict with char $ac_func (); below.
27640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27641     <limits.h> exists even on freestanding compilers.  */
27642
27643 #ifdef __STDC__
27644 # include <limits.h>
27645 #else
27646 # include <assert.h>
27647 #endif
27648
27649 #undef $ac_func
27650
27651 /* Override any GCC internal prototype to avoid an error.
27652    Use char because int might match the return type of a GCC
27653    builtin and then its argument prototype would still apply.  */
27654 #ifdef __cplusplus
27655 extern "C"
27656 #endif
27657 char $ac_func ();
27658 /* The GNU C library defines this for functions which it implements
27659     to always fail with ENOSYS.  Some functions are actually named
27660     something starting with __ and the normal name is an alias.  */
27661 #if defined __stub_$ac_func || defined __stub___$ac_func
27662 choke me
27663 #endif
27664
27665 int
27666 main ()
27667 {
27668 return $ac_func ();
27669   ;
27670   return 0;
27671 }
27672 _ACEOF
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680   (eval "$ac_link") 2>conftest.er1
27681   ac_status=$?
27682   grep -v '^ *+' conftest.er1 >conftest.err
27683   rm -f conftest.er1
27684   cat conftest.err >&5
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); } && {
27687          test -z "$ac_c_werror_flag" ||
27688          test ! -s conftest.err
27689        } && test -s conftest$ac_exeext &&
27690        $as_test_x conftest$ac_exeext; then
27691   eval "$as_ac_var=yes"
27692 else
27693   echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27695
27696         eval "$as_ac_var=no"
27697 fi
27698
27699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27700       conftest$ac_exeext conftest.$ac_ext
27701 fi
27702 ac_res=`eval echo '${'$as_ac_var'}'`
27703                { echo "$as_me:$LINENO: result: $ac_res" >&5
27704 echo "${ECHO_T}$ac_res" >&6; }
27705 if test `eval echo '${'$as_ac_var'}'` = yes; then
27706   cat >>confdefs.h <<_ACEOF
27707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27708 _ACEOF
27709
27710 fi
27711 done
27712
27713
27714 if test "$ac_cv_func_ctime_r" = no ; then
27715         ol_cv_func_ctime_r_nargs=0
27716 else
27717         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27718 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27719 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27720   echo $ECHO_N "(cached) $ECHO_C" >&6
27721 else
27722   cat >conftest.$ac_ext <<_ACEOF
27723 /* confdefs.h.  */
27724 _ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h.  */
27728 #include <time.h>
27729 int
27730 main ()
27731 {
27732 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741   *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744   (eval "$ac_compile") 2>conftest.er1
27745   ac_status=$?
27746   grep -v '^ *+' conftest.er1 >conftest.err
27747   rm -f conftest.er1
27748   cat conftest.err >&5
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } && {
27751          test -z "$ac_c_werror_flag" ||
27752          test ! -s conftest.err
27753        } && test -s conftest.$ac_objext; then
27754   ol_cv_func_ctime_r_nargs3=yes
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759         ol_cv_func_ctime_r_nargs3=no
27760 fi
27761
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763
27764         cat >conftest.$ac_ext <<_ACEOF
27765 /* confdefs.h.  */
27766 _ACEOF
27767 cat confdefs.h >>conftest.$ac_ext
27768 cat >>conftest.$ac_ext <<_ACEOF
27769 /* end confdefs.h.  */
27770 #include <time.h>
27771 int
27772 main ()
27773 {
27774 time_t ti; char *buffer; ctime_r(&ti,buffer);
27775   ;
27776   return 0;
27777 }
27778 _ACEOF
27779 rm -f conftest.$ac_objext
27780 if { (ac_try="$ac_compile"
27781 case "(($ac_try" in
27782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27783   *) ac_try_echo=$ac_try;;
27784 esac
27785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27786   (eval "$ac_compile") 2>conftest.er1
27787   ac_status=$?
27788   grep -v '^ *+' conftest.er1 >conftest.err
27789   rm -f conftest.er1
27790   cat conftest.err >&5
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); } && {
27793          test -z "$ac_c_werror_flag" ||
27794          test ! -s conftest.err
27795        } && test -s conftest.$ac_objext; then
27796   ol_cv_func_ctime_r_nargs2=yes
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801         ol_cv_func_ctime_r_nargs2=no
27802 fi
27803
27804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27805
27806         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27807            test $ol_cv_func_ctime_r_nargs2 = no ; then
27808
27809                 ol_cv_func_ctime_r_nargs=3
27810
27811         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27812              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27813
27814                 ol_cv_func_ctime_r_nargs=2
27815
27816         else
27817                 ol_cv_func_ctime_r_nargs=0
27818         fi
27819
27820 fi
27821 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27822 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27823
27824   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27825
27826 cat >>confdefs.h <<_ACEOF
27827 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27828 _ACEOF
27829
27830   fi
27831
27832 fi
27833
27834 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27835         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27836 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27837 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27838   echo $ECHO_N "(cached) $ECHO_C" >&6
27839 else
27840   cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846 #include <sys/types.h>
27847 #include <sys/socket.h>
27848 #include <netinet/in.h>
27849 #include <netdb.h>
27850 #define BUFSIZE (sizeof(struct hostent)+10)
27851 int
27852 main ()
27853 {
27854 struct hostent hent; char buffer[BUFSIZE];
27855                 int bufsize=BUFSIZE;int h_errno;
27856                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27857                         buffer, bufsize, &h_errno);
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866   *) ac_try_echo=$ac_try;;
27867 esac
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869   (eval "$ac_compile") 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } && {
27876          test -z "$ac_c_werror_flag" ||
27877          test ! -s conftest.err
27878        } && test -s conftest.$ac_objext; then
27879   ol_cv_func_gethostbyname_r_nargs5=yes
27880 else
27881   echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27883
27884         ol_cv_func_gethostbyname_r_nargs5=no
27885 fi
27886
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888
27889         cat >conftest.$ac_ext <<_ACEOF
27890 /* confdefs.h.  */
27891 _ACEOF
27892 cat confdefs.h >>conftest.$ac_ext
27893 cat >>conftest.$ac_ext <<_ACEOF
27894 /* end confdefs.h.  */
27895 #include <sys/types.h>
27896 #include <sys/socket.h>
27897 #include <netinet/in.h>
27898 #include <netdb.h>
27899 #define BUFSIZE (sizeof(struct hostent)+10)
27900 int
27901 main ()
27902 {
27903 struct hostent hent;struct hostent *rhent;
27904                 char buffer[BUFSIZE];
27905                 int bufsize=BUFSIZE;int h_errno;
27906                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27907                         &rhent, &h_errno);
27908   ;
27909   return 0;
27910 }
27911 _ACEOF
27912 rm -f conftest.$ac_objext
27913 if { (ac_try="$ac_compile"
27914 case "(($ac_try" in
27915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916   *) ac_try_echo=$ac_try;;
27917 esac
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919   (eval "$ac_compile") 2>conftest.er1
27920   ac_status=$?
27921   grep -v '^ *+' conftest.er1 >conftest.err
27922   rm -f conftest.er1
27923   cat conftest.err >&5
27924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925   (exit $ac_status); } && {
27926          test -z "$ac_c_werror_flag" ||
27927          test ! -s conftest.err
27928        } && test -s conftest.$ac_objext; then
27929   ol_cv_func_gethostbyname_r_nargs6=yes
27930 else
27931   echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27933
27934         ol_cv_func_gethostbyname_r_nargs6=no
27935 fi
27936
27937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27938
27939         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27940            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27941
27942                 ol_cv_func_gethostbyname_r_nargs=5
27943
27944         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27945              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27946
27947                 ol_cv_func_gethostbyname_r_nargs=6
27948
27949         else
27950                 ol_cv_func_gethostbyname_r_nargs=0
27951         fi
27952
27953 fi
27954 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27955 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27956   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27957
27958 cat >>confdefs.h <<_ACEOF
27959 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27960 _ACEOF
27961
27962   fi
27963
27964 else
27965         ol_cv_func_gethostbyname_r_nargs=0
27966 fi
27967
27968 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27969         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27970 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27971 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27972   echo $ECHO_N "(cached) $ECHO_C" >&6
27973 else
27974   cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h.  */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h.  */
27980 #include <sys/types.h>
27981 #include <sys/socket.h>
27982 #include <netinet/in.h>
27983 #include <netdb.h>
27984 #define BUFSIZE (sizeof(struct hostent)+10)
27985 int
27986 main ()
27987 {
27988 struct hostent hent; char buffer[BUFSIZE];
27989             struct in_addr add;
27990             size_t alen=sizeof(struct in_addr);
27991             int bufsize=BUFSIZE;int h_errno;
27992                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27993                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27994   ;
27995   return 0;
27996 }
27997 _ACEOF
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002   *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005   (eval "$ac_compile") 2>conftest.er1
28006   ac_status=$?
28007   grep -v '^ *+' conftest.er1 >conftest.err
28008   rm -f conftest.er1
28009   cat conftest.err >&5
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); } && {
28012          test -z "$ac_c_werror_flag" ||
28013          test ! -s conftest.err
28014        } && test -s conftest.$ac_objext; then
28015   ol_cv_func_gethostbyaddr_r_nargs7=yes
28016 else
28017   echo "$as_me: failed program was:" >&5
28018 sed 's/^/| /' conftest.$ac_ext >&5
28019
28020         ol_cv_func_gethostbyaddr_r_nargs7=no
28021 fi
28022
28023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024
28025         cat >conftest.$ac_ext <<_ACEOF
28026 /* confdefs.h.  */
28027 _ACEOF
28028 cat confdefs.h >>conftest.$ac_ext
28029 cat >>conftest.$ac_ext <<_ACEOF
28030 /* end confdefs.h.  */
28031 #include <sys/types.h>
28032 #include <sys/socket.h>
28033 #include <netinet/in.h>
28034 #include <netdb.h>
28035 #define BUFSIZE (sizeof(struct hostent)+10)
28036 int
28037 main ()
28038 {
28039 struct hostent hent;
28040                 struct hostent *rhent; char buffer[BUFSIZE];
28041                 struct in_addr add;
28042                 size_t alen=sizeof(struct in_addr);
28043                 int bufsize=BUFSIZE;int h_errno;
28044                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28045                         alen, AF_INET, &hent, buffer, bufsize,
28046                         &rhent, &h_errno);
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 rm -f conftest.$ac_objext
28052 if { (ac_try="$ac_compile"
28053 case "(($ac_try" in
28054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055   *) ac_try_echo=$ac_try;;
28056 esac
28057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058   (eval "$ac_compile") 2>conftest.er1
28059   ac_status=$?
28060   grep -v '^ *+' conftest.er1 >conftest.err
28061   rm -f conftest.er1
28062   cat conftest.err >&5
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); } && {
28065          test -z "$ac_c_werror_flag" ||
28066          test ! -s conftest.err
28067        } && test -s conftest.$ac_objext; then
28068   ol_cv_func_gethostbyaddr_r_nargs8=yes
28069 else
28070   echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28072
28073         ol_cv_func_gethostbyaddr_r_nargs8=no
28074 fi
28075
28076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28077
28078         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28079            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28080
28081                 ol_cv_func_gethostbyaddr_r_nargs=7
28082
28083         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28084              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28085
28086                 ol_cv_func_gethostbyaddr_r_nargs=8
28087
28088         else
28089                 ol_cv_func_gethostbyaddr_r_nargs=0
28090         fi
28091
28092 fi
28093 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28094 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28095   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28096
28097 cat >>confdefs.h <<_ACEOF
28098 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28099 _ACEOF
28100
28101   fi
28102
28103 else
28104         ol_cv_func_gethostbyaddr_r_nargs=0
28105 fi
28106
28107 ol_link_bdb=no
28108
28109 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28110         ol_cv_berkeley_db=no
28111
28112 for ac_header in db.h
28113 do
28114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28116   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28119   echo $ECHO_N "(cached) $ECHO_C" >&6
28120 fi
28121 ac_res=`eval echo '${'$as_ac_Header'}'`
28122                { echo "$as_me:$LINENO: result: $ac_res" >&5
28123 echo "${ECHO_T}$ac_res" >&6; }
28124 else
28125   # Is the header compilable?
28126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28128 cat >conftest.$ac_ext <<_ACEOF
28129 /* confdefs.h.  */
28130 _ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h.  */
28134 $ac_includes_default
28135 #include <$ac_header>
28136 _ACEOF
28137 rm -f conftest.$ac_objext
28138 if { (ac_try="$ac_compile"
28139 case "(($ac_try" in
28140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141   *) ac_try_echo=$ac_try;;
28142 esac
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144   (eval "$ac_compile") 2>conftest.er1
28145   ac_status=$?
28146   grep -v '^ *+' conftest.er1 >conftest.err
28147   rm -f conftest.er1
28148   cat conftest.err >&5
28149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150   (exit $ac_status); } && {
28151          test -z "$ac_c_werror_flag" ||
28152          test ! -s conftest.err
28153        } && test -s conftest.$ac_objext; then
28154   ac_header_compiler=yes
28155 else
28156   echo "$as_me: failed program was:" >&5
28157 sed 's/^/| /' conftest.$ac_ext >&5
28158
28159         ac_header_compiler=no
28160 fi
28161
28162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28164 echo "${ECHO_T}$ac_header_compiler" >&6; }
28165
28166 # Is the header present?
28167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28169 cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175 #include <$ac_header>
28176 _ACEOF
28177 if { (ac_try="$ac_cpp conftest.$ac_ext"
28178 case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28184   ac_status=$?
28185   grep -v '^ *+' conftest.er1 >conftest.err
28186   rm -f conftest.er1
28187   cat conftest.err >&5
28188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); } >/dev/null && {
28190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28191          test ! -s conftest.err
28192        }; then
28193   ac_header_preproc=yes
28194 else
28195   echo "$as_me: failed program was:" >&5
28196 sed 's/^/| /' conftest.$ac_ext >&5
28197
28198   ac_header_preproc=no
28199 fi
28200
28201 rm -f conftest.err conftest.$ac_ext
28202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28203 echo "${ECHO_T}$ac_header_preproc" >&6; }
28204
28205 # So?  What about this header?
28206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28207   yes:no: )
28208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28212     ac_header_preproc=yes
28213     ;;
28214   no:yes:* )
28215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28227     ( cat <<\_ASBOX
28228 ## --------------------------------------------- ##
28229 ## Report this to <http://www.openldap.org/its/> ##
28230 ## --------------------------------------------- ##
28231 _ASBOX
28232      ) | sed "s/^/$as_me: WARNING:     /" >&2
28233     ;;
28234 esac
28235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28238   echo $ECHO_N "(cached) $ECHO_C" >&6
28239 else
28240   eval "$as_ac_Header=\$ac_header_preproc"
28241 fi
28242 ac_res=`eval echo '${'$as_ac_Header'}'`
28243                { echo "$as_me:$LINENO: result: $ac_res" >&5
28244 echo "${ECHO_T}$ac_res" >&6; }
28245
28246 fi
28247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28248   cat >>confdefs.h <<_ACEOF
28249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28250 _ACEOF
28251
28252 fi
28253
28254 done
28255
28256 if test $ac_cv_header_db_h = yes; then
28257         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28258 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28259 if test "${ol_cv_bdb_major+set}" = set; then
28260   echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28262
28263         cat >conftest.$ac_ext <<_ACEOF
28264
28265 #include <db.h>
28266 #ifndef DB_VERSION_MAJOR
28267 #       define DB_VERSION_MAJOR 1
28268 #endif
28269 __db_version DB_VERSION_MAJOR
28270
28271 _ACEOF
28272         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28273         ol_cv_bdb_major=${3}
28274
28275 fi
28276 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28277 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28278 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28279         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28280 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28281    { (exit 1); exit 1; }; } ;;
28282 esac
28283
28284 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28285 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28286 if test "${ol_cv_bdb_minor+set}" = set; then
28287   echo $ECHO_N "(cached) $ECHO_C" >&6
28288 else
28289
28290         cat >conftest.$ac_ext <<_ACEOF
28291
28292 #include <db.h>
28293 #ifndef DB_VERSION_MINOR
28294 #       define DB_VERSION_MINOR 0
28295 #endif
28296 __db_version DB_VERSION_MINOR
28297
28298 _ACEOF
28299         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28300         ol_cv_bdb_minor=${3}
28301
28302 fi
28303 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28304 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28305 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28306         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28307 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28308    { (exit 1); exit 1; }; } ;;
28309 esac
28310
28311         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28312 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28313 if test "${ol_cv_bdb_compat+set}" = set; then
28314   echo $ECHO_N "(cached) $ECHO_C" >&6
28315 else
28316
28317         cat >conftest.$ac_ext <<_ACEOF
28318 /* confdefs.h.  */
28319 _ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h.  */
28323
28324 #include <db.h>
28325
28326  /* this check could be improved */
28327 #ifndef DB_VERSION_MAJOR
28328 #       define DB_VERSION_MAJOR 1
28329 #endif
28330 #ifndef DB_VERSION_MINOR
28331 #       define DB_VERSION_MINOR 0
28332 #endif
28333
28334 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28335
28336 /* require 4.4 or later */
28337 #if DB_VERSION_MM >= 0x0404
28338         __db_version_compat
28339 #endif
28340
28341 _ACEOF
28342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28343   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28344   ol_cv_bdb_compat=yes
28345 else
28346   ol_cv_bdb_compat=no
28347 fi
28348 rm -f conftest*
28349
28350 fi
28351 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28352 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28353
28354
28355         if test $ol_cv_bdb_compat != yes ; then
28356                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28357 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28358    { (exit 1); exit 1; }; }
28359         fi
28360
28361         ol_cv_lib_db=no
28362
28363 if test $ol_cv_bdb_major = 4 ; then
28364         if test $ol_cv_lib_db = no ; then
28365         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28366 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28367 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370
28371         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28372         ol_LIBS=$LIBS
28373         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28374
28375         cat >conftest.$ac_ext <<_ACEOF
28376 /* confdefs.h.  */
28377 _ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h.  */
28381
28382 #ifdef HAVE_DB_185_H
28383 # include <db_185.h>
28384 #else
28385 # include <db.h>
28386 #endif
28387
28388 #ifndef DB_VERSION_MAJOR
28389 # define DB_VERSION_MAJOR 1
28390 #endif
28391
28392 #ifndef NULL
28393 #define NULL ((void*)0)
28394 #endif
28395
28396 int
28397 main ()
28398 {
28399
28400 #if DB_VERSION_MAJOR > 2
28401         db_env_create( NULL, 0 );
28402 #elif DB_VERSION_MAJOR > 1
28403         db_appexit( NULL );
28404 #else
28405         (void) dbopen( NULL, 0, 0, 0, NULL);
28406 #endif
28407
28408   ;
28409   return 0;
28410 }
28411 _ACEOF
28412 rm -f conftest.$ac_objext conftest$ac_exeext
28413 if { (ac_try="$ac_link"
28414 case "(($ac_try" in
28415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416   *) ac_try_echo=$ac_try;;
28417 esac
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419   (eval "$ac_link") 2>conftest.er1
28420   ac_status=$?
28421   grep -v '^ *+' conftest.er1 >conftest.err
28422   rm -f conftest.er1
28423   cat conftest.err >&5
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } && {
28426          test -z "$ac_c_werror_flag" ||
28427          test ! -s conftest.err
28428        } && test -s conftest$ac_exeext &&
28429        $as_test_x conftest$ac_exeext; then
28430   ol_cv_db_db_4_dot_m=yes
28431 else
28432   echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28434
28435         ol_cv_db_db_4_dot_m=no
28436 fi
28437
28438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28439       conftest$ac_exeext conftest.$ac_ext
28440
28441         LIBS="$ol_LIBS"
28442
28443 fi
28444 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28445 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28446
28447         if test $ol_cv_db_db_4_dot_m = yes ; then
28448                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28449         fi
28450 fi
28451
28452         if test $ol_cv_lib_db = no ; then
28453         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28454 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28455 if test "${ol_cv_db_db4m+set}" = set; then
28456   echo $ECHO_N "(cached) $ECHO_C" >&6
28457 else
28458
28459         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28460         ol_LIBS=$LIBS
28461         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28462
28463         cat >conftest.$ac_ext <<_ACEOF
28464 /* confdefs.h.  */
28465 _ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h.  */
28469
28470 #ifdef HAVE_DB_185_H
28471 # include <db_185.h>
28472 #else
28473 # include <db.h>
28474 #endif
28475
28476 #ifndef DB_VERSION_MAJOR
28477 # define DB_VERSION_MAJOR 1
28478 #endif
28479
28480 #ifndef NULL
28481 #define NULL ((void*)0)
28482 #endif
28483
28484 int
28485 main ()
28486 {
28487
28488 #if DB_VERSION_MAJOR > 2
28489         db_env_create( NULL, 0 );
28490 #elif DB_VERSION_MAJOR > 1
28491         db_appexit( NULL );
28492 #else
28493         (void) dbopen( NULL, 0, 0, 0, NULL);
28494 #endif
28495
28496   ;
28497   return 0;
28498 }
28499 _ACEOF
28500 rm -f conftest.$ac_objext conftest$ac_exeext
28501 if { (ac_try="$ac_link"
28502 case "(($ac_try" in
28503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504   *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507   (eval "$ac_link") 2>conftest.er1
28508   ac_status=$?
28509   grep -v '^ *+' conftest.er1 >conftest.err
28510   rm -f conftest.er1
28511   cat conftest.err >&5
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); } && {
28514          test -z "$ac_c_werror_flag" ||
28515          test ! -s conftest.err
28516        } && test -s conftest$ac_exeext &&
28517        $as_test_x conftest$ac_exeext; then
28518   ol_cv_db_db4m=yes
28519 else
28520   echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523         ol_cv_db_db4m=no
28524 fi
28525
28526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28527       conftest$ac_exeext conftest.$ac_ext
28528
28529         LIBS="$ol_LIBS"
28530
28531 fi
28532 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28533 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28534
28535         if test $ol_cv_db_db4m = yes ; then
28536                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28537         fi
28538 fi
28539
28540         if test $ol_cv_lib_db = no ; then
28541         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28542 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28543 if test "${ol_cv_db_db_4m+set}" = set; then
28544   echo $ECHO_N "(cached) $ECHO_C" >&6
28545 else
28546
28547         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28548         ol_LIBS=$LIBS
28549         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28550
28551         cat >conftest.$ac_ext <<_ACEOF
28552 /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557
28558 #ifdef HAVE_DB_185_H
28559 # include <db_185.h>
28560 #else
28561 # include <db.h>
28562 #endif
28563
28564 #ifndef DB_VERSION_MAJOR
28565 # define DB_VERSION_MAJOR 1
28566 #endif
28567
28568 #ifndef NULL
28569 #define NULL ((void*)0)
28570 #endif
28571
28572 int
28573 main ()
28574 {
28575
28576 #if DB_VERSION_MAJOR > 2
28577         db_env_create( NULL, 0 );
28578 #elif DB_VERSION_MAJOR > 1
28579         db_appexit( NULL );
28580 #else
28581         (void) dbopen( NULL, 0, 0, 0, NULL);
28582 #endif
28583
28584   ;
28585   return 0;
28586 }
28587 _ACEOF
28588 rm -f conftest.$ac_objext conftest$ac_exeext
28589 if { (ac_try="$ac_link"
28590 case "(($ac_try" in
28591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28592   *) ac_try_echo=$ac_try;;
28593 esac
28594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28595   (eval "$ac_link") 2>conftest.er1
28596   ac_status=$?
28597   grep -v '^ *+' conftest.er1 >conftest.err
28598   rm -f conftest.er1
28599   cat conftest.err >&5
28600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601   (exit $ac_status); } && {
28602          test -z "$ac_c_werror_flag" ||
28603          test ! -s conftest.err
28604        } && test -s conftest$ac_exeext &&
28605        $as_test_x conftest$ac_exeext; then
28606   ol_cv_db_db_4m=yes
28607 else
28608   echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28610
28611         ol_cv_db_db_4m=no
28612 fi
28613
28614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28615       conftest$ac_exeext conftest.$ac_ext
28616
28617         LIBS="$ol_LIBS"
28618
28619 fi
28620 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28621 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28622
28623         if test $ol_cv_db_db_4m = yes ; then
28624                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28625         fi
28626 fi
28627
28628         if test $ol_cv_lib_db = no ; then
28629         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28630 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28631 if test "${ol_cv_db_db_4_m+set}" = set; then
28632   echo $ECHO_N "(cached) $ECHO_C" >&6
28633 else
28634
28635         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28636         ol_LIBS=$LIBS
28637         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28638
28639         cat >conftest.$ac_ext <<_ACEOF
28640 /* confdefs.h.  */
28641 _ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h.  */
28645
28646 #ifdef HAVE_DB_185_H
28647 # include <db_185.h>
28648 #else
28649 # include <db.h>
28650 #endif
28651
28652 #ifndef DB_VERSION_MAJOR
28653 # define DB_VERSION_MAJOR 1
28654 #endif
28655
28656 #ifndef NULL
28657 #define NULL ((void*)0)
28658 #endif
28659
28660 int
28661 main ()
28662 {
28663
28664 #if DB_VERSION_MAJOR > 2
28665         db_env_create( NULL, 0 );
28666 #elif DB_VERSION_MAJOR > 1
28667         db_appexit( NULL );
28668 #else
28669         (void) dbopen( NULL, 0, 0, 0, NULL);
28670 #endif
28671
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (ac_try="$ac_link"
28678 case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_link") 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } && {
28690          test -z "$ac_c_werror_flag" ||
28691          test ! -s conftest.err
28692        } && test -s conftest$ac_exeext &&
28693        $as_test_x conftest$ac_exeext; then
28694   ol_cv_db_db_4_m=yes
28695 else
28696   echo "$as_me: failed program was:" >&5
28697 sed 's/^/| /' conftest.$ac_ext >&5
28698
28699         ol_cv_db_db_4_m=no
28700 fi
28701
28702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28703       conftest$ac_exeext conftest.$ac_ext
28704
28705         LIBS="$ol_LIBS"
28706
28707 fi
28708 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28709 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28710
28711         if test $ol_cv_db_db_4_m = yes ; then
28712                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28713         fi
28714 fi
28715
28716         if test $ol_cv_lib_db = no ; then
28717         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28718 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28719 if test "${ol_cv_db_db_4+set}" = set; then
28720   echo $ECHO_N "(cached) $ECHO_C" >&6
28721 else
28722
28723         ol_DB_LIB=-ldb-4
28724         ol_LIBS=$LIBS
28725         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28726
28727         cat >conftest.$ac_ext <<_ACEOF
28728 /* confdefs.h.  */
28729 _ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h.  */
28733
28734 #ifdef HAVE_DB_185_H
28735 # include <db_185.h>
28736 #else
28737 # include <db.h>
28738 #endif
28739
28740 #ifndef DB_VERSION_MAJOR
28741 # define DB_VERSION_MAJOR 1
28742 #endif
28743
28744 #ifndef NULL
28745 #define NULL ((void*)0)
28746 #endif
28747
28748 int
28749 main ()
28750 {
28751
28752 #if DB_VERSION_MAJOR > 2
28753         db_env_create( NULL, 0 );
28754 #elif DB_VERSION_MAJOR > 1
28755         db_appexit( NULL );
28756 #else
28757         (void) dbopen( NULL, 0, 0, 0, NULL);
28758 #endif
28759
28760   ;
28761   return 0;
28762 }
28763 _ACEOF
28764 rm -f conftest.$ac_objext conftest$ac_exeext
28765 if { (ac_try="$ac_link"
28766 case "(($ac_try" in
28767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768   *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771   (eval "$ac_link") 2>conftest.er1
28772   ac_status=$?
28773   grep -v '^ *+' conftest.er1 >conftest.err
28774   rm -f conftest.er1
28775   cat conftest.err >&5
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); } && {
28778          test -z "$ac_c_werror_flag" ||
28779          test ! -s conftest.err
28780        } && test -s conftest$ac_exeext &&
28781        $as_test_x conftest$ac_exeext; then
28782   ol_cv_db_db_4=yes
28783 else
28784   echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787         ol_cv_db_db_4=no
28788 fi
28789
28790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28791       conftest$ac_exeext conftest.$ac_ext
28792
28793         LIBS="$ol_LIBS"
28794
28795 fi
28796 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28797 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28798
28799         if test $ol_cv_db_db_4 = yes ; then
28800                 ol_cv_lib_db=-ldb-4
28801         fi
28802 fi
28803
28804         if test $ol_cv_lib_db = no ; then
28805         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28806 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28807 if test "${ol_cv_db_db4+set}" = set; then
28808   echo $ECHO_N "(cached) $ECHO_C" >&6
28809 else
28810
28811         ol_DB_LIB=-ldb4
28812         ol_LIBS=$LIBS
28813         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28814
28815         cat >conftest.$ac_ext <<_ACEOF
28816 /* confdefs.h.  */
28817 _ACEOF
28818 cat confdefs.h >>conftest.$ac_ext
28819 cat >>conftest.$ac_ext <<_ACEOF
28820 /* end confdefs.h.  */
28821
28822 #ifdef HAVE_DB_185_H
28823 # include <db_185.h>
28824 #else
28825 # include <db.h>
28826 #endif
28827
28828 #ifndef DB_VERSION_MAJOR
28829 # define DB_VERSION_MAJOR 1
28830 #endif
28831
28832 #ifndef NULL
28833 #define NULL ((void*)0)
28834 #endif
28835
28836 int
28837 main ()
28838 {
28839
28840 #if DB_VERSION_MAJOR > 2
28841         db_env_create( NULL, 0 );
28842 #elif DB_VERSION_MAJOR > 1
28843         db_appexit( NULL );
28844 #else
28845         (void) dbopen( NULL, 0, 0, 0, NULL);
28846 #endif
28847
28848   ;
28849   return 0;
28850 }
28851 _ACEOF
28852 rm -f conftest.$ac_objext conftest$ac_exeext
28853 if { (ac_try="$ac_link"
28854 case "(($ac_try" in
28855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856   *) ac_try_echo=$ac_try;;
28857 esac
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859   (eval "$ac_link") 2>conftest.er1
28860   ac_status=$?
28861   grep -v '^ *+' conftest.er1 >conftest.err
28862   rm -f conftest.er1
28863   cat conftest.err >&5
28864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865   (exit $ac_status); } && {
28866          test -z "$ac_c_werror_flag" ||
28867          test ! -s conftest.err
28868        } && test -s conftest$ac_exeext &&
28869        $as_test_x conftest$ac_exeext; then
28870   ol_cv_db_db4=yes
28871 else
28872   echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875         ol_cv_db_db4=no
28876 fi
28877
28878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28879       conftest$ac_exeext conftest.$ac_ext
28880
28881         LIBS="$ol_LIBS"
28882
28883 fi
28884 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28885 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28886
28887         if test $ol_cv_db_db4 = yes ; then
28888                 ol_cv_lib_db=-ldb4
28889         fi
28890 fi
28891
28892         if test $ol_cv_lib_db = no ; then
28893         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28894 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28895 if test "${ol_cv_db_db+set}" = set; then
28896   echo $ECHO_N "(cached) $ECHO_C" >&6
28897 else
28898
28899         ol_DB_LIB=-ldb
28900         ol_LIBS=$LIBS
28901         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28902
28903         cat >conftest.$ac_ext <<_ACEOF
28904 /* confdefs.h.  */
28905 _ACEOF
28906 cat confdefs.h >>conftest.$ac_ext
28907 cat >>conftest.$ac_ext <<_ACEOF
28908 /* end confdefs.h.  */
28909
28910 #ifdef HAVE_DB_185_H
28911 # include <db_185.h>
28912 #else
28913 # include <db.h>
28914 #endif
28915
28916 #ifndef DB_VERSION_MAJOR
28917 # define DB_VERSION_MAJOR 1
28918 #endif
28919
28920 #ifndef NULL
28921 #define NULL ((void*)0)
28922 #endif
28923
28924 int
28925 main ()
28926 {
28927
28928 #if DB_VERSION_MAJOR > 2
28929         db_env_create( NULL, 0 );
28930 #elif DB_VERSION_MAJOR > 1
28931         db_appexit( NULL );
28932 #else
28933         (void) dbopen( NULL, 0, 0, 0, NULL);
28934 #endif
28935
28936   ;
28937   return 0;
28938 }
28939 _ACEOF
28940 rm -f conftest.$ac_objext conftest$ac_exeext
28941 if { (ac_try="$ac_link"
28942 case "(($ac_try" in
28943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28944   *) ac_try_echo=$ac_try;;
28945 esac
28946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28947   (eval "$ac_link") 2>conftest.er1
28948   ac_status=$?
28949   grep -v '^ *+' conftest.er1 >conftest.err
28950   rm -f conftest.er1
28951   cat conftest.err >&5
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); } && {
28954          test -z "$ac_c_werror_flag" ||
28955          test ! -s conftest.err
28956        } && test -s conftest$ac_exeext &&
28957        $as_test_x conftest$ac_exeext; then
28958   ol_cv_db_db=yes
28959 else
28960   echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28962
28963         ol_cv_db_db=no
28964 fi
28965
28966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28967       conftest$ac_exeext conftest.$ac_ext
28968
28969         LIBS="$ol_LIBS"
28970
28971 fi
28972 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28973 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28974
28975         if test $ol_cv_db_db = yes ; then
28976                 ol_cv_lib_db=-ldb
28977         fi
28978 fi
28979
28980 fi
28981 if test $ol_cv_lib_db = no ; then
28982         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28983 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28984 if test "${ol_cv_db_none+set}" = set; then
28985   echo $ECHO_N "(cached) $ECHO_C" >&6
28986 else
28987
28988         ol_DB_LIB=
28989         ol_LIBS=$LIBS
28990         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28991
28992         cat >conftest.$ac_ext <<_ACEOF
28993 /* confdefs.h.  */
28994 _ACEOF
28995 cat confdefs.h >>conftest.$ac_ext
28996 cat >>conftest.$ac_ext <<_ACEOF
28997 /* end confdefs.h.  */
28998
28999 #ifdef HAVE_DB_185_H
29000 # include <db_185.h>
29001 #else
29002 # include <db.h>
29003 #endif
29004
29005 #ifndef DB_VERSION_MAJOR
29006 # define DB_VERSION_MAJOR 1
29007 #endif
29008
29009 #ifndef NULL
29010 #define NULL ((void*)0)
29011 #endif
29012
29013 int
29014 main ()
29015 {
29016
29017 #if DB_VERSION_MAJOR > 2
29018         db_env_create( NULL, 0 );
29019 #elif DB_VERSION_MAJOR > 1
29020         db_appexit( NULL );
29021 #else
29022         (void) dbopen( NULL, 0, 0, 0, NULL);
29023 #endif
29024
29025   ;
29026   return 0;
29027 }
29028 _ACEOF
29029 rm -f conftest.$ac_objext conftest$ac_exeext
29030 if { (ac_try="$ac_link"
29031 case "(($ac_try" in
29032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033   *) ac_try_echo=$ac_try;;
29034 esac
29035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29036   (eval "$ac_link") 2>conftest.er1
29037   ac_status=$?
29038   grep -v '^ *+' conftest.er1 >conftest.err
29039   rm -f conftest.er1
29040   cat conftest.err >&5
29041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); } && {
29043          test -z "$ac_c_werror_flag" ||
29044          test ! -s conftest.err
29045        } && test -s conftest$ac_exeext &&
29046        $as_test_x conftest$ac_exeext; then
29047   ol_cv_db_none=yes
29048 else
29049   echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29051
29052         ol_cv_db_none=no
29053 fi
29054
29055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29056       conftest$ac_exeext conftest.$ac_ext
29057
29058         LIBS="$ol_LIBS"
29059
29060 fi
29061 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29062 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29063
29064         if test $ol_cv_db_none = yes ; then
29065                 ol_cv_lib_db=yes
29066         fi
29067 fi
29068
29069
29070         if test "$ol_cv_lib_db" != no ; then
29071                 ol_cv_berkeley_db=yes
29072                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29073 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29074 if test "${ol_cv_berkeley_db_version+set}" = set; then
29075   echo $ECHO_N "(cached) $ECHO_C" >&6
29076 else
29077
29078         ol_LIBS="$LIBS"
29079         LIBS="$LTHREAD_LIBS $LIBS"
29080         if test $ol_cv_lib_db != yes ; then
29081                 LIBS="$ol_cv_lib_db $LIBS"
29082         fi
29083
29084         if test "$cross_compiling" = yes; then
29085   ol_cv_berkeley_db_version=cross
29086 else
29087   cat >conftest.$ac_ext <<_ACEOF
29088 /* confdefs.h.  */
29089 _ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h.  */
29093
29094 #ifdef HAVE_DB_185_H
29095         choke me;
29096 #else
29097 #include <db.h>
29098 #endif
29099 #ifndef DB_VERSION_MAJOR
29100 # define DB_VERSION_MAJOR 1
29101 #endif
29102 #ifndef NULL
29103 #define NULL ((void *)0)
29104 #endif
29105 main()
29106 {
29107 #if DB_VERSION_MAJOR > 1
29108         char *version;
29109         int major, minor, patch;
29110
29111         version = db_version( &major, &minor, &patch );
29112
29113         if( major != DB_VERSION_MAJOR ||
29114                 minor != DB_VERSION_MINOR ||
29115                 patch != DB_VERSION_PATCH )
29116         {
29117                 printf("Berkeley DB version mismatch\n"
29118                         "\theader: %s\n\tlibrary: %s\n",
29119                         DB_VERSION_STRING, version);
29120                 return 1;
29121         }
29122 #endif
29123
29124         return 0;
29125 }
29126 _ACEOF
29127 rm -f conftest$ac_exeext
29128 if { (ac_try="$ac_link"
29129 case "(($ac_try" in
29130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131   *) ac_try_echo=$ac_try;;
29132 esac
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134   (eval "$ac_link") 2>&5
29135   ac_status=$?
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29138   { (case "(($ac_try" in
29139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140   *) ac_try_echo=$ac_try;;
29141 esac
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143   (eval "$ac_try") 2>&5
29144   ac_status=$?
29145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146   (exit $ac_status); }; }; then
29147   ol_cv_berkeley_db_version=yes
29148 else
29149   echo "$as_me: program exited with status $ac_status" >&5
29150 echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29152
29153 ( exit $ac_status )
29154 ol_cv_berkeley_db_version=no
29155 fi
29156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29157 fi
29158
29159
29160
29161         LIBS="$ol_LIBS"
29162
29163 fi
29164 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29165 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29166
29167         if test $ol_cv_berkeley_db_version = no ; then
29168                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29169 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29170    { (exit 1); exit 1; }; }
29171         fi
29172
29173                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29174 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29175 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
29178
29179         ol_LIBS="$LIBS"
29180         LIBS="$LTHREAD_LIBS $LIBS"
29181         if test $ol_cv_lib_db != yes ; then
29182                 LIBS="$ol_cv_lib_db $LIBS"
29183         fi
29184
29185         if test "$cross_compiling" = yes; then
29186   ol_cv_berkeley_db_thread=cross
29187 else
29188   cat >conftest.$ac_ext <<_ACEOF
29189 /* confdefs.h.  */
29190 _ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h.  */
29194
29195 #ifdef HAVE_DB_185_H
29196         choke me;
29197 #else
29198 #include <db.h>
29199 #endif
29200 #ifndef NULL
29201 #define NULL ((void *)0)
29202 #endif
29203 main()
29204 {
29205         int rc;
29206         u_int32_t flags = DB_CREATE |
29207 #ifdef DB_PRIVATE
29208                 DB_PRIVATE |
29209 #endif
29210                 DB_THREAD;
29211
29212 #if DB_VERSION_MAJOR > 2
29213         DB_ENV *env = NULL;
29214
29215         rc = db_env_create( &env, 0 );
29216
29217         flags |= DB_INIT_MPOOL;
29218 #ifdef DB_MPOOL_PRIVATE
29219         flags |= DB_MPOOL_PRIVATE;
29220 #endif
29221
29222         if( rc ) {
29223                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29224                 return rc;
29225         }
29226
29227 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29228         rc = (env->open)( env, NULL, flags, 0 );
29229 #else
29230         rc = (env->open)( env, NULL, NULL, flags, 0 );
29231 #endif
29232
29233         if ( rc == 0 ) {
29234                 rc = env->close( env, 0 );
29235         }
29236
29237         if( rc ) {
29238                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29239                 return rc;
29240         }
29241
29242 #else
29243         DB_ENV env;
29244         memset( &env, '\0', sizeof(env) );
29245
29246         rc = db_appinit( NULL, NULL, &env, flags );
29247
29248         if( rc == 0 ) {
29249                 db_appexit( &env );
29250         }
29251
29252         unlink("__db_mpool.share");
29253         unlink("__db_lock.share");
29254 #endif
29255
29256         return rc;
29257 }
29258 _ACEOF
29259 rm -f conftest$ac_exeext
29260 if { (ac_try="$ac_link"
29261 case "(($ac_try" in
29262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263   *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266   (eval "$ac_link") 2>&5
29267   ac_status=$?
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29270   { (case "(($ac_try" in
29271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29272   *) ac_try_echo=$ac_try;;
29273 esac
29274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275   (eval "$ac_try") 2>&5
29276   ac_status=$?
29277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278   (exit $ac_status); }; }; then
29279   ol_cv_berkeley_db_thread=yes
29280 else
29281   echo "$as_me: program exited with status $ac_status" >&5
29282 echo "$as_me: failed program was:" >&5
29283 sed 's/^/| /' conftest.$ac_ext >&5
29284
29285 ( exit $ac_status )
29286 ol_cv_berkeley_db_thread=no
29287 fi
29288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29289 fi
29290
29291
29292
29293         LIBS="$ol_LIBS"
29294
29295 fi
29296 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29297 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29298
29299         if test $ol_cv_berkeley_db_thread != no ; then
29300
29301 cat >>confdefs.h <<\_ACEOF
29302 #define HAVE_BERKELEY_DB_THREAD 1
29303 _ACEOF
29304
29305         fi
29306
29307         fi
29308 fi
29309
29310
29311         if test $ol_cv_berkeley_db = no ; then
29312                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29313 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29314    { (exit 1); exit 1; }; }
29315         fi
29316
29317
29318 cat >>confdefs.h <<\_ACEOF
29319 #define HAVE_BERKELEY_DB 1
29320 _ACEOF
29321
29322
29323                         if test $ol_cv_lib_db != yes ; then
29324                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29325         fi
29326
29327         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29328
29329         ol_link_bdb=yes
29330 fi
29331
29332
29333 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29334         BUILD_LIBS_DYNAMIC=shared
29335
29336 cat >>confdefs.h <<\_ACEOF
29337 #define LDAP_LIBS_DYNAMIC 1
29338 _ACEOF
29339
29340         LTSTATIC=""
29341 else
29342         BUILD_LIBS_DYNAMIC=static
29343         LTSTATIC="-static"
29344 fi
29345
29346 if test $ol_enable_wrappers != no ; then
29347
29348 for ac_header in tcpd.h
29349 do
29350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29355   echo $ECHO_N "(cached) $ECHO_C" >&6
29356 fi
29357 ac_res=`eval echo '${'$as_ac_Header'}'`
29358                { echo "$as_me:$LINENO: result: $ac_res" >&5
29359 echo "${ECHO_T}$ac_res" >&6; }
29360 else
29361   # Is the header compilable?
29362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29364 cat >conftest.$ac_ext <<_ACEOF
29365 /* confdefs.h.  */
29366 _ACEOF
29367 cat confdefs.h >>conftest.$ac_ext
29368 cat >>conftest.$ac_ext <<_ACEOF
29369 /* end confdefs.h.  */
29370 $ac_includes_default
29371 #include <$ac_header>
29372 _ACEOF
29373 rm -f conftest.$ac_objext
29374 if { (ac_try="$ac_compile"
29375 case "(($ac_try" in
29376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377   *) ac_try_echo=$ac_try;;
29378 esac
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380   (eval "$ac_compile") 2>conftest.er1
29381   ac_status=$?
29382   grep -v '^ *+' conftest.er1 >conftest.err
29383   rm -f conftest.er1
29384   cat conftest.err >&5
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   (exit $ac_status); } && {
29387          test -z "$ac_c_werror_flag" ||
29388          test ! -s conftest.err
29389        } && test -s conftest.$ac_objext; then
29390   ac_header_compiler=yes
29391 else
29392   echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.$ac_ext >&5
29394
29395         ac_header_compiler=no
29396 fi
29397
29398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29400 echo "${ECHO_T}$ac_header_compiler" >&6; }
29401
29402 # Is the header present?
29403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29405 cat >conftest.$ac_ext <<_ACEOF
29406 /* confdefs.h.  */
29407 _ACEOF
29408 cat confdefs.h >>conftest.$ac_ext
29409 cat >>conftest.$ac_ext <<_ACEOF
29410 /* end confdefs.h.  */
29411 #include <$ac_header>
29412 _ACEOF
29413 if { (ac_try="$ac_cpp conftest.$ac_ext"
29414 case "(($ac_try" in
29415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416   *) ac_try_echo=$ac_try;;
29417 esac
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29420   ac_status=$?
29421   grep -v '^ *+' conftest.er1 >conftest.err
29422   rm -f conftest.er1
29423   cat conftest.err >&5
29424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425   (exit $ac_status); } >/dev/null && {
29426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29427          test ! -s conftest.err
29428        }; then
29429   ac_header_preproc=yes
29430 else
29431   echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29433
29434   ac_header_preproc=no
29435 fi
29436
29437 rm -f conftest.err conftest.$ac_ext
29438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29439 echo "${ECHO_T}$ac_header_preproc" >&6; }
29440
29441 # So?  What about this header?
29442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29443   yes:no: )
29444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29448     ac_header_preproc=yes
29449     ;;
29450   no:yes:* )
29451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29463     ( cat <<\_ASBOX
29464 ## --------------------------------------------- ##
29465 ## Report this to <http://www.openldap.org/its/> ##
29466 ## --------------------------------------------- ##
29467 _ASBOX
29468      ) | sed "s/^/$as_me: WARNING:     /" >&2
29469     ;;
29470 esac
29471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29474   echo $ECHO_N "(cached) $ECHO_C" >&6
29475 else
29476   eval "$as_ac_Header=\$ac_header_preproc"
29477 fi
29478 ac_res=`eval echo '${'$as_ac_Header'}'`
29479                { echo "$as_me:$LINENO: result: $ac_res" >&5
29480 echo "${ECHO_T}$ac_res" >&6; }
29481
29482 fi
29483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484   cat >>confdefs.h <<_ACEOF
29485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29486 _ACEOF
29487
29488                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29489 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29490                 save_LIBS="$LIBS"
29491                 LIBS="$LIBS -lwrap"
29492                 cat >conftest.$ac_ext <<_ACEOF
29493 /* confdefs.h.  */
29494 _ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h.  */
29498
29499 #include <tcpd.h>
29500 int allow_severity = 0;
29501 int deny_severity  = 0;
29502
29503 struct request_info *req;
29504
29505 int
29506 main ()
29507 {
29508
29509 hosts_access(req)
29510
29511   ;
29512   return 0;
29513 }
29514 _ACEOF
29515 rm -f conftest.$ac_objext conftest$ac_exeext
29516 if { (ac_try="$ac_link"
29517 case "(($ac_try" in
29518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519   *) ac_try_echo=$ac_try;;
29520 esac
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522   (eval "$ac_link") 2>conftest.er1
29523   ac_status=$?
29524   grep -v '^ *+' conftest.er1 >conftest.err
29525   rm -f conftest.er1
29526   cat conftest.err >&5
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); } && {
29529          test -z "$ac_c_werror_flag" ||
29530          test ! -s conftest.err
29531        } && test -s conftest$ac_exeext &&
29532        $as_test_x conftest$ac_exeext; then
29533   { echo "$as_me:$LINENO: result: -lwrap" >&5
29534 echo "${ECHO_T}-lwrap" >&6; }
29535                 have_wrappers=yes
29536                 LIBS="$save_LIBS"
29537 else
29538   echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29540
29541
29542                                 LIBS="$LIBS -lnsl"
29543                 cat >conftest.$ac_ext <<_ACEOF
29544 /* confdefs.h.  */
29545 _ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h.  */
29549
29550 #include <tcpd.h>
29551 int allow_severity = 0;
29552 int deny_severity  = 0;
29553
29554 struct request_info *req;
29555
29556 int
29557 main ()
29558 {
29559
29560 hosts_access(req)
29561
29562   ;
29563   return 0;
29564 }
29565 _ACEOF
29566 rm -f conftest.$ac_objext conftest$ac_exeext
29567 if { (ac_try="$ac_link"
29568 case "(($ac_try" in
29569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570   *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573   (eval "$ac_link") 2>conftest.er1
29574   ac_status=$?
29575   grep -v '^ *+' conftest.er1 >conftest.err
29576   rm -f conftest.er1
29577   cat conftest.err >&5
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } && {
29580          test -z "$ac_c_werror_flag" ||
29581          test ! -s conftest.err
29582        } && test -s conftest$ac_exeext &&
29583        $as_test_x conftest$ac_exeext; then
29584   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29585 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29586                 have_wrappers=yes
29587                 LIBS="$save_LIBS -lnsl"
29588 else
29589   echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29591
29592
29593                 { echo "$as_me:$LINENO: result: no" >&5
29594 echo "${ECHO_T}no" >&6; }
29595                 have_wrappers=no
29596                 LIBS=$save_LIBS
29597 fi
29598
29599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29600       conftest$ac_exeext conftest.$ac_ext
29601 fi
29602
29603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29604       conftest$ac_exeext conftest.$ac_ext
29605 else
29606   have_wrappers=no
29607 fi
29608
29609 done
29610
29611
29612         if test $have_wrappers = yes ; then
29613
29614 cat >>confdefs.h <<\_ACEOF
29615 #define HAVE_TCPD 1
29616 _ACEOF
29617
29618                 WRAP_LIBS="-lwrap"
29619         elif test $ol_enable_wrappers = yes ; then
29620                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29621 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29622    { (exit 1); exit 1; }; }
29623         else
29624                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29625 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29626                 WRAP_LIBS=""
29627         fi
29628 fi
29629
29630 if test $ol_enable_syslog != no ; then
29631         { echo "$as_me:$LINENO: checking for openlog" >&5
29632 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29633 if test "${ac_cv_func_openlog+set}" = set; then
29634   echo $ECHO_N "(cached) $ECHO_C" >&6
29635 else
29636   cat >conftest.$ac_ext <<_ACEOF
29637 /* confdefs.h.  */
29638 _ACEOF
29639 cat confdefs.h >>conftest.$ac_ext
29640 cat >>conftest.$ac_ext <<_ACEOF
29641 /* end confdefs.h.  */
29642 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29644 #define openlog innocuous_openlog
29645
29646 /* System header to define __stub macros and hopefully few prototypes,
29647     which can conflict with char openlog (); below.
29648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29649     <limits.h> exists even on freestanding compilers.  */
29650
29651 #ifdef __STDC__
29652 # include <limits.h>
29653 #else
29654 # include <assert.h>
29655 #endif
29656
29657 #undef openlog
29658
29659 /* Override any GCC internal prototype to avoid an error.
29660    Use char because int might match the return type of a GCC
29661    builtin and then its argument prototype would still apply.  */
29662 #ifdef __cplusplus
29663 extern "C"
29664 #endif
29665 char openlog ();
29666 /* The GNU C library defines this for functions which it implements
29667     to always fail with ENOSYS.  Some functions are actually named
29668     something starting with __ and the normal name is an alias.  */
29669 #if defined __stub_openlog || defined __stub___openlog
29670 choke me
29671 #endif
29672
29673 int
29674 main ()
29675 {
29676 return openlog ();
29677   ;
29678   return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685   *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688   (eval "$ac_link") 2>conftest.er1
29689   ac_status=$?
29690   grep -v '^ *+' conftest.er1 >conftest.err
29691   rm -f conftest.er1
29692   cat conftest.err >&5
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); } && {
29695          test -z "$ac_c_werror_flag" ||
29696          test ! -s conftest.err
29697        } && test -s conftest$ac_exeext &&
29698        $as_test_x conftest$ac_exeext; then
29699   ac_cv_func_openlog=yes
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704         ac_cv_func_openlog=no
29705 fi
29706
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708       conftest$ac_exeext conftest.$ac_ext
29709 fi
29710 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29711 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29712
29713         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29714                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29715 echo "$as_me: error: could not find syslog" >&2;}
29716    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29717         fi
29718         ol_enable_syslog=$ac_cv_func_openlog
29719 fi
29720
29721 ol_link_sql=no
29722 if test $ol_enable_sql != no ; then
29723
29724
29725 for ac_header in sql.h sqlext.h
29726 do
29727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29729   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732   echo $ECHO_N "(cached) $ECHO_C" >&6
29733 fi
29734 ac_res=`eval echo '${'$as_ac_Header'}'`
29735                { echo "$as_me:$LINENO: result: $ac_res" >&5
29736 echo "${ECHO_T}$ac_res" >&6; }
29737 else
29738   # Is the header compilable?
29739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29741 cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h.  */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h.  */
29747 $ac_includes_default
29748 #include <$ac_header>
29749 _ACEOF
29750 rm -f conftest.$ac_objext
29751 if { (ac_try="$ac_compile"
29752 case "(($ac_try" in
29753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754   *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757   (eval "$ac_compile") 2>conftest.er1
29758   ac_status=$?
29759   grep -v '^ *+' conftest.er1 >conftest.err
29760   rm -f conftest.er1
29761   cat conftest.err >&5
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } && {
29764          test -z "$ac_c_werror_flag" ||
29765          test ! -s conftest.err
29766        } && test -s conftest.$ac_objext; then
29767   ac_header_compiler=yes
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772         ac_header_compiler=no
29773 fi
29774
29775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29777 echo "${ECHO_T}$ac_header_compiler" >&6; }
29778
29779 # Is the header present?
29780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29782 cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788 #include <$ac_header>
29789 _ACEOF
29790 if { (ac_try="$ac_cpp conftest.$ac_ext"
29791 case "(($ac_try" in
29792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793   *) ac_try_echo=$ac_try;;
29794 esac
29795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29797   ac_status=$?
29798   grep -v '^ *+' conftest.er1 >conftest.err
29799   rm -f conftest.er1
29800   cat conftest.err >&5
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); } >/dev/null && {
29803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29804          test ! -s conftest.err
29805        }; then
29806   ac_header_preproc=yes
29807 else
29808   echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29810
29811   ac_header_preproc=no
29812 fi
29813
29814 rm -f conftest.err conftest.$ac_ext
29815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29816 echo "${ECHO_T}$ac_header_preproc" >&6; }
29817
29818 # So?  What about this header?
29819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29820   yes:no: )
29821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29825     ac_header_preproc=yes
29826     ;;
29827   no:yes:* )
29828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29840     ( cat <<\_ASBOX
29841 ## --------------------------------------------- ##
29842 ## Report this to <http://www.openldap.org/its/> ##
29843 ## --------------------------------------------- ##
29844 _ASBOX
29845      ) | sed "s/^/$as_me: WARNING:     /" >&2
29846     ;;
29847 esac
29848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29851   echo $ECHO_N "(cached) $ECHO_C" >&6
29852 else
29853   eval "$as_ac_Header=\$ac_header_preproc"
29854 fi
29855 ac_res=`eval echo '${'$as_ac_Header'}'`
29856                { echo "$as_me:$LINENO: result: $ac_res" >&5
29857 echo "${ECHO_T}$ac_res" >&6; }
29858
29859 fi
29860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29861   cat >>confdefs.h <<_ACEOF
29862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29863 _ACEOF
29864
29865 else
29866
29867                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29868 echo "$as_me: error: could not locate SQL headers" >&2;}
29869    { (exit 1); exit 1; }; }
29870
29871 fi
29872
29873 done
29874
29875
29876         sql_LIBS="$LIBS"
29877         LIBS="$LTHREAD_LIBS"
29878
29879         if test $ol_with_odbc = auto ; then
29880                 ol_with_odbc="iodbc unixodbc odbc32"
29881         fi
29882
29883         for odbc in $ol_with_odbc ; do
29884                 if test $ol_link_sql = no ; then
29885                         case $odbc in
29886                         iodbc)
29887                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29888 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29889 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29890   echo $ECHO_N "(cached) $ECHO_C" >&6
29891 else
29892   ac_check_lib_save_LIBS=$LIBS
29893 LIBS="-liodbc  $LIBS"
29894 cat >conftest.$ac_ext <<_ACEOF
29895 /* confdefs.h.  */
29896 _ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h.  */
29900
29901 /* Override any GCC internal prototype to avoid an error.
29902    Use char because int might match the return type of a GCC
29903    builtin and then its argument prototype would still apply.  */
29904 #ifdef __cplusplus
29905 extern "C"
29906 #endif
29907 char SQLDriverConnect ();
29908 int
29909 main ()
29910 {
29911 return SQLDriverConnect ();
29912   ;
29913   return 0;
29914 }
29915 _ACEOF
29916 rm -f conftest.$ac_objext conftest$ac_exeext
29917 if { (ac_try="$ac_link"
29918 case "(($ac_try" in
29919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29920   *) ac_try_echo=$ac_try;;
29921 esac
29922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29923   (eval "$ac_link") 2>conftest.er1
29924   ac_status=$?
29925   grep -v '^ *+' conftest.er1 >conftest.err
29926   rm -f conftest.er1
29927   cat conftest.err >&5
29928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929   (exit $ac_status); } && {
29930          test -z "$ac_c_werror_flag" ||
29931          test ! -s conftest.err
29932        } && test -s conftest$ac_exeext &&
29933        $as_test_x conftest$ac_exeext; then
29934   ac_cv_lib_iodbc_SQLDriverConnect=yes
29935 else
29936   echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29938
29939         ac_cv_lib_iodbc_SQLDriverConnect=no
29940 fi
29941
29942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29943       conftest$ac_exeext conftest.$ac_ext
29944 LIBS=$ac_check_lib_save_LIBS
29945 fi
29946 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29947 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29948 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29949   have_iodbc=yes
29950 else
29951   have_iodbc=no
29952 fi
29953
29954                                 if test $have_iodbc = yes ; then
29955                                         ol_link_sql="-liodbc"
29956                                 fi
29957                                 ;;
29958
29959                         unixodbc)
29960                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29961 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29962 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29963   echo $ECHO_N "(cached) $ECHO_C" >&6
29964 else
29965   ac_check_lib_save_LIBS=$LIBS
29966 LIBS="-lodbc  $LIBS"
29967 cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973
29974 /* Override any GCC internal prototype to avoid an error.
29975    Use char because int might match the return type of a GCC
29976    builtin and then its argument prototype would still apply.  */
29977 #ifdef __cplusplus
29978 extern "C"
29979 #endif
29980 char SQLDriverConnect ();
29981 int
29982 main ()
29983 {
29984 return SQLDriverConnect ();
29985   ;
29986   return 0;
29987 }
29988 _ACEOF
29989 rm -f conftest.$ac_objext conftest$ac_exeext
29990 if { (ac_try="$ac_link"
29991 case "(($ac_try" in
29992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993   *) ac_try_echo=$ac_try;;
29994 esac
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996   (eval "$ac_link") 2>conftest.er1
29997   ac_status=$?
29998   grep -v '^ *+' conftest.er1 >conftest.err
29999   rm -f conftest.er1
30000   cat conftest.err >&5
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); } && {
30003          test -z "$ac_c_werror_flag" ||
30004          test ! -s conftest.err
30005        } && test -s conftest$ac_exeext &&
30006        $as_test_x conftest$ac_exeext; then
30007   ac_cv_lib_odbc_SQLDriverConnect=yes
30008 else
30009   echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30011
30012         ac_cv_lib_odbc_SQLDriverConnect=no
30013 fi
30014
30015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30016       conftest$ac_exeext conftest.$ac_ext
30017 LIBS=$ac_check_lib_save_LIBS
30018 fi
30019 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30020 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30021 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30022   have_odbc=yes
30023 else
30024   have_odbc=no
30025 fi
30026
30027                                 if test $have_odbc = yes ; then
30028                                         ol_link_sql="-lodbc"
30029                                 fi
30030                                 ;;
30031
30032                         odbc32)
30033                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30034 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30035 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30036   echo $ECHO_N "(cached) $ECHO_C" >&6
30037 else
30038   ac_check_lib_save_LIBS=$LIBS
30039 LIBS="-lodbc32  $LIBS"
30040 cat >conftest.$ac_ext <<_ACEOF
30041 /* confdefs.h.  */
30042 _ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h.  */
30046
30047 /* Override any GCC internal prototype to avoid an error.
30048    Use char because int might match the return type of a GCC
30049    builtin and then its argument prototype would still apply.  */
30050 #ifdef __cplusplus
30051 extern "C"
30052 #endif
30053 char SQLDriverConnect ();
30054 int
30055 main ()
30056 {
30057 return SQLDriverConnect ();
30058   ;
30059   return 0;
30060 }
30061 _ACEOF
30062 rm -f conftest.$ac_objext conftest$ac_exeext
30063 if { (ac_try="$ac_link"
30064 case "(($ac_try" in
30065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066   *) ac_try_echo=$ac_try;;
30067 esac
30068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069   (eval "$ac_link") 2>conftest.er1
30070   ac_status=$?
30071   grep -v '^ *+' conftest.er1 >conftest.err
30072   rm -f conftest.er1
30073   cat conftest.err >&5
30074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075   (exit $ac_status); } && {
30076          test -z "$ac_c_werror_flag" ||
30077          test ! -s conftest.err
30078        } && test -s conftest$ac_exeext &&
30079        $as_test_x conftest$ac_exeext; then
30080   ac_cv_lib_odbc32_SQLDriverConnect=yes
30081 else
30082   echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.$ac_ext >&5
30084
30085         ac_cv_lib_odbc32_SQLDriverConnect=no
30086 fi
30087
30088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30089       conftest$ac_exeext conftest.$ac_ext
30090 LIBS=$ac_check_lib_save_LIBS
30091 fi
30092 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30093 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30094 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30095   have_odbc32=yes
30096 else
30097   have_odbc32=no
30098 fi
30099
30100                                 if test $have_odbc32 = yes ; then
30101                                         ol_link_sql="-lodbc32"
30102                                 fi
30103                                 ;;
30104
30105                         *)
30106                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30107 echo "$as_me: error: unknown ODBC library" >&2;}
30108    { (exit 1); exit 1; }; }
30109                                 ;;
30110                         esac
30111                 fi
30112         done
30113
30114         LIBS="$sql_LIBS"
30115
30116         if test $ol_link_sql != no ; then
30117                 SLAPD_SQL_LIBS="$ol_link_sql"
30118
30119         elif test $ol_enable_sql != auto ; then
30120                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30121 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30122    { (exit 1); exit 1; }; }
30123         fi
30124 fi
30125
30126 ol_link_ndb=no
30127 if test $ol_enable_ndb != no ; then
30128         # Extract the first word of "mysql_config", so it can be a program name with args.
30129 set dummy mysql_config; ac_word=$2
30130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30132 if test "${ac_cv_prog_MYSQL+set}" = set; then
30133   echo $ECHO_N "(cached) $ECHO_C" >&6
30134 else
30135   if test -n "$MYSQL"; then
30136   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30137 else
30138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30139 for as_dir in $PATH
30140 do
30141   IFS=$as_save_IFS
30142   test -z "$as_dir" && as_dir=.
30143   for ac_exec_ext in '' $ac_executable_extensions; do
30144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30145     ac_cv_prog_MYSQL="yes"
30146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30147     break 2
30148   fi
30149 done
30150 done
30151 IFS=$as_save_IFS
30152
30153 fi
30154 fi
30155 MYSQL=$ac_cv_prog_MYSQL
30156 if test -n "$MYSQL"; then
30157   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30158 echo "${ECHO_T}$MYSQL" >&6; }
30159 else
30160   { echo "$as_me:$LINENO: result: no" >&5
30161 echo "${ECHO_T}no" >&6; }
30162 fi
30163
30164
30165         if test "$MYSQL" != yes ; then
30166                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30167 echo "$as_me: error: could not locate mysql_config" >&2;}
30168    { (exit 1); exit 1; }; }
30169         fi
30170
30171         SQL_INC=`mysql_config --include`
30172         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30173
30174         save_CPPFLAGS="$CPPFLAGS"
30175         CPPFLAGS="$SLAPD_NDB_INCS"
30176         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30177 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30178         cat >conftest.$ac_ext <<_ACEOF
30179 /* confdefs.h.  */
30180 _ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h.  */
30184 #include <NdbApi.hpp>
30185 _ACEOF
30186 if { (ac_try="$ac_cpp conftest.$ac_ext"
30187 case "(($ac_try" in
30188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189   *) ac_try_echo=$ac_try;;
30190 esac
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30193   ac_status=$?
30194   grep -v '^ *+' conftest.er1 >conftest.err
30195   rm -f conftest.er1
30196   cat conftest.err >&5
30197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198   (exit $ac_status); } >/dev/null && {
30199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30200          test ! -s conftest.err
30201        }; then
30202   { echo "$as_me:$LINENO: result: yes" >&5
30203 echo "${ECHO_T}yes" >&6; }
30204 else
30205   echo "$as_me: failed program was:" >&5
30206 sed 's/^/| /' conftest.$ac_ext >&5
30207
30208   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30209 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30210    { (exit 1); exit 1; }; }
30211
30212 fi
30213
30214 rm -f conftest.err conftest.$ac_ext
30215         CPPFLAGS="$save_CPPFLAGS"
30216
30217         SQL_LIB=`mysql_config --libs_r`
30218         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30219
30220         save_LDFLAGS="$LDFLAGS"
30221         save_LIBS="$LIBS"
30222         LDFLAGS="$SQL_LIB"
30223         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30224 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30225 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30226   echo $ECHO_N "(cached) $ECHO_C" >&6
30227 else
30228   ac_check_lib_save_LIBS=$LIBS
30229 LIBS="-lndbclient -lstdc++ $LIBS"
30230 cat >conftest.$ac_ext <<_ACEOF
30231 /* confdefs.h.  */
30232 _ACEOF
30233 cat confdefs.h >>conftest.$ac_ext
30234 cat >>conftest.$ac_ext <<_ACEOF
30235 /* end confdefs.h.  */
30236
30237 /* Override any GCC internal prototype to avoid an error.
30238    Use char because int might match the return type of a GCC
30239    builtin and then its argument prototype would still apply.  */
30240 #ifdef __cplusplus
30241 extern "C"
30242 #endif
30243 char ndb_init ();
30244 int
30245 main ()
30246 {
30247 return ndb_init ();
30248   ;
30249   return 0;
30250 }
30251 _ACEOF
30252 rm -f conftest.$ac_objext conftest$ac_exeext
30253 if { (ac_try="$ac_link"
30254 case "(($ac_try" in
30255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30256   *) ac_try_echo=$ac_try;;
30257 esac
30258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30259   (eval "$ac_link") 2>conftest.er1
30260   ac_status=$?
30261   grep -v '^ *+' conftest.er1 >conftest.err
30262   rm -f conftest.er1
30263   cat conftest.err >&5
30264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265   (exit $ac_status); } && {
30266          test -z "$ac_c_werror_flag" ||
30267          test ! -s conftest.err
30268        } && test -s conftest$ac_exeext &&
30269        $as_test_x conftest$ac_exeext; then
30270   ac_cv_lib_ndbclient_ndb_init=yes
30271 else
30272   echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30274
30275         ac_cv_lib_ndbclient_ndb_init=no
30276 fi
30277
30278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30279       conftest$ac_exeext conftest.$ac_ext
30280 LIBS=$ac_check_lib_save_LIBS
30281 fi
30282 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30283 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30284 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30285   : ok
30286 else
30287
30288                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30289 echo "$as_me: error: could not locate ndbclient library" >&2;}
30290    { (exit 1); exit 1; }; }
30291
30292 fi
30293
30294         LIBS="$save_LIBS"
30295         LDFLAGS="$save_LDFLAGS"
30296
30297         if test "$ol_enable_ndb" = yes ; then
30298                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30299         fi
30300 fi
30301
30302 ol_icu=no
30303
30304 for ac_header in unicode/utypes.h
30305 do
30306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30308   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30311   echo $ECHO_N "(cached) $ECHO_C" >&6
30312 fi
30313 ac_res=`eval echo '${'$as_ac_Header'}'`
30314                { echo "$as_me:$LINENO: result: $ac_res" >&5
30315 echo "${ECHO_T}$ac_res" >&6; }
30316 else
30317   # Is the header compilable?
30318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30320 cat >conftest.$ac_ext <<_ACEOF
30321 /* confdefs.h.  */
30322 _ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h.  */
30326 $ac_includes_default
30327 #include <$ac_header>
30328 _ACEOF
30329 rm -f conftest.$ac_objext
30330 if { (ac_try="$ac_compile"
30331 case "(($ac_try" in
30332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30333   *) ac_try_echo=$ac_try;;
30334 esac
30335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30336   (eval "$ac_compile") 2>conftest.er1
30337   ac_status=$?
30338   grep -v '^ *+' conftest.er1 >conftest.err
30339   rm -f conftest.er1
30340   cat conftest.err >&5
30341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342   (exit $ac_status); } && {
30343          test -z "$ac_c_werror_flag" ||
30344          test ! -s conftest.err
30345        } && test -s conftest.$ac_objext; then
30346   ac_header_compiler=yes
30347 else
30348   echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30350
30351         ac_header_compiler=no
30352 fi
30353
30354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30356 echo "${ECHO_T}$ac_header_compiler" >&6; }
30357
30358 # Is the header present?
30359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30361 cat >conftest.$ac_ext <<_ACEOF
30362 /* confdefs.h.  */
30363 _ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h.  */
30367 #include <$ac_header>
30368 _ACEOF
30369 if { (ac_try="$ac_cpp conftest.$ac_ext"
30370 case "(($ac_try" in
30371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372   *) ac_try_echo=$ac_try;;
30373 esac
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30376   ac_status=$?
30377   grep -v '^ *+' conftest.er1 >conftest.err
30378   rm -f conftest.er1
30379   cat conftest.err >&5
30380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); } >/dev/null && {
30382          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30383          test ! -s conftest.err
30384        }; then
30385   ac_header_preproc=yes
30386 else
30387   echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30389
30390   ac_header_preproc=no
30391 fi
30392
30393 rm -f conftest.err conftest.$ac_ext
30394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30395 echo "${ECHO_T}$ac_header_preproc" >&6; }
30396
30397 # So?  What about this header?
30398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30399   yes:no: )
30400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30404     ac_header_preproc=yes
30405     ;;
30406   no:yes:* )
30407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30419     ( cat <<\_ASBOX
30420 ## --------------------------------------------- ##
30421 ## Report this to <http://www.openldap.org/its/> ##
30422 ## --------------------------------------------- ##
30423 _ASBOX
30424      ) | sed "s/^/$as_me: WARNING:     /" >&2
30425     ;;
30426 esac
30427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30430   echo $ECHO_N "(cached) $ECHO_C" >&6
30431 else
30432   eval "$as_ac_Header=\$ac_header_preproc"
30433 fi
30434 ac_res=`eval echo '${'$as_ac_Header'}'`
30435                { echo "$as_me:$LINENO: result: $ac_res" >&5
30436 echo "${ECHO_T}$ac_res" >&6; }
30437
30438 fi
30439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30440   cat >>confdefs.h <<_ACEOF
30441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30442 _ACEOF
30443
30444 fi
30445
30446 done
30447
30448 if test $ac_cv_header_unicode_utypes_h = yes ; then
30449                 OL_ICULIBS="-licuuc -licudata"
30450
30451         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30452 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30453 if test "${ol_cv_lib_icu+set}" = set; then
30454   echo $ECHO_N "(cached) $ECHO_C" >&6
30455 else
30456
30457                 ol_LIBS="$LIBS"
30458                 LIBS="$OL_ICULIBS $LIBS"
30459                 cat >conftest.$ac_ext <<_ACEOF
30460 /* confdefs.h.  */
30461 _ACEOF
30462 cat confdefs.h >>conftest.$ac_ext
30463 cat >>conftest.$ac_ext <<_ACEOF
30464 /* end confdefs.h.  */
30465
30466 #include <unicode/utypes.h>
30467
30468 int
30469 main ()
30470 {
30471
30472 (void) u_errorName(0);
30473
30474   ;
30475   return 0;
30476 }
30477 _ACEOF
30478 rm -f conftest.$ac_objext conftest$ac_exeext
30479 if { (ac_try="$ac_link"
30480 case "(($ac_try" in
30481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482   *) ac_try_echo=$ac_try;;
30483 esac
30484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485   (eval "$ac_link") 2>conftest.er1
30486   ac_status=$?
30487   grep -v '^ *+' conftest.er1 >conftest.err
30488   rm -f conftest.er1
30489   cat conftest.err >&5
30490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491   (exit $ac_status); } && {
30492          test -z "$ac_c_werror_flag" ||
30493          test ! -s conftest.err
30494        } && test -s conftest$ac_exeext &&
30495        $as_test_x conftest$ac_exeext; then
30496   ol_cv_lib_icu=yes
30497 else
30498   echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30500
30501         ol_cv_lib_icu=no
30502 fi
30503
30504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30505       conftest$ac_exeext conftest.$ac_ext
30506                 LIBS="$ol_LIBS"
30507
30508 fi
30509 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30510 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30511
30512         if test $ol_cv_lib_icu != no ; then
30513                 ol_icu="$OL_ICULIBS"
30514
30515 cat >>confdefs.h <<\_ACEOF
30516 #define HAVE_ICU 1
30517 _ACEOF
30518
30519         fi
30520 fi
30521
30522 if test "$ol_icu" = no ; then
30523         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30524 echo "$as_me: WARNING: ICU not available" >&2;}
30525 else
30526         ICU_LIBS="$ol_icu"
30527 fi
30528 WITH_SASL=no
30529 ol_link_sasl=no
30530 ol_link_spasswd=no
30531 if test $ol_with_cyrus_sasl != no ; then
30532
30533
30534 for ac_header in sasl/sasl.h sasl.h
30535 do
30536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30538   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30541   echo $ECHO_N "(cached) $ECHO_C" >&6
30542 fi
30543 ac_res=`eval echo '${'$as_ac_Header'}'`
30544                { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30546 else
30547   # Is the header compilable?
30548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30550 cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556 $ac_includes_default
30557 #include <$ac_header>
30558 _ACEOF
30559 rm -f conftest.$ac_objext
30560 if { (ac_try="$ac_compile"
30561 case "(($ac_try" in
30562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563   *) ac_try_echo=$ac_try;;
30564 esac
30565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566   (eval "$ac_compile") 2>conftest.er1
30567   ac_status=$?
30568   grep -v '^ *+' conftest.er1 >conftest.err
30569   rm -f conftest.er1
30570   cat conftest.err >&5
30571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572   (exit $ac_status); } && {
30573          test -z "$ac_c_werror_flag" ||
30574          test ! -s conftest.err
30575        } && test -s conftest.$ac_objext; then
30576   ac_header_compiler=yes
30577 else
30578   echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30580
30581         ac_header_compiler=no
30582 fi
30583
30584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30586 echo "${ECHO_T}$ac_header_compiler" >&6; }
30587
30588 # Is the header present?
30589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30591 cat >conftest.$ac_ext <<_ACEOF
30592 /* confdefs.h.  */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h.  */
30597 #include <$ac_header>
30598 _ACEOF
30599 if { (ac_try="$ac_cpp conftest.$ac_ext"
30600 case "(($ac_try" in
30601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602   *) ac_try_echo=$ac_try;;
30603 esac
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30606   ac_status=$?
30607   grep -v '^ *+' conftest.er1 >conftest.err
30608   rm -f conftest.er1
30609   cat conftest.err >&5
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); } >/dev/null && {
30612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30613          test ! -s conftest.err
30614        }; then
30615   ac_header_preproc=yes
30616 else
30617   echo "$as_me: failed program was:" >&5
30618 sed 's/^/| /' conftest.$ac_ext >&5
30619
30620   ac_header_preproc=no
30621 fi
30622
30623 rm -f conftest.err conftest.$ac_ext
30624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30625 echo "${ECHO_T}$ac_header_preproc" >&6; }
30626
30627 # So?  What about this header?
30628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30629   yes:no: )
30630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30634     ac_header_preproc=yes
30635     ;;
30636   no:yes:* )
30637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30649     ( cat <<\_ASBOX
30650 ## --------------------------------------------- ##
30651 ## Report this to <http://www.openldap.org/its/> ##
30652 ## --------------------------------------------- ##
30653 _ASBOX
30654      ) | sed "s/^/$as_me: WARNING:     /" >&2
30655     ;;
30656 esac
30657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30660   echo $ECHO_N "(cached) $ECHO_C" >&6
30661 else
30662   eval "$as_ac_Header=\$ac_header_preproc"
30663 fi
30664 ac_res=`eval echo '${'$as_ac_Header'}'`
30665                { echo "$as_me:$LINENO: result: $ac_res" >&5
30666 echo "${ECHO_T}$ac_res" >&6; }
30667
30668 fi
30669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30670   cat >>confdefs.h <<_ACEOF
30671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30672 _ACEOF
30673
30674 fi
30675
30676 done
30677
30678
30679         if test $ac_cv_header_sasl_sasl_h = yes ||
30680            test $ac_cv_header_sasl_h = yes; then
30681                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30682 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30683 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30684   echo $ECHO_N "(cached) $ECHO_C" >&6
30685 else
30686   ac_check_lib_save_LIBS=$LIBS
30687 LIBS="-lsasl2  $LIBS"
30688 cat >conftest.$ac_ext <<_ACEOF
30689 /* confdefs.h.  */
30690 _ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h.  */
30694
30695 /* Override any GCC internal prototype to avoid an error.
30696    Use char because int might match the return type of a GCC
30697    builtin and then its argument prototype would still apply.  */
30698 #ifdef __cplusplus
30699 extern "C"
30700 #endif
30701 char sasl_client_init ();
30702 int
30703 main ()
30704 {
30705 return sasl_client_init ();
30706   ;
30707   return 0;
30708 }
30709 _ACEOF
30710 rm -f conftest.$ac_objext conftest$ac_exeext
30711 if { (ac_try="$ac_link"
30712 case "(($ac_try" in
30713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714   *) ac_try_echo=$ac_try;;
30715 esac
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717   (eval "$ac_link") 2>conftest.er1
30718   ac_status=$?
30719   grep -v '^ *+' conftest.er1 >conftest.err
30720   rm -f conftest.er1
30721   cat conftest.err >&5
30722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723   (exit $ac_status); } && {
30724          test -z "$ac_c_werror_flag" ||
30725          test ! -s conftest.err
30726        } && test -s conftest$ac_exeext &&
30727        $as_test_x conftest$ac_exeext; then
30728   ac_cv_lib_sasl2_sasl_client_init=yes
30729 else
30730   echo "$as_me: failed program was:" >&5
30731 sed 's/^/| /' conftest.$ac_ext >&5
30732
30733         ac_cv_lib_sasl2_sasl_client_init=no
30734 fi
30735
30736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30737       conftest$ac_exeext conftest.$ac_ext
30738 LIBS=$ac_check_lib_save_LIBS
30739 fi
30740 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30741 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30742 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30743   ol_link_sasl="-lsasl2"
30744 else
30745   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30746 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30747 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30748   echo $ECHO_N "(cached) $ECHO_C" >&6
30749 else
30750   ac_check_lib_save_LIBS=$LIBS
30751 LIBS="-lsasl  $LIBS"
30752 cat >conftest.$ac_ext <<_ACEOF
30753 /* confdefs.h.  */
30754 _ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h.  */
30758
30759 /* Override any GCC internal prototype to avoid an error.
30760    Use char because int might match the return type of a GCC
30761    builtin and then its argument prototype would still apply.  */
30762 #ifdef __cplusplus
30763 extern "C"
30764 #endif
30765 char sasl_client_init ();
30766 int
30767 main ()
30768 {
30769 return sasl_client_init ();
30770   ;
30771   return 0;
30772 }
30773 _ACEOF
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (ac_try="$ac_link"
30776 case "(($ac_try" in
30777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778   *) ac_try_echo=$ac_try;;
30779 esac
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781   (eval "$ac_link") 2>conftest.er1
30782   ac_status=$?
30783   grep -v '^ *+' conftest.er1 >conftest.err
30784   rm -f conftest.er1
30785   cat conftest.err >&5
30786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); } && {
30788          test -z "$ac_c_werror_flag" ||
30789          test ! -s conftest.err
30790        } && test -s conftest$ac_exeext &&
30791        $as_test_x conftest$ac_exeext; then
30792   ac_cv_lib_sasl_sasl_client_init=yes
30793 else
30794   echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30796
30797         ac_cv_lib_sasl_sasl_client_init=no
30798 fi
30799
30800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801       conftest$ac_exeext conftest.$ac_ext
30802 LIBS=$ac_check_lib_save_LIBS
30803 fi
30804 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30805 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30806 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30807   ol_link_sasl="-lsasl"
30808 fi
30809
30810 fi
30811
30812         fi
30813
30814         if test $ol_link_sasl = no ; then
30815                 if test $ol_with_cyrus_sasl != auto ; then
30816                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30817 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30818    { (exit 1); exit 1; }; }
30819                 else
30820                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30821 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30822                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30823 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30824                         if test $ol_link_tls = no ; then
30825                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30826 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30827                         fi
30828                 fi
30829         else
30830                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30831 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30832 if test "${ol_cv_sasl_compat+set}" = set; then
30833   echo $ECHO_N "(cached) $ECHO_C" >&6
30834 else
30835
30836         cat >conftest.$ac_ext <<_ACEOF
30837 /* confdefs.h.  */
30838 _ACEOF
30839 cat confdefs.h >>conftest.$ac_ext
30840 cat >>conftest.$ac_ext <<_ACEOF
30841 /* end confdefs.h.  */
30842
30843 #ifdef HAVE_SASL_SASL_H
30844 #include <sasl/sasl.h>
30845 #else
30846 #include <sasl.h>
30847 #endif
30848
30849 /* Require 2.1.15+ */
30850 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30851         char *__sasl_compat = "2.2+ or better okay (we guess)";
30852 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30853         && SASL_VERSION_STEP >=15
30854         char *__sasl_compat = "2.1.15+ or better okay";
30855 #endif
30856
30857 _ACEOF
30858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30859   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30860   ol_cv_sasl_compat=yes
30861 else
30862   ol_cv_sasl_compat=no
30863 fi
30864 rm -f conftest*
30865
30866 fi
30867 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30868 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30869
30870                 if test $ol_cv_sasl_compat = no ; then
30871                         ol_link_sasl=no
30872                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30873 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30874    { (exit 1); exit 1; }; }
30875                 fi
30876
30877
30878 cat >>confdefs.h <<\_ACEOF
30879 #define HAVE_CYRUS_SASL 1
30880 _ACEOF
30881
30882                 SASL_LIBS="$ol_link_sasl"
30883                 if test $ol_enable_spasswd != no ; then
30884                         ol_link_spasswd=yes
30885                 fi
30886
30887                 ac_save_LIBS="$LIBS"
30888                 LIBS="$LIBS $ol_link_sasl"
30889                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30890 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30891 if test "${ac_cv_func_sasl_version+set}" = set; then
30892   echo $ECHO_N "(cached) $ECHO_C" >&6
30893 else
30894   cat >conftest.$ac_ext <<_ACEOF
30895 /* confdefs.h.  */
30896 _ACEOF
30897 cat confdefs.h >>conftest.$ac_ext
30898 cat >>conftest.$ac_ext <<_ACEOF
30899 /* end confdefs.h.  */
30900 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30902 #define sasl_version innocuous_sasl_version
30903
30904 /* System header to define __stub macros and hopefully few prototypes,
30905     which can conflict with char sasl_version (); below.
30906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30907     <limits.h> exists even on freestanding compilers.  */
30908
30909 #ifdef __STDC__
30910 # include <limits.h>
30911 #else
30912 # include <assert.h>
30913 #endif
30914
30915 #undef sasl_version
30916
30917 /* Override any GCC internal prototype to avoid an error.
30918    Use char because int might match the return type of a GCC
30919    builtin and then its argument prototype would still apply.  */
30920 #ifdef __cplusplus
30921 extern "C"
30922 #endif
30923 char sasl_version ();
30924 /* The GNU C library defines this for functions which it implements
30925     to always fail with ENOSYS.  Some functions are actually named
30926     something starting with __ and the normal name is an alias.  */
30927 #if defined __stub_sasl_version || defined __stub___sasl_version
30928 choke me
30929 #endif
30930
30931 int
30932 main ()
30933 {
30934 return sasl_version ();
30935   ;
30936   return 0;
30937 }
30938 _ACEOF
30939 rm -f conftest.$ac_objext conftest$ac_exeext
30940 if { (ac_try="$ac_link"
30941 case "(($ac_try" in
30942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943   *) ac_try_echo=$ac_try;;
30944 esac
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946   (eval "$ac_link") 2>conftest.er1
30947   ac_status=$?
30948   grep -v '^ *+' conftest.er1 >conftest.err
30949   rm -f conftest.er1
30950   cat conftest.err >&5
30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952   (exit $ac_status); } && {
30953          test -z "$ac_c_werror_flag" ||
30954          test ! -s conftest.err
30955        } && test -s conftest$ac_exeext &&
30956        $as_test_x conftest$ac_exeext; then
30957   ac_cv_func_sasl_version=yes
30958 else
30959   echo "$as_me: failed program was:" >&5
30960 sed 's/^/| /' conftest.$ac_ext >&5
30961
30962         ac_cv_func_sasl_version=no
30963 fi
30964
30965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30966       conftest$ac_exeext conftest.$ac_ext
30967 fi
30968 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30969 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30970 if test $ac_cv_func_sasl_version = yes; then
30971
30972 cat >>confdefs.h <<\_ACEOF
30973 #define HAVE_SASL_VERSION 1
30974 _ACEOF
30975
30976 fi
30977
30978                 LIBS="$ac_save_LIBS"
30979
30980                 WITH_SASL=yes
30981         fi
30982
30983 else
30984         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30985 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30986         if test $ol_link_tls = no ; then
30987                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30988 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30989         fi
30990 fi
30991
30992 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30993         dev=no
30994         if test -r /dev/urandom ; then
30995                 dev="/dev/urandom";
30996         elif test -r /idev/urandom ; then
30997                 dev="/idev/urandom";
30998         elif test -r /dev/srandom ; then
30999                 dev="/dev/srandom";
31000         elif test -r /dev/random ; then
31001                 dev="/dev/random";
31002         elif test -r /idev/random ; then
31003                 dev="/idev/random";
31004         fi
31005
31006         if test $dev != no ; then
31007
31008 cat >>confdefs.h <<_ACEOF
31009 #define URANDOM_DEVICE "$dev"
31010 _ACEOF
31011
31012         fi
31013 fi
31014
31015 ol_link_fetch=no
31016 if test $ol_with_fetch != no ; then
31017         ol_LIBS=$LIBS
31018 LIBS="-lfetch -lcom_err $LIBS"
31019 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31020 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31021 if test "${ol_cv_lib_fetch+set}" = set; then
31022   echo $ECHO_N "(cached) $ECHO_C" >&6
31023 else
31024
31025         cat >conftest.$ac_ext <<_ACEOF
31026 /* confdefs.h.  */
31027 _ACEOF
31028 cat confdefs.h >>conftest.$ac_ext
31029 cat >>conftest.$ac_ext <<_ACEOF
31030 /* end confdefs.h.  */
31031
31032 #ifdef HAVE_SYS_PARAM_H
31033 #include <sys/param.h>
31034 #endif
31035 #include <stdio.h>
31036 #include <fetch.h>
31037 int
31038 main ()
31039 {
31040 struct url *u = fetchParseURL("file:///");
31041   ;
31042   return 0;
31043 }
31044 _ACEOF
31045 rm -f conftest.$ac_objext conftest$ac_exeext
31046 if { (ac_try="$ac_link"
31047 case "(($ac_try" in
31048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049   *) ac_try_echo=$ac_try;;
31050 esac
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052   (eval "$ac_link") 2>conftest.er1
31053   ac_status=$?
31054   grep -v '^ *+' conftest.er1 >conftest.err
31055   rm -f conftest.er1
31056   cat conftest.err >&5
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); } && {
31059          test -z "$ac_c_werror_flag" ||
31060          test ! -s conftest.err
31061        } && test -s conftest$ac_exeext &&
31062        $as_test_x conftest$ac_exeext; then
31063   ol_cv_lib_fetch=yes
31064 else
31065   echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31067
31068         ol_cv_lib_fetch=no
31069 fi
31070
31071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31072       conftest$ac_exeext conftest.$ac_ext
31073 fi
31074 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31075 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31076 LIBS=$ol_LIBS
31077 if test $ol_cv_lib_fetch != no ; then
31078         ol_link_fetch="-lfetch -lcom_err"
31079
31080 cat >>confdefs.h <<\_ACEOF
31081 #define HAVE_FETCH 1
31082 _ACEOF
31083
31084 fi
31085
31086
31087         if test $ol_cv_lib_fetch != no ; then
31088                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31089                 ol_link_fetch=freebsd
31090
31091         elif test $ol_with_fetch != auto ; then
31092                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31093 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31094    { (exit 1); exit 1; }; }
31095         fi
31096 fi
31097
31098 if test $ol_enable_crypt != no ; then
31099         save_LIBS="$LIBS"
31100         LIBS="$TLS_LIBS $LIBS"
31101
31102         { echo "$as_me:$LINENO: checking for crypt" >&5
31103 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31104 if test "${ac_cv_func_crypt+set}" = set; then
31105   echo $ECHO_N "(cached) $ECHO_C" >&6
31106 else
31107   cat >conftest.$ac_ext <<_ACEOF
31108 /* confdefs.h.  */
31109 _ACEOF
31110 cat confdefs.h >>conftest.$ac_ext
31111 cat >>conftest.$ac_ext <<_ACEOF
31112 /* end confdefs.h.  */
31113 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31115 #define crypt innocuous_crypt
31116
31117 /* System header to define __stub macros and hopefully few prototypes,
31118     which can conflict with char crypt (); below.
31119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31120     <limits.h> exists even on freestanding compilers.  */
31121
31122 #ifdef __STDC__
31123 # include <limits.h>
31124 #else
31125 # include <assert.h>
31126 #endif
31127
31128 #undef crypt
31129
31130 /* Override any GCC internal prototype to avoid an error.
31131    Use char because int might match the return type of a GCC
31132    builtin and then its argument prototype would still apply.  */
31133 #ifdef __cplusplus
31134 extern "C"
31135 #endif
31136 char crypt ();
31137 /* The GNU C library defines this for functions which it implements
31138     to always fail with ENOSYS.  Some functions are actually named
31139     something starting with __ and the normal name is an alias.  */
31140 #if defined __stub_crypt || defined __stub___crypt
31141 choke me
31142 #endif
31143
31144 int
31145 main ()
31146 {
31147 return crypt ();
31148   ;
31149   return 0;
31150 }
31151 _ACEOF
31152 rm -f conftest.$ac_objext conftest$ac_exeext
31153 if { (ac_try="$ac_link"
31154 case "(($ac_try" in
31155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156   *) ac_try_echo=$ac_try;;
31157 esac
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159   (eval "$ac_link") 2>conftest.er1
31160   ac_status=$?
31161   grep -v '^ *+' conftest.er1 >conftest.err
31162   rm -f conftest.er1
31163   cat conftest.err >&5
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); } && {
31166          test -z "$ac_c_werror_flag" ||
31167          test ! -s conftest.err
31168        } && test -s conftest$ac_exeext &&
31169        $as_test_x conftest$ac_exeext; then
31170   ac_cv_func_crypt=yes
31171 else
31172   echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31174
31175         ac_cv_func_crypt=no
31176 fi
31177
31178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31179       conftest$ac_exeext conftest.$ac_ext
31180 fi
31181 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31182 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31183 if test $ac_cv_func_crypt = yes; then
31184   have_crypt=yes
31185 else
31186
31187                 LIBS="$save_LIBS"
31188                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31189 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31190 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31191   echo $ECHO_N "(cached) $ECHO_C" >&6
31192 else
31193   ac_check_lib_save_LIBS=$LIBS
31194 LIBS="-lcrypt  $LIBS"
31195 cat >conftest.$ac_ext <<_ACEOF
31196 /* confdefs.h.  */
31197 _ACEOF
31198 cat confdefs.h >>conftest.$ac_ext
31199 cat >>conftest.$ac_ext <<_ACEOF
31200 /* end confdefs.h.  */
31201
31202 /* Override any GCC internal prototype to avoid an error.
31203    Use char because int might match the return type of a GCC
31204    builtin and then its argument prototype would still apply.  */
31205 #ifdef __cplusplus
31206 extern "C"
31207 #endif
31208 char crypt ();
31209 int
31210 main ()
31211 {
31212 return crypt ();
31213   ;
31214   return 0;
31215 }
31216 _ACEOF
31217 rm -f conftest.$ac_objext conftest$ac_exeext
31218 if { (ac_try="$ac_link"
31219 case "(($ac_try" in
31220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221   *) ac_try_echo=$ac_try;;
31222 esac
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224   (eval "$ac_link") 2>conftest.er1
31225   ac_status=$?
31226   grep -v '^ *+' conftest.er1 >conftest.err
31227   rm -f conftest.er1
31228   cat conftest.err >&5
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); } && {
31231          test -z "$ac_c_werror_flag" ||
31232          test ! -s conftest.err
31233        } && test -s conftest$ac_exeext &&
31234        $as_test_x conftest$ac_exeext; then
31235   ac_cv_lib_crypt_crypt=yes
31236 else
31237   echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31239
31240         ac_cv_lib_crypt_crypt=no
31241 fi
31242
31243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31244       conftest$ac_exeext conftest.$ac_ext
31245 LIBS=$ac_check_lib_save_LIBS
31246 fi
31247 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31248 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31249 if test $ac_cv_lib_crypt_crypt = yes; then
31250   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31251                         have_crypt=yes
31252 else
31253   have_crypt=no
31254 fi
31255
31256 fi
31257
31258
31259         LIBS="$save_LIBS"
31260
31261         if test $have_crypt = yes ; then
31262
31263 cat >>confdefs.h <<\_ACEOF
31264 #define HAVE_CRYPT 1
31265 _ACEOF
31266
31267         else
31268                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31269 echo "$as_me: WARNING: could not find crypt" >&2;}
31270                 if test $ol_enable_crypt = yes ; then
31271                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31272 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31273    { (exit 1); exit 1; }; }
31274                 fi
31275
31276                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31277 echo "$as_me: WARNING: disabling crypt support" >&2;}
31278                 ol_enable_crypt=no
31279         fi
31280 fi
31281
31282 if test $ol_enable_proctitle != no ; then
31283         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31284 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31285 if test "${ac_cv_func_setproctitle+set}" = set; then
31286   echo $ECHO_N "(cached) $ECHO_C" >&6
31287 else
31288   cat >conftest.$ac_ext <<_ACEOF
31289 /* confdefs.h.  */
31290 _ACEOF
31291 cat confdefs.h >>conftest.$ac_ext
31292 cat >>conftest.$ac_ext <<_ACEOF
31293 /* end confdefs.h.  */
31294 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31296 #define setproctitle innocuous_setproctitle
31297
31298 /* System header to define __stub macros and hopefully few prototypes,
31299     which can conflict with char setproctitle (); below.
31300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31301     <limits.h> exists even on freestanding compilers.  */
31302
31303 #ifdef __STDC__
31304 # include <limits.h>
31305 #else
31306 # include <assert.h>
31307 #endif
31308
31309 #undef setproctitle
31310
31311 /* Override any GCC internal prototype to avoid an error.
31312    Use char because int might match the return type of a GCC
31313    builtin and then its argument prototype would still apply.  */
31314 #ifdef __cplusplus
31315 extern "C"
31316 #endif
31317 char setproctitle ();
31318 /* The GNU C library defines this for functions which it implements
31319     to always fail with ENOSYS.  Some functions are actually named
31320     something starting with __ and the normal name is an alias.  */
31321 #if defined __stub_setproctitle || defined __stub___setproctitle
31322 choke me
31323 #endif
31324
31325 int
31326 main ()
31327 {
31328 return setproctitle ();
31329   ;
31330   return 0;
31331 }
31332 _ACEOF
31333 rm -f conftest.$ac_objext conftest$ac_exeext
31334 if { (ac_try="$ac_link"
31335 case "(($ac_try" in
31336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337   *) ac_try_echo=$ac_try;;
31338 esac
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340   (eval "$ac_link") 2>conftest.er1
31341   ac_status=$?
31342   grep -v '^ *+' conftest.er1 >conftest.err
31343   rm -f conftest.er1
31344   cat conftest.err >&5
31345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346   (exit $ac_status); } && {
31347          test -z "$ac_c_werror_flag" ||
31348          test ! -s conftest.err
31349        } && test -s conftest$ac_exeext &&
31350        $as_test_x conftest$ac_exeext; then
31351   ac_cv_func_setproctitle=yes
31352 else
31353   echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31355
31356         ac_cv_func_setproctitle=no
31357 fi
31358
31359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31360       conftest$ac_exeext conftest.$ac_ext
31361 fi
31362 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31363 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31364 if test $ac_cv_func_setproctitle = yes; then
31365   have_setproctitle=yes
31366 else
31367
31368                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31369 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31370 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31371   echo $ECHO_N "(cached) $ECHO_C" >&6
31372 else
31373   ac_check_lib_save_LIBS=$LIBS
31374 LIBS="-lutil  $LIBS"
31375 cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h.  */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h.  */
31381
31382 /* Override any GCC internal prototype to avoid an error.
31383    Use char because int might match the return type of a GCC
31384    builtin and then its argument prototype would still apply.  */
31385 #ifdef __cplusplus
31386 extern "C"
31387 #endif
31388 char setproctitle ();
31389 int
31390 main ()
31391 {
31392 return setproctitle ();
31393   ;
31394   return 0;
31395 }
31396 _ACEOF
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (ac_try="$ac_link"
31399 case "(($ac_try" in
31400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401   *) ac_try_echo=$ac_try;;
31402 esac
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404   (eval "$ac_link") 2>conftest.er1
31405   ac_status=$?
31406   grep -v '^ *+' conftest.er1 >conftest.err
31407   rm -f conftest.er1
31408   cat conftest.err >&5
31409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410   (exit $ac_status); } && {
31411          test -z "$ac_c_werror_flag" ||
31412          test ! -s conftest.err
31413        } && test -s conftest$ac_exeext &&
31414        $as_test_x conftest$ac_exeext; then
31415   ac_cv_lib_util_setproctitle=yes
31416 else
31417   echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31419
31420         ac_cv_lib_util_setproctitle=no
31421 fi
31422
31423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31424       conftest$ac_exeext conftest.$ac_ext
31425 LIBS=$ac_check_lib_save_LIBS
31426 fi
31427 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31428 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31429 if test $ac_cv_lib_util_setproctitle = yes; then
31430   have_setproctitle=yes
31431                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31432 else
31433   have_setproctitle=no
31434                         case " $LIBOBJS " in
31435   *" setproctitle.$ac_objext "* ) ;;
31436   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31437  ;;
31438 esac
31439
31440                         LIBSRCS="$LIBSRCS setproctitle.c"
31441 fi
31442
31443 fi
31444
31445
31446         if test $have_setproctitle = yes ; then
31447
31448 cat >>confdefs.h <<\_ACEOF
31449 #define HAVE_SETPROCTITLE 1
31450 _ACEOF
31451
31452         fi
31453 fi
31454
31455 if test $ol_enable_slp != no ; then
31456
31457 for ac_header in slp.h
31458 do
31459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31461   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31464   echo $ECHO_N "(cached) $ECHO_C" >&6
31465 fi
31466 ac_res=`eval echo '${'$as_ac_Header'}'`
31467                { echo "$as_me:$LINENO: result: $ac_res" >&5
31468 echo "${ECHO_T}$ac_res" >&6; }
31469 else
31470   # Is the header compilable?
31471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31473 cat >conftest.$ac_ext <<_ACEOF
31474 /* confdefs.h.  */
31475 _ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h.  */
31479 $ac_includes_default
31480 #include <$ac_header>
31481 _ACEOF
31482 rm -f conftest.$ac_objext
31483 if { (ac_try="$ac_compile"
31484 case "(($ac_try" in
31485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486   *) ac_try_echo=$ac_try;;
31487 esac
31488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489   (eval "$ac_compile") 2>conftest.er1
31490   ac_status=$?
31491   grep -v '^ *+' conftest.er1 >conftest.err
31492   rm -f conftest.er1
31493   cat conftest.err >&5
31494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495   (exit $ac_status); } && {
31496          test -z "$ac_c_werror_flag" ||
31497          test ! -s conftest.err
31498        } && test -s conftest.$ac_objext; then
31499   ac_header_compiler=yes
31500 else
31501   echo "$as_me: failed program was:" >&5
31502 sed 's/^/| /' conftest.$ac_ext >&5
31503
31504         ac_header_compiler=no
31505 fi
31506
31507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31509 echo "${ECHO_T}$ac_header_compiler" >&6; }
31510
31511 # Is the header present?
31512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31514 cat >conftest.$ac_ext <<_ACEOF
31515 /* confdefs.h.  */
31516 _ACEOF
31517 cat confdefs.h >>conftest.$ac_ext
31518 cat >>conftest.$ac_ext <<_ACEOF
31519 /* end confdefs.h.  */
31520 #include <$ac_header>
31521 _ACEOF
31522 if { (ac_try="$ac_cpp conftest.$ac_ext"
31523 case "(($ac_try" in
31524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525   *) ac_try_echo=$ac_try;;
31526 esac
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31529   ac_status=$?
31530   grep -v '^ *+' conftest.er1 >conftest.err
31531   rm -f conftest.er1
31532   cat conftest.err >&5
31533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); } >/dev/null && {
31535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31536          test ! -s conftest.err
31537        }; then
31538   ac_header_preproc=yes
31539 else
31540   echo "$as_me: failed program was:" >&5
31541 sed 's/^/| /' conftest.$ac_ext >&5
31542
31543   ac_header_preproc=no
31544 fi
31545
31546 rm -f conftest.err conftest.$ac_ext
31547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31548 echo "${ECHO_T}$ac_header_preproc" >&6; }
31549
31550 # So?  What about this header?
31551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31552   yes:no: )
31553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31557     ac_header_preproc=yes
31558     ;;
31559   no:yes:* )
31560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31562     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31563 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31564     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31566     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31567 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31570     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31572     ( cat <<\_ASBOX
31573 ## --------------------------------------------- ##
31574 ## Report this to <http://www.openldap.org/its/> ##
31575 ## --------------------------------------------- ##
31576 _ASBOX
31577      ) | sed "s/^/$as_me: WARNING:     /" >&2
31578     ;;
31579 esac
31580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31583   echo $ECHO_N "(cached) $ECHO_C" >&6
31584 else
31585   eval "$as_ac_Header=\$ac_header_preproc"
31586 fi
31587 ac_res=`eval echo '${'$as_ac_Header'}'`
31588                { echo "$as_me:$LINENO: result: $ac_res" >&5
31589 echo "${ECHO_T}$ac_res" >&6; }
31590
31591 fi
31592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31593   cat >>confdefs.h <<_ACEOF
31594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31595 _ACEOF
31596
31597 fi
31598
31599 done
31600
31601
31602         if test $ac_cv_header_slp_h = yes ; then
31603                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31604 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31605 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31606   echo $ECHO_N "(cached) $ECHO_C" >&6
31607 else
31608   ac_check_lib_save_LIBS=$LIBS
31609 LIBS="-lslp  $LIBS"
31610 cat >conftest.$ac_ext <<_ACEOF
31611 /* confdefs.h.  */
31612 _ACEOF
31613 cat confdefs.h >>conftest.$ac_ext
31614 cat >>conftest.$ac_ext <<_ACEOF
31615 /* end confdefs.h.  */
31616
31617 /* Override any GCC internal prototype to avoid an error.
31618    Use char because int might match the return type of a GCC
31619    builtin and then its argument prototype would still apply.  */
31620 #ifdef __cplusplus
31621 extern "C"
31622 #endif
31623 char SLPOpen ();
31624 int
31625 main ()
31626 {
31627 return SLPOpen ();
31628   ;
31629   return 0;
31630 }
31631 _ACEOF
31632 rm -f conftest.$ac_objext conftest$ac_exeext
31633 if { (ac_try="$ac_link"
31634 case "(($ac_try" in
31635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31636   *) ac_try_echo=$ac_try;;
31637 esac
31638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31639   (eval "$ac_link") 2>conftest.er1
31640   ac_status=$?
31641   grep -v '^ *+' conftest.er1 >conftest.err
31642   rm -f conftest.er1
31643   cat conftest.err >&5
31644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645   (exit $ac_status); } && {
31646          test -z "$ac_c_werror_flag" ||
31647          test ! -s conftest.err
31648        } && test -s conftest$ac_exeext &&
31649        $as_test_x conftest$ac_exeext; then
31650   ac_cv_lib_slp_SLPOpen=yes
31651 else
31652   echo "$as_me: failed program was:" >&5
31653 sed 's/^/| /' conftest.$ac_ext >&5
31654
31655         ac_cv_lib_slp_SLPOpen=no
31656 fi
31657
31658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31659       conftest$ac_exeext conftest.$ac_ext
31660 LIBS=$ac_check_lib_save_LIBS
31661 fi
31662 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31663 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31664 if test $ac_cv_lib_slp_SLPOpen = yes; then
31665   have_slp=yes
31666 else
31667   have_slp=no
31668 fi
31669
31670                 if test $have_slp = yes ; then
31671
31672 cat >>confdefs.h <<\_ACEOF
31673 #define HAVE_SLP 1
31674 _ACEOF
31675
31676                         SLAPD_SLP_LIBS=-lslp
31677                 fi
31678
31679         elif test $ol_enable_slp = yes ; then
31680                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31681 echo "$as_me: error: SLP not found" >&2;}
31682    { (exit 1); exit 1; }; }
31683         fi
31684 fi
31685
31686
31687 { echo "$as_me:$LINENO: checking for mode_t" >&5
31688 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31689 if test "${ac_cv_type_mode_t+set}" = set; then
31690   echo $ECHO_N "(cached) $ECHO_C" >&6
31691 else
31692   cat >conftest.$ac_ext <<_ACEOF
31693 /* confdefs.h.  */
31694 _ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h.  */
31698 $ac_includes_default
31699 typedef mode_t ac__type_new_;
31700 int
31701 main ()
31702 {
31703 if ((ac__type_new_ *) 0)
31704   return 0;
31705 if (sizeof (ac__type_new_))
31706   return 0;
31707   ;
31708   return 0;
31709 }
31710 _ACEOF
31711 rm -f conftest.$ac_objext
31712 if { (ac_try="$ac_compile"
31713 case "(($ac_try" in
31714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715   *) ac_try_echo=$ac_try;;
31716 esac
31717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718   (eval "$ac_compile") 2>conftest.er1
31719   ac_status=$?
31720   grep -v '^ *+' conftest.er1 >conftest.err
31721   rm -f conftest.er1
31722   cat conftest.err >&5
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); } && {
31725          test -z "$ac_c_werror_flag" ||
31726          test ! -s conftest.err
31727        } && test -s conftest.$ac_objext; then
31728   ac_cv_type_mode_t=yes
31729 else
31730   echo "$as_me: failed program was:" >&5
31731 sed 's/^/| /' conftest.$ac_ext >&5
31732
31733         ac_cv_type_mode_t=no
31734 fi
31735
31736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31737 fi
31738 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31739 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31740 if test $ac_cv_type_mode_t = yes; then
31741   :
31742 else
31743
31744 cat >>confdefs.h <<_ACEOF
31745 #define mode_t int
31746 _ACEOF
31747
31748 fi
31749
31750 { echo "$as_me:$LINENO: checking for off_t" >&5
31751 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31752 if test "${ac_cv_type_off_t+set}" = set; then
31753   echo $ECHO_N "(cached) $ECHO_C" >&6
31754 else
31755   cat >conftest.$ac_ext <<_ACEOF
31756 /* confdefs.h.  */
31757 _ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h.  */
31761 $ac_includes_default
31762 typedef off_t ac__type_new_;
31763 int
31764 main ()
31765 {
31766 if ((ac__type_new_ *) 0)
31767   return 0;
31768 if (sizeof (ac__type_new_))
31769   return 0;
31770   ;
31771   return 0;
31772 }
31773 _ACEOF
31774 rm -f conftest.$ac_objext
31775 if { (ac_try="$ac_compile"
31776 case "(($ac_try" in
31777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778   *) ac_try_echo=$ac_try;;
31779 esac
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781   (eval "$ac_compile") 2>conftest.er1
31782   ac_status=$?
31783   grep -v '^ *+' conftest.er1 >conftest.err
31784   rm -f conftest.er1
31785   cat conftest.err >&5
31786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787   (exit $ac_status); } && {
31788          test -z "$ac_c_werror_flag" ||
31789          test ! -s conftest.err
31790        } && test -s conftest.$ac_objext; then
31791   ac_cv_type_off_t=yes
31792 else
31793   echo "$as_me: failed program was:" >&5
31794 sed 's/^/| /' conftest.$ac_ext >&5
31795
31796         ac_cv_type_off_t=no
31797 fi
31798
31799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31800 fi
31801 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31802 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31803 if test $ac_cv_type_off_t = yes; then
31804   :
31805 else
31806
31807 cat >>confdefs.h <<_ACEOF
31808 #define off_t long
31809 _ACEOF
31810
31811 fi
31812
31813 { echo "$as_me:$LINENO: checking for pid_t" >&5
31814 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31815 if test "${ac_cv_type_pid_t+set}" = set; then
31816   echo $ECHO_N "(cached) $ECHO_C" >&6
31817 else
31818   cat >conftest.$ac_ext <<_ACEOF
31819 /* confdefs.h.  */
31820 _ACEOF
31821 cat confdefs.h >>conftest.$ac_ext
31822 cat >>conftest.$ac_ext <<_ACEOF
31823 /* end confdefs.h.  */
31824 $ac_includes_default
31825 typedef pid_t ac__type_new_;
31826 int
31827 main ()
31828 {
31829 if ((ac__type_new_ *) 0)
31830   return 0;
31831 if (sizeof (ac__type_new_))
31832   return 0;
31833   ;
31834   return 0;
31835 }
31836 _ACEOF
31837 rm -f conftest.$ac_objext
31838 if { (ac_try="$ac_compile"
31839 case "(($ac_try" in
31840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841   *) ac_try_echo=$ac_try;;
31842 esac
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844   (eval "$ac_compile") 2>conftest.er1
31845   ac_status=$?
31846   grep -v '^ *+' conftest.er1 >conftest.err
31847   rm -f conftest.er1
31848   cat conftest.err >&5
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); } && {
31851          test -z "$ac_c_werror_flag" ||
31852          test ! -s conftest.err
31853        } && test -s conftest.$ac_objext; then
31854   ac_cv_type_pid_t=yes
31855 else
31856   echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31858
31859         ac_cv_type_pid_t=no
31860 fi
31861
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31863 fi
31864 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31865 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31866 if test $ac_cv_type_pid_t = yes; then
31867   :
31868 else
31869
31870 cat >>confdefs.h <<_ACEOF
31871 #define pid_t int
31872 _ACEOF
31873
31874 fi
31875
31876 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31877 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31878 if test "${ac_cv_type_ssize_t+set}" = set; then
31879   echo $ECHO_N "(cached) $ECHO_C" >&6
31880 else
31881   cat >conftest.$ac_ext <<_ACEOF
31882 /* confdefs.h.  */
31883 _ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h.  */
31887 $ac_includes_default
31888 typedef ssize_t ac__type_new_;
31889 int
31890 main ()
31891 {
31892 if ((ac__type_new_ *) 0)
31893   return 0;
31894 if (sizeof (ac__type_new_))
31895   return 0;
31896   ;
31897   return 0;
31898 }
31899 _ACEOF
31900 rm -f conftest.$ac_objext
31901 if { (ac_try="$ac_compile"
31902 case "(($ac_try" in
31903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904   *) ac_try_echo=$ac_try;;
31905 esac
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907   (eval "$ac_compile") 2>conftest.er1
31908   ac_status=$?
31909   grep -v '^ *+' conftest.er1 >conftest.err
31910   rm -f conftest.er1
31911   cat conftest.err >&5
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); } && {
31914          test -z "$ac_c_werror_flag" ||
31915          test ! -s conftest.err
31916        } && test -s conftest.$ac_objext; then
31917   ac_cv_type_ssize_t=yes
31918 else
31919   echo "$as_me: failed program was:" >&5
31920 sed 's/^/| /' conftest.$ac_ext >&5
31921
31922         ac_cv_type_ssize_t=no
31923 fi
31924
31925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31926 fi
31927 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31928 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31929 if test $ac_cv_type_ssize_t = yes; then
31930   :
31931 else
31932
31933 cat >>confdefs.h <<_ACEOF
31934 #define ssize_t signed int
31935 _ACEOF
31936
31937 fi
31938
31939 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31940 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31941 if test "${ac_cv_type_caddr_t+set}" = set; then
31942   echo $ECHO_N "(cached) $ECHO_C" >&6
31943 else
31944   cat >conftest.$ac_ext <<_ACEOF
31945 /* confdefs.h.  */
31946 _ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h.  */
31950 $ac_includes_default
31951 typedef caddr_t ac__type_new_;
31952 int
31953 main ()
31954 {
31955 if ((ac__type_new_ *) 0)
31956   return 0;
31957 if (sizeof (ac__type_new_))
31958   return 0;
31959   ;
31960   return 0;
31961 }
31962 _ACEOF
31963 rm -f conftest.$ac_objext
31964 if { (ac_try="$ac_compile"
31965 case "(($ac_try" in
31966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967   *) ac_try_echo=$ac_try;;
31968 esac
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970   (eval "$ac_compile") 2>conftest.er1
31971   ac_status=$?
31972   grep -v '^ *+' conftest.er1 >conftest.err
31973   rm -f conftest.er1
31974   cat conftest.err >&5
31975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976   (exit $ac_status); } && {
31977          test -z "$ac_c_werror_flag" ||
31978          test ! -s conftest.err
31979        } && test -s conftest.$ac_objext; then
31980   ac_cv_type_caddr_t=yes
31981 else
31982   echo "$as_me: failed program was:" >&5
31983 sed 's/^/| /' conftest.$ac_ext >&5
31984
31985         ac_cv_type_caddr_t=no
31986 fi
31987
31988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31989 fi
31990 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31991 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31992 if test $ac_cv_type_caddr_t = yes; then
31993   :
31994 else
31995
31996 cat >>confdefs.h <<_ACEOF
31997 #define caddr_t char *
31998 _ACEOF
31999
32000 fi
32001
32002 { echo "$as_me:$LINENO: checking for size_t" >&5
32003 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32004 if test "${ac_cv_type_size_t+set}" = set; then
32005   echo $ECHO_N "(cached) $ECHO_C" >&6
32006 else
32007   cat >conftest.$ac_ext <<_ACEOF
32008 /* confdefs.h.  */
32009 _ACEOF
32010 cat confdefs.h >>conftest.$ac_ext
32011 cat >>conftest.$ac_ext <<_ACEOF
32012 /* end confdefs.h.  */
32013 $ac_includes_default
32014 typedef size_t ac__type_new_;
32015 int
32016 main ()
32017 {
32018 if ((ac__type_new_ *) 0)
32019   return 0;
32020 if (sizeof (ac__type_new_))
32021   return 0;
32022   ;
32023   return 0;
32024 }
32025 _ACEOF
32026 rm -f conftest.$ac_objext
32027 if { (ac_try="$ac_compile"
32028 case "(($ac_try" in
32029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32030   *) ac_try_echo=$ac_try;;
32031 esac
32032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32033   (eval "$ac_compile") 2>conftest.er1
32034   ac_status=$?
32035   grep -v '^ *+' conftest.er1 >conftest.err
32036   rm -f conftest.er1
32037   cat conftest.err >&5
32038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039   (exit $ac_status); } && {
32040          test -z "$ac_c_werror_flag" ||
32041          test ! -s conftest.err
32042        } && test -s conftest.$ac_objext; then
32043   ac_cv_type_size_t=yes
32044 else
32045   echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.$ac_ext >&5
32047
32048         ac_cv_type_size_t=no
32049 fi
32050
32051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32052 fi
32053 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32054 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32055 if test $ac_cv_type_size_t = yes; then
32056   :
32057 else
32058
32059 cat >>confdefs.h <<_ACEOF
32060 #define size_t unsigned
32061 _ACEOF
32062
32063 fi
32064
32065
32066 { echo "$as_me:$LINENO: checking for long long" >&5
32067 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32068 if test "${ac_cv_type_long_long+set}" = set; then
32069   echo $ECHO_N "(cached) $ECHO_C" >&6
32070 else
32071   cat >conftest.$ac_ext <<_ACEOF
32072 /* confdefs.h.  */
32073 _ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h.  */
32077 $ac_includes_default
32078 typedef long long ac__type_new_;
32079 int
32080 main ()
32081 {
32082 if ((ac__type_new_ *) 0)
32083   return 0;
32084 if (sizeof (ac__type_new_))
32085   return 0;
32086   ;
32087   return 0;
32088 }
32089 _ACEOF
32090 rm -f conftest.$ac_objext
32091 if { (ac_try="$ac_compile"
32092 case "(($ac_try" in
32093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094   *) ac_try_echo=$ac_try;;
32095 esac
32096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097   (eval "$ac_compile") 2>conftest.er1
32098   ac_status=$?
32099   grep -v '^ *+' conftest.er1 >conftest.err
32100   rm -f conftest.er1
32101   cat conftest.err >&5
32102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103   (exit $ac_status); } && {
32104          test -z "$ac_c_werror_flag" ||
32105          test ! -s conftest.err
32106        } && test -s conftest.$ac_objext; then
32107   ac_cv_type_long_long=yes
32108 else
32109   echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112         ac_cv_type_long_long=no
32113 fi
32114
32115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32116 fi
32117 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32118 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32119 if test $ac_cv_type_long_long = yes; then
32120
32121 cat >>confdefs.h <<_ACEOF
32122 #define HAVE_LONG_LONG 1
32123 _ACEOF
32124
32125
32126 fi
32127
32128 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32129 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32130 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32131   echo $ECHO_N "(cached) $ECHO_C" >&6
32132 else
32133   cat >conftest.$ac_ext <<_ACEOF
32134 /* confdefs.h.  */
32135 _ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h.  */
32139 $ac_includes_default
32140 typedef ptrdiff_t ac__type_new_;
32141 int
32142 main ()
32143 {
32144 if ((ac__type_new_ *) 0)
32145   return 0;
32146 if (sizeof (ac__type_new_))
32147   return 0;
32148   ;
32149   return 0;
32150 }
32151 _ACEOF
32152 rm -f conftest.$ac_objext
32153 if { (ac_try="$ac_compile"
32154 case "(($ac_try" in
32155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156   *) ac_try_echo=$ac_try;;
32157 esac
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159   (eval "$ac_compile") 2>conftest.er1
32160   ac_status=$?
32161   grep -v '^ *+' conftest.er1 >conftest.err
32162   rm -f conftest.er1
32163   cat conftest.err >&5
32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); } && {
32166          test -z "$ac_c_werror_flag" ||
32167          test ! -s conftest.err
32168        } && test -s conftest.$ac_objext; then
32169   ac_cv_type_ptrdiff_t=yes
32170 else
32171   echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32173
32174         ac_cv_type_ptrdiff_t=no
32175 fi
32176
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 fi
32179 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32180 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32181 if test $ac_cv_type_ptrdiff_t = yes; then
32182
32183 cat >>confdefs.h <<_ACEOF
32184 #define HAVE_PTRDIFF_T 1
32185 _ACEOF
32186
32187
32188 fi
32189
32190
32191
32192 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32193 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32194 if test "${ac_cv_type_socklen_t+set}" = set; then
32195   echo $ECHO_N "(cached) $ECHO_C" >&6
32196 else
32197   cat >conftest.$ac_ext <<_ACEOF
32198 /* confdefs.h.  */
32199 _ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h.  */
32203 $ac_includes_default
32204 #ifdef HAVE_SYS_SOCKET_H
32205 #include <sys/socket.h>
32206 #endif
32207
32208 typedef socklen_t ac__type_new_;
32209 int
32210 main ()
32211 {
32212 if ((ac__type_new_ *) 0)
32213   return 0;
32214 if (sizeof (ac__type_new_))
32215   return 0;
32216   ;
32217   return 0;
32218 }
32219 _ACEOF
32220 rm -f conftest.$ac_objext
32221 if { (ac_try="$ac_compile"
32222 case "(($ac_try" in
32223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224   *) ac_try_echo=$ac_try;;
32225 esac
32226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32227   (eval "$ac_compile") 2>conftest.er1
32228   ac_status=$?
32229   grep -v '^ *+' conftest.er1 >conftest.err
32230   rm -f conftest.er1
32231   cat conftest.err >&5
32232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233   (exit $ac_status); } && {
32234          test -z "$ac_c_werror_flag" ||
32235          test ! -s conftest.err
32236        } && test -s conftest.$ac_objext; then
32237   ac_cv_type_socklen_t=yes
32238 else
32239   echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32241
32242         ac_cv_type_socklen_t=no
32243 fi
32244
32245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32246 fi
32247 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32248 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32249
32250
32251 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32252 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32253 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32254   echo $ECHO_N "(cached) $ECHO_C" >&6
32255 else
32256
32257         set socklen_t int unsigned "unsigned long" long size_t
32258         test "$ac_cv_type_socklen_t" = yes || shift
32259         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32260         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32261                 cat >conftest.$ac_ext <<_ACEOF
32262 /* confdefs.h.  */
32263 _ACEOF
32264 cat confdefs.h >>conftest.$ac_ext
32265 cat >>conftest.$ac_ext <<_ACEOF
32266 /* end confdefs.h.  */
32267 $ac_includes_default
32268 #ifdef HAVE_SYS_SOCKET_H
32269 #include <sys/socket.h>
32270 #endif
32271 extern int accept(int s, $addrtype *ap, $lentype *lp);
32272
32273 int
32274 main ()
32275 {
32276
32277 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32278
32279   ;
32280   return 0;
32281 }
32282 _ACEOF
32283 rm -f conftest.$ac_objext
32284 if { (ac_try="$ac_compile"
32285 case "(($ac_try" in
32286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287   *) ac_try_echo=$ac_try;;
32288 esac
32289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290   (eval "$ac_compile") 2>conftest.er1
32291   ac_status=$?
32292   grep -v '^ *+' conftest.er1 >conftest.err
32293   rm -f conftest.er1
32294   cat conftest.err >&5
32295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296   (exit $ac_status); } && {
32297          test -z "$ac_c_werror_flag" ||
32298          test ! -s conftest.err
32299        } && test -s conftest.$ac_objext; then
32300   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32301 else
32302   echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32304
32305
32306 fi
32307
32308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32309         done ; done
32310 fi
32311
32312 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32313 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32314
32315 cat >>confdefs.h <<_ACEOF
32316 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32317 _ACEOF
32318
32319
32320 if test "$ac_cv_type_socklen_t" != yes; then
32321
32322 cat >>confdefs.h <<_ACEOF
32323 #define socklen_t $ol_cv_type_ber_socklen_t
32324 _ACEOF
32325
32326 fi
32327
32328
32329 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32330 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32331 if test "${ac_cv_type_signal+set}" = set; then
32332   echo $ECHO_N "(cached) $ECHO_C" >&6
32333 else
32334   cat >conftest.$ac_ext <<_ACEOF
32335 /* confdefs.h.  */
32336 _ACEOF
32337 cat confdefs.h >>conftest.$ac_ext
32338 cat >>conftest.$ac_ext <<_ACEOF
32339 /* end confdefs.h.  */
32340 #include <sys/types.h>
32341 #include <signal.h>
32342
32343 int
32344 main ()
32345 {
32346 return *(signal (0, 0)) (0) == 1;
32347   ;
32348   return 0;
32349 }
32350 _ACEOF
32351 rm -f conftest.$ac_objext
32352 if { (ac_try="$ac_compile"
32353 case "(($ac_try" in
32354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355   *) ac_try_echo=$ac_try;;
32356 esac
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358   (eval "$ac_compile") 2>conftest.er1
32359   ac_status=$?
32360   grep -v '^ *+' conftest.er1 >conftest.err
32361   rm -f conftest.er1
32362   cat conftest.err >&5
32363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364   (exit $ac_status); } && {
32365          test -z "$ac_c_werror_flag" ||
32366          test ! -s conftest.err
32367        } && test -s conftest.$ac_objext; then
32368   ac_cv_type_signal=int
32369 else
32370   echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32372
32373         ac_cv_type_signal=void
32374 fi
32375
32376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32377 fi
32378 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32379 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32380
32381 cat >>confdefs.h <<_ACEOF
32382 #define RETSIGTYPE $ac_cv_type_signal
32383 _ACEOF
32384
32385
32386
32387 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32388 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32389 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32390   echo $ECHO_N "(cached) $ECHO_C" >&6
32391 else
32392   cat >conftest.$ac_ext <<_ACEOF
32393 /* confdefs.h.  */
32394 _ACEOF
32395 cat confdefs.h >>conftest.$ac_ext
32396 cat >>conftest.$ac_ext <<_ACEOF
32397 /* end confdefs.h.  */
32398 $ac_includes_default
32399 #include <signal.h>
32400
32401
32402 typedef sig_atomic_t ac__type_new_;
32403 int
32404 main ()
32405 {
32406 if ((ac__type_new_ *) 0)
32407   return 0;
32408 if (sizeof (ac__type_new_))
32409   return 0;
32410   ;
32411   return 0;
32412 }
32413 _ACEOF
32414 rm -f conftest.$ac_objext
32415 if { (ac_try="$ac_compile"
32416 case "(($ac_try" in
32417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418   *) ac_try_echo=$ac_try;;
32419 esac
32420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421   (eval "$ac_compile") 2>conftest.er1
32422   ac_status=$?
32423   grep -v '^ *+' conftest.er1 >conftest.err
32424   rm -f conftest.er1
32425   cat conftest.err >&5
32426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427   (exit $ac_status); } && {
32428          test -z "$ac_c_werror_flag" ||
32429          test ! -s conftest.err
32430        } && test -s conftest.$ac_objext; then
32431   ac_cv_type_sig_atomic_t=yes
32432 else
32433   echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32435
32436         ac_cv_type_sig_atomic_t=no
32437 fi
32438
32439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32440 fi
32441 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32442 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32443 if test $ac_cv_type_sig_atomic_t = yes; then
32444   :
32445 else
32446
32447 cat >>confdefs.h <<_ACEOF
32448 #define sig_atomic_t int
32449 _ACEOF
32450
32451 fi
32452
32453
32454 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32455 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32456 if test "${ac_cv_type_uid_t+set}" = set; then
32457   echo $ECHO_N "(cached) $ECHO_C" >&6
32458 else
32459   cat >conftest.$ac_ext <<_ACEOF
32460 /* confdefs.h.  */
32461 _ACEOF
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h.  */
32465 #include <sys/types.h>
32466
32467 _ACEOF
32468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32469   $EGREP "uid_t" >/dev/null 2>&1; then
32470   ac_cv_type_uid_t=yes
32471 else
32472   ac_cv_type_uid_t=no
32473 fi
32474 rm -f conftest*
32475
32476 fi
32477 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32478 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32479 if test $ac_cv_type_uid_t = no; then
32480
32481 cat >>confdefs.h <<\_ACEOF
32482 #define uid_t int
32483 _ACEOF
32484
32485
32486 cat >>confdefs.h <<\_ACEOF
32487 #define gid_t int
32488 _ACEOF
32489
32490 fi
32491
32492
32493 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32494 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32495 if test "${ac_cv_header_time+set}" = set; then
32496   echo $ECHO_N "(cached) $ECHO_C" >&6
32497 else
32498   cat >conftest.$ac_ext <<_ACEOF
32499 /* confdefs.h.  */
32500 _ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h.  */
32504 #include <sys/types.h>
32505 #include <sys/time.h>
32506 #include <time.h>
32507
32508 int
32509 main ()
32510 {
32511 if ((struct tm *) 0)
32512 return 0;
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext
32518 if { (ac_try="$ac_compile"
32519 case "(($ac_try" in
32520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521   *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524   (eval "$ac_compile") 2>conftest.er1
32525   ac_status=$?
32526   grep -v '^ *+' conftest.er1 >conftest.err
32527   rm -f conftest.er1
32528   cat conftest.err >&5
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } && {
32531          test -z "$ac_c_werror_flag" ||
32532          test ! -s conftest.err
32533        } && test -s conftest.$ac_objext; then
32534   ac_cv_header_time=yes
32535 else
32536   echo "$as_me: failed program was:" >&5
32537 sed 's/^/| /' conftest.$ac_ext >&5
32538
32539         ac_cv_header_time=no
32540 fi
32541
32542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32543 fi
32544 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32545 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32546 if test $ac_cv_header_time = yes; then
32547
32548 cat >>confdefs.h <<\_ACEOF
32549 #define TIME_WITH_SYS_TIME 1
32550 _ACEOF
32551
32552 fi
32553
32554 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32556 if test "${ac_cv_struct_tm+set}" = set; then
32557   echo $ECHO_N "(cached) $ECHO_C" >&6
32558 else
32559   cat >conftest.$ac_ext <<_ACEOF
32560 /* confdefs.h.  */
32561 _ACEOF
32562 cat confdefs.h >>conftest.$ac_ext
32563 cat >>conftest.$ac_ext <<_ACEOF
32564 /* end confdefs.h.  */
32565 #include <sys/types.h>
32566 #include <time.h>
32567
32568 int
32569 main ()
32570 {
32571 struct tm tm;
32572                                      int *p = &tm.tm_sec;
32573                                      return !p;
32574   ;
32575   return 0;
32576 }
32577 _ACEOF
32578 rm -f conftest.$ac_objext
32579 if { (ac_try="$ac_compile"
32580 case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585   (eval "$ac_compile") 2>conftest.er1
32586   ac_status=$?
32587   grep -v '^ *+' conftest.er1 >conftest.err
32588   rm -f conftest.er1
32589   cat conftest.err >&5
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); } && {
32592          test -z "$ac_c_werror_flag" ||
32593          test ! -s conftest.err
32594        } && test -s conftest.$ac_objext; then
32595   ac_cv_struct_tm=time.h
32596 else
32597   echo "$as_me: failed program was:" >&5
32598 sed 's/^/| /' conftest.$ac_ext >&5
32599
32600         ac_cv_struct_tm=sys/time.h
32601 fi
32602
32603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32604 fi
32605 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32606 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32607 if test $ac_cv_struct_tm = sys/time.h; then
32608
32609 cat >>confdefs.h <<\_ACEOF
32610 #define TM_IN_SYS_TIME 1
32611 _ACEOF
32612
32613 fi
32614
32615 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32616 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32617 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32618   echo $ECHO_N "(cached) $ECHO_C" >&6
32619 else
32620   cat >conftest.$ac_ext <<_ACEOF
32621 /* confdefs.h.  */
32622 _ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h.  */
32626 $ac_includes_default
32627 int
32628 main ()
32629 {
32630 static struct stat ac_aggr;
32631 if (ac_aggr.st_blksize)
32632 return 0;
32633   ;
32634   return 0;
32635 }
32636 _ACEOF
32637 rm -f conftest.$ac_objext
32638 if { (ac_try="$ac_compile"
32639 case "(($ac_try" in
32640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32641   *) ac_try_echo=$ac_try;;
32642 esac
32643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32644   (eval "$ac_compile") 2>conftest.er1
32645   ac_status=$?
32646   grep -v '^ *+' conftest.er1 >conftest.err
32647   rm -f conftest.er1
32648   cat conftest.err >&5
32649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650   (exit $ac_status); } && {
32651          test -z "$ac_c_werror_flag" ||
32652          test ! -s conftest.err
32653        } && test -s conftest.$ac_objext; then
32654   ac_cv_member_struct_stat_st_blksize=yes
32655 else
32656   echo "$as_me: failed program was:" >&5
32657 sed 's/^/| /' conftest.$ac_ext >&5
32658
32659         cat >conftest.$ac_ext <<_ACEOF
32660 /* confdefs.h.  */
32661 _ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h.  */
32665 $ac_includes_default
32666 int
32667 main ()
32668 {
32669 static struct stat ac_aggr;
32670 if (sizeof ac_aggr.st_blksize)
32671 return 0;
32672   ;
32673   return 0;
32674 }
32675 _ACEOF
32676 rm -f conftest.$ac_objext
32677 if { (ac_try="$ac_compile"
32678 case "(($ac_try" in
32679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680   *) ac_try_echo=$ac_try;;
32681 esac
32682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683   (eval "$ac_compile") 2>conftest.er1
32684   ac_status=$?
32685   grep -v '^ *+' conftest.er1 >conftest.err
32686   rm -f conftest.er1
32687   cat conftest.err >&5
32688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689   (exit $ac_status); } && {
32690          test -z "$ac_c_werror_flag" ||
32691          test ! -s conftest.err
32692        } && test -s conftest.$ac_objext; then
32693   ac_cv_member_struct_stat_st_blksize=yes
32694 else
32695   echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32697
32698         ac_cv_member_struct_stat_st_blksize=no
32699 fi
32700
32701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32702 fi
32703
32704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32705 fi
32706 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32707 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32708 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32709
32710 cat >>confdefs.h <<_ACEOF
32711 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32712 _ACEOF
32713
32714
32715 fi
32716
32717 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32718 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32719 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32720   echo $ECHO_N "(cached) $ECHO_C" >&6
32721 else
32722   cat >conftest.$ac_ext <<_ACEOF
32723 /* confdefs.h.  */
32724 _ACEOF
32725 cat confdefs.h >>conftest.$ac_ext
32726 cat >>conftest.$ac_ext <<_ACEOF
32727 /* end confdefs.h.  */
32728 $ac_includes_default
32729 #include <pwd.h>
32730
32731 int
32732 main ()
32733 {
32734 static struct passwd ac_aggr;
32735 if (ac_aggr.pw_gecos)
32736 return 0;
32737   ;
32738   return 0;
32739 }
32740 _ACEOF
32741 rm -f conftest.$ac_objext
32742 if { (ac_try="$ac_compile"
32743 case "(($ac_try" in
32744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745   *) ac_try_echo=$ac_try;;
32746 esac
32747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748   (eval "$ac_compile") 2>conftest.er1
32749   ac_status=$?
32750   grep -v '^ *+' conftest.er1 >conftest.err
32751   rm -f conftest.er1
32752   cat conftest.err >&5
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); } && {
32755          test -z "$ac_c_werror_flag" ||
32756          test ! -s conftest.err
32757        } && test -s conftest.$ac_objext; then
32758   ac_cv_member_struct_passwd_pw_gecos=yes
32759 else
32760   echo "$as_me: failed program was:" >&5
32761 sed 's/^/| /' conftest.$ac_ext >&5
32762
32763         cat >conftest.$ac_ext <<_ACEOF
32764 /* confdefs.h.  */
32765 _ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h.  */
32769 $ac_includes_default
32770 #include <pwd.h>
32771
32772 int
32773 main ()
32774 {
32775 static struct passwd ac_aggr;
32776 if (sizeof ac_aggr.pw_gecos)
32777 return 0;
32778   ;
32779   return 0;
32780 }
32781 _ACEOF
32782 rm -f conftest.$ac_objext
32783 if { (ac_try="$ac_compile"
32784 case "(($ac_try" in
32785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786   *) ac_try_echo=$ac_try;;
32787 esac
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789   (eval "$ac_compile") 2>conftest.er1
32790   ac_status=$?
32791   grep -v '^ *+' conftest.er1 >conftest.err
32792   rm -f conftest.er1
32793   cat conftest.err >&5
32794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795   (exit $ac_status); } && {
32796          test -z "$ac_c_werror_flag" ||
32797          test ! -s conftest.err
32798        } && test -s conftest.$ac_objext; then
32799   ac_cv_member_struct_passwd_pw_gecos=yes
32800 else
32801   echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32803
32804         ac_cv_member_struct_passwd_pw_gecos=no
32805 fi
32806
32807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32808 fi
32809
32810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32811 fi
32812 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32813 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32814 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32815
32816 cat >>confdefs.h <<_ACEOF
32817 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32818 _ACEOF
32819
32820
32821 fi
32822
32823 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32824 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32825 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32826   echo $ECHO_N "(cached) $ECHO_C" >&6
32827 else
32828   cat >conftest.$ac_ext <<_ACEOF
32829 /* confdefs.h.  */
32830 _ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h.  */
32834 $ac_includes_default
32835 #include <pwd.h>
32836
32837 int
32838 main ()
32839 {
32840 static struct passwd ac_aggr;
32841 if (ac_aggr.pw_passwd)
32842 return 0;
32843   ;
32844   return 0;
32845 }
32846 _ACEOF
32847 rm -f conftest.$ac_objext
32848 if { (ac_try="$ac_compile"
32849 case "(($ac_try" in
32850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851   *) ac_try_echo=$ac_try;;
32852 esac
32853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32854   (eval "$ac_compile") 2>conftest.er1
32855   ac_status=$?
32856   grep -v '^ *+' conftest.er1 >conftest.err
32857   rm -f conftest.er1
32858   cat conftest.err >&5
32859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860   (exit $ac_status); } && {
32861          test -z "$ac_c_werror_flag" ||
32862          test ! -s conftest.err
32863        } && test -s conftest.$ac_objext; then
32864   ac_cv_member_struct_passwd_pw_passwd=yes
32865 else
32866   echo "$as_me: failed program was:" >&5
32867 sed 's/^/| /' conftest.$ac_ext >&5
32868
32869         cat >conftest.$ac_ext <<_ACEOF
32870 /* confdefs.h.  */
32871 _ACEOF
32872 cat confdefs.h >>conftest.$ac_ext
32873 cat >>conftest.$ac_ext <<_ACEOF
32874 /* end confdefs.h.  */
32875 $ac_includes_default
32876 #include <pwd.h>
32877
32878 int
32879 main ()
32880 {
32881 static struct passwd ac_aggr;
32882 if (sizeof ac_aggr.pw_passwd)
32883 return 0;
32884   ;
32885   return 0;
32886 }
32887 _ACEOF
32888 rm -f conftest.$ac_objext
32889 if { (ac_try="$ac_compile"
32890 case "(($ac_try" in
32891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892   *) ac_try_echo=$ac_try;;
32893 esac
32894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895   (eval "$ac_compile") 2>conftest.er1
32896   ac_status=$?
32897   grep -v '^ *+' conftest.er1 >conftest.err
32898   rm -f conftest.er1
32899   cat conftest.err >&5
32900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901   (exit $ac_status); } && {
32902          test -z "$ac_c_werror_flag" ||
32903          test ! -s conftest.err
32904        } && test -s conftest.$ac_objext; then
32905   ac_cv_member_struct_passwd_pw_passwd=yes
32906 else
32907   echo "$as_me: failed program was:" >&5
32908 sed 's/^/| /' conftest.$ac_ext >&5
32909
32910         ac_cv_member_struct_passwd_pw_passwd=no
32911 fi
32912
32913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32914 fi
32915
32916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32917 fi
32918 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32919 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32920 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32921
32922 cat >>confdefs.h <<_ACEOF
32923 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32924 _ACEOF
32925
32926
32927 fi
32928
32929
32930 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32931 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32932 if test "${ol_cv_c_upper_lower+set}" = set; then
32933   echo $ECHO_N "(cached) $ECHO_C" >&6
32934 else
32935
32936         if test "$cross_compiling" = yes; then
32937   ol_cv_c_upper_lower=safe
32938 else
32939   cat >conftest.$ac_ext <<_ACEOF
32940 /* confdefs.h.  */
32941 _ACEOF
32942 cat confdefs.h >>conftest.$ac_ext
32943 cat >>conftest.$ac_ext <<_ACEOF
32944 /* end confdefs.h.  */
32945
32946 #include <ctype.h>
32947 main()
32948 {
32949         if ('C' == toupper('C'))
32950                 exit(0);
32951         else
32952                 exit(1);
32953 }
32954 _ACEOF
32955 rm -f conftest$ac_exeext
32956 if { (ac_try="$ac_link"
32957 case "(($ac_try" in
32958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959   *) ac_try_echo=$ac_try;;
32960 esac
32961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962   (eval "$ac_link") 2>&5
32963   ac_status=$?
32964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32966   { (case "(($ac_try" in
32967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968   *) ac_try_echo=$ac_try;;
32969 esac
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971   (eval "$ac_try") 2>&5
32972   ac_status=$?
32973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974   (exit $ac_status); }; }; then
32975   ol_cv_c_upper_lower=no
32976 else
32977   echo "$as_me: program exited with status $ac_status" >&5
32978 echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32980
32981 ( exit $ac_status )
32982 ol_cv_c_upper_lower=yes
32983 fi
32984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32985 fi
32986
32987
32988 fi
32989 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32990 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32991 if test $ol_cv_c_upper_lower != no ; then
32992
32993 cat >>confdefs.h <<\_ACEOF
32994 #define C_UPPER_LOWER 1
32995 _ACEOF
32996
32997 fi
32998
32999 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33000 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33001 if test "${ac_cv_c_const+set}" = set; then
33002   echo $ECHO_N "(cached) $ECHO_C" >&6
33003 else
33004   cat >conftest.$ac_ext <<_ACEOF
33005 /* confdefs.h.  */
33006 _ACEOF
33007 cat confdefs.h >>conftest.$ac_ext
33008 cat >>conftest.$ac_ext <<_ACEOF
33009 /* end confdefs.h.  */
33010
33011 int
33012 main ()
33013 {
33014 /* FIXME: Include the comments suggested by Paul. */
33015 #ifndef __cplusplus
33016   /* Ultrix mips cc rejects this.  */
33017   typedef int charset[2];
33018   const charset cs;
33019   /* SunOS 4.1.1 cc rejects this.  */
33020   char const *const *pcpcc;
33021   char **ppc;
33022   /* NEC SVR4.0.2 mips cc rejects this.  */
33023   struct point {int x, y;};
33024   static struct point const zero = {0,0};
33025   /* AIX XL C 1.02.0.0 rejects this.
33026      It does not let you subtract one const X* pointer from another in
33027      an arm of an if-expression whose if-part is not a constant
33028      expression */
33029   const char *g = "string";
33030   pcpcc = &g + (g ? g-g : 0);
33031   /* HPUX 7.0 cc rejects these. */
33032   ++pcpcc;
33033   ppc = (char**) pcpcc;
33034   pcpcc = (char const *const *) ppc;
33035   { /* SCO 3.2v4 cc rejects this.  */
33036     char *t;
33037     char const *s = 0 ? (char *) 0 : (char const *) 0;
33038
33039     *t++ = 0;
33040     if (s) return 0;
33041   }
33042   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33043     int x[] = {25, 17};
33044     const int *foo = &x[0];
33045     ++foo;
33046   }
33047   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33048     typedef const int *iptr;
33049     iptr p = 0;
33050     ++p;
33051   }
33052   { /* AIX XL C 1.02.0.0 rejects this saying
33053        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33054     struct s { int j; const int *ap[3]; };
33055     struct s *b; b->j = 5;
33056   }
33057   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33058     const int foo = 10;
33059     if (!foo) return 0;
33060   }
33061   return !cs[0] && !zero.x;
33062 #endif
33063
33064   ;
33065   return 0;
33066 }
33067 _ACEOF
33068 rm -f conftest.$ac_objext
33069 if { (ac_try="$ac_compile"
33070 case "(($ac_try" in
33071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072   *) ac_try_echo=$ac_try;;
33073 esac
33074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075   (eval "$ac_compile") 2>conftest.er1
33076   ac_status=$?
33077   grep -v '^ *+' conftest.er1 >conftest.err
33078   rm -f conftest.er1
33079   cat conftest.err >&5
33080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081   (exit $ac_status); } && {
33082          test -z "$ac_c_werror_flag" ||
33083          test ! -s conftest.err
33084        } && test -s conftest.$ac_objext; then
33085   ac_cv_c_const=yes
33086 else
33087   echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33089
33090         ac_cv_c_const=no
33091 fi
33092
33093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094 fi
33095 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33096 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33097 if test $ac_cv_c_const = no; then
33098
33099 cat >>confdefs.h <<\_ACEOF
33100 #define const
33101 _ACEOF
33102
33103 fi
33104
33105 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33106 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33107 if test "${ol_cv_c_volatile+set}" = set; then
33108   echo $ECHO_N "(cached) $ECHO_C" >&6
33109 else
33110   cat >conftest.$ac_ext <<_ACEOF
33111 /* confdefs.h.  */
33112 _ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h.  */
33116 int x, y, z;
33117 int
33118 main ()
33119 {
33120 volatile int a; int * volatile b = x ? &y : &z;
33121       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33122       *b = 0;
33123   ;
33124   return 0;
33125 }
33126 _ACEOF
33127 rm -f conftest.$ac_objext
33128 if { (ac_try="$ac_compile"
33129 case "(($ac_try" in
33130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131   *) ac_try_echo=$ac_try;;
33132 esac
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134   (eval "$ac_compile") 2>conftest.er1
33135   ac_status=$?
33136   grep -v '^ *+' conftest.er1 >conftest.err
33137   rm -f conftest.er1
33138   cat conftest.err >&5
33139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140   (exit $ac_status); } && {
33141          test -z "$ac_c_werror_flag" ||
33142          test ! -s conftest.err
33143        } && test -s conftest.$ac_objext; then
33144   ol_cv_c_volatile=yes
33145 else
33146   echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33148
33149         ol_cv_c_volatile=no
33150 fi
33151
33152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33153 fi
33154 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33155 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33156   if test $ol_cv_c_volatile = yes; then
33157     :
33158   else
33159
33160 cat >>confdefs.h <<\_ACEOF
33161 #define volatile
33162 _ACEOF
33163
33164   fi
33165
33166
33167 if test $cross_compiling = yes ; then
33168         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33169 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33170
33171 cat >>confdefs.h <<\_ACEOF
33172 #define CROSS_COMPILING 1
33173 _ACEOF
33174
33175 else
33176         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33177 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33178 if test "${ac_cv_c_bigendian+set}" = set; then
33179   echo $ECHO_N "(cached) $ECHO_C" >&6
33180 else
33181   # See if sys/param.h defines the BYTE_ORDER macro.
33182 cat >conftest.$ac_ext <<_ACEOF
33183 /* confdefs.h.  */
33184 _ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h.  */
33188 #include <sys/types.h>
33189 #include <sys/param.h>
33190
33191 int
33192 main ()
33193 {
33194 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33195         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33196  bogus endian macros
33197 #endif
33198
33199   ;
33200   return 0;
33201 }
33202 _ACEOF
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207   *) ac_try_echo=$ac_try;;
33208 esac
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210   (eval "$ac_compile") 2>conftest.er1
33211   ac_status=$?
33212   grep -v '^ *+' conftest.er1 >conftest.err
33213   rm -f conftest.er1
33214   cat conftest.err >&5
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); } && {
33217          test -z "$ac_c_werror_flag" ||
33218          test ! -s conftest.err
33219        } && test -s conftest.$ac_objext; then
33220   # It does; now see whether it defined to BIG_ENDIAN or not.
33221 cat >conftest.$ac_ext <<_ACEOF
33222 /* confdefs.h.  */
33223 _ACEOF
33224 cat confdefs.h >>conftest.$ac_ext
33225 cat >>conftest.$ac_ext <<_ACEOF
33226 /* end confdefs.h.  */
33227 #include <sys/types.h>
33228 #include <sys/param.h>
33229
33230 int
33231 main ()
33232 {
33233 #if BYTE_ORDER != BIG_ENDIAN
33234  not big endian
33235 #endif
33236
33237   ;
33238   return 0;
33239 }
33240 _ACEOF
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245   *) ac_try_echo=$ac_try;;
33246 esac
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248   (eval "$ac_compile") 2>conftest.er1
33249   ac_status=$?
33250   grep -v '^ *+' conftest.er1 >conftest.err
33251   rm -f conftest.er1
33252   cat conftest.err >&5
33253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254   (exit $ac_status); } && {
33255          test -z "$ac_c_werror_flag" ||
33256          test ! -s conftest.err
33257        } && test -s conftest.$ac_objext; then
33258   ac_cv_c_bigendian=yes
33259 else
33260   echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33262
33263         ac_cv_c_bigendian=no
33264 fi
33265
33266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33267 else
33268   echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33270
33271         # It does not; compile a test program.
33272 if test "$cross_compiling" = yes; then
33273   # try to guess the endianness by grepping values into an object file
33274   ac_cv_c_bigendian=unknown
33275   cat >conftest.$ac_ext <<_ACEOF
33276 /* confdefs.h.  */
33277 _ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h.  */
33281 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33282 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33283 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33284 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33285 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33286 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33287 int
33288 main ()
33289 {
33290  _ascii (); _ebcdic ();
33291   ;
33292   return 0;
33293 }
33294 _ACEOF
33295 rm -f conftest.$ac_objext
33296 if { (ac_try="$ac_compile"
33297 case "(($ac_try" in
33298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299   *) ac_try_echo=$ac_try;;
33300 esac
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302   (eval "$ac_compile") 2>conftest.er1
33303   ac_status=$?
33304   grep -v '^ *+' conftest.er1 >conftest.err
33305   rm -f conftest.er1
33306   cat conftest.err >&5
33307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308   (exit $ac_status); } && {
33309          test -z "$ac_c_werror_flag" ||
33310          test ! -s conftest.err
33311        } && test -s conftest.$ac_objext; then
33312   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33313   ac_cv_c_bigendian=yes
33314 fi
33315 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33316   if test "$ac_cv_c_bigendian" = unknown; then
33317     ac_cv_c_bigendian=no
33318   else
33319     # finding both strings is unlikely to happen, but who knows?
33320     ac_cv_c_bigendian=unknown
33321   fi
33322 fi
33323 else
33324   echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33326
33327
33328 fi
33329
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33331 else
33332   cat >conftest.$ac_ext <<_ACEOF
33333 /* confdefs.h.  */
33334 _ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h.  */
33338 $ac_includes_default
33339 int
33340 main ()
33341 {
33342
33343   /* Are we little or big endian?  From Harbison&Steele.  */
33344   union
33345   {
33346     long int l;
33347     char c[sizeof (long int)];
33348   } u;
33349   u.l = 1;
33350   return u.c[sizeof (long int) - 1] == 1;
33351
33352   ;
33353   return 0;
33354 }
33355 _ACEOF
33356 rm -f conftest$ac_exeext
33357 if { (ac_try="$ac_link"
33358 case "(($ac_try" in
33359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360   *) ac_try_echo=$ac_try;;
33361 esac
33362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33363   (eval "$ac_link") 2>&5
33364   ac_status=$?
33365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33367   { (case "(($ac_try" in
33368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33369   *) ac_try_echo=$ac_try;;
33370 esac
33371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33372   (eval "$ac_try") 2>&5
33373   ac_status=$?
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); }; }; then
33376   ac_cv_c_bigendian=no
33377 else
33378   echo "$as_me: program exited with status $ac_status" >&5
33379 echo "$as_me: failed program was:" >&5
33380 sed 's/^/| /' conftest.$ac_ext >&5
33381
33382 ( exit $ac_status )
33383 ac_cv_c_bigendian=yes
33384 fi
33385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33386 fi
33387
33388
33389 fi
33390
33391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33392 fi
33393 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33394 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33395 case $ac_cv_c_bigendian in
33396   yes)
33397
33398 cat >>confdefs.h <<\_ACEOF
33399 #define WORDS_BIGENDIAN 1
33400 _ACEOF
33401  ;;
33402   no)
33403      ;;
33404   *)
33405     { { echo "$as_me:$LINENO: error: unknown endianness
33406 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33407 echo "$as_me: error: unknown endianness
33408 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33409    { (exit 1); exit 1; }; } ;;
33410 esac
33411
33412 fi
33413
33414 { echo "$as_me:$LINENO: checking for short" >&5
33415 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33416 if test "${ac_cv_type_short+set}" = set; then
33417   echo $ECHO_N "(cached) $ECHO_C" >&6
33418 else
33419   cat >conftest.$ac_ext <<_ACEOF
33420 /* confdefs.h.  */
33421 _ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h.  */
33425 $ac_includes_default
33426 typedef short ac__type_new_;
33427 int
33428 main ()
33429 {
33430 if ((ac__type_new_ *) 0)
33431   return 0;
33432 if (sizeof (ac__type_new_))
33433   return 0;
33434   ;
33435   return 0;
33436 }
33437 _ACEOF
33438 rm -f conftest.$ac_objext
33439 if { (ac_try="$ac_compile"
33440 case "(($ac_try" in
33441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442   *) ac_try_echo=$ac_try;;
33443 esac
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445   (eval "$ac_compile") 2>conftest.er1
33446   ac_status=$?
33447   grep -v '^ *+' conftest.er1 >conftest.err
33448   rm -f conftest.er1
33449   cat conftest.err >&5
33450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451   (exit $ac_status); } && {
33452          test -z "$ac_c_werror_flag" ||
33453          test ! -s conftest.err
33454        } && test -s conftest.$ac_objext; then
33455   ac_cv_type_short=yes
33456 else
33457   echo "$as_me: failed program was:" >&5
33458 sed 's/^/| /' conftest.$ac_ext >&5
33459
33460         ac_cv_type_short=no
33461 fi
33462
33463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33464 fi
33465 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33466 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33467
33468 # The cast to long int works around a bug in the HP C Compiler
33469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33471 # This bug is HP SR number 8606223364.
33472 { echo "$as_me:$LINENO: checking size of short" >&5
33473 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33474 if test "${ac_cv_sizeof_short+set}" = set; then
33475   echo $ECHO_N "(cached) $ECHO_C" >&6
33476 else
33477   if test "$cross_compiling" = yes; then
33478   # Depending upon the size, compute the lo and hi bounds.
33479 cat >conftest.$ac_ext <<_ACEOF
33480 /* confdefs.h.  */
33481 _ACEOF
33482 cat confdefs.h >>conftest.$ac_ext
33483 cat >>conftest.$ac_ext <<_ACEOF
33484 /* end confdefs.h.  */
33485 $ac_includes_default
33486    typedef short ac__type_sizeof_;
33487 int
33488 main ()
33489 {
33490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33491 test_array [0] = 0
33492
33493   ;
33494   return 0;
33495 }
33496 _ACEOF
33497 rm -f conftest.$ac_objext
33498 if { (ac_try="$ac_compile"
33499 case "(($ac_try" in
33500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33501   *) ac_try_echo=$ac_try;;
33502 esac
33503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33504   (eval "$ac_compile") 2>conftest.er1
33505   ac_status=$?
33506   grep -v '^ *+' conftest.er1 >conftest.err
33507   rm -f conftest.er1
33508   cat conftest.err >&5
33509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510   (exit $ac_status); } && {
33511          test -z "$ac_c_werror_flag" ||
33512          test ! -s conftest.err
33513        } && test -s conftest.$ac_objext; then
33514   ac_lo=0 ac_mid=0
33515   while :; do
33516     cat >conftest.$ac_ext <<_ACEOF
33517 /* confdefs.h.  */
33518 _ACEOF
33519 cat confdefs.h >>conftest.$ac_ext
33520 cat >>conftest.$ac_ext <<_ACEOF
33521 /* end confdefs.h.  */
33522 $ac_includes_default
33523    typedef short ac__type_sizeof_;
33524 int
33525 main ()
33526 {
33527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33528 test_array [0] = 0
33529
33530   ;
33531   return 0;
33532 }
33533 _ACEOF
33534 rm -f conftest.$ac_objext
33535 if { (ac_try="$ac_compile"
33536 case "(($ac_try" in
33537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538   *) ac_try_echo=$ac_try;;
33539 esac
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541   (eval "$ac_compile") 2>conftest.er1
33542   ac_status=$?
33543   grep -v '^ *+' conftest.er1 >conftest.err
33544   rm -f conftest.er1
33545   cat conftest.err >&5
33546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547   (exit $ac_status); } && {
33548          test -z "$ac_c_werror_flag" ||
33549          test ! -s conftest.err
33550        } && test -s conftest.$ac_objext; then
33551   ac_hi=$ac_mid; break
33552 else
33553   echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33555
33556         ac_lo=`expr $ac_mid + 1`
33557                         if test $ac_lo -le $ac_mid; then
33558                           ac_lo= ac_hi=
33559                           break
33560                         fi
33561                         ac_mid=`expr 2 '*' $ac_mid + 1`
33562 fi
33563
33564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33565   done
33566 else
33567   echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33569
33570         cat >conftest.$ac_ext <<_ACEOF
33571 /* confdefs.h.  */
33572 _ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h.  */
33576 $ac_includes_default
33577    typedef short ac__type_sizeof_;
33578 int
33579 main ()
33580 {
33581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33582 test_array [0] = 0
33583
33584   ;
33585   return 0;
33586 }
33587 _ACEOF
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592   *) ac_try_echo=$ac_try;;
33593 esac
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595   (eval "$ac_compile") 2>conftest.er1
33596   ac_status=$?
33597   grep -v '^ *+' conftest.er1 >conftest.err
33598   rm -f conftest.er1
33599   cat conftest.err >&5
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); } && {
33602          test -z "$ac_c_werror_flag" ||
33603          test ! -s conftest.err
33604        } && test -s conftest.$ac_objext; then
33605   ac_hi=-1 ac_mid=-1
33606   while :; do
33607     cat >conftest.$ac_ext <<_ACEOF
33608 /* confdefs.h.  */
33609 _ACEOF
33610 cat confdefs.h >>conftest.$ac_ext
33611 cat >>conftest.$ac_ext <<_ACEOF
33612 /* end confdefs.h.  */
33613 $ac_includes_default
33614    typedef short ac__type_sizeof_;
33615 int
33616 main ()
33617 {
33618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33619 test_array [0] = 0
33620
33621   ;
33622   return 0;
33623 }
33624 _ACEOF
33625 rm -f conftest.$ac_objext
33626 if { (ac_try="$ac_compile"
33627 case "(($ac_try" in
33628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629   *) ac_try_echo=$ac_try;;
33630 esac
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632   (eval "$ac_compile") 2>conftest.er1
33633   ac_status=$?
33634   grep -v '^ *+' conftest.er1 >conftest.err
33635   rm -f conftest.er1
33636   cat conftest.err >&5
33637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638   (exit $ac_status); } && {
33639          test -z "$ac_c_werror_flag" ||
33640          test ! -s conftest.err
33641        } && test -s conftest.$ac_objext; then
33642   ac_lo=$ac_mid; break
33643 else
33644   echo "$as_me: failed program was:" >&5
33645 sed 's/^/| /' conftest.$ac_ext >&5
33646
33647         ac_hi=`expr '(' $ac_mid ')' - 1`
33648                         if test $ac_mid -le $ac_hi; then
33649                           ac_lo= ac_hi=
33650                           break
33651                         fi
33652                         ac_mid=`expr 2 '*' $ac_mid`
33653 fi
33654
33655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33656   done
33657 else
33658   echo "$as_me: failed program was:" >&5
33659 sed 's/^/| /' conftest.$ac_ext >&5
33660
33661         ac_lo= ac_hi=
33662 fi
33663
33664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33665 fi
33666
33667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33668 # Binary search between lo and hi bounds.
33669 while test "x$ac_lo" != "x$ac_hi"; do
33670   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33671   cat >conftest.$ac_ext <<_ACEOF
33672 /* confdefs.h.  */
33673 _ACEOF
33674 cat confdefs.h >>conftest.$ac_ext
33675 cat >>conftest.$ac_ext <<_ACEOF
33676 /* end confdefs.h.  */
33677 $ac_includes_default
33678    typedef short ac__type_sizeof_;
33679 int
33680 main ()
33681 {
33682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33683 test_array [0] = 0
33684
33685   ;
33686   return 0;
33687 }
33688 _ACEOF
33689 rm -f conftest.$ac_objext
33690 if { (ac_try="$ac_compile"
33691 case "(($ac_try" in
33692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33693   *) ac_try_echo=$ac_try;;
33694 esac
33695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33696   (eval "$ac_compile") 2>conftest.er1
33697   ac_status=$?
33698   grep -v '^ *+' conftest.er1 >conftest.err
33699   rm -f conftest.er1
33700   cat conftest.err >&5
33701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702   (exit $ac_status); } && {
33703          test -z "$ac_c_werror_flag" ||
33704          test ! -s conftest.err
33705        } && test -s conftest.$ac_objext; then
33706   ac_hi=$ac_mid
33707 else
33708   echo "$as_me: failed program was:" >&5
33709 sed 's/^/| /' conftest.$ac_ext >&5
33710
33711         ac_lo=`expr '(' $ac_mid ')' + 1`
33712 fi
33713
33714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33715 done
33716 case $ac_lo in
33717 ?*) ac_cv_sizeof_short=$ac_lo;;
33718 '') if test "$ac_cv_type_short" = yes; then
33719      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33720 See \`config.log' for more details." >&5
33721 echo "$as_me: error: cannot compute sizeof (short)
33722 See \`config.log' for more details." >&2;}
33723    { (exit 77); exit 77; }; }
33724    else
33725      ac_cv_sizeof_short=0
33726    fi ;;
33727 esac
33728 else
33729   cat >conftest.$ac_ext <<_ACEOF
33730 /* confdefs.h.  */
33731 _ACEOF
33732 cat confdefs.h >>conftest.$ac_ext
33733 cat >>conftest.$ac_ext <<_ACEOF
33734 /* end confdefs.h.  */
33735 $ac_includes_default
33736    typedef short ac__type_sizeof_;
33737 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33738 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33739 #include <stdio.h>
33740 #include <stdlib.h>
33741 int
33742 main ()
33743 {
33744
33745   FILE *f = fopen ("conftest.val", "w");
33746   if (! f)
33747     return 1;
33748   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33749     {
33750       long int i = longval ();
33751       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33752         return 1;
33753       fprintf (f, "%ld\n", i);
33754     }
33755   else
33756     {
33757       unsigned long int i = ulongval ();
33758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33759         return 1;
33760       fprintf (f, "%lu\n", i);
33761     }
33762   return ferror (f) || fclose (f) != 0;
33763
33764   ;
33765   return 0;
33766 }
33767 _ACEOF
33768 rm -f conftest$ac_exeext
33769 if { (ac_try="$ac_link"
33770 case "(($ac_try" in
33771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33772   *) ac_try_echo=$ac_try;;
33773 esac
33774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33775   (eval "$ac_link") 2>&5
33776   ac_status=$?
33777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33779   { (case "(($ac_try" in
33780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33781   *) ac_try_echo=$ac_try;;
33782 esac
33783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33784   (eval "$ac_try") 2>&5
33785   ac_status=$?
33786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787   (exit $ac_status); }; }; then
33788   ac_cv_sizeof_short=`cat conftest.val`
33789 else
33790   echo "$as_me: program exited with status $ac_status" >&5
33791 echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.$ac_ext >&5
33793
33794 ( exit $ac_status )
33795 if test "$ac_cv_type_short" = yes; then
33796      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33797 See \`config.log' for more details." >&5
33798 echo "$as_me: error: cannot compute sizeof (short)
33799 See \`config.log' for more details." >&2;}
33800    { (exit 77); exit 77; }; }
33801    else
33802      ac_cv_sizeof_short=0
33803    fi
33804 fi
33805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33806 fi
33807 rm -f conftest.val
33808 fi
33809 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33810 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33811
33812
33813
33814 cat >>confdefs.h <<_ACEOF
33815 #define SIZEOF_SHORT $ac_cv_sizeof_short
33816 _ACEOF
33817
33818
33819 { echo "$as_me:$LINENO: checking for int" >&5
33820 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33821 if test "${ac_cv_type_int+set}" = set; then
33822   echo $ECHO_N "(cached) $ECHO_C" >&6
33823 else
33824   cat >conftest.$ac_ext <<_ACEOF
33825 /* confdefs.h.  */
33826 _ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h.  */
33830 $ac_includes_default
33831 typedef int ac__type_new_;
33832 int
33833 main ()
33834 {
33835 if ((ac__type_new_ *) 0)
33836   return 0;
33837 if (sizeof (ac__type_new_))
33838   return 0;
33839   ;
33840   return 0;
33841 }
33842 _ACEOF
33843 rm -f conftest.$ac_objext
33844 if { (ac_try="$ac_compile"
33845 case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850   (eval "$ac_compile") 2>conftest.er1
33851   ac_status=$?
33852   grep -v '^ *+' conftest.er1 >conftest.err
33853   rm -f conftest.er1
33854   cat conftest.err >&5
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); } && {
33857          test -z "$ac_c_werror_flag" ||
33858          test ! -s conftest.err
33859        } && test -s conftest.$ac_objext; then
33860   ac_cv_type_int=yes
33861 else
33862   echo "$as_me: failed program was:" >&5
33863 sed 's/^/| /' conftest.$ac_ext >&5
33864
33865         ac_cv_type_int=no
33866 fi
33867
33868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33869 fi
33870 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33871 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33872
33873 # The cast to long int works around a bug in the HP C Compiler
33874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33876 # This bug is HP SR number 8606223364.
33877 { echo "$as_me:$LINENO: checking size of int" >&5
33878 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33879 if test "${ac_cv_sizeof_int+set}" = set; then
33880   echo $ECHO_N "(cached) $ECHO_C" >&6
33881 else
33882   if test "$cross_compiling" = yes; then
33883   # Depending upon the size, compute the lo and hi bounds.
33884 cat >conftest.$ac_ext <<_ACEOF
33885 /* confdefs.h.  */
33886 _ACEOF
33887 cat confdefs.h >>conftest.$ac_ext
33888 cat >>conftest.$ac_ext <<_ACEOF
33889 /* end confdefs.h.  */
33890 $ac_includes_default
33891    typedef int ac__type_sizeof_;
33892 int
33893 main ()
33894 {
33895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33896 test_array [0] = 0
33897
33898   ;
33899   return 0;
33900 }
33901 _ACEOF
33902 rm -f conftest.$ac_objext
33903 if { (ac_try="$ac_compile"
33904 case "(($ac_try" in
33905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906   *) ac_try_echo=$ac_try;;
33907 esac
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909   (eval "$ac_compile") 2>conftest.er1
33910   ac_status=$?
33911   grep -v '^ *+' conftest.er1 >conftest.err
33912   rm -f conftest.er1
33913   cat conftest.err >&5
33914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915   (exit $ac_status); } && {
33916          test -z "$ac_c_werror_flag" ||
33917          test ! -s conftest.err
33918        } && test -s conftest.$ac_objext; then
33919   ac_lo=0 ac_mid=0
33920   while :; do
33921     cat >conftest.$ac_ext <<_ACEOF
33922 /* confdefs.h.  */
33923 _ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h.  */
33927 $ac_includes_default
33928    typedef int ac__type_sizeof_;
33929 int
33930 main ()
33931 {
33932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33933 test_array [0] = 0
33934
33935   ;
33936   return 0;
33937 }
33938 _ACEOF
33939 rm -f conftest.$ac_objext
33940 if { (ac_try="$ac_compile"
33941 case "(($ac_try" in
33942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943   *) ac_try_echo=$ac_try;;
33944 esac
33945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946   (eval "$ac_compile") 2>conftest.er1
33947   ac_status=$?
33948   grep -v '^ *+' conftest.er1 >conftest.err
33949   rm -f conftest.er1
33950   cat conftest.err >&5
33951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952   (exit $ac_status); } && {
33953          test -z "$ac_c_werror_flag" ||
33954          test ! -s conftest.err
33955        } && test -s conftest.$ac_objext; then
33956   ac_hi=$ac_mid; break
33957 else
33958   echo "$as_me: failed program was:" >&5
33959 sed 's/^/| /' conftest.$ac_ext >&5
33960
33961         ac_lo=`expr $ac_mid + 1`
33962                         if test $ac_lo -le $ac_mid; then
33963                           ac_lo= ac_hi=
33964                           break
33965                         fi
33966                         ac_mid=`expr 2 '*' $ac_mid + 1`
33967 fi
33968
33969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33970   done
33971 else
33972   echo "$as_me: failed program was:" >&5
33973 sed 's/^/| /' conftest.$ac_ext >&5
33974
33975         cat >conftest.$ac_ext <<_ACEOF
33976 /* confdefs.h.  */
33977 _ACEOF
33978 cat confdefs.h >>conftest.$ac_ext
33979 cat >>conftest.$ac_ext <<_ACEOF
33980 /* end confdefs.h.  */
33981 $ac_includes_default
33982    typedef int ac__type_sizeof_;
33983 int
33984 main ()
33985 {
33986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33987 test_array [0] = 0
33988
33989   ;
33990   return 0;
33991 }
33992 _ACEOF
33993 rm -f conftest.$ac_objext
33994 if { (ac_try="$ac_compile"
33995 case "(($ac_try" in
33996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33997   *) ac_try_echo=$ac_try;;
33998 esac
33999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34000   (eval "$ac_compile") 2>conftest.er1
34001   ac_status=$?
34002   grep -v '^ *+' conftest.er1 >conftest.err
34003   rm -f conftest.er1
34004   cat conftest.err >&5
34005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006   (exit $ac_status); } && {
34007          test -z "$ac_c_werror_flag" ||
34008          test ! -s conftest.err
34009        } && test -s conftest.$ac_objext; then
34010   ac_hi=-1 ac_mid=-1
34011   while :; do
34012     cat >conftest.$ac_ext <<_ACEOF
34013 /* confdefs.h.  */
34014 _ACEOF
34015 cat confdefs.h >>conftest.$ac_ext
34016 cat >>conftest.$ac_ext <<_ACEOF
34017 /* end confdefs.h.  */
34018 $ac_includes_default
34019    typedef int ac__type_sizeof_;
34020 int
34021 main ()
34022 {
34023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34024 test_array [0] = 0
34025
34026   ;
34027   return 0;
34028 }
34029 _ACEOF
34030 rm -f conftest.$ac_objext
34031 if { (ac_try="$ac_compile"
34032 case "(($ac_try" in
34033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034   *) ac_try_echo=$ac_try;;
34035 esac
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037   (eval "$ac_compile") 2>conftest.er1
34038   ac_status=$?
34039   grep -v '^ *+' conftest.er1 >conftest.err
34040   rm -f conftest.er1
34041   cat conftest.err >&5
34042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043   (exit $ac_status); } && {
34044          test -z "$ac_c_werror_flag" ||
34045          test ! -s conftest.err
34046        } && test -s conftest.$ac_objext; then
34047   ac_lo=$ac_mid; break
34048 else
34049   echo "$as_me: failed program was:" >&5
34050 sed 's/^/| /' conftest.$ac_ext >&5
34051
34052         ac_hi=`expr '(' $ac_mid ')' - 1`
34053                         if test $ac_mid -le $ac_hi; then
34054                           ac_lo= ac_hi=
34055                           break
34056                         fi
34057                         ac_mid=`expr 2 '*' $ac_mid`
34058 fi
34059
34060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34061   done
34062 else
34063   echo "$as_me: failed program was:" >&5
34064 sed 's/^/| /' conftest.$ac_ext >&5
34065
34066         ac_lo= ac_hi=
34067 fi
34068
34069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34070 fi
34071
34072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34073 # Binary search between lo and hi bounds.
34074 while test "x$ac_lo" != "x$ac_hi"; do
34075   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34076   cat >conftest.$ac_ext <<_ACEOF
34077 /* confdefs.h.  */
34078 _ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h.  */
34082 $ac_includes_default
34083    typedef int ac__type_sizeof_;
34084 int
34085 main ()
34086 {
34087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34088 test_array [0] = 0
34089
34090   ;
34091   return 0;
34092 }
34093 _ACEOF
34094 rm -f conftest.$ac_objext
34095 if { (ac_try="$ac_compile"
34096 case "(($ac_try" in
34097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098   *) ac_try_echo=$ac_try;;
34099 esac
34100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34101   (eval "$ac_compile") 2>conftest.er1
34102   ac_status=$?
34103   grep -v '^ *+' conftest.er1 >conftest.err
34104   rm -f conftest.er1
34105   cat conftest.err >&5
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); } && {
34108          test -z "$ac_c_werror_flag" ||
34109          test ! -s conftest.err
34110        } && test -s conftest.$ac_objext; then
34111   ac_hi=$ac_mid
34112 else
34113   echo "$as_me: failed program was:" >&5
34114 sed 's/^/| /' conftest.$ac_ext >&5
34115
34116         ac_lo=`expr '(' $ac_mid ')' + 1`
34117 fi
34118
34119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34120 done
34121 case $ac_lo in
34122 ?*) ac_cv_sizeof_int=$ac_lo;;
34123 '') if test "$ac_cv_type_int" = yes; then
34124      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34125 See \`config.log' for more details." >&5
34126 echo "$as_me: error: cannot compute sizeof (int)
34127 See \`config.log' for more details." >&2;}
34128    { (exit 77); exit 77; }; }
34129    else
34130      ac_cv_sizeof_int=0
34131    fi ;;
34132 esac
34133 else
34134   cat >conftest.$ac_ext <<_ACEOF
34135 /* confdefs.h.  */
34136 _ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h.  */
34140 $ac_includes_default
34141    typedef int ac__type_sizeof_;
34142 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34143 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34144 #include <stdio.h>
34145 #include <stdlib.h>
34146 int
34147 main ()
34148 {
34149
34150   FILE *f = fopen ("conftest.val", "w");
34151   if (! f)
34152     return 1;
34153   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34154     {
34155       long int i = longval ();
34156       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34157         return 1;
34158       fprintf (f, "%ld\n", i);
34159     }
34160   else
34161     {
34162       unsigned long int i = ulongval ();
34163       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34164         return 1;
34165       fprintf (f, "%lu\n", i);
34166     }
34167   return ferror (f) || fclose (f) != 0;
34168
34169   ;
34170   return 0;
34171 }
34172 _ACEOF
34173 rm -f conftest$ac_exeext
34174 if { (ac_try="$ac_link"
34175 case "(($ac_try" in
34176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34177   *) ac_try_echo=$ac_try;;
34178 esac
34179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34180   (eval "$ac_link") 2>&5
34181   ac_status=$?
34182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34184   { (case "(($ac_try" in
34185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186   *) ac_try_echo=$ac_try;;
34187 esac
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189   (eval "$ac_try") 2>&5
34190   ac_status=$?
34191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192   (exit $ac_status); }; }; then
34193   ac_cv_sizeof_int=`cat conftest.val`
34194 else
34195   echo "$as_me: program exited with status $ac_status" >&5
34196 echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34198
34199 ( exit $ac_status )
34200 if test "$ac_cv_type_int" = yes; then
34201      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34202 See \`config.log' for more details." >&5
34203 echo "$as_me: error: cannot compute sizeof (int)
34204 See \`config.log' for more details." >&2;}
34205    { (exit 77); exit 77; }; }
34206    else
34207      ac_cv_sizeof_int=0
34208    fi
34209 fi
34210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34211 fi
34212 rm -f conftest.val
34213 fi
34214 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34215 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34216
34217
34218
34219 cat >>confdefs.h <<_ACEOF
34220 #define SIZEOF_INT $ac_cv_sizeof_int
34221 _ACEOF
34222
34223
34224 { echo "$as_me:$LINENO: checking for long" >&5
34225 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34226 if test "${ac_cv_type_long+set}" = set; then
34227   echo $ECHO_N "(cached) $ECHO_C" >&6
34228 else
34229   cat >conftest.$ac_ext <<_ACEOF
34230 /* confdefs.h.  */
34231 _ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h.  */
34235 $ac_includes_default
34236 typedef long ac__type_new_;
34237 int
34238 main ()
34239 {
34240 if ((ac__type_new_ *) 0)
34241   return 0;
34242 if (sizeof (ac__type_new_))
34243   return 0;
34244   ;
34245   return 0;
34246 }
34247 _ACEOF
34248 rm -f conftest.$ac_objext
34249 if { (ac_try="$ac_compile"
34250 case "(($ac_try" in
34251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34252   *) ac_try_echo=$ac_try;;
34253 esac
34254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34255   (eval "$ac_compile") 2>conftest.er1
34256   ac_status=$?
34257   grep -v '^ *+' conftest.er1 >conftest.err
34258   rm -f conftest.er1
34259   cat conftest.err >&5
34260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261   (exit $ac_status); } && {
34262          test -z "$ac_c_werror_flag" ||
34263          test ! -s conftest.err
34264        } && test -s conftest.$ac_objext; then
34265   ac_cv_type_long=yes
34266 else
34267   echo "$as_me: failed program was:" >&5
34268 sed 's/^/| /' conftest.$ac_ext >&5
34269
34270         ac_cv_type_long=no
34271 fi
34272
34273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34274 fi
34275 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34276 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34277
34278 # The cast to long int works around a bug in the HP C Compiler
34279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34281 # This bug is HP SR number 8606223364.
34282 { echo "$as_me:$LINENO: checking size of long" >&5
34283 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34284 if test "${ac_cv_sizeof_long+set}" = set; then
34285   echo $ECHO_N "(cached) $ECHO_C" >&6
34286 else
34287   if test "$cross_compiling" = yes; then
34288   # Depending upon the size, compute the lo and hi bounds.
34289 cat >conftest.$ac_ext <<_ACEOF
34290 /* confdefs.h.  */
34291 _ACEOF
34292 cat confdefs.h >>conftest.$ac_ext
34293 cat >>conftest.$ac_ext <<_ACEOF
34294 /* end confdefs.h.  */
34295 $ac_includes_default
34296    typedef long ac__type_sizeof_;
34297 int
34298 main ()
34299 {
34300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34301 test_array [0] = 0
34302
34303   ;
34304   return 0;
34305 }
34306 _ACEOF
34307 rm -f conftest.$ac_objext
34308 if { (ac_try="$ac_compile"
34309 case "(($ac_try" in
34310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34311   *) ac_try_echo=$ac_try;;
34312 esac
34313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34314   (eval "$ac_compile") 2>conftest.er1
34315   ac_status=$?
34316   grep -v '^ *+' conftest.er1 >conftest.err
34317   rm -f conftest.er1
34318   cat conftest.err >&5
34319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320   (exit $ac_status); } && {
34321          test -z "$ac_c_werror_flag" ||
34322          test ! -s conftest.err
34323        } && test -s conftest.$ac_objext; then
34324   ac_lo=0 ac_mid=0
34325   while :; do
34326     cat >conftest.$ac_ext <<_ACEOF
34327 /* confdefs.h.  */
34328 _ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h.  */
34332 $ac_includes_default
34333    typedef long ac__type_sizeof_;
34334 int
34335 main ()
34336 {
34337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34338 test_array [0] = 0
34339
34340   ;
34341   return 0;
34342 }
34343 _ACEOF
34344 rm -f conftest.$ac_objext
34345 if { (ac_try="$ac_compile"
34346 case "(($ac_try" in
34347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348   *) ac_try_echo=$ac_try;;
34349 esac
34350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351   (eval "$ac_compile") 2>conftest.er1
34352   ac_status=$?
34353   grep -v '^ *+' conftest.er1 >conftest.err
34354   rm -f conftest.er1
34355   cat conftest.err >&5
34356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357   (exit $ac_status); } && {
34358          test -z "$ac_c_werror_flag" ||
34359          test ! -s conftest.err
34360        } && test -s conftest.$ac_objext; then
34361   ac_hi=$ac_mid; break
34362 else
34363   echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34365
34366         ac_lo=`expr $ac_mid + 1`
34367                         if test $ac_lo -le $ac_mid; then
34368                           ac_lo= ac_hi=
34369                           break
34370                         fi
34371                         ac_mid=`expr 2 '*' $ac_mid + 1`
34372 fi
34373
34374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34375   done
34376 else
34377   echo "$as_me: failed program was:" >&5
34378 sed 's/^/| /' conftest.$ac_ext >&5
34379
34380         cat >conftest.$ac_ext <<_ACEOF
34381 /* confdefs.h.  */
34382 _ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h.  */
34386 $ac_includes_default
34387    typedef long ac__type_sizeof_;
34388 int
34389 main ()
34390 {
34391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34392 test_array [0] = 0
34393
34394   ;
34395   return 0;
34396 }
34397 _ACEOF
34398 rm -f conftest.$ac_objext
34399 if { (ac_try="$ac_compile"
34400 case "(($ac_try" in
34401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34402   *) ac_try_echo=$ac_try;;
34403 esac
34404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34405   (eval "$ac_compile") 2>conftest.er1
34406   ac_status=$?
34407   grep -v '^ *+' conftest.er1 >conftest.err
34408   rm -f conftest.er1
34409   cat conftest.err >&5
34410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411   (exit $ac_status); } && {
34412          test -z "$ac_c_werror_flag" ||
34413          test ! -s conftest.err
34414        } && test -s conftest.$ac_objext; then
34415   ac_hi=-1 ac_mid=-1
34416   while :; do
34417     cat >conftest.$ac_ext <<_ACEOF
34418 /* confdefs.h.  */
34419 _ACEOF
34420 cat confdefs.h >>conftest.$ac_ext
34421 cat >>conftest.$ac_ext <<_ACEOF
34422 /* end confdefs.h.  */
34423 $ac_includes_default
34424    typedef long ac__type_sizeof_;
34425 int
34426 main ()
34427 {
34428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34429 test_array [0] = 0
34430
34431   ;
34432   return 0;
34433 }
34434 _ACEOF
34435 rm -f conftest.$ac_objext
34436 if { (ac_try="$ac_compile"
34437 case "(($ac_try" in
34438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439   *) ac_try_echo=$ac_try;;
34440 esac
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442   (eval "$ac_compile") 2>conftest.er1
34443   ac_status=$?
34444   grep -v '^ *+' conftest.er1 >conftest.err
34445   rm -f conftest.er1
34446   cat conftest.err >&5
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); } && {
34449          test -z "$ac_c_werror_flag" ||
34450          test ! -s conftest.err
34451        } && test -s conftest.$ac_objext; then
34452   ac_lo=$ac_mid; break
34453 else
34454   echo "$as_me: failed program was:" >&5
34455 sed 's/^/| /' conftest.$ac_ext >&5
34456
34457         ac_hi=`expr '(' $ac_mid ')' - 1`
34458                         if test $ac_mid -le $ac_hi; then
34459                           ac_lo= ac_hi=
34460                           break
34461                         fi
34462                         ac_mid=`expr 2 '*' $ac_mid`
34463 fi
34464
34465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34466   done
34467 else
34468   echo "$as_me: failed program was:" >&5
34469 sed 's/^/| /' conftest.$ac_ext >&5
34470
34471         ac_lo= ac_hi=
34472 fi
34473
34474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34475 fi
34476
34477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34478 # Binary search between lo and hi bounds.
34479 while test "x$ac_lo" != "x$ac_hi"; do
34480   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34481   cat >conftest.$ac_ext <<_ACEOF
34482 /* confdefs.h.  */
34483 _ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h.  */
34487 $ac_includes_default
34488    typedef long ac__type_sizeof_;
34489 int
34490 main ()
34491 {
34492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34493 test_array [0] = 0
34494
34495   ;
34496   return 0;
34497 }
34498 _ACEOF
34499 rm -f conftest.$ac_objext
34500 if { (ac_try="$ac_compile"
34501 case "(($ac_try" in
34502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34503   *) ac_try_echo=$ac_try;;
34504 esac
34505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34506   (eval "$ac_compile") 2>conftest.er1
34507   ac_status=$?
34508   grep -v '^ *+' conftest.er1 >conftest.err
34509   rm -f conftest.er1
34510   cat conftest.err >&5
34511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512   (exit $ac_status); } && {
34513          test -z "$ac_c_werror_flag" ||
34514          test ! -s conftest.err
34515        } && test -s conftest.$ac_objext; then
34516   ac_hi=$ac_mid
34517 else
34518   echo "$as_me: failed program was:" >&5
34519 sed 's/^/| /' conftest.$ac_ext >&5
34520
34521         ac_lo=`expr '(' $ac_mid ')' + 1`
34522 fi
34523
34524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525 done
34526 case $ac_lo in
34527 ?*) ac_cv_sizeof_long=$ac_lo;;
34528 '') if test "$ac_cv_type_long" = yes; then
34529      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34530 See \`config.log' for more details." >&5
34531 echo "$as_me: error: cannot compute sizeof (long)
34532 See \`config.log' for more details." >&2;}
34533    { (exit 77); exit 77; }; }
34534    else
34535      ac_cv_sizeof_long=0
34536    fi ;;
34537 esac
34538 else
34539   cat >conftest.$ac_ext <<_ACEOF
34540 /* confdefs.h.  */
34541 _ACEOF
34542 cat confdefs.h >>conftest.$ac_ext
34543 cat >>conftest.$ac_ext <<_ACEOF
34544 /* end confdefs.h.  */
34545 $ac_includes_default
34546    typedef long ac__type_sizeof_;
34547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34549 #include <stdio.h>
34550 #include <stdlib.h>
34551 int
34552 main ()
34553 {
34554
34555   FILE *f = fopen ("conftest.val", "w");
34556   if (! f)
34557     return 1;
34558   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34559     {
34560       long int i = longval ();
34561       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34562         return 1;
34563       fprintf (f, "%ld\n", i);
34564     }
34565   else
34566     {
34567       unsigned long int i = ulongval ();
34568       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34569         return 1;
34570       fprintf (f, "%lu\n", i);
34571     }
34572   return ferror (f) || fclose (f) != 0;
34573
34574   ;
34575   return 0;
34576 }
34577 _ACEOF
34578 rm -f conftest$ac_exeext
34579 if { (ac_try="$ac_link"
34580 case "(($ac_try" in
34581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582   *) ac_try_echo=$ac_try;;
34583 esac
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585   (eval "$ac_link") 2>&5
34586   ac_status=$?
34587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34589   { (case "(($ac_try" in
34590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34591   *) ac_try_echo=$ac_try;;
34592 esac
34593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34594   (eval "$ac_try") 2>&5
34595   ac_status=$?
34596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597   (exit $ac_status); }; }; then
34598   ac_cv_sizeof_long=`cat conftest.val`
34599 else
34600   echo "$as_me: program exited with status $ac_status" >&5
34601 echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34603
34604 ( exit $ac_status )
34605 if test "$ac_cv_type_long" = yes; then
34606      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34607 See \`config.log' for more details." >&5
34608 echo "$as_me: error: cannot compute sizeof (long)
34609 See \`config.log' for more details." >&2;}
34610    { (exit 77); exit 77; }; }
34611    else
34612      ac_cv_sizeof_long=0
34613    fi
34614 fi
34615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34616 fi
34617 rm -f conftest.val
34618 fi
34619 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34620 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34621
34622
34623
34624 cat >>confdefs.h <<_ACEOF
34625 #define SIZEOF_LONG $ac_cv_sizeof_long
34626 _ACEOF
34627
34628
34629 { echo "$as_me:$LINENO: checking for long long" >&5
34630 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34631 if test "${ac_cv_type_long_long+set}" = set; then
34632   echo $ECHO_N "(cached) $ECHO_C" >&6
34633 else
34634   cat >conftest.$ac_ext <<_ACEOF
34635 /* confdefs.h.  */
34636 _ACEOF
34637 cat confdefs.h >>conftest.$ac_ext
34638 cat >>conftest.$ac_ext <<_ACEOF
34639 /* end confdefs.h.  */
34640 $ac_includes_default
34641 typedef long long ac__type_new_;
34642 int
34643 main ()
34644 {
34645 if ((ac__type_new_ *) 0)
34646   return 0;
34647 if (sizeof (ac__type_new_))
34648   return 0;
34649   ;
34650   return 0;
34651 }
34652 _ACEOF
34653 rm -f conftest.$ac_objext
34654 if { (ac_try="$ac_compile"
34655 case "(($ac_try" in
34656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34657   *) ac_try_echo=$ac_try;;
34658 esac
34659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34660   (eval "$ac_compile") 2>conftest.er1
34661   ac_status=$?
34662   grep -v '^ *+' conftest.er1 >conftest.err
34663   rm -f conftest.er1
34664   cat conftest.err >&5
34665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666   (exit $ac_status); } && {
34667          test -z "$ac_c_werror_flag" ||
34668          test ! -s conftest.err
34669        } && test -s conftest.$ac_objext; then
34670   ac_cv_type_long_long=yes
34671 else
34672   echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34674
34675         ac_cv_type_long_long=no
34676 fi
34677
34678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34679 fi
34680 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34681 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34682
34683 # The cast to long int works around a bug in the HP C Compiler
34684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34686 # This bug is HP SR number 8606223364.
34687 { echo "$as_me:$LINENO: checking size of long long" >&5
34688 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34689 if test "${ac_cv_sizeof_long_long+set}" = set; then
34690   echo $ECHO_N "(cached) $ECHO_C" >&6
34691 else
34692   if test "$cross_compiling" = yes; then
34693   # Depending upon the size, compute the lo and hi bounds.
34694 cat >conftest.$ac_ext <<_ACEOF
34695 /* confdefs.h.  */
34696 _ACEOF
34697 cat confdefs.h >>conftest.$ac_ext
34698 cat >>conftest.$ac_ext <<_ACEOF
34699 /* end confdefs.h.  */
34700 $ac_includes_default
34701    typedef long long ac__type_sizeof_;
34702 int
34703 main ()
34704 {
34705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34706 test_array [0] = 0
34707
34708   ;
34709   return 0;
34710 }
34711 _ACEOF
34712 rm -f conftest.$ac_objext
34713 if { (ac_try="$ac_compile"
34714 case "(($ac_try" in
34715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34716   *) ac_try_echo=$ac_try;;
34717 esac
34718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34719   (eval "$ac_compile") 2>conftest.er1
34720   ac_status=$?
34721   grep -v '^ *+' conftest.er1 >conftest.err
34722   rm -f conftest.er1
34723   cat conftest.err >&5
34724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725   (exit $ac_status); } && {
34726          test -z "$ac_c_werror_flag" ||
34727          test ! -s conftest.err
34728        } && test -s conftest.$ac_objext; then
34729   ac_lo=0 ac_mid=0
34730   while :; do
34731     cat >conftest.$ac_ext <<_ACEOF
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737 $ac_includes_default
34738    typedef long long ac__type_sizeof_;
34739 int
34740 main ()
34741 {
34742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34743 test_array [0] = 0
34744
34745   ;
34746   return 0;
34747 }
34748 _ACEOF
34749 rm -f conftest.$ac_objext
34750 if { (ac_try="$ac_compile"
34751 case "(($ac_try" in
34752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34753   *) ac_try_echo=$ac_try;;
34754 esac
34755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34756   (eval "$ac_compile") 2>conftest.er1
34757   ac_status=$?
34758   grep -v '^ *+' conftest.er1 >conftest.err
34759   rm -f conftest.er1
34760   cat conftest.err >&5
34761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762   (exit $ac_status); } && {
34763          test -z "$ac_c_werror_flag" ||
34764          test ! -s conftest.err
34765        } && test -s conftest.$ac_objext; then
34766   ac_hi=$ac_mid; break
34767 else
34768   echo "$as_me: failed program was:" >&5
34769 sed 's/^/| /' conftest.$ac_ext >&5
34770
34771         ac_lo=`expr $ac_mid + 1`
34772                         if test $ac_lo -le $ac_mid; then
34773                           ac_lo= ac_hi=
34774                           break
34775                         fi
34776                         ac_mid=`expr 2 '*' $ac_mid + 1`
34777 fi
34778
34779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34780   done
34781 else
34782   echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34784
34785         cat >conftest.$ac_ext <<_ACEOF
34786 /* confdefs.h.  */
34787 _ACEOF
34788 cat confdefs.h >>conftest.$ac_ext
34789 cat >>conftest.$ac_ext <<_ACEOF
34790 /* end confdefs.h.  */
34791 $ac_includes_default
34792    typedef long long ac__type_sizeof_;
34793 int
34794 main ()
34795 {
34796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34797 test_array [0] = 0
34798
34799   ;
34800   return 0;
34801 }
34802 _ACEOF
34803 rm -f conftest.$ac_objext
34804 if { (ac_try="$ac_compile"
34805 case "(($ac_try" in
34806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34807   *) ac_try_echo=$ac_try;;
34808 esac
34809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34810   (eval "$ac_compile") 2>conftest.er1
34811   ac_status=$?
34812   grep -v '^ *+' conftest.er1 >conftest.err
34813   rm -f conftest.er1
34814   cat conftest.err >&5
34815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816   (exit $ac_status); } && {
34817          test -z "$ac_c_werror_flag" ||
34818          test ! -s conftest.err
34819        } && test -s conftest.$ac_objext; then
34820   ac_hi=-1 ac_mid=-1
34821   while :; do
34822     cat >conftest.$ac_ext <<_ACEOF
34823 /* confdefs.h.  */
34824 _ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h.  */
34828 $ac_includes_default
34829    typedef long long ac__type_sizeof_;
34830 int
34831 main ()
34832 {
34833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34834 test_array [0] = 0
34835
34836   ;
34837   return 0;
34838 }
34839 _ACEOF
34840 rm -f conftest.$ac_objext
34841 if { (ac_try="$ac_compile"
34842 case "(($ac_try" in
34843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34844   *) ac_try_echo=$ac_try;;
34845 esac
34846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34847   (eval "$ac_compile") 2>conftest.er1
34848   ac_status=$?
34849   grep -v '^ *+' conftest.er1 >conftest.err
34850   rm -f conftest.er1
34851   cat conftest.err >&5
34852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853   (exit $ac_status); } && {
34854          test -z "$ac_c_werror_flag" ||
34855          test ! -s conftest.err
34856        } && test -s conftest.$ac_objext; then
34857   ac_lo=$ac_mid; break
34858 else
34859   echo "$as_me: failed program was:" >&5
34860 sed 's/^/| /' conftest.$ac_ext >&5
34861
34862         ac_hi=`expr '(' $ac_mid ')' - 1`
34863                         if test $ac_mid -le $ac_hi; then
34864                           ac_lo= ac_hi=
34865                           break
34866                         fi
34867                         ac_mid=`expr 2 '*' $ac_mid`
34868 fi
34869
34870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34871   done
34872 else
34873   echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34875
34876         ac_lo= ac_hi=
34877 fi
34878
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880 fi
34881
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883 # Binary search between lo and hi bounds.
34884 while test "x$ac_lo" != "x$ac_hi"; do
34885   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34886   cat >conftest.$ac_ext <<_ACEOF
34887 /* confdefs.h.  */
34888 _ACEOF
34889 cat confdefs.h >>conftest.$ac_ext
34890 cat >>conftest.$ac_ext <<_ACEOF
34891 /* end confdefs.h.  */
34892 $ac_includes_default
34893    typedef long long ac__type_sizeof_;
34894 int
34895 main ()
34896 {
34897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34898 test_array [0] = 0
34899
34900   ;
34901   return 0;
34902 }
34903 _ACEOF
34904 rm -f conftest.$ac_objext
34905 if { (ac_try="$ac_compile"
34906 case "(($ac_try" in
34907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34908   *) ac_try_echo=$ac_try;;
34909 esac
34910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34911   (eval "$ac_compile") 2>conftest.er1
34912   ac_status=$?
34913   grep -v '^ *+' conftest.er1 >conftest.err
34914   rm -f conftest.er1
34915   cat conftest.err >&5
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); } && {
34918          test -z "$ac_c_werror_flag" ||
34919          test ! -s conftest.err
34920        } && test -s conftest.$ac_objext; then
34921   ac_hi=$ac_mid
34922 else
34923   echo "$as_me: failed program was:" >&5
34924 sed 's/^/| /' conftest.$ac_ext >&5
34925
34926         ac_lo=`expr '(' $ac_mid ')' + 1`
34927 fi
34928
34929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34930 done
34931 case $ac_lo in
34932 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34933 '') if test "$ac_cv_type_long_long" = yes; then
34934      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34935 See \`config.log' for more details." >&5
34936 echo "$as_me: error: cannot compute sizeof (long long)
34937 See \`config.log' for more details." >&2;}
34938    { (exit 77); exit 77; }; }
34939    else
34940      ac_cv_sizeof_long_long=0
34941    fi ;;
34942 esac
34943 else
34944   cat >conftest.$ac_ext <<_ACEOF
34945 /* confdefs.h.  */
34946 _ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h.  */
34950 $ac_includes_default
34951    typedef long long ac__type_sizeof_;
34952 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34953 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34954 #include <stdio.h>
34955 #include <stdlib.h>
34956 int
34957 main ()
34958 {
34959
34960   FILE *f = fopen ("conftest.val", "w");
34961   if (! f)
34962     return 1;
34963   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34964     {
34965       long int i = longval ();
34966       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34967         return 1;
34968       fprintf (f, "%ld\n", i);
34969     }
34970   else
34971     {
34972       unsigned long int i = ulongval ();
34973       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34974         return 1;
34975       fprintf (f, "%lu\n", i);
34976     }
34977   return ferror (f) || fclose (f) != 0;
34978
34979   ;
34980   return 0;
34981 }
34982 _ACEOF
34983 rm -f conftest$ac_exeext
34984 if { (ac_try="$ac_link"
34985 case "(($ac_try" in
34986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34987   *) ac_try_echo=$ac_try;;
34988 esac
34989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34990   (eval "$ac_link") 2>&5
34991   ac_status=$?
34992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34994   { (case "(($ac_try" in
34995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34996   *) ac_try_echo=$ac_try;;
34997 esac
34998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34999   (eval "$ac_try") 2>&5
35000   ac_status=$?
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); }; }; then
35003   ac_cv_sizeof_long_long=`cat conftest.val`
35004 else
35005   echo "$as_me: program exited with status $ac_status" >&5
35006 echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35008
35009 ( exit $ac_status )
35010 if test "$ac_cv_type_long_long" = yes; then
35011      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35012 See \`config.log' for more details." >&5
35013 echo "$as_me: error: cannot compute sizeof (long long)
35014 See \`config.log' for more details." >&2;}
35015    { (exit 77); exit 77; }; }
35016    else
35017      ac_cv_sizeof_long_long=0
35018    fi
35019 fi
35020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35021 fi
35022 rm -f conftest.val
35023 fi
35024 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35025 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35026
35027
35028
35029 cat >>confdefs.h <<_ACEOF
35030 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35031 _ACEOF
35032
35033
35034 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35035 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35036 if test "${ac_cv_type_wchar_t+set}" = set; then
35037   echo $ECHO_N "(cached) $ECHO_C" >&6
35038 else
35039   cat >conftest.$ac_ext <<_ACEOF
35040 /* confdefs.h.  */
35041 _ACEOF
35042 cat confdefs.h >>conftest.$ac_ext
35043 cat >>conftest.$ac_ext <<_ACEOF
35044 /* end confdefs.h.  */
35045 $ac_includes_default
35046 typedef wchar_t ac__type_new_;
35047 int
35048 main ()
35049 {
35050 if ((ac__type_new_ *) 0)
35051   return 0;
35052 if (sizeof (ac__type_new_))
35053   return 0;
35054   ;
35055   return 0;
35056 }
35057 _ACEOF
35058 rm -f conftest.$ac_objext
35059 if { (ac_try="$ac_compile"
35060 case "(($ac_try" in
35061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35062   *) ac_try_echo=$ac_try;;
35063 esac
35064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35065   (eval "$ac_compile") 2>conftest.er1
35066   ac_status=$?
35067   grep -v '^ *+' conftest.er1 >conftest.err
35068   rm -f conftest.er1
35069   cat conftest.err >&5
35070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071   (exit $ac_status); } && {
35072          test -z "$ac_c_werror_flag" ||
35073          test ! -s conftest.err
35074        } && test -s conftest.$ac_objext; then
35075   ac_cv_type_wchar_t=yes
35076 else
35077   echo "$as_me: failed program was:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35079
35080         ac_cv_type_wchar_t=no
35081 fi
35082
35083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35084 fi
35085 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35086 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35087
35088 # The cast to long int works around a bug in the HP C Compiler
35089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35091 # This bug is HP SR number 8606223364.
35092 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35093 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35094 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35095   echo $ECHO_N "(cached) $ECHO_C" >&6
35096 else
35097   if test "$cross_compiling" = yes; then
35098   # Depending upon the size, compute the lo and hi bounds.
35099 cat >conftest.$ac_ext <<_ACEOF
35100 /* confdefs.h.  */
35101 _ACEOF
35102 cat confdefs.h >>conftest.$ac_ext
35103 cat >>conftest.$ac_ext <<_ACEOF
35104 /* end confdefs.h.  */
35105 $ac_includes_default
35106    typedef wchar_t ac__type_sizeof_;
35107 int
35108 main ()
35109 {
35110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35111 test_array [0] = 0
35112
35113   ;
35114   return 0;
35115 }
35116 _ACEOF
35117 rm -f conftest.$ac_objext
35118 if { (ac_try="$ac_compile"
35119 case "(($ac_try" in
35120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35121   *) ac_try_echo=$ac_try;;
35122 esac
35123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35124   (eval "$ac_compile") 2>conftest.er1
35125   ac_status=$?
35126   grep -v '^ *+' conftest.er1 >conftest.err
35127   rm -f conftest.er1
35128   cat conftest.err >&5
35129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130   (exit $ac_status); } && {
35131          test -z "$ac_c_werror_flag" ||
35132          test ! -s conftest.err
35133        } && test -s conftest.$ac_objext; then
35134   ac_lo=0 ac_mid=0
35135   while :; do
35136     cat >conftest.$ac_ext <<_ACEOF
35137 /* confdefs.h.  */
35138 _ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h.  */
35142 $ac_includes_default
35143    typedef wchar_t ac__type_sizeof_;
35144 int
35145 main ()
35146 {
35147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35148 test_array [0] = 0
35149
35150   ;
35151   return 0;
35152 }
35153 _ACEOF
35154 rm -f conftest.$ac_objext
35155 if { (ac_try="$ac_compile"
35156 case "(($ac_try" in
35157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158   *) ac_try_echo=$ac_try;;
35159 esac
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161   (eval "$ac_compile") 2>conftest.er1
35162   ac_status=$?
35163   grep -v '^ *+' conftest.er1 >conftest.err
35164   rm -f conftest.er1
35165   cat conftest.err >&5
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } && {
35168          test -z "$ac_c_werror_flag" ||
35169          test ! -s conftest.err
35170        } && test -s conftest.$ac_objext; then
35171   ac_hi=$ac_mid; break
35172 else
35173   echo "$as_me: failed program was:" >&5
35174 sed 's/^/| /' conftest.$ac_ext >&5
35175
35176         ac_lo=`expr $ac_mid + 1`
35177                         if test $ac_lo -le $ac_mid; then
35178                           ac_lo= ac_hi=
35179                           break
35180                         fi
35181                         ac_mid=`expr 2 '*' $ac_mid + 1`
35182 fi
35183
35184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35185   done
35186 else
35187   echo "$as_me: failed program was:" >&5
35188 sed 's/^/| /' conftest.$ac_ext >&5
35189
35190         cat >conftest.$ac_ext <<_ACEOF
35191 /* confdefs.h.  */
35192 _ACEOF
35193 cat confdefs.h >>conftest.$ac_ext
35194 cat >>conftest.$ac_ext <<_ACEOF
35195 /* end confdefs.h.  */
35196 $ac_includes_default
35197    typedef wchar_t ac__type_sizeof_;
35198 int
35199 main ()
35200 {
35201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35202 test_array [0] = 0
35203
35204   ;
35205   return 0;
35206 }
35207 _ACEOF
35208 rm -f conftest.$ac_objext
35209 if { (ac_try="$ac_compile"
35210 case "(($ac_try" in
35211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35212   *) ac_try_echo=$ac_try;;
35213 esac
35214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35215   (eval "$ac_compile") 2>conftest.er1
35216   ac_status=$?
35217   grep -v '^ *+' conftest.er1 >conftest.err
35218   rm -f conftest.er1
35219   cat conftest.err >&5
35220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221   (exit $ac_status); } && {
35222          test -z "$ac_c_werror_flag" ||
35223          test ! -s conftest.err
35224        } && test -s conftest.$ac_objext; then
35225   ac_hi=-1 ac_mid=-1
35226   while :; do
35227     cat >conftest.$ac_ext <<_ACEOF
35228 /* confdefs.h.  */
35229 _ACEOF
35230 cat confdefs.h >>conftest.$ac_ext
35231 cat >>conftest.$ac_ext <<_ACEOF
35232 /* end confdefs.h.  */
35233 $ac_includes_default
35234    typedef wchar_t ac__type_sizeof_;
35235 int
35236 main ()
35237 {
35238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35239 test_array [0] = 0
35240
35241   ;
35242   return 0;
35243 }
35244 _ACEOF
35245 rm -f conftest.$ac_objext
35246 if { (ac_try="$ac_compile"
35247 case "(($ac_try" in
35248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35249   *) ac_try_echo=$ac_try;;
35250 esac
35251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35252   (eval "$ac_compile") 2>conftest.er1
35253   ac_status=$?
35254   grep -v '^ *+' conftest.er1 >conftest.err
35255   rm -f conftest.er1
35256   cat conftest.err >&5
35257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258   (exit $ac_status); } && {
35259          test -z "$ac_c_werror_flag" ||
35260          test ! -s conftest.err
35261        } && test -s conftest.$ac_objext; then
35262   ac_lo=$ac_mid; break
35263 else
35264   echo "$as_me: failed program was:" >&5
35265 sed 's/^/| /' conftest.$ac_ext >&5
35266
35267         ac_hi=`expr '(' $ac_mid ')' - 1`
35268                         if test $ac_mid -le $ac_hi; then
35269                           ac_lo= ac_hi=
35270                           break
35271                         fi
35272                         ac_mid=`expr 2 '*' $ac_mid`
35273 fi
35274
35275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35276   done
35277 else
35278   echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35280
35281         ac_lo= ac_hi=
35282 fi
35283
35284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35285 fi
35286
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288 # Binary search between lo and hi bounds.
35289 while test "x$ac_lo" != "x$ac_hi"; do
35290   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35291   cat >conftest.$ac_ext <<_ACEOF
35292 /* confdefs.h.  */
35293 _ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h.  */
35297 $ac_includes_default
35298    typedef wchar_t ac__type_sizeof_;
35299 int
35300 main ()
35301 {
35302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35303 test_array [0] = 0
35304
35305   ;
35306   return 0;
35307 }
35308 _ACEOF
35309 rm -f conftest.$ac_objext
35310 if { (ac_try="$ac_compile"
35311 case "(($ac_try" in
35312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35313   *) ac_try_echo=$ac_try;;
35314 esac
35315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35316   (eval "$ac_compile") 2>conftest.er1
35317   ac_status=$?
35318   grep -v '^ *+' conftest.er1 >conftest.err
35319   rm -f conftest.er1
35320   cat conftest.err >&5
35321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322   (exit $ac_status); } && {
35323          test -z "$ac_c_werror_flag" ||
35324          test ! -s conftest.err
35325        } && test -s conftest.$ac_objext; then
35326   ac_hi=$ac_mid
35327 else
35328   echo "$as_me: failed program was:" >&5
35329 sed 's/^/| /' conftest.$ac_ext >&5
35330
35331         ac_lo=`expr '(' $ac_mid ')' + 1`
35332 fi
35333
35334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35335 done
35336 case $ac_lo in
35337 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35338 '') if test "$ac_cv_type_wchar_t" = yes; then
35339      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35340 See \`config.log' for more details." >&5
35341 echo "$as_me: error: cannot compute sizeof (wchar_t)
35342 See \`config.log' for more details." >&2;}
35343    { (exit 77); exit 77; }; }
35344    else
35345      ac_cv_sizeof_wchar_t=0
35346    fi ;;
35347 esac
35348 else
35349   cat >conftest.$ac_ext <<_ACEOF
35350 /* confdefs.h.  */
35351 _ACEOF
35352 cat confdefs.h >>conftest.$ac_ext
35353 cat >>conftest.$ac_ext <<_ACEOF
35354 /* end confdefs.h.  */
35355 $ac_includes_default
35356    typedef wchar_t ac__type_sizeof_;
35357 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35358 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35359 #include <stdio.h>
35360 #include <stdlib.h>
35361 int
35362 main ()
35363 {
35364
35365   FILE *f = fopen ("conftest.val", "w");
35366   if (! f)
35367     return 1;
35368   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35369     {
35370       long int i = longval ();
35371       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35372         return 1;
35373       fprintf (f, "%ld\n", i);
35374     }
35375   else
35376     {
35377       unsigned long int i = ulongval ();
35378       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35379         return 1;
35380       fprintf (f, "%lu\n", i);
35381     }
35382   return ferror (f) || fclose (f) != 0;
35383
35384   ;
35385   return 0;
35386 }
35387 _ACEOF
35388 rm -f conftest$ac_exeext
35389 if { (ac_try="$ac_link"
35390 case "(($ac_try" in
35391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35392   *) ac_try_echo=$ac_try;;
35393 esac
35394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35395   (eval "$ac_link") 2>&5
35396   ac_status=$?
35397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35399   { (case "(($ac_try" in
35400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35401   *) ac_try_echo=$ac_try;;
35402 esac
35403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35404   (eval "$ac_try") 2>&5
35405   ac_status=$?
35406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407   (exit $ac_status); }; }; then
35408   ac_cv_sizeof_wchar_t=`cat conftest.val`
35409 else
35410   echo "$as_me: program exited with status $ac_status" >&5
35411 echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35413
35414 ( exit $ac_status )
35415 if test "$ac_cv_type_wchar_t" = yes; then
35416      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35417 See \`config.log' for more details." >&5
35418 echo "$as_me: error: cannot compute sizeof (wchar_t)
35419 See \`config.log' for more details." >&2;}
35420    { (exit 77); exit 77; }; }
35421    else
35422      ac_cv_sizeof_wchar_t=0
35423    fi
35424 fi
35425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35426 fi
35427 rm -f conftest.val
35428 fi
35429 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35430 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35431
35432
35433
35434 cat >>confdefs.h <<_ACEOF
35435 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35436 _ACEOF
35437
35438
35439
35440 if test "$ac_cv_sizeof_int" -lt 4 ; then
35441         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35442 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35443
35444
35445 cat >>confdefs.h <<\_ACEOF
35446 #define LBER_INT_T long
35447 _ACEOF
35448
35449 else
35450
35451 cat >>confdefs.h <<\_ACEOF
35452 #define LBER_INT_T int
35453 _ACEOF
35454
35455 fi
35456
35457
35458 cat >>confdefs.h <<\_ACEOF
35459 #define LBER_LEN_T long
35460 _ACEOF
35461
35462
35463 cat >>confdefs.h <<\_ACEOF
35464 #define LBER_SOCKET_T int
35465 _ACEOF
35466
35467
35468 cat >>confdefs.h <<\_ACEOF
35469 #define LBER_TAG_T long
35470 _ACEOF
35471
35472
35473 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35474         if test $ac_cv_sizeof_long_long -gt 4 ; then
35475                 ol_with_mp=longlong
35476
35477 cat >>confdefs.h <<\_ACEOF
35478 #define USE_MP_LONG_LONG 1
35479 _ACEOF
35480
35481         elif test $ol_with_mp = longlong ; then
35482                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35483 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35484    { (exit 1); exit 1; }; }
35485         fi
35486 fi
35487 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35488         if test $ac_cv_sizeof_long -gt 4 ; then
35489                 ol_with_mp=long
35490
35491 cat >>confdefs.h <<\_ACEOF
35492 #define USE_MP_LONG 1
35493 _ACEOF
35494
35495         elif test $ol_with_mp = long ; then
35496                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35497 echo "$as_me: error: long unusable for multiple precision" >&2;}
35498    { (exit 1); exit 1; }; }
35499         fi
35500 fi
35501 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35502
35503 for ac_header in openssl/bn.h
35504 do
35505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35507   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35510   echo $ECHO_N "(cached) $ECHO_C" >&6
35511 fi
35512 ac_res=`eval echo '${'$as_ac_Header'}'`
35513                { echo "$as_me:$LINENO: result: $ac_res" >&5
35514 echo "${ECHO_T}$ac_res" >&6; }
35515 else
35516   # Is the header compilable?
35517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35519 cat >conftest.$ac_ext <<_ACEOF
35520 /* confdefs.h.  */
35521 _ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h.  */
35525 $ac_includes_default
35526 #include <$ac_header>
35527 _ACEOF
35528 rm -f conftest.$ac_objext
35529 if { (ac_try="$ac_compile"
35530 case "(($ac_try" in
35531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35532   *) ac_try_echo=$ac_try;;
35533 esac
35534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35535   (eval "$ac_compile") 2>conftest.er1
35536   ac_status=$?
35537   grep -v '^ *+' conftest.er1 >conftest.err
35538   rm -f conftest.er1
35539   cat conftest.err >&5
35540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541   (exit $ac_status); } && {
35542          test -z "$ac_c_werror_flag" ||
35543          test ! -s conftest.err
35544        } && test -s conftest.$ac_objext; then
35545   ac_header_compiler=yes
35546 else
35547   echo "$as_me: failed program was:" >&5
35548 sed 's/^/| /' conftest.$ac_ext >&5
35549
35550         ac_header_compiler=no
35551 fi
35552
35553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35555 echo "${ECHO_T}$ac_header_compiler" >&6; }
35556
35557 # Is the header present?
35558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35560 cat >conftest.$ac_ext <<_ACEOF
35561 /* confdefs.h.  */
35562 _ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h.  */
35566 #include <$ac_header>
35567 _ACEOF
35568 if { (ac_try="$ac_cpp conftest.$ac_ext"
35569 case "(($ac_try" in
35570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35571   *) ac_try_echo=$ac_try;;
35572 esac
35573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35575   ac_status=$?
35576   grep -v '^ *+' conftest.er1 >conftest.err
35577   rm -f conftest.er1
35578   cat conftest.err >&5
35579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580   (exit $ac_status); } >/dev/null && {
35581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35582          test ! -s conftest.err
35583        }; then
35584   ac_header_preproc=yes
35585 else
35586   echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35588
35589   ac_header_preproc=no
35590 fi
35591
35592 rm -f conftest.err conftest.$ac_ext
35593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35594 echo "${ECHO_T}$ac_header_preproc" >&6; }
35595
35596 # So?  What about this header?
35597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35598   yes:no: )
35599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35603     ac_header_preproc=yes
35604     ;;
35605   no:yes:* )
35606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35618     ( cat <<\_ASBOX
35619 ## --------------------------------------------- ##
35620 ## Report this to <http://www.openldap.org/its/> ##
35621 ## --------------------------------------------- ##
35622 _ASBOX
35623      ) | sed "s/^/$as_me: WARNING:     /" >&2
35624     ;;
35625 esac
35626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35629   echo $ECHO_N "(cached) $ECHO_C" >&6
35630 else
35631   eval "$as_ac_Header=\$ac_header_preproc"
35632 fi
35633 ac_res=`eval echo '${'$as_ac_Header'}'`
35634                { echo "$as_me:$LINENO: result: $ac_res" >&5
35635 echo "${ECHO_T}$ac_res" >&6; }
35636
35637 fi
35638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35639   cat >>confdefs.h <<_ACEOF
35640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35641 _ACEOF
35642
35643 fi
35644
35645 done
35646
35647
35648 for ac_header in openssl/crypto.h
35649 do
35650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35652   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35655   echo $ECHO_N "(cached) $ECHO_C" >&6
35656 fi
35657 ac_res=`eval echo '${'$as_ac_Header'}'`
35658                { echo "$as_me:$LINENO: result: $ac_res" >&5
35659 echo "${ECHO_T}$ac_res" >&6; }
35660 else
35661   # Is the header compilable?
35662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35664 cat >conftest.$ac_ext <<_ACEOF
35665 /* confdefs.h.  */
35666 _ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h.  */
35670 $ac_includes_default
35671 #include <$ac_header>
35672 _ACEOF
35673 rm -f conftest.$ac_objext
35674 if { (ac_try="$ac_compile"
35675 case "(($ac_try" in
35676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35677   *) ac_try_echo=$ac_try;;
35678 esac
35679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35680   (eval "$ac_compile") 2>conftest.er1
35681   ac_status=$?
35682   grep -v '^ *+' conftest.er1 >conftest.err
35683   rm -f conftest.er1
35684   cat conftest.err >&5
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); } && {
35687          test -z "$ac_c_werror_flag" ||
35688          test ! -s conftest.err
35689        } && test -s conftest.$ac_objext; then
35690   ac_header_compiler=yes
35691 else
35692   echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35694
35695         ac_header_compiler=no
35696 fi
35697
35698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35700 echo "${ECHO_T}$ac_header_compiler" >&6; }
35701
35702 # Is the header present?
35703 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35705 cat >conftest.$ac_ext <<_ACEOF
35706 /* confdefs.h.  */
35707 _ACEOF
35708 cat confdefs.h >>conftest.$ac_ext
35709 cat >>conftest.$ac_ext <<_ACEOF
35710 /* end confdefs.h.  */
35711 #include <$ac_header>
35712 _ACEOF
35713 if { (ac_try="$ac_cpp conftest.$ac_ext"
35714 case "(($ac_try" in
35715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35716   *) ac_try_echo=$ac_try;;
35717 esac
35718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35720   ac_status=$?
35721   grep -v '^ *+' conftest.er1 >conftest.err
35722   rm -f conftest.er1
35723   cat conftest.err >&5
35724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725   (exit $ac_status); } >/dev/null && {
35726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35727          test ! -s conftest.err
35728        }; then
35729   ac_header_preproc=yes
35730 else
35731   echo "$as_me: failed program was:" >&5
35732 sed 's/^/| /' conftest.$ac_ext >&5
35733
35734   ac_header_preproc=no
35735 fi
35736
35737 rm -f conftest.err conftest.$ac_ext
35738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35739 echo "${ECHO_T}$ac_header_preproc" >&6; }
35740
35741 # So?  What about this header?
35742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35743   yes:no: )
35744     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35748     ac_header_preproc=yes
35749     ;;
35750   no:yes:* )
35751     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35753     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35754 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35755     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35757     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35758 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35761     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35763     ( cat <<\_ASBOX
35764 ## --------------------------------------------- ##
35765 ## Report this to <http://www.openldap.org/its/> ##
35766 ## --------------------------------------------- ##
35767 _ASBOX
35768      ) | sed "s/^/$as_me: WARNING:     /" >&2
35769     ;;
35770 esac
35771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35774   echo $ECHO_N "(cached) $ECHO_C" >&6
35775 else
35776   eval "$as_ac_Header=\$ac_header_preproc"
35777 fi
35778 ac_res=`eval echo '${'$as_ac_Header'}'`
35779                { echo "$as_me:$LINENO: result: $ac_res" >&5
35780 echo "${ECHO_T}$ac_res" >&6; }
35781
35782 fi
35783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35784   cat >>confdefs.h <<_ACEOF
35785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35786 _ACEOF
35787
35788 fi
35789
35790 done
35791
35792         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35793                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35794                 test "$ol_with_tls" = "found" ; then
35795                 ol_with_mp=bignum
35796
35797 cat >>confdefs.h <<\_ACEOF
35798 #define USE_MP_BIGNUM 1
35799 _ACEOF
35800
35801         elif test $ol_with_mp = bignum ; then
35802                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35803 echo "$as_me: error: bignum not available" >&2;}
35804    { (exit 1); exit 1; }; }
35805         fi
35806 fi
35807 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35808
35809 for ac_header in gmp.h
35810 do
35811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35813   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35816   echo $ECHO_N "(cached) $ECHO_C" >&6
35817 fi
35818 ac_res=`eval echo '${'$as_ac_Header'}'`
35819                { echo "$as_me:$LINENO: result: $ac_res" >&5
35820 echo "${ECHO_T}$ac_res" >&6; }
35821 else
35822   # Is the header compilable?
35823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35825 cat >conftest.$ac_ext <<_ACEOF
35826 /* confdefs.h.  */
35827 _ACEOF
35828 cat confdefs.h >>conftest.$ac_ext
35829 cat >>conftest.$ac_ext <<_ACEOF
35830 /* end confdefs.h.  */
35831 $ac_includes_default
35832 #include <$ac_header>
35833 _ACEOF
35834 rm -f conftest.$ac_objext
35835 if { (ac_try="$ac_compile"
35836 case "(($ac_try" in
35837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35838   *) ac_try_echo=$ac_try;;
35839 esac
35840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35841   (eval "$ac_compile") 2>conftest.er1
35842   ac_status=$?
35843   grep -v '^ *+' conftest.er1 >conftest.err
35844   rm -f conftest.er1
35845   cat conftest.err >&5
35846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847   (exit $ac_status); } && {
35848          test -z "$ac_c_werror_flag" ||
35849          test ! -s conftest.err
35850        } && test -s conftest.$ac_objext; then
35851   ac_header_compiler=yes
35852 else
35853   echo "$as_me: failed program was:" >&5
35854 sed 's/^/| /' conftest.$ac_ext >&5
35855
35856         ac_header_compiler=no
35857 fi
35858
35859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35861 echo "${ECHO_T}$ac_header_compiler" >&6; }
35862
35863 # Is the header present?
35864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35866 cat >conftest.$ac_ext <<_ACEOF
35867 /* confdefs.h.  */
35868 _ACEOF
35869 cat confdefs.h >>conftest.$ac_ext
35870 cat >>conftest.$ac_ext <<_ACEOF
35871 /* end confdefs.h.  */
35872 #include <$ac_header>
35873 _ACEOF
35874 if { (ac_try="$ac_cpp conftest.$ac_ext"
35875 case "(($ac_try" in
35876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35877   *) ac_try_echo=$ac_try;;
35878 esac
35879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35881   ac_status=$?
35882   grep -v '^ *+' conftest.er1 >conftest.err
35883   rm -f conftest.er1
35884   cat conftest.err >&5
35885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886   (exit $ac_status); } >/dev/null && {
35887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35888          test ! -s conftest.err
35889        }; then
35890   ac_header_preproc=yes
35891 else
35892   echo "$as_me: failed program was:" >&5
35893 sed 's/^/| /' conftest.$ac_ext >&5
35894
35895   ac_header_preproc=no
35896 fi
35897
35898 rm -f conftest.err conftest.$ac_ext
35899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35900 echo "${ECHO_T}$ac_header_preproc" >&6; }
35901
35902 # So?  What about this header?
35903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35904   yes:no: )
35905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35909     ac_header_preproc=yes
35910     ;;
35911   no:yes:* )
35912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35924     ( cat <<\_ASBOX
35925 ## --------------------------------------------- ##
35926 ## Report this to <http://www.openldap.org/its/> ##
35927 ## --------------------------------------------- ##
35928 _ASBOX
35929      ) | sed "s/^/$as_me: WARNING:     /" >&2
35930     ;;
35931 esac
35932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35935   echo $ECHO_N "(cached) $ECHO_C" >&6
35936 else
35937   eval "$as_ac_Header=\$ac_header_preproc"
35938 fi
35939 ac_res=`eval echo '${'$as_ac_Header'}'`
35940                { echo "$as_me:$LINENO: result: $ac_res" >&5
35941 echo "${ECHO_T}$ac_res" >&6; }
35942
35943 fi
35944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35945   cat >>confdefs.h <<_ACEOF
35946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35947 _ACEOF
35948
35949 fi
35950
35951 done
35952
35953
35954 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35955 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35956 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35957   echo $ECHO_N "(cached) $ECHO_C" >&6
35958 else
35959   ac_check_lib_save_LIBS=$LIBS
35960 LIBS="-lgmp  $LIBS"
35961 cat >conftest.$ac_ext <<_ACEOF
35962 /* confdefs.h.  */
35963 _ACEOF
35964 cat confdefs.h >>conftest.$ac_ext
35965 cat >>conftest.$ac_ext <<_ACEOF
35966 /* end confdefs.h.  */
35967
35968 /* Override any GCC internal prototype to avoid an error.
35969    Use char because int might match the return type of a GCC
35970    builtin and then its argument prototype would still apply.  */
35971 #ifdef __cplusplus
35972 extern "C"
35973 #endif
35974 char __gmpz_add_ui ();
35975 int
35976 main ()
35977 {
35978 return __gmpz_add_ui ();
35979   ;
35980   return 0;
35981 }
35982 _ACEOF
35983 rm -f conftest.$ac_objext conftest$ac_exeext
35984 if { (ac_try="$ac_link"
35985 case "(($ac_try" in
35986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35987   *) ac_try_echo=$ac_try;;
35988 esac
35989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35990   (eval "$ac_link") 2>conftest.er1
35991   ac_status=$?
35992   grep -v '^ *+' conftest.er1 >conftest.err
35993   rm -f conftest.er1
35994   cat conftest.err >&5
35995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996   (exit $ac_status); } && {
35997          test -z "$ac_c_werror_flag" ||
35998          test ! -s conftest.err
35999        } && test -s conftest$ac_exeext &&
36000        $as_test_x conftest$ac_exeext; then
36001   ac_cv_lib_gmp___gmpz_add_ui=yes
36002 else
36003   echo "$as_me: failed program was:" >&5
36004 sed 's/^/| /' conftest.$ac_ext >&5
36005
36006         ac_cv_lib_gmp___gmpz_add_ui=no
36007 fi
36008
36009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36010       conftest$ac_exeext conftest.$ac_ext
36011 LIBS=$ac_check_lib_save_LIBS
36012 fi
36013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36014 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36015 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36016   cat >>confdefs.h <<_ACEOF
36017 #define HAVE_LIBGMP 1
36018 _ACEOF
36019
36020   LIBS="-lgmp $LIBS"
36021
36022 fi
36023
36024         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36025
36026 cat >>confdefs.h <<\_ACEOF
36027 #define USE_MP_GMP 1
36028 _ACEOF
36029
36030                 ol_with_mp=gmp
36031         elif test $ol_with_mp = gmp ; then
36032                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36033 echo "$as_me: error: gmp not available" >&2;}
36034    { (exit 1); exit 1; }; }
36035         fi
36036 fi
36037 if test $ol_with_mp = auto ; then
36038         ol_with_mp=no
36039 fi
36040
36041 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36042 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36043 if test "${ac_cv_func_memcmp_working+set}" = set; then
36044   echo $ECHO_N "(cached) $ECHO_C" >&6
36045 else
36046   if test "$cross_compiling" = yes; then
36047   ac_cv_func_memcmp_working=no
36048 else
36049   cat >conftest.$ac_ext <<_ACEOF
36050 /* confdefs.h.  */
36051 _ACEOF
36052 cat confdefs.h >>conftest.$ac_ext
36053 cat >>conftest.$ac_ext <<_ACEOF
36054 /* end confdefs.h.  */
36055 $ac_includes_default
36056 int
36057 main ()
36058 {
36059
36060   /* Some versions of memcmp are not 8-bit clean.  */
36061   char c0 = '\100', c1 = '\200', c2 = '\201';
36062   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36063     return 1;
36064
36065   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36066      or more and with at least one buffer not starting on a 4-byte boundary.
36067      William Lewis provided this test program.   */
36068   {
36069     char foo[21];
36070     char bar[21];
36071     int i;
36072     for (i = 0; i < 4; i++)
36073       {
36074         char *a = foo + i;
36075         char *b = bar + i;
36076         strcpy (a, "--------01111111");
36077         strcpy (b, "--------10000000");
36078         if (memcmp (a, b, 16) >= 0)
36079           return 1;
36080       }
36081     return 0;
36082   }
36083
36084   ;
36085   return 0;
36086 }
36087 _ACEOF
36088 rm -f conftest$ac_exeext
36089 if { (ac_try="$ac_link"
36090 case "(($ac_try" in
36091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36092   *) ac_try_echo=$ac_try;;
36093 esac
36094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36095   (eval "$ac_link") 2>&5
36096   ac_status=$?
36097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36099   { (case "(($ac_try" in
36100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36101   *) ac_try_echo=$ac_try;;
36102 esac
36103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36104   (eval "$ac_try") 2>&5
36105   ac_status=$?
36106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107   (exit $ac_status); }; }; then
36108   ac_cv_func_memcmp_working=yes
36109 else
36110   echo "$as_me: program exited with status $ac_status" >&5
36111 echo "$as_me: failed program was:" >&5
36112 sed 's/^/| /' conftest.$ac_ext >&5
36113
36114 ( exit $ac_status )
36115 ac_cv_func_memcmp_working=no
36116 fi
36117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36118 fi
36119
36120
36121 fi
36122 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36123 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36124 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36125   *" memcmp.$ac_objext "* ) ;;
36126   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36127  ;;
36128 esac
36129
36130
36131
36132 if test $ac_cv_func_memcmp_working = no ; then
36133
36134 cat >>confdefs.h <<\_ACEOF
36135 #define NEED_MEMCMP_REPLACEMENT 1
36136 _ACEOF
36137
36138 fi
36139
36140
36141 for ac_func in strftime
36142 do
36143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36147   echo $ECHO_N "(cached) $ECHO_C" >&6
36148 else
36149   cat >conftest.$ac_ext <<_ACEOF
36150 /* confdefs.h.  */
36151 _ACEOF
36152 cat confdefs.h >>conftest.$ac_ext
36153 cat >>conftest.$ac_ext <<_ACEOF
36154 /* end confdefs.h.  */
36155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36157 #define $ac_func innocuous_$ac_func
36158
36159 /* System header to define __stub macros and hopefully few prototypes,
36160     which can conflict with char $ac_func (); below.
36161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36162     <limits.h> exists even on freestanding compilers.  */
36163
36164 #ifdef __STDC__
36165 # include <limits.h>
36166 #else
36167 # include <assert.h>
36168 #endif
36169
36170 #undef $ac_func
36171
36172 /* Override any GCC internal prototype to avoid an error.
36173    Use char because int might match the return type of a GCC
36174    builtin and then its argument prototype would still apply.  */
36175 #ifdef __cplusplus
36176 extern "C"
36177 #endif
36178 char $ac_func ();
36179 /* The GNU C library defines this for functions which it implements
36180     to always fail with ENOSYS.  Some functions are actually named
36181     something starting with __ and the normal name is an alias.  */
36182 #if defined __stub_$ac_func || defined __stub___$ac_func
36183 choke me
36184 #endif
36185
36186 int
36187 main ()
36188 {
36189 return $ac_func ();
36190   ;
36191   return 0;
36192 }
36193 _ACEOF
36194 rm -f conftest.$ac_objext conftest$ac_exeext
36195 if { (ac_try="$ac_link"
36196 case "(($ac_try" in
36197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36198   *) ac_try_echo=$ac_try;;
36199 esac
36200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36201   (eval "$ac_link") 2>conftest.er1
36202   ac_status=$?
36203   grep -v '^ *+' conftest.er1 >conftest.err
36204   rm -f conftest.er1
36205   cat conftest.err >&5
36206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36207   (exit $ac_status); } && {
36208          test -z "$ac_c_werror_flag" ||
36209          test ! -s conftest.err
36210        } && test -s conftest$ac_exeext &&
36211        $as_test_x conftest$ac_exeext; then
36212   eval "$as_ac_var=yes"
36213 else
36214   echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.$ac_ext >&5
36216
36217         eval "$as_ac_var=no"
36218 fi
36219
36220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36221       conftest$ac_exeext conftest.$ac_ext
36222 fi
36223 ac_res=`eval echo '${'$as_ac_var'}'`
36224                { echo "$as_me:$LINENO: result: $ac_res" >&5
36225 echo "${ECHO_T}$ac_res" >&6; }
36226 if test `eval echo '${'$as_ac_var'}'` = yes; then
36227   cat >>confdefs.h <<_ACEOF
36228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36229 _ACEOF
36230
36231 else
36232   # strftime is in -lintl on SCO UNIX.
36233 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36234 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36235 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36236   echo $ECHO_N "(cached) $ECHO_C" >&6
36237 else
36238   ac_check_lib_save_LIBS=$LIBS
36239 LIBS="-lintl  $LIBS"
36240 cat >conftest.$ac_ext <<_ACEOF
36241 /* confdefs.h.  */
36242 _ACEOF
36243 cat confdefs.h >>conftest.$ac_ext
36244 cat >>conftest.$ac_ext <<_ACEOF
36245 /* end confdefs.h.  */
36246
36247 /* Override any GCC internal prototype to avoid an error.
36248    Use char because int might match the return type of a GCC
36249    builtin and then its argument prototype would still apply.  */
36250 #ifdef __cplusplus
36251 extern "C"
36252 #endif
36253 char strftime ();
36254 int
36255 main ()
36256 {
36257 return strftime ();
36258   ;
36259   return 0;
36260 }
36261 _ACEOF
36262 rm -f conftest.$ac_objext conftest$ac_exeext
36263 if { (ac_try="$ac_link"
36264 case "(($ac_try" in
36265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36266   *) ac_try_echo=$ac_try;;
36267 esac
36268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36269   (eval "$ac_link") 2>conftest.er1
36270   ac_status=$?
36271   grep -v '^ *+' conftest.er1 >conftest.err
36272   rm -f conftest.er1
36273   cat conftest.err >&5
36274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275   (exit $ac_status); } && {
36276          test -z "$ac_c_werror_flag" ||
36277          test ! -s conftest.err
36278        } && test -s conftest$ac_exeext &&
36279        $as_test_x conftest$ac_exeext; then
36280   ac_cv_lib_intl_strftime=yes
36281 else
36282   echo "$as_me: failed program was:" >&5
36283 sed 's/^/| /' conftest.$ac_ext >&5
36284
36285         ac_cv_lib_intl_strftime=no
36286 fi
36287
36288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36289       conftest$ac_exeext conftest.$ac_ext
36290 LIBS=$ac_check_lib_save_LIBS
36291 fi
36292 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36293 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36294 if test $ac_cv_lib_intl_strftime = yes; then
36295   cat >>confdefs.h <<\_ACEOF
36296 #define HAVE_STRFTIME 1
36297 _ACEOF
36298
36299 LIBS="-lintl $LIBS"
36300 fi
36301
36302 fi
36303 done
36304
36305
36306 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36307 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36308 if test "${ol_cv_func_inet_aton+set}" = set; then
36309   echo $ECHO_N "(cached) $ECHO_C" >&6
36310 else
36311   cat >conftest.$ac_ext <<_ACEOF
36312 /* confdefs.h.  */
36313 _ACEOF
36314 cat confdefs.h >>conftest.$ac_ext
36315 cat >>conftest.$ac_ext <<_ACEOF
36316 /* end confdefs.h.  */
36317
36318 #ifdef HAVE_SYS_TYPES_H
36319 #       include <sys/types.h>
36320 #endif
36321 #ifdef HAVE_SYS_SOCKET_H
36322 #       include <sys/socket.h>
36323 #       ifdef HAVE_SYS_SELECT_H
36324 #               include <sys/select.h>
36325 #       endif
36326 #       include <netinet/in.h>
36327 #       ifdef HAVE_ARPA_INET_H
36328 #               include <arpa/inet.h>
36329 #       endif
36330 #endif
36331
36332 int
36333 main ()
36334 {
36335 struct in_addr in;
36336 int rc = inet_aton( "255.255.255.255", &in );
36337   ;
36338   return 0;
36339 }
36340 _ACEOF
36341 rm -f conftest.$ac_objext conftest$ac_exeext
36342 if { (ac_try="$ac_link"
36343 case "(($ac_try" in
36344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36345   *) ac_try_echo=$ac_try;;
36346 esac
36347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36348   (eval "$ac_link") 2>conftest.er1
36349   ac_status=$?
36350   grep -v '^ *+' conftest.er1 >conftest.err
36351   rm -f conftest.er1
36352   cat conftest.err >&5
36353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354   (exit $ac_status); } && {
36355          test -z "$ac_c_werror_flag" ||
36356          test ! -s conftest.err
36357        } && test -s conftest$ac_exeext &&
36358        $as_test_x conftest$ac_exeext; then
36359   ol_cv_func_inet_aton=yes
36360 else
36361   echo "$as_me: failed program was:" >&5
36362 sed 's/^/| /' conftest.$ac_ext >&5
36363
36364         ol_cv_func_inet_aton=no
36365 fi
36366
36367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36368       conftest$ac_exeext conftest.$ac_ext
36369 fi
36370 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36371 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36372   if test $ol_cv_func_inet_aton != no; then
36373
36374 cat >>confdefs.h <<\_ACEOF
36375 #define HAVE_INET_ATON 1
36376 _ACEOF
36377
36378   fi
36379
36380
36381 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36382 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36383 if test "${ac_cv_func__spawnlp+set}" = set; then
36384   echo $ECHO_N "(cached) $ECHO_C" >&6
36385 else
36386   cat >conftest.$ac_ext <<_ACEOF
36387 /* confdefs.h.  */
36388 _ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h.  */
36392 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36394 #define _spawnlp innocuous__spawnlp
36395
36396 /* System header to define __stub macros and hopefully few prototypes,
36397     which can conflict with char _spawnlp (); below.
36398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36399     <limits.h> exists even on freestanding compilers.  */
36400
36401 #ifdef __STDC__
36402 # include <limits.h>
36403 #else
36404 # include <assert.h>
36405 #endif
36406
36407 #undef _spawnlp
36408
36409 /* Override any GCC internal prototype to avoid an error.
36410    Use char because int might match the return type of a GCC
36411    builtin and then its argument prototype would still apply.  */
36412 #ifdef __cplusplus
36413 extern "C"
36414 #endif
36415 char _spawnlp ();
36416 /* The GNU C library defines this for functions which it implements
36417     to always fail with ENOSYS.  Some functions are actually named
36418     something starting with __ and the normal name is an alias.  */
36419 #if defined __stub__spawnlp || defined __stub____spawnlp
36420 choke me
36421 #endif
36422
36423 int
36424 main ()
36425 {
36426 return _spawnlp ();
36427   ;
36428   return 0;
36429 }
36430 _ACEOF
36431 rm -f conftest.$ac_objext conftest$ac_exeext
36432 if { (ac_try="$ac_link"
36433 case "(($ac_try" in
36434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36435   *) ac_try_echo=$ac_try;;
36436 esac
36437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36438   (eval "$ac_link") 2>conftest.er1
36439   ac_status=$?
36440   grep -v '^ *+' conftest.er1 >conftest.err
36441   rm -f conftest.er1
36442   cat conftest.err >&5
36443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444   (exit $ac_status); } && {
36445          test -z "$ac_c_werror_flag" ||
36446          test ! -s conftest.err
36447        } && test -s conftest$ac_exeext &&
36448        $as_test_x conftest$ac_exeext; then
36449   ac_cv_func__spawnlp=yes
36450 else
36451   echo "$as_me: failed program was:" >&5
36452 sed 's/^/| /' conftest.$ac_ext >&5
36453
36454         ac_cv_func__spawnlp=no
36455 fi
36456
36457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36458       conftest$ac_exeext conftest.$ac_ext
36459 fi
36460 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36461 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36462 if test $ac_cv_func__spawnlp = yes; then
36463
36464 cat >>confdefs.h <<\_ACEOF
36465 #define HAVE_SPAWNLP 1
36466 _ACEOF
36467
36468 fi
36469
36470
36471 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36472 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36473 if test "${ac_cv_func__snprintf+set}" = set; then
36474   echo $ECHO_N "(cached) $ECHO_C" >&6
36475 else
36476   cat >conftest.$ac_ext <<_ACEOF
36477 /* confdefs.h.  */
36478 _ACEOF
36479 cat confdefs.h >>conftest.$ac_ext
36480 cat >>conftest.$ac_ext <<_ACEOF
36481 /* end confdefs.h.  */
36482 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36484 #define _snprintf innocuous__snprintf
36485
36486 /* System header to define __stub macros and hopefully few prototypes,
36487     which can conflict with char _snprintf (); below.
36488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36489     <limits.h> exists even on freestanding compilers.  */
36490
36491 #ifdef __STDC__
36492 # include <limits.h>
36493 #else
36494 # include <assert.h>
36495 #endif
36496
36497 #undef _snprintf
36498
36499 /* Override any GCC internal prototype to avoid an error.
36500    Use char because int might match the return type of a GCC
36501    builtin and then its argument prototype would still apply.  */
36502 #ifdef __cplusplus
36503 extern "C"
36504 #endif
36505 char _snprintf ();
36506 /* The GNU C library defines this for functions which it implements
36507     to always fail with ENOSYS.  Some functions are actually named
36508     something starting with __ and the normal name is an alias.  */
36509 #if defined __stub__snprintf || defined __stub____snprintf
36510 choke me
36511 #endif
36512
36513 int
36514 main ()
36515 {
36516 return _snprintf ();
36517   ;
36518   return 0;
36519 }
36520 _ACEOF
36521 rm -f conftest.$ac_objext conftest$ac_exeext
36522 if { (ac_try="$ac_link"
36523 case "(($ac_try" in
36524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525   *) ac_try_echo=$ac_try;;
36526 esac
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528   (eval "$ac_link") 2>conftest.er1
36529   ac_status=$?
36530   grep -v '^ *+' conftest.er1 >conftest.err
36531   rm -f conftest.er1
36532   cat conftest.err >&5
36533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534   (exit $ac_status); } && {
36535          test -z "$ac_c_werror_flag" ||
36536          test ! -s conftest.err
36537        } && test -s conftest$ac_exeext &&
36538        $as_test_x conftest$ac_exeext; then
36539   ac_cv_func__snprintf=yes
36540 else
36541   echo "$as_me: failed program was:" >&5
36542 sed 's/^/| /' conftest.$ac_ext >&5
36543
36544         ac_cv_func__snprintf=no
36545 fi
36546
36547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36548       conftest$ac_exeext conftest.$ac_ext
36549 fi
36550 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36551 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36552 if test $ac_cv_func__snprintf = yes; then
36553   ac_cv_func_snprintf=yes
36554
36555 cat >>confdefs.h <<\_ACEOF
36556 #define snprintf _snprintf
36557 _ACEOF
36558
36559
36560 fi
36561
36562
36563
36564
36565 for ac_func in vsnprintf _vsnprintf
36566 do
36567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36571   echo $ECHO_N "(cached) $ECHO_C" >&6
36572 else
36573   cat >conftest.$ac_ext <<_ACEOF
36574 /* confdefs.h.  */
36575 _ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h.  */
36579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36581 #define $ac_func innocuous_$ac_func
36582
36583 /* System header to define __stub macros and hopefully few prototypes,
36584     which can conflict with char $ac_func (); below.
36585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36586     <limits.h> exists even on freestanding compilers.  */
36587
36588 #ifdef __STDC__
36589 # include <limits.h>
36590 #else
36591 # include <assert.h>
36592 #endif
36593
36594 #undef $ac_func
36595
36596 /* Override any GCC internal prototype to avoid an error.
36597    Use char because int might match the return type of a GCC
36598    builtin and then its argument prototype would still apply.  */
36599 #ifdef __cplusplus
36600 extern "C"
36601 #endif
36602 char $ac_func ();
36603 /* The GNU C library defines this for functions which it implements
36604     to always fail with ENOSYS.  Some functions are actually named
36605     something starting with __ and the normal name is an alias.  */
36606 #if defined __stub_$ac_func || defined __stub___$ac_func
36607 choke me
36608 #endif
36609
36610 int
36611 main ()
36612 {
36613 return $ac_func ();
36614   ;
36615   return 0;
36616 }
36617 _ACEOF
36618 rm -f conftest.$ac_objext conftest$ac_exeext
36619 if { (ac_try="$ac_link"
36620 case "(($ac_try" in
36621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36622   *) ac_try_echo=$ac_try;;
36623 esac
36624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36625   (eval "$ac_link") 2>conftest.er1
36626   ac_status=$?
36627   grep -v '^ *+' conftest.er1 >conftest.err
36628   rm -f conftest.er1
36629   cat conftest.err >&5
36630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631   (exit $ac_status); } && {
36632          test -z "$ac_c_werror_flag" ||
36633          test ! -s conftest.err
36634        } && test -s conftest$ac_exeext &&
36635        $as_test_x conftest$ac_exeext; then
36636   eval "$as_ac_var=yes"
36637 else
36638   echo "$as_me: failed program was:" >&5
36639 sed 's/^/| /' conftest.$ac_ext >&5
36640
36641         eval "$as_ac_var=no"
36642 fi
36643
36644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36645       conftest$ac_exeext conftest.$ac_ext
36646 fi
36647 ac_res=`eval echo '${'$as_ac_var'}'`
36648                { echo "$as_me:$LINENO: result: $ac_res" >&5
36649 echo "${ECHO_T}$ac_res" >&6; }
36650 if test `eval echo '${'$as_ac_var'}'` = yes; then
36651   cat >>confdefs.h <<_ACEOF
36652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36653 _ACEOF
36654
36655 fi
36656 done
36657
36658
36659 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36660         ac_cv_func_vsnprintf=yes
36661
36662 cat >>confdefs.h <<\_ACEOF
36663 #define vsnprintf _vsnprintf
36664 _ACEOF
36665
36666 fi
36667
36668
36669 for ac_func in vprintf
36670 do
36671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36675   echo $ECHO_N "(cached) $ECHO_C" >&6
36676 else
36677   cat >conftest.$ac_ext <<_ACEOF
36678 /* confdefs.h.  */
36679 _ACEOF
36680 cat confdefs.h >>conftest.$ac_ext
36681 cat >>conftest.$ac_ext <<_ACEOF
36682 /* end confdefs.h.  */
36683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36685 #define $ac_func innocuous_$ac_func
36686
36687 /* System header to define __stub macros and hopefully few prototypes,
36688     which can conflict with char $ac_func (); below.
36689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36690     <limits.h> exists even on freestanding compilers.  */
36691
36692 #ifdef __STDC__
36693 # include <limits.h>
36694 #else
36695 # include <assert.h>
36696 #endif
36697
36698 #undef $ac_func
36699
36700 /* Override any GCC internal prototype to avoid an error.
36701    Use char because int might match the return type of a GCC
36702    builtin and then its argument prototype would still apply.  */
36703 #ifdef __cplusplus
36704 extern "C"
36705 #endif
36706 char $ac_func ();
36707 /* The GNU C library defines this for functions which it implements
36708     to always fail with ENOSYS.  Some functions are actually named
36709     something starting with __ and the normal name is an alias.  */
36710 #if defined __stub_$ac_func || defined __stub___$ac_func
36711 choke me
36712 #endif
36713
36714 int
36715 main ()
36716 {
36717 return $ac_func ();
36718   ;
36719   return 0;
36720 }
36721 _ACEOF
36722 rm -f conftest.$ac_objext conftest$ac_exeext
36723 if { (ac_try="$ac_link"
36724 case "(($ac_try" in
36725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36726   *) ac_try_echo=$ac_try;;
36727 esac
36728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36729   (eval "$ac_link") 2>conftest.er1
36730   ac_status=$?
36731   grep -v '^ *+' conftest.er1 >conftest.err
36732   rm -f conftest.er1
36733   cat conftest.err >&5
36734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735   (exit $ac_status); } && {
36736          test -z "$ac_c_werror_flag" ||
36737          test ! -s conftest.err
36738        } && test -s conftest$ac_exeext &&
36739        $as_test_x conftest$ac_exeext; then
36740   eval "$as_ac_var=yes"
36741 else
36742   echo "$as_me: failed program was:" >&5
36743 sed 's/^/| /' conftest.$ac_ext >&5
36744
36745         eval "$as_ac_var=no"
36746 fi
36747
36748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36749       conftest$ac_exeext conftest.$ac_ext
36750 fi
36751 ac_res=`eval echo '${'$as_ac_var'}'`
36752                { echo "$as_me:$LINENO: result: $ac_res" >&5
36753 echo "${ECHO_T}$ac_res" >&6; }
36754 if test `eval echo '${'$as_ac_var'}'` = yes; then
36755   cat >>confdefs.h <<_ACEOF
36756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36757 _ACEOF
36758
36759 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36760 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36761 if test "${ac_cv_func__doprnt+set}" = set; then
36762   echo $ECHO_N "(cached) $ECHO_C" >&6
36763 else
36764   cat >conftest.$ac_ext <<_ACEOF
36765 /* confdefs.h.  */
36766 _ACEOF
36767 cat confdefs.h >>conftest.$ac_ext
36768 cat >>conftest.$ac_ext <<_ACEOF
36769 /* end confdefs.h.  */
36770 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36772 #define _doprnt innocuous__doprnt
36773
36774 /* System header to define __stub macros and hopefully few prototypes,
36775     which can conflict with char _doprnt (); below.
36776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36777     <limits.h> exists even on freestanding compilers.  */
36778
36779 #ifdef __STDC__
36780 # include <limits.h>
36781 #else
36782 # include <assert.h>
36783 #endif
36784
36785 #undef _doprnt
36786
36787 /* Override any GCC internal prototype to avoid an error.
36788    Use char because int might match the return type of a GCC
36789    builtin and then its argument prototype would still apply.  */
36790 #ifdef __cplusplus
36791 extern "C"
36792 #endif
36793 char _doprnt ();
36794 /* The GNU C library defines this for functions which it implements
36795     to always fail with ENOSYS.  Some functions are actually named
36796     something starting with __ and the normal name is an alias.  */
36797 #if defined __stub__doprnt || defined __stub____doprnt
36798 choke me
36799 #endif
36800
36801 int
36802 main ()
36803 {
36804 return _doprnt ();
36805   ;
36806   return 0;
36807 }
36808 _ACEOF
36809 rm -f conftest.$ac_objext conftest$ac_exeext
36810 if { (ac_try="$ac_link"
36811 case "(($ac_try" in
36812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36813   *) ac_try_echo=$ac_try;;
36814 esac
36815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36816   (eval "$ac_link") 2>conftest.er1
36817   ac_status=$?
36818   grep -v '^ *+' conftest.er1 >conftest.err
36819   rm -f conftest.er1
36820   cat conftest.err >&5
36821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822   (exit $ac_status); } && {
36823          test -z "$ac_c_werror_flag" ||
36824          test ! -s conftest.err
36825        } && test -s conftest$ac_exeext &&
36826        $as_test_x conftest$ac_exeext; then
36827   ac_cv_func__doprnt=yes
36828 else
36829   echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36831
36832         ac_cv_func__doprnt=no
36833 fi
36834
36835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36836       conftest$ac_exeext conftest.$ac_ext
36837 fi
36838 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36839 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36840 if test $ac_cv_func__doprnt = yes; then
36841
36842 cat >>confdefs.h <<\_ACEOF
36843 #define HAVE_DOPRNT 1
36844 _ACEOF
36845
36846 fi
36847
36848 fi
36849 done
36850
36851
36852
36853 if test $ac_cv_func_vprintf = yes ; then
36854
36855
36856 for ac_func in snprintf vsnprintf
36857 do
36858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36862   echo $ECHO_N "(cached) $ECHO_C" >&6
36863 else
36864   cat >conftest.$ac_ext <<_ACEOF
36865 /* confdefs.h.  */
36866 _ACEOF
36867 cat confdefs.h >>conftest.$ac_ext
36868 cat >>conftest.$ac_ext <<_ACEOF
36869 /* end confdefs.h.  */
36870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36872 #define $ac_func innocuous_$ac_func
36873
36874 /* System header to define __stub macros and hopefully few prototypes,
36875     which can conflict with char $ac_func (); below.
36876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36877     <limits.h> exists even on freestanding compilers.  */
36878
36879 #ifdef __STDC__
36880 # include <limits.h>
36881 #else
36882 # include <assert.h>
36883 #endif
36884
36885 #undef $ac_func
36886
36887 /* Override any GCC internal prototype to avoid an error.
36888    Use char because int might match the return type of a GCC
36889    builtin and then its argument prototype would still apply.  */
36890 #ifdef __cplusplus
36891 extern "C"
36892 #endif
36893 char $ac_func ();
36894 /* The GNU C library defines this for functions which it implements
36895     to always fail with ENOSYS.  Some functions are actually named
36896     something starting with __ and the normal name is an alias.  */
36897 #if defined __stub_$ac_func || defined __stub___$ac_func
36898 choke me
36899 #endif
36900
36901 int
36902 main ()
36903 {
36904 return $ac_func ();
36905   ;
36906   return 0;
36907 }
36908 _ACEOF
36909 rm -f conftest.$ac_objext conftest$ac_exeext
36910 if { (ac_try="$ac_link"
36911 case "(($ac_try" in
36912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36913   *) ac_try_echo=$ac_try;;
36914 esac
36915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36916   (eval "$ac_link") 2>conftest.er1
36917   ac_status=$?
36918   grep -v '^ *+' conftest.er1 >conftest.err
36919   rm -f conftest.er1
36920   cat conftest.err >&5
36921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922   (exit $ac_status); } && {
36923          test -z "$ac_c_werror_flag" ||
36924          test ! -s conftest.err
36925        } && test -s conftest$ac_exeext &&
36926        $as_test_x conftest$ac_exeext; then
36927   eval "$as_ac_var=yes"
36928 else
36929   echo "$as_me: failed program was:" >&5
36930 sed 's/^/| /' conftest.$ac_ext >&5
36931
36932         eval "$as_ac_var=no"
36933 fi
36934
36935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36936       conftest$ac_exeext conftest.$ac_ext
36937 fi
36938 ac_res=`eval echo '${'$as_ac_var'}'`
36939                { echo "$as_me:$LINENO: result: $ac_res" >&5
36940 echo "${ECHO_T}$ac_res" >&6; }
36941 if test `eval echo '${'$as_ac_var'}'` = yes; then
36942   cat >>confdefs.h <<_ACEOF
36943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36944 _ACEOF
36945
36946 fi
36947 done
36948
36949 fi
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007 for ac_func in \
37008         bcopy                   \
37009         closesocket             \
37010         chroot                  \
37011         endgrent                \
37012         endpwent                \
37013         fcntl                   \
37014         flock                   \
37015         fstat                   \
37016         getdtablesize           \
37017         geteuid                 \
37018         getgrgid                \
37019         gethostname             \
37020         getpass                 \
37021         getpassphrase           \
37022         getpwuid                \
37023         getpwnam                \
37024         getspnam                \
37025         gettimeofday            \
37026         initgroups              \
37027         inet_ntoa_b             \
37028         ioctl                   \
37029         lockf                   \
37030         memcpy                  \
37031         memmove                 \
37032         memrchr                 \
37033         mkstemp                 \
37034         mktemp                  \
37035         pipe                    \
37036         read                    \
37037         recv                    \
37038         recvfrom                \
37039         setpwfile               \
37040         setgid                  \
37041         setegid                 \
37042         setsid                  \
37043         setuid                  \
37044         seteuid                 \
37045         signal                  \
37046         strdup                  \
37047         strpbrk                 \
37048         strrchr                 \
37049         strsep                  \
37050         strstr                  \
37051         strtol                  \
37052         strtoul                 \
37053         strtoq                  \
37054         strtouq                 \
37055         strtoll                 \
37056         strspn                  \
37057         sysconf                 \
37058         waitpid                 \
37059         wait4                   \
37060         write                   \
37061         send                    \
37062         sendmsg                 \
37063         sendto                  \
37064
37065 do
37066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37070   echo $ECHO_N "(cached) $ECHO_C" >&6
37071 else
37072   cat >conftest.$ac_ext <<_ACEOF
37073 /* confdefs.h.  */
37074 _ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h.  */
37078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37080 #define $ac_func innocuous_$ac_func
37081
37082 /* System header to define __stub macros and hopefully few prototypes,
37083     which can conflict with char $ac_func (); below.
37084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37085     <limits.h> exists even on freestanding compilers.  */
37086
37087 #ifdef __STDC__
37088 # include <limits.h>
37089 #else
37090 # include <assert.h>
37091 #endif
37092
37093 #undef $ac_func
37094
37095 /* Override any GCC internal prototype to avoid an error.
37096    Use char because int might match the return type of a GCC
37097    builtin and then its argument prototype would still apply.  */
37098 #ifdef __cplusplus
37099 extern "C"
37100 #endif
37101 char $ac_func ();
37102 /* The GNU C library defines this for functions which it implements
37103     to always fail with ENOSYS.  Some functions are actually named
37104     something starting with __ and the normal name is an alias.  */
37105 #if defined __stub_$ac_func || defined __stub___$ac_func
37106 choke me
37107 #endif
37108
37109 int
37110 main ()
37111 {
37112 return $ac_func ();
37113   ;
37114   return 0;
37115 }
37116 _ACEOF
37117 rm -f conftest.$ac_objext conftest$ac_exeext
37118 if { (ac_try="$ac_link"
37119 case "(($ac_try" in
37120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121   *) ac_try_echo=$ac_try;;
37122 esac
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124   (eval "$ac_link") 2>conftest.er1
37125   ac_status=$?
37126   grep -v '^ *+' conftest.er1 >conftest.err
37127   rm -f conftest.er1
37128   cat conftest.err >&5
37129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130   (exit $ac_status); } && {
37131          test -z "$ac_c_werror_flag" ||
37132          test ! -s conftest.err
37133        } && test -s conftest$ac_exeext &&
37134        $as_test_x conftest$ac_exeext; then
37135   eval "$as_ac_var=yes"
37136 else
37137   echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37139
37140         eval "$as_ac_var=no"
37141 fi
37142
37143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37144       conftest$ac_exeext conftest.$ac_ext
37145 fi
37146 ac_res=`eval echo '${'$as_ac_var'}'`
37147                { echo "$as_me:$LINENO: result: $ac_res" >&5
37148 echo "${ECHO_T}$ac_res" >&6; }
37149 if test `eval echo '${'$as_ac_var'}'` = yes; then
37150   cat >>confdefs.h <<_ACEOF
37151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37152 _ACEOF
37153
37154 fi
37155 done
37156
37157
37158
37159
37160 for ac_func in getopt getpeereid
37161 do
37162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37166   echo $ECHO_N "(cached) $ECHO_C" >&6
37167 else
37168   cat >conftest.$ac_ext <<_ACEOF
37169 /* confdefs.h.  */
37170 _ACEOF
37171 cat confdefs.h >>conftest.$ac_ext
37172 cat >>conftest.$ac_ext <<_ACEOF
37173 /* end confdefs.h.  */
37174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37176 #define $ac_func innocuous_$ac_func
37177
37178 /* System header to define __stub macros and hopefully few prototypes,
37179     which can conflict with char $ac_func (); below.
37180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37181     <limits.h> exists even on freestanding compilers.  */
37182
37183 #ifdef __STDC__
37184 # include <limits.h>
37185 #else
37186 # include <assert.h>
37187 #endif
37188
37189 #undef $ac_func
37190
37191 /* Override any GCC internal prototype to avoid an error.
37192    Use char because int might match the return type of a GCC
37193    builtin and then its argument prototype would still apply.  */
37194 #ifdef __cplusplus
37195 extern "C"
37196 #endif
37197 char $ac_func ();
37198 /* The GNU C library defines this for functions which it implements
37199     to always fail with ENOSYS.  Some functions are actually named
37200     something starting with __ and the normal name is an alias.  */
37201 #if defined __stub_$ac_func || defined __stub___$ac_func
37202 choke me
37203 #endif
37204
37205 int
37206 main ()
37207 {
37208 return $ac_func ();
37209   ;
37210   return 0;
37211 }
37212 _ACEOF
37213 rm -f conftest.$ac_objext conftest$ac_exeext
37214 if { (ac_try="$ac_link"
37215 case "(($ac_try" in
37216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37217   *) ac_try_echo=$ac_try;;
37218 esac
37219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37220   (eval "$ac_link") 2>conftest.er1
37221   ac_status=$?
37222   grep -v '^ *+' conftest.er1 >conftest.err
37223   rm -f conftest.er1
37224   cat conftest.err >&5
37225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226   (exit $ac_status); } && {
37227          test -z "$ac_c_werror_flag" ||
37228          test ! -s conftest.err
37229        } && test -s conftest$ac_exeext &&
37230        $as_test_x conftest$ac_exeext; then
37231   eval "$as_ac_var=yes"
37232 else
37233   echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37235
37236         eval "$as_ac_var=no"
37237 fi
37238
37239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37240       conftest$ac_exeext conftest.$ac_ext
37241 fi
37242 ac_res=`eval echo '${'$as_ac_var'}'`
37243                { echo "$as_me:$LINENO: result: $ac_res" >&5
37244 echo "${ECHO_T}$ac_res" >&6; }
37245 if test `eval echo '${'$as_ac_var'}'` = yes; then
37246   cat >>confdefs.h <<_ACEOF
37247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37248 _ACEOF
37249
37250 else
37251   case " $LIBOBJS " in
37252   *" $ac_func.$ac_objext "* ) ;;
37253   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37254  ;;
37255 esac
37256
37257 fi
37258 done
37259
37260
37261
37262 if test "$ac_cv_func_getopt" != yes; then
37263         LIBSRCS="$LIBSRCS getopt.c"
37264 fi
37265
37266 if test "$ac_cv_func_getpeereid" != yes; then
37267
37268 for ac_func in getpeerucred
37269 do
37270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37274   echo $ECHO_N "(cached) $ECHO_C" >&6
37275 else
37276   cat >conftest.$ac_ext <<_ACEOF
37277 /* confdefs.h.  */
37278 _ACEOF
37279 cat confdefs.h >>conftest.$ac_ext
37280 cat >>conftest.$ac_ext <<_ACEOF
37281 /* end confdefs.h.  */
37282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37284 #define $ac_func innocuous_$ac_func
37285
37286 /* System header to define __stub macros and hopefully few prototypes,
37287     which can conflict with char $ac_func (); below.
37288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37289     <limits.h> exists even on freestanding compilers.  */
37290
37291 #ifdef __STDC__
37292 # include <limits.h>
37293 #else
37294 # include <assert.h>
37295 #endif
37296
37297 #undef $ac_func
37298
37299 /* Override any GCC internal prototype to avoid an error.
37300    Use char because int might match the return type of a GCC
37301    builtin and then its argument prototype would still apply.  */
37302 #ifdef __cplusplus
37303 extern "C"
37304 #endif
37305 char $ac_func ();
37306 /* The GNU C library defines this for functions which it implements
37307     to always fail with ENOSYS.  Some functions are actually named
37308     something starting with __ and the normal name is an alias.  */
37309 #if defined __stub_$ac_func || defined __stub___$ac_func
37310 choke me
37311 #endif
37312
37313 int
37314 main ()
37315 {
37316 return $ac_func ();
37317   ;
37318   return 0;
37319 }
37320 _ACEOF
37321 rm -f conftest.$ac_objext conftest$ac_exeext
37322 if { (ac_try="$ac_link"
37323 case "(($ac_try" in
37324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37325   *) ac_try_echo=$ac_try;;
37326 esac
37327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37328   (eval "$ac_link") 2>conftest.er1
37329   ac_status=$?
37330   grep -v '^ *+' conftest.er1 >conftest.err
37331   rm -f conftest.er1
37332   cat conftest.err >&5
37333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334   (exit $ac_status); } && {
37335          test -z "$ac_c_werror_flag" ||
37336          test ! -s conftest.err
37337        } && test -s conftest$ac_exeext &&
37338        $as_test_x conftest$ac_exeext; then
37339   eval "$as_ac_var=yes"
37340 else
37341   echo "$as_me: failed program was:" >&5
37342 sed 's/^/| /' conftest.$ac_ext >&5
37343
37344         eval "$as_ac_var=no"
37345 fi
37346
37347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37348       conftest$ac_exeext conftest.$ac_ext
37349 fi
37350 ac_res=`eval echo '${'$as_ac_var'}'`
37351                { echo "$as_me:$LINENO: result: $ac_res" >&5
37352 echo "${ECHO_T}$ac_res" >&6; }
37353 if test `eval echo '${'$as_ac_var'}'` = yes; then
37354   cat >>confdefs.h <<_ACEOF
37355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37356 _ACEOF
37357
37358 fi
37359 done
37360
37361         if test "$ac_cv_func_getpeerucred" != yes ; then
37362                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37363 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37364 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37365   echo $ECHO_N "(cached) $ECHO_C" >&6
37366 else
37367   cat >conftest.$ac_ext <<_ACEOF
37368 /* confdefs.h.  */
37369 _ACEOF
37370 cat confdefs.h >>conftest.$ac_ext
37371 cat >>conftest.$ac_ext <<_ACEOF
37372 /* end confdefs.h.  */
37373 $ac_includes_default
37374 #ifdef HAVE_SYS_SOCKET_H
37375 #include <sys/socket.h>
37376 #endif
37377
37378 int
37379 main ()
37380 {
37381 static struct msghdr ac_aggr;
37382 if (ac_aggr.msg_accrightslen)
37383 return 0;
37384   ;
37385   return 0;
37386 }
37387 _ACEOF
37388 rm -f conftest.$ac_objext
37389 if { (ac_try="$ac_compile"
37390 case "(($ac_try" in
37391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37392   *) ac_try_echo=$ac_try;;
37393 esac
37394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37395   (eval "$ac_compile") 2>conftest.er1
37396   ac_status=$?
37397   grep -v '^ *+' conftest.er1 >conftest.err
37398   rm -f conftest.er1
37399   cat conftest.err >&5
37400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401   (exit $ac_status); } && {
37402          test -z "$ac_c_werror_flag" ||
37403          test ! -s conftest.err
37404        } && test -s conftest.$ac_objext; then
37405   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37406 else
37407   echo "$as_me: failed program was:" >&5
37408 sed 's/^/| /' conftest.$ac_ext >&5
37409
37410         cat >conftest.$ac_ext <<_ACEOF
37411 /* confdefs.h.  */
37412 _ACEOF
37413 cat confdefs.h >>conftest.$ac_ext
37414 cat >>conftest.$ac_ext <<_ACEOF
37415 /* end confdefs.h.  */
37416 $ac_includes_default
37417 #ifdef HAVE_SYS_SOCKET_H
37418 #include <sys/socket.h>
37419 #endif
37420
37421 int
37422 main ()
37423 {
37424 static struct msghdr ac_aggr;
37425 if (sizeof ac_aggr.msg_accrightslen)
37426 return 0;
37427   ;
37428   return 0;
37429 }
37430 _ACEOF
37431 rm -f conftest.$ac_objext
37432 if { (ac_try="$ac_compile"
37433 case "(($ac_try" in
37434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37435   *) ac_try_echo=$ac_try;;
37436 esac
37437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37438   (eval "$ac_compile") 2>conftest.er1
37439   ac_status=$?
37440   grep -v '^ *+' conftest.er1 >conftest.err
37441   rm -f conftest.er1
37442   cat conftest.err >&5
37443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444   (exit $ac_status); } && {
37445          test -z "$ac_c_werror_flag" ||
37446          test ! -s conftest.err
37447        } && test -s conftest.$ac_objext; then
37448   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37449 else
37450   echo "$as_me: failed program was:" >&5
37451 sed 's/^/| /' conftest.$ac_ext >&5
37452
37453         ac_cv_member_struct_msghdr_msg_accrightslen=no
37454 fi
37455
37456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37457 fi
37458
37459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37460 fi
37461 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37462 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37463 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37464
37465 cat >>confdefs.h <<_ACEOF
37466 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37467 _ACEOF
37468
37469
37470 fi
37471
37472                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37473                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37474 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37475 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37476   echo $ECHO_N "(cached) $ECHO_C" >&6
37477 else
37478   cat >conftest.$ac_ext <<_ACEOF
37479 /* confdefs.h.  */
37480 _ACEOF
37481 cat confdefs.h >>conftest.$ac_ext
37482 cat >>conftest.$ac_ext <<_ACEOF
37483 /* end confdefs.h.  */
37484 $ac_includes_default
37485 #ifdef HAVE_SYS_SOCKET_H
37486 #include <sys/socket.h>
37487 #endif
37488
37489 int
37490 main ()
37491 {
37492 static struct msghdr ac_aggr;
37493 if (ac_aggr.msg_control)
37494 return 0;
37495   ;
37496   return 0;
37497 }
37498 _ACEOF
37499 rm -f conftest.$ac_objext
37500 if { (ac_try="$ac_compile"
37501 case "(($ac_try" in
37502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37503   *) ac_try_echo=$ac_try;;
37504 esac
37505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37506   (eval "$ac_compile") 2>conftest.er1
37507   ac_status=$?
37508   grep -v '^ *+' conftest.er1 >conftest.err
37509   rm -f conftest.er1
37510   cat conftest.err >&5
37511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512   (exit $ac_status); } && {
37513          test -z "$ac_c_werror_flag" ||
37514          test ! -s conftest.err
37515        } && test -s conftest.$ac_objext; then
37516   ac_cv_member_struct_msghdr_msg_control=yes
37517 else
37518   echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37520
37521         cat >conftest.$ac_ext <<_ACEOF
37522 /* confdefs.h.  */
37523 _ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h.  */
37527 $ac_includes_default
37528 #ifdef HAVE_SYS_SOCKET_H
37529 #include <sys/socket.h>
37530 #endif
37531
37532 int
37533 main ()
37534 {
37535 static struct msghdr ac_aggr;
37536 if (sizeof ac_aggr.msg_control)
37537 return 0;
37538   ;
37539   return 0;
37540 }
37541 _ACEOF
37542 rm -f conftest.$ac_objext
37543 if { (ac_try="$ac_compile"
37544 case "(($ac_try" in
37545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37546   *) ac_try_echo=$ac_try;;
37547 esac
37548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37549   (eval "$ac_compile") 2>conftest.er1
37550   ac_status=$?
37551   grep -v '^ *+' conftest.er1 >conftest.err
37552   rm -f conftest.er1
37553   cat conftest.err >&5
37554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555   (exit $ac_status); } && {
37556          test -z "$ac_c_werror_flag" ||
37557          test ! -s conftest.err
37558        } && test -s conftest.$ac_objext; then
37559   ac_cv_member_struct_msghdr_msg_control=yes
37560 else
37561   echo "$as_me: failed program was:" >&5
37562 sed 's/^/| /' conftest.$ac_ext >&5
37563
37564         ac_cv_member_struct_msghdr_msg_control=no
37565 fi
37566
37567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37568 fi
37569
37570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37571 fi
37572 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37573 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37574 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37575
37576 cat >>confdefs.h <<_ACEOF
37577 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37578 _ACEOF
37579
37580
37581 fi
37582
37583                 fi
37584                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37585 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37586 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37587   echo $ECHO_N "(cached) $ECHO_C" >&6
37588 else
37589   cat >conftest.$ac_ext <<_ACEOF
37590 /* confdefs.h.  */
37591 _ACEOF
37592 cat confdefs.h >>conftest.$ac_ext
37593 cat >>conftest.$ac_ext <<_ACEOF
37594 /* end confdefs.h.  */
37595 $ac_includes_default
37596 int
37597 main ()
37598 {
37599 static struct stat ac_aggr;
37600 if (ac_aggr.st_fstype)
37601 return 0;
37602   ;
37603   return 0;
37604 }
37605 _ACEOF
37606 rm -f conftest.$ac_objext
37607 if { (ac_try="$ac_compile"
37608 case "(($ac_try" in
37609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37610   *) ac_try_echo=$ac_try;;
37611 esac
37612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37613   (eval "$ac_compile") 2>conftest.er1
37614   ac_status=$?
37615   grep -v '^ *+' conftest.er1 >conftest.err
37616   rm -f conftest.er1
37617   cat conftest.err >&5
37618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619   (exit $ac_status); } && {
37620          test -z "$ac_c_werror_flag" ||
37621          test ! -s conftest.err
37622        } && test -s conftest.$ac_objext; then
37623   ac_cv_member_struct_stat_st_fstype=yes
37624 else
37625   echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37627
37628         cat >conftest.$ac_ext <<_ACEOF
37629 /* confdefs.h.  */
37630 _ACEOF
37631 cat confdefs.h >>conftest.$ac_ext
37632 cat >>conftest.$ac_ext <<_ACEOF
37633 /* end confdefs.h.  */
37634 $ac_includes_default
37635 int
37636 main ()
37637 {
37638 static struct stat ac_aggr;
37639 if (sizeof ac_aggr.st_fstype)
37640 return 0;
37641   ;
37642   return 0;
37643 }
37644 _ACEOF
37645 rm -f conftest.$ac_objext
37646 if { (ac_try="$ac_compile"
37647 case "(($ac_try" in
37648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37649   *) ac_try_echo=$ac_try;;
37650 esac
37651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37652   (eval "$ac_compile") 2>conftest.er1
37653   ac_status=$?
37654   grep -v '^ *+' conftest.er1 >conftest.err
37655   rm -f conftest.er1
37656   cat conftest.err >&5
37657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658   (exit $ac_status); } && {
37659          test -z "$ac_c_werror_flag" ||
37660          test ! -s conftest.err
37661        } && test -s conftest.$ac_objext; then
37662   ac_cv_member_struct_stat_st_fstype=yes
37663 else
37664   echo "$as_me: failed program was:" >&5
37665 sed 's/^/| /' conftest.$ac_ext >&5
37666
37667         ac_cv_member_struct_stat_st_fstype=no
37668 fi
37669
37670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37671 fi
37672
37673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37674 fi
37675 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37676 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37677 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37678
37679 cat >>confdefs.h <<_ACEOF
37680 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37681 _ACEOF
37682
37683
37684 fi
37685 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37686 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37687 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37688   echo $ECHO_N "(cached) $ECHO_C" >&6
37689 else
37690   cat >conftest.$ac_ext <<_ACEOF
37691 /* confdefs.h.  */
37692 _ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h.  */
37696 $ac_includes_default
37697 int
37698 main ()
37699 {
37700 static struct stat ac_aggr;
37701 if (ac_aggr.st_vfstype)
37702 return 0;
37703   ;
37704   return 0;
37705 }
37706 _ACEOF
37707 rm -f conftest.$ac_objext
37708 if { (ac_try="$ac_compile"
37709 case "(($ac_try" in
37710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37711   *) ac_try_echo=$ac_try;;
37712 esac
37713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37714   (eval "$ac_compile") 2>conftest.er1
37715   ac_status=$?
37716   grep -v '^ *+' conftest.er1 >conftest.err
37717   rm -f conftest.er1
37718   cat conftest.err >&5
37719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720   (exit $ac_status); } && {
37721          test -z "$ac_c_werror_flag" ||
37722          test ! -s conftest.err
37723        } && test -s conftest.$ac_objext; then
37724   ac_cv_member_struct_stat_st_vfstype=yes
37725 else
37726   echo "$as_me: failed program was:" >&5
37727 sed 's/^/| /' conftest.$ac_ext >&5
37728
37729         cat >conftest.$ac_ext <<_ACEOF
37730 /* confdefs.h.  */
37731 _ACEOF
37732 cat confdefs.h >>conftest.$ac_ext
37733 cat >>conftest.$ac_ext <<_ACEOF
37734 /* end confdefs.h.  */
37735 $ac_includes_default
37736 int
37737 main ()
37738 {
37739 static struct stat ac_aggr;
37740 if (sizeof ac_aggr.st_vfstype)
37741 return 0;
37742   ;
37743   return 0;
37744 }
37745 _ACEOF
37746 rm -f conftest.$ac_objext
37747 if { (ac_try="$ac_compile"
37748 case "(($ac_try" in
37749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37750   *) ac_try_echo=$ac_try;;
37751 esac
37752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37753   (eval "$ac_compile") 2>conftest.er1
37754   ac_status=$?
37755   grep -v '^ *+' conftest.er1 >conftest.err
37756   rm -f conftest.er1
37757   cat conftest.err >&5
37758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759   (exit $ac_status); } && {
37760          test -z "$ac_c_werror_flag" ||
37761          test ! -s conftest.err
37762        } && test -s conftest.$ac_objext; then
37763   ac_cv_member_struct_stat_st_vfstype=yes
37764 else
37765   echo "$as_me: failed program was:" >&5
37766 sed 's/^/| /' conftest.$ac_ext >&5
37767
37768         ac_cv_member_struct_stat_st_vfstype=no
37769 fi
37770
37771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37772 fi
37773
37774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37775 fi
37776 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37777 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37778 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37779
37780 cat >>confdefs.h <<_ACEOF
37781 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37782 _ACEOF
37783
37784
37785 fi
37786
37787                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37788                         cat >conftest.$ac_ext <<_ACEOF
37789 struct stat st; char *ptr=st.st_fstype;
37790 _ACEOF
37791 rm -f conftest.$ac_objext
37792 if { (ac_try="$ac_compile"
37793 case "(($ac_try" in
37794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37795   *) ac_try_echo=$ac_try;;
37796 esac
37797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37798   (eval "$ac_compile") 2>conftest.er1
37799   ac_status=$?
37800   grep -v '^ *+' conftest.er1 >conftest.err
37801   rm -f conftest.er1
37802   cat conftest.err >&5
37803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804   (exit $ac_status); } && {
37805          test -z "$ac_c_werror_flag" ||
37806          test ! -s conftest.err
37807        } && test -s conftest.$ac_objext; then
37808
37809 cat >>confdefs.h <<\_ACEOF
37810 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37811 _ACEOF
37812
37813 else
37814   echo "$as_me: failed program was:" >&5
37815 sed 's/^/| /' conftest.$ac_ext >&5
37816
37817
37818 cat >>confdefs.h <<\_ACEOF
37819 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37820 _ACEOF
37821
37822 fi
37823
37824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37825                 fi
37826         fi
37827         LIBSRCS="$LIBSRCS getpeereid.c"
37828 fi
37829
37830 if test "$ac_cv_func_snprintf" != yes ||
37831    test "$ac_cv_func_vsnprintf" != yes; then
37832         if test "$ac_cv_func_snprintf" != yes; then
37833
37834 cat >>confdefs.h <<\_ACEOF
37835 #define snprintf ber_pvt_snprintf
37836 _ACEOF
37837
37838         fi
37839         if test "$ac_cv_func_vsnprintf" != yes; then
37840
37841 cat >>confdefs.h <<\_ACEOF
37842 #define vsnprintf ber_pvt_vsnprintf
37843 _ACEOF
37844
37845         fi
37846 fi
37847
37848
37849 if test "$ol_enable_slapi" != no ; then
37850
37851 for ac_header in ltdl.h
37852 do
37853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37855   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37858   echo $ECHO_N "(cached) $ECHO_C" >&6
37859 fi
37860 ac_res=`eval echo '${'$as_ac_Header'}'`
37861                { echo "$as_me:$LINENO: result: $ac_res" >&5
37862 echo "${ECHO_T}$ac_res" >&6; }
37863 else
37864   # Is the header compilable?
37865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37867 cat >conftest.$ac_ext <<_ACEOF
37868 /* confdefs.h.  */
37869 _ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h.  */
37873 $ac_includes_default
37874 #include <$ac_header>
37875 _ACEOF
37876 rm -f conftest.$ac_objext
37877 if { (ac_try="$ac_compile"
37878 case "(($ac_try" in
37879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37880   *) ac_try_echo=$ac_try;;
37881 esac
37882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37883   (eval "$ac_compile") 2>conftest.er1
37884   ac_status=$?
37885   grep -v '^ *+' conftest.er1 >conftest.err
37886   rm -f conftest.er1
37887   cat conftest.err >&5
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); } && {
37890          test -z "$ac_c_werror_flag" ||
37891          test ! -s conftest.err
37892        } && test -s conftest.$ac_objext; then
37893   ac_header_compiler=yes
37894 else
37895   echo "$as_me: failed program was:" >&5
37896 sed 's/^/| /' conftest.$ac_ext >&5
37897
37898         ac_header_compiler=no
37899 fi
37900
37901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37903 echo "${ECHO_T}$ac_header_compiler" >&6; }
37904
37905 # Is the header present?
37906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37908 cat >conftest.$ac_ext <<_ACEOF
37909 /* confdefs.h.  */
37910 _ACEOF
37911 cat confdefs.h >>conftest.$ac_ext
37912 cat >>conftest.$ac_ext <<_ACEOF
37913 /* end confdefs.h.  */
37914 #include <$ac_header>
37915 _ACEOF
37916 if { (ac_try="$ac_cpp conftest.$ac_ext"
37917 case "(($ac_try" in
37918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37919   *) ac_try_echo=$ac_try;;
37920 esac
37921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37923   ac_status=$?
37924   grep -v '^ *+' conftest.er1 >conftest.err
37925   rm -f conftest.er1
37926   cat conftest.err >&5
37927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928   (exit $ac_status); } >/dev/null && {
37929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37930          test ! -s conftest.err
37931        }; then
37932   ac_header_preproc=yes
37933 else
37934   echo "$as_me: failed program was:" >&5
37935 sed 's/^/| /' conftest.$ac_ext >&5
37936
37937   ac_header_preproc=no
37938 fi
37939
37940 rm -f conftest.err conftest.$ac_ext
37941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37942 echo "${ECHO_T}$ac_header_preproc" >&6; }
37943
37944 # So?  What about this header?
37945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37946   yes:no: )
37947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37951     ac_header_preproc=yes
37952     ;;
37953   no:yes:* )
37954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37966     ( cat <<\_ASBOX
37967 ## --------------------------------------------- ##
37968 ## Report this to <http://www.openldap.org/its/> ##
37969 ## --------------------------------------------- ##
37970 _ASBOX
37971      ) | sed "s/^/$as_me: WARNING:     /" >&2
37972     ;;
37973 esac
37974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37977   echo $ECHO_N "(cached) $ECHO_C" >&6
37978 else
37979   eval "$as_ac_Header=\$ac_header_preproc"
37980 fi
37981 ac_res=`eval echo '${'$as_ac_Header'}'`
37982                { echo "$as_me:$LINENO: result: $ac_res" >&5
37983 echo "${ECHO_T}$ac_res" >&6; }
37984
37985 fi
37986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37987   cat >>confdefs.h <<_ACEOF
37988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37989 _ACEOF
37990
37991 fi
37992
37993 done
37994
37995
37996         if test $ac_cv_header_ltdl_h != yes ; then
37997                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37998 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37999    { (exit 1); exit 1; }; }
38000         fi
38001         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38002 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38003 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38004   echo $ECHO_N "(cached) $ECHO_C" >&6
38005 else
38006   ac_check_lib_save_LIBS=$LIBS
38007 LIBS="-lltdl  $LIBS"
38008 cat >conftest.$ac_ext <<_ACEOF
38009 /* confdefs.h.  */
38010 _ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h.  */
38014
38015 /* Override any GCC internal prototype to avoid an error.
38016    Use char because int might match the return type of a GCC
38017    builtin and then its argument prototype would still apply.  */
38018 #ifdef __cplusplus
38019 extern "C"
38020 #endif
38021 char lt_dlinit ();
38022 int
38023 main ()
38024 {
38025 return lt_dlinit ();
38026   ;
38027   return 0;
38028 }
38029 _ACEOF
38030 rm -f conftest.$ac_objext conftest$ac_exeext
38031 if { (ac_try="$ac_link"
38032 case "(($ac_try" in
38033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38034   *) ac_try_echo=$ac_try;;
38035 esac
38036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38037   (eval "$ac_link") 2>conftest.er1
38038   ac_status=$?
38039   grep -v '^ *+' conftest.er1 >conftest.err
38040   rm -f conftest.er1
38041   cat conftest.err >&5
38042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043   (exit $ac_status); } && {
38044          test -z "$ac_c_werror_flag" ||
38045          test ! -s conftest.err
38046        } && test -s conftest$ac_exeext &&
38047        $as_test_x conftest$ac_exeext; then
38048   ac_cv_lib_ltdl_lt_dlinit=yes
38049 else
38050   echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38052
38053         ac_cv_lib_ltdl_lt_dlinit=no
38054 fi
38055
38056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38057       conftest$ac_exeext conftest.$ac_ext
38058 LIBS=$ac_check_lib_save_LIBS
38059 fi
38060 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38061 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38062 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38063
38064                 SLAPI_LIBS=-lltdl
38065                 LIBSLAPI=libslapi.a
38066                 LIBSLAPITOOLS=../libslapi.a
38067
38068 cat >>confdefs.h <<\_ACEOF
38069 #define HAVE_LIBLTDL 1
38070 _ACEOF
38071
38072
38073 else
38074   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38075 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38076    { (exit 1); exit 1; }; }
38077 fi
38078
38079
38080
38081 cat >>confdefs.h <<\_ACEOF
38082 #define LDAP_SLAPI 1
38083 _ACEOF
38084
38085 fi
38086
38087 if test "$ol_enable_debug" != no ; then
38088         if test "$ol_enable_debug" = traditional; then
38089
38090 cat >>confdefs.h <<\_ACEOF
38091 #define OLD_DEBUG 1
38092 _ACEOF
38093
38094         fi
38095
38096 cat >>confdefs.h <<\_ACEOF
38097 #define LDAP_DEBUG 1
38098 _ACEOF
38099
38100 fi
38101 if test "$ol_enable_syslog" = yes ; then
38102
38103 cat >>confdefs.h <<\_ACEOF
38104 #define LDAP_SYSLOG 1
38105 _ACEOF
38106
38107 fi
38108 if test "$ol_enable_proctitle" != no ; then
38109
38110 cat >>confdefs.h <<\_ACEOF
38111 #define LDAP_PROCTITLE 1
38112 _ACEOF
38113
38114 fi
38115 if test "$ol_enable_referrals" != no ; then
38116
38117 cat >>confdefs.h <<\_ACEOF
38118 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38119 _ACEOF
38120
38121 fi
38122 if test "$ol_enable_local" != no; then
38123
38124 cat >>confdefs.h <<\_ACEOF
38125 #define LDAP_PF_LOCAL 1
38126 _ACEOF
38127
38128 fi
38129 if test "$ol_link_ipv6" != no; then
38130
38131 cat >>confdefs.h <<\_ACEOF
38132 #define LDAP_PF_INET6 1
38133 _ACEOF
38134
38135 fi
38136 if test "$ol_enable_cleartext" != no ; then
38137
38138 cat >>confdefs.h <<\_ACEOF
38139 #define SLAPD_CLEARTEXT 1
38140 _ACEOF
38141
38142 fi
38143 if test "$ol_enable_crypt" != no ; then
38144
38145 cat >>confdefs.h <<\_ACEOF
38146 #define SLAPD_CRYPT 1
38147 _ACEOF
38148
38149 fi
38150 if test "$ol_link_spasswd" != no ; then
38151
38152 cat >>confdefs.h <<\_ACEOF
38153 #define SLAPD_SPASSWD 1
38154 _ACEOF
38155
38156 fi
38157 if test "$ol_enable_rlookups" != no ; then
38158
38159 cat >>confdefs.h <<\_ACEOF
38160 #define SLAPD_RLOOKUPS 1
38161 _ACEOF
38162
38163 fi
38164 if test "$ol_enable_aci" != no ; then
38165         if test $ol_enable_dynacl = no ; then
38166                 ol_enable_dynacl=yes
38167                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38168 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38169         fi
38170         if test "$ol_enable_aci" = mod ; then
38171                 MFLAG=SLAPD_MOD_DYNAMIC
38172                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38173 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38174    { (exit 1); exit 1; }; }
38175         else
38176                 MFLAG=SLAPD_MOD_STATIC
38177         fi
38178         WITH_ACI_ENABLED=$ol_enable_aci
38179
38180 cat >>confdefs.h <<_ACEOF
38181 #define SLAPD_ACI_ENABLED $MFLAG
38182 _ACEOF
38183
38184 else
38185         WITH_ACI_ENABLED=no
38186 fi
38187 if test "$ol_enable_dynacl" != no ; then
38188
38189 cat >>confdefs.h <<\_ACEOF
38190 #define SLAP_DYNACL 1
38191 _ACEOF
38192
38193 fi
38194
38195 if test "$ol_link_modules" != no ; then
38196
38197 cat >>confdefs.h <<\_ACEOF
38198 #define SLAPD_MODULES 1
38199 _ACEOF
38200
38201         BUILD_SLAPD=yes
38202         SLAPD_MODULES_LDFLAGS="-dlopen self"
38203 fi
38204
38205
38206 cat >>confdefs.h <<\_ACEOF
38207 #define SLAPD_MOD_STATIC 1
38208 _ACEOF
38209
38210
38211 cat >>confdefs.h <<\_ACEOF
38212 #define SLAPD_MOD_DYNAMIC 2
38213 _ACEOF
38214
38215
38216 if test "$ol_enable_monitor" != no ; then
38217         BUILD_SLAPD=yes
38218         BUILD_MONITOR=$ol_enable_monitor
38219         if test "$ol_enable_monitor" = mod ; then
38220                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38221                 MFLAG=SLAPD_MOD_DYNAMIC
38222         else
38223                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38224                 MFLAG=SLAPD_MOD_STATIC
38225         fi
38226
38227 cat >>confdefs.h <<_ACEOF
38228 #define SLAPD_MONITOR $MFLAG
38229 _ACEOF
38230
38231 fi
38232
38233 if test "$ol_enable_bdb" != no ; then
38234         BUILD_SLAPD=yes
38235         BUILD_BDB=$ol_enable_bdb
38236         if test "$ol_enable_bdb" = mod ; then
38237                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38238                 MFLAG=SLAPD_MOD_DYNAMIC
38239         else
38240                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38241                 MFLAG=SLAPD_MOD_STATIC
38242         fi
38243
38244 cat >>confdefs.h <<_ACEOF
38245 #define SLAPD_BDB $MFLAG
38246 _ACEOF
38247
38248 fi
38249
38250 if test "$ol_enable_dnssrv" != no ; then
38251         BUILD_SLAPD=yes
38252         BUILD_DNSSRV=$ol_enable_dnssrv
38253         if test "$ol_enable_dnssrv" = mod ; then
38254                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38255                 MFLAG=SLAPD_MOD_DYNAMIC
38256         else
38257                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38258                 MFLAG=SLAPD_MOD_STATIC
38259         fi
38260
38261 cat >>confdefs.h <<_ACEOF
38262 #define SLAPD_DNSSRV $MFLAG
38263 _ACEOF
38264
38265 fi
38266
38267 if test "$ol_enable_hdb" != no ; then
38268         BUILD_SLAPD=yes
38269         BUILD_HDB=$ol_enable_hdb
38270         if test "$ol_enable_hdb" = mod ; then
38271                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38272                 MFLAG=SLAPD_MOD_DYNAMIC
38273         else
38274                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38275                 MFLAG=SLAPD_MOD_STATIC
38276         fi
38277
38278 cat >>confdefs.h <<_ACEOF
38279 #define SLAPD_HDB $MFLAG
38280 _ACEOF
38281
38282 fi
38283
38284 if test "$ol_enable_ldap" != no ; then
38285         BUILD_SLAPD=yes
38286         BUILD_LDAP=$ol_enable_ldap
38287         if test "$ol_enable_ldap" = mod ; then
38288                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38289                 MFLAG=SLAPD_MOD_DYNAMIC
38290         else
38291                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38292                 MFLAG=SLAPD_MOD_STATIC
38293         fi
38294
38295 cat >>confdefs.h <<_ACEOF
38296 #define SLAPD_LDAP $MFLAG
38297 _ACEOF
38298
38299 fi
38300
38301 if test "$ol_enable_meta" != no ; then
38302         BUILD_SLAPD=yes
38303         BUILD_META=$ol_enable_meta
38304         BUILD_REWRITE=yes
38305         if test "$ol_enable_meta" = mod ; then
38306                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38307                 MFLAG=SLAPD_MOD_DYNAMIC
38308         else
38309                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38310                 MFLAG=SLAPD_MOD_STATIC
38311         fi
38312
38313 cat >>confdefs.h <<_ACEOF
38314 #define SLAPD_META $MFLAG
38315 _ACEOF
38316
38317 fi
38318
38319 if test "$ol_enable_ndb" != no ; then
38320         BUILD_SLAPD=yes
38321         BUILD_NDB=$ol_enable_ndb
38322         if test "$ol_enable_ndb" = mod ; then
38323                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38324                 MFLAG=SLAPD_MOD_DYNAMIC
38325         else
38326                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38327                 MFLAG=SLAPD_MOD_STATIC
38328         fi
38329
38330 cat >>confdefs.h <<_ACEOF
38331 #define SLAPD_NDB $MFLAG
38332 _ACEOF
38333
38334 fi
38335
38336 if test "$ol_enable_null" != no ; then
38337         BUILD_SLAPD=yes
38338         BUILD_NULL=$ol_enable_null
38339         if test "$ol_enable_null" = mod ; then
38340                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38341                 MFLAG=SLAPD_MOD_DYNAMIC
38342         else
38343                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38344                 MFLAG=SLAPD_MOD_STATIC
38345         fi
38346
38347 cat >>confdefs.h <<_ACEOF
38348 #define SLAPD_NULL $MFLAG
38349 _ACEOF
38350
38351 fi
38352
38353 if test "$ol_enable_passwd" != no ; then
38354         BUILD_SLAPD=yes
38355         BUILD_PASSWD=$ol_enable_passwd
38356         if test "$ol_enable_passwd" = mod ; then
38357                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38358                 MFLAG=SLAPD_MOD_DYNAMIC
38359         else
38360                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38361                 MFLAG=SLAPD_MOD_STATIC
38362         fi
38363
38364 cat >>confdefs.h <<_ACEOF
38365 #define SLAPD_PASSWD $MFLAG
38366 _ACEOF
38367
38368 fi
38369
38370 if test "$ol_link_perl" != no ; then
38371         BUILD_SLAPD=yes
38372         BUILD_PERL=$ol_enable_perl
38373         if test "$ol_enable_perl" = mod ; then
38374                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38375                 MFLAG=SLAPD_MOD_DYNAMIC
38376         else
38377                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38378                 MFLAG=SLAPD_MOD_STATIC
38379         fi
38380
38381 cat >>confdefs.h <<_ACEOF
38382 #define SLAPD_PERL $MFLAG
38383 _ACEOF
38384
38385 fi
38386
38387 if test "$ol_enable_relay" != no ; then
38388         BUILD_SLAPD=yes
38389         BUILD_RELAY=$ol_enable_relay
38390         if test "$ol_enable_relay" = mod ; then
38391                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38392                 MFLAG=SLAPD_MOD_DYNAMIC
38393         else
38394                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38395                 MFLAG=SLAPD_MOD_STATIC
38396         fi
38397
38398 cat >>confdefs.h <<_ACEOF
38399 #define SLAPD_RELAY $MFLAG
38400 _ACEOF
38401
38402 fi
38403
38404 if test "$ol_enable_shell" != no ; then
38405         if test "$ol_link_threads" != no ; then
38406                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38407 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38408         fi
38409         BUILD_SLAPD=yes
38410         BUILD_SHELL=$ol_enable_shell
38411         if test "$ol_enable_shell" = mod ; then
38412                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38413                 MFLAG=SLAPD_MOD_DYNAMIC
38414         else
38415                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38416                 MFLAG=SLAPD_MOD_STATIC
38417         fi
38418
38419 cat >>confdefs.h <<_ACEOF
38420 #define SLAPD_SHELL $MFLAG
38421 _ACEOF
38422
38423 fi
38424
38425 if test "$ol_enable_sock" != no ; then
38426         BUILD_SLAPD=yes
38427         BUILD_SOCK=$ol_enable_sock
38428         if test "$ol_enable_sock" = mod ; then
38429                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38430                 MFLAG=SLAPD_MOD_DYNAMIC
38431         else
38432                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38433                 MFLAG=SLAPD_MOD_STATIC
38434         fi
38435
38436 cat >>confdefs.h <<_ACEOF
38437 #define SLAPD_SOCK $MFLAG
38438 _ACEOF
38439
38440 fi
38441
38442 if test "$ol_link_sql" != no ; then
38443         BUILD_SLAPD=yes
38444         BUILD_SQL=$ol_enable_sql
38445         if test "$ol_enable_sql" = mod; then
38446                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38447                 MFLAG=SLAPD_MOD_DYNAMIC
38448         else
38449                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38450                 MFLAG=SLAPD_MOD_STATIC
38451         fi
38452
38453 cat >>confdefs.h <<_ACEOF
38454 #define SLAPD_SQL $MFLAG
38455 _ACEOF
38456
38457 fi
38458
38459 if test "$ol_enable_accesslog" != no ; then
38460         BUILD_ACCESSLOG=$ol_enable_accesslog
38461         if test "$ol_enable_accesslog" = mod ; then
38462                 MFLAG=SLAPD_MOD_DYNAMIC
38463                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38464         else
38465                 MFLAG=SLAPD_MOD_STATIC
38466                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38467         fi
38468
38469 cat >>confdefs.h <<_ACEOF
38470 #define SLAPD_OVER_ACCESSLOG $MFLAG
38471 _ACEOF
38472
38473 fi
38474
38475 if test "$ol_enable_auditlog" != no ; then
38476         BUILD_AUDITLOG=$ol_enable_auditlog
38477         if test "$ol_enable_auditlog" = mod ; then
38478                 MFLAG=SLAPD_MOD_DYNAMIC
38479                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38480         else
38481                 MFLAG=SLAPD_MOD_STATIC
38482                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38483         fi
38484
38485 cat >>confdefs.h <<_ACEOF
38486 #define SLAPD_OVER_AUDITLOG $MFLAG
38487 _ACEOF
38488
38489 fi
38490
38491 if test "$ol_enable_collect" != no ; then
38492         BUILD_COLLECT=$ol_enable_collect
38493         if test "$ol_enable_collect" = mod ; then
38494                 MFLAG=SLAPD_MOD_DYNAMIC
38495                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38496         else
38497                 MFLAG=SLAPD_MOD_STATIC
38498                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38499         fi
38500
38501 cat >>confdefs.h <<_ACEOF
38502 #define SLAPD_OVER_COLLECT $MFLAG
38503 _ACEOF
38504
38505 fi
38506
38507 if test "$ol_enable_constraint" != no ; then
38508         BUILD_CONSTRAINT=$ol_enable_constraint
38509         if test "$ol_enable_constraint" = mod ; then
38510                 MFLAG=SLAPD_MOD_DYNAMIC
38511                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38512         else
38513                 MFLAG=SLAPD_MOD_STATIC
38514                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38515         fi
38516
38517 cat >>confdefs.h <<_ACEOF
38518 #define SLAPD_OVER_CONSTRAINT $MFLAG
38519 _ACEOF
38520
38521 fi
38522
38523 if test "$ol_enable_dds" != no ; then
38524         BUILD_DDS=$ol_enable_dds
38525         if test "$ol_enable_dds" = mod ; then
38526                 MFLAG=SLAPD_MOD_DYNAMIC
38527                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38528         else
38529                 MFLAG=SLAPD_MOD_STATIC
38530                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38531         fi
38532
38533 cat >>confdefs.h <<_ACEOF
38534 #define SLAPD_OVER_DDS $MFLAG
38535 _ACEOF
38536
38537 fi
38538
38539 if test "$ol_enable_deref" != no ; then
38540         BUILD_DDS=$ol_enable_deref
38541         if test "$ol_enable_deref" = mod ; then
38542                 MFLAG=SLAPD_MOD_DYNAMIC
38543                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38544         else
38545                 MFLAG=SLAPD_MOD_STATIC
38546                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38547         fi
38548
38549 cat >>confdefs.h <<_ACEOF
38550 #define SLAPD_OVER_DEREF $MFLAG
38551 _ACEOF
38552
38553 fi
38554
38555 if test "$ol_enable_dyngroup" != no ; then
38556         BUILD_DYNGROUP=$ol_enable_dyngroup
38557         if test "$ol_enable_dyngroup" = mod ; then
38558                 MFLAG=SLAPD_MOD_DYNAMIC
38559                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38560         else
38561                 MFLAG=SLAPD_MOD_STATIC
38562                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38563         fi
38564
38565 cat >>confdefs.h <<_ACEOF
38566 #define SLAPD_OVER_DYNGROUP $MFLAG
38567 _ACEOF
38568
38569 fi
38570
38571 if test "$ol_enable_dynlist" != no ; then
38572         BUILD_DYNLIST=$ol_enable_dynlist
38573         if test "$ol_enable_dynlist" = mod ; then
38574                 MFLAG=SLAPD_MOD_DYNAMIC
38575                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38576         else
38577                 MFLAG=SLAPD_MOD_STATIC
38578                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38579         fi
38580
38581 cat >>confdefs.h <<_ACEOF
38582 #define SLAPD_OVER_DYNLIST $MFLAG
38583 _ACEOF
38584
38585 fi
38586
38587 if test "$ol_enable_memberof" != no ; then
38588         BUILD_MEMBEROF=$ol_enable_memberof
38589         if test "$ol_enable_memberof" = mod ; then
38590                 MFLAG=SLAPD_MOD_DYNAMIC
38591                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38592         else
38593                 MFLAG=SLAPD_MOD_STATIC
38594                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38595         fi
38596
38597 cat >>confdefs.h <<_ACEOF
38598 #define SLAPD_OVER_MEMBEROF $MFLAG
38599 _ACEOF
38600
38601 fi
38602
38603 if test "$ol_enable_ppolicy" != no ; then
38604         BUILD_PPOLICY=$ol_enable_ppolicy
38605         if test "$ol_enable_ppolicy" = mod ; then
38606                 MFLAG=SLAPD_MOD_DYNAMIC
38607                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38608         else
38609                 MFLAG=SLAPD_MOD_STATIC
38610                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38611         fi
38612
38613 cat >>confdefs.h <<_ACEOF
38614 #define SLAPD_OVER_PPOLICY $MFLAG
38615 _ACEOF
38616
38617 fi
38618
38619 if test "$ol_enable_proxycache" != no ; then
38620         BUILD_PROXYCACHE=$ol_enable_proxycache
38621         if test "$ol_enable_proxycache" = mod ; then
38622                 MFLAG=SLAPD_MOD_DYNAMIC
38623                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38624         else
38625                 MFLAG=SLAPD_MOD_STATIC
38626                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38627         fi
38628
38629 cat >>confdefs.h <<_ACEOF
38630 #define SLAPD_OVER_PROXYCACHE $MFLAG
38631 _ACEOF
38632
38633 fi
38634
38635 if test "$ol_enable_refint" != no ; then
38636         BUILD_REFINT=$ol_enable_refint
38637         if test "$ol_enable_refint" = mod ; then
38638                 MFLAG=SLAPD_MOD_DYNAMIC
38639                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38640         else
38641                 MFLAG=SLAPD_MOD_STATIC
38642                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38643         fi
38644
38645 cat >>confdefs.h <<_ACEOF
38646 #define SLAPD_OVER_REFINT $MFLAG
38647 _ACEOF
38648
38649 fi
38650
38651 if test "$ol_enable_retcode" != no ; then
38652         BUILD_RETCODE=$ol_enable_retcode
38653         if test "$ol_enable_retcode" = mod ; then
38654                 MFLAG=SLAPD_MOD_DYNAMIC
38655                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38656         else
38657                 MFLAG=SLAPD_MOD_STATIC
38658                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38659         fi
38660
38661 cat >>confdefs.h <<_ACEOF
38662 #define SLAPD_OVER_RETCODE $MFLAG
38663 _ACEOF
38664
38665 fi
38666
38667 if test "$ol_enable_rwm" != no ; then
38668         BUILD_REWRITE=yes
38669         BUILD_RWM=$ol_enable_rwm
38670         if test "$ol_enable_rwm" = mod ; then
38671                 MFLAG=SLAPD_MOD_DYNAMIC
38672                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38673         else
38674                 MFLAG=SLAPD_MOD_STATIC
38675                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38676         fi
38677
38678 cat >>confdefs.h <<_ACEOF
38679 #define SLAPD_OVER_RWM $MFLAG
38680 _ACEOF
38681
38682 fi
38683
38684 if test "$ol_enable_seqmod" != no ; then
38685         BUILD_SEQMOD=$ol_enable_seqmod
38686         if test "$ol_enable_seqmod" = mod ; then
38687                 MFLAG=SLAPD_MOD_DYNAMIC
38688                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38689         else
38690                 MFLAG=SLAPD_MOD_STATIC
38691                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38692         fi
38693
38694 cat >>confdefs.h <<_ACEOF
38695 #define SLAPD_OVER_SEQMOD $MFLAG
38696 _ACEOF
38697
38698 fi
38699
38700 if test "$ol_enable_syncprov" != no ; then
38701         BUILD_SYNCPROV=$ol_enable_syncprov
38702         if test "$ol_enable_syncprov" = mod ; then
38703                 MFLAG=SLAPD_MOD_DYNAMIC
38704                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38705         else
38706                 MFLAG=SLAPD_MOD_STATIC
38707                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38708         fi
38709
38710 cat >>confdefs.h <<_ACEOF
38711 #define SLAPD_OVER_SYNCPROV $MFLAG
38712 _ACEOF
38713
38714 fi
38715
38716 if test "$ol_enable_translucent" != no ; then
38717         BUILD_TRANSLUCENT=$ol_enable_translucent
38718         if test "$ol_enable_translucent" = mod ; then
38719                 MFLAG=SLAPD_MOD_DYNAMIC
38720                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38721         else
38722                 MFLAG=SLAPD_MOD_STATIC
38723                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38724         fi
38725
38726 cat >>confdefs.h <<_ACEOF
38727 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38728 _ACEOF
38729
38730 fi
38731
38732 if test "$ol_enable_unique" != no ; then
38733         BUILD_UNIQUE=$ol_enable_unique
38734         if test "$ol_enable_unique" = mod ; then
38735                 MFLAG=SLAPD_MOD_DYNAMIC
38736                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38737         else
38738                 MFLAG=SLAPD_MOD_STATIC
38739                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38740         fi
38741
38742 cat >>confdefs.h <<_ACEOF
38743 #define SLAPD_OVER_UNIQUE $MFLAG
38744 _ACEOF
38745
38746 fi
38747
38748 if test "$ol_enable_valsort" != no ; then
38749         BUILD_VALSORT=$ol_enable_valsort
38750         if test "$ol_enable_valsort" = mod ; then
38751                 MFLAG=SLAPD_MOD_DYNAMIC
38752                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38753         else
38754                 MFLAG=SLAPD_MOD_STATIC
38755                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38756         fi
38757
38758 cat >>confdefs.h <<_ACEOF
38759 #define SLAPD_OVER_VALSORT $MFLAG
38760 _ACEOF
38761
38762 fi
38763
38764 if test "$ol_enable_rewrite" != no ; then
38765
38766 cat >>confdefs.h <<\_ACEOF
38767 #define ENABLE_REWRITE 1
38768 _ACEOF
38769
38770         BUILD_REWRITE=yes
38771 fi
38772
38773 if test "$ol_enable_slapi" != no ; then
38774
38775 cat >>confdefs.h <<\_ACEOF
38776 #define ENABLE_SLAPI 1
38777 _ACEOF
38778
38779         BUILD_SLAPI=yes
38780         SLAPD_SLAPI_DEPEND=libslapi.a
38781 fi
38782
38783
38784
38785 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38786         PLAT=NT
38787         SLAPD_MODULES_LDFLAGS=
38788 else
38789         PLAT=UNIX
38790 fi
38791
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801
38802
38803
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823
38824
38825
38826
38827
38828
38829
38830
38831
38832
38833
38834
38835
38836
38837
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880 # Check whether --with-xxinstall was given.
38881 if test "${with_xxinstall+set}" = set; then
38882   withval=$with_xxinstall;
38883 fi
38884
38885
38886
38887 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
38888
38889
38890 ac_config_commands="$ac_config_commands default"
38891
38892
38893
38894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38895 # Let make expand exec_prefix.
38896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38897
38898 DEFS=-DHAVE_CONFIG_H
38899
38900 ac_libobjs=
38901 ac_ltlibobjs=
38902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38903   # 1. Remove the extension, and $U if already installed.
38904   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38905   ac_i=`echo "$ac_i" | sed "$ac_script"`
38906   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38907   #    will be set to the directory where LIBOBJS objects are built.
38908   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38909   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38910 done
38911 LIBOBJS=$ac_libobjs
38912
38913 LTLIBOBJS=$ac_ltlibobjs
38914
38915
38916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38917   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38918 Usually this means the macro was only invoked conditionally." >&5
38919 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38920 Usually this means the macro was only invoked conditionally." >&2;}
38921    { (exit 1); exit 1; }; }
38922 fi
38923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38924   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38925 Usually this means the macro was only invoked conditionally." >&5
38926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38927 Usually this means the macro was only invoked conditionally." >&2;}
38928    { (exit 1); exit 1; }; }
38929 fi
38930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38931   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38932 Usually this means the macro was only invoked conditionally." >&5
38933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38934 Usually this means the macro was only invoked conditionally." >&2;}
38935    { (exit 1); exit 1; }; }
38936 fi
38937
38938 : ${CONFIG_STATUS=./config.status}
38939 ac_clean_files_save=$ac_clean_files
38940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38943 cat >$CONFIG_STATUS <<_ACEOF
38944 #! $SHELL
38945 # Generated by $as_me.
38946 # Run this file to recreate the current configuration.
38947 # Compiler output produced by configure, useful for debugging
38948 # configure, is in config.log if it exists.
38949
38950 debug=false
38951 ac_cs_recheck=false
38952 ac_cs_silent=false
38953 SHELL=\${CONFIG_SHELL-$SHELL}
38954 _ACEOF
38955
38956 cat >>$CONFIG_STATUS <<\_ACEOF
38957 ## --------------------- ##
38958 ## M4sh Initialization.  ##
38959 ## --------------------- ##
38960
38961 # Be more Bourne compatible
38962 DUALCASE=1; export DUALCASE # for MKS sh
38963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38964   emulate sh
38965   NULLCMD=:
38966   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38967   # is contrary to our usage.  Disable this feature.
38968   alias -g '${1+"$@"}'='"$@"'
38969   setopt NO_GLOB_SUBST
38970 else
38971   case `(set -o) 2>/dev/null` in
38972   *posix*) set -o posix ;;
38973 esac
38974
38975 fi
38976
38977
38978
38979
38980 # PATH needs CR
38981 # Avoid depending upon Character Ranges.
38982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38985 as_cr_digits='0123456789'
38986 as_cr_alnum=$as_cr_Letters$as_cr_digits
38987
38988 # The user is always right.
38989 if test "${PATH_SEPARATOR+set}" != set; then
38990   echo "#! /bin/sh" >conf$$.sh
38991   echo  "exit 0"   >>conf$$.sh
38992   chmod +x conf$$.sh
38993   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38994     PATH_SEPARATOR=';'
38995   else
38996     PATH_SEPARATOR=:
38997   fi
38998   rm -f conf$$.sh
38999 fi
39000
39001 # Support unset when possible.
39002 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39003   as_unset=unset
39004 else
39005   as_unset=false
39006 fi
39007
39008
39009 # IFS
39010 # We need space, tab and new line, in precisely that order.  Quoting is
39011 # there to prevent editors from complaining about space-tab.
39012 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39013 # splitting by setting IFS to empty value.)
39014 as_nl='
39015 '
39016 IFS=" ""        $as_nl"
39017
39018 # Find who we are.  Look in the path if we contain no directory separator.
39019 case $0 in
39020   *[\\/]* ) as_myself=$0 ;;
39021   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39022 for as_dir in $PATH
39023 do
39024   IFS=$as_save_IFS
39025   test -z "$as_dir" && as_dir=.
39026   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39027 done
39028 IFS=$as_save_IFS
39029
39030      ;;
39031 esac
39032 # We did not find ourselves, most probably we were run as `sh COMMAND'
39033 # in which case we are not to be found in the path.
39034 if test "x$as_myself" = x; then
39035   as_myself=$0
39036 fi
39037 if test ! -f "$as_myself"; then
39038   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39039   { (exit 1); exit 1; }
39040 fi
39041
39042 # Work around bugs in pre-3.0 UWIN ksh.
39043 for as_var in ENV MAIL MAILPATH
39044 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39045 done
39046 PS1='$ '
39047 PS2='> '
39048 PS4='+ '
39049
39050 # NLS nuisances.
39051 for as_var in \
39052   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39053   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39054   LC_TELEPHONE LC_TIME
39055 do
39056   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39057     eval $as_var=C; export $as_var
39058   else
39059     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39060   fi
39061 done
39062
39063 # Required to use basename.
39064 if expr a : '\(a\)' >/dev/null 2>&1 &&
39065    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39066   as_expr=expr
39067 else
39068   as_expr=false
39069 fi
39070
39071 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39072   as_basename=basename
39073 else
39074   as_basename=false
39075 fi
39076
39077
39078 # Name of the executable.
39079 as_me=`$as_basename -- "$0" ||
39080 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39081          X"$0" : 'X\(//\)$' \| \
39082          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39083 echo X/"$0" |
39084     sed '/^.*\/\([^/][^/]*\)\/*$/{
39085             s//\1/
39086             q
39087           }
39088           /^X\/\(\/\/\)$/{
39089             s//\1/
39090             q
39091           }
39092           /^X\/\(\/\).*/{
39093             s//\1/
39094             q
39095           }
39096           s/.*/./; q'`
39097
39098 # CDPATH.
39099 $as_unset CDPATH
39100
39101
39102
39103   as_lineno_1=$LINENO
39104   as_lineno_2=$LINENO
39105   test "x$as_lineno_1" != "x$as_lineno_2" &&
39106   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39107
39108   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39109   # uniformly replaced by the line number.  The first 'sed' inserts a
39110   # line-number line after each line using $LINENO; the second 'sed'
39111   # does the real work.  The second script uses 'N' to pair each
39112   # line-number line with the line containing $LINENO, and appends
39113   # trailing '-' during substitution so that $LINENO is not a special
39114   # case at line end.
39115   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39116   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39117   # E. McMahon (1931-1989) for sed's syntax.  :-)
39118   sed -n '
39119     p
39120     /[$]LINENO/=
39121   ' <$as_myself |
39122     sed '
39123       s/[$]LINENO.*/&-/
39124       t lineno
39125       b
39126       :lineno
39127       N
39128       :loop
39129       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39130       t loop
39131       s/-\n.*//
39132     ' >$as_me.lineno &&
39133   chmod +x "$as_me.lineno" ||
39134     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39135    { (exit 1); exit 1; }; }
39136
39137   # Don't try to exec as it changes $[0], causing all sort of problems
39138   # (the dirname of $[0] is not the place where we might find the
39139   # original and so on.  Autoconf is especially sensitive to this).
39140   . "./$as_me.lineno"
39141   # Exit status is that of the last command.
39142   exit
39143 }
39144
39145
39146 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39147   as_dirname=dirname
39148 else
39149   as_dirname=false
39150 fi
39151
39152 ECHO_C= ECHO_N= ECHO_T=
39153 case `echo -n x` in
39154 -n*)
39155   case `echo 'x\c'` in
39156   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39157   *)   ECHO_C='\c';;
39158   esac;;
39159 *)
39160   ECHO_N='-n';;
39161 esac
39162
39163 if expr a : '\(a\)' >/dev/null 2>&1 &&
39164    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39165   as_expr=expr
39166 else
39167   as_expr=false
39168 fi
39169
39170 rm -f conf$$ conf$$.exe conf$$.file
39171 if test -d conf$$.dir; then
39172   rm -f conf$$.dir/conf$$.file
39173 else
39174   rm -f conf$$.dir
39175   mkdir conf$$.dir
39176 fi
39177 echo >conf$$.file
39178 if ln -s conf$$.file conf$$ 2>/dev/null; then
39179   as_ln_s='ln -s'
39180   # ... but there are two gotchas:
39181   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39182   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39183   # In both cases, we have to default to `cp -p'.
39184   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39185     as_ln_s='cp -p'
39186 elif ln conf$$.file conf$$ 2>/dev/null; then
39187   as_ln_s=ln
39188 else
39189   as_ln_s='cp -p'
39190 fi
39191 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39192 rmdir conf$$.dir 2>/dev/null
39193
39194 if mkdir -p . 2>/dev/null; then
39195   as_mkdir_p=:
39196 else
39197   test -d ./-p && rmdir ./-p
39198   as_mkdir_p=false
39199 fi
39200
39201 if test -x / >/dev/null 2>&1; then
39202   as_test_x='test -x'
39203 else
39204   if ls -dL / >/dev/null 2>&1; then
39205     as_ls_L_option=L
39206   else
39207     as_ls_L_option=
39208   fi
39209   as_test_x='
39210     eval sh -c '\''
39211       if test -d "$1"; then
39212         test -d "$1/.";
39213       else
39214         case $1 in
39215         -*)set "./$1";;
39216         esac;
39217         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39218         ???[sx]*):;;*)false;;esac;fi
39219     '\'' sh
39220   '
39221 fi
39222 as_executable_p=$as_test_x
39223
39224 # Sed expression to map a string onto a valid CPP name.
39225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39226
39227 # Sed expression to map a string onto a valid variable name.
39228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39229
39230
39231 exec 6>&1
39232
39233 # Save the log message, to keep $[0] and so on meaningful, and to
39234 # report actual input values of CONFIG_FILES etc. instead of their
39235 # values after options handling.
39236 ac_log="
39237 This file was extended by $as_me, which was
39238 generated by GNU Autoconf 2.61.  Invocation command line was
39239
39240   CONFIG_FILES    = $CONFIG_FILES
39241   CONFIG_HEADERS  = $CONFIG_HEADERS
39242   CONFIG_LINKS    = $CONFIG_LINKS
39243   CONFIG_COMMANDS = $CONFIG_COMMANDS
39244   $ $0 $@
39245
39246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39247 "
39248
39249 _ACEOF
39250
39251 cat >>$CONFIG_STATUS <<_ACEOF
39252 # Files that config.status was made for.
39253 config_files="$ac_config_files"
39254 config_headers="$ac_config_headers"
39255 config_commands="$ac_config_commands"
39256
39257 _ACEOF
39258
39259 cat >>$CONFIG_STATUS <<\_ACEOF
39260 ac_cs_usage="\
39261 \`$as_me' instantiates files from templates according to the
39262 current configuration.
39263
39264 Usage: $0 [OPTIONS] [FILE]...
39265
39266   -h, --help       print this help, then exit
39267   -V, --version    print version number and configuration settings, then exit
39268   -q, --quiet      do not print progress messages
39269   -d, --debug      don't remove temporary files
39270       --recheck    update $as_me by reconfiguring in the same conditions
39271   --file=FILE[:TEMPLATE]
39272                    instantiate the configuration file FILE
39273   --header=FILE[:TEMPLATE]
39274                    instantiate the configuration header FILE
39275
39276 Configuration files:
39277 $config_files
39278
39279 Configuration headers:
39280 $config_headers
39281
39282 Configuration commands:
39283 $config_commands
39284
39285 Report bugs to <bug-autoconf@gnu.org>."
39286
39287 _ACEOF
39288 cat >>$CONFIG_STATUS <<_ACEOF
39289 ac_cs_version="\\
39290 config.status
39291 configured by $0, generated by GNU Autoconf 2.61,
39292   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39293
39294 Copyright (C) 2006 Free Software Foundation, Inc.
39295 This config.status script is free software; the Free Software Foundation
39296 gives unlimited permission to copy, distribute and modify it."
39297
39298 ac_pwd='$ac_pwd'
39299 srcdir='$srcdir'
39300 INSTALL='$INSTALL'
39301 _ACEOF
39302
39303 cat >>$CONFIG_STATUS <<\_ACEOF
39304 # If no file are specified by the user, then we need to provide default
39305 # value.  By we need to know if files were specified by the user.
39306 ac_need_defaults=:
39307 while test $# != 0
39308 do
39309   case $1 in
39310   --*=*)
39311     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39312     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39313     ac_shift=:
39314     ;;
39315   *)
39316     ac_option=$1
39317     ac_optarg=$2
39318     ac_shift=shift
39319     ;;
39320   esac
39321
39322   case $ac_option in
39323   # Handling of the options.
39324   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39325     ac_cs_recheck=: ;;
39326   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39327     echo "$ac_cs_version"; exit ;;
39328   --debug | --debu | --deb | --de | --d | -d )
39329     debug=: ;;
39330   --file | --fil | --fi | --f )
39331     $ac_shift
39332     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39333     ac_need_defaults=false;;
39334   --header | --heade | --head | --hea )
39335     $ac_shift
39336     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39337     ac_need_defaults=false;;
39338   --he | --h)
39339     # Conflict between --help and --header
39340     { echo "$as_me: error: ambiguous option: $1
39341 Try \`$0 --help' for more information." >&2
39342    { (exit 1); exit 1; }; };;
39343   --help | --hel | -h )
39344     echo "$ac_cs_usage"; exit ;;
39345   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39346   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39347     ac_cs_silent=: ;;
39348
39349   # This is an error.
39350   -*) { echo "$as_me: error: unrecognized option: $1
39351 Try \`$0 --help' for more information." >&2
39352    { (exit 1); exit 1; }; } ;;
39353
39354   *) ac_config_targets="$ac_config_targets $1"
39355      ac_need_defaults=false ;;
39356
39357   esac
39358   shift
39359 done
39360
39361 ac_configure_extra_args=
39362
39363 if $ac_cs_silent; then
39364   exec 6>/dev/null
39365   ac_configure_extra_args="$ac_configure_extra_args --silent"
39366 fi
39367
39368 _ACEOF
39369 cat >>$CONFIG_STATUS <<_ACEOF
39370 if \$ac_cs_recheck; then
39371   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39372   CONFIG_SHELL=$SHELL
39373   export CONFIG_SHELL
39374   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39375 fi
39376
39377 _ACEOF
39378 cat >>$CONFIG_STATUS <<\_ACEOF
39379 exec 5>>config.log
39380 {
39381   echo
39382   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39383 ## Running $as_me. ##
39384 _ASBOX
39385   echo "$ac_log"
39386 } >&5
39387
39388 _ACEOF
39389 cat >>$CONFIG_STATUS <<_ACEOF
39390 #
39391 # INIT-COMMANDS
39392 #
39393 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39394
39395 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39396 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39397
39398
39399 _ACEOF
39400
39401 cat >>$CONFIG_STATUS <<\_ACEOF
39402
39403 # Handling of arguments.
39404 for ac_config_target in $ac_config_targets
39405 do
39406   case $ac_config_target in
39407     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39408     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39409     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39410     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39411     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39412     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39413     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39414     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39415     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39416     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39417     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39418     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39419     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39420     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39421     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39422     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39423     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39424     "libraries/libldap_r/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39425     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39426     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39427     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39428     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39429     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39430     "servers/slapd/back-bdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
39431     "servers/slapd/back-dnssrv/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
39432     "servers/slapd/back-hdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
39433     "servers/slapd/back-ldap/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
39434     "servers/slapd/back-ldif/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
39435     "servers/slapd/back-meta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
39436     "servers/slapd/back-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
39437     "servers/slapd/back-ndb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
39438     "servers/slapd/back-null/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
39439     "servers/slapd/back-passwd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
39440     "servers/slapd/back-perl/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
39441     "servers/slapd/back-relay/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
39442     "servers/slapd/back-shell/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
39443     "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
39444     "servers/slapd/back-sql/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
39445     "servers/slapd/shell-backends/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
39446     "servers/slapd/slapi/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39447     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39448     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39449     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39450     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39451     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39452
39453   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39454 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39455    { (exit 1); exit 1; }; };;
39456   esac
39457 done
39458
39459
39460 # If the user did not use the arguments to specify the items to instantiate,
39461 # then the envvar interface is used.  Set only those that are not.
39462 # We use the long form for the default assignment because of an extremely
39463 # bizarre bug on SunOS 4.1.3.
39464 if $ac_need_defaults; then
39465   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39466   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39467   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39468 fi
39469
39470 # Have a temporary directory for convenience.  Make it in the build tree
39471 # simply because there is no reason against having it here, and in addition,
39472 # creating and moving files from /tmp can sometimes cause problems.
39473 # Hook for its removal unless debugging.
39474 # Note that there is a small window in which the directory will not be cleaned:
39475 # after its creation but before its name has been assigned to `$tmp'.
39476 $debug ||
39477 {
39478   tmp=
39479   trap 'exit_status=$?
39480   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39481 ' 0
39482   trap '{ (exit 1); exit 1; }' 1 2 13 15
39483 }
39484 # Create a (secure) tmp directory for tmp files.
39485
39486 {
39487   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39488   test -n "$tmp" && test -d "$tmp"
39489 }  ||
39490 {
39491   tmp=./conf$$-$RANDOM
39492   (umask 077 && mkdir "$tmp")
39493 } ||
39494 {
39495    echo "$me: cannot create a temporary directory in ." >&2
39496    { (exit 1); exit 1; }
39497 }
39498
39499 #
39500 # Set up the sed scripts for CONFIG_FILES section.
39501 #
39502
39503 # No need to generate the scripts if there are no CONFIG_FILES.
39504 # This happens for instance when ./config.status config.h
39505 if test -n "$CONFIG_FILES"; then
39506
39507 _ACEOF
39508
39509
39510
39511 ac_delim='%!_!# '
39512 for ac_last_try in false false false false false :; do
39513   cat >conf$$subs.sed <<_ACEOF
39514 SHELL!$SHELL$ac_delim
39515 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39516 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39517 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39518 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39519 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39520 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39521 exec_prefix!$exec_prefix$ac_delim
39522 prefix!$prefix$ac_delim
39523 program_transform_name!$program_transform_name$ac_delim
39524 bindir!$bindir$ac_delim
39525 sbindir!$sbindir$ac_delim
39526 libexecdir!$libexecdir$ac_delim
39527 datarootdir!$datarootdir$ac_delim
39528 datadir!$datadir$ac_delim
39529 sysconfdir!$sysconfdir$ac_delim
39530 sharedstatedir!$sharedstatedir$ac_delim
39531 localstatedir!$localstatedir$ac_delim
39532 includedir!$includedir$ac_delim
39533 oldincludedir!$oldincludedir$ac_delim
39534 docdir!$docdir$ac_delim
39535 infodir!$infodir$ac_delim
39536 htmldir!$htmldir$ac_delim
39537 dvidir!$dvidir$ac_delim
39538 pdfdir!$pdfdir$ac_delim
39539 psdir!$psdir$ac_delim
39540 libdir!$libdir$ac_delim
39541 localedir!$localedir$ac_delim
39542 mandir!$mandir$ac_delim
39543 DEFS!$DEFS$ac_delim
39544 ECHO_C!$ECHO_C$ac_delim
39545 ECHO_N!$ECHO_N$ac_delim
39546 ECHO_T!$ECHO_T$ac_delim
39547 LIBS!$LIBS$ac_delim
39548 build_alias!$build_alias$ac_delim
39549 host_alias!$host_alias$ac_delim
39550 target_alias!$target_alias$ac_delim
39551 build!$build$ac_delim
39552 build_cpu!$build_cpu$ac_delim
39553 build_vendor!$build_vendor$ac_delim
39554 build_os!$build_os$ac_delim
39555 host!$host$ac_delim
39556 host_cpu!$host_cpu$ac_delim
39557 host_vendor!$host_vendor$ac_delim
39558 host_os!$host_os$ac_delim
39559 target!$target$ac_delim
39560 target_cpu!$target_cpu$ac_delim
39561 target_vendor!$target_vendor$ac_delim
39562 target_os!$target_os$ac_delim
39563 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39564 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39565 INSTALL_DATA!$INSTALL_DATA$ac_delim
39566 CYGPATH_W!$CYGPATH_W$ac_delim
39567 PACKAGE!$PACKAGE$ac_delim
39568 VERSION!$VERSION$ac_delim
39569 ACLOCAL!$ACLOCAL$ac_delim
39570 AUTOCONF!$AUTOCONF$ac_delim
39571 AUTOMAKE!$AUTOMAKE$ac_delim
39572 AUTOHEADER!$AUTOHEADER$ac_delim
39573 MAKEINFO!$MAKEINFO$ac_delim
39574 install_sh!$install_sh$ac_delim
39575 STRIP!$STRIP$ac_delim
39576 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39577 mkdir_p!$mkdir_p$ac_delim
39578 AWK!$AWK$ac_delim
39579 SET_MAKE!$SET_MAKE$ac_delim
39580 am__leading_dot!$am__leading_dot$ac_delim
39581 AMTAR!$AMTAR$ac_delim
39582 am__tar!$am__tar$ac_delim
39583 am__untar!$am__untar$ac_delim
39584 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39585 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39586 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39587 top_builddir!$top_builddir$ac_delim
39588 ldap_subdir!$ldap_subdir$ac_delim
39589 CC!$CC$ac_delim
39590 AR!$AR$ac_delim
39591 CFLAGS!$CFLAGS$ac_delim
39592 LDFLAGS!$LDFLAGS$ac_delim
39593 CPPFLAGS!$CPPFLAGS$ac_delim
39594 ac_ct_CC!$ac_ct_CC$ac_delim
39595 EXEEXT!$EXEEXT$ac_delim
39596 OBJEXT!$OBJEXT$ac_delim
39597 DEPDIR!$DEPDIR$ac_delim
39598 am__include!$am__include$ac_delim
39599 am__quote!$am__quote$ac_delim
39600 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39601 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39602 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39603 CCDEPMODE!$CCDEPMODE$ac_delim
39604 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39605 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39606 GREP!$GREP$ac_delim
39607 EGREP!$EGREP$ac_delim
39608 LN_S!$LN_S$ac_delim
39609 ECHO!$ECHO$ac_delim
39610 RANLIB!$RANLIB$ac_delim
39611 _ACEOF
39612
39613   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39614     break
39615   elif $ac_last_try; then
39616     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39617 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39618    { (exit 1); exit 1; }; }
39619   else
39620     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39621   fi
39622 done
39623
39624 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39625 if test -n "$ac_eof"; then
39626   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39627   ac_eof=`expr $ac_eof + 1`
39628 fi
39629
39630 cat >>$CONFIG_STATUS <<_ACEOF
39631 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39633 _ACEOF
39634 sed '
39635 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39636 s/^/s,@/; s/!/@,|#_!!_#|/
39637 :n
39638 t n
39639 s/'"$ac_delim"'$/,g/; t
39640 s/$/\\/; p
39641 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39642 ' >>$CONFIG_STATUS <conf$$subs.sed
39643 rm -f conf$$subs.sed
39644 cat >>$CONFIG_STATUS <<_ACEOF
39645 CEOF$ac_eof
39646 _ACEOF
39647
39648
39649 ac_delim='%!_!# '
39650 for ac_last_try in false false false false false :; do
39651   cat >conf$$subs.sed <<_ACEOF
39652 DLLTOOL!$DLLTOOL$ac_delim
39653 AS!$AS$ac_delim
39654 OBJDUMP!$OBJDUMP$ac_delim
39655 CPP!$CPP$ac_delim
39656 LIBTOOL!$LIBTOOL$ac_delim
39657 PERLBIN!$PERLBIN$ac_delim
39658 OL_MKDEP!$OL_MKDEP$ac_delim
39659 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39660 LTSTATIC!$LTSTATIC$ac_delim
39661 MYSQL!$MYSQL$ac_delim
39662 LIBOBJS!$LIBOBJS$ac_delim
39663 LIBSRCS!$LIBSRCS$ac_delim
39664 PLAT!$PLAT$ac_delim
39665 WITH_SASL!$WITH_SASL$ac_delim
39666 WITH_TLS!$WITH_TLS$ac_delim
39667 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39668 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39669 BUILD_THREAD!$BUILD_THREAD$ac_delim
39670 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39671 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39672 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39673 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39674 BUILD_BDB!$BUILD_BDB$ac_delim
39675 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39676 BUILD_HDB!$BUILD_HDB$ac_delim
39677 BUILD_LDAP!$BUILD_LDAP$ac_delim
39678 BUILD_META!$BUILD_META$ac_delim
39679 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39680 BUILD_NDB!$BUILD_NDB$ac_delim
39681 BUILD_NULL!$BUILD_NULL$ac_delim
39682 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39683 BUILD_RELAY!$BUILD_RELAY$ac_delim
39684 BUILD_PERL!$BUILD_PERL$ac_delim
39685 BUILD_SHELL!$BUILD_SHELL$ac_delim
39686 BUILD_SOCK!$BUILD_SOCK$ac_delim
39687 BUILD_SQL!$BUILD_SQL$ac_delim
39688 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39689 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39690 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39691 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39692 BUILD_DDS!$BUILD_DDS$ac_delim
39693 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39694 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39695 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39696 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39697 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39698 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39699 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39700 BUILD_REFINT!$BUILD_REFINT$ac_delim
39701 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39702 BUILD_RWM!$BUILD_RWM$ac_delim
39703 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39704 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39705 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39706 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39707 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39708 LDAP_LIBS!$LDAP_LIBS$ac_delim
39709 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39710 BDB_LIBS!$BDB_LIBS$ac_delim
39711 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39712 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39713 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39714 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39715 WRAP_LIBS!$WRAP_LIBS$ac_delim
39716 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39717 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39718 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39719 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39720 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39721 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39722 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39723 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39724 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39725 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39726 KRB4_LIBS!$KRB4_LIBS$ac_delim
39727 KRB5_LIBS!$KRB5_LIBS$ac_delim
39728 SASL_LIBS!$SASL_LIBS$ac_delim
39729 TLS_LIBS!$TLS_LIBS$ac_delim
39730 MODULES_LIBS!$MODULES_LIBS$ac_delim
39731 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39732 LIBSLAPI!$LIBSLAPI$ac_delim
39733 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39734 AUTH_LIBS!$AUTH_LIBS$ac_delim
39735 ICU_LIBS!$ICU_LIBS$ac_delim
39736 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39737 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39738 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39739 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39740 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39741 LTLIBOBJS!$LTLIBOBJS$ac_delim
39742 _ACEOF
39743
39744   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
39745     break
39746   elif $ac_last_try; then
39747     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39748 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39749    { (exit 1); exit 1; }; }
39750   else
39751     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39752   fi
39753 done
39754
39755 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39756 if test -n "$ac_eof"; then
39757   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39758   ac_eof=`expr $ac_eof + 1`
39759 fi
39760
39761 cat >>$CONFIG_STATUS <<_ACEOF
39762 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39764 _ACEOF
39765 sed '
39766 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39767 s/^/s,@/; s/!/@,|#_!!_#|/
39768 :n
39769 t n
39770 s/'"$ac_delim"'$/,g/; t
39771 s/$/\\/; p
39772 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39773 ' >>$CONFIG_STATUS <conf$$subs.sed
39774 rm -f conf$$subs.sed
39775 cat >>$CONFIG_STATUS <<_ACEOF
39776 :end
39777 s/|#_!!_#|//g
39778 CEOF$ac_eof
39779 _ACEOF
39780
39781
39782 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39783 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39784 # trailing colons and then remove the whole line if VPATH becomes empty
39785 # (actually we leave an empty line to preserve line numbers).
39786 if test "x$srcdir" = x.; then
39787   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39788 s/:*\$(srcdir):*/:/
39789 s/:*\${srcdir}:*/:/
39790 s/:*@srcdir@:*/:/
39791 s/^\([^=]*=[     ]*\):*/\1/
39792 s/:*$//
39793 s/^[^=]*=[       ]*$//
39794 }'
39795 fi
39796
39797 cat >>$CONFIG_STATUS <<\_ACEOF
39798 fi # test -n "$CONFIG_FILES"
39799
39800
39801 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39802 do
39803   case $ac_tag in
39804   :[FHLC]) ac_mode=$ac_tag; continue;;
39805   esac
39806   case $ac_mode$ac_tag in
39807   :[FHL]*:*);;
39808   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39809 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39810    { (exit 1); exit 1; }; };;
39811   :[FH]-) ac_tag=-:-;;
39812   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39813   esac
39814   ac_save_IFS=$IFS
39815   IFS=:
39816   set x $ac_tag
39817   IFS=$ac_save_IFS
39818   shift
39819   ac_file=$1
39820   shift
39821
39822   case $ac_mode in
39823   :L) ac_source=$1;;
39824   :[FH])
39825     ac_file_inputs=
39826     for ac_f
39827     do
39828       case $ac_f in
39829       -) ac_f="$tmp/stdin";;
39830       *) # Look for the file first in the build tree, then in the source tree
39831          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39832          # because $ac_f cannot contain `:'.
39833          test -f "$ac_f" ||
39834            case $ac_f in
39835            [\\/$]*) false;;
39836            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39837            esac ||
39838            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39839 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39840    { (exit 1); exit 1; }; };;
39841       esac
39842       ac_file_inputs="$ac_file_inputs $ac_f"
39843     done
39844
39845     # Let's still pretend it is `configure' which instantiates (i.e., don't
39846     # use $as_me), people would be surprised to read:
39847     #    /* config.h.  Generated by config.status.  */
39848     configure_input="Generated from "`IFS=:
39849           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39850     if test x"$ac_file" != x-; then
39851       configure_input="$ac_file.  $configure_input"
39852       { echo "$as_me:$LINENO: creating $ac_file" >&5
39853 echo "$as_me: creating $ac_file" >&6;}
39854     fi
39855
39856     case $ac_tag in
39857     *:-:* | *:-) cat >"$tmp/stdin";;
39858     esac
39859     ;;
39860   esac
39861
39862   ac_dir=`$as_dirname -- "$ac_file" ||
39863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39864          X"$ac_file" : 'X\(//\)[^/]' \| \
39865          X"$ac_file" : 'X\(//\)$' \| \
39866          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39867 echo X"$ac_file" |
39868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39869             s//\1/
39870             q
39871           }
39872           /^X\(\/\/\)[^/].*/{
39873             s//\1/
39874             q
39875           }
39876           /^X\(\/\/\)$/{
39877             s//\1/
39878             q
39879           }
39880           /^X\(\/\).*/{
39881             s//\1/
39882             q
39883           }
39884           s/.*/./; q'`
39885   { as_dir="$ac_dir"
39886   case $as_dir in #(
39887   -*) as_dir=./$as_dir;;
39888   esac
39889   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39890     as_dirs=
39891     while :; do
39892       case $as_dir in #(
39893       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39894       *) as_qdir=$as_dir;;
39895       esac
39896       as_dirs="'$as_qdir' $as_dirs"
39897       as_dir=`$as_dirname -- "$as_dir" ||
39898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39899          X"$as_dir" : 'X\(//\)[^/]' \| \
39900          X"$as_dir" : 'X\(//\)$' \| \
39901          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39902 echo X"$as_dir" |
39903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39904             s//\1/
39905             q
39906           }
39907           /^X\(\/\/\)[^/].*/{
39908             s//\1/
39909             q
39910           }
39911           /^X\(\/\/\)$/{
39912             s//\1/
39913             q
39914           }
39915           /^X\(\/\).*/{
39916             s//\1/
39917             q
39918           }
39919           s/.*/./; q'`
39920       test -d "$as_dir" && break
39921     done
39922     test -z "$as_dirs" || eval "mkdir $as_dirs"
39923   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39924 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39925    { (exit 1); exit 1; }; }; }
39926   ac_builddir=.
39927
39928 case "$ac_dir" in
39929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39930 *)
39931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39932   # A ".." for each directory in $ac_dir_suffix.
39933   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39934   case $ac_top_builddir_sub in
39935   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39936   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39937   esac ;;
39938 esac
39939 ac_abs_top_builddir=$ac_pwd
39940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39941 # for backward compatibility:
39942 ac_top_builddir=$ac_top_build_prefix
39943
39944 case $srcdir in
39945   .)  # We are building in place.
39946     ac_srcdir=.
39947     ac_top_srcdir=$ac_top_builddir_sub
39948     ac_abs_top_srcdir=$ac_pwd ;;
39949   [\\/]* | ?:[\\/]* )  # Absolute name.
39950     ac_srcdir=$srcdir$ac_dir_suffix;
39951     ac_top_srcdir=$srcdir
39952     ac_abs_top_srcdir=$srcdir ;;
39953   *) # Relative name.
39954     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39955     ac_top_srcdir=$ac_top_build_prefix$srcdir
39956     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39957 esac
39958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39959
39960
39961   case $ac_mode in
39962   :F)
39963   #
39964   # CONFIG_FILE
39965   #
39966
39967   case $INSTALL in
39968   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39969   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39970   esac
39971 _ACEOF
39972
39973 cat >>$CONFIG_STATUS <<\_ACEOF
39974 # If the template does not know about datarootdir, expand it.
39975 # FIXME: This hack should be removed a few years after 2.60.
39976 ac_datarootdir_hack=; ac_datarootdir_seen=
39977
39978 case `sed -n '/datarootdir/ {
39979   p
39980   q
39981 }
39982 /@datadir@/p
39983 /@docdir@/p
39984 /@infodir@/p
39985 /@localedir@/p
39986 /@mandir@/p
39987 ' $ac_file_inputs` in
39988 *datarootdir*) ac_datarootdir_seen=yes;;
39989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39990   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39991 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39992 _ACEOF
39993 cat >>$CONFIG_STATUS <<_ACEOF
39994   ac_datarootdir_hack='
39995   s&@datadir@&$datadir&g
39996   s&@docdir@&$docdir&g
39997   s&@infodir@&$infodir&g
39998   s&@localedir@&$localedir&g
39999   s&@mandir@&$mandir&g
40000     s&\\\${datarootdir}&$datarootdir&g' ;;
40001 esac
40002 _ACEOF
40003
40004 # Neutralize VPATH when `$srcdir' = `.'.
40005 # Shell code in configure.ac might set extrasub.
40006 # FIXME: do we really want to maintain this feature?
40007 cat >>$CONFIG_STATUS <<_ACEOF
40008   sed "$ac_vpsub
40009 $extrasub
40010 _ACEOF
40011 cat >>$CONFIG_STATUS <<\_ACEOF
40012 :t
40013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40014 s&@configure_input@&$configure_input&;t t
40015 s&@top_builddir@&$ac_top_builddir_sub&;t t
40016 s&@srcdir@&$ac_srcdir&;t t
40017 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40018 s&@top_srcdir@&$ac_top_srcdir&;t t
40019 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40020 s&@builddir@&$ac_builddir&;t t
40021 s&@abs_builddir@&$ac_abs_builddir&;t t
40022 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40023 s&@INSTALL@&$ac_INSTALL&;t t
40024 $ac_datarootdir_hack
40025 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40026
40027 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40028   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40029   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40030   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40031 which seems to be undefined.  Please make sure it is defined." >&5
40032 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40033 which seems to be undefined.  Please make sure it is defined." >&2;}
40034
40035   rm -f "$tmp/stdin"
40036   case $ac_file in
40037   -) cat "$tmp/out"; rm -f "$tmp/out";;
40038   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40039   esac
40040  ;;
40041   :H)
40042   #
40043   # CONFIG_HEADER
40044   #
40045 _ACEOF
40046
40047 # Transform confdefs.h into a sed script `conftest.defines', that
40048 # substitutes the proper values into config.h.in to produce config.h.
40049 rm -f conftest.defines conftest.tail
40050 # First, append a space to every undef/define line, to ease matching.
40051 echo 's/$/ /' >conftest.defines
40052 # Then, protect against being on the right side of a sed subst, or in
40053 # an unquoted here document, in config.status.  If some macros were
40054 # called several times there might be several #defines for the same
40055 # symbol, which is useless.  But do not sort them, since the last
40056 # AC_DEFINE must be honored.
40057 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40058 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40059 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40060 # PARAMS is the parameter list in the macro definition--in most cases, it's
40061 # just an empty string.
40062 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40063 ac_dB='\\)[      (].*,\\1define\\2'
40064 ac_dC=' '
40065 ac_dD=' ,'
40066
40067 uniq confdefs.h |
40068   sed -n '
40069         t rset
40070         :rset
40071         s/^[     ]*#[    ]*define[       ][      ]*//
40072         t ok
40073         d
40074         :ok
40075         s/[\\&,]/\\&/g
40076         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40077         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40078   ' >>conftest.defines
40079
40080 # Remove the space that was appended to ease matching.
40081 # Then replace #undef with comments.  This is necessary, for
40082 # example, in the case of _POSIX_SOURCE, which is predefined and required
40083 # on some systems where configure will not decide to define it.
40084 # (The regexp can be short, since the line contains either #define or #undef.)
40085 echo 's/ $//
40086 s,^[     #]*u.*,/* & */,' >>conftest.defines
40087
40088 # Break up conftest.defines:
40089 ac_max_sed_lines=50
40090
40091 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40092 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40093 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40094 # et cetera.
40095 ac_in='$ac_file_inputs'
40096 ac_out='"$tmp/out1"'
40097 ac_nxt='"$tmp/out2"'
40098
40099 while :
40100 do
40101   # Write a here document:
40102     cat >>$CONFIG_STATUS <<_ACEOF
40103     # First, check the format of the line:
40104     cat >"\$tmp/defines.sed" <<\\CEOF
40105 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40106 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40107 b
40108 :def
40109 _ACEOF
40110   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40111   echo 'CEOF
40112     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40113   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40114   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40115   grep . conftest.tail >/dev/null || break
40116   rm -f conftest.defines
40117   mv conftest.tail conftest.defines
40118 done
40119 rm -f conftest.defines conftest.tail
40120
40121 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40122 cat >>$CONFIG_STATUS <<\_ACEOF
40123   if test x"$ac_file" != x-; then
40124     echo "/* $configure_input  */" >"$tmp/config.h"
40125     cat "$ac_result" >>"$tmp/config.h"
40126     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40127       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40128 echo "$as_me: $ac_file is unchanged" >&6;}
40129     else
40130       rm -f $ac_file
40131       mv "$tmp/config.h" $ac_file
40132     fi
40133   else
40134     echo "/* $configure_input  */"
40135     cat "$ac_result"
40136   fi
40137   rm -f "$tmp/out12"
40138 # Compute $ac_file's index in $config_headers.
40139 _am_stamp_count=1
40140 for _am_header in $config_headers :; do
40141   case $_am_header in
40142     $ac_file | $ac_file:* )
40143       break ;;
40144     * )
40145       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40146   esac
40147 done
40148 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40149 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40150          X$ac_file : 'X\(//\)[^/]' \| \
40151          X$ac_file : 'X\(//\)$' \| \
40152          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40153 echo X$ac_file |
40154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40155             s//\1/
40156             q
40157           }
40158           /^X\(\/\/\)[^/].*/{
40159             s//\1/
40160             q
40161           }
40162           /^X\(\/\/\)$/{
40163             s//\1/
40164             q
40165           }
40166           /^X\(\/\).*/{
40167             s//\1/
40168             q
40169           }
40170           s/.*/./; q'`/stamp-h$_am_stamp_count
40171  ;;
40172
40173   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40174 echo "$as_me: executing $ac_file commands" >&6;}
40175  ;;
40176   esac
40177
40178
40179   case $ac_file$ac_mode in
40180     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40181   # Strip MF so we end up with the name of the file.
40182   mf=`echo "$mf" | sed -e 's/:.*$//'`
40183   # Check whether this is an Automake generated Makefile or not.
40184   # We used to match only the files named `Makefile.in', but
40185   # some people rename them; so instead we look at the file content.
40186   # Grep'ing the first line is not enough: some people post-process
40187   # each Makefile.in and add a new line on top of each file to say so.
40188   # So let's grep whole file.
40189   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40190     dirpart=`$as_dirname -- "$mf" ||
40191 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40192          X"$mf" : 'X\(//\)[^/]' \| \
40193          X"$mf" : 'X\(//\)$' \| \
40194          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40195 echo X"$mf" |
40196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40197             s//\1/
40198             q
40199           }
40200           /^X\(\/\/\)[^/].*/{
40201             s//\1/
40202             q
40203           }
40204           /^X\(\/\/\)$/{
40205             s//\1/
40206             q
40207           }
40208           /^X\(\/\).*/{
40209             s//\1/
40210             q
40211           }
40212           s/.*/./; q'`
40213   else
40214     continue
40215   fi
40216   # Extract the definition of DEPDIR, am__include, and am__quote
40217   # from the Makefile without running `make'.
40218   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40219   test -z "$DEPDIR" && continue
40220   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40221   test -z "am__include" && continue
40222   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40223   # When using ansi2knr, U may be empty or an underscore; expand it
40224   U=`sed -n 's/^U = //p' < "$mf"`
40225   # Find all dependency output files, they are included files with
40226   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40227   # simplest approach to changing $(DEPDIR) to its actual value in the
40228   # expansion.
40229   for file in `sed -n "
40230     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40231        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40232     # Make sure the directory exists.
40233     test -f "$dirpart/$file" && continue
40234     fdir=`$as_dirname -- "$file" ||
40235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40236          X"$file" : 'X\(//\)[^/]' \| \
40237          X"$file" : 'X\(//\)$' \| \
40238          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40239 echo X"$file" |
40240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40241             s//\1/
40242             q
40243           }
40244           /^X\(\/\/\)[^/].*/{
40245             s//\1/
40246             q
40247           }
40248           /^X\(\/\/\)$/{
40249             s//\1/
40250             q
40251           }
40252           /^X\(\/\).*/{
40253             s//\1/
40254             q
40255           }
40256           s/.*/./; q'`
40257     { as_dir=$dirpart/$fdir
40258   case $as_dir in #(
40259   -*) as_dir=./$as_dir;;
40260   esac
40261   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40262     as_dirs=
40263     while :; do
40264       case $as_dir in #(
40265       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40266       *) as_qdir=$as_dir;;
40267       esac
40268       as_dirs="'$as_qdir' $as_dirs"
40269       as_dir=`$as_dirname -- "$as_dir" ||
40270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40271          X"$as_dir" : 'X\(//\)[^/]' \| \
40272          X"$as_dir" : 'X\(//\)$' \| \
40273          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40274 echo X"$as_dir" |
40275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40276             s//\1/
40277             q
40278           }
40279           /^X\(\/\/\)[^/].*/{
40280             s//\1/
40281             q
40282           }
40283           /^X\(\/\/\)$/{
40284             s//\1/
40285             q
40286           }
40287           /^X\(\/\).*/{
40288             s//\1/
40289             q
40290           }
40291           s/.*/./; q'`
40292       test -d "$as_dir" && break
40293     done
40294     test -z "$as_dirs" || eval "mkdir $as_dirs"
40295   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40296 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40297    { (exit 1); exit 1; }; }; }
40298     # echo "creating $dirpart/$file"
40299     echo '# dummy' > "$dirpart/$file"
40300   done
40301 done
40302  ;;
40303     "default":C)
40304 chmod +x tests/run
40305 date > stamp-h
40306 BACKENDSC="servers/slapd/backends.c"
40307 echo "Making $BACKENDSC"
40308 rm -f $BACKENDSC
40309 cat > $BACKENDSC << ENDX
40310 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40311  *
40312  * Copyright 1998-2009 The OpenLDAP Foundation.
40313  * All rights reserved.
40314  *
40315  * Redistribution and use in source and binary forms, with or without
40316  * modification, are permitted only as authorized by the OpenLDAP
40317  * Public License.
40318  *
40319  * A copy of this license is available in the file LICENSE in the
40320  * top-level directory of the distribution or, alternatively, at
40321  * <http://www.OpenLDAP.org/license.html>.
40322  */
40323 /* This file is automatically generated by configure; please do not edit. */
40324
40325 #include "portable.h"
40326 #include "slap.h"
40327
40328 ENDX
40329 if test "${STATIC_BACKENDS}"; then
40330         for b in config ${STATIC_BACKENDS}; do
40331                 bb=`echo "${b}" | sed -e 's/back-//'`
40332                 cat >> $BACKENDSC << ENDX
40333 extern BI_init ${bb}_back_initialize;
40334 ENDX
40335         done
40336
40337         cat >> $BACKENDSC << ENDX
40338
40339 BackendInfo slap_binfo[] = {
40340 ENDX
40341
40342         for b in config ${STATIC_BACKENDS}; do
40343                 bb=`echo "${b}" | sed -e 's/back-//'`
40344                 echo "    Add ${bb} ..."
40345                 cat >> $BACKENDSC << ENDX
40346         { "${bb}", ${bb}_back_initialize },
40347 ENDX
40348         done
40349
40350         cat >> $BACKENDSC << ENDX
40351         { NULL, NULL },
40352 };
40353
40354 /* end of generated file */
40355 ENDX
40356 fi
40357 OVERLAYSC="servers/slapd/overlays/statover.c"
40358 echo "Making $OVERLAYSC"
40359 rm -f $OVERLAYSC
40360 cat > $OVERLAYSC << ENDX
40361 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40362  *
40363  * Copyright 1998-2009 The OpenLDAP Foundation.
40364  * All rights reserved.
40365  *
40366  * Redistribution and use in source and binary forms, with or without
40367  * modification, are permitted only as authorized by the OpenLDAP
40368  * Public License.
40369  *
40370  * A copy of this license is available in the file LICENSE in the
40371  * top-level directory of the distribution or, alternatively, at
40372  * <http://www.OpenLDAP.org/license.html>.
40373  */
40374 /* This file is automatically generated by configure; please do not edit. */
40375
40376 #include "portable.h"
40377 #include "slap.h"
40378
40379 ENDX
40380 if test "${STATIC_OVERLAYS}"; then
40381         for o in ${STATIC_OVERLAYS}; do
40382                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40383                 cat >> $OVERLAYSC << ENDX
40384 extern OV_init ${oo}_initialize;
40385 ENDX
40386         done
40387 fi
40388
40389 cat >> $OVERLAYSC << ENDX
40390
40391 OverlayInit slap_oinfo[] = {
40392 ENDX
40393
40394 if test "${STATIC_OVERLAYS}"; then
40395         for o in ${STATIC_OVERLAYS}; do
40396                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40397                 echo "    Add ${oo} ..."
40398                 cat >> $OVERLAYSC << ENDX
40399         { "${oo}", ${oo}_initialize },
40400 ENDX
40401         done
40402 fi
40403
40404         cat >> $OVERLAYSC << ENDX
40405         { NULL, NULL },
40406 };
40407
40408 /* end of generated file */
40409 ENDX
40410
40411 if test "${ol_cv_mkdep}" = no; then
40412         echo '(Do not "make depend"; we do not know how to build dependencies)'
40413 else
40414         echo 'Please run "make depend" to build dependencies'
40415 fi
40416  ;;
40417
40418   esac
40419 done # for ac_tag
40420
40421
40422 { (exit 0); exit 0; }
40423 _ACEOF
40424 chmod +x $CONFIG_STATUS
40425 ac_clean_files=$ac_clean_files_save
40426
40427
40428 # configure is writing to config.log, and then calls config.status.
40429 # config.status does its own redirection, appending to config.log.
40430 # Unfortunately, on DOS this fails, as config.log is still kept open
40431 # by configure, so config.status won't be able to write to it; its
40432 # output is simply discarded.  So we exec the FD to /dev/null,
40433 # effectively closing config.log, so it can be properly (re)opened and
40434 # appended to by config.status.  When coming back to configure, we
40435 # need to make the FD available again.
40436 if test "$no_create" != yes; then
40437   ac_cs_success=:
40438   ac_config_status_args=
40439   test "$silent" = yes &&
40440     ac_config_status_args="$ac_config_status_args --quiet"
40441   exec 5>/dev/null
40442   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40443   exec 5>>config.log
40444   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40445   # would make configure fail if this is the last instruction.
40446   $ac_cs_success || { (exit 1); exit 1; }
40447 fi
40448