]> git.sur5r.net Git - openldap/blob - configure
first round of fixes; add TCP keepalive stuff.
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.703 2009/08/18 21:48:15 ando 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_SSSVLV
922 BUILD_SYNCPROV
923 BUILD_TRANSLUCENT
924 BUILD_UNIQUE
925 BUILD_VALSORT
926 LDAP_LIBS
927 SLAPD_LIBS
928 BDB_LIBS
929 SLAPD_NDB_LIBS
930 SLAPD_NDB_INCS
931 LTHREAD_LIBS
932 LUTIL_LIBS
933 WRAP_LIBS
934 SLAPD_MODULES_CPPFLAGS
935 SLAPD_MODULES_LDFLAGS
936 SLAPD_NO_STATIC
937 SLAPD_STATIC_BACKENDS
938 SLAPD_DYNAMIC_BACKENDS
939 SLAPD_STATIC_OVERLAYS
940 SLAPD_DYNAMIC_OVERLAYS
941 PERL_CPPFLAGS
942 SLAPD_PERL_LDFLAGS
943 MOD_PERL_LDFLAGS
944 KRB4_LIBS
945 KRB5_LIBS
946 SASL_LIBS
947 TLS_LIBS
948 MODULES_LIBS
949 SLAPI_LIBS
950 LIBSLAPI
951 LIBSLAPITOOLS
952 AUTH_LIBS
953 ICU_LIBS
954 SLAPD_SLP_LIBS
955 SLAPD_GMP_LIBS
956 SLAPD_SQL_LDFLAGS
957 SLAPD_SQL_LIBS
958 SLAPD_SQL_INCLUDES
959 LTLIBOBJS'
960 ac_subst_files=''
961       ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
969 CPP'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079     eval enable_$ac_feature=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098     eval enable_$ac_feature=\$ac_optarg ;;
1099
1100   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102   | --exec | --exe | --ex)
1103     ac_prev=exec_prefix ;;
1104   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106   | --exec=* | --exe=* | --ex=*)
1107     exec_prefix=$ac_optarg ;;
1108
1109   -gas | --gas | --ga | --g)
1110     # Obsolete; use --with-gas.
1111     with_gas=yes ;;
1112
1113   -help | --help | --hel | --he | -h)
1114     ac_init_help=long ;;
1115   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116     ac_init_help=recursive ;;
1117   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118     ac_init_help=short ;;
1119
1120   -host | --host | --hos | --ho)
1121     ac_prev=host_alias ;;
1122   -host=* | --host=* | --hos=* | --ho=*)
1123     host_alias=$ac_optarg ;;
1124
1125   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126     ac_prev=htmldir ;;
1127   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128   | --ht=*)
1129     htmldir=$ac_optarg ;;
1130
1131   -includedir | --includedir | --includedi | --included | --include \
1132   | --includ | --inclu | --incl | --inc)
1133     ac_prev=includedir ;;
1134   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135   | --includ=* | --inclu=* | --incl=* | --inc=*)
1136     includedir=$ac_optarg ;;
1137
1138   -infodir | --infodir | --infodi | --infod | --info | --inf)
1139     ac_prev=infodir ;;
1140   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141     infodir=$ac_optarg ;;
1142
1143   -libdir | --libdir | --libdi | --libd)
1144     ac_prev=libdir ;;
1145   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146     libdir=$ac_optarg ;;
1147
1148   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149   | --libexe | --libex | --libe)
1150     ac_prev=libexecdir ;;
1151   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152   | --libexe=* | --libex=* | --libe=*)
1153     libexecdir=$ac_optarg ;;
1154
1155   -localedir | --localedir | --localedi | --localed | --locale)
1156     ac_prev=localedir ;;
1157   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158     localedir=$ac_optarg ;;
1159
1160   -localstatedir | --localstatedir | --localstatedi | --localstated \
1161   | --localstate | --localstat | --localsta | --localst | --locals)
1162     ac_prev=localstatedir ;;
1163   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165     localstatedir=$ac_optarg ;;
1166
1167   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168     ac_prev=mandir ;;
1169   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170     mandir=$ac_optarg ;;
1171
1172   -nfp | --nfp | --nf)
1173     # Obsolete; use --without-fp.
1174     with_fp=no ;;
1175
1176   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177   | --no-cr | --no-c | -n)
1178     no_create=yes ;;
1179
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     no_recursion=yes ;;
1183
1184   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186   | --oldin | --oldi | --old | --ol | --o)
1187     ac_prev=oldincludedir ;;
1188   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191     oldincludedir=$ac_optarg ;;
1192
1193   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194     ac_prev=prefix ;;
1195   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196     prefix=$ac_optarg ;;
1197
1198   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199   | --program-pre | --program-pr | --program-p)
1200     ac_prev=program_prefix ;;
1201   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203     program_prefix=$ac_optarg ;;
1204
1205   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206   | --program-suf | --program-su | --program-s)
1207     ac_prev=program_suffix ;;
1208   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210     program_suffix=$ac_optarg ;;
1211
1212   -program-transform-name | --program-transform-name \
1213   | --program-transform-nam | --program-transform-na \
1214   | --program-transform-n | --program-transform- \
1215   | --program-transform | --program-transfor \
1216   | --program-transfo | --program-transf \
1217   | --program-trans | --program-tran \
1218   | --progr-tra | --program-tr | --program-t)
1219     ac_prev=program_transform_name ;;
1220   -program-transform-name=* | --program-transform-name=* \
1221   | --program-transform-nam=* | --program-transform-na=* \
1222   | --program-transform-n=* | --program-transform-=* \
1223   | --program-transform=* | --program-transfor=* \
1224   | --program-transfo=* | --program-transf=* \
1225   | --program-trans=* | --program-tran=* \
1226   | --progr-tra=* | --program-tr=* | --program-t=*)
1227     program_transform_name=$ac_optarg ;;
1228
1229   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230     ac_prev=pdfdir ;;
1231   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232     pdfdir=$ac_optarg ;;
1233
1234   -psdir | --psdir | --psdi | --psd | --ps)
1235     ac_prev=psdir ;;
1236   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237     psdir=$ac_optarg ;;
1238
1239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240   | -silent | --silent | --silen | --sile | --sil)
1241     silent=yes ;;
1242
1243   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244     ac_prev=sbindir ;;
1245   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246   | --sbi=* | --sb=*)
1247     sbindir=$ac_optarg ;;
1248
1249   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251   | --sharedst | --shareds | --shared | --share | --shar \
1252   | --sha | --sh)
1253     ac_prev=sharedstatedir ;;
1254   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257   | --sha=* | --sh=*)
1258     sharedstatedir=$ac_optarg ;;
1259
1260   -site | --site | --sit)
1261     ac_prev=site ;;
1262   -site=* | --site=* | --sit=*)
1263     site=$ac_optarg ;;
1264
1265   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266     ac_prev=srcdir ;;
1267   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268     srcdir=$ac_optarg ;;
1269
1270   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271   | --syscon | --sysco | --sysc | --sys | --sy)
1272     ac_prev=sysconfdir ;;
1273   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275     sysconfdir=$ac_optarg ;;
1276
1277   -target | --target | --targe | --targ | --tar | --ta | --t)
1278     ac_prev=target_alias ;;
1279   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280     target_alias=$ac_optarg ;;
1281
1282   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283     verbose=yes ;;
1284
1285   -version | --version | --versio | --versi | --vers | -V)
1286     ac_init_version=: ;;
1287
1288   -with-* | --with-*)
1289     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295     eval with_$ac_package=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304     eval with_$ac_package=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 # Be sure to have absolute directory names.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { echo "$as_me: error: Working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$0" : 'X\(//\)[^/]' \| \
1411          X"$0" : 'X\(//\)$' \| \
1412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures this package to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR           user executables [EPREFIX/bin]
1507   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR       program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR           object code libraries [EPREFIX/lib]
1513   --includedir=DIR       C header files [PREFIX/include]
1514   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR          info documentation [DATAROOTDIR/info]
1518   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR           man documentation [DATAROOTDIR/man]
1520   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1521   --htmldir=DIR          html documentation [DOCDIR]
1522   --dvidir=DIR           dvi documentation [DOCDIR]
1523   --pdfdir=DIR           pdf documentation [DOCDIR]
1524   --psdir=DIR            ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 Program names:
1530   --program-prefix=PREFIX            prepend PREFIX to installed program names
1531   --program-suffix=SUFFIX            append SUFFIX to installed program names
1532   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537   --target=TARGET   configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --enable-debug          enable debugging no|yes|traditional [yes]
1549   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1550   --enable-syslog         enable syslog support [auto]
1551   --enable-proctitle      enable proctitle support [yes]
1552   --enable-ipv6           enable IPv6 support [auto]
1553   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1554
1555 SLAPD (Standalone LDAP Daemon) Options:
1556   --enable-slapd          enable building slapd [yes]
1557     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1558     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1559     --enable-cleartext    enable cleartext passwords [yes]
1560     --enable-crypt        enable crypt(3) passwords [no]
1561     --enable-lmpasswd     enable LAN Manager passwords [no]
1562     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1563     --enable-modules      enable dynamic module support [no]
1564     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1565     --enable-rlookups     enable reverse lookups of client hostnames [no]
1566     --enable-slapi        enable SLAPI support (experimental) [no]
1567     --enable-slp          enable SLPv2 support [no]
1568     --enable-wrappers     enable tcp wrapper support [no]
1569
1570 SLAPD Backend Options:
1571     --enable-backends     enable all available backends no|yes|mod
1572     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1573     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1574     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1575     --enable-ldap         enable ldap backend no|yes|mod [no]
1576     --enable-meta         enable metadirectory backend no|yes|mod [no]
1577     --enable-monitor      enable monitor backend no|yes|mod [yes]
1578     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1579     --enable-null         enable null backend no|yes|mod [no]
1580     --enable-passwd       enable passwd backend no|yes|mod [no]
1581     --enable-perl         enable perl backend no|yes|mod [no]
1582     --enable-relay        enable relay backend no|yes|mod [yes]
1583     --enable-shell        enable shell backend no|yes|mod [no]
1584     --enable-sock         enable sock backend no|yes|mod [no]
1585     --enable-sql          enable sql backend no|yes|mod [no]
1586
1587 SLAPD Overlay Options:
1588     --enable-overlays     enable all available overlays no|yes|mod
1589     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1590     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1591     --enable-collect      Collect overlay no|yes|mod [no]
1592     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1593     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1594     --enable-deref        Dereference overlay no|yes|mod [no]
1595     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1596     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1597     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1598     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1599     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1600     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1601     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1602     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1603     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1604     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1605     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1606     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1607     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1608     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1609
1610 Library Generation & Linking Options
1611   --enable-static[=PKGS]  build static libraries [default=yes]
1612   --enable-shared[=PKGS]  build shared libraries [default=yes]
1613   --enable-fast-install[=PKGS]
1614                           optimize for fast installation [default=yes]
1615   --disable-dependency-tracking  speeds up one-time build
1616   --enable-dependency-tracking   do not reject slow dependency extractors
1617   --disable-libtool-lock  avoid locking (might break parallel builds)
1618
1619 Optional Packages:
1620   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1621   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1622   --with-subdir=DIR       change default subdirectory used for installs
1623   --with-cyrus-sasl       with Cyrus SASL support [auto]
1624   --with-fetch            with fetch(3) URL support [auto]
1625   --with-threads          with threads [auto]
1626   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1627   --with-yielding-select  with implicitly yielding select [auto]
1628   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1629   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1630   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631   --with-pic              try to use only PIC/non-PIC objects [default=use
1632                           both]
1633   --with-tags[=TAGS]      include additional configurations [automatic]
1634
1635 See INSTALL file for further details.
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   CPP         C preprocessor
1646
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1649
1650 _ACEOF
1651 ac_status=$?
1652 fi
1653
1654 if test "$ac_init_help" = "recursive"; then
1655   # If there are subdirs, report their specific --help.
1656   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657     test -d "$ac_dir" || continue
1658     ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664   # A ".." for each directory in $ac_dir_suffix.
1665   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666   case $ac_top_builddir_sub in
1667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669   esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677   .)  # We are building in place.
1678     ac_srcdir=.
1679     ac_top_srcdir=$ac_top_builddir_sub
1680     ac_abs_top_srcdir=$ac_pwd ;;
1681   [\\/]* | ?:[\\/]* )  # Absolute name.
1682     ac_srcdir=$srcdir$ac_dir_suffix;
1683     ac_top_srcdir=$srcdir
1684     ac_abs_top_srcdir=$srcdir ;;
1685   *) # Relative name.
1686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687     ac_top_srcdir=$ac_top_build_prefix$srcdir
1688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692     cd "$ac_dir" || { ac_status=$?; continue; }
1693     # Check for guested configure.
1694     if test -f "$ac_srcdir/configure.gnu"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697     elif test -f "$ac_srcdir/configure"; then
1698       echo &&
1699       $SHELL "$ac_srcdir/configure" --help=recursive
1700     else
1701       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702     fi || ac_status=$?
1703     cd "$ac_pwd" || { ac_status=$?; break; }
1704   done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709   cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.61
1712
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717
1718 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1719 Restrictions apply, see COPYRIGHT and LICENSE files.
1720 _ACEOF
1721   exit
1722 fi
1723 cat >config.log <<_ACEOF
1724 This file contains any messages produced by compilers while
1725 running configure, to aid debugging if configure makes a mistake.
1726
1727 It was created by $as_me, which was
1728 generated by GNU Autoconf 2.61.  Invocation command line was
1729
1730   $ $0 $@
1731
1732 _ACEOF
1733 exec 5>>config.log
1734 {
1735 cat <<_ASUNAME
1736 ## --------- ##
1737 ## Platform. ##
1738 ## --------- ##
1739
1740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757 _ASUNAME
1758
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   echo "PATH: $as_dir"
1765 done
1766 IFS=$as_save_IFS
1767
1768 } >&5
1769
1770 cat >&5 <<_ACEOF
1771
1772
1773 ## ----------- ##
1774 ## Core tests. ##
1775 ## ----------- ##
1776
1777 _ACEOF
1778
1779
1780 # Keep a trace of the command line.
1781 # Strip out --no-create and --no-recursion so they do not pile up.
1782 # Strip out --silent because we don't want to record it for future runs.
1783 # Also quote any args containing shell meta-characters.
1784 # Make two passes to allow for proper duplicate-argument suppression.
1785 ac_configure_args=
1786 ac_configure_args0=
1787 ac_configure_args1=
1788 ac_must_keep_next=false
1789 for ac_pass in 1 2
1790 do
1791   for ac_arg
1792   do
1793     case $ac_arg in
1794     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796     | -silent | --silent | --silen | --sile | --sil)
1797       continue ;;
1798     *\'*)
1799       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800     esac
1801     case $ac_pass in
1802     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803     2)
1804       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805       if test $ac_must_keep_next = true; then
1806         ac_must_keep_next=false # Got value, back to normal.
1807       else
1808         case $ac_arg in
1809           *=* | --config-cache | -C | -disable-* | --disable-* \
1810           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812           | -with-* | --with-* | -without-* | --without-* | --x)
1813             case "$ac_configure_args0 " in
1814               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815             esac
1816             ;;
1817           -* ) ac_must_keep_next=true ;;
1818         esac
1819       fi
1820       ac_configure_args="$ac_configure_args '$ac_arg'"
1821       ;;
1822     esac
1823   done
1824 done
1825 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827
1828 # When interrupted or exit'd, cleanup temporary files, and complete
1829 # config.log.  We remove comments because anyway the quotes in there
1830 # would cause problems or look ugly.
1831 # WARNING: Use '\'' to represent an apostrophe within the trap.
1832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833 trap 'exit_status=$?
1834   # Save into config.log some information that might help in debugging.
1835   {
1836     echo
1837
1838     cat <<\_ASBOX
1839 ## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##
1842 _ASBOX
1843     echo
1844     # The following way of writing the cache mishandles newlines in values,
1845 (
1846   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847     eval ac_val=\$$ac_var
1848     case $ac_val in #(
1849     *${as_nl}*)
1850       case $ac_var in #(
1851       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853       esac
1854       case $ac_var in #(
1855       _ | IFS | as_nl) ;; #(
1856       *) $as_unset $ac_var ;;
1857       esac ;;
1858     esac
1859   done
1860   (set) 2>&1 |
1861     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862     *${as_nl}ac_space=\ *)
1863       sed -n \
1864         "s/'\''/'\''\\\\'\'''\''/g;
1865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866       ;; #(
1867     *)
1868       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869       ;;
1870     esac |
1871     sort
1872 )
1873     echo
1874
1875     cat <<\_ASBOX
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1879 _ASBOX
1880     echo
1881     for ac_var in $ac_subst_vars
1882     do
1883       eval ac_val=\$$ac_var
1884       case $ac_val in
1885       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886       esac
1887       echo "$ac_var='\''$ac_val'\''"
1888     done | sort
1889     echo
1890
1891     if test -n "$ac_subst_files"; then
1892       cat <<\_ASBOX
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1896 _ASBOX
1897       echo
1898       for ac_var in $ac_subst_files
1899       do
1900         eval ac_val=\$$ac_var
1901         case $ac_val in
1902         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903         esac
1904         echo "$ac_var='\''$ac_val'\''"
1905       done | sort
1906       echo
1907     fi
1908
1909     if test -s confdefs.h; then
1910       cat <<\_ASBOX
1911 ## ----------- ##
1912 ## confdefs.h. ##
1913 ## ----------- ##
1914 _ASBOX
1915       echo
1916       cat confdefs.h
1917       echo
1918     fi
1919     test "$ac_signal" != 0 &&
1920       echo "$as_me: caught signal $ac_signal"
1921     echo "$as_me: exit $exit_status"
1922   } >&5
1923   rm -f core *.core core.conftest.* &&
1924     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925     exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 # Predefined preprocessor variables.
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 _ACEOF
1960
1961
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer explicitly selected file to automatically selected ones.
1964 if test -n "$CONFIG_SITE"; then
1965   set x "$CONFIG_SITE"
1966 elif test "x$prefix" != xNONE; then
1967   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1968 else
1969   set x "$ac_default_prefix/share/config.site" \
1970         "$ac_default_prefix/etc/config.site"
1971 fi
1972 shift
1973 for ac_site_file
1974 do
1975   if test -r "$ac_site_file"; then
1976     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 echo "$as_me: loading site script $ac_site_file" >&6;}
1978     sed 's/^/| /' "$ac_site_file" >&5
1979     . "$ac_site_file"
1980   fi
1981 done
1982
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989   eval ac_new_set=\$ac_env_${ac_var}_set
1990   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991   eval ac_new_val=\$ac_env_${ac_var}_value
1992   case $ac_old_set,$ac_new_set in
1993     set,)
1994       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996       ac_cache_corrupted=: ;;
1997     ,set)
1998       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000       ac_cache_corrupted=: ;;
2001     ,);;
2002     *)
2003       if test "x$ac_old_val" != "x$ac_new_val"; then
2004         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2007 echo "$as_me:   former value:  $ac_old_val" >&2;}
2008         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2009 echo "$as_me:   current value: $ac_new_val" >&2;}
2010         ac_cache_corrupted=:
2011       fi;;
2012   esac
2013   # Pass precious variables to config.status.
2014   if test "$ac_new_set" = set; then
2015     case $ac_new_val in
2016     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017     *) ac_arg=$ac_var=$ac_new_val ;;
2018     esac
2019     case " $ac_configure_args " in
2020       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2021       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022     esac
2023   fi
2024 done
2025 if $ac_cache_corrupted; then
2026   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2081
2082 ac_aux_dir=
2083 for ac_dir in build "$srcdir"/build; do
2084   if test -f "$ac_dir/install-sh"; then
2085     ac_aux_dir=$ac_dir
2086     ac_install_sh="$ac_aux_dir/install-sh -c"
2087     break
2088   elif test -f "$ac_dir/install.sh"; then
2089     ac_aux_dir=$ac_dir
2090     ac_install_sh="$ac_aux_dir/install.sh -c"
2091     break
2092   elif test -f "$ac_dir/shtool"; then
2093     ac_aux_dir=$ac_dir
2094     ac_install_sh="$ac_aux_dir/shtool install -c"
2095     break
2096   fi
2097 done
2098 if test -z "$ac_aux_dir"; then
2099   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2111
2112
2113 eval `$ac_aux_dir/version.sh`
2114 if test -z "$OL_STRING"; then
2115         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2116 echo "$as_me: error: could not determine version" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2121         ac_cv_shtool="$ac_aux_dir/shtool"
2122 else
2123         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2124 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127
2128 SHTOOL="$ac_cv_shtool"
2129
2130 TB="" TN=""
2131 if test -t 1; then
2132         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2133         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2134 fi
2135
2136 OPENLDAP_CVS=""
2137 if test -d $ac_aux_dir/CVS; then
2138         OPENLDAP_CVS="(from CVS sources) "
2139 fi
2140
2141 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2142
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160    { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165
2166 fi
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2170 *-*-*) ;;
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173    { (exit 1); exit 1; }; };;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test "x$host_alias" = x; then
2195   ac_cv_host=$ac_cv_build
2196 else
2197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 fi
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 case $ac_cv_host in
2207 *-*-*) ;;
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210    { (exit 1); exit 1; }; };;
2211 esac
2212 host=$ac_cv_host
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_host
2215 shift
2216 host_cpu=$1
2217 host_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 host_os=$*
2222 IFS=$ac_save_IFS
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224
2225
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test "x$target_alias" = x; then
2232   ac_cv_target=$ac_cv_host
2233 else
2234   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 fi
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2244 *-*-*) ;;
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247    { (exit 1); exit 1; }; };;
2248 esac
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_target
2252 shift
2253 target_cpu=$1
2254 target_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 target_os=$*
2259 IFS=$ac_save_IFS
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261
2262
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266   test "$program_prefix$program_suffix$program_transform_name" = \
2267     NONENONEs,x,x, &&
2268   program_prefix=${target_alias}-
2269
2270 am__api_version="1.9"
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   # Account for people who put trailing slashes in PATH elements.
2296 case $as_dir/ in
2297   ./ | .// | /cC/* | \
2298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2300   /usr/ucb/* ) ;;
2301   *)
2302     # OSF1 and SCO ODT 3.0 have their own names for install.
2303     # Don't use installbsd from OSF since it installs stuff as root
2304     # by default.
2305     for ac_prog in ginstall scoinst install; do
2306       for ac_exec_ext in '' $ac_executable_extensions; do
2307         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2308           if test $ac_prog = install &&
2309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310             # AIX install.  It has an incompatible calling convention.
2311             :
2312           elif test $ac_prog = install &&
2313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314             # program-specific install script used by HP pwplus--don't use.
2315             :
2316           else
2317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318             break 3
2319           fi
2320         fi
2321       done
2322     done
2323     ;;
2324 esac
2325 done
2326 IFS=$as_save_IFS
2327
2328
2329 fi
2330   if test "${ac_cv_path_install+set}" = set; then
2331     INSTALL=$ac_cv_path_install
2332   else
2333     # As a last resort, use the slow shell script.  Don't cache a
2334     # value for INSTALL within a source directory, because that will
2335     # break other packages using the cache if that directory is
2336     # removed, or if the value is a relative name.
2337     INSTALL=$ac_install_sh
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2341 echo "${ECHO_T}$INSTALL" >&6; }
2342
2343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344 # It thinks the first close brace ends the variable substitution.
2345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346
2347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348
2349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350
2351 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2352 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2353 # Just in case
2354 sleep 1
2355 echo timestamp > conftest.file
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments.  Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2360 # directory).
2361 if (
2362    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2363    if test "$*" = "X"; then
2364       # -L didn't work.
2365       set X `ls -t $srcdir/configure conftest.file`
2366    fi
2367    rm -f conftest.file
2368    if test "$*" != "X $srcdir/configure conftest.file" \
2369       && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371       # If neither matched, then we have a broken ls.  This can happen
2372       # if, for instance, CONFIG_SHELL is bash and it inherits a
2373       # broken ls alias from the environment.  This has actually
2374       # happened.  Such a system could not be considered "sane".
2375       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" >&5
2377 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2378 alias in your environment" >&2;}
2379    { (exit 1); exit 1; }; }
2380    fi
2381
2382    test "$2" = conftest.file
2383    )
2384 then
2385    # Ok.
2386    :
2387 else
2388    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2389 Check your system clock" >&5
2390 echo "$as_me: error: newly created file is older than distributed files!
2391 Check your system clock" >&2;}
2392    { (exit 1); exit 1; }; }
2393 fi
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.  echo might interpret backslashes.
2402 # By default was `s,x,x', remove it if useless.
2403 cat <<\_ACEOF >conftest.sed
2404 s/[\\$]/&&/g;s/;s,x,x,$//
2405 _ACEOF
2406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2407 rm -f conftest.sed
2408
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2411
2412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415   am_missing_run="$MISSING --run "
2416 else
2417   am_missing_run=
2418   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2419 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 fi
2421
2422 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2423   # We used to keeping the `.' as first argument, in order to
2424   # allow $(mkdir_p) to be used without argument.  As in
2425   #   $(mkdir_p) $(somedir)
2426   # where $(somedir) is conditionally defined.  However this is wrong
2427   # for two reasons:
2428   #  1. if the package is installed by a user who cannot write `.'
2429   #     make install will fail,
2430   #  2. the above comment should most certainly read
2431   #     $(mkdir_p) $(DESTDIR)$(somedir)
2432   #     so it does not work when $(somedir) is undefined and
2433   #     $(DESTDIR) is not.
2434   #  To support the latter case, we have to write
2435   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2436   #  so the `.' trick is pointless.
2437   mkdir_p='mkdir -p --'
2438 else
2439   # On NextStep and OpenStep, the `mkdir' command does not
2440   # recognize any option.  It will interpret all options as
2441   # directories to create, and then abort because `.' already
2442   # exists.
2443   for d in ./-p ./--version;
2444   do
2445     test -d $d && rmdir $d
2446   done
2447   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2448   if test -f "$ac_aux_dir/mkinstalldirs"; then
2449     mkdir_p='$(mkinstalldirs)'
2450   else
2451     mkdir_p='$(install_sh) -d'
2452   fi
2453 fi
2454
2455 for ac_prog in gawk mawk nawk awk
2456 do
2457   # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$AWK"; then
2465   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_AWK="$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 AWK=$ac_cv_prog_AWK
2485 if test -n "$AWK"; then
2486   { echo "$as_me:$LINENO: result: $AWK" >&5
2487 echo "${ECHO_T}$AWK" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   test -n "$AWK" && break
2495 done
2496
2497 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2499 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.make <<\_ACEOF
2504 SHELL = /bin/sh
2505 all:
2506         @echo '@@@%%%=$(MAKE)=@@@%%%'
2507 _ACEOF
2508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2510   *@@@%%%=?*=@@@%%%*)
2511     eval ac_cv_prog_make_${ac_make}_set=yes;;
2512   *)
2513     eval ac_cv_prog_make_${ac_make}_set=no;;
2514 esac
2515 rm -f conftest.make
2516 fi
2517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2518   { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2520   SET_MAKE=
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524   SET_MAKE="MAKE=${MAKE-make}"
2525 fi
2526
2527 rm -rf .tst 2>/dev/null
2528 mkdir .tst 2>/dev/null
2529 if test -d .tst; then
2530   am__leading_dot=.
2531 else
2532   am__leading_dot=_
2533 fi
2534 rmdir .tst 2>/dev/null
2535
2536 # test to see if srcdir already configured
2537 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2538    test -f $srcdir/config.status; then
2539   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541    { (exit 1); exit 1; }; }
2542 fi
2543
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546   if (cygpath --version) >/dev/null 2>/dev/null; then
2547     CYGPATH_W='cygpath -w'
2548   else
2549     CYGPATH_W=echo
2550   fi
2551 fi
2552
2553
2554 # Define the identity of the package.
2555  PACKAGE=$OL_PACKAGE
2556  VERSION=$OL_VERSION
2557
2558
2559 # Some tools Automake needs.
2560
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562
2563
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565
2566
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568
2569
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571
2572
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2574
2575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2576
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'.  However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582   if test -n "$ac_tool_prefix"; then
2583   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_STRIP+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$STRIP"; then
2591   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612   { echo "$as_me:$LINENO: result: $STRIP" >&5
2613 echo "${ECHO_T}$STRIP" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_STRIP"; then
2622   ac_ct_STRIP=$STRIP
2623   # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$ac_ct_STRIP"; then
2631   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_ac_ct_STRIP="strip"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2653 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659   if test "x$ac_ct_STRIP" = x; then
2660     STRIP=":"
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet.  If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672     STRIP=$ac_ct_STRIP
2673   fi
2674 else
2675   STRIP="$ac_cv_prog_STRIP"
2676 fi
2677
2678 fi
2679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2680
2681 # We need awk for the "check" target.  The system "awk" is bad on
2682 # some platforms.
2683 # Always define AMTAR for backward compatibility.
2684
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2686
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2688
2689
2690
2691
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define OPENLDAP_PACKAGE "$PACKAGE"
2695 _ACEOF
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define OPENLDAP_VERSION "$VERSION"
2700 _ACEOF
2701
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define LDAP_VENDOR_VERSION $OL_API_INC
2706 _ACEOF
2707
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2711 _ACEOF
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2716 _ACEOF
2717
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2721 _ACEOF
2722
2723
2724 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2725
2726 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2727
2728 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2729
2730
2731
2732
2733
2734
2735
2736 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2737
2738 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2739
2740 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2741
2742
2743 { echo "$as_me:$LINENO: checking configure arguments" >&5
2744 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2745
2746
2747 top_builddir=`pwd`
2748
2749 ldap_subdir="/openldap"
2750
2751
2752 # Check whether --with-subdir was given.
2753 if test "${with_subdir+set}" = set; then
2754   withval=$with_subdir; case "$withval" in
2755         no) ldap_subdir=""
2756                 ;;
2757         yes)
2758                 ;;
2759         /*|\\*)
2760                 ldap_subdir="$withval"
2761                 ;;
2762         *)
2763                 ldap_subdir="/$withval"
2764                 ;;
2765 esac
2766
2767 fi
2768
2769
2770 # OpenLDAP --enable-debug
2771
2772         # Check whether --enable-debug was given.
2773 if test "${enable_debug+set}" = set; then
2774   enableval=$enable_debug;
2775         ol_arg=invalid
2776         for ol_val in no yes traditional ; do
2777                 if test "$enableval" = "$ol_val" ; then
2778                         ol_arg="$ol_val"
2779                 fi
2780         done
2781         if test "$ol_arg" = "invalid" ; then
2782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2783 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2784    { (exit 1); exit 1; }; }
2785         fi
2786         ol_enable_debug="$ol_arg"
2787
2788 else
2789         ol_enable_debug=yes
2790 fi
2791
2792 # end --enable-debug
2793 # OpenLDAP --enable-dynamic
2794
2795         # Check whether --enable-dynamic was given.
2796 if test "${enable_dynamic+set}" = set; then
2797   enableval=$enable_dynamic;
2798         ol_arg=invalid
2799         for ol_val in auto yes no ; do
2800                 if test "$enableval" = "$ol_val" ; then
2801                         ol_arg="$ol_val"
2802                 fi
2803         done
2804         if test "$ol_arg" = "invalid" ; then
2805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_dynamic="$ol_arg"
2810
2811 else
2812         ol_enable_dynamic=no
2813 fi
2814
2815 # end --enable-dynamic
2816 # OpenLDAP --enable-syslog
2817
2818         # Check whether --enable-syslog was given.
2819 if test "${enable_syslog+set}" = set; then
2820   enableval=$enable_syslog;
2821         ol_arg=invalid
2822         for ol_val in auto yes no ; do
2823                 if test "$enableval" = "$ol_val" ; then
2824                         ol_arg="$ol_val"
2825                 fi
2826         done
2827         if test "$ol_arg" = "invalid" ; then
2828                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2830    { (exit 1); exit 1; }; }
2831         fi
2832         ol_enable_syslog="$ol_arg"
2833
2834 else
2835         ol_enable_syslog=auto
2836 fi
2837
2838 # end --enable-syslog
2839 # OpenLDAP --enable-proctitle
2840
2841         # Check whether --enable-proctitle was given.
2842 if test "${enable_proctitle+set}" = set; then
2843   enableval=$enable_proctitle;
2844         ol_arg=invalid
2845         for ol_val in auto yes no ; do
2846                 if test "$enableval" = "$ol_val" ; then
2847                         ol_arg="$ol_val"
2848                 fi
2849         done
2850         if test "$ol_arg" = "invalid" ; then
2851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2853    { (exit 1); exit 1; }; }
2854         fi
2855         ol_enable_proctitle="$ol_arg"
2856
2857 else
2858         ol_enable_proctitle=yes
2859 fi
2860
2861 # end --enable-proctitle
2862 ol_enable_referrals=${ol_enable_referrals-no}
2863 # OpenLDAP --enable-ipv6
2864
2865         # Check whether --enable-ipv6 was given.
2866 if test "${enable_ipv6+set}" = set; then
2867   enableval=$enable_ipv6;
2868         ol_arg=invalid
2869         for ol_val in auto yes no ; do
2870                 if test "$enableval" = "$ol_val" ; then
2871                         ol_arg="$ol_val"
2872                 fi
2873         done
2874         if test "$ol_arg" = "invalid" ; then
2875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2877    { (exit 1); exit 1; }; }
2878         fi
2879         ol_enable_ipv6="$ol_arg"
2880
2881 else
2882         ol_enable_ipv6=auto
2883 fi
2884
2885 # end --enable-ipv6
2886 # OpenLDAP --enable-local
2887
2888         # Check whether --enable-local was given.
2889 if test "${enable_local+set}" = set; then
2890   enableval=$enable_local;
2891         ol_arg=invalid
2892         for ol_val in auto yes no ; do
2893                 if test "$enableval" = "$ol_val" ; then
2894                         ol_arg="$ol_val"
2895                 fi
2896         done
2897         if test "$ol_arg" = "invalid" ; then
2898                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2900    { (exit 1); exit 1; }; }
2901         fi
2902         ol_enable_local="$ol_arg"
2903
2904 else
2905         ol_enable_local=auto
2906 fi
2907
2908 # end --enable-local
2909
2910 # OpenLDAP --with-cyrus_sasl
2911
2912 # Check whether --with-cyrus_sasl was given.
2913 if test "${with_cyrus_sasl+set}" = set; then
2914   withval=$with_cyrus_sasl;
2915         ol_arg=invalid
2916         for ol_val in auto yes no  ; do
2917                 if test "$withval" = "$ol_val" ; then
2918                         ol_arg="$ol_val"
2919                 fi
2920         done
2921         if test "$ol_arg" = "invalid" ; then
2922                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2923 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2924    { (exit 1); exit 1; }; }
2925         fi
2926         ol_with_cyrus_sasl="$ol_arg"
2927
2928 else
2929         ol_with_cyrus_sasl="auto"
2930 fi
2931 # end --with-cyrus_sasl
2932
2933 # OpenLDAP --with-fetch
2934
2935 # Check whether --with-fetch was given.
2936 if test "${with_fetch+set}" = set; then
2937   withval=$with_fetch;
2938         ol_arg=invalid
2939         for ol_val in auto yes no  ; do
2940                 if test "$withval" = "$ol_val" ; then
2941                         ol_arg="$ol_val"
2942                 fi
2943         done
2944         if test "$ol_arg" = "invalid" ; then
2945                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2946 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_with_fetch="$ol_arg"
2950
2951 else
2952         ol_with_fetch="auto"
2953 fi
2954 # end --with-fetch
2955
2956 # OpenLDAP --with-threads
2957
2958 # Check whether --with-threads was given.
2959 if test "${with_threads+set}" = set; then
2960   withval=$with_threads;
2961         ol_arg=invalid
2962         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2963                 if test "$withval" = "$ol_val" ; then
2964                         ol_arg="$ol_val"
2965                 fi
2966         done
2967         if test "$ol_arg" = "invalid" ; then
2968                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2969 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2970    { (exit 1); exit 1; }; }
2971         fi
2972         ol_with_threads="$ol_arg"
2973
2974 else
2975         ol_with_threads="auto"
2976 fi
2977 # end --with-threads
2978
2979 # OpenLDAP --with-tls
2980
2981 # Check whether --with-tls was given.
2982 if test "${with_tls+set}" = set; then
2983   withval=$with_tls;
2984         ol_arg=invalid
2985         for ol_val in auto openssl gnutls moznss yes no  ; do
2986                 if test "$withval" = "$ol_val" ; then
2987                         ol_arg="$ol_val"
2988                 fi
2989         done
2990         if test "$ol_arg" = "invalid" ; then
2991                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2992 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2993    { (exit 1); exit 1; }; }
2994         fi
2995         ol_with_tls="$ol_arg"
2996
2997 else
2998         ol_with_tls="auto"
2999 fi
3000 # end --with-tls
3001
3002 # OpenLDAP --with-yielding_select
3003
3004 # Check whether --with-yielding_select was given.
3005 if test "${with_yielding_select+set}" = set; then
3006   withval=$with_yielding_select;
3007         ol_arg=invalid
3008         for ol_val in auto yes no manual  ; do
3009                 if test "$withval" = "$ol_val" ; then
3010                         ol_arg="$ol_val"
3011                 fi
3012         done
3013         if test "$ol_arg" = "invalid" ; then
3014                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3015 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3016    { (exit 1); exit 1; }; }
3017         fi
3018         ol_with_yielding_select="$ol_arg"
3019
3020 else
3021         ol_with_yielding_select="auto"
3022 fi
3023 # end --with-yielding_select
3024
3025 # OpenLDAP --with-mp
3026
3027 # Check whether --with-mp was given.
3028 if test "${with_mp+set}" = set; then
3029   withval=$with_mp;
3030         ol_arg=invalid
3031         for ol_val in auto longlong long bignum gmp yes no ; do
3032                 if test "$withval" = "$ol_val" ; then
3033                         ol_arg="$ol_val"
3034                 fi
3035         done
3036         if test "$ol_arg" = "invalid" ; then
3037                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3038 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3039    { (exit 1); exit 1; }; }
3040         fi
3041         ol_with_mp="$ol_arg"
3042
3043 else
3044         ol_with_mp="auto"
3045 fi
3046 # end --with-mp
3047
3048 # OpenLDAP --with-odbc
3049
3050 # Check whether --with-odbc was given.
3051 if test "${with_odbc+set}" = set; then
3052   withval=$with_odbc;
3053         ol_arg=invalid
3054         for ol_val in auto iodbc unixodbc odbc32  ; do
3055                 if test "$withval" = "$ol_val" ; then
3056                         ol_arg="$ol_val"
3057                 fi
3058         done
3059         if test "$ol_arg" = "invalid" ; then
3060                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3061 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3062    { (exit 1); exit 1; }; }
3063         fi
3064         ol_with_odbc="$ol_arg"
3065
3066 else
3067         ol_with_odbc="auto"
3068 fi
3069 # end --with-odbc
3070
3071
3072
3073 # Check whether --enable-xxslapdoptions was given.
3074 if test "${enable_xxslapdoptions+set}" = set; then
3075   enableval=$enable_xxslapdoptions;
3076 fi
3077
3078 # OpenLDAP --enable-slapd
3079
3080         # Check whether --enable-slapd was given.
3081 if test "${enable_slapd+set}" = set; then
3082   enableval=$enable_slapd;
3083         ol_arg=invalid
3084         for ol_val in auto yes no ; do
3085                 if test "$enableval" = "$ol_val" ; then
3086                         ol_arg="$ol_val"
3087                 fi
3088         done
3089         if test "$ol_arg" = "invalid" ; then
3090                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3092    { (exit 1); exit 1; }; }
3093         fi
3094         ol_enable_slapd="$ol_arg"
3095
3096 else
3097         ol_enable_slapd=yes
3098 fi
3099
3100 # end --enable-slapd
3101 # OpenLDAP --enable-dynacl
3102
3103         # Check whether --enable-dynacl was given.
3104 if test "${enable_dynacl+set}" = set; then
3105   enableval=$enable_dynacl;
3106         ol_arg=invalid
3107         for ol_val in auto yes no ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_dynacl="$ol_arg"
3118
3119 else
3120         ol_enable_dynacl=no
3121 fi
3122
3123 # end --enable-dynacl
3124 # OpenLDAP --enable-aci
3125
3126         # Check whether --enable-aci was given.
3127 if test "${enable_aci+set}" = set; then
3128   enableval=$enable_aci;
3129         ol_arg=invalid
3130         for ol_val in no yes mod ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_aci="$ol_arg"
3141
3142 else
3143         ol_enable_aci=no
3144 fi
3145
3146 # end --enable-aci
3147 # OpenLDAP --enable-cleartext
3148
3149         # Check whether --enable-cleartext was given.
3150 if test "${enable_cleartext+set}" = set; then
3151   enableval=$enable_cleartext;
3152         ol_arg=invalid
3153         for ol_val in auto yes no ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_cleartext="$ol_arg"
3164
3165 else
3166         ol_enable_cleartext=yes
3167 fi
3168
3169 # end --enable-cleartext
3170 # OpenLDAP --enable-crypt
3171
3172         # Check whether --enable-crypt was given.
3173 if test "${enable_crypt+set}" = set; then
3174   enableval=$enable_crypt;
3175         ol_arg=invalid
3176         for ol_val in auto yes no ; do
3177                 if test "$enableval" = "$ol_val" ; then
3178                         ol_arg="$ol_val"
3179                 fi
3180         done
3181         if test "$ol_arg" = "invalid" ; then
3182                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3184    { (exit 1); exit 1; }; }
3185         fi
3186         ol_enable_crypt="$ol_arg"
3187
3188 else
3189         ol_enable_crypt=no
3190 fi
3191
3192 # end --enable-crypt
3193 # OpenLDAP --enable-lmpasswd
3194
3195         # Check whether --enable-lmpasswd was given.
3196 if test "${enable_lmpasswd+set}" = set; then
3197   enableval=$enable_lmpasswd;
3198         ol_arg=invalid
3199         for ol_val in auto yes no ; do
3200                 if test "$enableval" = "$ol_val" ; then
3201                         ol_arg="$ol_val"
3202                 fi
3203         done
3204         if test "$ol_arg" = "invalid" ; then
3205                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_lmpasswd="$ol_arg"
3210
3211 else
3212         ol_enable_lmpasswd=no
3213 fi
3214
3215 # end --enable-lmpasswd
3216 # OpenLDAP --enable-spasswd
3217
3218         # Check whether --enable-spasswd was given.
3219 if test "${enable_spasswd+set}" = set; then
3220   enableval=$enable_spasswd;
3221         ol_arg=invalid
3222         for ol_val in auto yes no ; do
3223                 if test "$enableval" = "$ol_val" ; then
3224                         ol_arg="$ol_val"
3225                 fi
3226         done
3227         if test "$ol_arg" = "invalid" ; then
3228                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3230    { (exit 1); exit 1; }; }
3231         fi
3232         ol_enable_spasswd="$ol_arg"
3233
3234 else
3235         ol_enable_spasswd=no
3236 fi
3237
3238 # end --enable-spasswd
3239 # OpenLDAP --enable-modules
3240
3241         # Check whether --enable-modules was given.
3242 if test "${enable_modules+set}" = set; then
3243   enableval=$enable_modules;
3244         ol_arg=invalid
3245         for ol_val in auto yes no ; do
3246                 if test "$enableval" = "$ol_val" ; then
3247                         ol_arg="$ol_val"
3248                 fi
3249         done
3250         if test "$ol_arg" = "invalid" ; then
3251                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3253    { (exit 1); exit 1; }; }
3254         fi
3255         ol_enable_modules="$ol_arg"
3256
3257 else
3258         ol_enable_modules=no
3259 fi
3260
3261 # end --enable-modules
3262 # OpenLDAP --enable-rewrite
3263
3264         # Check whether --enable-rewrite was given.
3265 if test "${enable_rewrite+set}" = set; then
3266   enableval=$enable_rewrite;
3267         ol_arg=invalid
3268         for ol_val in auto yes no ; do
3269                 if test "$enableval" = "$ol_val" ; then
3270                         ol_arg="$ol_val"
3271                 fi
3272         done
3273         if test "$ol_arg" = "invalid" ; then
3274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3276    { (exit 1); exit 1; }; }
3277         fi
3278         ol_enable_rewrite="$ol_arg"
3279
3280 else
3281         ol_enable_rewrite=auto
3282 fi
3283
3284 # end --enable-rewrite
3285 # OpenLDAP --enable-rlookups
3286
3287         # Check whether --enable-rlookups was given.
3288 if test "${enable_rlookups+set}" = set; then
3289   enableval=$enable_rlookups;
3290         ol_arg=invalid
3291         for ol_val in auto yes no ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_rlookups="$ol_arg"
3302
3303 else
3304         ol_enable_rlookups=no
3305 fi
3306
3307 # end --enable-rlookups
3308 # OpenLDAP --enable-slapi
3309
3310         # Check whether --enable-slapi was given.
3311 if test "${enable_slapi+set}" = set; then
3312   enableval=$enable_slapi;
3313         ol_arg=invalid
3314         for ol_val in auto yes no ; do
3315                 if test "$enableval" = "$ol_val" ; then
3316                         ol_arg="$ol_val"
3317                 fi
3318         done
3319         if test "$ol_arg" = "invalid" ; then
3320                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_slapi="$ol_arg"
3325
3326 else
3327         ol_enable_slapi=no
3328 fi
3329
3330 # end --enable-slapi
3331 # OpenLDAP --enable-slp
3332
3333         # Check whether --enable-slp was given.
3334 if test "${enable_slp+set}" = set; then
3335   enableval=$enable_slp;
3336         ol_arg=invalid
3337         for ol_val in auto yes no ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_slp="$ol_arg"
3348
3349 else
3350         ol_enable_slp=no
3351 fi
3352
3353 # end --enable-slp
3354 # OpenLDAP --enable-wrappers
3355
3356         # Check whether --enable-wrappers was given.
3357 if test "${enable_wrappers+set}" = set; then
3358   enableval=$enable_wrappers;
3359         ol_arg=invalid
3360         for ol_val in auto yes no ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_wrappers="$ol_arg"
3371
3372 else
3373         ol_enable_wrappers=no
3374 fi
3375
3376 # end --enable-wrappers
3377
3378 Backends="bdb \
3379         dnssrv \
3380         hdb \
3381         ldap \
3382         meta \
3383         monitor \
3384         ndb \
3385         null \
3386         passwd \
3387         perl \
3388         relay \
3389         shell \
3390         sock \
3391         sql"
3392
3393 # Check whether --enable-xxslapbackends was given.
3394 if test "${enable_xxslapbackends+set}" = set; then
3395   enableval=$enable_xxslapbackends;
3396 fi
3397
3398
3399 # OpenLDAP --enable-backends
3400
3401         # Check whether --enable-backends was given.
3402 if test "${enable_backends+set}" = set; then
3403   enableval=$enable_backends;
3404         ol_arg=invalid
3405         for ol_val in no yes mod ; do
3406                 if test "$enableval" = "$ol_val" ; then
3407                         ol_arg="$ol_val"
3408                 fi
3409         done
3410         if test "$ol_arg" = "invalid" ; then
3411                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3412 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3413    { (exit 1); exit 1; }; }
3414         fi
3415         ol_enable_backends="$ol_arg"
3416
3417 fi
3418
3419 # end --enable-backends
3420 # OpenLDAP --enable-bdb
3421
3422         # Check whether --enable-bdb was given.
3423 if test "${enable_bdb+set}" = set; then
3424   enableval=$enable_bdb;
3425         ol_arg=invalid
3426         for ol_val in no yes mod ; do
3427                 if test "$enableval" = "$ol_val" ; then
3428                         ol_arg="$ol_val"
3429                 fi
3430         done
3431         if test "$ol_arg" = "invalid" ; then
3432                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3433 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3434    { (exit 1); exit 1; }; }
3435         fi
3436         ol_enable_bdb="$ol_arg"
3437
3438 else
3439         ol_enable_bdb=${ol_enable_backends:-no}
3440 fi
3441
3442 # end --enable-bdb
3443 # OpenLDAP --enable-dnssrv
3444
3445         # Check whether --enable-dnssrv was given.
3446 if test "${enable_dnssrv+set}" = set; then
3447   enableval=$enable_dnssrv;
3448         ol_arg=invalid
3449         for ol_val in no yes mod ; do
3450                 if test "$enableval" = "$ol_val" ; then
3451                         ol_arg="$ol_val"
3452                 fi
3453         done
3454         if test "$ol_arg" = "invalid" ; then
3455                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3457    { (exit 1); exit 1; }; }
3458         fi
3459         ol_enable_dnssrv="$ol_arg"
3460
3461 else
3462         ol_enable_dnssrv=${ol_enable_backends:-no}
3463 fi
3464
3465 # end --enable-dnssrv
3466 # OpenLDAP --enable-hdb
3467
3468         # Check whether --enable-hdb was given.
3469 if test "${enable_hdb+set}" = set; then
3470   enableval=$enable_hdb;
3471         ol_arg=invalid
3472         for ol_val in no yes mod ; do
3473                 if test "$enableval" = "$ol_val" ; then
3474                         ol_arg="$ol_val"
3475                 fi
3476         done
3477         if test "$ol_arg" = "invalid" ; then
3478                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3480    { (exit 1); exit 1; }; }
3481         fi
3482         ol_enable_hdb="$ol_arg"
3483
3484 else
3485         ol_enable_hdb=${ol_enable_backends:-yes}
3486 fi
3487
3488 # end --enable-hdb
3489 # OpenLDAP --enable-ldap
3490
3491         # Check whether --enable-ldap was given.
3492 if test "${enable_ldap+set}" = set; then
3493   enableval=$enable_ldap;
3494         ol_arg=invalid
3495         for ol_val in no yes mod ; do
3496                 if test "$enableval" = "$ol_val" ; then
3497                         ol_arg="$ol_val"
3498                 fi
3499         done
3500         if test "$ol_arg" = "invalid" ; then
3501                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3503    { (exit 1); exit 1; }; }
3504         fi
3505         ol_enable_ldap="$ol_arg"
3506
3507 else
3508         ol_enable_ldap=${ol_enable_backends:-no}
3509 fi
3510
3511 # end --enable-ldap
3512 # OpenLDAP --enable-meta
3513
3514         # Check whether --enable-meta was given.
3515 if test "${enable_meta+set}" = set; then
3516   enableval=$enable_meta;
3517         ol_arg=invalid
3518         for ol_val in no yes mod ; do
3519                 if test "$enableval" = "$ol_val" ; then
3520                         ol_arg="$ol_val"
3521                 fi
3522         done
3523         if test "$ol_arg" = "invalid" ; then
3524                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3526    { (exit 1); exit 1; }; }
3527         fi
3528         ol_enable_meta="$ol_arg"
3529
3530 else
3531         ol_enable_meta=${ol_enable_backends:-no}
3532 fi
3533
3534 # end --enable-meta
3535 # OpenLDAP --enable-monitor
3536
3537         # Check whether --enable-monitor was given.
3538 if test "${enable_monitor+set}" = set; then
3539   enableval=$enable_monitor;
3540         ol_arg=invalid
3541         for ol_val in no yes mod ; do
3542                 if test "$enableval" = "$ol_val" ; then
3543                         ol_arg="$ol_val"
3544                 fi
3545         done
3546         if test "$ol_arg" = "invalid" ; then
3547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_monitor="$ol_arg"
3552
3553 else
3554         ol_enable_monitor=${ol_enable_backends:-yes}
3555 fi
3556
3557 # end --enable-monitor
3558 # OpenLDAP --enable-ndb
3559
3560         # Check whether --enable-ndb was given.
3561 if test "${enable_ndb+set}" = set; then
3562   enableval=$enable_ndb;
3563         ol_arg=invalid
3564         for ol_val in no yes mod ; do
3565                 if test "$enableval" = "$ol_val" ; then
3566                         ol_arg="$ol_val"
3567                 fi
3568         done
3569         if test "$ol_arg" = "invalid" ; then
3570                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3572    { (exit 1); exit 1; }; }
3573         fi
3574         ol_enable_ndb="$ol_arg"
3575
3576 else
3577         ol_enable_ndb=${ol_enable_backends:-no}
3578 fi
3579
3580 # end --enable-ndb
3581 # OpenLDAP --enable-null
3582
3583         # Check whether --enable-null was given.
3584 if test "${enable_null+set}" = set; then
3585   enableval=$enable_null;
3586         ol_arg=invalid
3587         for ol_val in no yes mod ; do
3588                 if test "$enableval" = "$ol_val" ; then
3589                         ol_arg="$ol_val"
3590                 fi
3591         done
3592         if test "$ol_arg" = "invalid" ; then
3593                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3595    { (exit 1); exit 1; }; }
3596         fi
3597         ol_enable_null="$ol_arg"
3598
3599 else
3600         ol_enable_null=${ol_enable_backends:-no}
3601 fi
3602
3603 # end --enable-null
3604 # OpenLDAP --enable-passwd
3605
3606         # Check whether --enable-passwd was given.
3607 if test "${enable_passwd+set}" = set; then
3608   enableval=$enable_passwd;
3609         ol_arg=invalid
3610         for ol_val in no yes mod ; do
3611                 if test "$enableval" = "$ol_val" ; then
3612                         ol_arg="$ol_val"
3613                 fi
3614         done
3615         if test "$ol_arg" = "invalid" ; then
3616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3618    { (exit 1); exit 1; }; }
3619         fi
3620         ol_enable_passwd="$ol_arg"
3621
3622 else
3623         ol_enable_passwd=${ol_enable_backends:-no}
3624 fi
3625
3626 # end --enable-passwd
3627 # OpenLDAP --enable-perl
3628
3629         # Check whether --enable-perl was given.
3630 if test "${enable_perl+set}" = set; then
3631   enableval=$enable_perl;
3632         ol_arg=invalid
3633         for ol_val in no yes mod ; do
3634                 if test "$enableval" = "$ol_val" ; then
3635                         ol_arg="$ol_val"
3636                 fi
3637         done
3638         if test "$ol_arg" = "invalid" ; then
3639                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3641    { (exit 1); exit 1; }; }
3642         fi
3643         ol_enable_perl="$ol_arg"
3644
3645 else
3646         ol_enable_perl=${ol_enable_backends:-no}
3647 fi
3648
3649 # end --enable-perl
3650 # OpenLDAP --enable-relay
3651
3652         # Check whether --enable-relay was given.
3653 if test "${enable_relay+set}" = set; then
3654   enableval=$enable_relay;
3655         ol_arg=invalid
3656         for ol_val in no yes mod ; do
3657                 if test "$enableval" = "$ol_val" ; then
3658                         ol_arg="$ol_val"
3659                 fi
3660         done
3661         if test "$ol_arg" = "invalid" ; then
3662                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3664    { (exit 1); exit 1; }; }
3665         fi
3666         ol_enable_relay="$ol_arg"
3667
3668 else
3669         ol_enable_relay=${ol_enable_backends:-yes}
3670 fi
3671
3672 # end --enable-relay
3673 # OpenLDAP --enable-shell
3674
3675         # Check whether --enable-shell was given.
3676 if test "${enable_shell+set}" = set; then
3677   enableval=$enable_shell;
3678         ol_arg=invalid
3679         for ol_val in no yes mod ; do
3680                 if test "$enableval" = "$ol_val" ; then
3681                         ol_arg="$ol_val"
3682                 fi
3683         done
3684         if test "$ol_arg" = "invalid" ; then
3685                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3687    { (exit 1); exit 1; }; }
3688         fi
3689         ol_enable_shell="$ol_arg"
3690
3691 else
3692         ol_enable_shell=${ol_enable_backends:-no}
3693 fi
3694
3695 # end --enable-shell
3696 # OpenLDAP --enable-sock
3697
3698         # Check whether --enable-sock was given.
3699 if test "${enable_sock+set}" = set; then
3700   enableval=$enable_sock;
3701         ol_arg=invalid
3702         for ol_val in no yes mod ; do
3703                 if test "$enableval" = "$ol_val" ; then
3704                         ol_arg="$ol_val"
3705                 fi
3706         done
3707         if test "$ol_arg" = "invalid" ; then
3708                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         ol_enable_sock="$ol_arg"
3713
3714 else
3715         ol_enable_sock=${ol_enable_backends:-no}
3716 fi
3717
3718 # end --enable-sock
3719 # OpenLDAP --enable-sql
3720
3721         # Check whether --enable-sql was given.
3722 if test "${enable_sql+set}" = set; then
3723   enableval=$enable_sql;
3724         ol_arg=invalid
3725         for ol_val in no yes mod ; do
3726                 if test "$enableval" = "$ol_val" ; then
3727                         ol_arg="$ol_val"
3728                 fi
3729         done
3730         if test "$ol_arg" = "invalid" ; then
3731                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3733    { (exit 1); exit 1; }; }
3734         fi
3735         ol_enable_sql="$ol_arg"
3736
3737 else
3738         ol_enable_sql=${ol_enable_backends:-no}
3739 fi
3740
3741 # end --enable-sql
3742
3743 Overlays="accesslog \
3744         auditlog \
3745         collect \
3746         constraint \
3747         dds \
3748         deref \
3749         dyngroup \
3750         dynlist \
3751         memberof \
3752         ppolicy \
3753         proxycache \
3754         refint \
3755         retcode \
3756         rwm \
3757         seqmod \
3758         sssvlv \
3759         syncprov \
3760         translucent \
3761         unique \
3762         valsort"
3763
3764 # Check whether --enable-xxslapoverlays was given.
3765 if test "${enable_xxslapoverlays+set}" = set; then
3766   enableval=$enable_xxslapoverlays;
3767 fi
3768
3769
3770 # OpenLDAP --enable-overlays
3771
3772         # Check whether --enable-overlays was given.
3773 if test "${enable_overlays+set}" = set; then
3774   enableval=$enable_overlays;
3775         ol_arg=invalid
3776         for ol_val in no yes mod ; do
3777                 if test "$enableval" = "$ol_val" ; then
3778                         ol_arg="$ol_val"
3779                 fi
3780         done
3781         if test "$ol_arg" = "invalid" ; then
3782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3783 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3784    { (exit 1); exit 1; }; }
3785         fi
3786         ol_enable_overlays="$ol_arg"
3787
3788 fi
3789
3790 # end --enable-overlays
3791 # OpenLDAP --enable-accesslog
3792
3793         # Check whether --enable-accesslog was given.
3794 if test "${enable_accesslog+set}" = set; then
3795   enableval=$enable_accesslog;
3796         ol_arg=invalid
3797         for ol_val in no yes mod ; do
3798                 if test "$enableval" = "$ol_val" ; then
3799                         ol_arg="$ol_val"
3800                 fi
3801         done
3802         if test "$ol_arg" = "invalid" ; then
3803                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3804 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3805    { (exit 1); exit 1; }; }
3806         fi
3807         ol_enable_accesslog="$ol_arg"
3808
3809 else
3810         ol_enable_accesslog=${ol_enable_overlays:-no}
3811 fi
3812
3813 # end --enable-accesslog
3814
3815 # OpenLDAP --enable-auditlog
3816
3817         # Check whether --enable-auditlog was given.
3818 if test "${enable_auditlog+set}" = set; then
3819   enableval=$enable_auditlog;
3820         ol_arg=invalid
3821         for ol_val in no yes mod ; do
3822                 if test "$enableval" = "$ol_val" ; then
3823                         ol_arg="$ol_val"
3824                 fi
3825         done
3826         if test "$ol_arg" = "invalid" ; then
3827                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3828 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3829    { (exit 1); exit 1; }; }
3830         fi
3831         ol_enable_auditlog="$ol_arg"
3832
3833 else
3834         ol_enable_auditlog=${ol_enable_overlays:-no}
3835 fi
3836
3837 # end --enable-auditlog
3838
3839 # OpenLDAP --enable-collect
3840
3841         # Check whether --enable-collect was given.
3842 if test "${enable_collect+set}" = set; then
3843   enableval=$enable_collect;
3844         ol_arg=invalid
3845         for ol_val in no yes mod ; do
3846                 if test "$enableval" = "$ol_val" ; then
3847                         ol_arg="$ol_val"
3848                 fi
3849         done
3850         if test "$ol_arg" = "invalid" ; then
3851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3852 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3853    { (exit 1); exit 1; }; }
3854         fi
3855         ol_enable_collect="$ol_arg"
3856
3857 else
3858         ol_enable_collect=${ol_enable_overlays:-no}
3859 fi
3860
3861 # end --enable-collect
3862
3863 # OpenLDAP --enable-constraint
3864
3865         # Check whether --enable-constraint was given.
3866 if test "${enable_constraint+set}" = set; then
3867   enableval=$enable_constraint;
3868         ol_arg=invalid
3869         for ol_val in no yes mod ; do
3870                 if test "$enableval" = "$ol_val" ; then
3871                         ol_arg="$ol_val"
3872                 fi
3873         done
3874         if test "$ol_arg" = "invalid" ; then
3875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3876 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3877    { (exit 1); exit 1; }; }
3878         fi
3879         ol_enable_constraint="$ol_arg"
3880
3881 else
3882         ol_enable_constraint=${ol_enable_overlays:-no}
3883 fi
3884
3885 # end --enable-constraint
3886
3887 # OpenLDAP --enable-dds
3888
3889         # Check whether --enable-dds was given.
3890 if test "${enable_dds+set}" = set; then
3891   enableval=$enable_dds;
3892         ol_arg=invalid
3893         for ol_val in no yes mod ; do
3894                 if test "$enableval" = "$ol_val" ; then
3895                         ol_arg="$ol_val"
3896                 fi
3897         done
3898         if test "$ol_arg" = "invalid" ; then
3899                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3900 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3901    { (exit 1); exit 1; }; }
3902         fi
3903         ol_enable_dds="$ol_arg"
3904
3905 else
3906         ol_enable_dds=${ol_enable_overlays:-no}
3907 fi
3908
3909 # end --enable-dds
3910
3911 # OpenLDAP --enable-deref
3912
3913         # Check whether --enable-deref was given.
3914 if test "${enable_deref+set}" = set; then
3915   enableval=$enable_deref;
3916         ol_arg=invalid
3917         for ol_val in no yes mod ; do
3918                 if test "$enableval" = "$ol_val" ; then
3919                         ol_arg="$ol_val"
3920                 fi
3921         done
3922         if test "$ol_arg" = "invalid" ; then
3923                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3924 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3925    { (exit 1); exit 1; }; }
3926         fi
3927         ol_enable_deref="$ol_arg"
3928
3929 else
3930         ol_enable_deref=${ol_enable_overlays:-no}
3931 fi
3932
3933 # end --enable-deref
3934
3935 # OpenLDAP --enable-dyngroup
3936
3937         # Check whether --enable-dyngroup was given.
3938 if test "${enable_dyngroup+set}" = set; then
3939   enableval=$enable_dyngroup;
3940         ol_arg=invalid
3941         for ol_val in no yes mod ; do
3942                 if test "$enableval" = "$ol_val" ; then
3943                         ol_arg="$ol_val"
3944                 fi
3945         done
3946         if test "$ol_arg" = "invalid" ; then
3947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3948 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3949    { (exit 1); exit 1; }; }
3950         fi
3951         ol_enable_dyngroup="$ol_arg"
3952
3953 else
3954         ol_enable_dyngroup=${ol_enable_overlays:-no}
3955 fi
3956
3957 # end --enable-dyngroup
3958
3959 # OpenLDAP --enable-dynlist
3960
3961         # Check whether --enable-dynlist was given.
3962 if test "${enable_dynlist+set}" = set; then
3963   enableval=$enable_dynlist;
3964         ol_arg=invalid
3965         for ol_val in no yes mod ; do
3966                 if test "$enableval" = "$ol_val" ; then
3967                         ol_arg="$ol_val"
3968                 fi
3969         done
3970         if test "$ol_arg" = "invalid" ; then
3971                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3972 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3973    { (exit 1); exit 1; }; }
3974         fi
3975         ol_enable_dynlist="$ol_arg"
3976
3977 else
3978         ol_enable_dynlist=${ol_enable_overlays:-no}
3979 fi
3980
3981 # end --enable-dynlist
3982
3983 # OpenLDAP --enable-memberof
3984
3985         # Check whether --enable-memberof was given.
3986 if test "${enable_memberof+set}" = set; then
3987   enableval=$enable_memberof;
3988         ol_arg=invalid
3989         for ol_val in no yes mod ; do
3990                 if test "$enableval" = "$ol_val" ; then
3991                         ol_arg="$ol_val"
3992                 fi
3993         done
3994         if test "$ol_arg" = "invalid" ; then
3995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3996 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3997    { (exit 1); exit 1; }; }
3998         fi
3999         ol_enable_memberof="$ol_arg"
4000
4001 else
4002         ol_enable_memberof=${ol_enable_overlays:-no}
4003 fi
4004
4005 # end --enable-memberof
4006
4007 # OpenLDAP --enable-ppolicy
4008
4009         # Check whether --enable-ppolicy was given.
4010 if test "${enable_ppolicy+set}" = set; then
4011   enableval=$enable_ppolicy;
4012         ol_arg=invalid
4013         for ol_val in no yes mod ; do
4014                 if test "$enableval" = "$ol_val" ; then
4015                         ol_arg="$ol_val"
4016                 fi
4017         done
4018         if test "$ol_arg" = "invalid" ; then
4019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4020 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4021    { (exit 1); exit 1; }; }
4022         fi
4023         ol_enable_ppolicy="$ol_arg"
4024
4025 else
4026         ol_enable_ppolicy=${ol_enable_overlays:-no}
4027 fi
4028
4029 # end --enable-ppolicy
4030
4031 # OpenLDAP --enable-proxycache
4032
4033         # Check whether --enable-proxycache was given.
4034 if test "${enable_proxycache+set}" = set; then
4035   enableval=$enable_proxycache;
4036         ol_arg=invalid
4037         for ol_val in no yes mod ; do
4038                 if test "$enableval" = "$ol_val" ; then
4039                         ol_arg="$ol_val"
4040                 fi
4041         done
4042         if test "$ol_arg" = "invalid" ; then
4043                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4044 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4045    { (exit 1); exit 1; }; }
4046         fi
4047         ol_enable_proxycache="$ol_arg"
4048
4049 else
4050         ol_enable_proxycache=${ol_enable_overlays:-no}
4051 fi
4052
4053 # end --enable-proxycache
4054
4055 # OpenLDAP --enable-refint
4056
4057         # Check whether --enable-refint was given.
4058 if test "${enable_refint+set}" = set; then
4059   enableval=$enable_refint;
4060         ol_arg=invalid
4061         for ol_val in no yes mod ; do
4062                 if test "$enableval" = "$ol_val" ; then
4063                         ol_arg="$ol_val"
4064                 fi
4065         done
4066         if test "$ol_arg" = "invalid" ; then
4067                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4068 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4069    { (exit 1); exit 1; }; }
4070         fi
4071         ol_enable_refint="$ol_arg"
4072
4073 else
4074         ol_enable_refint=${ol_enable_overlays:-no}
4075 fi
4076
4077 # end --enable-refint
4078
4079 # OpenLDAP --enable-retcode
4080
4081         # Check whether --enable-retcode was given.
4082 if test "${enable_retcode+set}" = set; then
4083   enableval=$enable_retcode;
4084         ol_arg=invalid
4085         for ol_val in no yes mod ; do
4086                 if test "$enableval" = "$ol_val" ; then
4087                         ol_arg="$ol_val"
4088                 fi
4089         done
4090         if test "$ol_arg" = "invalid" ; then
4091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4092 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4093    { (exit 1); exit 1; }; }
4094         fi
4095         ol_enable_retcode="$ol_arg"
4096
4097 else
4098         ol_enable_retcode=${ol_enable_overlays:-no}
4099 fi
4100
4101 # end --enable-retcode
4102
4103 # OpenLDAP --enable-rwm
4104
4105         # Check whether --enable-rwm was given.
4106 if test "${enable_rwm+set}" = set; then
4107   enableval=$enable_rwm;
4108         ol_arg=invalid
4109         for ol_val in no yes mod ; do
4110                 if test "$enableval" = "$ol_val" ; then
4111                         ol_arg="$ol_val"
4112                 fi
4113         done
4114         if test "$ol_arg" = "invalid" ; then
4115                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4116 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4117    { (exit 1); exit 1; }; }
4118         fi
4119         ol_enable_rwm="$ol_arg"
4120
4121 else
4122         ol_enable_rwm=${ol_enable_overlays:-no}
4123 fi
4124
4125 # end --enable-rwm
4126
4127 # OpenLDAP --enable-seqmod
4128
4129         # Check whether --enable-seqmod was given.
4130 if test "${enable_seqmod+set}" = set; then
4131   enableval=$enable_seqmod;
4132         ol_arg=invalid
4133         for ol_val in no yes mod ; do
4134                 if test "$enableval" = "$ol_val" ; then
4135                         ol_arg="$ol_val"
4136                 fi
4137         done
4138         if test "$ol_arg" = "invalid" ; then
4139                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4140 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4141    { (exit 1); exit 1; }; }
4142         fi
4143         ol_enable_seqmod="$ol_arg"
4144
4145 else
4146         ol_enable_seqmod=${ol_enable_overlays:-no}
4147 fi
4148
4149 # end --enable-seqmod
4150
4151 # OpenLDAP --enable-sssvlv
4152
4153         # Check whether --enable-sssvlv was given.
4154 if test "${enable_sssvlv+set}" = set; then
4155   enableval=$enable_sssvlv;
4156         ol_arg=invalid
4157         for ol_val in no yes mod ; do
4158                 if test "$enableval" = "$ol_val" ; then
4159                         ol_arg="$ol_val"
4160                 fi
4161         done
4162         if test "$ol_arg" = "invalid" ; then
4163                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4164 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4165    { (exit 1); exit 1; }; }
4166         fi
4167         ol_enable_sssvlv="$ol_arg"
4168
4169 else
4170         ol_enable_sssvlv=${ol_enable_overlays:-no}
4171 fi
4172
4173 # end --enable-sssvlv
4174
4175 # OpenLDAP --enable-syncprov
4176
4177         # Check whether --enable-syncprov was given.
4178 if test "${enable_syncprov+set}" = set; then
4179   enableval=$enable_syncprov;
4180         ol_arg=invalid
4181         for ol_val in no yes mod ; do
4182                 if test "$enableval" = "$ol_val" ; then
4183                         ol_arg="$ol_val"
4184                 fi
4185         done
4186         if test "$ol_arg" = "invalid" ; then
4187                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4188 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4189    { (exit 1); exit 1; }; }
4190         fi
4191         ol_enable_syncprov="$ol_arg"
4192
4193 else
4194         ol_enable_syncprov=${ol_enable_overlays:-yes}
4195 fi
4196
4197 # end --enable-syncprov
4198
4199 # OpenLDAP --enable-translucent
4200
4201         # Check whether --enable-translucent was given.
4202 if test "${enable_translucent+set}" = set; then
4203   enableval=$enable_translucent;
4204         ol_arg=invalid
4205         for ol_val in no yes mod ; do
4206                 if test "$enableval" = "$ol_val" ; then
4207                         ol_arg="$ol_val"
4208                 fi
4209         done
4210         if test "$ol_arg" = "invalid" ; then
4211                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4212 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4213    { (exit 1); exit 1; }; }
4214         fi
4215         ol_enable_translucent="$ol_arg"
4216
4217 else
4218         ol_enable_translucent=${ol_enable_overlays:-no}
4219 fi
4220
4221 # end --enable-translucent
4222
4223 # OpenLDAP --enable-unique
4224
4225         # Check whether --enable-unique was given.
4226 if test "${enable_unique+set}" = set; then
4227   enableval=$enable_unique;
4228         ol_arg=invalid
4229         for ol_val in no yes mod ; do
4230                 if test "$enableval" = "$ol_val" ; then
4231                         ol_arg="$ol_val"
4232                 fi
4233         done
4234         if test "$ol_arg" = "invalid" ; then
4235                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4236 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4237    { (exit 1); exit 1; }; }
4238         fi
4239         ol_enable_unique="$ol_arg"
4240
4241 else
4242         ol_enable_unique=${ol_enable_overlays:-no}
4243 fi
4244
4245 # end --enable-unique
4246
4247 # OpenLDAP --enable-valsort
4248
4249         # Check whether --enable-valsort was given.
4250 if test "${enable_valsort+set}" = set; then
4251   enableval=$enable_valsort;
4252         ol_arg=invalid
4253         for ol_val in no yes mod ; do
4254                 if test "$enableval" = "$ol_val" ; then
4255                         ol_arg="$ol_val"
4256                 fi
4257         done
4258         if test "$ol_arg" = "invalid" ; then
4259                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4260 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4261    { (exit 1); exit 1; }; }
4262         fi
4263         ol_enable_valsort="$ol_arg"
4264
4265 else
4266         ol_enable_valsort=${ol_enable_overlays:-no}
4267 fi
4268
4269 # end --enable-valsort
4270
4271
4272 # Check whether --enable-xxliboptions was given.
4273 if test "${enable_xxliboptions+set}" = set; then
4274   enableval=$enable_xxliboptions;
4275 fi
4276
4277 # Check whether --enable-static was given.
4278 if test "${enable_static+set}" = set; then
4279   enableval=$enable_static; p=${PACKAGE-default}
4280     case $enableval in
4281     yes) enable_static=yes ;;
4282     no) enable_static=no ;;
4283     *)
4284      enable_static=no
4285       # Look at the argument we got.  We use all the common list separators.
4286       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4287       for pkg in $enableval; do
4288         IFS="$lt_save_ifs"
4289         if test "X$pkg" = "X$p"; then
4290           enable_static=yes
4291         fi
4292       done
4293       IFS="$lt_save_ifs"
4294       ;;
4295     esac
4296 else
4297   enable_static=yes
4298 fi
4299
4300
4301 # Check whether --enable-shared was given.
4302 if test "${enable_shared+set}" = set; then
4303   enableval=$enable_shared; p=${PACKAGE-default}
4304     case $enableval in
4305     yes) enable_shared=yes ;;
4306     no) enable_shared=no ;;
4307     *)
4308       enable_shared=no
4309       # Look at the argument we got.  We use all the common list separators.
4310       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4311       for pkg in $enableval; do
4312         IFS="$lt_save_ifs"
4313         if test "X$pkg" = "X$p"; then
4314           enable_shared=yes
4315         fi
4316       done
4317       IFS="$lt_save_ifs"
4318       ;;
4319     esac
4320 else
4321   enable_shared=yes
4322 fi
4323
4324
4325
4326
4327 # validate options
4328 if test $ol_enable_slapd = no ; then
4329                 if test $ol_enable_slapi = yes ; then
4330                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4331 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4332         fi
4333         case "$ol_enable_backends" in yes | mod)
4334                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4335 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4336         esac
4337         for i in $Backends; do
4338                 eval "ol_tmp=\$ol_enable_$i"
4339                 if test $ol_tmp != no ; then
4340                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4341 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4342                         eval "ol_enable_$i=no"
4343                 fi
4344         done
4345         if test $ol_enable_modules = yes ; then
4346                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4347 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4348         fi
4349         if test $ol_enable_wrappers = yes ; then
4350                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4351 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4352         fi
4353         if test $ol_enable_rlookups = yes ; then
4354                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4355 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4356         fi
4357         if test $ol_enable_dynacl = yes ; then
4358                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4359 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4360         fi
4361         if test $ol_enable_aci != no ; then
4362                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4363 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4364         fi
4365         if test $ol_enable_rewrite = yes ; then
4366                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4367 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4368         fi
4369                 case "$ol_enable_overlays" in yes | mod)
4370                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4371 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4372         esac
4373         for i in $Overlays; do
4374                 eval "ol_tmp=\$ol_enable_$i"
4375                 if test $ol_tmp != no ; then
4376                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4377 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4378                         eval "ol_enable_$i=no"
4379                 fi
4380         done
4381
4382         # force settings to no
4383         ol_enable_slapi=no
4384
4385         ol_enable_backends=
4386         ol_enable_overlays=
4387         ol_enable_modules=no
4388         ol_enable_rlookups=no
4389         ol_enable_dynacl=no
4390         ol_enable_aci=no
4391         ol_enable_wrappers=no
4392
4393         ol_enable_rewrite=no
4394
4395 elif test $ol_enable_modules != yes &&
4396         test $ol_enable_bdb = no &&
4397         test $ol_enable_dnssrv = no &&
4398         test $ol_enable_hdb = no &&
4399         test $ol_enable_ldap = no &&
4400         test $ol_enable_meta = no &&
4401         test $ol_enable_monitor = no &&
4402         test $ol_enable_ndb = no &&
4403         test $ol_enable_null = no &&
4404         test $ol_enable_passwd = no &&
4405         test $ol_enable_perl = no &&
4406         test $ol_enable_relay = no &&
4407         test $ol_enable_shell = no &&
4408         test $ol_enable_sock = no &&
4409         test $ol_enable_sql = no ; then
4410
4411         if test $ol_enable_slapd = yes ; then
4412                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4413 echo "$as_me: error: slapd requires a backend" >&2;}
4414    { (exit 1); exit 1; }; }
4415         else
4416                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4417 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4418                 ol_enable_slapd=no
4419         fi
4420 fi
4421
4422 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4423         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4424 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4425    { (exit 1); exit 1; }; }
4426 fi
4427
4428 if test $ol_enable_lmpasswd = yes ; then
4429         if test $ol_with_tls = no ; then
4430                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4431 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4432    { (exit 1); exit 1; }; }
4433         fi
4434 fi
4435
4436 if test $ol_enable_spasswd = yes ; then
4437         if test $ol_with_cyrus_sasl = no ; then
4438                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4439 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4440    { (exit 1); exit 1; }; }
4441         fi
4442         ol_with_cyrus_sasl=yes
4443 fi
4444
4445 { echo "$as_me:$LINENO: result: done" >&5
4446 echo "${ECHO_T}done" >&6; }
4447
4448 LDAP_LIBS=
4449 BDB_LIBS=
4450 SLAPD_NDB_LIBS=
4451 SLAPD_NDB_INCS=
4452 LTHREAD_LIBS=
4453 LUTIL_LIBS=
4454
4455 SLAPD_LIBS=
4456
4457 BUILD_SLAPD=no
4458
4459 BUILD_THREAD=no
4460
4461 BUILD_SLAPI=no
4462 SLAPD_SLAPI_DEPEND=
4463
4464 BUILD_BDB=no
4465 BUILD_DNSSRV=no
4466 BUILD_HDB=no
4467 BUILD_LDAP=no
4468 BUILD_META=no
4469 BUILD_MONITOR=no
4470 BUILD_NDB=no
4471 BUILD_NULL=no
4472 BUILD_PASSWD=no
4473 BUILD_PERL=no
4474 BUILD_RELAY=no
4475 BUILD_SHELL=no
4476 BUILD_SOCK=no
4477 BUILD_SQL=no
4478
4479 BUILD_ACCESSLOG=no
4480 BUILD_AUDITLOG=no
4481 BUILD_CONSTRAINT=no
4482 BUILD_DDS=no
4483 BUILD_DENYOP=no
4484 BUILD_DYNGROUP=no
4485 BUILD_DYNLIST=no
4486 BUILD_LASTMOD=no
4487 BUILD_MEMBEROF=no
4488 BUILD_PPOLICY=no
4489 BUILD_PROXYCACHE=no
4490 BUILD_REFINT=no
4491 BUILD_RETCODE=no
4492 BUILD_RWM=no
4493 BUILD_SEQMOD=no
4494 BUILD_SSSVLV=no
4495 BUILD_SYNCPROV=no
4496 BUILD_TRANSLUCENT=no
4497 BUILD_UNIQUE=no
4498 BUILD_VALSORT=no
4499
4500 SLAPD_STATIC_OVERLAYS=
4501 SLAPD_DYNAMIC_OVERLAYS=
4502
4503 SLAPD_MODULES_LDFLAGS=
4504 SLAPD_MODULES_CPPFLAGS=
4505
4506 SLAPD_STATIC_BACKENDS=back-ldif
4507 SLAPD_DYNAMIC_BACKENDS=
4508
4509 SLAPD_PERL_LDFLAGS=
4510 MOD_PERL_LDFLAGS=
4511 PERL_CPPFLAGS=
4512
4513 SLAPD_SQL_LDFLAGS=
4514 SLAPD_SQL_LIBS=
4515 SLAPD_SQL_INCLUDES=
4516
4517 KRB4_LIBS=
4518 KRB5_LIBS=
4519 SASL_LIBS=
4520 TLS_LIBS=
4521 MODULES_LIBS=
4522 SLAPI_LIBS=
4523 LIBSLAPI=
4524 LIBSLAPITOOLS=
4525 AUTH_LIBS=
4526 ICU_LIBS=
4527
4528 SLAPD_SLP_LIBS=
4529 SLAPD_GMP_LIBS=
4530
4531
4532
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_MKVERSION 1
4535 _ACEOF
4536
4537
4538
4539
4540 ol_aix_threads=no
4541 case "$target" in
4542 *-*-aix*)       if test -z "$CC" ; then
4543                 case "$ol_with_threads" in
4544                 auto | yes |  posix) ol_aix_threads=yes ;;
4545                 esac
4546         fi
4547 ;;
4548 esac
4549
4550 if test $ol_aix_threads = yes ; then
4551         if test -z "${CC}" ; then
4552                 for ac_prog in cc_r xlc_r cc
4553 do
4554   # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_CC+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$CC"; then
4562   ac_cv_prog_CC="$CC" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571     ac_cv_prog_CC="$ac_prog"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 CC=$ac_cv_prog_CC
4582 if test -n "$CC"; then
4583   { echo "$as_me:$LINENO: result: $CC" >&5
4584 echo "${ECHO_T}$CC" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 fi
4589
4590
4591   test -n "$CC" && break
4592 done
4593
4594
4595                 if test "$CC" = cc ; then
4596                                                 if test $ol_with_threads != auto ; then
4597                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4598 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4599    { (exit 1); exit 1; }; }
4600                         else
4601                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4602 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4603                         fi
4604                         ol_with_threads=no
4605                 fi
4606         fi
4607
4608         case ${CC} in cc_r | xlc_r)
4609                 ol_with_threads=posix
4610                 ol_cv_pthread_create=yes
4611                 ;;
4612         esac
4613 fi
4614
4615 if test -z "${CC}"; then
4616         for ac_prog in cc gcc
4617 do
4618   # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$CC"; then
4626   ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_CC="$ac_prog"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647   { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655   test -n "$CC" && break
4656 done
4657 test -n "$CC" || CC="missing"
4658
4659
4660         if test "${CC}" = "missing" ; then
4661                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4662 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4663    { (exit 1); exit 1; }; }
4664         fi
4665 fi
4666
4667 if test -z "${AR}"; then
4668         for ac_prog in ar gar
4669 do
4670   # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_AR+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$AR"; then
4678   ac_cv_prog_AR="$AR" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685   for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_prog_AR="$ac_prog"
4688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 AR=$ac_cv_prog_AR
4698 if test -n "$AR"; then
4699   { echo "$as_me:$LINENO: result: $AR" >&5
4700 echo "${ECHO_T}$AR" >&6; }
4701 else
4702   { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 fi
4705
4706
4707   test -n "$AR" && break
4708 done
4709 test -n "$AR" || AR="missing"
4710
4711
4712         if test "${AR}" = "missing" ; then
4713                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4714 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4715    { (exit 1); exit 1; }; }
4716         fi
4717 fi
4718
4719
4720
4721
4722
4723 # Check whether --enable-fast-install was given.
4724 if test "${enable_fast_install+set}" = set; then
4725   enableval=$enable_fast_install; p=${PACKAGE-default}
4726     case $enableval in
4727     yes) enable_fast_install=yes ;;
4728     no) enable_fast_install=no ;;
4729     *)
4730       enable_fast_install=no
4731       # Look at the argument we got.  We use all the common list separators.
4732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4733       for pkg in $enableval; do
4734         IFS="$lt_save_ifs"
4735         if test "X$pkg" = "X$p"; then
4736           enable_fast_install=yes
4737         fi
4738       done
4739       IFS="$lt_save_ifs"
4740       ;;
4741     esac
4742 else
4743   enable_fast_install=yes
4744 fi
4745
4746
4747 DEPDIR="${am__leading_dot}deps"
4748
4749 ac_config_commands="$ac_config_commands depfiles"
4750
4751
4752 am_make=${MAKE-make}
4753 cat > confinc << 'END'
4754 am__doit:
4755         @echo done
4756 .PHONY: am__doit
4757 END
4758 # If we don't find an include directive, just comment out the code.
4759 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4760 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4761 am__include="#"
4762 am__quote=
4763 _am_result=none
4764 # First try GNU make style include.
4765 echo "include confinc" > confmf
4766 # We grep out `Entering directory' and `Leaving directory'
4767 # messages which can occur if `w' ends up in MAKEFLAGS.
4768 # In particular we don't look at `^make:' because GNU make might
4769 # be invoked under some other name (usually "gmake"), in which
4770 # case it prints its new name instead of `make'.
4771 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4772    am__include=include
4773    am__quote=
4774    _am_result=GNU
4775 fi
4776 # Now try BSD make style include.
4777 if test "$am__include" = "#"; then
4778    echo '.include "confinc"' > confmf
4779    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4780       am__include=.include
4781       am__quote="\""
4782       _am_result=BSD
4783    fi
4784 fi
4785
4786
4787 { echo "$as_me:$LINENO: result: $_am_result" >&5
4788 echo "${ECHO_T}$_am_result" >&6; }
4789 rm -f confinc confmf
4790
4791 # Check whether --enable-dependency-tracking was given.
4792 if test "${enable_dependency_tracking+set}" = set; then
4793   enableval=$enable_dependency_tracking;
4794 fi
4795
4796 if test "x$enable_dependency_tracking" != xno; then
4797   am_depcomp="$ac_aux_dir/depcomp"
4798   AMDEPBACKSLASH='\'
4799 fi
4800
4801
4802 if test "x$enable_dependency_tracking" != xno; then
4803   AMDEP_TRUE=
4804   AMDEP_FALSE='#'
4805 else
4806   AMDEP_TRUE='#'
4807   AMDEP_FALSE=
4808 fi
4809
4810
4811
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 if test -n "$ac_tool_prefix"; then
4818   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   if test -n "$CC"; then
4826   ac_cv_prog_CC="$CC" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847   { echo "$as_me:$LINENO: result: $CC" >&5
4848 echo "${ECHO_T}$CC" >&6; }
4849 else
4850   { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_CC"; then
4857   ac_ct_CC=$CC
4858   # Extract the first word of "gcc", so it can be a program name with args.
4859 set dummy gcc; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$ac_ct_CC"; then
4866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   for ac_exec_ext in '' $ac_executable_extensions; do
4874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875     ac_cv_prog_ac_ct_CC="gcc"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4888 echo "${ECHO_T}$ac_ct_CC" >&6; }
4889 else
4890   { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4892 fi
4893
4894   if test "x$ac_ct_CC" = x; then
4895     CC=""
4896   else
4897     case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4900 whose name does not start with the host triplet.  If you think this
4901 configuration is useful to you, please write to autoconf@gnu.org." >&5
4902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4903 whose name does not start with the host triplet.  If you think this
4904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907     CC=$ac_ct_CC
4908   fi
4909 else
4910   CC="$ac_cv_prog_CC"
4911 fi
4912
4913 if test -z "$CC"; then
4914           if test -n "$ac_tool_prefix"; then
4915     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}cc; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   if test -n "$CC"; then
4923   ac_cv_prog_CC="$CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928   IFS=$as_save_IFS
4929   test -z "$as_dir" && as_dir=.
4930   for ac_exec_ext in '' $ac_executable_extensions; do
4931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932     ac_cv_prog_CC="${ac_tool_prefix}cc"
4933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 CC=$ac_cv_prog_CC
4943 if test -n "$CC"; then
4944   { echo "$as_me:$LINENO: result: $CC" >&5
4945 echo "${ECHO_T}$CC" >&6; }
4946 else
4947   { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4949 fi
4950
4951
4952   fi
4953 fi
4954 if test -z "$CC"; then
4955   # Extract the first word of "cc", so it can be a program name with args.
4956 set dummy cc; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   if test -n "$CC"; then
4963   ac_cv_prog_CC="$CC" # Let the user override the test.
4964 else
4965   ac_prog_rejected=no
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971   for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4974        ac_prog_rejected=yes
4975        continue
4976      fi
4977     ac_cv_prog_CC="cc"
4978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985 if test $ac_prog_rejected = yes; then
4986   # We found a bogon in the path, so make sure we never use it.
4987   set dummy $ac_cv_prog_CC
4988   shift
4989   if test $# != 0; then
4990     # We chose a different compiler from the bogus one.
4991     # However, it has the same basename, so the bogon will be chosen
4992     # first if we set CC to just the basename; use the full file name.
4993     shift
4994     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4995   fi
4996 fi
4997 fi
4998 fi
4999 CC=$ac_cv_prog_CC
5000 if test -n "$CC"; then
5001   { echo "$as_me:$LINENO: result: $CC" >&5
5002 echo "${ECHO_T}$CC" >&6; }
5003 else
5004   { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5006 fi
5007
5008
5009 fi
5010 if test -z "$CC"; then
5011   if test -n "$ac_tool_prefix"; then
5012   for ac_prog in cl.exe
5013   do
5014     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_prog_CC+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   if test -n "$CC"; then
5022   ac_cv_prog_CC="$CC" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 CC=$ac_cv_prog_CC
5042 if test -n "$CC"; then
5043   { echo "$as_me:$LINENO: result: $CC" >&5
5044 echo "${ECHO_T}$CC" >&6; }
5045 else
5046   { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5048 fi
5049
5050
5051     test -n "$CC" && break
5052   done
5053 fi
5054 if test -z "$CC"; then
5055   ac_ct_CC=$CC
5056   for ac_prog in cl.exe
5057 do
5058   # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$ac_ct_CC"; then
5066   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075     ac_cv_prog_ac_ct_CC="$ac_prog"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5086 if test -n "$ac_ct_CC"; then
5087   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5088 echo "${ECHO_T}$ac_ct_CC" >&6; }
5089 else
5090   { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5092 fi
5093
5094
5095   test -n "$ac_ct_CC" && break
5096 done
5097
5098   if test "x$ac_ct_CC" = x; then
5099     CC=""
5100   else
5101     case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet.  If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet.  If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     CC=$ac_ct_CC
5112   fi
5113 fi
5114
5115 fi
5116
5117
5118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&2;}
5122    { (exit 1); exit 1; }; }
5123
5124 # Provide some information about the compiler.
5125 echo "$as_me:$LINENO: checking for C compiler version" >&5
5126 ac_compiler=`set X $ac_compile; echo $2`
5127 { (ac_try="$ac_compiler --version >&5"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_compiler --version >&5") 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }
5137 { (ac_try="$ac_compiler -v >&5"
5138 case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143   (eval "$ac_compiler -v >&5") 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }
5147 { (ac_try="$ac_compiler -V >&5"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_compiler -V >&5") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }
5157
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164
5165 int
5166 main ()
5167 {
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 ac_clean_files_save=$ac_clean_files
5174 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5175 # Try to create an executable without -o first, disregard a.out.
5176 # It will help us diagnose broken compilers, and finding out an intuition
5177 # of exeext.
5178 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5179 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5180 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5181 #
5182 # List of possible output files, starting from the most likely.
5183 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5184 # only as a last resort.  b.out is created by i960 compilers.
5185 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5186 #
5187 # The IRIX 6 linker writes into existing files which may not be
5188 # executable, retaining their permissions.  Remove them first so a
5189 # subsequent execution test works.
5190 ac_rmfiles=
5191 for ac_file in $ac_files
5192 do
5193   case $ac_file in
5194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5195     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5196   esac
5197 done
5198 rm -f $ac_rmfiles
5199
5200 if { (ac_try="$ac_link_default"
5201 case "(($ac_try" in
5202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203   *) ac_try_echo=$ac_try;;
5204 esac
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206   (eval "$ac_link_default") 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; then
5210   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5212 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5213 # so that the user can short-circuit this test for compilers unknown to
5214 # Autoconf.
5215 for ac_file in $ac_files ''
5216 do
5217   test -f "$ac_file" || continue
5218   case $ac_file in
5219     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5220         ;;
5221     [ab].out )
5222         # We found the default executable, but exeext='' is most
5223         # certainly right.
5224         break;;
5225     *.* )
5226         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5227         then :; else
5228            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5229         fi
5230         # We set ac_cv_exeext here because the later test for it is not
5231         # safe: cross compilers may not add the suffix if given an `-o'
5232         # argument, so we may need to know it at that point already.
5233         # Even if this section looks crufty: it has the advantage of
5234         # actually working.
5235         break;;
5236     * )
5237         break;;
5238   esac
5239 done
5240 test "$ac_cv_exeext" = no && ac_cv_exeext=
5241
5242 else
5243   ac_file=''
5244 fi
5245
5246 { echo "$as_me:$LINENO: result: $ac_file" >&5
5247 echo "${ECHO_T}$ac_file" >&6; }
5248 if test -z "$ac_file"; then
5249   echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&2;}
5256    { (exit 77); exit 77; }; }
5257 fi
5258
5259 ac_exeext=$ac_cv_exeext
5260
5261 # Check that the compiler produces executables we can run.  If not, either
5262 # the compiler is broken, or we cross compile.
5263 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5264 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5266 # If not cross compiling, check that we can run a simple program.
5267 if test "$cross_compiling" != yes; then
5268   if { ac_try='./$ac_file'
5269   { (case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_try") 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; }; then
5278     cross_compiling=no
5279   else
5280     if test "$cross_compiling" = maybe; then
5281         cross_compiling=yes
5282     else
5283         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5284 If you meant to cross compile, use \`--host'.
5285 See \`config.log' for more details." >&5
5286 echo "$as_me: error: cannot run C compiled programs.
5287 If you meant to cross compile, use \`--host'.
5288 See \`config.log' for more details." >&2;}
5289    { (exit 1); exit 1; }; }
5290     fi
5291   fi
5292 fi
5293 { echo "$as_me:$LINENO: result: yes" >&5
5294 echo "${ECHO_T}yes" >&6; }
5295
5296 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5297 ac_clean_files=$ac_clean_files_save
5298 # Check that the compiler produces executables we can run.  If not, either
5299 # the compiler is broken, or we cross compile.
5300 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5301 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5302 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5303 echo "${ECHO_T}$cross_compiling" >&6; }
5304
5305 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5306 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5307 if { (ac_try="$ac_link"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_link") 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; then
5317   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5318 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5319 # work properly (i.e., refer to `conftest.exe'), while it won't with
5320 # `rm'.
5321 for ac_file in conftest.exe conftest conftest.*; do
5322   test -f "$ac_file" || continue
5323   case $ac_file in
5324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5325     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5326           break;;
5327     * ) break;;
5328   esac
5329 done
5330 else
5331   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&5
5333 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&2;}
5335    { (exit 1); exit 1; }; }
5336 fi
5337
5338 rm -f conftest$ac_cv_exeext
5339 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5340 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5341
5342 rm -f conftest.$ac_ext
5343 EXEEXT=$ac_cv_exeext
5344 ac_exeext=$EXEEXT
5345 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5346 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5347 if test "${ac_cv_objext+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356
5357 int
5358 main ()
5359 {
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.o conftest.obj
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372   (eval "$ac_compile") 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; then
5376   for ac_file in conftest.o conftest.obj conftest.*; do
5377   test -f "$ac_file" || continue;
5378   case $ac_file in
5379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5380     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5381        break;;
5382   esac
5383 done
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&5
5390 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&2;}
5392    { (exit 1); exit 1; }; }
5393 fi
5394
5395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5396 fi
5397 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5398 echo "${ECHO_T}$ac_cv_objext" >&6; }
5399 OBJEXT=$ac_cv_objext
5400 ac_objext=$OBJEXT
5401 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5402 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412
5413 int
5414 main ()
5415 {
5416 #ifndef __GNUC__
5417        choke me
5418 #endif
5419
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_compile") 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } && {
5438          test -z "$ac_c_werror_flag" ||
5439          test ! -s conftest.err
5440        } && test -s conftest.$ac_objext; then
5441   ac_compiler_gnu=yes
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446         ac_compiler_gnu=no
5447 fi
5448
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5451
5452 fi
5453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5455 GCC=`test $ac_compiler_gnu = yes && echo yes`
5456 ac_test_CFLAGS=${CFLAGS+set}
5457 ac_save_CFLAGS=$CFLAGS
5458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5460 if test "${ac_cv_prog_cc_g+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   ac_save_c_werror_flag=$ac_c_werror_flag
5464    ac_c_werror_flag=yes
5465    ac_cv_prog_cc_g=no
5466    CFLAGS="-g"
5467    cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473
5474 int
5475 main ()
5476 {
5477
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_c_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   ac_cv_prog_cc_g=yes
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504         CFLAGS=""
5505       cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511
5512 int
5513 main ()
5514 {
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_compile") 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } && {
5534          test -z "$ac_c_werror_flag" ||
5535          test ! -s conftest.err
5536        } && test -s conftest.$ac_objext; then
5537   :
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542         ac_c_werror_flag=$ac_save_c_werror_flag
5543          CFLAGS="-g"
5544          cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550
5551 int
5552 main ()
5553 {
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_compile") 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
5570   cat conftest.err >&5
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } && {
5573          test -z "$ac_c_werror_flag" ||
5574          test ! -s conftest.err
5575        } && test -s conftest.$ac_objext; then
5576   ac_cv_prog_cc_g=yes
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581
5582 fi
5583
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591    ac_c_werror_flag=$ac_save_c_werror_flag
5592 fi
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5595 if test "$ac_test_CFLAGS" = set; then
5596   CFLAGS=$ac_save_CFLAGS
5597 elif test $ac_cv_prog_cc_g = yes; then
5598   if test "$GCC" = yes; then
5599     CFLAGS="-g -O2"
5600   else
5601     CFLAGS="-g"
5602   fi
5603 else
5604   if test "$GCC" = yes; then
5605     CFLAGS="-O2"
5606   else
5607     CFLAGS=
5608   fi
5609 fi
5610 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5611 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cc_c89+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   ac_cv_prog_cc_c89=no
5616 ac_save_CC=$CC
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 #include <stdarg.h>
5624 #include <stdio.h>
5625 #include <sys/types.h>
5626 #include <sys/stat.h>
5627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5628 struct buf { int x; };
5629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5630 static char *e (p, i)
5631      char **p;
5632      int i;
5633 {
5634   return p[i];
5635 }
5636 static char *f (char * (*g) (char **, int), char **p, ...)
5637 {
5638   char *s;
5639   va_list v;
5640   va_start (v,p);
5641   s = g (p, va_arg (v,int));
5642   va_end (v);
5643   return s;
5644 }
5645
5646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5647    function prototypes and stuff, but not '\xHH' hex character constants.
5648    These don't provoke an error unfortunately, instead are silently treated
5649    as 'x'.  The following induces an error, until -std is added to get
5650    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5651    array size at least.  It's necessary to write '\x00'==0 to get something
5652    that's true only with -std.  */
5653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5654
5655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5656    inside strings and character constants.  */
5657 #define FOO(x) 'x'
5658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5659
5660 int test (int i, double x);
5661 struct s1 {int (*f) (int a);};
5662 struct s2 {int (*f) (double a);};
5663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5664 int argc;
5665 char **argv;
5666 int
5667 main ()
5668 {
5669 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5675         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5676 do
5677   CC="$ac_save_CC $ac_arg"
5678   rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682   *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685   (eval "$ac_compile") 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } && {
5692          test -z "$ac_c_werror_flag" ||
5693          test ! -s conftest.err
5694        } && test -s conftest.$ac_objext; then
5695   ac_cv_prog_cc_c89=$ac_arg
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700
5701 fi
5702
5703 rm -f core conftest.err conftest.$ac_objext
5704   test "x$ac_cv_prog_cc_c89" != "xno" && break
5705 done
5706 rm -f conftest.$ac_ext
5707 CC=$ac_save_CC
5708
5709 fi
5710 # AC_CACHE_VAL
5711 case "x$ac_cv_prog_cc_c89" in
5712   x)
5713     { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5715   xno)
5716     { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5718   *)
5719     CC="$CC $ac_cv_prog_cc_c89"
5720     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5722 esac
5723
5724
5725 ac_ext=c
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730
5731 depcc="$CC"   am_compiler_list=
5732
5733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5739   # We make a subdir and do the tests there.  Otherwise we can end up
5740   # making bogus files that we don't know about and never remove.  For
5741   # instance it was reported that on HP-UX the gcc test will end up
5742   # making a dummy file named `D' -- because `-MD' means `put the output
5743   # in D'.
5744   mkdir conftest.dir
5745   # Copy depcomp to subdir because otherwise we won't find it if we're
5746   # using a relative directory.
5747   cp "$am_depcomp" conftest.dir
5748   cd conftest.dir
5749   # We will build objects and dependencies in a subdirectory because
5750   # it helps to detect inapplicable dependency modes.  For instance
5751   # both Tru64's cc and ICC support -MD to output dependencies as a
5752   # side effect of compilation, but ICC will put the dependencies in
5753   # the current directory while Tru64 will put them in the object
5754   # directory.
5755   mkdir sub
5756
5757   am_cv_CC_dependencies_compiler_type=none
5758   if test "$am_compiler_list" = ""; then
5759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5760   fi
5761   for depmode in $am_compiler_list; do
5762     # Setup a source with many dependencies, because some compilers
5763     # like to wrap large dependency lists on column 80 (with \), and
5764     # we should not choose a depcomp mode which is confused by this.
5765     #
5766     # We need to recreate these files for each test, as the compiler may
5767     # overwrite some of them when testing with obscure command lines.
5768     # This happens at least with the AIX C compiler.
5769     : > sub/conftest.c
5770     for i in 1 2 3 4 5 6; do
5771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773       # Solaris 8's {/usr,}/bin/sh.
5774       touch sub/conftst$i.h
5775     done
5776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5777
5778     case $depmode in
5779     nosideeffect)
5780       # after this tag, mechanisms are not by side-effect, so they'll
5781       # only be used when explicitly requested
5782       if test "x$enable_dependency_tracking" = xyes; then
5783         continue
5784       else
5785         break
5786       fi
5787       ;;
5788     none) break ;;
5789     esac
5790     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5791     # mode.  It turns out that the SunPro C++ compiler does not properly
5792     # handle `-M -o', and we need to detect this.
5793     if depmode=$depmode \
5794        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5795        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5796        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5797          >/dev/null 2>conftest.err &&
5798        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5799        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5800        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5801       # icc doesn't choke on unknown options, it will just issue warnings
5802       # or remarks (even with -Werror).  So we grep stderr for any message
5803       # that says an option was ignored or not supported.
5804       # When given -MP, icc 7.0 and 7.1 complain thusly:
5805       #   icc: Command line warning: ignoring option '-M'; no argument required
5806       # The diagnosis changed in icc 8.0:
5807       #   icc: Command line remark: option '-MP' not supported
5808       if (grep 'ignoring option' conftest.err ||
5809           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5810         am_cv_CC_dependencies_compiler_type=$depmode
5811         break
5812       fi
5813     fi
5814   done
5815
5816   cd ..
5817   rm -rf conftest.dir
5818 else
5819   am_cv_CC_dependencies_compiler_type=none
5820 fi
5821
5822 fi
5823 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5826
5827
5828
5829 if
5830   test "x$enable_dependency_tracking" != xno \
5831   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5832   am__fastdepCC_TRUE=
5833   am__fastdepCC_FALSE='#'
5834 else
5835   am__fastdepCC_TRUE='#'
5836   am__fastdepCC_FALSE=
5837 fi
5838
5839
5840 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5841 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5842 if test "${lt_cv_path_SED+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   # Loop through the user's path and test for sed and gsed.
5846 # Then use that list of sed's as ones to test for truncation.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852   for lt_ac_prog in sed gsed; do
5853     for ac_exec_ext in '' $ac_executable_extensions; do
5854       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5855         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5856       fi
5857     done
5858   done
5859 done
5860 lt_ac_max=0
5861 lt_ac_count=0
5862 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5863 # along with /bin/sed that truncates output.
5864 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5865   test ! -f $lt_ac_sed && continue
5866   cat /dev/null > conftest.in
5867   lt_ac_count=0
5868   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5869   # Check for GNU sed and select it if it is found.
5870   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5871     lt_cv_path_SED=$lt_ac_sed
5872     break
5873   fi
5874   while true; do
5875     cat conftest.in conftest.in >conftest.tmp
5876     mv conftest.tmp conftest.in
5877     cp conftest.in conftest.nl
5878     echo >>conftest.nl
5879     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5880     cmp -s conftest.out conftest.nl || break
5881     # 10000 chars as input seems more than enough
5882     test $lt_ac_count -gt 10 && break
5883     lt_ac_count=`expr $lt_ac_count + 1`
5884     if test $lt_ac_count -gt $lt_ac_max; then
5885       lt_ac_max=$lt_ac_count
5886       lt_cv_path_SED=$lt_ac_sed
5887     fi
5888   done
5889 done
5890
5891 fi
5892
5893 SED=$lt_cv_path_SED
5894 { echo "$as_me:$LINENO: result: $SED" >&5
5895 echo "${ECHO_T}$SED" >&6; }
5896
5897 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5898 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_GREP+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   # Extract the first word of "grep ggrep" to use in msg output
5903 if test -z "$GREP"; then
5904 set dummy grep ggrep; ac_prog_name=$2
5905 if test "${ac_cv_path_GREP+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   ac_path_GREP_found=false
5909 # Loop through the user's path and test for each of PROGNAME-LIST
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_prog in grep ggrep; do
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5918     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5919     # Check for GNU ac_path_GREP and select it if it is found.
5920   # Check for GNU $ac_path_GREP
5921 case `"$ac_path_GREP" --version 2>&1` in
5922 *GNU*)
5923   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5924 *)
5925   ac_count=0
5926   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5927   while :
5928   do
5929     cat "conftest.in" "conftest.in" >"conftest.tmp"
5930     mv "conftest.tmp" "conftest.in"
5931     cp "conftest.in" "conftest.nl"
5932     echo 'GREP' >> "conftest.nl"
5933     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5934     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5935     ac_count=`expr $ac_count + 1`
5936     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5937       # Best one so far, save it but keep looking for a better one
5938       ac_cv_path_GREP="$ac_path_GREP"
5939       ac_path_GREP_max=$ac_count
5940     fi
5941     # 10*(2^10) chars as input seems more than enough
5942     test $ac_count -gt 10 && break
5943   done
5944   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5945 esac
5946
5947
5948     $ac_path_GREP_found && break 3
5949   done
5950 done
5951
5952 done
5953 IFS=$as_save_IFS
5954
5955
5956 fi
5957
5958 GREP="$ac_cv_path_GREP"
5959 if test -z "$GREP"; then
5960   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5961 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5962    { (exit 1); exit 1; }; }
5963 fi
5964
5965 else
5966   ac_cv_path_GREP=$GREP
5967 fi
5968
5969
5970 fi
5971 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5972 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5973  GREP="$ac_cv_path_GREP"
5974
5975
5976 { echo "$as_me:$LINENO: checking for egrep" >&5
5977 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5978 if test "${ac_cv_path_EGREP+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5982    then ac_cv_path_EGREP="$GREP -E"
5983    else
5984      # Extract the first word of "egrep" to use in msg output
5985 if test -z "$EGREP"; then
5986 set dummy egrep; ac_prog_name=$2
5987 if test "${ac_cv_path_EGREP+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   ac_path_EGREP_found=false
5991 # Loop through the user's path and test for each of PROGNAME-LIST
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_prog in egrep; do
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6000     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6001     # Check for GNU ac_path_EGREP and select it if it is found.
6002   # Check for GNU $ac_path_EGREP
6003 case `"$ac_path_EGREP" --version 2>&1` in
6004 *GNU*)
6005   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6006 *)
6007   ac_count=0
6008   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6009   while :
6010   do
6011     cat "conftest.in" "conftest.in" >"conftest.tmp"
6012     mv "conftest.tmp" "conftest.in"
6013     cp "conftest.in" "conftest.nl"
6014     echo 'EGREP' >> "conftest.nl"
6015     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6016     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6017     ac_count=`expr $ac_count + 1`
6018     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6019       # Best one so far, save it but keep looking for a better one
6020       ac_cv_path_EGREP="$ac_path_EGREP"
6021       ac_path_EGREP_max=$ac_count
6022     fi
6023     # 10*(2^10) chars as input seems more than enough
6024     test $ac_count -gt 10 && break
6025   done
6026   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6027 esac
6028
6029
6030     $ac_path_EGREP_found && break 3
6031   done
6032 done
6033
6034 done
6035 IFS=$as_save_IFS
6036
6037
6038 fi
6039
6040 EGREP="$ac_cv_path_EGREP"
6041 if test -z "$EGREP"; then
6042   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6044    { (exit 1); exit 1; }; }
6045 fi
6046
6047 else
6048   ac_cv_path_EGREP=$EGREP
6049 fi
6050
6051
6052    fi
6053 fi
6054 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6055 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6056  EGREP="$ac_cv_path_EGREP"
6057
6058
6059
6060 # Check whether --with-gnu-ld was given.
6061 if test "${with_gnu_ld+set}" = set; then
6062   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6063 else
6064   with_gnu_ld=no
6065 fi
6066
6067 ac_prog=ld
6068 if test "$GCC" = yes; then
6069   # Check if gcc -print-prog-name=ld gives a path.
6070   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6071 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6072   case $host in
6073   *-*-mingw*)
6074     # gcc leaves a trailing carriage return which upsets mingw
6075     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6076   *)
6077     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6078   esac
6079   case $ac_prog in
6080     # Accept absolute paths.
6081     [\\/]* | ?:[\\/]*)
6082       re_direlt='/[^/][^/]*/\.\./'
6083       # Canonicalize the pathname of ld
6084       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6085       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6086         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6087       done
6088       test -z "$LD" && LD="$ac_prog"
6089       ;;
6090   "")
6091     # If it fails, then pretend we aren't using GCC.
6092     ac_prog=ld
6093     ;;
6094   *)
6095     # If it is relative, then search for the first ld in PATH.
6096     with_gnu_ld=unknown
6097     ;;
6098   esac
6099 elif test "$with_gnu_ld" = yes; then
6100   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6101 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6102 else
6103   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6104 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6105 fi
6106 if test "${lt_cv_path_LD+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   if test -z "$LD"; then
6110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6111   for ac_dir in $PATH; do
6112     IFS="$lt_save_ifs"
6113     test -z "$ac_dir" && ac_dir=.
6114     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6115       lt_cv_path_LD="$ac_dir/$ac_prog"
6116       # Check to see if the program is GNU ld.  I'd rather use --version,
6117       # but apparently some variants of GNU ld only accept -v.
6118       # Break only if it was the GNU/non-GNU ld that we prefer.
6119       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6120       *GNU* | *'with BFD'*)
6121         test "$with_gnu_ld" != no && break
6122         ;;
6123       *)
6124         test "$with_gnu_ld" != yes && break
6125         ;;
6126       esac
6127     fi
6128   done
6129   IFS="$lt_save_ifs"
6130 else
6131   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6132 fi
6133 fi
6134
6135 LD="$lt_cv_path_LD"
6136 if test -n "$LD"; then
6137   { echo "$as_me:$LINENO: result: $LD" >&5
6138 echo "${ECHO_T}$LD" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6145    { (exit 1); exit 1; }; }
6146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6152 case `$LD -v 2>&1 </dev/null` in
6153 *GNU* | *'with BFD'*)
6154   lt_cv_prog_gnu_ld=yes
6155   ;;
6156 *)
6157   lt_cv_prog_gnu_ld=no
6158   ;;
6159 esac
6160 fi
6161 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6162 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6163 with_gnu_ld=$lt_cv_prog_gnu_ld
6164
6165
6166 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6167 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6168 if test "${lt_cv_ld_reload_flag+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   lt_cv_ld_reload_flag='-r'
6172 fi
6173 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6174 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6175 reload_flag=$lt_cv_ld_reload_flag
6176 case $reload_flag in
6177 "" | " "*) ;;
6178 *) reload_flag=" $reload_flag" ;;
6179 esac
6180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6181 case $host_os in
6182   darwin*)
6183     if test "$GCC" = yes; then
6184       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6185     else
6186       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187     fi
6188     ;;
6189 esac
6190
6191 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6192 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6193 if test "${lt_cv_path_NM+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -n "$NM"; then
6197   # Let the user override the test.
6198   lt_cv_path_NM="$NM"
6199 else
6200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6201   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6202     IFS="$lt_save_ifs"
6203     test -z "$ac_dir" && ac_dir=.
6204     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6205     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6206       # Check to see if the nm accepts a BSD-compat flag.
6207       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6208       #   nm: unknown option "B" ignored
6209       # Tru64's nm complains that /dev/null is an invalid object file
6210       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6211       */dev/null* | *'Invalid file or object type'*)
6212         lt_cv_path_NM="$tmp_nm -B"
6213         break
6214         ;;
6215       *)
6216         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6217         */dev/null*)
6218           lt_cv_path_NM="$tmp_nm -p"
6219           break
6220           ;;
6221         *)
6222           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6223           continue # so that we can try to find one that supports BSD flags
6224           ;;
6225         esac
6226       esac
6227     fi
6228   done
6229   IFS="$lt_save_ifs"
6230   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6231 fi
6232 fi
6233 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6234 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6235 NM="$lt_cv_path_NM"
6236
6237 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6239 LN_S=$as_ln_s
6240 if test "$LN_S" = "ln -s"; then
6241   { echo "$as_me:$LINENO: result: yes" >&5
6242 echo "${ECHO_T}yes" >&6; }
6243 else
6244   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6245 echo "${ECHO_T}no, using $LN_S" >&6; }
6246 fi
6247
6248 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6249 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6250 if test "${lt_cv_deplibs_check_method+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   lt_cv_file_magic_cmd='$MAGIC_CMD'
6254 lt_cv_file_magic_test_file=
6255 lt_cv_deplibs_check_method='unknown'
6256 # Need to set the preceding variable on all platforms that support
6257 # interlibrary dependencies.
6258 # 'none' -- dependencies not supported.
6259 # `unknown' -- same as none, but documents that we really don't know.
6260 # 'pass_all' -- all dependencies passed with no checks.
6261 # 'test_compile' -- check by making test program.
6262 # 'file_magic [[regex]]' -- check by looking for files in library path
6263 # which responds to the $file_magic_cmd with a given extended regex.
6264 # If you have `file' or equivalent on your system and you're not sure
6265 # whether `pass_all' will *always* work, you probably want this one.
6266
6267 case $host_os in
6268 aix4* | aix5*)
6269   lt_cv_deplibs_check_method=pass_all
6270   ;;
6271
6272 beos*)
6273   lt_cv_deplibs_check_method=pass_all
6274   ;;
6275
6276 bsdi[45]*)
6277   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278   lt_cv_file_magic_cmd='/usr/bin/file -L'
6279   lt_cv_file_magic_test_file=/shlib/libc.so
6280   ;;
6281
6282 cygwin*)
6283   # func_win32_libid is a shell function defined in ltmain.sh
6284   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285   lt_cv_file_magic_cmd='func_win32_libid'
6286   ;;
6287
6288 mingw* | pw32*)
6289   # Base MSYS/MinGW do not provide the 'file' command needed by
6290   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6291   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6292   lt_cv_file_magic_cmd='$OBJDUMP -f'
6293   ;;
6294
6295 darwin* | rhapsody*)
6296   lt_cv_deplibs_check_method=pass_all
6297   ;;
6298
6299 freebsd* | kfreebsd*-gnu | dragonfly*)
6300   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6301     case $host_cpu in
6302     i*86 )
6303       # Not sure whether the presence of OpenBSD here was a mistake.
6304       # Let's accept both of them until this is cleared up.
6305       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6306       lt_cv_file_magic_cmd=/usr/bin/file
6307       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6308       ;;
6309     esac
6310   else
6311     lt_cv_deplibs_check_method=pass_all
6312   fi
6313   ;;
6314
6315 gnu*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 hpux10.20* | hpux11*)
6320   lt_cv_file_magic_cmd=/usr/bin/file
6321   case $host_cpu in
6322   ia64*)
6323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6324     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6325     ;;
6326   hppa*64*)
6327     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]'
6328     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6329     ;;
6330   *)
6331     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6332     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6333     ;;
6334   esac
6335   ;;
6336
6337 irix5* | irix6* | nonstopux*)
6338   case $LD in
6339   *-32|*"-32 ") libmagic=32-bit;;
6340   *-n32|*"-n32 ") libmagic=N32;;
6341   *-64|*"-64 ") libmagic=64-bit;;
6342   *) libmagic=never-match;;
6343   esac
6344   lt_cv_deplibs_check_method=pass_all
6345   ;;
6346
6347 # This must be Linux ELF.
6348 linux*)
6349   lt_cv_deplibs_check_method=pass_all
6350   ;;
6351
6352 netbsd*)
6353   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6355   else
6356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6357   fi
6358   ;;
6359
6360 newos6*)
6361   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6362   lt_cv_file_magic_cmd=/usr/bin/file
6363   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6364   ;;
6365
6366 nto-qnx*)
6367   lt_cv_deplibs_check_method=unknown
6368   ;;
6369
6370 openbsd*)
6371   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6373   else
6374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6375   fi
6376   ;;
6377
6378 osf3* | osf4* | osf5*)
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 sco3.2v5*)
6383   lt_cv_deplibs_check_method=pass_all
6384   ;;
6385
6386 solaris*)
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389
6390 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6391   case $host_vendor in
6392   motorola)
6393     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]'
6394     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6395     ;;
6396   ncr)
6397     lt_cv_deplibs_check_method=pass_all
6398     ;;
6399   sequent)
6400     lt_cv_file_magic_cmd='/bin/file'
6401     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6402     ;;
6403   sni)
6404     lt_cv_file_magic_cmd='/bin/file'
6405     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6406     lt_cv_file_magic_test_file=/lib/libc.so
6407     ;;
6408   siemens)
6409     lt_cv_deplibs_check_method=pass_all
6410     ;;
6411   esac
6412   ;;
6413
6414 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417 esac
6418
6419 fi
6420 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6421 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6422 file_magic_cmd=$lt_cv_file_magic_cmd
6423 deplibs_check_method=$lt_cv_deplibs_check_method
6424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6425
6426
6427
6428
6429 # If no C compiler was specified, use CC.
6430 LTCC=${LTCC-"$CC"}
6431
6432 # Allow CC to be a program name with arguments.
6433 compiler=$CC
6434
6435
6436 # Check whether --enable-libtool-lock was given.
6437 if test "${enable_libtool_lock+set}" = set; then
6438   enableval=$enable_libtool_lock;
6439 fi
6440
6441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442
6443 # Some flags need to be propagated to the compiler or linker for good
6444 # libtool support.
6445 case $host in
6446 ia64-*-hpux*)
6447   # Find out which ABI we are using.
6448   echo 'int i;' > conftest.$ac_ext
6449   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450   (eval $ac_compile) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; then
6454     case `/usr/bin/file conftest.$ac_objext` in
6455     *ELF-32*)
6456       HPUX_IA64_MODE="32"
6457       ;;
6458     *ELF-64*)
6459       HPUX_IA64_MODE="64"
6460       ;;
6461     esac
6462   fi
6463   rm -rf conftest*
6464   ;;
6465 *-*-irix6*)
6466   # Find out which ABI we are using.
6467   echo '#line 6467 "configure"' > conftest.$ac_ext
6468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469   (eval $ac_compile) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; then
6473    if test "$lt_cv_prog_gnu_ld" = yes; then
6474     case `/usr/bin/file conftest.$ac_objext` in
6475     *32-bit*)
6476       LD="${LD-ld} -melf32bsmip"
6477       ;;
6478     *N32*)
6479       LD="${LD-ld} -melf32bmipn32"
6480       ;;
6481     *64-bit*)
6482       LD="${LD-ld} -melf64bmip"
6483       ;;
6484     esac
6485    else
6486     case `/usr/bin/file conftest.$ac_objext` in
6487     *32-bit*)
6488       LD="${LD-ld} -32"
6489       ;;
6490     *N32*)
6491       LD="${LD-ld} -n32"
6492       ;;
6493     *64-bit*)
6494       LD="${LD-ld} -64"
6495       ;;
6496     esac
6497    fi
6498   fi
6499   rm -rf conftest*
6500   ;;
6501
6502 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6503   # Find out which ABI we are using.
6504   echo 'int i;' > conftest.$ac_ext
6505   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506   (eval $ac_compile) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; then
6510     case `/usr/bin/file conftest.o` in
6511     *32-bit*)
6512       case $host in
6513         x86_64-*linux*)
6514           LD="${LD-ld} -m elf_i386"
6515           ;;
6516         ppc64-*linux*|powerpc64-*linux*)
6517           LD="${LD-ld} -m elf32ppclinux"
6518           ;;
6519         s390x-*linux*)
6520           LD="${LD-ld} -m elf_s390"
6521           ;;
6522         sparc64-*linux*)
6523           LD="${LD-ld} -m elf32_sparc"
6524           ;;
6525       esac
6526       ;;
6527     *64-bit*)
6528       case $host in
6529         x86_64-*linux*)
6530           LD="${LD-ld} -m elf_x86_64"
6531           ;;
6532         ppc*-*linux*|powerpc*-*linux*)
6533           LD="${LD-ld} -m elf64ppc"
6534           ;;
6535         s390*-*linux*)
6536           LD="${LD-ld} -m elf64_s390"
6537           ;;
6538         sparc*-*linux*)
6539           LD="${LD-ld} -m elf64_sparc"
6540           ;;
6541       esac
6542       ;;
6543     esac
6544   fi
6545   rm -rf conftest*
6546   ;;
6547
6548 *-*-sco3.2v5*)
6549   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550   SAVE_CFLAGS="$CFLAGS"
6551   CFLAGS="$CFLAGS -belf"
6552   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6553 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6554 if test "${lt_cv_cc_needs_belf+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   ac_ext=c
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563      cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h.  */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h.  */
6569
6570 int
6571 main ()
6572 {
6573
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6580 case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_link") 2>conftest.er1
6586   ac_status=$?
6587   grep -v '^ *+' conftest.er1 >conftest.err
6588   rm -f conftest.er1
6589   cat conftest.err >&5
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } && {
6592          test -z "$ac_c_werror_flag" ||
6593          test ! -s conftest.err
6594        } && test -s conftest$ac_exeext &&
6595        $as_test_x conftest$ac_exeext; then
6596   lt_cv_cc_needs_belf=yes
6597 else
6598   echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601         lt_cv_cc_needs_belf=no
6602 fi
6603
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605       conftest$ac_exeext conftest.$ac_ext
6606      ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612 fi
6613 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6614 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6615   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6616     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6617     CFLAGS="$SAVE_CFLAGS"
6618   fi
6619   ;;
6620 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6621   if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   if test -n "$DLLTOOL"; then
6630   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 DLLTOOL=$ac_cv_prog_DLLTOOL
6650 if test -n "$DLLTOOL"; then
6651   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6652 echo "${ECHO_T}$DLLTOOL" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_DLLTOOL"; then
6661   ac_ct_DLLTOOL=$DLLTOOL
6662   # Extract the first word of "dlltool", so it can be a program name with args.
6663 set dummy dlltool; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$ac_ct_DLLTOOL"; then
6670   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6690 if test -n "$ac_ct_DLLTOOL"; then
6691   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6692 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_DLLTOOL" = x; then
6699     DLLTOOL="false"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet.  If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet.  If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711     DLLTOOL=$ac_ct_DLLTOOL
6712   fi
6713 else
6714   DLLTOOL="$ac_cv_prog_DLLTOOL"
6715 fi
6716
6717   if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}as; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_AS+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$AS"; then
6726   ac_cv_prog_AS="$AS" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_AS="${ac_tool_prefix}as"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 AS=$ac_cv_prog_AS
6746 if test -n "$AS"; then
6747   { echo "$as_me:$LINENO: result: $AS" >&5
6748 echo "${ECHO_T}$AS" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_AS"; then
6757   ac_ct_AS=$AS
6758   # Extract the first word of "as", so it can be a program name with args.
6759 set dummy as; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$ac_ct_AS"; then
6766   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_ac_ct_AS="as"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6786 if test -n "$ac_ct_AS"; then
6787   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6788 echo "${ECHO_T}$ac_ct_AS" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794   if test "x$ac_ct_AS" = x; then
6795     AS="false"
6796   else
6797     case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet.  If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet.  If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807     AS=$ac_ct_AS
6808   fi
6809 else
6810   AS="$ac_cv_prog_AS"
6811 fi
6812
6813   if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$OBJDUMP"; then
6822   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 OBJDUMP=$ac_cv_prog_OBJDUMP
6842 if test -n "$OBJDUMP"; then
6843   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6844 echo "${ECHO_T}$OBJDUMP" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_OBJDUMP"; then
6853   ac_ct_OBJDUMP=$OBJDUMP
6854   # Extract the first word of "objdump", so it can be a program name with args.
6855 set dummy objdump; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$ac_ct_OBJDUMP"; then
6862   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6882 if test -n "$ac_ct_OBJDUMP"; then
6883   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6884 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_OBJDUMP" = x; then
6891     OBJDUMP="false"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet.  If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet.  If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903     OBJDUMP=$ac_ct_OBJDUMP
6904   fi
6905 else
6906   OBJDUMP="$ac_cv_prog_OBJDUMP"
6907 fi
6908
6909   ;;
6910
6911 esac
6912
6913 need_locks="$enable_libtool_lock"
6914
6915
6916 ac_ext=c
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6923 # On Suns, sometimes $CPP names a directory.
6924 if test -n "$CPP" && test -d "$CPP"; then
6925   CPP=
6926 fi
6927 if test -z "$CPP"; then
6928   if test "${ac_cv_prog_CPP+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931       # Double quotes because CPP needs to be expanded
6932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6933     do
6934       ac_preproc_ok=false
6935 for ac_c_preproc_warn_flag in '' yes
6936 do
6937   # Use a header file that comes with gcc, so configuring glibc
6938   # with a fresh cross-compiler works.
6939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940   # <limits.h> exists even on freestanding compilers.
6941   # On the NeXT, cc -E runs the code through the compiler's parser,
6942   # not just through cpp. "Syntax error" is here to catch this case.
6943   cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 #ifdef __STDC__
6950 # include <limits.h>
6951 #else
6952 # include <assert.h>
6953 #endif
6954                      Syntax error
6955 _ACEOF
6956 if { (ac_try="$ac_cpp conftest.$ac_ext"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } >/dev/null && {
6969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6970          test ! -s conftest.err
6971        }; then
6972   :
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977   # Broken: fails on valid input.
6978 continue
6979 fi
6980
6981 rm -f conftest.err conftest.$ac_ext
6982
6983   # OK, works on sane cases.  Now check whether nonexistent headers
6984   # can be detected and how.
6985   cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 #include <ac_nonexistent.h>
6992 _ACEOF
6993 if { (ac_try="$ac_cpp conftest.$ac_ext"
6994 case "(($ac_try" in
6995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996   *) ac_try_echo=$ac_try;;
6997 esac
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } >/dev/null && {
7006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7007          test ! -s conftest.err
7008        }; then
7009   # Broken: success on invalid input.
7010 continue
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015   # Passes both tests.
7016 ac_preproc_ok=:
7017 break
7018 fi
7019
7020 rm -f conftest.err conftest.$ac_ext
7021
7022 done
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then
7026   break
7027 fi
7028
7029     done
7030     ac_cv_prog_CPP=$CPP
7031
7032 fi
7033   CPP=$ac_cv_prog_CPP
7034 else
7035   ac_cv_prog_CPP=$CPP
7036 fi
7037 { echo "$as_me:$LINENO: result: $CPP" >&5
7038 echo "${ECHO_T}$CPP" >&6; }
7039 ac_preproc_ok=false
7040 for ac_c_preproc_warn_flag in '' yes
7041 do
7042   # Use a header file that comes with gcc, so configuring glibc
7043   # with a fresh cross-compiler works.
7044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045   # <limits.h> exists even on freestanding compilers.
7046   # On the NeXT, cc -E runs the code through the compiler's parser,
7047   # not just through cpp. "Syntax error" is here to catch this case.
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054 #ifdef __STDC__
7055 # include <limits.h>
7056 #else
7057 # include <assert.h>
7058 #endif
7059                      Syntax error
7060 _ACEOF
7061 if { (ac_try="$ac_cpp conftest.$ac_ext"
7062 case "(($ac_try" in
7063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064   *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7068   ac_status=$?
7069   grep -v '^ *+' conftest.er1 >conftest.err
7070   rm -f conftest.er1
7071   cat conftest.err >&5
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } >/dev/null && {
7074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7075          test ! -s conftest.err
7076        }; then
7077   :
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082   # Broken: fails on valid input.
7083 continue
7084 fi
7085
7086 rm -f conftest.err conftest.$ac_ext
7087
7088   # OK, works on sane cases.  Now check whether nonexistent headers
7089   # can be detected and how.
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <ac_nonexistent.h>
7097 _ACEOF
7098 if { (ac_try="$ac_cpp conftest.$ac_ext"
7099 case "(($ac_try" in
7100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101   *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7105   ac_status=$?
7106   grep -v '^ *+' conftest.er1 >conftest.err
7107   rm -f conftest.er1
7108   cat conftest.err >&5
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); } >/dev/null && {
7111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7112          test ! -s conftest.err
7113        }; then
7114   # Broken: success on invalid input.
7115 continue
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120   # Passes both tests.
7121 ac_preproc_ok=:
7122 break
7123 fi
7124
7125 rm -f conftest.err conftest.$ac_ext
7126
7127 done
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.err conftest.$ac_ext
7130 if $ac_preproc_ok; then
7131   :
7132 else
7133   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&5
7135 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&2;}
7137    { (exit 1); exit 1; }; }
7138 fi
7139
7140 ac_ext=c
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146
7147 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7149 if test "${ac_cv_header_stdc+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 #include <stdlib.h>
7159 #include <stdarg.h>
7160 #include <string.h>
7161 #include <float.h>
7162
7163 int
7164 main ()
7165 {
7166
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178   (eval "$ac_compile") 2>conftest.er1
7179   ac_status=$?
7180   grep -v '^ *+' conftest.er1 >conftest.err
7181   rm -f conftest.er1
7182   cat conftest.err >&5
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } && {
7185          test -z "$ac_c_werror_flag" ||
7186          test ! -s conftest.err
7187        } && test -s conftest.$ac_objext; then
7188   ac_cv_header_stdc=yes
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193         ac_cv_header_stdc=no
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197
7198 if test $ac_cv_header_stdc = yes; then
7199   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7200   cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 #include <string.h>
7207
7208 _ACEOF
7209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210   $EGREP "memchr" >/dev/null 2>&1; then
7211   :
7212 else
7213   ac_cv_header_stdc=no
7214 fi
7215 rm -f conftest*
7216
7217 fi
7218
7219 if test $ac_cv_header_stdc = yes; then
7220   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221   cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227 #include <stdlib.h>
7228
7229 _ACEOF
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231   $EGREP "free" >/dev/null 2>&1; then
7232   :
7233 else
7234   ac_cv_header_stdc=no
7235 fi
7236 rm -f conftest*
7237
7238 fi
7239
7240 if test $ac_cv_header_stdc = yes; then
7241   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7242   if test "$cross_compiling" = yes; then
7243   :
7244 else
7245   cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251 #include <ctype.h>
7252 #include <stdlib.h>
7253 #if ((' ' & 0x0FF) == 0x020)
7254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7256 #else
7257 # define ISLOWER(c) \
7258                    (('a' <= (c) && (c) <= 'i') \
7259                      || ('j' <= (c) && (c) <= 'r') \
7260                      || ('s' <= (c) && (c) <= 'z'))
7261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262 #endif
7263
7264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7265 int
7266 main ()
7267 {
7268   int i;
7269   for (i = 0; i < 256; i++)
7270     if (XOR (islower (i), ISLOWER (i))
7271         || toupper (i) != TOUPPER (i))
7272       return 2;
7273   return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest$ac_exeext
7277 if { (ac_try="$ac_link"
7278 case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_link") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7287   { (case "(($ac_try" in
7288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289   *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292   (eval "$ac_try") 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   :
7297 else
7298   echo "$as_me: program exited with status $ac_status" >&5
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 ( exit $ac_status )
7303 ac_cv_header_stdc=no
7304 fi
7305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7306 fi
7307
7308
7309 fi
7310 fi
7311 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7312 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7313 if test $ac_cv_header_stdc = yes; then
7314
7315 cat >>confdefs.h <<\_ACEOF
7316 #define STDC_HEADERS 1
7317 _ACEOF
7318
7319 fi
7320
7321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7332                   inttypes.h stdint.h unistd.h
7333 do
7334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 $ac_includes_default
7347
7348 #include <$ac_header>
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357   (eval "$ac_compile") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest.$ac_objext; then
7367   eval "$as_ac_Header=yes"
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372         eval "$as_ac_Header=no"
7373 fi
7374
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 fi
7377 ac_res=`eval echo '${'$as_ac_Header'}'`
7378                { echo "$as_me:$LINENO: result: $ac_res" >&5
7379 echo "${ECHO_T}$ac_res" >&6; }
7380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7381   cat >>confdefs.h <<_ACEOF
7382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 _ACEOF
7384
7385 fi
7386
7387 done
7388
7389
7390
7391 for ac_header in dlfcn.h
7392 do
7393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 fi
7400 ac_res=`eval echo '${'$as_ac_Header'}'`
7401                { echo "$as_me:$LINENO: result: $ac_res" >&5
7402 echo "${ECHO_T}$ac_res" >&6; }
7403 else
7404   # Is the header compilable?
7405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h.  */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h.  */
7413 $ac_includes_default
7414 #include <$ac_header>
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420   *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423   (eval "$ac_compile") 2>conftest.er1
7424   ac_status=$?
7425   grep -v '^ *+' conftest.er1 >conftest.err
7426   rm -f conftest.er1
7427   cat conftest.err >&5
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } && {
7430          test -z "$ac_c_werror_flag" ||
7431          test ! -s conftest.err
7432        } && test -s conftest.$ac_objext; then
7433   ac_header_compiler=yes
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438         ac_header_compiler=no
7439 fi
7440
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7443 echo "${ECHO_T}$ac_header_compiler" >&6; }
7444
7445 # Is the header present?
7446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 #include <$ac_header>
7455 _ACEOF
7456 if { (ac_try="$ac_cpp conftest.$ac_ext"
7457 case "(($ac_try" in
7458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459   *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } >/dev/null && {
7469          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7470          test ! -s conftest.err
7471        }; then
7472   ac_header_preproc=yes
7473 else
7474   echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477   ac_header_preproc=no
7478 fi
7479
7480 rm -f conftest.err conftest.$ac_ext
7481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7482 echo "${ECHO_T}$ac_header_preproc" >&6; }
7483
7484 # So?  What about this header?
7485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7486   yes:no: )
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7491     ac_header_preproc=yes
7492     ;;
7493   no:yes:* )
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7506     ( cat <<\_ASBOX
7507 ## --------------------------------------------- ##
7508 ## Report this to <http://www.openldap.org/its/> ##
7509 ## --------------------------------------------- ##
7510 _ASBOX
7511      ) | sed "s/^/$as_me: WARNING:     /" >&2
7512     ;;
7513 esac
7514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   eval "$as_ac_Header=\$ac_header_preproc"
7520 fi
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522                { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7524
7525 fi
7526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7527   cat >>confdefs.h <<_ACEOF
7528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 _ACEOF
7530
7531 fi
7532
7533 done
7534
7535
7536 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7537
7538 # find the maximum length of command line arguments
7539 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544     i=0
7545   teststring="ABCD"
7546
7547   case $build_os in
7548   msdosdjgpp*)
7549     # On DJGPP, this test can blow up pretty badly due to problems in libc
7550     # (any single argument exceeding 2000 bytes causes a buffer overrun
7551     # during glob expansion).  Even if it were fixed, the result of this
7552     # check would be larger than it should be.
7553     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7554     ;;
7555
7556   gnu*)
7557     # Under GNU Hurd, this test is not required because there is
7558     # no limit to the length of command line arguments.
7559     # Libtool will interpret -1 as no limit whatsoever
7560     lt_cv_sys_max_cmd_len=-1;
7561     ;;
7562
7563   cygwin* | mingw*)
7564     # On Win9x/ME, this test blows up -- it succeeds, but takes
7565     # about 5 minutes as the teststring grows exponentially.
7566     # Worse, since 9x/ME are not pre-emptively multitasking,
7567     # you end up with a "frozen" computer, even though with patience
7568     # the test eventually succeeds (with a max line length of 256k).
7569     # Instead, let's just punt: use the minimum linelength reported by
7570     # all of the supported platforms: 8192 (on NT/2K/XP).
7571     lt_cv_sys_max_cmd_len=8192;
7572     ;;
7573
7574   amigaos*)
7575     # On AmigaOS with pdksh, this test takes hours, literally.
7576     # So we just punt and use a minimum line length of 8192.
7577     lt_cv_sys_max_cmd_len=8192;
7578     ;;
7579
7580   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7581     # This has been around since 386BSD, at least.  Likely further.
7582     if test -x /sbin/sysctl; then
7583       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7584     elif test -x /usr/sbin/sysctl; then
7585       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7586     else
7587       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7588     fi
7589     # And add a safety zone
7590     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7591     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7592     ;;
7593   osf*)
7594     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7595     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7596     # nice to cause kernel panics so lets avoid the loop below.
7597     # First set a reasonable default.
7598     lt_cv_sys_max_cmd_len=16384
7599     #
7600     if test -x /sbin/sysconfig; then
7601       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7602         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7603       esac
7604     fi
7605     ;;
7606   *)
7607     # If test is not a shell built-in, we'll probably end up computing a
7608     # maximum length that is only half of the actual maximum length, but
7609     # we can't tell.
7610     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7611     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7612                = "XX$teststring") >/dev/null 2>&1 &&
7613             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7614             lt_cv_sys_max_cmd_len=$new_result &&
7615             test $i != 17 # 1/2 MB should be enough
7616     do
7617       i=`expr $i + 1`
7618       teststring=$teststring$teststring
7619     done
7620     teststring=
7621     # Add a significant safety factor because C++ compilers can tack on massive
7622     # amounts of additional arguments before passing them to the linker.
7623     # It appears as though 1/2 is a usable value.
7624     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7625     ;;
7626   esac
7627
7628 fi
7629
7630 if test -n $lt_cv_sys_max_cmd_len ; then
7631   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7632 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7633 else
7634   { echo "$as_me:$LINENO: result: none" >&5
7635 echo "${ECHO_T}none" >&6; }
7636 fi
7637
7638
7639
7640
7641 # Check for command to grab the raw symbol name followed by C symbol from nm.
7642 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7643 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7644 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647
7648 # These are sane defaults that work on at least a few old systems.
7649 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7650
7651 # Character class describing NM global symbol codes.
7652 symcode='[BCDEGRST]'
7653
7654 # Regexp to match symbols that can be accessed directly from C.
7655 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7656
7657 # Transform an extracted symbol line into a proper C declaration
7658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7659
7660 # Transform an extracted symbol line into symbol name and symbol address
7661 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'"
7662
7663 # Define system-specific variables.
7664 case $host_os in
7665 aix*)
7666   symcode='[BCDT]'
7667   ;;
7668 cygwin* | mingw* | pw32*)
7669   symcode='[ABCDGISTW]'
7670   ;;
7671 hpux*) # Its linker distinguishes data from code symbols
7672   if test "$host_cpu" = ia64; then
7673     symcode='[ABCDEGRST]'
7674   fi
7675   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7676   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'"
7677   ;;
7678 linux*)
7679   if test "$host_cpu" = ia64; then
7680     symcode='[ABCDGIRSTW]'
7681     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7682     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'"
7683   fi
7684   ;;
7685 irix* | nonstopux*)
7686   symcode='[BCDEGRST]'
7687   ;;
7688 osf*)
7689   symcode='[BCDEGQRST]'
7690   ;;
7691 solaris* | sysv5*)
7692   symcode='[BDRT]'
7693   ;;
7694 sysv4)
7695   symcode='[DFNSTU]'
7696   ;;
7697 esac
7698
7699 # Handle CRLF in mingw tool chain
7700 opt_cr=
7701 case $build_os in
7702 mingw*)
7703   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7704   ;;
7705 esac
7706
7707 # If we're using GNU nm, then use its standard symbol codes.
7708 case `$NM -V 2>&1` in
7709 *GNU* | *'with BFD'*)
7710   symcode='[ABCDGIRSTW]' ;;
7711 esac
7712
7713 # Try without a prefix undercore, then with it.
7714 for ac_symprfx in "" "_"; do
7715
7716   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7717   symxfrm="\\1 $ac_symprfx\\2 \\2"
7718
7719   # Write the raw and C identifiers.
7720   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7721
7722   # Check to see that the pipe works correctly.
7723   pipe_works=no
7724
7725   rm -f conftest*
7726   cat > conftest.$ac_ext <<EOF
7727 #ifdef __cplusplus
7728 extern "C" {
7729 #endif
7730 char nm_test_var;
7731 void nm_test_func(){}
7732 #ifdef __cplusplus
7733 }
7734 #endif
7735 int main(){nm_test_var='a';nm_test_func();return(0);}
7736 EOF
7737
7738   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739   (eval $ac_compile) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; then
7743     # Now try to grab the symbols.
7744     nlist=conftest.nm
7745     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7746   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } && test -s "$nlist"; then
7750       # Try sorting and uniquifying the output.
7751       if sort "$nlist" | uniq > "$nlist"T; then
7752         mv -f "$nlist"T "$nlist"
7753       else
7754         rm -f "$nlist"T
7755       fi
7756
7757       # Make sure that we snagged all the symbols we need.
7758       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7759         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7760           cat <<EOF > conftest.$ac_ext
7761 #ifdef __cplusplus
7762 extern "C" {
7763 #endif
7764
7765 EOF
7766           # Now generate the symbol file.
7767           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7768
7769           cat <<EOF >> conftest.$ac_ext
7770 #if defined (__STDC__) && __STDC__
7771 # define lt_ptr_t void *
7772 #else
7773 # define lt_ptr_t char *
7774 # define const
7775 #endif
7776
7777 /* The mapping between symbol names and symbols. */
7778 const struct {
7779   const char *name;
7780   lt_ptr_t address;
7781 }
7782 lt_preloaded_symbols[] =
7783 {
7784 EOF
7785           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7786           cat <<\EOF >> conftest.$ac_ext
7787   {0, (lt_ptr_t) 0}
7788 };
7789
7790 #ifdef __cplusplus
7791 }
7792 #endif
7793 EOF
7794           # Now try linking the two files.
7795           mv conftest.$ac_objext conftstm.$ac_objext
7796           lt_save_LIBS="$LIBS"
7797           lt_save_CFLAGS="$CFLAGS"
7798           LIBS="conftstm.$ac_objext"
7799           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801   (eval $ac_link) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7805             pipe_works=yes
7806           fi
7807           LIBS="$lt_save_LIBS"
7808           CFLAGS="$lt_save_CFLAGS"
7809         else
7810           echo "cannot find nm_test_func in $nlist" >&5
7811         fi
7812       else
7813         echo "cannot find nm_test_var in $nlist" >&5
7814       fi
7815     else
7816       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7817     fi
7818   else
7819     echo "$progname: failed program was:" >&5
7820     cat conftest.$ac_ext >&5
7821   fi
7822   rm -f conftest* conftst*
7823
7824   # Do not use the global_symbol_pipe unless it works.
7825   if test "$pipe_works" = yes; then
7826     break
7827   else
7828     lt_cv_sys_global_symbol_pipe=
7829   fi
7830 done
7831
7832 fi
7833
7834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835   lt_cv_sys_global_symbol_to_cdecl=
7836 fi
7837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838   { echo "$as_me:$LINENO: result: failed" >&5
7839 echo "${ECHO_T}failed" >&6; }
7840 else
7841   { echo "$as_me:$LINENO: result: ok" >&5
7842 echo "${ECHO_T}ok" >&6; }
7843 fi
7844
7845 { echo "$as_me:$LINENO: checking for objdir" >&5
7846 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7847 if test "${lt_cv_objdir+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   rm -f .libs 2>/dev/null
7851 mkdir .libs 2>/dev/null
7852 if test -d .libs; then
7853   lt_cv_objdir=.libs
7854 else
7855   # MS-DOS does not allow filenames that begin with a dot.
7856   lt_cv_objdir=_libs
7857 fi
7858 rmdir .libs 2>/dev/null
7859 fi
7860 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7861 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7862 objdir=$lt_cv_objdir
7863
7864
7865
7866
7867
7868 case $host_os in
7869 aix3*)
7870   # AIX sometimes has problems with the GCC collect2 program.  For some
7871   # reason, if we set the COLLECT_NAMES environment variable, the problems
7872   # vanish in a puff of smoke.
7873   if test "X${COLLECT_NAMES+set}" != Xset; then
7874     COLLECT_NAMES=
7875     export COLLECT_NAMES
7876   fi
7877   ;;
7878 esac
7879
7880 # Sed substitution that helps us do robust quoting.  It backslashifies
7881 # metacharacters that are still active within double-quoted strings.
7882 Xsed='sed -e 1s/^X//'
7883 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7884
7885 # Same as above, but do not quote variable references.
7886 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7887
7888 # Sed substitution to delay expansion of an escaped shell variable in a
7889 # double_quote_subst'ed string.
7890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7891
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7894
7895 # Constants:
7896 rm="rm -f"
7897
7898 # Global variables:
7899 default_ofile=libtool
7900 can_build_shared=yes
7901
7902 # All known linkers require a `.a' archive for static linking (except MSVC,
7903 # which needs '.lib').
7904 libext=a
7905 ltmain="$ac_aux_dir/ltmain.sh"
7906 ofile="$default_ofile"
7907 with_gnu_ld="$lt_cv_prog_gnu_ld"
7908
7909 if test -n "$ac_tool_prefix"; then
7910   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}ar; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_AR+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   if test -n "$AR"; then
7918   ac_cv_prog_AR="$AR" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925   for ac_exec_ext in '' $ac_executable_extensions; do
7926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927     ac_cv_prog_AR="${ac_tool_prefix}ar"
7928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 AR=$ac_cv_prog_AR
7938 if test -n "$AR"; then
7939   { echo "$as_me:$LINENO: result: $AR" >&5
7940 echo "${ECHO_T}$AR" >&6; }
7941 else
7942   { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_AR"; then
7949   ac_ct_AR=$AR
7950   # Extract the first word of "ar", so it can be a program name with args.
7951 set dummy ar; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   if test -n "$ac_ct_AR"; then
7958   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965   for ac_exec_ext in '' $ac_executable_extensions; do
7966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967     ac_cv_prog_ac_ct_AR="ar"
7968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7978 if test -n "$ac_ct_AR"; then
7979   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7980 echo "${ECHO_T}$ac_ct_AR" >&6; }
7981 else
7982   { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7984 fi
7985
7986   if test "x$ac_ct_AR" = x; then
7987     AR="false"
7988   else
7989     case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7992 whose name does not start with the host triplet.  If you think this
7993 configuration is useful to you, please write to autoconf@gnu.org." >&5
7994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7995 whose name does not start with the host triplet.  If you think this
7996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7997 ac_tool_warned=yes ;;
7998 esac
7999     AR=$ac_ct_AR
8000   fi
8001 else
8002   AR="$ac_cv_prog_AR"
8003 fi
8004
8005 if test -n "$ac_tool_prefix"; then
8006   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_RANLIB+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   if test -n "$RANLIB"; then
8014   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021   for ac_exec_ext in '' $ac_executable_extensions; do
8022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 RANLIB=$ac_cv_prog_RANLIB
8034 if test -n "$RANLIB"; then
8035   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8036 echo "${ECHO_T}$RANLIB" >&6; }
8037 else
8038   { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8040 fi
8041
8042
8043 fi
8044 if test -z "$ac_cv_prog_RANLIB"; then
8045   ac_ct_RANLIB=$RANLIB
8046   # Extract the first word of "ranlib", so it can be a program name with args.
8047 set dummy ranlib; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   if test -n "$ac_ct_RANLIB"; then
8054   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059   IFS=$as_save_IFS
8060   test -z "$as_dir" && as_dir=.
8061   for ac_exec_ext in '' $ac_executable_extensions; do
8062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063     ac_cv_prog_ac_ct_RANLIB="ranlib"
8064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065     break 2
8066   fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071 fi
8072 fi
8073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8074 if test -n "$ac_ct_RANLIB"; then
8075   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8077 else
8078   { echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6; }
8080 fi
8081
8082   if test "x$ac_ct_RANLIB" = x; then
8083     RANLIB=":"
8084   else
8085     case $cross_compiling:$ac_tool_warned in
8086 yes:)
8087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8088 whose name does not start with the host triplet.  If you think this
8089 configuration is useful to you, please write to autoconf@gnu.org." >&5
8090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8091 whose name does not start with the host triplet.  If you think this
8092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8093 ac_tool_warned=yes ;;
8094 esac
8095     RANLIB=$ac_ct_RANLIB
8096   fi
8097 else
8098   RANLIB="$ac_cv_prog_RANLIB"
8099 fi
8100
8101 if test -n "$ac_tool_prefix"; then
8102   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8103 set dummy ${ac_tool_prefix}strip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_prog_STRIP+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   if test -n "$STRIP"; then
8110   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115   IFS=$as_save_IFS
8116   test -z "$as_dir" && as_dir=.
8117   for ac_exec_ext in '' $ac_executable_extensions; do
8118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121     break 2
8122   fi
8123 done
8124 done
8125 IFS=$as_save_IFS
8126
8127 fi
8128 fi
8129 STRIP=$ac_cv_prog_STRIP
8130 if test -n "$STRIP"; then
8131   { echo "$as_me:$LINENO: result: $STRIP" >&5
8132 echo "${ECHO_T}$STRIP" >&6; }
8133 else
8134   { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8136 fi
8137
8138
8139 fi
8140 if test -z "$ac_cv_prog_STRIP"; then
8141   ac_ct_STRIP=$STRIP
8142   # Extract the first word of "strip", so it can be a program name with args.
8143 set dummy strip; ac_word=$2
8144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   if test -n "$ac_ct_STRIP"; then
8150   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155   IFS=$as_save_IFS
8156   test -z "$as_dir" && as_dir=.
8157   for ac_exec_ext in '' $ac_executable_extensions; do
8158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159     ac_cv_prog_ac_ct_STRIP="strip"
8160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8161     break 2
8162   fi
8163 done
8164 done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8170 if test -n "$ac_ct_STRIP"; then
8171   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8172 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8173 else
8174   { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8176 fi
8177
8178   if test "x$ac_ct_STRIP" = x; then
8179     STRIP=":"
8180   else
8181     case $cross_compiling:$ac_tool_warned in
8182 yes:)
8183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8184 whose name does not start with the host triplet.  If you think this
8185 configuration is useful to you, please write to autoconf@gnu.org." >&5
8186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8187 whose name does not start with the host triplet.  If you think this
8188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8189 ac_tool_warned=yes ;;
8190 esac
8191     STRIP=$ac_ct_STRIP
8192   fi
8193 else
8194   STRIP="$ac_cv_prog_STRIP"
8195 fi
8196
8197
8198 old_CC="$CC"
8199 old_CFLAGS="$CFLAGS"
8200
8201 # Set sane defaults for various variables
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8204 test -z "$AS" && AS=as
8205 test -z "$CC" && CC=cc
8206 test -z "$LTCC" && LTCC=$CC
8207 test -z "$DLLTOOL" && DLLTOOL=dlltool
8208 test -z "$LD" && LD=ld
8209 test -z "$LN_S" && LN_S="ln -s"
8210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211 test -z "$NM" && NM=nm
8212 test -z "$SED" && SED=sed
8213 test -z "$OBJDUMP" && OBJDUMP=objdump
8214 test -z "$RANLIB" && RANLIB=:
8215 test -z "$STRIP" && STRIP=:
8216 test -z "$ac_objext" && ac_objext=o
8217
8218 # Determine commands to create old-style static archives.
8219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8220 old_postinstall_cmds='chmod 644 $oldlib'
8221 old_postuninstall_cmds=
8222
8223 if test -n "$RANLIB"; then
8224   case $host_os in
8225   openbsd*)
8226     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8227     ;;
8228   *)
8229     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8230     ;;
8231   esac
8232   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8233 fi
8234
8235 for cc_temp in $compiler""; do
8236   case $cc_temp in
8237     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8238     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8239     \-*) ;;
8240     *) break;;
8241   esac
8242 done
8243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8244
8245
8246 # Only perform the check for file, if the check method requires it
8247 case $deplibs_check_method in
8248 file_magic*)
8249   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8250     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8251 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   case $MAGIC_CMD in
8256 [\\/*] |  ?:[\\/]*)
8257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258   ;;
8259 *)
8260   lt_save_MAGIC_CMD="$MAGIC_CMD"
8261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263   for ac_dir in $ac_dummy; do
8264     IFS="$lt_save_ifs"
8265     test -z "$ac_dir" && ac_dir=.
8266     if test -f $ac_dir/${ac_tool_prefix}file; then
8267       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8268       if test -n "$file_magic_test_file"; then
8269         case $deplibs_check_method in
8270         "file_magic "*)
8271           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274             $EGREP "$file_magic_regex" > /dev/null; then
8275             :
8276           else
8277             cat <<EOF 1>&2
8278
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such.  This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem.  Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8287
8288 EOF
8289           fi ;;
8290         esac
8291       fi
8292       break
8293     fi
8294   done
8295   IFS="$lt_save_ifs"
8296   MAGIC_CMD="$lt_save_MAGIC_CMD"
8297   ;;
8298 esac
8299 fi
8300
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8305 else
8306   { echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6; }
8308 fi
8309
8310 if test -z "$lt_cv_path_MAGIC_CMD"; then
8311   if test -n "$ac_tool_prefix"; then
8312     { echo "$as_me:$LINENO: checking for file" >&5
8313 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   case $MAGIC_CMD in
8318 [\\/*] |  ?:[\\/]*)
8319   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8320   ;;
8321 *)
8322   lt_save_MAGIC_CMD="$MAGIC_CMD"
8323   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8324   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8325   for ac_dir in $ac_dummy; do
8326     IFS="$lt_save_ifs"
8327     test -z "$ac_dir" && ac_dir=.
8328     if test -f $ac_dir/file; then
8329       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8330       if test -n "$file_magic_test_file"; then
8331         case $deplibs_check_method in
8332         "file_magic "*)
8333           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8334           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8335           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8336             $EGREP "$file_magic_regex" > /dev/null; then
8337             :
8338           else
8339             cat <<EOF 1>&2
8340
8341 *** Warning: the command libtool uses to detect shared libraries,
8342 *** $file_magic_cmd, produces output that libtool cannot recognize.
8343 *** The result is that libtool may fail to recognize shared libraries
8344 *** as such.  This will affect the creation of libtool libraries that
8345 *** depend on shared libraries, but programs linked with such libtool
8346 *** libraries will work regardless of this problem.  Nevertheless, you
8347 *** may want to report the problem to your system manager and/or to
8348 *** bug-libtool@gnu.org
8349
8350 EOF
8351           fi ;;
8352         esac
8353       fi
8354       break
8355     fi
8356   done
8357   IFS="$lt_save_ifs"
8358   MAGIC_CMD="$lt_save_MAGIC_CMD"
8359   ;;
8360 esac
8361 fi
8362
8363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364 if test -n "$MAGIC_CMD"; then
8365   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8367 else
8368   { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8370 fi
8371
8372   else
8373     MAGIC_CMD=:
8374   fi
8375 fi
8376
8377   fi
8378   ;;
8379 esac
8380
8381 enable_dlopen=yes
8382 enable_win32_dll=yes
8383
8384 # Check whether --enable-libtool-lock was given.
8385 if test "${enable_libtool_lock+set}" = set; then
8386   enableval=$enable_libtool_lock;
8387 fi
8388
8389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8390
8391
8392 # Check whether --with-pic was given.
8393 if test "${with_pic+set}" = set; then
8394   withval=$with_pic; pic_mode="$withval"
8395 else
8396   pic_mode=default
8397 fi
8398
8399 test -z "$pic_mode" && pic_mode=default
8400
8401 # Use C for the default configuration in the libtool script
8402 tagname=
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411 # Source file extension for C test sources.
8412 ac_ext=c
8413
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8417
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;\n"
8420
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}\n'
8423
8424
8425 # If no C compiler was specified, use CC.
8426 LTCC=${LTCC-"$CC"}
8427
8428 # Allow CC to be a program name with arguments.
8429 compiler=$CC
8430
8431
8432 # save warnings/boilerplate of simple test code
8433 ac_outfile=conftest.$ac_objext
8434 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8436 _lt_compiler_boilerplate=`cat conftest.err`
8437 $rm conftest*
8438
8439 ac_outfile=conftest.$ac_objext
8440 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8442 _lt_linker_boilerplate=`cat conftest.err`
8443 $rm conftest*
8444
8445
8446 #
8447 # Check for any special shared library compilation flags.
8448 #
8449 lt_prog_cc_shlib=
8450 if test "$GCC" = no; then
8451   case $host_os in
8452   sco3.2v5*)
8453     lt_prog_cc_shlib='-belf'
8454     ;;
8455   esac
8456 fi
8457 if test -n "$lt_prog_cc_shlib"; then
8458   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8459 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8460   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8461   else
8462     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8463 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8464     lt_cv_prog_cc_can_build_shared=no
8465   fi
8466 fi
8467
8468
8469 #
8470 # Check to make sure the static flag actually works.
8471 #
8472 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8473 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8474 if test "${lt_prog_compiler_static_works+set}" = set; then
8475   echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477   lt_prog_compiler_static_works=no
8478    save_LDFLAGS="$LDFLAGS"
8479    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8480    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8481    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8482      # The linker can only warn and ignore the option if not recognized
8483      # So say no if there are warnings
8484      if test -s conftest.err; then
8485        # Append any errors to the config.log.
8486        cat conftest.err 1>&5
8487        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8488        $SED '/^$/d' conftest.err >conftest.er2
8489        if diff conftest.exp conftest.er2 >/dev/null; then
8490          lt_prog_compiler_static_works=yes
8491        fi
8492      else
8493        lt_prog_compiler_static_works=yes
8494      fi
8495    fi
8496    $rm conftest*
8497    LDFLAGS="$save_LDFLAGS"
8498
8499 fi
8500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8501 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8502
8503 if test x"$lt_prog_compiler_static_works" = xyes; then
8504     :
8505 else
8506     lt_prog_compiler_static=
8507 fi
8508
8509
8510
8511
8512 lt_prog_compiler_no_builtin_flag=
8513
8514 if test "$GCC" = yes; then
8515   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8516
8517
8518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   lt_cv_prog_compiler_rtti_exceptions=no
8524   ac_outfile=conftest.$ac_objext
8525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8526    lt_compiler_flag="-fno-rtti -fno-exceptions"
8527    # Insert the option either (1) after the last *FLAGS variable, or
8528    # (2) before a word containing "conftest.", or (3) at the end.
8529    # Note that $ac_compile itself does not contain backslashes and begins
8530    # with a dollar sign (not a hyphen), so the echo should work correctly.
8531    # The option is referenced via a variable to avoid confusing sed.
8532    lt_compile=`echo "$ac_compile" | $SED \
8533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535    -e 's:$: $lt_compiler_flag:'`
8536    (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
8537    (eval "$lt_compile" 2>conftest.err)
8538    ac_status=$?
8539    cat conftest.err >&5
8540    echo "$as_me:8540: \$? = $ac_status" >&5
8541    if (exit $ac_status) && test -s "$ac_outfile"; then
8542      # The compiler can only warn and ignore the option if not recognized
8543      # So say no if there are warnings other than the usual output.
8544      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8545      $SED '/^$/d' conftest.err >conftest.er2
8546      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8547        lt_cv_prog_compiler_rtti_exceptions=yes
8548      fi
8549    fi
8550    $rm conftest*
8551
8552 fi
8553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8555
8556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8557     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8558 else
8559     :
8560 fi
8561
8562 fi
8563
8564 lt_prog_compiler_wl=
8565 lt_prog_compiler_pic=
8566 lt_prog_compiler_static=
8567
8568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8570
8571   if test "$GCC" = yes; then
8572     lt_prog_compiler_wl='-Wl,'
8573     lt_prog_compiler_static='-static'
8574
8575     case $host_os in
8576       aix*)
8577       # All AIX code is PIC.
8578       if test "$host_cpu" = ia64; then
8579         # AIX 5 now supports IA64 processor
8580         lt_prog_compiler_static='-Bstatic'
8581       fi
8582       ;;
8583
8584     amigaos*)
8585       # FIXME: we need at least 68020 code to build shared libraries, but
8586       # adding the `-m68020' flag to GCC prevents building anything better,
8587       # like `-m68040'.
8588       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8589       ;;
8590
8591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8592       # PIC is the default for these OSes.
8593       ;;
8594
8595     mingw* | pw32* | os2*)
8596       # This hack is so that the source file can tell whether it is being
8597       # built for inclusion in a dll (and should export symbols for example).
8598       lt_prog_compiler_pic='-DDLL_EXPORT'
8599       ;;
8600
8601     darwin* | rhapsody*)
8602       # PIC is the default on this platform
8603       # Common symbols not allowed in MH_DYLIB files
8604       lt_prog_compiler_pic='-fno-common'
8605       ;;
8606
8607     msdosdjgpp*)
8608       # Just because we use GCC doesn't mean we suddenly get shared libraries
8609       # on systems that don't support them.
8610       lt_prog_compiler_can_build_shared=no
8611       enable_shared=no
8612       ;;
8613
8614     sysv4*MP*)
8615       if test -d /usr/nec; then
8616         lt_prog_compiler_pic=-Kconform_pic
8617       fi
8618       ;;
8619
8620     hpux*)
8621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8622       # not for PA HP-UX.
8623       case $host_cpu in
8624       hppa*64*|ia64*)
8625         # +Z the default
8626         ;;
8627       *)
8628         lt_prog_compiler_pic='-fPIC'
8629         ;;
8630       esac
8631       ;;
8632
8633     *)
8634       lt_prog_compiler_pic='-fPIC'
8635       ;;
8636     esac
8637   else
8638     # PORTME Check for flag to pass linker flags through the system compiler.
8639     case $host_os in
8640     aix*)
8641       lt_prog_compiler_wl='-Wl,'
8642       if test "$host_cpu" = ia64; then
8643         # AIX 5 now supports IA64 processor
8644         lt_prog_compiler_static='-Bstatic'
8645       else
8646         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8647       fi
8648       ;;
8649       darwin*)
8650         # PIC is the default on this platform
8651         # Common symbols not allowed in MH_DYLIB files
8652        case $cc_basename in
8653          xlc*)
8654          lt_prog_compiler_pic='-qnocommon'
8655          lt_prog_compiler_wl='-Wl,'
8656          ;;
8657        esac
8658        ;;
8659
8660     mingw* | pw32* | os2*)
8661       # This hack is so that the source file can tell whether it is being
8662       # built for inclusion in a dll (and should export symbols for example).
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       ;;
8665
8666     hpux9* | hpux10* | hpux11*)
8667       lt_prog_compiler_wl='-Wl,'
8668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669       # not for PA HP-UX.
8670       case $host_cpu in
8671       hppa*64*|ia64*)
8672         # +Z the default
8673         ;;
8674       *)
8675         lt_prog_compiler_pic='+Z'
8676         ;;
8677       esac
8678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679       lt_prog_compiler_static='${wl}-a ${wl}archive'
8680       ;;
8681
8682     irix5* | irix6* | nonstopux*)
8683       lt_prog_compiler_wl='-Wl,'
8684       # PIC (with -KPIC) is the default.
8685       lt_prog_compiler_static='-non_shared'
8686       ;;
8687
8688     newsos6)
8689       lt_prog_compiler_pic='-KPIC'
8690       lt_prog_compiler_static='-Bstatic'
8691       ;;
8692
8693     linux*)
8694       case $cc_basename in
8695       icc* | ecc*)
8696         lt_prog_compiler_wl='-Wl,'
8697         lt_prog_compiler_pic='-KPIC'
8698         lt_prog_compiler_static='-static'
8699         ;;
8700       pgcc* | pgf77* | pgf90* | pgf95*)
8701         # Portland Group compilers (*not* the Pentium gcc compiler,
8702         # which looks to be a dead project)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='-fpic'
8705         lt_prog_compiler_static='-Bstatic'
8706         ;;
8707       ccc*)
8708         lt_prog_compiler_wl='-Wl,'
8709         # All Alpha code is PIC.
8710         lt_prog_compiler_static='-non_shared'
8711         ;;
8712       esac
8713       ;;
8714
8715     osf3* | osf4* | osf5*)
8716       lt_prog_compiler_wl='-Wl,'
8717       # All OSF/1 code is PIC.
8718       lt_prog_compiler_static='-non_shared'
8719       ;;
8720
8721     sco3.2v5*)
8722       lt_prog_compiler_pic='-Kpic'
8723       lt_prog_compiler_static='-dn'
8724       ;;
8725
8726     solaris*)
8727       lt_prog_compiler_pic='-KPIC'
8728       lt_prog_compiler_static='-Bstatic'
8729       case $cc_basename in
8730       f77* | f90* | f95*)
8731         lt_prog_compiler_wl='-Qoption ld ';;
8732       *)
8733         lt_prog_compiler_wl='-Wl,';;
8734       esac
8735       ;;
8736
8737     sunos4*)
8738       lt_prog_compiler_wl='-Qoption ld '
8739       lt_prog_compiler_pic='-PIC'
8740       lt_prog_compiler_static='-Bstatic'
8741       ;;
8742
8743     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8744       lt_prog_compiler_wl='-Wl,'
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       ;;
8748
8749     sysv4*MP*)
8750       if test -d /usr/nec ;then
8751         lt_prog_compiler_pic='-Kconform_pic'
8752         lt_prog_compiler_static='-Bstatic'
8753       fi
8754       ;;
8755
8756     unicos*)
8757       lt_prog_compiler_wl='-Wl,'
8758       lt_prog_compiler_can_build_shared=no
8759       ;;
8760
8761     uts4*)
8762       lt_prog_compiler_pic='-pic'
8763       lt_prog_compiler_static='-Bstatic'
8764       ;;
8765
8766     *)
8767       lt_prog_compiler_can_build_shared=no
8768       ;;
8769     esac
8770   fi
8771
8772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8773 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8774
8775 #
8776 # Check to make sure the PIC flag actually works.
8777 #
8778 if test -n "$lt_prog_compiler_pic"; then
8779
8780 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8782 if test "${lt_prog_compiler_pic_works+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   lt_prog_compiler_pic_works=no
8786   ac_outfile=conftest.$ac_objext
8787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8789    # Insert the option either (1) after the last *FLAGS variable, or
8790    # (2) before a word containing "conftest.", or (3) at the end.
8791    # Note that $ac_compile itself does not contain backslashes and begins
8792    # with a dollar sign (not a hyphen), so the echo should work correctly.
8793    # The option is referenced via a variable to avoid confusing sed.
8794    lt_compile=`echo "$ac_compile" | $SED \
8795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797    -e 's:$: $lt_compiler_flag:'`
8798    (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799    (eval "$lt_compile" 2>conftest.err)
8800    ac_status=$?
8801    cat conftest.err >&5
8802    echo "$as_me:8802: \$? = $ac_status" >&5
8803    if (exit $ac_status) && test -s "$ac_outfile"; then
8804      # The compiler can only warn and ignore the option if not recognized
8805      # So say no if there are warnings other than the usual output.
8806      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8807      $SED '/^$/d' conftest.err >conftest.er2
8808      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8809        lt_prog_compiler_pic_works=yes
8810      fi
8811    fi
8812    $rm conftest*
8813
8814 fi
8815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8816 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8817
8818 if test x"$lt_prog_compiler_pic_works" = xyes; then
8819     case $lt_prog_compiler_pic in
8820      "" | " "*) ;;
8821      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8822      esac
8823 else
8824     lt_prog_compiler_pic=
8825      lt_prog_compiler_can_build_shared=no
8826 fi
8827
8828 fi
8829 case $host_os in
8830   # For platforms which do not support PIC, -DPIC is meaningless:
8831   *djgpp*)
8832     lt_prog_compiler_pic=
8833     ;;
8834   *)
8835     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8836     ;;
8837 esac
8838
8839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   lt_cv_prog_compiler_c_o=no
8845    $rm -r conftest 2>/dev/null
8846    mkdir conftest
8847    cd conftest
8848    mkdir out
8849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851    lt_compiler_flag="-o out/conftest2.$ac_objext"
8852    # Insert the option either (1) after the last *FLAGS variable, or
8853    # (2) before a word containing "conftest.", or (3) at the end.
8854    # Note that $ac_compile itself does not contain backslashes and begins
8855    # with a dollar sign (not a hyphen), so the echo should work correctly.
8856    lt_compile=`echo "$ac_compile" | $SED \
8857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859    -e 's:$: $lt_compiler_flag:'`
8860    (eval echo "\"\$as_me:8860: $lt_compile\"" >&5)
8861    (eval "$lt_compile" 2>out/conftest.err)
8862    ac_status=$?
8863    cat out/conftest.err >&5
8864    echo "$as_me:8864: \$? = $ac_status" >&5
8865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866    then
8867      # The compiler can only warn and ignore the option if not recognized
8868      # So say no if there are warnings
8869      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8870      $SED '/^$/d' out/conftest.err >out/conftest.er2
8871      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872        lt_cv_prog_compiler_c_o=yes
8873      fi
8874    fi
8875    chmod u+w . 2>&5
8876    $rm conftest*
8877    # SGI C++ compiler will create directory out/ii_files/ for
8878    # template instantiation
8879    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8880    $rm out/* && rmdir out
8881    cd ..
8882    rmdir conftest
8883    $rm conftest*
8884
8885 fi
8886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892   # do not overwrite the value of need_locks provided by the user
8893   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8895   hard_links=yes
8896   $rm conftest*
8897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898   touch conftest.a
8899   ln conftest.a conftest.b 2>&5 || hard_links=no
8900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901   { echo "$as_me:$LINENO: result: $hard_links" >&5
8902 echo "${ECHO_T}$hard_links" >&6; }
8903   if test "$hard_links" = no; then
8904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8906     need_locks=warn
8907   fi
8908 else
8909   need_locks=no
8910 fi
8911
8912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8914
8915   runpath_var=
8916   allow_undefined_flag=
8917   enable_shared_with_static_runtimes=no
8918   archive_cmds=
8919   archive_expsym_cmds=
8920   old_archive_From_new_cmds=
8921   old_archive_from_expsyms_cmds=
8922   export_dynamic_flag_spec=
8923   whole_archive_flag_spec=
8924   thread_safe_flag_spec=
8925   hardcode_libdir_flag_spec=
8926   hardcode_libdir_flag_spec_ld=
8927   hardcode_libdir_separator=
8928   hardcode_direct=no
8929   hardcode_minus_L=no
8930   hardcode_shlibpath_var=unsupported
8931   link_all_deplibs=unknown
8932   hardcode_automatic=no
8933   module_cmds=
8934   module_expsym_cmds=
8935   always_export_symbols=no
8936   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8937   # include_expsyms should be a list of space-separated symbols to be *always*
8938   # included in the symbol list
8939   include_expsyms=
8940   # exclude_expsyms can be an extended regexp of symbols to exclude
8941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8943   # as well as any symbol that contains `d'.
8944   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8946   # platforms (ab)use it in PIC code, but their linkers get confused if
8947   # the symbol is explicitly referenced.  Since portable code cannot
8948   # rely on this symbol name, it's probably fine to never include it in
8949   # preloaded symbol tables.
8950   extract_expsyms_cmds=
8951   # Just being paranoid about ensuring that cc_basename is set.
8952   for cc_temp in $compiler""; do
8953   case $cc_temp in
8954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8956     \-*) ;;
8957     *) break;;
8958   esac
8959 done
8960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8961
8962   case $host_os in
8963   cygwin* | mingw* | pw32*)
8964     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965     # When not using gcc, we currently assume that we are using
8966     # Microsoft Visual C++.
8967     if test "$GCC" != yes; then
8968       with_gnu_ld=no
8969     fi
8970     ;;
8971   openbsd*)
8972     with_gnu_ld=no
8973     ;;
8974   esac
8975
8976   ld_shlibs=yes
8977   if test "$with_gnu_ld" = yes; then
8978     # If archive_cmds runs LD, not CC, wlarc should be empty
8979     wlarc='${wl}'
8980
8981     # Set some defaults for GNU ld with shared library support. These
8982     # are reset later if shared libraries are not supported. Putting them
8983     # here allows them to be overridden if necessary.
8984     runpath_var=LD_RUN_PATH
8985     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8986     export_dynamic_flag_spec='${wl}--export-dynamic'
8987     # ancient GNU ld didn't support --whole-archive et. al.
8988     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8989         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8990       else
8991         whole_archive_flag_spec=
8992     fi
8993     supports_anon_versioning=no
8994     case `$LD -v 2>/dev/null` in
8995       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8996       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8997       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998       *\ 2.11.*) ;; # other 2.11 versions
8999       *) supports_anon_versioning=yes ;;
9000     esac
9001
9002     # See if GNU ld supports shared libraries.
9003     case $host_os in
9004     aix3* | aix4* | aix5*)
9005       # On AIX/PPC, the GNU linker is very broken
9006       if test "$host_cpu" != ia64; then
9007         ld_shlibs=no
9008         cat <<EOF 1>&2
9009
9010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9011 *** to be unable to reliably create shared libraries on AIX.
9012 *** Therefore, libtool is disabling shared libraries support.  If you
9013 *** really care for shared libraries, you may want to modify your PATH
9014 *** so that a non-GNU linker is found, and then restart.
9015
9016 EOF
9017       fi
9018       ;;
9019
9020     amigaos*)
9021       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)'
9022       hardcode_libdir_flag_spec='-L$libdir'
9023       hardcode_minus_L=yes
9024
9025       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9026       # that the semantics of dynamic libraries on AmigaOS, at least up
9027       # to version 4, is to share data among multiple programs linked
9028       # with the same dynamic library.  Since this doesn't match the
9029       # behavior of shared libraries on other platforms, we can't use
9030       # them.
9031       ld_shlibs=no
9032       ;;
9033
9034     beos*)
9035       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9036         allow_undefined_flag=unsupported
9037         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038         # support --undefined.  This deserves some investigation.  FIXME
9039         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040       else
9041         ld_shlibs=no
9042       fi
9043       ;;
9044
9045     cygwin* | mingw* | pw32*)
9046       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9047       # as there is no search path for DLLs.
9048       hardcode_libdir_flag_spec='-L$libdir'
9049       allow_undefined_flag=unsupported
9050       always_export_symbols=no
9051       enable_shared_with_static_runtimes=yes
9052       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9053
9054       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9055         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9056         # If the export-symbols file already is a .def file (1st line
9057         # is EXPORTS), use it as is; otherwise, prepend...
9058         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9059           cp $export_symbols $output_objdir/$soname.def;
9060         else
9061           echo EXPORTS > $output_objdir/$soname.def;
9062           cat $export_symbols >> $output_objdir/$soname.def;
9063         fi~
9064         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9065       else
9066         ld_shlibs=no
9067       fi
9068       ;;
9069
9070     linux*)
9071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9072         tmp_addflag=
9073         case $cc_basename,$host_cpu in
9074         pgcc*)                          # Portland Group C compiler
9075           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'
9076           tmp_addflag=' $pic_flag'
9077           ;;
9078         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9079           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'
9080           tmp_addflag=' $pic_flag -Mnomain' ;;
9081         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9082           tmp_addflag=' -i_dynamic' ;;
9083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9084           tmp_addflag=' -i_dynamic -nofor_main' ;;
9085         ifc* | ifort*)                  # Intel Fortran compiler
9086           tmp_addflag=' -nofor_main' ;;
9087         esac
9088         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089
9090         if test $supports_anon_versioning = yes; then
9091           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9092   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9093   $echo "local: *; };" >> $output_objdir/$libname.ver~
9094           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9095         fi
9096       else
9097         ld_shlibs=no
9098       fi
9099       ;;
9100
9101     netbsd*)
9102       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9103         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9104         wlarc=
9105       else
9106         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108       fi
9109       ;;
9110
9111     solaris* | sysv5*)
9112       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9113         ld_shlibs=no
9114         cat <<EOF 1>&2
9115
9116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9117 *** create shared libraries on Solaris systems.  Therefore, libtool
9118 *** is disabling shared libraries support.  We urge you to upgrade GNU
9119 *** binutils to release 2.9.1 or newer.  Another option is to modify
9120 *** your PATH or compiler configuration so that the native linker is
9121 *** used, and then restart.
9122
9123 EOF
9124       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127       else
9128         ld_shlibs=no
9129       fi
9130       ;;
9131
9132     sunos4*)
9133       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134       wlarc=
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     *)
9140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9143       else
9144         ld_shlibs=no
9145       fi
9146       ;;
9147     esac
9148
9149     if test "$ld_shlibs" = no; then
9150       runpath_var=
9151       hardcode_libdir_flag_spec=
9152       export_dynamic_flag_spec=
9153       whole_archive_flag_spec=
9154     fi
9155   else
9156     # PORTME fill in a description of your system's linker (not GNU ld)
9157     case $host_os in
9158     aix3*)
9159       allow_undefined_flag=unsupported
9160       always_export_symbols=yes
9161       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'
9162       # Note: this linker hardcodes the directories in LIBPATH if there
9163       # are no directories specified by -L.
9164       hardcode_minus_L=yes
9165       if test "$GCC" = yes && test -z "$link_static_flag"; then
9166         # Neither direct hardcoding nor static linking is supported with a
9167         # broken collect2.
9168         hardcode_direct=unsupported
9169       fi
9170       ;;
9171
9172     aix4* | aix5*)
9173       if test "$host_cpu" = ia64; then
9174         # On IA64, the linker does run time linking by default, so we don't
9175         # have to do anything special.
9176         aix_use_runtimelinking=no
9177         exp_sym_flag='-Bexport'
9178         no_entry_flag=""
9179       else
9180         # If we're using GNU nm, then we don't want the "-C" option.
9181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9182         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9183           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'
9184         else
9185           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'
9186         fi
9187         aix_use_runtimelinking=no
9188
9189         # Test if we are trying to use run time linking or normal
9190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9191         # need to do runtime linking.
9192         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9193           for ld_flag in $LDFLAGS; do
9194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9195             aix_use_runtimelinking=yes
9196             break
9197           fi
9198           done
9199         esac
9200
9201         exp_sym_flag='-bexport'
9202         no_entry_flag='-bnoentry'
9203       fi
9204
9205       # When large executables or shared objects are built, AIX ld can
9206       # have problems creating the table of contents.  If linking a library
9207       # or program results in "error TOC overflow" add -mminimal-toc to
9208       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9209       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9210
9211       archive_cmds=''
9212       hardcode_direct=yes
9213       hardcode_libdir_separator=':'
9214       link_all_deplibs=yes
9215
9216       if test "$GCC" = yes; then
9217         case $host_os in aix4.[012]|aix4.[012].*)
9218         # We only want to do this on AIX 4.2 and lower, the check
9219         # below for broken collect2 doesn't work under 4.3+
9220           collect2name=`${CC} -print-prog-name=collect2`
9221           if test -f "$collect2name" && \
9222            strings "$collect2name" | grep resolve_lib_name >/dev/null
9223           then
9224           # We have reworked collect2
9225           hardcode_direct=yes
9226           else
9227           # We have old collect2
9228           hardcode_direct=unsupported
9229           # It fails to find uninstalled libraries when the uninstalled
9230           # path is not listed in the libpath.  Setting hardcode_minus_L
9231           # to unsupported forces relinking
9232           hardcode_minus_L=yes
9233           hardcode_libdir_flag_spec='-L$libdir'
9234           hardcode_libdir_separator=
9235           fi
9236         esac
9237         shared_flag='-shared'
9238         if test "$aix_use_runtimelinking" = yes; then
9239           shared_flag="$shared_flag "'${wl}-G'
9240         fi
9241       else
9242         # not using gcc
9243         if test "$host_cpu" = ia64; then
9244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245         # chokes on -Wl,-G. The following line is correct:
9246           shared_flag='-G'
9247         else
9248         if test "$aix_use_runtimelinking" = yes; then
9249             shared_flag='${wl}-G'
9250           else
9251             shared_flag='${wl}-bM:SRE'
9252         fi
9253         fi
9254       fi
9255
9256       # It seems that -bexpall does not export symbols beginning with
9257       # underscore (_), so it is better to generate a list of symbols to export.
9258       always_export_symbols=yes
9259       if test "$aix_use_runtimelinking" = yes; then
9260         # Warning - without using the other runtime loading flags (-brtl),
9261         # -berok will link without error, but may produce a broken library.
9262         allow_undefined_flag='-berok'
9263        # Determine the default libpath from the value encoded in an empty executable.
9264        cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270
9271 int
9272 main ()
9273 {
9274
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_link") 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } && {
9293          test -z "$ac_c_werror_flag" ||
9294          test ! -s conftest.err
9295        } && test -s conftest$ac_exeext &&
9296        $as_test_x conftest$ac_exeext; then
9297
9298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9299 }'`
9300 # Check for a 64-bit object if we didn't find anything.
9301 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; }
9302 }'`; fi
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307
9308 fi
9309
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311       conftest$ac_exeext conftest.$ac_ext
9312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9313
9314        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315         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"
9316        else
9317         if test "$host_cpu" = ia64; then
9318           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9319           allow_undefined_flag="-z nodefs"
9320           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"
9321         else
9322          # Determine the default libpath from the value encoded in an empty executable.
9323          cat >conftest.$ac_ext <<_ACEOF
9324 /* confdefs.h.  */
9325 _ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h.  */
9329
9330 int
9331 main ()
9332 {
9333
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_link") 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } && {
9352          test -z "$ac_c_werror_flag" ||
9353          test ! -s conftest.err
9354        } && test -s conftest$ac_exeext &&
9355        $as_test_x conftest$ac_exeext; then
9356
9357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9358 }'`
9359 # Check for a 64-bit object if we didn't find anything.
9360 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; }
9361 }'`; fi
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366
9367 fi
9368
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370       conftest$ac_exeext conftest.$ac_ext
9371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9372
9373          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9374           # Warning - without using the other run time loading flags,
9375           # -berok will link without error, but may produce a broken library.
9376           no_undefined_flag=' ${wl}-bernotok'
9377           allow_undefined_flag=' ${wl}-berok'
9378           # -bexpall does not export symbols beginning with underscore (_)
9379           always_export_symbols=yes
9380           # Exported symbols can be pulled into shared objects from archives
9381           whole_archive_flag_spec=' '
9382           archive_cmds_need_lc=yes
9383           # This is similar to how AIX traditionally builds its shared libraries.
9384           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'
9385         fi
9386       fi
9387       ;;
9388
9389     amigaos*)
9390       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)'
9391       hardcode_libdir_flag_spec='-L$libdir'
9392       hardcode_minus_L=yes
9393       # see comment about different semantics on the GNU ld section
9394       ld_shlibs=no
9395       ;;
9396
9397     bsdi[45]*)
9398       export_dynamic_flag_spec=-rdynamic
9399       ;;
9400
9401     cygwin* | mingw* | pw32*)
9402       # When not using gcc, we currently assume that we are using
9403       # Microsoft Visual C++.
9404       # hardcode_libdir_flag_spec is actually meaningless, as there is
9405       # no search path for DLLs.
9406       hardcode_libdir_flag_spec=' '
9407       allow_undefined_flag=unsupported
9408       # Tell ltmain to make .lib files, not .a files.
9409       libext=lib
9410       # Tell ltmain to make .dll files, not .so files.
9411       shrext_cmds=".dll"
9412       # FIXME: Setting linknames here is a bad hack.
9413       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9414       # The linker will automatically build a .lib file if we build a DLL.
9415       old_archive_From_new_cmds='true'
9416       # FIXME: Should let the user specify the lib program.
9417       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9418       fix_srcfile_path='`cygpath -w "$srcfile"`'
9419       enable_shared_with_static_runtimes=yes
9420       ;;
9421
9422     darwin* | rhapsody*)
9423       case $host_os in
9424         rhapsody* | darwin1.[012])
9425          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9426          ;;
9427        *) # Darwin 1.3 on
9428          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9429            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9430          else
9431            case ${MACOSX_DEPLOYMENT_TARGET} in
9432              10.[012])
9433                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9434                ;;
9435              10.*)
9436                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9437                ;;
9438            esac
9439          fi
9440          ;;
9441       esac
9442       archive_cmds_need_lc=no
9443       hardcode_direct=no
9444       hardcode_automatic=yes
9445       hardcode_shlibpath_var=unsupported
9446       whole_archive_flag_spec=''
9447       link_all_deplibs=yes
9448     if test "$GCC" = yes ; then
9449         output_verbose_link_cmd='echo'
9450         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9451       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453       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}'
9454       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}'
9455     else
9456       case $cc_basename in
9457         xlc*)
9458          output_verbose_link_cmd='echo'
9459          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9460          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9461           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9462          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}'
9463           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}'
9464           ;;
9465        *)
9466          ld_shlibs=no
9467           ;;
9468       esac
9469     fi
9470       ;;
9471
9472     dgux*)
9473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474       hardcode_libdir_flag_spec='-L$libdir'
9475       hardcode_shlibpath_var=no
9476       ;;
9477
9478     freebsd1*)
9479       ld_shlibs=no
9480       ;;
9481
9482     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9483     # support.  Future versions do this automatically, but an explicit c++rt0.o
9484     # does not break anything, and helps significantly (at the cost of a little
9485     # extra space).
9486     freebsd2.2*)
9487       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9488       hardcode_libdir_flag_spec='-R$libdir'
9489       hardcode_direct=yes
9490       hardcode_shlibpath_var=no
9491       ;;
9492
9493     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9494     freebsd2*)
9495       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9496       hardcode_direct=yes
9497       hardcode_minus_L=yes
9498       hardcode_shlibpath_var=no
9499       ;;
9500
9501     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9502     freebsd* | kfreebsd*-gnu | dragonfly*)
9503       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9504       hardcode_libdir_flag_spec='-R$libdir'
9505       hardcode_direct=yes
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     hpux9*)
9510       if test "$GCC" = yes; then
9511         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'
9512       else
9513         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'
9514       fi
9515       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516       hardcode_libdir_separator=:
9517       hardcode_direct=yes
9518
9519       # hardcode_minus_L: Not really in the search PATH,
9520       # but as the default location of the library.
9521       hardcode_minus_L=yes
9522       export_dynamic_flag_spec='${wl}-E'
9523       ;;
9524
9525     hpux10* | hpux11*)
9526       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9527         case $host_cpu in
9528         hppa*64*|ia64*)
9529           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530           ;;
9531         *)
9532           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9533           ;;
9534         esac
9535       else
9536         case $host_cpu in
9537         hppa*64*|ia64*)
9538           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9539           ;;
9540         *)
9541           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9542           ;;
9543         esac
9544       fi
9545       if test "$with_gnu_ld" = no; then
9546         case $host_cpu in
9547         hppa*64*)
9548           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9549           hardcode_libdir_flag_spec_ld='+b $libdir'
9550           hardcode_libdir_separator=:
9551           hardcode_direct=no
9552           hardcode_shlibpath_var=no
9553           ;;
9554         ia64*)
9555           hardcode_libdir_flag_spec='-L$libdir'
9556           hardcode_direct=no
9557           hardcode_shlibpath_var=no
9558
9559           # hardcode_minus_L: Not really in the search PATH,
9560           # but as the default location of the library.
9561           hardcode_minus_L=yes
9562           ;;
9563         *)
9564           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565           hardcode_libdir_separator=:
9566           hardcode_direct=yes
9567           export_dynamic_flag_spec='${wl}-E'
9568
9569           # hardcode_minus_L: Not really in the search PATH,
9570           # but as the default location of the library.
9571           hardcode_minus_L=yes
9572           ;;
9573         esac
9574       fi
9575       ;;
9576
9577     irix5* | irix6* | nonstopux*)
9578       if test "$GCC" = yes; then
9579         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'
9580       else
9581         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'
9582         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9583       fi
9584       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585       hardcode_libdir_separator=:
9586       link_all_deplibs=yes
9587       ;;
9588
9589     netbsd*)
9590       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9592       else
9593         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9594       fi
9595       hardcode_libdir_flag_spec='-R$libdir'
9596       hardcode_direct=yes
9597       hardcode_shlibpath_var=no
9598       ;;
9599
9600     newsos6)
9601       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602       hardcode_direct=yes
9603       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604       hardcode_libdir_separator=:
9605       hardcode_shlibpath_var=no
9606       ;;
9607
9608     openbsd*)
9609       hardcode_direct=yes
9610       hardcode_shlibpath_var=no
9611       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9612         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615         export_dynamic_flag_spec='${wl}-E'
9616       else
9617        case $host_os in
9618          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620            hardcode_libdir_flag_spec='-R$libdir'
9621            ;;
9622          *)
9623            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625            ;;
9626        esac
9627       fi
9628       ;;
9629
9630     os2*)
9631       hardcode_libdir_flag_spec='-L$libdir'
9632       hardcode_minus_L=yes
9633       allow_undefined_flag=unsupported
9634       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'
9635       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9636       ;;
9637
9638     osf3*)
9639       if test "$GCC" = yes; then
9640         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641         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'
9642       else
9643         allow_undefined_flag=' -expect_unresolved \*'
9644         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'
9645       fi
9646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647       hardcode_libdir_separator=:
9648       ;;
9649
9650     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9651       if test "$GCC" = yes; then
9652         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9653         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'
9654         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655       else
9656         allow_undefined_flag=' -expect_unresolved \*'
9657         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'
9658         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9659         $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'
9660
9661         # Both c and cxx compiler support -rpath directly
9662         hardcode_libdir_flag_spec='-rpath $libdir'
9663       fi
9664       hardcode_libdir_separator=:
9665       ;;
9666
9667     sco3.2v5*)
9668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669       hardcode_shlibpath_var=no
9670       export_dynamic_flag_spec='${wl}-Bexport'
9671       runpath_var=LD_RUN_PATH
9672       hardcode_runpath_var=yes
9673       ;;
9674
9675     solaris*)
9676       no_undefined_flag=' -z text'
9677       if test "$GCC" = yes; then
9678         wlarc='${wl}'
9679         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9681           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9682       else
9683         wlarc=''
9684         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9686         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9687       fi
9688       hardcode_libdir_flag_spec='-R$libdir'
9689       hardcode_shlibpath_var=no
9690       case $host_os in
9691       solaris2.[0-5] | solaris2.[0-5].*) ;;
9692       *)
9693         # The compiler driver will combine linker options so we
9694         # cannot just pass the convience library names through
9695         # without $wl, iff we do not link with $LD.
9696         # Luckily, gcc supports the same syntax we need for Sun Studio.
9697         # Supported since Solaris 2.6 (maybe 2.5.1?)
9698         case $wlarc in
9699         '')
9700           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9701         *)
9702           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' ;;
9703         esac ;;
9704       esac
9705       link_all_deplibs=yes
9706       ;;
9707
9708     sunos4*)
9709       if test "x$host_vendor" = xsequent; then
9710         # Use $CC to link under sequent, because it throws in some extra .o
9711         # files that make .init and .fini sections work.
9712         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9713       else
9714         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9715       fi
9716       hardcode_libdir_flag_spec='-L$libdir'
9717       hardcode_direct=yes
9718       hardcode_minus_L=yes
9719       hardcode_shlibpath_var=no
9720       ;;
9721
9722     sysv4)
9723       case $host_vendor in
9724         sni)
9725           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726           hardcode_direct=yes # is this really true???
9727         ;;
9728         siemens)
9729           ## LD is ld it makes a PLAMLIB
9730           ## CC just makes a GrossModule.
9731           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9732           reload_cmds='$CC -r -o $output$reload_objs'
9733           hardcode_direct=no
9734         ;;
9735         motorola)
9736           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9738         ;;
9739       esac
9740       runpath_var='LD_RUN_PATH'
9741       hardcode_shlibpath_var=no
9742       ;;
9743
9744     sysv4.3*)
9745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746       hardcode_shlibpath_var=no
9747       export_dynamic_flag_spec='-Bexport'
9748       ;;
9749
9750     sysv4*MP*)
9751       if test -d /usr/nec; then
9752         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753         hardcode_shlibpath_var=no
9754         runpath_var=LD_RUN_PATH
9755         hardcode_runpath_var=yes
9756         ld_shlibs=yes
9757       fi
9758       ;;
9759
9760     sysv4.2uw2*)
9761       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9762       hardcode_direct=yes
9763       hardcode_minus_L=no
9764       hardcode_shlibpath_var=no
9765       hardcode_runpath_var=yes
9766       runpath_var=LD_RUN_PATH
9767       ;;
9768
9769    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9770       no_undefined_flag='${wl}-z ${wl}text'
9771       if test "$GCC" = yes; then
9772         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       else
9774         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775       fi
9776       runpath_var='LD_RUN_PATH'
9777       hardcode_shlibpath_var=no
9778       ;;
9779
9780     sysv5*)
9781       no_undefined_flag=' -z text'
9782       # $CC -shared without GNU ld will not create a library from C++
9783       # object files and a static libstdc++, better avoid it by now
9784       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9786                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9787       hardcode_libdir_flag_spec=
9788       hardcode_shlibpath_var=no
9789       runpath_var='LD_RUN_PATH'
9790       ;;
9791
9792     uts4*)
9793       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794       hardcode_libdir_flag_spec='-L$libdir'
9795       hardcode_shlibpath_var=no
9796       ;;
9797
9798     *)
9799       ld_shlibs=no
9800       ;;
9801     esac
9802   fi
9803
9804 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9805 echo "${ECHO_T}$ld_shlibs" >&6; }
9806 test "$ld_shlibs" = no && can_build_shared=no
9807
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9811 fi
9812
9813 #
9814 # Do we need to explicitly link libc?
9815 #
9816 case "x$archive_cmds_need_lc" in
9817 x|xyes)
9818   # Assume -lc should be added
9819   archive_cmds_need_lc=yes
9820
9821   if test "$enable_shared" = yes && test "$GCC" = yes; then
9822     case $archive_cmds in
9823     *'~'*)
9824       # FIXME: we may have to deal with multi-command sequences.
9825       ;;
9826     '$CC '*)
9827       # Test whether the compiler implicitly links with -lc since on some
9828       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829       # to ld, don't add -lc before -lgcc.
9830       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9832       $rm conftest*
9833       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9834
9835       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836   (eval $ac_compile) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } 2>conftest.err; then
9840         soname=conftest
9841         lib=conftest
9842         libobjs=conftest.$ac_objext
9843         deplibs=
9844         wl=$lt_prog_compiler_wl
9845         compiler_flags=-v
9846         linker_flags=-v
9847         verstring=
9848         output_objdir=.
9849         libname=conftest
9850         lt_save_allow_undefined_flag=$allow_undefined_flag
9851         allow_undefined_flag=
9852         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9853   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }
9857         then
9858           archive_cmds_need_lc=no
9859         else
9860           archive_cmds_need_lc=yes
9861         fi
9862         allow_undefined_flag=$lt_save_allow_undefined_flag
9863       else
9864         cat conftest.err 1>&5
9865       fi
9866       $rm conftest*
9867       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9868 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9869       ;;
9870     esac
9871   fi
9872   ;;
9873 esac
9874
9875 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9877 library_names_spec=
9878 libname_spec='lib$name'
9879 soname_spec=
9880 shrext_cmds=".so"
9881 postinstall_cmds=
9882 postuninstall_cmds=
9883 finish_cmds=
9884 finish_eval=
9885 shlibpath_var=
9886 shlibpath_overrides_runpath=unknown
9887 version_type=none
9888 dynamic_linker="$host_os ld.so"
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9890 if test "$GCC" = yes; then
9891   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9892   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9893     # if the path contains ";" then we assume it to be the separator
9894     # otherwise default to the standard path separator (i.e. ":") - it is
9895     # assumed that no part of a normal pathname contains ";" but that should
9896     # okay in the real world where ";" in dirpaths is itself problematic.
9897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9898   else
9899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9900   fi
9901 else
9902   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9903 fi
9904 need_lib_prefix=unknown
9905 hardcode_into_libs=no
9906
9907 # when you set need_version to no, make sure it does not cause -set_version
9908 # flags to be left without arguments
9909 need_version=unknown
9910
9911 case $host_os in
9912 aix3*)
9913   version_type=linux
9914   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9915   shlibpath_var=LIBPATH
9916
9917   # AIX 3 has no versioning support, so we append a major version to the name.
9918   soname_spec='${libname}${release}${shared_ext}$major'
9919   ;;
9920
9921 aix4* | aix5*)
9922   version_type=linux
9923   need_lib_prefix=no
9924   need_version=no
9925   hardcode_into_libs=yes
9926   if test "$host_cpu" = ia64; then
9927     # AIX 5 supports IA64
9928     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9929     shlibpath_var=LD_LIBRARY_PATH
9930   else
9931     # With GCC up to 2.95.x, collect2 would create an import file
9932     # for dependence libraries.  The import file would start with
9933     # the line `#! .'.  This would cause the generated library to
9934     # depend on `.', always an invalid library.  This was fixed in
9935     # development snapshots of GCC prior to 3.0.
9936     case $host_os in
9937       aix4 | aix4.[01] | aix4.[01].*)
9938       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9939            echo ' yes '
9940            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9941         :
9942       else
9943         can_build_shared=no
9944       fi
9945       ;;
9946     esac
9947     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9948     # soname into executable. Probably we can add versioning support to
9949     # collect2, so additional links can be useful in future.
9950     if test "$aix_use_runtimelinking" = yes; then
9951       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9952       # instead of lib<name>.a to let people know that these are not
9953       # typical AIX shared libraries.
9954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955     else
9956       # We preserve .a as extension for shared libraries through AIX4.2
9957       # and later when we are not doing run time linking.
9958       library_names_spec='${libname}${release}.a $libname.a'
9959       soname_spec='${libname}${release}${shared_ext}$major'
9960     fi
9961     shlibpath_var=LIBPATH
9962   fi
9963   ;;
9964
9965 amigaos*)
9966   library_names_spec='$libname.ixlibrary $libname.a'
9967   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9968   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'
9969   ;;
9970
9971 beos*)
9972   library_names_spec='${libname}${shared_ext}'
9973   dynamic_linker="$host_os ld.so"
9974   shlibpath_var=LIBRARY_PATH
9975   ;;
9976
9977 bsdi[45]*)
9978   version_type=linux
9979   need_version=no
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   soname_spec='${libname}${release}${shared_ext}$major'
9982   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9985   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9986   # the default ld.so.conf also contains /usr/contrib/lib and
9987   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9988   # libtool to hard-code these into programs
9989   ;;
9990
9991 cygwin* | mingw* | pw32*)
9992   version_type=windows
9993   shrext_cmds=".dll"
9994   need_version=no
9995   need_lib_prefix=no
9996
9997   case $GCC,$host_os in
9998   yes,cygwin* | yes,mingw* | yes,pw32*)
9999     library_names_spec='$libname.dll.a'
10000     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001     postinstall_cmds='base_file=`basename \${file}`~
10002       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10003       dldir=$destdir/`dirname \$dlpath`~
10004       test -d \$dldir || mkdir -p \$dldir~
10005       $install_prog $dir/$dlname \$dldir/$dlname~
10006       chmod a+x \$dldir/$dlname'
10007     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10008       dlpath=$dir/\$dldll~
10009        $rm \$dlpath'
10010     shlibpath_overrides_runpath=yes
10011
10012     case $host_os in
10013     cygwin*)
10014       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10015       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10017       ;;
10018     mingw*)
10019       # MinGW DLLs use traditional 'lib' prefix
10020       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10022       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10023         # It is most probably a Windows format PATH printed by
10024         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10025         # path with ; separators, and with drive letters. We can handle the
10026         # drive letters (cygwin fileutils understands them), so leave them,
10027         # especially as we might pass files found there to a mingw objdump,
10028         # which wouldn't understand a cygwinified path. Ahh.
10029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10030       else
10031         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10032       fi
10033       ;;
10034     pw32*)
10035       # pw32 DLLs use 'pw' prefix rather than 'lib'
10036       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037       ;;
10038     esac
10039     ;;
10040
10041   *)
10042     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10043     ;;
10044   esac
10045   dynamic_linker='Win32 ld.exe'
10046   # FIXME: first we should search . and the directory the executable is in
10047   shlibpath_var=PATH
10048   ;;
10049
10050 darwin* | rhapsody*)
10051   dynamic_linker="$host_os dyld"
10052   version_type=darwin
10053   need_lib_prefix=no
10054   need_version=no
10055   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10056   soname_spec='${libname}${release}${major}$shared_ext'
10057   shlibpath_overrides_runpath=yes
10058   shlibpath_var=DYLD_LIBRARY_PATH
10059   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10060   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10061   if test "$GCC" = yes; then
10062     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"`
10063   else
10064     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10065   fi
10066   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10067   ;;
10068
10069 dgux*)
10070   version_type=linux
10071   need_lib_prefix=no
10072   need_version=no
10073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10074   soname_spec='${libname}${release}${shared_ext}$major'
10075   shlibpath_var=LD_LIBRARY_PATH
10076   ;;
10077
10078 freebsd1*)
10079   dynamic_linker=no
10080   ;;
10081
10082 kfreebsd*-gnu)
10083   version_type=linux
10084   need_lib_prefix=no
10085   need_version=no
10086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087   soname_spec='${libname}${release}${shared_ext}$major'
10088   shlibpath_var=LD_LIBRARY_PATH
10089   shlibpath_overrides_runpath=no
10090   hardcode_into_libs=yes
10091   dynamic_linker='GNU ld.so'
10092   ;;
10093
10094 freebsd* | dragonfly*)
10095   # DragonFly does not have aout.  When/if they implement a new
10096   # versioning mechanism, adjust this.
10097   if test -x /usr/bin/objformat; then
10098     objformat=`/usr/bin/objformat`
10099   else
10100     case $host_os in
10101     freebsd[123]*) objformat=aout ;;
10102     *) objformat=elf ;;
10103     esac
10104   fi
10105   version_type=freebsd-$objformat
10106   case $version_type in
10107     freebsd-elf*)
10108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10109       need_version=no
10110       need_lib_prefix=no
10111       ;;
10112     freebsd-*)
10113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10114       need_version=yes
10115       ;;
10116   esac
10117   shlibpath_var=LD_LIBRARY_PATH
10118   case $host_os in
10119   freebsd2*)
10120     shlibpath_overrides_runpath=yes
10121     ;;
10122   freebsd3.[01]* | freebsdelf3.[01]*)
10123     shlibpath_overrides_runpath=yes
10124     hardcode_into_libs=yes
10125     ;;
10126   *) # from 3.2 on
10127     shlibpath_overrides_runpath=no
10128     hardcode_into_libs=yes
10129     ;;
10130   esac
10131   ;;
10132
10133 gnu*)
10134   version_type=linux
10135   need_lib_prefix=no
10136   need_version=no
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10138   soname_spec='${libname}${release}${shared_ext}$major'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   hardcode_into_libs=yes
10141   ;;
10142
10143 hpux9* | hpux10* | hpux11*)
10144   # Give a soname corresponding to the major version so that dld.sl refuses to
10145   # link against other versions.
10146   version_type=sunos
10147   need_lib_prefix=no
10148   need_version=no
10149   case $host_cpu in
10150   ia64*)
10151     shrext_cmds='.so'
10152     hardcode_into_libs=yes
10153     dynamic_linker="$host_os dld.so"
10154     shlibpath_var=LD_LIBRARY_PATH
10155     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157     soname_spec='${libname}${release}${shared_ext}$major'
10158     if test "X$HPUX_IA64_MODE" = X32; then
10159       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10160     else
10161       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10162     fi
10163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164     ;;
10165    hppa*64*)
10166      shrext_cmds='.sl'
10167      hardcode_into_libs=yes
10168      dynamic_linker="$host_os dld.sl"
10169      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172      soname_spec='${libname}${release}${shared_ext}$major'
10173      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175      ;;
10176    *)
10177     shrext_cmds='.sl'
10178     dynamic_linker="$host_os dld.sl"
10179     shlibpath_var=SHLIB_PATH
10180     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182     soname_spec='${libname}${release}${shared_ext}$major'
10183     ;;
10184   esac
10185   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10186   postinstall_cmds='chmod 555 $lib'
10187   ;;
10188
10189 irix5* | irix6* | nonstopux*)
10190   case $host_os in
10191     nonstopux*) version_type=nonstopux ;;
10192     *)
10193         if test "$lt_cv_prog_gnu_ld" = yes; then
10194                 version_type=linux
10195         else
10196                 version_type=irix
10197         fi ;;
10198   esac
10199   need_lib_prefix=no
10200   need_version=no
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10203   case $host_os in
10204   irix5* | nonstopux*)
10205     libsuff= shlibsuff=
10206     ;;
10207   *)
10208     case $LD in # libtool.m4 will add one of these switches to LD
10209     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10210       libsuff= shlibsuff= libmagic=32-bit;;
10211     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10212       libsuff=32 shlibsuff=N32 libmagic=N32;;
10213     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10214       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10215     *) libsuff= shlibsuff= libmagic=never-match;;
10216     esac
10217     ;;
10218   esac
10219   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10220   shlibpath_overrides_runpath=no
10221   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10222   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10223   hardcode_into_libs=yes
10224   ;;
10225
10226 # No shared lib support for Linux oldld, aout, or coff.
10227 linux*oldld* | linux*aout* | linux*coff*)
10228   dynamic_linker=no
10229   ;;
10230
10231 # This must be Linux ELF.
10232 linux*)
10233   version_type=linux
10234   need_lib_prefix=no
10235   need_version=no
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   soname_spec='${libname}${release}${shared_ext}$major'
10238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=no
10241   # This implies no fast_install, which is unacceptable.
10242   # Some rework will be needed to allow for fast_install
10243   # before this can be enabled.
10244   hardcode_into_libs=yes
10245
10246   # Append ld.so.conf contents to the search path
10247   if test -f /etc/ld.so.conf; then
10248     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' ' '`
10249     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10250   fi
10251
10252   # We used to test for /lib/ld.so.1 and disable shared libraries on
10253   # powerpc, because MkLinux only supported shared libraries with the
10254   # GNU dynamic linker.  Since this was broken with cross compilers,
10255   # most powerpc-linux boxes support dynamic linking these days and
10256   # people can always --disable-shared, the test was removed, and we
10257   # assume the GNU/Linux dynamic linker is in use.
10258   dynamic_linker='GNU/Linux ld.so'
10259   ;;
10260
10261 knetbsd*-gnu)
10262   version_type=linux
10263   need_lib_prefix=no
10264   need_version=no
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266   soname_spec='${libname}${release}${shared_ext}$major'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=no
10269   hardcode_into_libs=yes
10270   dynamic_linker='GNU ld.so'
10271   ;;
10272
10273 netbsd*)
10274   version_type=sunos
10275   need_lib_prefix=no
10276   need_version=no
10277   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280     dynamic_linker='NetBSD (a.out) ld.so'
10281   else
10282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10283     soname_spec='${libname}${release}${shared_ext}$major'
10284     dynamic_linker='NetBSD ld.elf_so'
10285   fi
10286   shlibpath_var=LD_LIBRARY_PATH
10287   shlibpath_overrides_runpath=yes
10288   hardcode_into_libs=yes
10289   ;;
10290
10291 newsos6)
10292   version_type=linux
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=yes
10296   ;;
10297
10298 nto-qnx*)
10299   version_type=linux
10300   need_lib_prefix=no
10301   need_version=no
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=yes
10306   ;;
10307
10308 openbsd*)
10309   version_type=sunos
10310   need_lib_prefix=no
10311   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10312   case $host_os in
10313     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314     *)                         need_version=no  ;;
10315   esac
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10320     case $host_os in
10321       openbsd2.[89] | openbsd2.[89].*)
10322         shlibpath_overrides_runpath=no
10323         ;;
10324       *)
10325         shlibpath_overrides_runpath=yes
10326         ;;
10327       esac
10328   else
10329     shlibpath_overrides_runpath=yes
10330   fi
10331   ;;
10332
10333 os2*)
10334   libname_spec='$name'
10335   shrext_cmds=".dll"
10336   need_lib_prefix=no
10337   library_names_spec='$libname${shared_ext} $libname.a'
10338   dynamic_linker='OS/2 ld.exe'
10339   shlibpath_var=LIBPATH
10340   ;;
10341
10342 osf3* | osf4* | osf5*)
10343   version_type=osf
10344   need_lib_prefix=no
10345   need_version=no
10346   soname_spec='${libname}${release}${shared_ext}$major'
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   shlibpath_var=LD_LIBRARY_PATH
10349   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351   ;;
10352
10353 sco3.2v5*)
10354   version_type=osf
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357   shlibpath_var=LD_LIBRARY_PATH
10358   ;;
10359
10360 solaris*)
10361   version_type=linux
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   shlibpath_var=LD_LIBRARY_PATH
10367   shlibpath_overrides_runpath=yes
10368   hardcode_into_libs=yes
10369   # ldd complains unless libraries are executable
10370   postinstall_cmds='chmod +x $lib'
10371   ;;
10372
10373 sunos4*)
10374   version_type=sunos
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10377   shlibpath_var=LD_LIBRARY_PATH
10378   shlibpath_overrides_runpath=yes
10379   if test "$with_gnu_ld" = yes; then
10380     need_lib_prefix=no
10381   fi
10382   need_version=yes
10383   ;;
10384
10385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10386   version_type=linux
10387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388   soname_spec='${libname}${release}${shared_ext}$major'
10389   shlibpath_var=LD_LIBRARY_PATH
10390   case $host_vendor in
10391     sni)
10392       shlibpath_overrides_runpath=no
10393       need_lib_prefix=no
10394       export_dynamic_flag_spec='${wl}-Blargedynsym'
10395       runpath_var=LD_RUN_PATH
10396       ;;
10397     siemens)
10398       need_lib_prefix=no
10399       ;;
10400     motorola)
10401       need_lib_prefix=no
10402       need_version=no
10403       shlibpath_overrides_runpath=no
10404       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10405       ;;
10406   esac
10407   ;;
10408
10409 sysv4*MP*)
10410   if test -d /usr/nec ;then
10411     version_type=linux
10412     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413     soname_spec='$libname${shared_ext}.$major'
10414     shlibpath_var=LD_LIBRARY_PATH
10415   fi
10416   ;;
10417
10418 uts4*)
10419   version_type=linux
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   ;;
10424
10425 *)
10426   dynamic_linker=no
10427   ;;
10428 esac
10429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430 echo "${ECHO_T}$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10432
10433 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10434 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10435 hardcode_action=
10436 if test -n "$hardcode_libdir_flag_spec" || \
10437    test -n "$runpath_var" || \
10438    test "X$hardcode_automatic" = "Xyes" ; then
10439
10440   # We can hardcode non-existant directories.
10441   if test "$hardcode_direct" != no &&
10442      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10443      # have to relink, otherwise we might link with an installed library
10444      # when we should be linking with a yet-to-be-installed one
10445      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10446      test "$hardcode_minus_L" != no; then
10447     # Linking always hardcodes the temporary library directory.
10448     hardcode_action=relink
10449   else
10450     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10451     hardcode_action=immediate
10452   fi
10453 else
10454   # We cannot hardcode anything, or else we can only hardcode existing
10455   # directories.
10456   hardcode_action=unsupported
10457 fi
10458 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10459 echo "${ECHO_T}$hardcode_action" >&6; }
10460
10461 if test "$hardcode_action" = relink; then
10462   # Fast installation is not supported
10463   enable_fast_install=no
10464 elif test "$shlibpath_overrides_runpath" = yes ||
10465      test "$enable_shared" = no; then
10466   # Fast installation is not necessary
10467   enable_fast_install=needless
10468 fi
10469
10470 striplib=
10471 old_striplib=
10472 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10475   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477   { echo "$as_me:$LINENO: result: yes" >&5
10478 echo "${ECHO_T}yes" >&6; }
10479 else
10480 # FIXME - insert some real tests, host_os isn't really good enough
10481   case $host_os in
10482    darwin*)
10483        if test -n "$STRIP" ; then
10484          striplib="$STRIP -x"
10485          { echo "$as_me:$LINENO: result: yes" >&5
10486 echo "${ECHO_T}yes" >&6; }
10487        else
10488   { echo "$as_me:$LINENO: result: no" >&5
10489 echo "${ECHO_T}no" >&6; }
10490 fi
10491        ;;
10492    *)
10493   { echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6; }
10495     ;;
10496   esac
10497 fi
10498
10499 if test "x$enable_dlopen" != xyes; then
10500   enable_dlopen=unknown
10501   enable_dlopen_self=unknown
10502   enable_dlopen_self_static=unknown
10503 else
10504   lt_cv_dlopen=no
10505   lt_cv_dlopen_libs=
10506
10507   case $host_os in
10508   beos*)
10509     lt_cv_dlopen="load_add_on"
10510     lt_cv_dlopen_libs=
10511     lt_cv_dlopen_self=yes
10512     ;;
10513
10514   mingw* | pw32*)
10515     lt_cv_dlopen="LoadLibrary"
10516     lt_cv_dlopen_libs=
10517    ;;
10518
10519   cygwin*)
10520     lt_cv_dlopen="dlopen"
10521     lt_cv_dlopen_libs=
10522    ;;
10523
10524   darwin*)
10525   # if libdl is installed we need to link against it
10526     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-ldl  $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539
10540 /* Override any GCC internal prototype to avoid an error.
10541    Use char because int might match the return type of a GCC
10542    builtin and then its argument prototype would still apply.  */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char dlopen ();
10547 int
10548 main ()
10549 {
10550 return dlopen ();
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559   *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562   (eval "$ac_link") 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } && {
10569          test -z "$ac_c_werror_flag" ||
10570          test ! -s conftest.err
10571        } && test -s conftest$ac_exeext &&
10572        $as_test_x conftest$ac_exeext; then
10573   ac_cv_lib_dl_dlopen=yes
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578         ac_cv_lib_dl_dlopen=no
10579 fi
10580
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582       conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10584 fi
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587 if test $ac_cv_lib_dl_dlopen = yes; then
10588   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10589 else
10590
10591     lt_cv_dlopen="dyld"
10592     lt_cv_dlopen_libs=
10593     lt_cv_dlopen_self=yes
10594
10595 fi
10596
10597    ;;
10598
10599   *)
10600     { echo "$as_me:$LINENO: checking for shl_load" >&5
10601 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10602 if test "${ac_cv_func_shl_load+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10613 #define shl_load innocuous_shl_load
10614
10615 /* System header to define __stub macros and hopefully few prototypes,
10616     which can conflict with char shl_load (); below.
10617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10618     <limits.h> exists even on freestanding compilers.  */
10619
10620 #ifdef __STDC__
10621 # include <limits.h>
10622 #else
10623 # include <assert.h>
10624 #endif
10625
10626 #undef shl_load
10627
10628 /* Override any GCC internal prototype to avoid an error.
10629    Use char because int might match the return type of a GCC
10630    builtin and then its argument prototype would still apply.  */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char shl_load ();
10635 /* The GNU C library defines this for functions which it implements
10636     to always fail with ENOSYS.  Some functions are actually named
10637     something starting with __ and the normal name is an alias.  */
10638 #if defined __stub_shl_load || defined __stub___shl_load
10639 choke me
10640 #endif
10641
10642 int
10643 main ()
10644 {
10645 return shl_load ();
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (ac_try="$ac_link"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_link") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } && {
10664          test -z "$ac_c_werror_flag" ||
10665          test ! -s conftest.err
10666        } && test -s conftest$ac_exeext &&
10667        $as_test_x conftest$ac_exeext; then
10668   ac_cv_func_shl_load=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673         ac_cv_func_shl_load=no
10674 fi
10675
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677       conftest$ac_exeext conftest.$ac_ext
10678 fi
10679 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10681 if test $ac_cv_func_shl_load = yes; then
10682   lt_cv_dlopen="shl_load"
10683 else
10684   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-ldld  $LIBS"
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699    Use char because int might match the return type of a GCC
10700    builtin and then its argument prototype would still apply.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char shl_load ();
10705 int
10706 main ()
10707 {
10708 return shl_load ();
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_link") 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } && {
10727          test -z "$ac_c_werror_flag" ||
10728          test ! -s conftest.err
10729        } && test -s conftest$ac_exeext &&
10730        $as_test_x conftest$ac_exeext; then
10731   ac_cv_lib_dld_shl_load=yes
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736         ac_cv_lib_dld_shl_load=no
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740       conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10742 fi
10743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10745 if test $ac_cv_lib_dld_shl_load = yes; then
10746   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10747 else
10748   { echo "$as_me:$LINENO: checking for dlopen" >&5
10749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10750 if test "${ac_cv_func_dlopen+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10761 #define dlopen innocuous_dlopen
10762
10763 /* System header to define __stub macros and hopefully few prototypes,
10764     which can conflict with char dlopen (); below.
10765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766     <limits.h> exists even on freestanding compilers.  */
10767
10768 #ifdef __STDC__
10769 # include <limits.h>
10770 #else
10771 # include <assert.h>
10772 #endif
10773
10774 #undef dlopen
10775
10776 /* Override any GCC internal prototype to avoid an error.
10777    Use char because int might match the return type of a GCC
10778    builtin and then its argument prototype would still apply.  */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 char dlopen ();
10783 /* The GNU C library defines this for functions which it implements
10784     to always fail with ENOSYS.  Some functions are actually named
10785     something starting with __ and the normal name is an alias.  */
10786 #if defined __stub_dlopen || defined __stub___dlopen
10787 choke me
10788 #endif
10789
10790 int
10791 main ()
10792 {
10793 return dlopen ();
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802   *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805   (eval "$ac_link") 2>conftest.er1
10806   ac_status=$?
10807   grep -v '^ *+' conftest.er1 >conftest.err
10808   rm -f conftest.er1
10809   cat conftest.err >&5
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } && {
10812          test -z "$ac_c_werror_flag" ||
10813          test ! -s conftest.err
10814        } && test -s conftest$ac_exeext &&
10815        $as_test_x conftest$ac_exeext; then
10816   ac_cv_func_dlopen=yes
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821         ac_cv_func_dlopen=no
10822 fi
10823
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825       conftest$ac_exeext conftest.$ac_ext
10826 fi
10827 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10829 if test $ac_cv_func_dlopen = yes; then
10830   lt_cv_dlopen="dlopen"
10831 else
10832   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837   ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-ldl  $LIBS"
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847    Use char because int might match the return type of a GCC
10848    builtin and then its argument prototype would still apply.  */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char dlopen ();
10853 int
10854 main ()
10855 {
10856 return dlopen ();
10857   ;
10858   return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_link") 2>conftest.er1
10869   ac_status=$?
10870   grep -v '^ *+' conftest.er1 >conftest.err
10871   rm -f conftest.er1
10872   cat conftest.err >&5
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } && {
10875          test -z "$ac_c_werror_flag" ||
10876          test ! -s conftest.err
10877        } && test -s conftest$ac_exeext &&
10878        $as_test_x conftest$ac_exeext; then
10879   ac_cv_lib_dl_dlopen=yes
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884         ac_cv_lib_dl_dlopen=no
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888       conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10893 if test $ac_cv_lib_dl_dlopen = yes; then
10894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10895 else
10896   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10897 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10898 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-lsvld  $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911    Use char because int might match the return type of a GCC
10912    builtin and then its argument prototype would still apply.  */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char dlopen ();
10917 int
10918 main ()
10919 {
10920 return dlopen ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_link") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } && {
10939          test -z "$ac_c_werror_flag" ||
10940          test ! -s conftest.err
10941        } && test -s conftest$ac_exeext &&
10942        $as_test_x conftest$ac_exeext; then
10943   ac_cv_lib_svld_dlopen=yes
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948         ac_cv_lib_svld_dlopen=no
10949 fi
10950
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952       conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10957 if test $ac_cv_lib_svld_dlopen = yes; then
10958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10959 else
10960   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldld  $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975    Use char because int might match the return type of a GCC
10976    builtin and then its argument prototype would still apply.  */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char dld_link ();
10981 int
10982 main ()
10983 {
10984 return dld_link ();
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993   *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996   (eval "$ac_link") 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } && {
11003          test -z "$ac_c_werror_flag" ||
11004          test ! -s conftest.err
11005        } && test -s conftest$ac_exeext &&
11006        $as_test_x conftest$ac_exeext; then
11007   ac_cv_lib_dld_dld_link=yes
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012         ac_cv_lib_dld_dld_link=no
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016       conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11018 fi
11019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11021 if test $ac_cv_lib_dld_dld_link = yes; then
11022   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11023 fi
11024
11025
11026 fi
11027
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037
11038 fi
11039
11040     ;;
11041   esac
11042
11043   if test "x$lt_cv_dlopen" != xno; then
11044     enable_dlopen=yes
11045   else
11046     enable_dlopen=no
11047   fi
11048
11049   case $lt_cv_dlopen in
11050   dlopen)
11051     save_CPPFLAGS="$CPPFLAGS"
11052     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11053
11054     save_LDFLAGS="$LDFLAGS"
11055     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11056
11057     save_LIBS="$LIBS"
11058     LIBS="$lt_cv_dlopen_libs $LIBS"
11059
11060     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11061 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11062 if test "${lt_cv_dlopen_self+set}" = set; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065           if test "$cross_compiling" = yes; then :
11066   lt_cv_dlopen_self=cross
11067 else
11068   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11069   lt_status=$lt_dlunknown
11070   cat > conftest.$ac_ext <<EOF
11071 #line 11071 "configure"
11072 #include "confdefs.h"
11073
11074 #if HAVE_DLFCN_H
11075 #include <dlfcn.h>
11076 #endif
11077
11078 #include <stdio.h>
11079
11080 #ifdef RTLD_GLOBAL
11081 #  define LT_DLGLOBAL           RTLD_GLOBAL
11082 #else
11083 #  ifdef DL_GLOBAL
11084 #    define LT_DLGLOBAL         DL_GLOBAL
11085 #  else
11086 #    define LT_DLGLOBAL         0
11087 #  endif
11088 #endif
11089
11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11091    find out it does not work in some platform. */
11092 #ifndef LT_DLLAZY_OR_NOW
11093 #  ifdef RTLD_LAZY
11094 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11095 #  else
11096 #    ifdef DL_LAZY
11097 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11098 #    else
11099 #      ifdef RTLD_NOW
11100 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11101 #      else
11102 #        ifdef DL_NOW
11103 #          define LT_DLLAZY_OR_NOW      DL_NOW
11104 #        else
11105 #          define LT_DLLAZY_OR_NOW      0
11106 #        endif
11107 #      endif
11108 #    endif
11109 #  endif
11110 #endif
11111
11112 #ifdef __cplusplus
11113 extern "C" void exit (int);
11114 #endif
11115
11116 void fnord() { int i=42;}
11117 int main ()
11118 {
11119   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120   int status = $lt_dlunknown;
11121
11122   if (self)
11123     {
11124       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11125       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11126       /* dlclose (self); */
11127     }
11128
11129     exit (status);
11130 }
11131 EOF
11132   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133   (eval $ac_link) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11137     (./conftest; exit; ) >&5 2>/dev/null
11138     lt_status=$?
11139     case x$lt_status in
11140       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11141       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11142       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11143     esac
11144   else :
11145     # compilation failed
11146     lt_cv_dlopen_self=no
11147   fi
11148 fi
11149 rm -fr conftest*
11150
11151
11152 fi
11153 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11154 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11155
11156     if test "x$lt_cv_dlopen_self" = xyes; then
11157       LDFLAGS="$LDFLAGS $link_static_flag"
11158       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11159 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11160 if test "${lt_cv_dlopen_self_static+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163           if test "$cross_compiling" = yes; then :
11164   lt_cv_dlopen_self_static=cross
11165 else
11166   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167   lt_status=$lt_dlunknown
11168   cat > conftest.$ac_ext <<EOF
11169 #line 11169 "configure"
11170 #include "confdefs.h"
11171
11172 #if HAVE_DLFCN_H
11173 #include <dlfcn.h>
11174 #endif
11175
11176 #include <stdio.h>
11177
11178 #ifdef RTLD_GLOBAL
11179 #  define LT_DLGLOBAL           RTLD_GLOBAL
11180 #else
11181 #  ifdef DL_GLOBAL
11182 #    define LT_DLGLOBAL         DL_GLOBAL
11183 #  else
11184 #    define LT_DLGLOBAL         0
11185 #  endif
11186 #endif
11187
11188 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189    find out it does not work in some platform. */
11190 #ifndef LT_DLLAZY_OR_NOW
11191 #  ifdef RTLD_LAZY
11192 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11193 #  else
11194 #    ifdef DL_LAZY
11195 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11196 #    else
11197 #      ifdef RTLD_NOW
11198 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11199 #      else
11200 #        ifdef DL_NOW
11201 #          define LT_DLLAZY_OR_NOW      DL_NOW
11202 #        else
11203 #          define LT_DLLAZY_OR_NOW      0
11204 #        endif
11205 #      endif
11206 #    endif
11207 #  endif
11208 #endif
11209
11210 #ifdef __cplusplus
11211 extern "C" void exit (int);
11212 #endif
11213
11214 void fnord() { int i=42;}
11215 int main ()
11216 {
11217   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11218   int status = $lt_dlunknown;
11219
11220   if (self)
11221     {
11222       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11223       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11224       /* dlclose (self); */
11225     }
11226
11227     exit (status);
11228 }
11229 EOF
11230   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231   (eval $ac_link) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11235     (./conftest; exit; ) >&5 2>/dev/null
11236     lt_status=$?
11237     case x$lt_status in
11238       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11239       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11240       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11241     esac
11242   else :
11243     # compilation failed
11244     lt_cv_dlopen_self_static=no
11245   fi
11246 fi
11247 rm -fr conftest*
11248
11249
11250 fi
11251 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11252 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11253     fi
11254
11255     CPPFLAGS="$save_CPPFLAGS"
11256     LDFLAGS="$save_LDFLAGS"
11257     LIBS="$save_LIBS"
11258     ;;
11259   esac
11260
11261   case $lt_cv_dlopen_self in
11262   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11263   *) enable_dlopen_self=unknown ;;
11264   esac
11265
11266   case $lt_cv_dlopen_self_static in
11267   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11268   *) enable_dlopen_self_static=unknown ;;
11269   esac
11270 fi
11271
11272
11273 # Report which librarie types wil actually be built
11274 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11275 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11276 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11277 echo "${ECHO_T}$can_build_shared" >&6; }
11278
11279 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11280 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11281 test "$can_build_shared" = "no" && enable_shared=no
11282
11283 # On AIX, shared libraries and static libraries use the same namespace, and
11284 # are all built from PIC.
11285 case $host_os in
11286 aix3*)
11287   test "$enable_shared" = yes && enable_static=no
11288   if test -n "$RANLIB"; then
11289     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11290     postinstall_cmds='$RANLIB $lib'
11291   fi
11292   ;;
11293
11294 aix4* | aix5*)
11295   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11296     test "$enable_shared" = yes && enable_static=no
11297   fi
11298     ;;
11299 esac
11300 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11301 echo "${ECHO_T}$enable_shared" >&6; }
11302
11303 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11304 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11305 # Make sure either enable_shared or enable_static is yes.
11306 test "$enable_shared" = yes || enable_static=yes
11307 { echo "$as_me:$LINENO: result: $enable_static" >&5
11308 echo "${ECHO_T}$enable_static" >&6; }
11309
11310 # The else clause should only fire when bootstrapping the
11311 # libtool distribution, otherwise you forgot to ship ltmain.sh
11312 # with your package, and you will get complaints that there are
11313 # no rules to generate ltmain.sh.
11314 if test -f "$ltmain"; then
11315   # See if we are running on zsh, and set the options which allow our commands through
11316   # without removal of \ escapes.
11317   if test -n "${ZSH_VERSION+set}" ; then
11318     setopt NO_GLOB_SUBST
11319   fi
11320   # Now quote all the things that may contain metacharacters while being
11321   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11322   # variables and quote the copies for generation of the libtool script.
11323   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11324     SED SHELL STRIP \
11325     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11326     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11327     deplibs_check_method reload_flag reload_cmds need_locks \
11328     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11329     lt_cv_sys_global_symbol_to_c_name_address \
11330     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11331     old_postinstall_cmds old_postuninstall_cmds \
11332     compiler \
11333     CC \
11334     LD \
11335     lt_prog_compiler_wl \
11336     lt_prog_compiler_pic \
11337     lt_prog_compiler_static \
11338     lt_prog_compiler_no_builtin_flag \
11339     export_dynamic_flag_spec \
11340     thread_safe_flag_spec \
11341     whole_archive_flag_spec \
11342     enable_shared_with_static_runtimes \
11343     old_archive_cmds \
11344     old_archive_from_new_cmds \
11345     predep_objects \
11346     postdep_objects \
11347     predeps \
11348     postdeps \
11349     compiler_lib_search_path \
11350     archive_cmds \
11351     archive_expsym_cmds \
11352     postinstall_cmds \
11353     postuninstall_cmds \
11354     old_archive_from_expsyms_cmds \
11355     allow_undefined_flag \
11356     no_undefined_flag \
11357     export_symbols_cmds \
11358     hardcode_libdir_flag_spec \
11359     hardcode_libdir_flag_spec_ld \
11360     hardcode_libdir_separator \
11361     hardcode_automatic \
11362     module_cmds \
11363     module_expsym_cmds \
11364     lt_cv_prog_compiler_c_o \
11365     exclude_expsyms \
11366     include_expsyms; do
11367
11368     case $var in
11369     old_archive_cmds | \
11370     old_archive_from_new_cmds | \
11371     archive_cmds | \
11372     archive_expsym_cmds | \
11373     module_cmds | \
11374     module_expsym_cmds | \
11375     old_archive_from_expsyms_cmds | \
11376     export_symbols_cmds | \
11377     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11378     postinstall_cmds | postuninstall_cmds | \
11379     old_postinstall_cmds | old_postuninstall_cmds | \
11380     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11381       # Double-quote double-evaled strings.
11382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11383       ;;
11384     *)
11385       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11386       ;;
11387     esac
11388   done
11389
11390   case $lt_echo in
11391   *'\$0 --fallback-echo"')
11392     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11393     ;;
11394   esac
11395
11396 cfgfile="${ofile}T"
11397   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11398   $rm -f "$cfgfile"
11399   { echo "$as_me:$LINENO: creating $ofile" >&5
11400 echo "$as_me: creating $ofile" >&6;}
11401
11402   cat <<__EOF__ >> "$cfgfile"
11403 #! $SHELL
11404
11405 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11406 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11408 #
11409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11410 # Free Software Foundation, Inc.
11411 #
11412 # This file is part of GNU Libtool:
11413 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11414 #
11415 # This program is free software; you can redistribute it and/or modify
11416 # it under the terms of the GNU General Public License as published by
11417 # the Free Software Foundation; either version 2 of the License, or
11418 # (at your option) any later version.
11419 #
11420 # This program is distributed in the hope that it will be useful, but
11421 # WITHOUT ANY WARRANTY; without even the implied warranty of
11422 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11423 # General Public License for more details.
11424 #
11425 # You should have received a copy of the GNU General Public License
11426 # along with this program; if not, write to the Free Software
11427 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11428 #
11429 # As a special exception to the GNU General Public License, if you
11430 # distribute this file as part of a program that contains a
11431 # configuration script generated by Autoconf, you may include it under
11432 # the same distribution terms that you use for the rest of that program.
11433
11434 # A sed program that does not truncate output.
11435 SED=$lt_SED
11436
11437 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11438 Xsed="$SED -e 1s/^X//"
11439
11440 # The HP-UX ksh and POSIX shell print the target directory to stdout
11441 # if CDPATH is set.
11442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11443
11444 # The names of the tagged configurations supported by this script.
11445 available_tags=
11446
11447 # ### BEGIN LIBTOOL CONFIG
11448
11449 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11450
11451 # Shell to use when invoking shell scripts.
11452 SHELL=$lt_SHELL
11453
11454 # Whether or not to build shared libraries.
11455 build_libtool_libs=$enable_shared
11456
11457 # Whether or not to build static libraries.
11458 build_old_libs=$enable_static
11459
11460 # Whether or not to add -lc for building shared libraries.
11461 build_libtool_need_lc=$archive_cmds_need_lc
11462
11463 # Whether or not to disallow shared libs when runtime libs are static
11464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11465
11466 # Whether or not to optimize for fast installation.
11467 fast_install=$enable_fast_install
11468
11469 # The host system.
11470 host_alias=$host_alias
11471 host=$host
11472 host_os=$host_os
11473
11474 # The build system.
11475 build_alias=$build_alias
11476 build=$build
11477 build_os=$build_os
11478
11479 # An echo program that does not interpret backslashes.
11480 echo=$lt_echo
11481
11482 # The archiver.
11483 AR=$lt_AR
11484 AR_FLAGS=$lt_AR_FLAGS
11485
11486 # A C compiler.
11487 LTCC=$lt_LTCC
11488
11489 # A language-specific compiler.
11490 CC=$lt_compiler
11491
11492 # Is the compiler the GNU C compiler?
11493 with_gcc=$GCC
11494
11495 # An ERE matcher.
11496 EGREP=$lt_EGREP
11497
11498 # The linker used to build libraries.
11499 LD=$lt_LD
11500
11501 # Whether we need hard or soft links.
11502 LN_S=$lt_LN_S
11503
11504 # A BSD-compatible nm program.
11505 NM=$lt_NM
11506
11507 # A symbol stripping program
11508 STRIP=$lt_STRIP
11509
11510 # Used to examine libraries when file_magic_cmd begins "file"
11511 MAGIC_CMD=$MAGIC_CMD
11512
11513 # Used on cygwin: DLL creation program.
11514 DLLTOOL="$DLLTOOL"
11515
11516 # Used on cygwin: object dumper.
11517 OBJDUMP="$OBJDUMP"
11518
11519 # Used on cygwin: assembler.
11520 AS="$AS"
11521
11522 # The name of the directory that contains temporary libtool files.
11523 objdir=$objdir
11524
11525 # How to create reloadable object files.
11526 reload_flag=$lt_reload_flag
11527 reload_cmds=$lt_reload_cmds
11528
11529 # How to pass a linker flag through the compiler.
11530 wl=$lt_lt_prog_compiler_wl
11531
11532 # Object file suffix (normally "o").
11533 objext="$ac_objext"
11534
11535 # Old archive suffix (normally "a").
11536 libext="$libext"
11537
11538 # Shared library suffix (normally ".so").
11539 shrext_cmds='$shrext_cmds'
11540
11541 # Executable file suffix (normally "").
11542 exeext="$exeext"
11543
11544 # Additional compiler flags for building library objects.
11545 pic_flag=$lt_lt_prog_compiler_pic
11546 pic_mode=$pic_mode
11547
11548 # What is the maximum length of a command?
11549 max_cmd_len=$lt_cv_sys_max_cmd_len
11550
11551 # Does compiler simultaneously support -c and -o options?
11552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11553
11554 # Must we lock files when doing compilation?
11555 need_locks=$lt_need_locks
11556
11557 # Do we need the lib prefix for modules?
11558 need_lib_prefix=$need_lib_prefix
11559
11560 # Do we need a version for libraries?
11561 need_version=$need_version
11562
11563 # Whether dlopen is supported.
11564 dlopen_support=$enable_dlopen
11565
11566 # Whether dlopen of programs is supported.
11567 dlopen_self=$enable_dlopen_self
11568
11569 # Whether dlopen of statically linked programs is supported.
11570 dlopen_self_static=$enable_dlopen_self_static
11571
11572 # Compiler flag to prevent dynamic linking.
11573 link_static_flag=$lt_lt_prog_compiler_static
11574
11575 # Compiler flag to turn off builtin functions.
11576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11577
11578 # Compiler flag to allow reflexive dlopens.
11579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11580
11581 # Compiler flag to generate shared objects directly from archives.
11582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11583
11584 # Compiler flag to generate thread-safe objects.
11585 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11586
11587 # Library versioning type.
11588 version_type=$version_type
11589
11590 # Format of library name prefix.
11591 libname_spec=$lt_libname_spec
11592
11593 # List of archive names.  First name is the real one, the rest are links.
11594 # The last name is the one that the linker finds with -lNAME.
11595 library_names_spec=$lt_library_names_spec
11596
11597 # The coded name of the library, if different from the real name.
11598 soname_spec=$lt_soname_spec
11599
11600 # Commands used to build and install an old-style archive.
11601 RANLIB=$lt_RANLIB
11602 old_archive_cmds=$lt_old_archive_cmds
11603 old_postinstall_cmds=$lt_old_postinstall_cmds
11604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11605
11606 # Create an old-style archive from a shared archive.
11607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11608
11609 # Create a temporary old-style archive to link instead of a shared archive.
11610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11611
11612 # Commands used to build and install a shared archive.
11613 archive_cmds=$lt_archive_cmds
11614 archive_expsym_cmds=$lt_archive_expsym_cmds
11615 postinstall_cmds=$lt_postinstall_cmds
11616 postuninstall_cmds=$lt_postuninstall_cmds
11617
11618 # Commands used to build a loadable module (assumed same as above if empty)
11619 module_cmds=$lt_module_cmds
11620 module_expsym_cmds=$lt_module_expsym_cmds
11621
11622 # Commands to strip libraries.
11623 old_striplib=$lt_old_striplib
11624 striplib=$lt_striplib
11625
11626 # Dependencies to place before the objects being linked to create a
11627 # shared library.
11628 predep_objects=$lt_predep_objects
11629
11630 # Dependencies to place after the objects being linked to create a
11631 # shared library.
11632 postdep_objects=$lt_postdep_objects
11633
11634 # Dependencies to place before the objects being linked to create a
11635 # shared library.
11636 predeps=$lt_predeps
11637
11638 # Dependencies to place after the objects being linked to create a
11639 # shared library.
11640 postdeps=$lt_postdeps
11641
11642 # The library search path used internally by the compiler when linking
11643 # a shared library.
11644 compiler_lib_search_path=$lt_compiler_lib_search_path
11645
11646 # Method to check whether dependent libraries are shared objects.
11647 deplibs_check_method=$lt_deplibs_check_method
11648
11649 # Command to use when deplibs_check_method == file_magic.
11650 file_magic_cmd=$lt_file_magic_cmd
11651
11652 # Flag that allows shared libraries with undefined symbols to be built.
11653 allow_undefined_flag=$lt_allow_undefined_flag
11654
11655 # Flag that forces no undefined symbols.
11656 no_undefined_flag=$lt_no_undefined_flag
11657
11658 # Commands used to finish a libtool library installation in a directory.
11659 finish_cmds=$lt_finish_cmds
11660
11661 # Same as above, but a single script fragment to be evaled but not shown.
11662 finish_eval=$lt_finish_eval
11663
11664 # Take the output of nm and produce a listing of raw symbols and C names.
11665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11666
11667 # Transform the output of nm in a proper C declaration
11668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11669
11670 # Transform the output of nm in a C name address pair
11671 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11672
11673 # This is the shared library runtime path variable.
11674 runpath_var=$runpath_var
11675
11676 # This is the shared library path variable.
11677 shlibpath_var=$shlibpath_var
11678
11679 # Is shlibpath searched before the hard-coded library search path?
11680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11681
11682 # How to hardcode a shared library path into an executable.
11683 hardcode_action=$hardcode_action
11684
11685 # Whether we should hardcode library paths into libraries.
11686 hardcode_into_libs=$hardcode_into_libs
11687
11688 # Flag to hardcode \$libdir into a binary during linking.
11689 # This must work even if \$libdir does not exist.
11690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11691
11692 # If ld is used when linking, flag to hardcode \$libdir into
11693 # a binary during linking. This must work even if \$libdir does
11694 # not exist.
11695 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11696
11697 # Whether we need a single -rpath flag with a separated argument.
11698 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11699
11700 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11701 # resulting binary.
11702 hardcode_direct=$hardcode_direct
11703
11704 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11705 # resulting binary.
11706 hardcode_minus_L=$hardcode_minus_L
11707
11708 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11709 # the resulting binary.
11710 hardcode_shlibpath_var=$hardcode_shlibpath_var
11711
11712 # Set to yes if building a shared library automatically hardcodes DIR into the library
11713 # and all subsequent libraries and executables linked against it.
11714 hardcode_automatic=$hardcode_automatic
11715
11716 # Variables whose values should be saved in libtool wrapper scripts and
11717 # restored at relink time.
11718 variables_saved_for_relink="$variables_saved_for_relink"
11719
11720 # Whether libtool must link a program against all its dependency libraries.
11721 link_all_deplibs=$link_all_deplibs
11722
11723 # Compile-time system search path for libraries
11724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11725
11726 # Run-time system search path for libraries
11727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11728
11729 # Fix the shell variable \$srcfile for the compiler.
11730 fix_srcfile_path="$fix_srcfile_path"
11731
11732 # Set to yes if exported symbols are required.
11733 always_export_symbols=$always_export_symbols
11734
11735 # The commands to list exported symbols.
11736 export_symbols_cmds=$lt_export_symbols_cmds
11737
11738 # The commands to extract the exported symbol list from a shared archive.
11739 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11740
11741 # Symbols that should not be listed in the preloaded symbols.
11742 exclude_expsyms=$lt_exclude_expsyms
11743
11744 # Symbols that must always be exported.
11745 include_expsyms=$lt_include_expsyms
11746
11747 # ### END LIBTOOL CONFIG
11748
11749 __EOF__
11750
11751
11752   case $host_os in
11753   aix3*)
11754     cat <<\EOF >> "$cfgfile"
11755
11756 # AIX sometimes has problems with the GCC collect2 program.  For some
11757 # reason, if we set the COLLECT_NAMES environment variable, the problems
11758 # vanish in a puff of smoke.
11759 if test "X${COLLECT_NAMES+set}" != Xset; then
11760   COLLECT_NAMES=
11761   export COLLECT_NAMES
11762 fi
11763 EOF
11764     ;;
11765   esac
11766
11767   # We use sed instead of cat because bash on DJGPP gets confused if
11768   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11769   # text mode, it properly converts lines to CR/LF.  This bash problem
11770   # is reportedly fixed, but why not run on old versions too?
11771   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11772
11773   mv -f "$cfgfile" "$ofile" || \
11774     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11775   chmod +x "$ofile"
11776
11777 else
11778   # If there is no Makefile yet, we rely on a make rule to execute
11779   # `config.status --recheck' to rerun these tests and create the
11780   # libtool script then.
11781   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11782   if test -f "$ltmain_in"; then
11783     test -f Makefile && make "$ltmain"
11784   fi
11785 fi
11786
11787
11788 ac_ext=c
11789 ac_cpp='$CPP $CPPFLAGS'
11790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11793
11794 CC="$lt_save_CC"
11795
11796
11797 # Check whether --with-tags was given.
11798 if test "${with_tags+set}" = set; then
11799   withval=$with_tags; tagnames="$withval"
11800 fi
11801
11802
11803 if test -f "$ltmain" && test -n "$tagnames"; then
11804   if test ! -f "${ofile}"; then
11805     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11806 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11807   fi
11808
11809   if test -z "$LTCC"; then
11810     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11811     if test -z "$LTCC"; then
11812       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11813 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11814     else
11815       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11816 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11817     fi
11818   fi
11819
11820   # Extract list of available tagged configurations in $ofile.
11821   # Note that this assumes the entire list is on one line.
11822   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11823
11824   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11825   for tagname in $tagnames; do
11826     IFS="$lt_save_ifs"
11827     # Check whether tagname contains only valid characters
11828     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11829     "") ;;
11830     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11831 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11832    { (exit 1); exit 1; }; }
11833         ;;
11834     esac
11835
11836     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11837     then
11838       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11839 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11840    { (exit 1); exit 1; }; }
11841     fi
11842
11843     # Update the list of available tags.
11844     if test -n "$tagname"; then
11845       echo appending configuration tag \"$tagname\" to $ofile
11846
11847       case $tagname in
11848       CXX)
11849         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11850             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11851             (test "X$CXX" != "Xg++"))) ; then
11852           :
11853         else
11854           tagname=""
11855         fi
11856         ;;
11857
11858       F77)
11859         if test -n "$F77" && test "X$F77" != "Xno"; then
11860           :
11861         else
11862           tagname=""
11863         fi
11864         ;;
11865
11866       GCJ)
11867         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11868           :
11869         else
11870           tagname=""
11871         fi
11872         ;;
11873
11874       RC)
11875
11876
11877 # Source file extension for RC test sources.
11878 ac_ext=rc
11879
11880 # Object file extension for compiled RC test sources.
11881 objext=o
11882 objext_RC=$objext
11883
11884 # Code to be used in simple compile tests
11885 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11886
11887 # Code to be used in simple link tests
11888 lt_simple_link_test_code="$lt_simple_compile_test_code"
11889
11890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11891
11892 # If no C compiler was specified, use CC.
11893 LTCC=${LTCC-"$CC"}
11894
11895 # Allow CC to be a program name with arguments.
11896 compiler=$CC
11897
11898
11899 # save warnings/boilerplate of simple test code
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11903 _lt_compiler_boilerplate=`cat conftest.err`
11904 $rm conftest*
11905
11906 ac_outfile=conftest.$ac_objext
11907 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11909 _lt_linker_boilerplate=`cat conftest.err`
11910 $rm conftest*
11911
11912
11913 # Allow CC to be a program name with arguments.
11914 lt_save_CC="$CC"
11915 CC=${RC-"windres"}
11916 compiler=$CC
11917 compiler_RC=$CC
11918 for cc_temp in $compiler""; do
11919   case $cc_temp in
11920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11922     \-*) ;;
11923     *) break;;
11924   esac
11925 done
11926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11927
11928 lt_cv_prog_compiler_c_o_RC=yes
11929
11930 # The else clause should only fire when bootstrapping the
11931 # libtool distribution, otherwise you forgot to ship ltmain.sh
11932 # with your package, and you will get complaints that there are
11933 # no rules to generate ltmain.sh.
11934 if test -f "$ltmain"; then
11935   # See if we are running on zsh, and set the options which allow our commands through
11936   # without removal of \ escapes.
11937   if test -n "${ZSH_VERSION+set}" ; then
11938     setopt NO_GLOB_SUBST
11939   fi
11940   # Now quote all the things that may contain metacharacters while being
11941   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11942   # variables and quote the copies for generation of the libtool script.
11943   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11944     SED SHELL STRIP \
11945     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11946     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11947     deplibs_check_method reload_flag reload_cmds need_locks \
11948     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11949     lt_cv_sys_global_symbol_to_c_name_address \
11950     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11951     old_postinstall_cmds old_postuninstall_cmds \
11952     compiler_RC \
11953     CC_RC \
11954     LD_RC \
11955     lt_prog_compiler_wl_RC \
11956     lt_prog_compiler_pic_RC \
11957     lt_prog_compiler_static_RC \
11958     lt_prog_compiler_no_builtin_flag_RC \
11959     export_dynamic_flag_spec_RC \
11960     thread_safe_flag_spec_RC \
11961     whole_archive_flag_spec_RC \
11962     enable_shared_with_static_runtimes_RC \
11963     old_archive_cmds_RC \
11964     old_archive_from_new_cmds_RC \
11965     predep_objects_RC \
11966     postdep_objects_RC \
11967     predeps_RC \
11968     postdeps_RC \
11969     compiler_lib_search_path_RC \
11970     archive_cmds_RC \
11971     archive_expsym_cmds_RC \
11972     postinstall_cmds_RC \
11973     postuninstall_cmds_RC \
11974     old_archive_from_expsyms_cmds_RC \
11975     allow_undefined_flag_RC \
11976     no_undefined_flag_RC \
11977     export_symbols_cmds_RC \
11978     hardcode_libdir_flag_spec_RC \
11979     hardcode_libdir_flag_spec_ld_RC \
11980     hardcode_libdir_separator_RC \
11981     hardcode_automatic_RC \
11982     module_cmds_RC \
11983     module_expsym_cmds_RC \
11984     lt_cv_prog_compiler_c_o_RC \
11985     exclude_expsyms_RC \
11986     include_expsyms_RC; do
11987
11988     case $var in
11989     old_archive_cmds_RC | \
11990     old_archive_from_new_cmds_RC | \
11991     archive_cmds_RC | \
11992     archive_expsym_cmds_RC | \
11993     module_cmds_RC | \
11994     module_expsym_cmds_RC | \
11995     old_archive_from_expsyms_cmds_RC | \
11996     export_symbols_cmds_RC | \
11997     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998     postinstall_cmds | postuninstall_cmds | \
11999     old_postinstall_cmds | old_postuninstall_cmds | \
12000     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001       # Double-quote double-evaled strings.
12002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12003       ;;
12004     *)
12005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12006       ;;
12007     esac
12008   done
12009
12010   case $lt_echo in
12011   *'\$0 --fallback-echo"')
12012     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12013     ;;
12014   esac
12015
12016 cfgfile="$ofile"
12017
12018   cat <<__EOF__ >> "$cfgfile"
12019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12020
12021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12022
12023 # Shell to use when invoking shell scripts.
12024 SHELL=$lt_SHELL
12025
12026 # Whether or not to build shared libraries.
12027 build_libtool_libs=$enable_shared
12028
12029 # Whether or not to build static libraries.
12030 build_old_libs=$enable_static
12031
12032 # Whether or not to add -lc for building shared libraries.
12033 build_libtool_need_lc=$archive_cmds_need_lc_RC
12034
12035 # Whether or not to disallow shared libs when runtime libs are static
12036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12037
12038 # Whether or not to optimize for fast installation.
12039 fast_install=$enable_fast_install
12040
12041 # The host system.
12042 host_alias=$host_alias
12043 host=$host
12044 host_os=$host_os
12045
12046 # The build system.
12047 build_alias=$build_alias
12048 build=$build
12049 build_os=$build_os
12050
12051 # An echo program that does not interpret backslashes.
12052 echo=$lt_echo
12053
12054 # The archiver.
12055 AR=$lt_AR
12056 AR_FLAGS=$lt_AR_FLAGS
12057
12058 # A C compiler.
12059 LTCC=$lt_LTCC
12060
12061 # A language-specific compiler.
12062 CC=$lt_compiler_RC
12063
12064 # Is the compiler the GNU C compiler?
12065 with_gcc=$GCC_RC
12066
12067 # An ERE matcher.
12068 EGREP=$lt_EGREP
12069
12070 # The linker used to build libraries.
12071 LD=$lt_LD_RC
12072
12073 # Whether we need hard or soft links.
12074 LN_S=$lt_LN_S
12075
12076 # A BSD-compatible nm program.
12077 NM=$lt_NM
12078
12079 # A symbol stripping program
12080 STRIP=$lt_STRIP
12081
12082 # Used to examine libraries when file_magic_cmd begins "file"
12083 MAGIC_CMD=$MAGIC_CMD
12084
12085 # Used on cygwin: DLL creation program.
12086 DLLTOOL="$DLLTOOL"
12087
12088 # Used on cygwin: object dumper.
12089 OBJDUMP="$OBJDUMP"
12090
12091 # Used on cygwin: assembler.
12092 AS="$AS"
12093
12094 # The name of the directory that contains temporary libtool files.
12095 objdir=$objdir
12096
12097 # How to create reloadable object files.
12098 reload_flag=$lt_reload_flag
12099 reload_cmds=$lt_reload_cmds
12100
12101 # How to pass a linker flag through the compiler.
12102 wl=$lt_lt_prog_compiler_wl_RC
12103
12104 # Object file suffix (normally "o").
12105 objext="$ac_objext"
12106
12107 # Old archive suffix (normally "a").
12108 libext="$libext"
12109
12110 # Shared library suffix (normally ".so").
12111 shrext_cmds='$shrext_cmds'
12112
12113 # Executable file suffix (normally "").
12114 exeext="$exeext"
12115
12116 # Additional compiler flags for building library objects.
12117 pic_flag=$lt_lt_prog_compiler_pic_RC
12118 pic_mode=$pic_mode
12119
12120 # What is the maximum length of a command?
12121 max_cmd_len=$lt_cv_sys_max_cmd_len
12122
12123 # Does compiler simultaneously support -c and -o options?
12124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12125
12126 # Must we lock files when doing compilation?
12127 need_locks=$lt_need_locks
12128
12129 # Do we need the lib prefix for modules?
12130 need_lib_prefix=$need_lib_prefix
12131
12132 # Do we need a version for libraries?
12133 need_version=$need_version
12134
12135 # Whether dlopen is supported.
12136 dlopen_support=$enable_dlopen
12137
12138 # Whether dlopen of programs is supported.
12139 dlopen_self=$enable_dlopen_self
12140
12141 # Whether dlopen of statically linked programs is supported.
12142 dlopen_self_static=$enable_dlopen_self_static
12143
12144 # Compiler flag to prevent dynamic linking.
12145 link_static_flag=$lt_lt_prog_compiler_static_RC
12146
12147 # Compiler flag to turn off builtin functions.
12148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12149
12150 # Compiler flag to allow reflexive dlopens.
12151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12152
12153 # Compiler flag to generate shared objects directly from archives.
12154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12155
12156 # Compiler flag to generate thread-safe objects.
12157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12158
12159 # Library versioning type.
12160 version_type=$version_type
12161
12162 # Format of library name prefix.
12163 libname_spec=$lt_libname_spec
12164
12165 # List of archive names.  First name is the real one, the rest are links.
12166 # The last name is the one that the linker finds with -lNAME.
12167 library_names_spec=$lt_library_names_spec
12168
12169 # The coded name of the library, if different from the real name.
12170 soname_spec=$lt_soname_spec
12171
12172 # Commands used to build and install an old-style archive.
12173 RANLIB=$lt_RANLIB
12174 old_archive_cmds=$lt_old_archive_cmds_RC
12175 old_postinstall_cmds=$lt_old_postinstall_cmds
12176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12177
12178 # Create an old-style archive from a shared archive.
12179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12180
12181 # Create a temporary old-style archive to link instead of a shared archive.
12182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12183
12184 # Commands used to build and install a shared archive.
12185 archive_cmds=$lt_archive_cmds_RC
12186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12187 postinstall_cmds=$lt_postinstall_cmds
12188 postuninstall_cmds=$lt_postuninstall_cmds
12189
12190 # Commands used to build a loadable module (assumed same as above if empty)
12191 module_cmds=$lt_module_cmds_RC
12192 module_expsym_cmds=$lt_module_expsym_cmds_RC
12193
12194 # Commands to strip libraries.
12195 old_striplib=$lt_old_striplib
12196 striplib=$lt_striplib
12197
12198 # Dependencies to place before the objects being linked to create a
12199 # shared library.
12200 predep_objects=$lt_predep_objects_RC
12201
12202 # Dependencies to place after the objects being linked to create a
12203 # shared library.
12204 postdep_objects=$lt_postdep_objects_RC
12205
12206 # Dependencies to place before the objects being linked to create a
12207 # shared library.
12208 predeps=$lt_predeps_RC
12209
12210 # Dependencies to place after the objects being linked to create a
12211 # shared library.
12212 postdeps=$lt_postdeps_RC
12213
12214 # The library search path used internally by the compiler when linking
12215 # a shared library.
12216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12217
12218 # Method to check whether dependent libraries are shared objects.
12219 deplibs_check_method=$lt_deplibs_check_method
12220
12221 # Command to use when deplibs_check_method == file_magic.
12222 file_magic_cmd=$lt_file_magic_cmd
12223
12224 # Flag that allows shared libraries with undefined symbols to be built.
12225 allow_undefined_flag=$lt_allow_undefined_flag_RC
12226
12227 # Flag that forces no undefined symbols.
12228 no_undefined_flag=$lt_no_undefined_flag_RC
12229
12230 # Commands used to finish a libtool library installation in a directory.
12231 finish_cmds=$lt_finish_cmds
12232
12233 # Same as above, but a single script fragment to be evaled but not shown.
12234 finish_eval=$lt_finish_eval
12235
12236 # Take the output of nm and produce a listing of raw symbols and C names.
12237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12238
12239 # Transform the output of nm in a proper C declaration
12240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12241
12242 # Transform the output of nm in a C name address pair
12243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12244
12245 # This is the shared library runtime path variable.
12246 runpath_var=$runpath_var
12247
12248 # This is the shared library path variable.
12249 shlibpath_var=$shlibpath_var
12250
12251 # Is shlibpath searched before the hard-coded library search path?
12252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12253
12254 # How to hardcode a shared library path into an executable.
12255 hardcode_action=$hardcode_action_RC
12256
12257 # Whether we should hardcode library paths into libraries.
12258 hardcode_into_libs=$hardcode_into_libs
12259
12260 # Flag to hardcode \$libdir into a binary during linking.
12261 # This must work even if \$libdir does not exist.
12262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12263
12264 # If ld is used when linking, flag to hardcode \$libdir into
12265 # a binary during linking. This must work even if \$libdir does
12266 # not exist.
12267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12268
12269 # Whether we need a single -rpath flag with a separated argument.
12270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12271
12272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12273 # resulting binary.
12274 hardcode_direct=$hardcode_direct_RC
12275
12276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12277 # resulting binary.
12278 hardcode_minus_L=$hardcode_minus_L_RC
12279
12280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12281 # the resulting binary.
12282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12283
12284 # Set to yes if building a shared library automatically hardcodes DIR into the library
12285 # and all subsequent libraries and executables linked against it.
12286 hardcode_automatic=$hardcode_automatic_RC
12287
12288 # Variables whose values should be saved in libtool wrapper scripts and
12289 # restored at relink time.
12290 variables_saved_for_relink="$variables_saved_for_relink"
12291
12292 # Whether libtool must link a program against all its dependency libraries.
12293 link_all_deplibs=$link_all_deplibs_RC
12294
12295 # Compile-time system search path for libraries
12296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12297
12298 # Run-time system search path for libraries
12299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12300
12301 # Fix the shell variable \$srcfile for the compiler.
12302 fix_srcfile_path="$fix_srcfile_path_RC"
12303
12304 # Set to yes if exported symbols are required.
12305 always_export_symbols=$always_export_symbols_RC
12306
12307 # The commands to list exported symbols.
12308 export_symbols_cmds=$lt_export_symbols_cmds_RC
12309
12310 # The commands to extract the exported symbol list from a shared archive.
12311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12312
12313 # Symbols that should not be listed in the preloaded symbols.
12314 exclude_expsyms=$lt_exclude_expsyms_RC
12315
12316 # Symbols that must always be exported.
12317 include_expsyms=$lt_include_expsyms_RC
12318
12319 # ### END LIBTOOL TAG CONFIG: $tagname
12320
12321 __EOF__
12322
12323
12324 else
12325   # If there is no Makefile yet, we rely on a make rule to execute
12326   # `config.status --recheck' to rerun these tests and create the
12327   # libtool script then.
12328   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12329   if test -f "$ltmain_in"; then
12330     test -f Makefile && make "$ltmain"
12331   fi
12332 fi
12333
12334
12335 ac_ext=c
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12340
12341 CC="$lt_save_CC"
12342
12343         ;;
12344
12345       *)
12346         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12347 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12348    { (exit 1); exit 1; }; }
12349         ;;
12350       esac
12351
12352       # Append the new tag name to the list of available tags.
12353       if test -n "$tagname" ; then
12354       available_tags="$available_tags $tagname"
12355     fi
12356     fi
12357   done
12358   IFS="$lt_save_ifs"
12359
12360   # Now substitute the updated list of available tags.
12361   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12362     mv "${ofile}T" "$ofile"
12363     chmod +x "$ofile"
12364   else
12365     rm -f "${ofile}T"
12366     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12367 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12368    { (exit 1); exit 1; }; }
12369   fi
12370 fi
12371
12372
12373
12374 # This can be used to rebuild libtool when needed
12375 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12376
12377 # Always use our own libtool.
12378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12379
12380 # Prevent multiple expansion
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 ol_link_perl=no
12392 if test $ol_enable_perl != no ; then
12393         # Extract the first word of "perl", so it can be a program name with args.
12394 set dummy perl; ac_word=$2
12395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12397 if test "${ac_cv_path_PERLBIN+set}" = set; then
12398   echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400   case $PERLBIN in
12401   [\\/]* | ?:[\\/]*)
12402   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12403   ;;
12404   *)
12405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12407 do
12408   IFS=$as_save_IFS
12409   test -z "$as_dir" && as_dir=.
12410   for ac_exec_ext in '' $ac_executable_extensions; do
12411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12414     break 2
12415   fi
12416 done
12417 done
12418 IFS=$as_save_IFS
12419
12420   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12421   ;;
12422 esac
12423 fi
12424 PERLBIN=$ac_cv_path_PERLBIN
12425 if test -n "$PERLBIN"; then
12426   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12427 echo "${ECHO_T}$PERLBIN" >&6; }
12428 else
12429   { echo "$as_me:$LINENO: result: no" >&5
12430 echo "${ECHO_T}no" >&6; }
12431 fi
12432
12433
12434
12435         if test "no$PERLBIN" = "no" ; then
12436                 if test $ol_enable_perl = yes ; then
12437                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12438 echo "$as_me: error: could not locate perl" >&2;}
12439    { (exit 1); exit 1; }; }
12440                 fi
12441
12442         else
12443                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12444                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12445
12446                 if test x"$ol_enable_perl" = "xyes" ; then
12447                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12448                 else
12449                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12450                 fi
12451                                 ol_link_perl=yes
12452         fi
12453 fi
12454
12455 ac_ext=c
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12460 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12461 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12462 # On Suns, sometimes $CPP names a directory.
12463 if test -n "$CPP" && test -d "$CPP"; then
12464   CPP=
12465 fi
12466 if test -z "$CPP"; then
12467   if test "${ac_cv_prog_CPP+set}" = set; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470       # Double quotes because CPP needs to be expanded
12471     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12472     do
12473       ac_preproc_ok=false
12474 for ac_c_preproc_warn_flag in '' yes
12475 do
12476   # Use a header file that comes with gcc, so configuring glibc
12477   # with a fresh cross-compiler works.
12478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479   # <limits.h> exists even on freestanding compilers.
12480   # On the NeXT, cc -E runs the code through the compiler's parser,
12481   # not just through cpp. "Syntax error" is here to catch this case.
12482   cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 #ifdef __STDC__
12489 # include <limits.h>
12490 #else
12491 # include <assert.h>
12492 #endif
12493                      Syntax error
12494 _ACEOF
12495 if { (ac_try="$ac_cpp conftest.$ac_ext"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } >/dev/null && {
12508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12509          test ! -s conftest.err
12510        }; then
12511   :
12512 else
12513   echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516   # Broken: fails on valid input.
12517 continue
12518 fi
12519
12520 rm -f conftest.err conftest.$ac_ext
12521
12522   # OK, works on sane cases.  Now check whether nonexistent headers
12523   # can be detected and how.
12524   cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 #include <ac_nonexistent.h>
12531 _ACEOF
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } >/dev/null && {
12545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12546          test ! -s conftest.err
12547        }; then
12548   # Broken: success on invalid input.
12549 continue
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554   # Passes both tests.
12555 ac_preproc_ok=:
12556 break
12557 fi
12558
12559 rm -f conftest.err conftest.$ac_ext
12560
12561 done
12562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12563 rm -f conftest.err conftest.$ac_ext
12564 if $ac_preproc_ok; then
12565   break
12566 fi
12567
12568     done
12569     ac_cv_prog_CPP=$CPP
12570
12571 fi
12572   CPP=$ac_cv_prog_CPP
12573 else
12574   ac_cv_prog_CPP=$CPP
12575 fi
12576 { echo "$as_me:$LINENO: result: $CPP" >&5
12577 echo "${ECHO_T}$CPP" >&6; }
12578 ac_preproc_ok=false
12579 for ac_c_preproc_warn_flag in '' yes
12580 do
12581   # Use a header file that comes with gcc, so configuring glibc
12582   # with a fresh cross-compiler works.
12583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584   # <limits.h> exists even on freestanding compilers.
12585   # On the NeXT, cc -E runs the code through the compiler's parser,
12586   # not just through cpp. "Syntax error" is here to catch this case.
12587   cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12598                      Syntax error
12599 _ACEOF
12600 if { (ac_try="$ac_cpp conftest.$ac_ext"
12601 case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } >/dev/null && {
12613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12614          test ! -s conftest.err
12615        }; then
12616   :
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621   # Broken: fails on valid input.
12622 continue
12623 fi
12624
12625 rm -f conftest.err conftest.$ac_ext
12626
12627   # OK, works on sane cases.  Now check whether nonexistent headers
12628   # can be detected and how.
12629   cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635 #include <ac_nonexistent.h>
12636 _ACEOF
12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
12638 case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } >/dev/null && {
12650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12651          test ! -s conftest.err
12652        }; then
12653   # Broken: success on invalid input.
12654 continue
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659   # Passes both tests.
12660 ac_preproc_ok=:
12661 break
12662 fi
12663
12664 rm -f conftest.err conftest.$ac_ext
12665
12666 done
12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12668 rm -f conftest.err conftest.$ac_ext
12669 if $ac_preproc_ok; then
12670   :
12671 else
12672   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&5
12674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&2;}
12676    { (exit 1); exit 1; }; }
12677 fi
12678
12679 ac_ext=c
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12686 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12687 if test "${ol_cv_msvc+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 #ifndef _MSC_VER
12698 #include <__FOO__/generate_error.h>
12699 #endif
12700
12701 _ACEOF
12702 if { (ac_try="$ac_cpp conftest.$ac_ext"
12703 case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12709   ac_status=$?
12710   grep -v '^ *+' conftest.er1 >conftest.err
12711   rm -f conftest.er1
12712   cat conftest.err >&5
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } >/dev/null && {
12715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716          test ! -s conftest.err
12717        }; then
12718   ol_cv_msvc=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723   ol_cv_msvc=no
12724 fi
12725
12726 rm -f conftest.err conftest.$ac_ext
12727 fi
12728 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12729 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12730
12731 case $host_os in
12732   *mingw32* ) ac_cv_mingw32=yes ;;
12733   *cygwin* ) ac_cv_cygwin=yes ;;
12734   *interix* ) ac_cv_interix=yes ;;
12735 esac
12736
12737
12738
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define EXEEXT "${EXEEXT}"
12742 _ACEOF
12743
12744
12745 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12746 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_be_be_app+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lbe -lroot -lnet $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760    Use char because int might match the return type of a GCC
12761    builtin and then its argument prototype would still apply.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char be_app ();
12766 int
12767 main ()
12768 {
12769 return be_app ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } && {
12788          test -z "$ac_c_werror_flag" ||
12789          test ! -s conftest.err
12790        } && test -s conftest$ac_exeext &&
12791        $as_test_x conftest$ac_exeext; then
12792   ac_cv_lib_be_be_app=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         ac_cv_lib_be_be_app=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801       conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12803 fi
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12805 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12806 if test $ac_cv_lib_be_be_app = yes; then
12807   LIBS="$LIBS -lbe -lroot -lnet"
12808 else
12809   :
12810 fi
12811
12812
12813 ac_ext=c
12814 ac_cpp='$CPP $CPPFLAGS'
12815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12818 if test -n "$ac_tool_prefix"; then
12819   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12823 if test "${ac_cv_prog_CC+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   if test -n "$CC"; then
12827   ac_cv_prog_CC="$CC" # Let the user override the test.
12828 else
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12831 do
12832   IFS=$as_save_IFS
12833   test -z "$as_dir" && as_dir=.
12834   for ac_exec_ext in '' $ac_executable_extensions; do
12835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12836     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12838     break 2
12839   fi
12840 done
12841 done
12842 IFS=$as_save_IFS
12843
12844 fi
12845 fi
12846 CC=$ac_cv_prog_CC
12847 if test -n "$CC"; then
12848   { echo "$as_me:$LINENO: result: $CC" >&5
12849 echo "${ECHO_T}$CC" >&6; }
12850 else
12851   { echo "$as_me:$LINENO: result: no" >&5
12852 echo "${ECHO_T}no" >&6; }
12853 fi
12854
12855
12856 fi
12857 if test -z "$ac_cv_prog_CC"; then
12858   ac_ct_CC=$CC
12859   # Extract the first word of "gcc", so it can be a program name with args.
12860 set dummy gcc; ac_word=$2
12861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   if test -n "$ac_ct_CC"; then
12867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12868 else
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874   for ac_exec_ext in '' $ac_executable_extensions; do
12875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876     ac_cv_prog_ac_ct_CC="gcc"
12877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881 done
12882 IFS=$as_save_IFS
12883
12884 fi
12885 fi
12886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12887 if test -n "$ac_ct_CC"; then
12888   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12889 echo "${ECHO_T}$ac_ct_CC" >&6; }
12890 else
12891   { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12893 fi
12894
12895   if test "x$ac_ct_CC" = x; then
12896     CC=""
12897   else
12898     case $cross_compiling:$ac_tool_warned in
12899 yes:)
12900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12901 whose name does not start with the host triplet.  If you think this
12902 configuration is useful to you, please write to autoconf@gnu.org." >&5
12903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12904 whose name does not start with the host triplet.  If you think this
12905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12906 ac_tool_warned=yes ;;
12907 esac
12908     CC=$ac_ct_CC
12909   fi
12910 else
12911   CC="$ac_cv_prog_CC"
12912 fi
12913
12914 if test -z "$CC"; then
12915           if test -n "$ac_tool_prefix"; then
12916     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}cc; ac_word=$2
12918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12920 if test "${ac_cv_prog_CC+set}" = set; then
12921   echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923   if test -n "$CC"; then
12924   ac_cv_prog_CC="$CC" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929   IFS=$as_save_IFS
12930   test -z "$as_dir" && as_dir=.
12931   for ac_exec_ext in '' $ac_executable_extensions; do
12932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933     ac_cv_prog_CC="${ac_tool_prefix}cc"
12934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12935     break 2
12936   fi
12937 done
12938 done
12939 IFS=$as_save_IFS
12940
12941 fi
12942 fi
12943 CC=$ac_cv_prog_CC
12944 if test -n "$CC"; then
12945   { echo "$as_me:$LINENO: result: $CC" >&5
12946 echo "${ECHO_T}$CC" >&6; }
12947 else
12948   { echo "$as_me:$LINENO: result: no" >&5
12949 echo "${ECHO_T}no" >&6; }
12950 fi
12951
12952
12953   fi
12954 fi
12955 if test -z "$CC"; then
12956   # Extract the first word of "cc", so it can be a program name with args.
12957 set dummy cc; ac_word=$2
12958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12960 if test "${ac_cv_prog_CC+set}" = set; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   if test -n "$CC"; then
12964   ac_cv_prog_CC="$CC" # Let the user override the test.
12965 else
12966   ac_prog_rejected=no
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12969 do
12970   IFS=$as_save_IFS
12971   test -z "$as_dir" && as_dir=.
12972   for ac_exec_ext in '' $ac_executable_extensions; do
12973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12975        ac_prog_rejected=yes
12976        continue
12977      fi
12978     ac_cv_prog_CC="cc"
12979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980     break 2
12981   fi
12982 done
12983 done
12984 IFS=$as_save_IFS
12985
12986 if test $ac_prog_rejected = yes; then
12987   # We found a bogon in the path, so make sure we never use it.
12988   set dummy $ac_cv_prog_CC
12989   shift
12990   if test $# != 0; then
12991     # We chose a different compiler from the bogus one.
12992     # However, it has the same basename, so the bogon will be chosen
12993     # first if we set CC to just the basename; use the full file name.
12994     shift
12995     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12996   fi
12997 fi
12998 fi
12999 fi
13000 CC=$ac_cv_prog_CC
13001 if test -n "$CC"; then
13002   { echo "$as_me:$LINENO: result: $CC" >&5
13003 echo "${ECHO_T}$CC" >&6; }
13004 else
13005   { echo "$as_me:$LINENO: result: no" >&5
13006 echo "${ECHO_T}no" >&6; }
13007 fi
13008
13009
13010 fi
13011 if test -z "$CC"; then
13012   if test -n "$ac_tool_prefix"; then
13013   for ac_prog in cl.exe
13014   do
13015     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13019 if test "${ac_cv_prog_CC+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   if test -n "$CC"; then
13023   ac_cv_prog_CC="$CC" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13027 do
13028   IFS=$as_save_IFS
13029   test -z "$as_dir" && as_dir=.
13030   for ac_exec_ext in '' $ac_executable_extensions; do
13031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034     break 2
13035   fi
13036 done
13037 done
13038 IFS=$as_save_IFS
13039
13040 fi
13041 fi
13042 CC=$ac_cv_prog_CC
13043 if test -n "$CC"; then
13044   { echo "$as_me:$LINENO: result: $CC" >&5
13045 echo "${ECHO_T}$CC" >&6; }
13046 else
13047   { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 fi
13050
13051
13052     test -n "$CC" && break
13053   done
13054 fi
13055 if test -z "$CC"; then
13056   ac_ct_CC=$CC
13057   for ac_prog in cl.exe
13058 do
13059   # Extract the first word of "$ac_prog", so it can be a program name with args.
13060 set dummy $ac_prog; ac_word=$2
13061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13064   echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066   if test -n "$ac_ct_CC"; then
13067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13068 else
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13071 do
13072   IFS=$as_save_IFS
13073   test -z "$as_dir" && as_dir=.
13074   for ac_exec_ext in '' $ac_executable_extensions; do
13075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076     ac_cv_prog_ac_ct_CC="$ac_prog"
13077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13078     break 2
13079   fi
13080 done
13081 done
13082 IFS=$as_save_IFS
13083
13084 fi
13085 fi
13086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13087 if test -n "$ac_ct_CC"; then
13088   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13089 echo "${ECHO_T}$ac_ct_CC" >&6; }
13090 else
13091   { echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6; }
13093 fi
13094
13095
13096   test -n "$ac_ct_CC" && break
13097 done
13098
13099   if test "x$ac_ct_CC" = x; then
13100     CC=""
13101   else
13102     case $cross_compiling:$ac_tool_warned in
13103 yes:)
13104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13105 whose name does not start with the host triplet.  If you think this
13106 configuration is useful to you, please write to autoconf@gnu.org." >&5
13107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13108 whose name does not start with the host triplet.  If you think this
13109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13110 ac_tool_warned=yes ;;
13111 esac
13112     CC=$ac_ct_CC
13113   fi
13114 fi
13115
13116 fi
13117
13118
13119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&2;}
13123    { (exit 1); exit 1; }; }
13124
13125 # Provide some information about the compiler.
13126 echo "$as_me:$LINENO: checking for C compiler version" >&5
13127 ac_compiler=`set X $ac_compile; echo $2`
13128 { (ac_try="$ac_compiler --version >&5"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_compiler --version >&5") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }
13138 { (ac_try="$ac_compiler -v >&5"
13139 case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_compiler -v >&5") 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }
13148 { (ac_try="$ac_compiler -V >&5"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_compiler -V >&5") 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }
13158
13159 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170
13171 int
13172 main ()
13173 {
13174 #ifndef __GNUC__
13175        choke me
13176 #endif
13177
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (ac_try="$ac_compile"
13184 case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189   (eval "$ac_compile") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } && {
13196          test -z "$ac_c_werror_flag" ||
13197          test ! -s conftest.err
13198        } && test -s conftest.$ac_objext; then
13199   ac_compiler_gnu=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204         ac_compiler_gnu=no
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13209
13210 fi
13211 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13213 GCC=`test $ac_compiler_gnu = yes && echo yes`
13214 ac_test_CFLAGS=${CFLAGS+set}
13215 ac_save_CFLAGS=$CFLAGS
13216 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13218 if test "${ac_cv_prog_cc_g+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   ac_save_c_werror_flag=$ac_c_werror_flag
13222    ac_c_werror_flag=yes
13223    ac_cv_prog_cc_g=no
13224    CFLAGS="-g"
13225    cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231
13232 int
13233 main ()
13234 {
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_compile") 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } && {
13254          test -z "$ac_c_werror_flag" ||
13255          test ! -s conftest.err
13256        } && test -s conftest.$ac_objext; then
13257   ac_cv_prog_cc_g=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262         CFLAGS=""
13263       cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269
13270 int
13271 main ()
13272 {
13273
13274   ;
13275   return 0;
13276 }
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_compile") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } && {
13292          test -z "$ac_c_werror_flag" ||
13293          test ! -s conftest.err
13294        } && test -s conftest.$ac_objext; then
13295   :
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300         ac_c_werror_flag=$ac_save_c_werror_flag
13301          CFLAGS="-g"
13302          cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308
13309 int
13310 main ()
13311 {
13312
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_compile") 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } && {
13331          test -z "$ac_c_werror_flag" ||
13332          test ! -s conftest.err
13333        } && test -s conftest.$ac_objext; then
13334   ac_cv_prog_cc_g=yes
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
13340 fi
13341
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 fi
13344
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 fi
13347
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349    ac_c_werror_flag=$ac_save_c_werror_flag
13350 fi
13351 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13353 if test "$ac_test_CFLAGS" = set; then
13354   CFLAGS=$ac_save_CFLAGS
13355 elif test $ac_cv_prog_cc_g = yes; then
13356   if test "$GCC" = yes; then
13357     CFLAGS="-g -O2"
13358   else
13359     CFLAGS="-g"
13360   fi
13361 else
13362   if test "$GCC" = yes; then
13363     CFLAGS="-O2"
13364   else
13365     CFLAGS=
13366   fi
13367 fi
13368 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13369 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13370 if test "${ac_cv_prog_cc_c89+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   ac_cv_prog_cc_c89=no
13374 ac_save_CC=$CC
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381 #include <stdarg.h>
13382 #include <stdio.h>
13383 #include <sys/types.h>
13384 #include <sys/stat.h>
13385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13386 struct buf { int x; };
13387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13388 static char *e (p, i)
13389      char **p;
13390      int i;
13391 {
13392   return p[i];
13393 }
13394 static char *f (char * (*g) (char **, int), char **p, ...)
13395 {
13396   char *s;
13397   va_list v;
13398   va_start (v,p);
13399   s = g (p, va_arg (v,int));
13400   va_end (v);
13401   return s;
13402 }
13403
13404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13405    function prototypes and stuff, but not '\xHH' hex character constants.
13406    These don't provoke an error unfortunately, instead are silently treated
13407    as 'x'.  The following induces an error, until -std is added to get
13408    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13409    array size at least.  It's necessary to write '\x00'==0 to get something
13410    that's true only with -std.  */
13411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13412
13413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13414    inside strings and character constants.  */
13415 #define FOO(x) 'x'
13416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13417
13418 int test (int i, double x);
13419 struct s1 {int (*f) (int a);};
13420 struct s2 {int (*f) (double a);};
13421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13422 int argc;
13423 char **argv;
13424 int
13425 main ()
13426 {
13427 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13433         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13434 do
13435   CC="$ac_save_CC $ac_arg"
13436   rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_compile") 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } && {
13450          test -z "$ac_c_werror_flag" ||
13451          test ! -s conftest.err
13452        } && test -s conftest.$ac_objext; then
13453   ac_cv_prog_cc_c89=$ac_arg
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458
13459 fi
13460
13461 rm -f core conftest.err conftest.$ac_objext
13462   test "x$ac_cv_prog_cc_c89" != "xno" && break
13463 done
13464 rm -f conftest.$ac_ext
13465 CC=$ac_save_CC
13466
13467 fi
13468 # AC_CACHE_VAL
13469 case "x$ac_cv_prog_cc_c89" in
13470   x)
13471     { echo "$as_me:$LINENO: result: none needed" >&5
13472 echo "${ECHO_T}none needed" >&6; } ;;
13473   xno)
13474     { echo "$as_me:$LINENO: result: unsupported" >&5
13475 echo "${ECHO_T}unsupported" >&6; } ;;
13476   *)
13477     CC="$CC $ac_cv_prog_cc_c89"
13478     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13479 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13480 esac
13481
13482
13483 ac_ext=c
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13488
13489 depcc="$CC"   am_compiler_list=
13490
13491 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13492 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13497   # We make a subdir and do the tests there.  Otherwise we can end up
13498   # making bogus files that we don't know about and never remove.  For
13499   # instance it was reported that on HP-UX the gcc test will end up
13500   # making a dummy file named `D' -- because `-MD' means `put the output
13501   # in D'.
13502   mkdir conftest.dir
13503   # Copy depcomp to subdir because otherwise we won't find it if we're
13504   # using a relative directory.
13505   cp "$am_depcomp" conftest.dir
13506   cd conftest.dir
13507   # We will build objects and dependencies in a subdirectory because
13508   # it helps to detect inapplicable dependency modes.  For instance
13509   # both Tru64's cc and ICC support -MD to output dependencies as a
13510   # side effect of compilation, but ICC will put the dependencies in
13511   # the current directory while Tru64 will put them in the object
13512   # directory.
13513   mkdir sub
13514
13515   am_cv_CC_dependencies_compiler_type=none
13516   if test "$am_compiler_list" = ""; then
13517      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13518   fi
13519   for depmode in $am_compiler_list; do
13520     # Setup a source with many dependencies, because some compilers
13521     # like to wrap large dependency lists on column 80 (with \), and
13522     # we should not choose a depcomp mode which is confused by this.
13523     #
13524     # We need to recreate these files for each test, as the compiler may
13525     # overwrite some of them when testing with obscure command lines.
13526     # This happens at least with the AIX C compiler.
13527     : > sub/conftest.c
13528     for i in 1 2 3 4 5 6; do
13529       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13530       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13531       # Solaris 8's {/usr,}/bin/sh.
13532       touch sub/conftst$i.h
13533     done
13534     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13535
13536     case $depmode in
13537     nosideeffect)
13538       # after this tag, mechanisms are not by side-effect, so they'll
13539       # only be used when explicitly requested
13540       if test "x$enable_dependency_tracking" = xyes; then
13541         continue
13542       else
13543         break
13544       fi
13545       ;;
13546     none) break ;;
13547     esac
13548     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13549     # mode.  It turns out that the SunPro C++ compiler does not properly
13550     # handle `-M -o', and we need to detect this.
13551     if depmode=$depmode \
13552        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13553        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13554        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13555          >/dev/null 2>conftest.err &&
13556        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13557        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13558        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13559       # icc doesn't choke on unknown options, it will just issue warnings
13560       # or remarks (even with -Werror).  So we grep stderr for any message
13561       # that says an option was ignored or not supported.
13562       # When given -MP, icc 7.0 and 7.1 complain thusly:
13563       #   icc: Command line warning: ignoring option '-M'; no argument required
13564       # The diagnosis changed in icc 8.0:
13565       #   icc: Command line remark: option '-MP' not supported
13566       if (grep 'ignoring option' conftest.err ||
13567           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13568         am_cv_CC_dependencies_compiler_type=$depmode
13569         break
13570       fi
13571     fi
13572   done
13573
13574   cd ..
13575   rm -rf conftest.dir
13576 else
13577   am_cv_CC_dependencies_compiler_type=none
13578 fi
13579
13580 fi
13581 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13582 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13584
13585
13586
13587 if
13588   test "x$enable_dependency_tracking" != xno \
13589   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13590   am__fastdepCC_TRUE=
13591   am__fastdepCC_FALSE='#'
13592 else
13593   am__fastdepCC_TRUE='#'
13594   am__fastdepCC_FALSE=
13595 fi
13596
13597
13598 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13599         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13600 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13601    { (exit 1); exit 1; }; }
13602 fi
13603
13604 # test for make depend flag
13605 OL_MKDEP=
13606 OL_MKDEP_FLAGS=
13607 if test -z "${MKDEP}"; then
13608         OL_MKDEP="${CC-cc}"
13609         if test -z "${MKDEP_FLAGS}"; then
13610                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13611 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13612 if test "${ol_cv_mkdep+set}" = set; then
13613   echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615
13616                         ol_cv_mkdep=no
13617                         for flag in "-M" "-xM"; do
13618                                 cat > conftest.c <<EOF
13619  noCode;
13620 EOF
13621                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; } \
13627                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13628                                 then
13629                                         if test ! -f conftest."${ac_object}" ; then
13630                                                 ol_cv_mkdep=$flag
13631                                                 OL_MKDEP_FLAGS="$flag"
13632                                                 break
13633                                         fi
13634                                 fi
13635                         done
13636                         rm -f conftest*
13637
13638 fi
13639 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13640 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13641                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13642         else
13643                 cc_cv_mkdep=yes
13644                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13645         fi
13646 else
13647         cc_cv_mkdep=yes
13648         OL_MKDEP="${MKDEP}"
13649         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13650 fi
13651
13652
13653
13654 if test "${ol_cv_mkdep}" = no ; then
13655         # this will soon become an error
13656         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13657 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13658 fi
13659
13660 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13661 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13662 if test "${ac_cv_lib_s_afopen+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   ac_check_lib_save_LIBS=$LIBS
13666 LIBS="-ls  $LIBS"
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673
13674 /* Override any GCC internal prototype to avoid an error.
13675    Use char because int might match the return type of a GCC
13676    builtin and then its argument prototype would still apply.  */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char afopen ();
13681 int
13682 main ()
13683 {
13684 return afopen ();
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693   *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696   (eval "$ac_link") 2>conftest.er1
13697   ac_status=$?
13698   grep -v '^ *+' conftest.er1 >conftest.err
13699   rm -f conftest.er1
13700   cat conftest.err >&5
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } && {
13703          test -z "$ac_c_werror_flag" ||
13704          test ! -s conftest.err
13705        } && test -s conftest$ac_exeext &&
13706        $as_test_x conftest$ac_exeext; then
13707   ac_cv_lib_s_afopen=yes
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712         ac_cv_lib_s_afopen=no
13713 fi
13714
13715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13716       conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13718 fi
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13720 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13721 if test $ac_cv_lib_s_afopen = yes; then
13722
13723         AUTH_LIBS=-ls
13724
13725 cat >>confdefs.h <<\_ACEOF
13726 #define HAVE_AIX_SECURITY 1
13727 _ACEOF
13728
13729
13730 fi
13731
13732
13733 case "$target" in
13734 *-ibm-openedition)
13735         ac_cv_func_getopt=no
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define BOTH_STRINGS_H 1
13739 _ACEOF
13740
13741         ;;
13742 esac
13743
13744 ol_link_modules=no
13745 WITH_MODULES_ENABLED=no
13746 if test $ol_enable_modules != no ; then
13747
13748 for ac_header in ltdl.h
13749 do
13750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 fi
13757 ac_res=`eval echo '${'$as_ac_Header'}'`
13758                { echo "$as_me:$LINENO: result: $ac_res" >&5
13759 echo "${ECHO_T}$ac_res" >&6; }
13760 else
13761   # Is the header compilable?
13762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13764 cat >conftest.$ac_ext <<_ACEOF
13765 /* confdefs.h.  */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h.  */
13770 $ac_includes_default
13771 #include <$ac_header>
13772 _ACEOF
13773 rm -f conftest.$ac_objext
13774 if { (ac_try="$ac_compile"
13775 case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780   (eval "$ac_compile") 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } && {
13787          test -z "$ac_c_werror_flag" ||
13788          test ! -s conftest.err
13789        } && test -s conftest.$ac_objext; then
13790   ac_header_compiler=yes
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795         ac_header_compiler=no
13796 fi
13797
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13800 echo "${ECHO_T}$ac_header_compiler" >&6; }
13801
13802 # Is the header present?
13803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13805 cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h.  */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h.  */
13811 #include <$ac_header>
13812 _ACEOF
13813 if { (ac_try="$ac_cpp conftest.$ac_ext"
13814 case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13820   ac_status=$?
13821   grep -v '^ *+' conftest.er1 >conftest.err
13822   rm -f conftest.er1
13823   cat conftest.err >&5
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } >/dev/null && {
13826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13827          test ! -s conftest.err
13828        }; then
13829   ac_header_preproc=yes
13830 else
13831   echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13833
13834   ac_header_preproc=no
13835 fi
13836
13837 rm -f conftest.err conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13839 echo "${ECHO_T}$ac_header_preproc" >&6; }
13840
13841 # So?  What about this header?
13842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13843   yes:no: )
13844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13848     ac_header_preproc=yes
13849     ;;
13850   no:yes:* )
13851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13863     ( cat <<\_ASBOX
13864 ## --------------------------------------------- ##
13865 ## Report this to <http://www.openldap.org/its/> ##
13866 ## --------------------------------------------- ##
13867 _ASBOX
13868      ) | sed "s/^/$as_me: WARNING:     /" >&2
13869     ;;
13870 esac
13871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   eval "$as_ac_Header=\$ac_header_preproc"
13877 fi
13878 ac_res=`eval echo '${'$as_ac_Header'}'`
13879                { echo "$as_me:$LINENO: result: $ac_res" >&5
13880 echo "${ECHO_T}$ac_res" >&6; }
13881
13882 fi
13883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13884   cat >>confdefs.h <<_ACEOF
13885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13886 _ACEOF
13887
13888 fi
13889
13890 done
13891
13892
13893         if test $ac_cv_header_ltdl_h = no ; then
13894                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13895 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13896    { (exit 1); exit 1; }; }
13897         fi
13898
13899         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13900 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13901 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lltdl  $LIBS"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914    Use char because int might match the return type of a GCC
13915    builtin and then its argument prototype would still apply.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char lt_dlinit ();
13920 int
13921 main ()
13922 {
13923 return lt_dlinit ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_link") 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } && {
13942          test -z "$ac_c_werror_flag" ||
13943          test ! -s conftest.err
13944        } && test -s conftest$ac_exeext &&
13945        $as_test_x conftest$ac_exeext; then
13946   ac_cv_lib_ltdl_lt_dlinit=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951         ac_cv_lib_ltdl_lt_dlinit=no
13952 fi
13953
13954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13955       conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13957 fi
13958 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13959 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13960 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13961
13962                 MODULES_LIBS=-lltdl
13963
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_LIBLTDL 1
13966 _ACEOF
13967
13968
13969 fi
13970
13971
13972         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13973                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13974 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13975    { (exit 1); exit 1; }; }
13976         fi
13977         ol_link_modules=yes
13978         WITH_MODULES_ENABLED=yes
13979
13980 else
13981         for i in $Backends; do
13982                 eval "ol_tmp=\$ol_enable_$i"
13983                 if test $ol_tmp = mod ; then
13984                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13985 echo "$as_me: WARNING: building static $i backend" >&2;}
13986                         eval "ol_enable_$i=yes"
13987                 fi
13988         done
13989         for i in $Overlays; do
13990                 eval "ol_tmp=\$ol_enable_$i"
13991                 if test $ol_tmp = mod ; then
13992                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13993 echo "$as_me: WARNING: building static $i overlay" >&2;}
13994                         eval "ol_enable_$i=yes"
13995                 fi
13996         done
13997 fi
13998
13999 # test for EBCDIC
14000 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14001 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14002 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14003   echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005
14006         cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012
14013 #if !('M' == 0xd4)
14014 #include <__ASCII__/generate_error.h>
14015 #endif
14016
14017 _ACEOF
14018 if { (ac_try="$ac_cpp conftest.$ac_ext"
14019 case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } >/dev/null && {
14031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14032          test ! -s conftest.err
14033        }; then
14034   ol_cv_cpp_ebcdic=yes
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039   ol_cv_cpp_ebcdic=no
14040 fi
14041
14042 rm -f conftest.err conftest.$ac_ext
14043 fi
14044 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14045 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14046 if test $ol_cv_cpp_ebcdic = yes ; then
14047
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_EBCDIC 1
14050 _ACEOF
14051
14052 fi
14053
14054 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14056 if test "${ol_cv_header_stdc+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 #include <stdlib.h>
14066 #include <stdarg.h>
14067 #include <string.h>
14068 #include <float.h>
14069 _ACEOF
14070 if { (ac_try="$ac_cpp conftest.$ac_ext"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } >/dev/null && {
14083          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14084          test ! -s conftest.err
14085        }; then
14086   ol_cv_header_stdc=yes
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091   ol_cv_header_stdc=no
14092 fi
14093
14094 rm -f conftest.err conftest.$ac_ext
14095
14096 if test $ol_cv_header_stdc = yes; then
14097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104 #include <string.h>
14105
14106 _ACEOF
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108   $EGREP "memchr" >/dev/null 2>&1; then
14109   :
14110 else
14111   ol_cv_header_stdc=no
14112 fi
14113 rm -f conftest*
14114
14115 fi
14116
14117 if test $ol_cv_header_stdc = yes; then
14118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14119 cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 #include <stdlib.h>
14126
14127 _ACEOF
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129   $EGREP "free" >/dev/null 2>&1; then
14130   :
14131 else
14132   ol_cv_header_stdc=no
14133 fi
14134 rm -f conftest*
14135
14136 fi
14137
14138 if test $ol_cv_header_stdc = yes; then
14139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14140 if test "$cross_compiling" = yes; then
14141   :
14142 else
14143   cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h.  */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h.  */
14149 #include <ctype.h>
14150 #ifndef HAVE_EBCDIC
14151 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14152 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14153 #else
14154 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14155                 || ('j' <= (c) && (c) <= 'r') \
14156                 || ('s' <= (c) && (c) <= 'z'))
14157 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14158 #endif
14159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14160 int main () { int i; for (i = 0; i < 256; i++)
14161 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14162 exit (0); }
14163
14164 _ACEOF
14165 rm -f conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172   (eval "$ac_link") 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176   { (case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_try") 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; }; then
14185   :
14186 else
14187   echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 ( exit $ac_status )
14192 ol_cv_header_stdc=no
14193 fi
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14195 fi
14196
14197
14198 fi
14199 fi
14200 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14201 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14202 if test $ol_cv_header_stdc = yes; then
14203   cat >>confdefs.h <<\_ACEOF
14204 #define STDC_HEADERS 1
14205 _ACEOF
14206
14207 fi
14208 ac_cv_header_stdc=disable
14209
14210
14211 if test $ol_cv_header_stdc != yes; then
14212         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14213 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14214 fi
14215
14216
14217
14218
14219
14220
14221 ac_header_dirent=no
14222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14223   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14224 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 #include <sys/types.h>
14236 #include <$ac_hdr>
14237
14238 int
14239 main ()
14240 {
14241 if ((DIR *) 0)
14242 return 0;
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_compile") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } && {
14261          test -z "$ac_c_werror_flag" ||
14262          test ! -s conftest.err
14263        } && test -s conftest.$ac_objext; then
14264   eval "$as_ac_Header=yes"
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269         eval "$as_ac_Header=no"
14270 fi
14271
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 fi
14274 ac_res=`eval echo '${'$as_ac_Header'}'`
14275                { echo "$as_me:$LINENO: result: $ac_res" >&5
14276 echo "${ECHO_T}$ac_res" >&6; }
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278   cat >>confdefs.h <<_ACEOF
14279 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14280 _ACEOF
14281
14282 ac_header_dirent=$ac_hdr; break
14283 fi
14284
14285 done
14286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14287 if test $ac_header_dirent = dirent.h; then
14288   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14290 if test "${ac_cv_search_opendir+set}" = set; then
14291   echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293   ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302    Use char because int might match the return type of a GCC
14303    builtin and then its argument prototype would still apply.  */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char opendir ();
14308 int
14309 main ()
14310 {
14311 return opendir ();
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 for ac_lib in '' dir; do
14317   if test -z "$ac_lib"; then
14318     ac_res="none required"
14319   else
14320     ac_res=-l$ac_lib
14321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14322   fi
14323   rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330   (eval "$ac_link") 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } && {
14337          test -z "$ac_c_werror_flag" ||
14338          test ! -s conftest.err
14339        } && test -s conftest$ac_exeext &&
14340        $as_test_x conftest$ac_exeext; then
14341   ac_cv_search_opendir=$ac_res
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346
14347 fi
14348
14349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14350       conftest$ac_exeext
14351   if test "${ac_cv_search_opendir+set}" = set; then
14352   break
14353 fi
14354 done
14355 if test "${ac_cv_search_opendir+set}" = set; then
14356   :
14357 else
14358   ac_cv_search_opendir=no
14359 fi
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14362 fi
14363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14365 ac_res=$ac_cv_search_opendir
14366 if test "$ac_res" != no; then
14367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14368
14369 fi
14370
14371 else
14372   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14374 if test "${ac_cv_search_opendir+set}" = set; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377   ac_func_search_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384
14385 /* Override any GCC internal prototype to avoid an error.
14386    Use char because int might match the return type of a GCC
14387    builtin and then its argument prototype would still apply.  */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 char opendir ();
14392 int
14393 main ()
14394 {
14395 return opendir ();
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 for ac_lib in '' x; do
14401   if test -z "$ac_lib"; then
14402     ac_res="none required"
14403   else
14404     ac_res=-l$ac_lib
14405     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14406   fi
14407   rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (ac_try="$ac_link"
14409 case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_link") 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } && {
14421          test -z "$ac_c_werror_flag" ||
14422          test ! -s conftest.err
14423        } && test -s conftest$ac_exeext &&
14424        $as_test_x conftest$ac_exeext; then
14425   ac_cv_search_opendir=$ac_res
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430
14431 fi
14432
14433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14434       conftest$ac_exeext
14435   if test "${ac_cv_search_opendir+set}" = set; then
14436   break
14437 fi
14438 done
14439 if test "${ac_cv_search_opendir+set}" = set; then
14440   :
14441 else
14442   ac_cv_search_opendir=no
14443 fi
14444 rm conftest.$ac_ext
14445 LIBS=$ac_func_search_save_LIBS
14446 fi
14447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14449 ac_res=$ac_cv_search_opendir
14450 if test "$ac_res" != no; then
14451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14452
14453 fi
14454
14455 fi
14456
14457 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14460   echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462   cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 #include <sys/types.h>
14469 #include <sys/wait.h>
14470 #ifndef WEXITSTATUS
14471 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14472 #endif
14473 #ifndef WIFEXITED
14474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14475 #endif
14476
14477 int
14478 main ()
14479 {
14480   int s;
14481   wait (&s);
14482   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494   (eval "$ac_compile") 2>conftest.er1
14495   ac_status=$?
14496   grep -v '^ *+' conftest.er1 >conftest.err
14497   rm -f conftest.er1
14498   cat conftest.err >&5
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); } && {
14501          test -z "$ac_c_werror_flag" ||
14502          test ! -s conftest.err
14503        } && test -s conftest.$ac_objext; then
14504   ac_cv_header_sys_wait_h=yes
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509         ac_cv_header_sys_wait_h=no
14510 fi
14511
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 fi
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14516 if test $ac_cv_header_sys_wait_h = yes; then
14517
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_SYS_WAIT_H 1
14520 _ACEOF
14521
14522 fi
14523
14524 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14525 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14526 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 #include <sys/types.h>
14536 #include <termios.h>
14537 #ifdef TIOCGWINSZ
14538   yes
14539 #endif
14540
14541 _ACEOF
14542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14543   $EGREP "yes" >/dev/null 2>&1; then
14544   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14545 else
14546   ac_cv_sys_tiocgwinsz_in_termios_h=no
14547 fi
14548 rm -f conftest*
14549
14550 fi
14551 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14552 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14553
14554 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14555   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14556 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14557 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 #include <sys/types.h>
14567 #include <sys/ioctl.h>
14568 #ifdef TIOCGWINSZ
14569   yes
14570 #endif
14571
14572 _ACEOF
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574   $EGREP "yes" >/dev/null 2>&1; then
14575   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14576 else
14577   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14578 fi
14579 rm -f conftest*
14580
14581 fi
14582 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14583 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14584
14585   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define GWINSZ_IN_SYS_IOCTL 1
14589 _ACEOF
14590
14591   fi
14592 fi
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642 for ac_header in \
14643         arpa/inet.h             \
14644         arpa/nameser.h  \
14645         assert.h                \
14646         bits/types.h    \
14647         conio.h                 \
14648         crypt.h                 \
14649         direct.h                \
14650         errno.h                 \
14651         fcntl.h                 \
14652         filio.h                 \
14653         getopt.h                \
14654         grp.h                   \
14655         io.h                    \
14656         libutil.h               \
14657         limits.h                \
14658         locale.h                \
14659         malloc.h                \
14660         memory.h                \
14661         psap.h                  \
14662         pwd.h                   \
14663         process.h               \
14664         sgtty.h                 \
14665         shadow.h                \
14666         stddef.h                \
14667         string.h                \
14668         strings.h               \
14669         sysexits.h              \
14670         sys/file.h              \
14671         sys/filio.h             \
14672         sys/fstyp.h             \
14673         sys/errno.h             \
14674         sys/ioctl.h             \
14675         sys/param.h             \
14676         sys/privgrp.h   \
14677         sys/resource.h  \
14678         sys/select.h    \
14679         sys/socket.h    \
14680         sys/stat.h              \
14681         sys/syslog.h    \
14682         sys/time.h              \
14683         sys/types.h             \
14684         sys/uio.h               \
14685         sys/vmount.h    \
14686         syslog.h                \
14687         termios.h               \
14688         unistd.h                \
14689         utime.h                 \
14690
14691 do
14692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 fi
14699 ac_res=`eval echo '${'$as_ac_Header'}'`
14700                { echo "$as_me:$LINENO: result: $ac_res" >&5
14701 echo "${ECHO_T}$ac_res" >&6; }
14702 else
14703   # Is the header compilable?
14704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 #include <$ac_header>
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_compile") 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } && {
14729          test -z "$ac_c_werror_flag" ||
14730          test ! -s conftest.err
14731        } && test -s conftest.$ac_objext; then
14732   ac_header_compiler=yes
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737         ac_header_compiler=no
14738 fi
14739
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742 echo "${ECHO_T}$ac_header_compiler" >&6; }
14743
14744 # Is the header present?
14745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753 #include <$ac_header>
14754 _ACEOF
14755 if { (ac_try="$ac_cpp conftest.$ac_ext"
14756 case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } >/dev/null && {
14768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14769          test ! -s conftest.err
14770        }; then
14771   ac_header_preproc=yes
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776   ac_header_preproc=no
14777 fi
14778
14779 rm -f conftest.err conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14781 echo "${ECHO_T}$ac_header_preproc" >&6; }
14782
14783 # So?  What about this header?
14784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14785   yes:no: )
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14790     ac_header_preproc=yes
14791     ;;
14792   no:yes:* )
14793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14805     ( cat <<\_ASBOX
14806 ## --------------------------------------------- ##
14807 ## Report this to <http://www.openldap.org/its/> ##
14808 ## --------------------------------------------- ##
14809 _ASBOX
14810      ) | sed "s/^/$as_me: WARNING:     /" >&2
14811     ;;
14812 esac
14813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818   eval "$as_ac_Header=\$ac_header_preproc"
14819 fi
14820 ac_res=`eval echo '${'$as_ac_Header'}'`
14821                { echo "$as_me:$LINENO: result: $ac_res" >&5
14822 echo "${ECHO_T}$ac_res" >&6; }
14823
14824 fi
14825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826   cat >>confdefs.h <<_ACEOF
14827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828 _ACEOF
14829
14830 fi
14831
14832 done
14833
14834
14835 if test "$ac_cv_mingw32" = yes \
14836         -o "$ac_cv_interix" = yes \
14837         -o "$ol_cv_msvc" = yes
14838 then
14839
14840
14841 for ac_header in winsock.h winsock2.h
14842 do
14843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 fi
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851                { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14853 else
14854   # Is the header compilable?
14855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 $ac_includes_default
14864 #include <$ac_header>
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870   *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873   (eval "$ac_compile") 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } && {
14880          test -z "$ac_c_werror_flag" ||
14881          test ! -s conftest.err
14882        } && test -s conftest.$ac_objext; then
14883   ac_header_compiler=yes
14884 else
14885   echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888         ac_header_compiler=no
14889 fi
14890
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 echo "${ECHO_T}$ac_header_compiler" >&6; }
14894
14895 # Is the header present?
14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 #include <$ac_header>
14905 _ACEOF
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } >/dev/null && {
14919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14920          test ! -s conftest.err
14921        }; then
14922   ac_header_preproc=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927   ac_header_preproc=no
14928 fi
14929
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14933
14934 # So?  What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936   yes:no: )
14937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941     ac_header_preproc=yes
14942     ;;
14943   no:yes:* )
14944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14956     ( cat <<\_ASBOX
14957 ## --------------------------------------------- ##
14958 ## Report this to <http://www.openldap.org/its/> ##
14959 ## --------------------------------------------- ##
14960 _ASBOX
14961      ) | sed "s/^/$as_me: WARNING:     /" >&2
14962     ;;
14963 esac
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967   echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969   eval "$as_ac_Header=\$ac_header_preproc"
14970 fi
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972                { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974
14975 fi
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977   cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14979 _ACEOF
14980
14981 fi
14982
14983 done
14984
14985 fi
14986
14987
14988 for ac_header in resolv.h
14989 do
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002 $ac_includes_default
15003 #include <netinet/in.h>
15004
15005
15006 #include <$ac_header>
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_compile") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } && {
15022          test -z "$ac_c_werror_flag" ||
15023          test ! -s conftest.err
15024        } && test -s conftest.$ac_objext; then
15025   eval "$as_ac_Header=yes"
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030         eval "$as_ac_Header=no"
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 fi
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036                { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039   cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041 _ACEOF
15042
15043 fi
15044
15045 done
15046
15047
15048
15049 for ac_header in netinet/tcp.h
15050 do
15051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063 $ac_includes_default
15064 #include <netinet/in.h>
15065
15066
15067 #include <$ac_header>
15068 _ACEOF
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_compile") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } && {
15083          test -z "$ac_c_werror_flag" ||
15084          test ! -s conftest.err
15085        } && test -s conftest.$ac_objext; then
15086   eval "$as_ac_Header=yes"
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091         eval "$as_ac_Header=no"
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 ac_res=`eval echo '${'$as_ac_Header'}'`
15097                { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15100   cat >>confdefs.h <<_ACEOF
15101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15102 _ACEOF
15103
15104 fi
15105
15106 done
15107
15108
15109
15110 for ac_header in sys/ucred.h
15111 do
15112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 $ac_includes_default
15125 #ifdef HAVE_SYS_PARAM_H
15126 #include <sys/param.h>
15127 #endif
15128
15129
15130 #include <$ac_header>
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest.$ac_objext; then
15149   eval "$as_ac_Header=yes"
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154         eval "$as_ac_Header=no"
15155 fi
15156
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 fi
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160                { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15163   cat >>confdefs.h <<_ACEOF
15164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15165 _ACEOF
15166
15167 fi
15168
15169 done
15170
15171
15172
15173
15174
15175 for ac_func in sigaction sigset
15176 do
15177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15181   echo $ECHO_N "(cached) $ECHO_C" >&6
15182 else
15183   cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h.  */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h.  */
15189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15191 #define $ac_func innocuous_$ac_func
15192
15193 /* System header to define __stub macros and hopefully few prototypes,
15194     which can conflict with char $ac_func (); below.
15195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15196     <limits.h> exists even on freestanding compilers.  */
15197
15198 #ifdef __STDC__
15199 # include <limits.h>
15200 #else
15201 # include <assert.h>
15202 #endif
15203
15204 #undef $ac_func
15205
15206 /* Override any GCC internal prototype to avoid an error.
15207    Use char because int might match the return type of a GCC
15208    builtin and then its argument prototype would still apply.  */
15209 #ifdef __cplusplus
15210 extern "C"
15211 #endif
15212 char $ac_func ();
15213 /* The GNU C library defines this for functions which it implements
15214     to always fail with ENOSYS.  Some functions are actually named
15215     something starting with __ and the normal name is an alias.  */
15216 #if defined __stub_$ac_func || defined __stub___$ac_func
15217 choke me
15218 #endif
15219
15220 int
15221 main ()
15222 {
15223 return $ac_func ();
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_link") 2>conftest.er1
15236   ac_status=$?
15237   grep -v '^ *+' conftest.er1 >conftest.err
15238   rm -f conftest.er1
15239   cat conftest.err >&5
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } && {
15242          test -z "$ac_c_werror_flag" ||
15243          test ! -s conftest.err
15244        } && test -s conftest$ac_exeext &&
15245        $as_test_x conftest$ac_exeext; then
15246   eval "$as_ac_var=yes"
15247 else
15248   echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251         eval "$as_ac_var=no"
15252 fi
15253
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255       conftest$ac_exeext conftest.$ac_ext
15256 fi
15257 ac_res=`eval echo '${'$as_ac_var'}'`
15258                { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261   cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15263 _ACEOF
15264
15265 fi
15266 done
15267
15268
15269 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15270
15271 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15272 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   ac_check_lib_save_LIBS=$LIBS
15277 LIBS="-lV3  $LIBS"
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284
15285 /* Override any GCC internal prototype to avoid an error.
15286    Use char because int might match the return type of a GCC
15287    builtin and then its argument prototype would still apply.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char sigset ();
15292 int
15293 main ()
15294 {
15295 return sigset ();
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_link") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } && {
15314          test -z "$ac_c_werror_flag" ||
15315          test ! -s conftest.err
15316        } && test -s conftest$ac_exeext &&
15317        $as_test_x conftest$ac_exeext; then
15318   ac_cv_lib_V3_sigset=yes
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323         ac_cv_lib_V3_sigset=no
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327       conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15329 fi
15330 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15331 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15332 if test $ac_cv_lib_V3_sigset = yes; then
15333   cat >>confdefs.h <<_ACEOF
15334 #define HAVE_LIBV3 1
15335 _ACEOF
15336
15337   LIBS="-lV3 $LIBS"
15338
15339 fi
15340
15341 fi
15342
15343 if test $ol_cv_msvc = yes ; then
15344    ol_cv_winsock=yes
15345 fi
15346
15347 if test "$ac_cv_header_winsock_h" = yes; then
15348         { echo "$as_me:$LINENO: checking for winsock" >&5
15349 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15350 if test "${ol_cv_winsock+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353
15354         save_LIBS="$LIBS"
15355         for curlib in none ws2_32 wsock32; do
15356                 if test $curlib != none ; then
15357                 LIBS="$save_LIBS -l$curlib"
15358                 fi
15359                 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h.  */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h.  */
15365 #include <winsock.h>
15366
15367 int
15368 main ()
15369 {
15370
15371                         socket(0,0,0);
15372                         select(0,NULL,NULL,NULL,NULL);
15373                         closesocket(0);
15374                         gethostname(NULL,0);
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } && {
15394          test -z "$ac_c_werror_flag" ||
15395          test ! -s conftest.err
15396        } && test -s conftest$ac_exeext &&
15397        $as_test_x conftest$ac_exeext; then
15398   ol_cv_winsock=$curlib
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403         ol_cv_winsock=no
15404 fi
15405
15406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15407       conftest$ac_exeext conftest.$ac_ext
15408
15409                 test "$ol_cv_winsock" != no && break
15410         done
15411         LIBS="$save_LIBS"
15412
15413 fi
15414 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15415 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15416
15417         if test $ol_cv_winsock != no ; then
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_WINSOCK 1
15421 _ACEOF
15422
15423         ac_cv_func_socket=yes
15424         ac_cv_func_select=yes
15425         ac_cv_func_closesocket=yes
15426         ac_cv_func_gethostname=yes
15427
15428                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15429                 LIBS="$LIBS -l$ol_cv_winsock"
15430                 fi
15431
15432         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15433
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_WINSOCK2 1
15436 _ACEOF
15437
15438         fi
15439         fi
15440 fi
15441
15442
15443 { echo "$as_me:$LINENO: checking for socket" >&5
15444 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15445 if test "${ac_cv_func_socket+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15456 #define socket innocuous_socket
15457
15458 /* System header to define __stub macros and hopefully few prototypes,
15459     which can conflict with char socket (); below.
15460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461     <limits.h> exists even on freestanding compilers.  */
15462
15463 #ifdef __STDC__
15464 # include <limits.h>
15465 #else
15466 # include <assert.h>
15467 #endif
15468
15469 #undef socket
15470
15471 /* Override any GCC internal prototype to avoid an error.
15472    Use char because int might match the return type of a GCC
15473    builtin and then its argument prototype would still apply.  */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 char socket ();
15478 /* The GNU C library defines this for functions which it implements
15479     to always fail with ENOSYS.  Some functions are actually named
15480     something starting with __ and the normal name is an alias.  */
15481 #if defined __stub_socket || defined __stub___socket
15482 choke me
15483 #endif
15484
15485 int
15486 main ()
15487 {
15488 return socket ();
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_link") 2>conftest.er1
15501   ac_status=$?
15502   grep -v '^ *+' conftest.er1 >conftest.err
15503   rm -f conftest.er1
15504   cat conftest.err >&5
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } && {
15507          test -z "$ac_c_werror_flag" ||
15508          test ! -s conftest.err
15509        } && test -s conftest$ac_exeext &&
15510        $as_test_x conftest$ac_exeext; then
15511   ac_cv_func_socket=yes
15512 else
15513   echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516         ac_cv_func_socket=no
15517 fi
15518
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520       conftest$ac_exeext conftest.$ac_ext
15521 fi
15522 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15523 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15524 if test $ac_cv_func_socket = yes; then
15525   :
15526 else
15527
15528
15529 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15530 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15531 if test "${ac_cv_lib_socket_main+set}" = set; then
15532   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534   ac_check_lib_save_LIBS=$LIBS
15535 LIBS="-lsocket  $LIBS"
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542
15543
15544 int
15545 main ()
15546 {
15547 return main ();
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559   (eval "$ac_link") 2>conftest.er1
15560   ac_status=$?
15561   grep -v '^ *+' conftest.er1 >conftest.err
15562   rm -f conftest.er1
15563   cat conftest.err >&5
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } && {
15566          test -z "$ac_c_werror_flag" ||
15567          test ! -s conftest.err
15568        } && test -s conftest$ac_exeext &&
15569        $as_test_x conftest$ac_exeext; then
15570   ac_cv_lib_socket_main=yes
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575         ac_cv_lib_socket_main=no
15576 fi
15577
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579       conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15581 fi
15582 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15583 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15584 if test $ac_cv_lib_socket_main = yes; then
15585   cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBSOCKET 1
15587 _ACEOF
15588
15589   LIBS="-lsocket $LIBS"
15590
15591 fi
15592
15593
15594 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15595 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_net_main+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-lnet  $LIBS"
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607
15608
15609 int
15610 main ()
15611 {
15612 return main ();
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (ac_try="$ac_link"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_link") 2>conftest.er1
15625   ac_status=$?
15626   grep -v '^ *+' conftest.er1 >conftest.err
15627   rm -f conftest.er1
15628   cat conftest.err >&5
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } && {
15631          test -z "$ac_c_werror_flag" ||
15632          test ! -s conftest.err
15633        } && test -s conftest$ac_exeext &&
15634        $as_test_x conftest$ac_exeext; then
15635   ac_cv_lib_net_main=yes
15636 else
15637   echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640         ac_cv_lib_net_main=no
15641 fi
15642
15643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15644       conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15646 fi
15647 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15648 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15649 if test $ac_cv_lib_net_main = yes; then
15650   cat >>confdefs.h <<_ACEOF
15651 #define HAVE_LIBNET 1
15652 _ACEOF
15653
15654   LIBS="-lnet $LIBS"
15655
15656 fi
15657
15658
15659 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15660 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15661 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664   ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-lnsl_s  $LIBS"
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672
15673
15674 int
15675 main ()
15676 {
15677 return main ();
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_link") 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } && {
15696          test -z "$ac_c_werror_flag" ||
15697          test ! -s conftest.err
15698        } && test -s conftest$ac_exeext &&
15699        $as_test_x conftest$ac_exeext; then
15700   ac_cv_lib_nsl_s_main=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         ac_cv_lib_nsl_s_main=no
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709       conftest$ac_exeext conftest.$ac_ext
15710 LIBS=$ac_check_lib_save_LIBS
15711 fi
15712 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15713 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15714 if test $ac_cv_lib_nsl_s_main = yes; then
15715   cat >>confdefs.h <<_ACEOF
15716 #define HAVE_LIBNSL_S 1
15717 _ACEOF
15718
15719   LIBS="-lnsl_s $LIBS"
15720
15721 fi
15722
15723
15724 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15725 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15726 if test "${ac_cv_lib_nsl_main+set}" = set; then
15727   echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729   ac_check_lib_save_LIBS=$LIBS
15730 LIBS="-lnsl  $LIBS"
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h.  */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h.  */
15737
15738
15739 int
15740 main ()
15741 {
15742 return main ();
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751   *) ac_try_echo=$ac_try;;
15752 esac
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754   (eval "$ac_link") 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } && {
15761          test -z "$ac_c_werror_flag" ||
15762          test ! -s conftest.err
15763        } && test -s conftest$ac_exeext &&
15764        $as_test_x conftest$ac_exeext; then
15765   ac_cv_lib_nsl_main=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770         ac_cv_lib_nsl_main=no
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774       conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15776 fi
15777 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15778 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15779 if test $ac_cv_lib_nsl_main = yes; then
15780   cat >>confdefs.h <<_ACEOF
15781 #define HAVE_LIBNSL 1
15782 _ACEOF
15783
15784   LIBS="-lnsl $LIBS"
15785
15786 fi
15787
15788
15789 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15790 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15791 if test "${ac_cv_lib_inet_socket+set}" = set; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-linet  $LIBS"
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802
15803 /* Override any GCC internal prototype to avoid an error.
15804    Use char because int might match the return type of a GCC
15805    builtin and then its argument prototype would still apply.  */
15806 #ifdef __cplusplus
15807 extern "C"
15808 #endif
15809 char socket ();
15810 int
15811 main ()
15812 {
15813 return socket ();
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_link") 2>conftest.er1
15826   ac_status=$?
15827   grep -v '^ *+' conftest.er1 >conftest.err
15828   rm -f conftest.er1
15829   cat conftest.err >&5
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } && {
15832          test -z "$ac_c_werror_flag" ||
15833          test ! -s conftest.err
15834        } && test -s conftest$ac_exeext &&
15835        $as_test_x conftest$ac_exeext; then
15836   ac_cv_lib_inet_socket=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841         ac_cv_lib_inet_socket=no
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15845       conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15847 fi
15848 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15849 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15850 if test $ac_cv_lib_inet_socket = yes; then
15851   cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBINET 1
15853 _ACEOF
15854
15855   LIBS="-linet $LIBS"
15856
15857 fi
15858
15859
15860 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15861 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15862 if test "${ac_cv_lib_gen_main+set}" = set; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   ac_check_lib_save_LIBS=$LIBS
15866 LIBS="-lgen  $LIBS"
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873
15874
15875 int
15876 main ()
15877 {
15878 return main ();
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_link") 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } && {
15897          test -z "$ac_c_werror_flag" ||
15898          test ! -s conftest.err
15899        } && test -s conftest$ac_exeext &&
15900        $as_test_x conftest$ac_exeext; then
15901   ac_cv_lib_gen_main=yes
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906         ac_cv_lib_gen_main=no
15907 fi
15908
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910       conftest$ac_exeext conftest.$ac_ext
15911 LIBS=$ac_check_lib_save_LIBS
15912 fi
15913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15914 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15915 if test $ac_cv_lib_gen_main = yes; then
15916   cat >>confdefs.h <<_ACEOF
15917 #define HAVE_LIBGEN 1
15918 _ACEOF
15919
15920   LIBS="-lgen $LIBS"
15921
15922 fi
15923
15924
15925 fi
15926
15927
15928 { echo "$as_me:$LINENO: checking for select" >&5
15929 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15930 if test "${ac_cv_func_select+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939 /* Define select to an innocuous variant, in case <limits.h> declares select.
15940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15941 #define select innocuous_select
15942
15943 /* System header to define __stub macros and hopefully few prototypes,
15944     which can conflict with char select (); below.
15945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946     <limits.h> exists even on freestanding compilers.  */
15947
15948 #ifdef __STDC__
15949 # include <limits.h>
15950 #else
15951 # include <assert.h>
15952 #endif
15953
15954 #undef select
15955
15956 /* Override any GCC internal prototype to avoid an error.
15957    Use char because int might match the return type of a GCC
15958    builtin and then its argument prototype would still apply.  */
15959 #ifdef __cplusplus
15960 extern "C"
15961 #endif
15962 char select ();
15963 /* The GNU C library defines this for functions which it implements
15964     to always fail with ENOSYS.  Some functions are actually named
15965     something starting with __ and the normal name is an alias.  */
15966 #if defined __stub_select || defined __stub___select
15967 choke me
15968 #endif
15969
15970 int
15971 main ()
15972 {
15973 return select ();
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982   *) ac_try_echo=$ac_try;;
15983 esac
15984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15985   (eval "$ac_link") 2>conftest.er1
15986   ac_status=$?
15987   grep -v '^ *+' conftest.er1 >conftest.err
15988   rm -f conftest.er1
15989   cat conftest.err >&5
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); } && {
15992          test -z "$ac_c_werror_flag" ||
15993          test ! -s conftest.err
15994        } && test -s conftest$ac_exeext &&
15995        $as_test_x conftest$ac_exeext; then
15996   ac_cv_func_select=yes
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001         ac_cv_func_select=no
16002 fi
16003
16004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16005       conftest$ac_exeext conftest.$ac_ext
16006 fi
16007 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16008 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16009 if test $ac_cv_func_select = yes; then
16010   :
16011 else
16012   { { echo "$as_me:$LINENO: error: select() required." >&5
16013 echo "$as_me: error: select() required." >&2;}
16014    { (exit 1); exit 1; }; }
16015 fi
16016
16017
16018 if test "${ac_cv_header_winsock_h}" != yes; then
16019
16020
16021 for ac_header in sys/select.h sys/socket.h
16022 do
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 fi
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031                { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16033 else
16034   # Is the header compilable?
16035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 $ac_includes_default
16044 #include <$ac_header>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_compile") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } && {
16060          test -z "$ac_c_werror_flag" ||
16061          test ! -s conftest.err
16062        } && test -s conftest.$ac_objext; then
16063   ac_header_compiler=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068         ac_header_compiler=no
16069 fi
16070
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16073 echo "${ECHO_T}$ac_header_compiler" >&6; }
16074
16075 # Is the header present?
16076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 #include <$ac_header>
16085 _ACEOF
16086 if { (ac_try="$ac_cpp conftest.$ac_ext"
16087 case "(($ac_try" in
16088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089   *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16093   ac_status=$?
16094   grep -v '^ *+' conftest.er1 >conftest.err
16095   rm -f conftest.er1
16096   cat conftest.err >&5
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } >/dev/null && {
16099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16100          test ! -s conftest.err
16101        }; then
16102   ac_header_preproc=yes
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107   ac_header_preproc=no
16108 fi
16109
16110 rm -f conftest.err conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6; }
16113
16114 # So?  What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116   yes:no: )
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16121     ac_header_preproc=yes
16122     ;;
16123   no:yes:* )
16124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16136     ( cat <<\_ASBOX
16137 ## --------------------------------------------- ##
16138 ## Report this to <http://www.openldap.org/its/> ##
16139 ## --------------------------------------------- ##
16140 _ASBOX
16141      ) | sed "s/^/$as_me: WARNING:     /" >&2
16142     ;;
16143 esac
16144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149   eval "$as_ac_Header=\$ac_header_preproc"
16150 fi
16151 ac_res=`eval echo '${'$as_ac_Header'}'`
16152                { echo "$as_me:$LINENO: result: $ac_res" >&5
16153 echo "${ECHO_T}$ac_res" >&6; }
16154
16155 fi
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157   cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16159 _ACEOF
16160
16161 fi
16162
16163 done
16164
16165 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16166 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16167 if test "${ac_cv_func_select_args+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16171  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16172   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16173    cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179 $ac_includes_default
16180 #ifdef HAVE_SYS_SELECT_H
16181 # include <sys/select.h>
16182 #endif
16183 #ifdef HAVE_SYS_SOCKET_H
16184 # include <sys/socket.h>
16185 #endif
16186
16187 int
16188 main ()
16189 {
16190 extern int select ($ac_arg1,
16191                                             $ac_arg234, $ac_arg234, $ac_arg234,
16192                                             $ac_arg5);
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_compile") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } && {
16211          test -z "$ac_c_werror_flag" ||
16212          test ! -s conftest.err
16213        } && test -s conftest.$ac_objext; then
16214   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223   done
16224  done
16225 done
16226 # Provide a safe default value.
16227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16228
16229 fi
16230 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16231 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16232 ac_save_IFS=$IFS; IFS=','
16233 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16234 IFS=$ac_save_IFS
16235 shift
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define SELECT_TYPE_ARG1 $1
16239 _ACEOF
16240
16241
16242 cat >>confdefs.h <<_ACEOF
16243 #define SELECT_TYPE_ARG234 ($2)
16244 _ACEOF
16245
16246
16247 cat >>confdefs.h <<_ACEOF
16248 #define SELECT_TYPE_ARG5 ($3)
16249 _ACEOF
16250
16251 rm -f conftest*
16252
16253 fi
16254
16255
16256
16257 for ac_func in poll
16258 do
16259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16273 #define $ac_func innocuous_$ac_func
16274
16275 /* System header to define __stub macros and hopefully few prototypes,
16276     which can conflict with char $ac_func (); below.
16277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16278     <limits.h> exists even on freestanding compilers.  */
16279
16280 #ifdef __STDC__
16281 # include <limits.h>
16282 #else
16283 # include <assert.h>
16284 #endif
16285
16286 #undef $ac_func
16287
16288 /* Override any GCC internal prototype to avoid an error.
16289    Use char because int might match the return type of a GCC
16290    builtin and then its argument prototype would still apply.  */
16291 #ifdef __cplusplus
16292 extern "C"
16293 #endif
16294 char $ac_func ();
16295 /* The GNU C library defines this for functions which it implements
16296     to always fail with ENOSYS.  Some functions are actually named
16297     something starting with __ and the normal name is an alias.  */
16298 #if defined __stub_$ac_func || defined __stub___$ac_func
16299 choke me
16300 #endif
16301
16302 int
16303 main ()
16304 {
16305 return $ac_func ();
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_link") 2>conftest.er1
16318   ac_status=$?
16319   grep -v '^ *+' conftest.er1 >conftest.err
16320   rm -f conftest.er1
16321   cat conftest.err >&5
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); } && {
16324          test -z "$ac_c_werror_flag" ||
16325          test ! -s conftest.err
16326        } && test -s conftest$ac_exeext &&
16327        $as_test_x conftest$ac_exeext; then
16328   eval "$as_ac_var=yes"
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333         eval "$as_ac_var=no"
16334 fi
16335
16336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16337       conftest$ac_exeext conftest.$ac_ext
16338 fi
16339 ac_res=`eval echo '${'$as_ac_var'}'`
16340                { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16342 if test `eval echo '${'$as_ac_var'}'` = yes; then
16343   cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16345 _ACEOF
16346
16347 fi
16348 done
16349
16350 if test $ac_cv_func_poll = yes; then
16351
16352
16353 for ac_header in poll.h sys/poll.h
16354 do
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 fi
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363                { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16365 else
16366   # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h.  */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h.  */
16375 $ac_includes_default
16376 #include <$ac_header>
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385   (eval "$ac_compile") 2>conftest.er1
16386   ac_status=$?
16387   grep -v '^ *+' conftest.er1 >conftest.err
16388   rm -f conftest.er1
16389   cat conftest.err >&5
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } && {
16392          test -z "$ac_c_werror_flag" ||
16393          test ! -s conftest.err
16394        } && test -s conftest.$ac_objext; then
16395   ac_header_compiler=yes
16396 else
16397   echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400         ac_header_compiler=no
16401 fi
16402
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405 echo "${ECHO_T}$ac_header_compiler" >&6; }
16406
16407 # Is the header present?
16408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416 #include <$ac_header>
16417 _ACEOF
16418 if { (ac_try="$ac_cpp conftest.$ac_ext"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } >/dev/null && {
16431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16432          test ! -s conftest.err
16433        }; then
16434   ac_header_preproc=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439   ac_header_preproc=no
16440 fi
16441
16442 rm -f conftest.err conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444 echo "${ECHO_T}$ac_header_preproc" >&6; }
16445
16446 # So?  What about this header?
16447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16448   yes:no: )
16449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16453     ac_header_preproc=yes
16454     ;;
16455   no:yes:* )
16456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16468     ( cat <<\_ASBOX
16469 ## --------------------------------------------- ##
16470 ## Report this to <http://www.openldap.org/its/> ##
16471 ## --------------------------------------------- ##
16472 _ASBOX
16473      ) | sed "s/^/$as_me: WARNING:     /" >&2
16474     ;;
16475 esac
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 else
16481   eval "$as_ac_Header=\$ac_header_preproc"
16482 fi
16483 ac_res=`eval echo '${'$as_ac_Header'}'`
16484                { echo "$as_me:$LINENO: result: $ac_res" >&5
16485 echo "${ECHO_T}$ac_res" >&6; }
16486
16487 fi
16488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16489   cat >>confdefs.h <<_ACEOF
16490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16491 _ACEOF
16492
16493 fi
16494
16495 done
16496
16497 fi
16498
16499
16500 for ac_header in sys/epoll.h
16501 do
16502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 fi
16509 ac_res=`eval echo '${'$as_ac_Header'}'`
16510                { echo "$as_me:$LINENO: result: $ac_res" >&5
16511 echo "${ECHO_T}$ac_res" >&6; }
16512 else
16513   # Is the header compilable?
16514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 $ac_includes_default
16523 #include <$ac_header>
16524 _ACEOF
16525 rm -f conftest.$ac_objext
16526 if { (ac_try="$ac_compile"
16527 case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_compile") 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } && {
16539          test -z "$ac_c_werror_flag" ||
16540          test ! -s conftest.err
16541        } && test -s conftest.$ac_objext; then
16542   ac_header_compiler=yes
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547         ac_header_compiler=no
16548 fi
16549
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6; }
16553
16554 # Is the header present?
16555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 #include <$ac_header>
16564 _ACEOF
16565 if { (ac_try="$ac_cpp conftest.$ac_ext"
16566 case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } >/dev/null && {
16578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16579          test ! -s conftest.err
16580        }; then
16581   ac_header_preproc=yes
16582 else
16583   echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586   ac_header_preproc=no
16587 fi
16588
16589 rm -f conftest.err conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16591 echo "${ECHO_T}$ac_header_preproc" >&6; }
16592
16593 # So?  What about this header?
16594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16595   yes:no: )
16596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16600     ac_header_preproc=yes
16601     ;;
16602   no:yes:* )
16603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16615     ( cat <<\_ASBOX
16616 ## --------------------------------------------- ##
16617 ## Report this to <http://www.openldap.org/its/> ##
16618 ## --------------------------------------------- ##
16619 _ASBOX
16620      ) | sed "s/^/$as_me: WARNING:     /" >&2
16621     ;;
16622 esac
16623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16626   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628   eval "$as_ac_Header=\$ac_header_preproc"
16629 fi
16630 ac_res=`eval echo '${'$as_ac_Header'}'`
16631                { echo "$as_me:$LINENO: result: $ac_res" >&5
16632 echo "${ECHO_T}$ac_res" >&6; }
16633
16634 fi
16635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636   cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16638 _ACEOF
16639
16640 fi
16641
16642 done
16643
16644 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16645         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16646 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16647         if test "$cross_compiling" = yes; then
16648   { echo "$as_me:$LINENO: result: no" >&5
16649 echo "${ECHO_T}no" >&6; }
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 int main(int argc, char **argv)
16658 {
16659         int epfd = epoll_create(256);
16660         exit (epfd == -1 ? 1 : 0);
16661 }
16662 _ACEOF
16663 rm -f conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_link") 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   { echo "$as_me:$LINENO: result: yes" >&5
16684 echo "${ECHO_T}yes" >&6; }
16685
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_EPOLL 1
16688 _ACEOF
16689
16690 else
16691   echo "$as_me: program exited with status $ac_status" >&5
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 ( exit $ac_status )
16696 { echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6; }
16698 fi
16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16700 fi
16701
16702
16703 fi
16704
16705
16706 for ac_header in sys/devpoll.h
16707 do
16708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 fi
16715 ac_res=`eval echo '${'$as_ac_Header'}'`
16716                { echo "$as_me:$LINENO: result: $ac_res" >&5
16717 echo "${ECHO_T}$ac_res" >&6; }
16718 else
16719   # Is the header compilable?
16720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728 $ac_includes_default
16729 #include <$ac_header>
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_compile") 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } && {
16745          test -z "$ac_c_werror_flag" ||
16746          test ! -s conftest.err
16747        } && test -s conftest.$ac_objext; then
16748   ac_header_compiler=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         ac_header_compiler=no
16754 fi
16755
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16758 echo "${ECHO_T}$ac_header_compiler" >&6; }
16759
16760 # Is the header present?
16761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 #include <$ac_header>
16770 _ACEOF
16771 if { (ac_try="$ac_cpp conftest.$ac_ext"
16772 case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } >/dev/null && {
16784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16785          test ! -s conftest.err
16786        }; then
16787   ac_header_preproc=yes
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792   ac_header_preproc=no
16793 fi
16794
16795 rm -f conftest.err conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16797 echo "${ECHO_T}$ac_header_preproc" >&6; }
16798
16799 # So?  What about this header?
16800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16801   yes:no: )
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16806     ac_header_preproc=yes
16807     ;;
16808   no:yes:* )
16809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16821     ( cat <<\_ASBOX
16822 ## --------------------------------------------- ##
16823 ## Report this to <http://www.openldap.org/its/> ##
16824 ## --------------------------------------------- ##
16825 _ASBOX
16826      ) | sed "s/^/$as_me: WARNING:     /" >&2
16827     ;;
16828 esac
16829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   eval "$as_ac_Header=\$ac_header_preproc"
16835 fi
16836 ac_res=`eval echo '${'$as_ac_Header'}'`
16837                { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16839
16840 fi
16841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16842   cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16844 _ACEOF
16845
16846 fi
16847
16848 done
16849
16850 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16851                 -a "${ac_cv_header_poll_h}" = yes ; \
16852 then
16853         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16854 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16855         if test "$cross_compiling" = yes; then
16856   { echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6; }
16858 else
16859   cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 int main(int argc, char **argv)
16866 {
16867         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16868         exit (devpollfd == -1 ? 1 : 0);
16869 }
16870 _ACEOF
16871 rm -f conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875   *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878   (eval "$ac_link") 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882   { (case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887   (eval "$ac_try") 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   { echo "$as_me:$LINENO: result: yes" >&5
16892 echo "${ECHO_T}yes" >&6; }
16893
16894 cat >>confdefs.h <<\_ACEOF
16895 #define HAVE_DEVPOLL 1
16896 _ACEOF
16897
16898 else
16899   echo "$as_me: program exited with status $ac_status" >&5
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ( exit $ac_status )
16904 { echo "$as_me:$LINENO: result: no" >&5
16905 echo "${ECHO_T}no" >&6; }
16906 fi
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16908 fi
16909
16910
16911 fi
16912
16913 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16914 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16915 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918
16919         cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h.  */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h.  */
16925
16926 #include <stdio.h>
16927 #include <sys/types.h>
16928 #include <errno.h>
16929 #ifdef _WIN32
16930 #include <stdlib.h>
16931 #endif
16932 int
16933 main ()
16934 {
16935 char *c = (char *) *sys_errlist
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_compile") 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } && {
16954          test -z "$ac_c_werror_flag" ||
16955          test ! -s conftest.err
16956        } && test -s conftest.$ac_objext; then
16957   ol_cv_dcl_sys_errlist=yes
16958         ol_cv_have_sys_errlist=yes
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963         ol_cv_dcl_sys_errlist=no
16964 fi
16965
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 fi
16968 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16969 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16970 #
16971 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16972 if test $ol_cv_dcl_sys_errlist = no ; then
16973
16974 cat >>confdefs.h <<\_ACEOF
16975 #define DECL_SYS_ERRLIST 1
16976 _ACEOF
16977
16978
16979         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16980 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16981 if test "${ol_cv_have_sys_errlist+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984
16985                 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 #include <errno.h>
16992 int
16993 main ()
16994 {
16995 char *c = (char *) *sys_errlist
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 rm -f conftest.$ac_objext conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_link") 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } && {
17014          test -z "$ac_c_werror_flag" ||
17015          test ! -s conftest.err
17016        } && test -s conftest$ac_exeext &&
17017        $as_test_x conftest$ac_exeext; then
17018   ol_cv_have_sys_errlist=yes
17019 else
17020   echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023         ol_cv_have_sys_errlist=no
17024 fi
17025
17026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17027       conftest$ac_exeext conftest.$ac_ext
17028 fi
17029 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17030 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17031 fi
17032 if test $ol_cv_have_sys_errlist = yes ; then
17033
17034 cat >>confdefs.h <<\_ACEOF
17035 #define HAVE_SYS_ERRLIST 1
17036 _ACEOF
17037
17038 fi
17039
17040
17041 for ac_func in strerror strerror_r
17042 do
17043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047   echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049   cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h.  */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h.  */
17055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17057 #define $ac_func innocuous_$ac_func
17058
17059 /* System header to define __stub macros and hopefully few prototypes,
17060     which can conflict with char $ac_func (); below.
17061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062     <limits.h> exists even on freestanding compilers.  */
17063
17064 #ifdef __STDC__
17065 # include <limits.h>
17066 #else
17067 # include <assert.h>
17068 #endif
17069
17070 #undef $ac_func
17071
17072 /* Override any GCC internal prototype to avoid an error.
17073    Use char because int might match the return type of a GCC
17074    builtin and then its argument prototype would still apply.  */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char $ac_func ();
17079 /* The GNU C library defines this for functions which it implements
17080     to always fail with ENOSYS.  Some functions are actually named
17081     something starting with __ and the normal name is an alias.  */
17082 #if defined __stub_$ac_func || defined __stub___$ac_func
17083 choke me
17084 #endif
17085
17086 int
17087 main ()
17088 {
17089 return $ac_func ();
17090   ;
17091   return 0;
17092 }
17093 _ACEOF
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_link") 2>conftest.er1
17102   ac_status=$?
17103   grep -v '^ *+' conftest.er1 >conftest.err
17104   rm -f conftest.er1
17105   cat conftest.err >&5
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); } && {
17108          test -z "$ac_c_werror_flag" ||
17109          test ! -s conftest.err
17110        } && test -s conftest$ac_exeext &&
17111        $as_test_x conftest$ac_exeext; then
17112   eval "$as_ac_var=yes"
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117         eval "$as_ac_var=no"
17118 fi
17119
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121       conftest$ac_exeext conftest.$ac_ext
17122 fi
17123 ac_res=`eval echo '${'$as_ac_var'}'`
17124                { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17126 if test `eval echo '${'$as_ac_var'}'` = yes; then
17127   cat >>confdefs.h <<_ACEOF
17128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17129 _ACEOF
17130
17131 fi
17132 done
17133
17134 ol_cv_func_strerror_r=no
17135 if test "${ac_cv_func_strerror_r}" = yes ; then
17136         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17137 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17138 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141
17142         cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h.  */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h.  */
17148 #include <string.h>
17149 _ACEOF
17150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17151   $EGREP "strerror_r" >/dev/null 2>&1; then
17152   ol_decl_strerror_r=yes
17153 else
17154   ol_decl_strerror_r=no
17155 fi
17156 rm -f conftest*
17157
17158         if test $ol_decl_strerror_r = yes ; then
17159                 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165 #include <string.h>
17166 int
17167 main ()
17168 {
17169    /* from autoconf 2.59 */
17170                                 char buf[100];
17171                                 char x = *strerror_r (0, buf, sizeof buf);
17172                                 char *p = strerror_r (0, buf, sizeof buf);
17173
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_compile") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest.$ac_objext; then
17195   ol_cv_nonposix_strerror_r=yes
17196 else
17197   echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200         ol_cv_nonposix_strerror_r=no
17201 fi
17202
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204         else
17205                 if test "$cross_compiling" = yes; then
17206   ol_cv_nonposix_strerror=no
17207 else
17208   cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214
17215                         main() {
17216                                 char buf[100];
17217                                 buf[0] = 0;
17218                                 strerror_r( 1, buf, sizeof buf );
17219                                 exit( buf[0] == 0 );
17220                         }
17221
17222 _ACEOF
17223 rm -f conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_link") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17234   { (case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_try") 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   ol_cv_nonposix_strerror_r=yes
17244 else
17245   echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 ( exit $ac_status )
17250 ol_cv_nonposix_strerror=no
17251 fi
17252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17253 fi
17254
17255
17256         fi
17257
17258 fi
17259 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17260 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17261 if test $ol_cv_nonposix_strerror_r = yes ; then
17262
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_NONPOSIX_STRERROR_R 1
17265 _ACEOF
17266
17267 fi
17268
17269 elif test "${ac_cv_func_strerror}" = no ; then
17270         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17271 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17272 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275
17276         cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282
17283 #include <stdio.h>
17284 #include <sys/types.h>
17285 #include <errno.h>
17286 #ifdef _WIN32
17287 #include <stdlib.h>
17288 #endif
17289 int
17290 main ()
17291 {
17292 char *c = (char *) *sys_errlist
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext
17298 if { (ac_try="$ac_compile"
17299 case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_compile") 2>conftest.er1
17305   ac_status=$?
17306   grep -v '^ *+' conftest.er1 >conftest.err
17307   rm -f conftest.er1
17308   cat conftest.err >&5
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } && {
17311          test -z "$ac_c_werror_flag" ||
17312          test ! -s conftest.err
17313        } && test -s conftest.$ac_objext; then
17314   ol_cv_dcl_sys_errlist=yes
17315         ol_cv_have_sys_errlist=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320         ol_cv_dcl_sys_errlist=no
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324 fi
17325 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17326 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17327 #
17328 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17329 if test $ol_cv_dcl_sys_errlist = no ; then
17330
17331 cat >>confdefs.h <<\_ACEOF
17332 #define DECL_SYS_ERRLIST 1
17333 _ACEOF
17334
17335
17336         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17337 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17338 if test "${ol_cv_have_sys_errlist+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341
17342                 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h.  */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h.  */
17348 #include <errno.h>
17349 int
17350 main ()
17351 {
17352 char *c = (char *) *sys_errlist
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_link") 2>conftest.er1
17365   ac_status=$?
17366   grep -v '^ *+' conftest.er1 >conftest.err
17367   rm -f conftest.er1
17368   cat conftest.err >&5
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); } && {
17371          test -z "$ac_c_werror_flag" ||
17372          test ! -s conftest.err
17373        } && test -s conftest$ac_exeext &&
17374        $as_test_x conftest$ac_exeext; then
17375   ol_cv_have_sys_errlist=yes
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380         ol_cv_have_sys_errlist=no
17381 fi
17382
17383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17384       conftest$ac_exeext conftest.$ac_ext
17385 fi
17386 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17387 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17388 fi
17389 if test $ol_cv_have_sys_errlist = yes ; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_SYS_ERRLIST 1
17393 _ACEOF
17394
17395 fi
17396
17397 fi
17398
17399
17400
17401 for ac_header in regex.h
17402 do
17403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 $ac_includes_default
17416 #ifdef HAVE_SYS_TYPES_H
17417 #include <sys/types.h>
17418 #endif
17419
17420
17421 #include <$ac_header>
17422 _ACEOF
17423 rm -f conftest.$ac_objext
17424 if { (ac_try="$ac_compile"
17425 case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_compile") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } && {
17437          test -z "$ac_c_werror_flag" ||
17438          test ! -s conftest.err
17439        } && test -s conftest.$ac_objext; then
17440   eval "$as_ac_Header=yes"
17441 else
17442   echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         eval "$as_ac_Header=no"
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 fi
17450 ac_res=`eval echo '${'$as_ac_Header'}'`
17451                { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17454   cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17456 _ACEOF
17457
17458 fi
17459
17460 done
17461
17462
17463 if test "$ac_cv_header_regex_h" != yes ; then
17464         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17465 echo "$as_me: error: POSIX regex.h required." >&2;}
17466    { (exit 1); exit 1; }; }
17467 fi
17468 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17469 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17470 if test "${ac_cv_search_regfree+set}" = set; then
17471   echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473   ac_func_search_save_LIBS=$LIBS
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480
17481 /* Override any GCC internal prototype to avoid an error.
17482    Use char because int might match the return type of a GCC
17483    builtin and then its argument prototype would still apply.  */
17484 #ifdef __cplusplus
17485 extern "C"
17486 #endif
17487 char regfree ();
17488 int
17489 main ()
17490 {
17491 return regfree ();
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 for ac_lib in '' regex gnuregex; do
17497   if test -z "$ac_lib"; then
17498     ac_res="none required"
17499   else
17500     ac_res=-l$ac_lib
17501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17502   fi
17503   rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_link") 2>conftest.er1
17511   ac_status=$?
17512   grep -v '^ *+' conftest.er1 >conftest.err
17513   rm -f conftest.er1
17514   cat conftest.err >&5
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } && {
17517          test -z "$ac_c_werror_flag" ||
17518          test ! -s conftest.err
17519        } && test -s conftest$ac_exeext &&
17520        $as_test_x conftest$ac_exeext; then
17521   ac_cv_search_regfree=$ac_res
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526
17527 fi
17528
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17530       conftest$ac_exeext
17531   if test "${ac_cv_search_regfree+set}" = set; then
17532   break
17533 fi
17534 done
17535 if test "${ac_cv_search_regfree+set}" = set; then
17536   :
17537 else
17538   ac_cv_search_regfree=no
17539 fi
17540 rm conftest.$ac_ext
17541 LIBS=$ac_func_search_save_LIBS
17542 fi
17543 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17544 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17545 ac_res=$ac_cv_search_regfree
17546 if test "$ac_res" != no; then
17547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17548   :
17549 else
17550   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17551 echo "$as_me: error: POSIX regex required." >&2;}
17552    { (exit 1); exit 1; }; }
17553 fi
17554
17555
17556
17557 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17558 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17559 if test "${ol_cv_c_posix_regex+set}" = set; then
17560   echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562
17563         if test "$cross_compiling" = yes; then
17564   ol_cv_c_posix_regex=cross
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572
17573 #include <sys/types.h>
17574 #include <regex.h>
17575 static char *pattern, *string;
17576 main()
17577 {
17578         int rc;
17579         regex_t re;
17580
17581         pattern = "^A";
17582
17583         if(regcomp(&re, pattern, 0)) {
17584                 return -1;
17585         }
17586
17587         string = "ALL MATCH";
17588
17589         rc = regexec(&re, string, 0, (void*)0, 0);
17590
17591         regfree(&re);
17592
17593         return rc;
17594 }
17595 _ACEOF
17596 rm -f conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603   (eval "$ac_link") 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607   { (case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_try") 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   ol_cv_c_posix_regex=yes
17617 else
17618   echo "$as_me: program exited with status $ac_status" >&5
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 ( exit $ac_status )
17623 ol_cv_c_posix_regex=no
17624 fi
17625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17626 fi
17627
17628
17629 fi
17630 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17631 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17632
17633 if test "$ol_cv_c_posix_regex" = no ; then
17634         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17635 echo "$as_me: error: broken POSIX regex!" >&2;}
17636    { (exit 1); exit 1; }; }
17637 fi
17638
17639
17640 have_uuid=no
17641
17642 for ac_header in sys/uuid.h
17643 do
17644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17649   echo $ECHO_N "(cached) $ECHO_C" >&6
17650 fi
17651 ac_res=`eval echo '${'$as_ac_Header'}'`
17652                { echo "$as_me:$LINENO: result: $ac_res" >&5
17653 echo "${ECHO_T}$ac_res" >&6; }
17654 else
17655   # Is the header compilable?
17656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664 $ac_includes_default
17665 #include <$ac_header>
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671   *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674   (eval "$ac_compile") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_c_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest.$ac_objext; then
17684   ac_header_compiler=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         ac_header_compiler=no
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17694 echo "${ECHO_T}$ac_header_compiler" >&6; }
17695
17696 # Is the header present?
17697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h.  */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h.  */
17705 #include <$ac_header>
17706 _ACEOF
17707 if { (ac_try="$ac_cpp conftest.$ac_ext"
17708 case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } >/dev/null && {
17720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17721          test ! -s conftest.err
17722        }; then
17723   ac_header_preproc=yes
17724 else
17725   echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728   ac_header_preproc=no
17729 fi
17730
17731 rm -f conftest.err conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733 echo "${ECHO_T}$ac_header_preproc" >&6; }
17734
17735 # So?  What about this header?
17736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17737   yes:no: )
17738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742     ac_header_preproc=yes
17743     ;;
17744   no:yes:* )
17745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17757     ( cat <<\_ASBOX
17758 ## --------------------------------------------- ##
17759 ## Report this to <http://www.openldap.org/its/> ##
17760 ## --------------------------------------------- ##
17761 _ASBOX
17762      ) | sed "s/^/$as_me: WARNING:     /" >&2
17763     ;;
17764 esac
17765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17768   echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770   eval "$as_ac_Header=\$ac_header_preproc"
17771 fi
17772 ac_res=`eval echo '${'$as_ac_Header'}'`
17773                { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17775
17776 fi
17777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17778   cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17780 _ACEOF
17781
17782 fi
17783
17784 done
17785
17786 if test $ac_cv_header_sys_uuid_h = yes ; then
17787         save_LIBS="$LIBS"
17788         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17789 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17790 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   ac_func_search_save_LIBS=$LIBS
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800
17801 /* Override any GCC internal prototype to avoid an error.
17802    Use char because int might match the return type of a GCC
17803    builtin and then its argument prototype would still apply.  */
17804 #ifdef __cplusplus
17805 extern "C"
17806 #endif
17807 char uuid_to_str ();
17808 int
17809 main ()
17810 {
17811 return uuid_to_str ();
17812   ;
17813   return 0;
17814 }
17815 _ACEOF
17816 for ac_lib in '' uuid; do
17817   if test -z "$ac_lib"; then
17818     ac_res="none required"
17819   else
17820     ac_res=-l$ac_lib
17821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17822   fi
17823   rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_link") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } && {
17837          test -z "$ac_c_werror_flag" ||
17838          test ! -s conftest.err
17839        } && test -s conftest$ac_exeext &&
17840        $as_test_x conftest$ac_exeext; then
17841   ac_cv_search_uuid_to_str=$ac_res
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850       conftest$ac_exeext
17851   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17852   break
17853 fi
17854 done
17855 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17856   :
17857 else
17858   ac_cv_search_uuid_to_str=no
17859 fi
17860 rm conftest.$ac_ext
17861 LIBS=$ac_func_search_save_LIBS
17862 fi
17863 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17864 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17865 ac_res=$ac_cv_search_uuid_to_str
17866 if test "$ac_res" != no; then
17867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17868   have_uuid=yes
17869 else
17870   :
17871 fi
17872
17873         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17874 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17875 if test "${ac_cv_search_uuid_create+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   ac_func_search_save_LIBS=$LIBS
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885
17886 /* Override any GCC internal prototype to avoid an error.
17887    Use char because int might match the return type of a GCC
17888    builtin and then its argument prototype would still apply.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 char uuid_create ();
17893 int
17894 main ()
17895 {
17896 return uuid_create ();
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 for ac_lib in '' uuid; do
17902   if test -z "$ac_lib"; then
17903     ac_res="none required"
17904   else
17905     ac_res=-l$ac_lib
17906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17907   fi
17908   rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (ac_try="$ac_link"
17910 case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_link") 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } && {
17922          test -z "$ac_c_werror_flag" ||
17923          test ! -s conftest.err
17924        } && test -s conftest$ac_exeext &&
17925        $as_test_x conftest$ac_exeext; then
17926   ac_cv_search_uuid_create=$ac_res
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17935       conftest$ac_exeext
17936   if test "${ac_cv_search_uuid_create+set}" = set; then
17937   break
17938 fi
17939 done
17940 if test "${ac_cv_search_uuid_create+set}" = set; then
17941   :
17942 else
17943   ac_cv_search_uuid_create=no
17944 fi
17945 rm conftest.$ac_ext
17946 LIBS=$ac_func_search_save_LIBS
17947 fi
17948 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17949 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17950 ac_res=$ac_cv_search_uuid_create
17951 if test "$ac_res" != no; then
17952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17953   :
17954 else
17955   have_uuid=no
17956 fi
17957
17958         LIBS="$save_LIBS"
17959
17960         if test $have_uuid = yes ; then
17961
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_UUID_TO_STR 1
17964 _ACEOF
17965
17966
17967                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17968                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17969         fi
17970 fi
17971
17972 if test $have_uuid = no ; then
17973
17974 for ac_header in uuid/uuid.h
17975 do
17976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 fi
17983 ac_res=`eval echo '${'$as_ac_Header'}'`
17984                { echo "$as_me:$LINENO: result: $ac_res" >&5
17985 echo "${ECHO_T}$ac_res" >&6; }
17986 else
17987   # Is the header compilable?
17988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 $ac_includes_default
17997 #include <$ac_header>
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_compile") 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && {
18013          test -z "$ac_c_werror_flag" ||
18014          test ! -s conftest.err
18015        } && test -s conftest.$ac_objext; then
18016   ac_header_compiler=yes
18017 else
18018   echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021         ac_header_compiler=no
18022 fi
18023
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18026 echo "${ECHO_T}$ac_header_compiler" >&6; }
18027
18028 # Is the header present?
18029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h.  */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h.  */
18037 #include <$ac_header>
18038 _ACEOF
18039 if { (ac_try="$ac_cpp conftest.$ac_ext"
18040 case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18046   ac_status=$?
18047   grep -v '^ *+' conftest.er1 >conftest.err
18048   rm -f conftest.er1
18049   cat conftest.err >&5
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); } >/dev/null && {
18052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18053          test ! -s conftest.err
18054        }; then
18055   ac_header_preproc=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060   ac_header_preproc=no
18061 fi
18062
18063 rm -f conftest.err conftest.$ac_ext
18064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18065 echo "${ECHO_T}$ac_header_preproc" >&6; }
18066
18067 # So?  What about this header?
18068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18069   yes:no: )
18070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18074     ac_header_preproc=yes
18075     ;;
18076   no:yes:* )
18077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18089     ( cat <<\_ASBOX
18090 ## --------------------------------------------- ##
18091 ## Report this to <http://www.openldap.org/its/> ##
18092 ## --------------------------------------------- ##
18093 _ASBOX
18094      ) | sed "s/^/$as_me: WARNING:     /" >&2
18095     ;;
18096 esac
18097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100   echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102   eval "$as_ac_Header=\$ac_header_preproc"
18103 fi
18104 ac_res=`eval echo '${'$as_ac_Header'}'`
18105                { echo "$as_me:$LINENO: result: $ac_res" >&5
18106 echo "${ECHO_T}$ac_res" >&6; }
18107
18108 fi
18109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18110   cat >>confdefs.h <<_ACEOF
18111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18112 _ACEOF
18113
18114 fi
18115
18116 done
18117
18118         if test $ac_cv_header_uuid_uuid_h = yes ; then
18119                 save_LIBS="$LIBS"
18120                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18121 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18122 if test "${ac_cv_search_uuid_generate+set}" = set; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125   ac_func_search_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132
18133 /* Override any GCC internal prototype to avoid an error.
18134    Use char because int might match the return type of a GCC
18135    builtin and then its argument prototype would still apply.  */
18136 #ifdef __cplusplus
18137 extern "C"
18138 #endif
18139 char uuid_generate ();
18140 int
18141 main ()
18142 {
18143 return uuid_generate ();
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 for ac_lib in '' uuid; do
18149   if test -z "$ac_lib"; then
18150     ac_res="none required"
18151   else
18152     ac_res=-l$ac_lib
18153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18154   fi
18155   rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_link") 2>conftest.er1
18163   ac_status=$?
18164   grep -v '^ *+' conftest.er1 >conftest.err
18165   rm -f conftest.er1
18166   cat conftest.err >&5
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); } && {
18169          test -z "$ac_c_werror_flag" ||
18170          test ! -s conftest.err
18171        } && test -s conftest$ac_exeext &&
18172        $as_test_x conftest$ac_exeext; then
18173   ac_cv_search_uuid_generate=$ac_res
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18182       conftest$ac_exeext
18183   if test "${ac_cv_search_uuid_generate+set}" = set; then
18184   break
18185 fi
18186 done
18187 if test "${ac_cv_search_uuid_generate+set}" = set; then
18188   :
18189 else
18190   ac_cv_search_uuid_generate=no
18191 fi
18192 rm conftest.$ac_ext
18193 LIBS=$ac_func_search_save_LIBS
18194 fi
18195 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18196 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18197 ac_res=$ac_cv_search_uuid_generate
18198 if test "$ac_res" != no; then
18199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18200   have_uuid=yes
18201 else
18202   :
18203 fi
18204
18205                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18206 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18207 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18208   echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210   ac_func_search_save_LIBS=$LIBS
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217
18218 /* Override any GCC internal prototype to avoid an error.
18219    Use char because int might match the return type of a GCC
18220    builtin and then its argument prototype would still apply.  */
18221 #ifdef __cplusplus
18222 extern "C"
18223 #endif
18224 char uuid_unparse_lower ();
18225 int
18226 main ()
18227 {
18228 return uuid_unparse_lower ();
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 for ac_lib in '' uuid; do
18234   if test -z "$ac_lib"; then
18235     ac_res="none required"
18236   else
18237     ac_res=-l$ac_lib
18238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18239   fi
18240   rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_link") 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } && {
18254          test -z "$ac_c_werror_flag" ||
18255          test ! -s conftest.err
18256        } && test -s conftest$ac_exeext &&
18257        $as_test_x conftest$ac_exeext; then
18258   ac_cv_search_uuid_unparse_lower=$ac_res
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267       conftest$ac_exeext
18268   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18269   break
18270 fi
18271 done
18272 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18273   :
18274 else
18275   ac_cv_search_uuid_unparse_lower=no
18276 fi
18277 rm conftest.$ac_ext
18278 LIBS=$ac_func_search_save_LIBS
18279 fi
18280 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18281 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18282 ac_res=$ac_cv_search_uuid_unparse_lower
18283 if test "$ac_res" != no; then
18284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18285   :
18286 else
18287   have_uuid=no
18288 fi
18289
18290                 LIBS="$save_LIBS"
18291
18292                 if test $have_uuid = yes ; then
18293
18294 cat >>confdefs.h <<\_ACEOF
18295 #define HAVE_UUID_GENERATE 1
18296 _ACEOF
18297
18298
18299                         test "$ac_cv_search_uuid_generate" = "none required" || \
18300                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18301                 fi
18302         fi
18303 fi
18304
18305 if test $have_uuid = no ; then
18306         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18307 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18308         save_LIBS="$LIBS"
18309         LIBS="$LIBS -lrpcrt4"
18310         cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316
18317                 int __stdcall UuidCreate(void *);
18318                 int __stdcall UuidToStringA(void *,void **);
18319
18320 int
18321 main ()
18322 {
18323
18324                 UuidCreate(0);
18325                 UuidToStringA(0,0);
18326
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338   (eval "$ac_link") 2>conftest.er1
18339   ac_status=$?
18340   grep -v '^ *+' conftest.er1 >conftest.err
18341   rm -f conftest.er1
18342   cat conftest.err >&5
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); } && {
18345          test -z "$ac_c_werror_flag" ||
18346          test ! -s conftest.err
18347        } && test -s conftest$ac_exeext &&
18348        $as_test_x conftest$ac_exeext; then
18349   need_rpcrt=yes
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354         need_rpcrt=no
18355 fi
18356
18357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18358       conftest$ac_exeext conftest.$ac_ext
18359         if test $need_rpcrt = yes; then
18360                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18361         fi
18362         LIBS="$save_LIBS"
18363         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18364 echo "${ECHO_T}$need_rpcrt" >&6; }
18365 fi
18366
18367 ol_cv_lib_resolver=no
18368 if test $ol_cv_lib_resolver = no ; then
18369         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18370 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18371 if test "${ol_cv_resolver_none+set}" = set; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374
18375         ol_RESOLVER_LIB=
18376         ol_LIBS=$LIBS
18377         LIBS="$ol_RESOLVER_LIB $LIBS"
18378
18379         cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385
18386 #ifdef HAVE_SYS_TYPES_H
18387 #       include <sys/types.h>
18388 #endif
18389 #include <netinet/in.h>
18390 #ifdef HAVE_ARPA_NAMESER_H
18391 #       include <arpa/nameser.h>
18392 #endif
18393 #ifdef HAVE_RESOLV_H
18394 #       include <resolv.h>
18395 #endif
18396
18397 int
18398 main ()
18399 {
18400 {
18401         int len, status;
18402         char *request = NULL;
18403         unsigned char reply[64*1024];
18404         unsigned char host[64*1024];
18405         unsigned char *p;
18406
18407 #ifdef NS_HFIXEDSZ
18408         /* Bind 8/9 interface */
18409         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18410 #else
18411         /* Bind 4 interface */
18412 # ifndef T_SRV
18413 #  define T_SRV 33
18414 # endif
18415         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18416 #endif
18417         p = reply;
18418 #ifdef NS_HFIXEDSZ
18419         /* Bind 8/9 interface */
18420         p += NS_HFIXEDSZ;
18421 #elif defined(HFIXEDSZ)
18422         /* Bind 4 interface w/ HFIXEDSZ */
18423         p += HFIXEDSZ;
18424 #else
18425         /* Bind 4 interface w/o HFIXEDSZ */
18426         p += sizeof(HEADER);
18427 #endif
18428         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18429 }
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441   (eval "$ac_link") 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } && {
18448          test -z "$ac_c_werror_flag" ||
18449          test ! -s conftest.err
18450        } && test -s conftest$ac_exeext &&
18451        $as_test_x conftest$ac_exeext; then
18452   ol_cv_resolver_none=yes
18453 else
18454   echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457         ol_cv_resolver_none=no
18458 fi
18459
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461       conftest$ac_exeext conftest.$ac_ext
18462
18463         LIBS="$ol_LIBS"
18464
18465 fi
18466 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18467 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18468
18469         if test $ol_cv_resolver_none = yes ; then
18470                 ol_cv_lib_resolver=yes
18471         fi
18472 fi
18473
18474 if test $ol_cv_lib_resolver = no ; then
18475         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18476 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18477 if test "${ol_cv_resolver_resolv+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480
18481         ol_RESOLVER_LIB=-lresolv
18482         ol_LIBS=$LIBS
18483         LIBS="$ol_RESOLVER_LIB $LIBS"
18484
18485         cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h.  */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h.  */
18491
18492 #ifdef HAVE_SYS_TYPES_H
18493 #       include <sys/types.h>
18494 #endif
18495 #include <netinet/in.h>
18496 #ifdef HAVE_ARPA_NAMESER_H
18497 #       include <arpa/nameser.h>
18498 #endif
18499 #ifdef HAVE_RESOLV_H
18500 #       include <resolv.h>
18501 #endif
18502
18503 int
18504 main ()
18505 {
18506 {
18507         int len, status;
18508         char *request = NULL;
18509         unsigned char reply[64*1024];
18510         unsigned char host[64*1024];
18511         unsigned char *p;
18512
18513 #ifdef NS_HFIXEDSZ
18514         /* Bind 8/9 interface */
18515         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18516 #else
18517         /* Bind 4 interface */
18518 # ifndef T_SRV
18519 #  define T_SRV 33
18520 # endif
18521         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18522 #endif
18523         p = reply;
18524 #ifdef NS_HFIXEDSZ
18525         /* Bind 8/9 interface */
18526         p += NS_HFIXEDSZ;
18527 #elif defined(HFIXEDSZ)
18528         /* Bind 4 interface w/ HFIXEDSZ */
18529         p += HFIXEDSZ;
18530 #else
18531         /* Bind 4 interface w/o HFIXEDSZ */
18532         p += sizeof(HEADER);
18533 #endif
18534         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18535 }
18536   ;
18537   return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544   *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547   (eval "$ac_link") 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } && {
18554          test -z "$ac_c_werror_flag" ||
18555          test ! -s conftest.err
18556        } && test -s conftest$ac_exeext &&
18557        $as_test_x conftest$ac_exeext; then
18558   ol_cv_resolver_resolv=yes
18559 else
18560   echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563         ol_cv_resolver_resolv=no
18564 fi
18565
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567       conftest$ac_exeext conftest.$ac_ext
18568
18569         LIBS="$ol_LIBS"
18570
18571 fi
18572 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18573 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18574
18575         if test $ol_cv_resolver_resolv = yes ; then
18576                 ol_cv_lib_resolver=-lresolv
18577         fi
18578 fi
18579
18580 if test $ol_cv_lib_resolver = no ; then
18581         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18582 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18583 if test "${ol_cv_resolver_bind+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586
18587         ol_RESOLVER_LIB=-lbind
18588         ol_LIBS=$LIBS
18589         LIBS="$ol_RESOLVER_LIB $LIBS"
18590
18591         cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 #ifdef HAVE_SYS_TYPES_H
18599 #       include <sys/types.h>
18600 #endif
18601 #include <netinet/in.h>
18602 #ifdef HAVE_ARPA_NAMESER_H
18603 #       include <arpa/nameser.h>
18604 #endif
18605 #ifdef HAVE_RESOLV_H
18606 #       include <resolv.h>
18607 #endif
18608
18609 int
18610 main ()
18611 {
18612 {
18613         int len, status;
18614         char *request = NULL;
18615         unsigned char reply[64*1024];
18616         unsigned char host[64*1024];
18617         unsigned char *p;
18618
18619 #ifdef NS_HFIXEDSZ
18620         /* Bind 8/9 interface */
18621         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18622 #else
18623         /* Bind 4 interface */
18624 # ifndef T_SRV
18625 #  define T_SRV 33
18626 # endif
18627         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18628 #endif
18629         p = reply;
18630 #ifdef NS_HFIXEDSZ
18631         /* Bind 8/9 interface */
18632         p += NS_HFIXEDSZ;
18633 #elif defined(HFIXEDSZ)
18634         /* Bind 4 interface w/ HFIXEDSZ */
18635         p += HFIXEDSZ;
18636 #else
18637         /* Bind 4 interface w/o HFIXEDSZ */
18638         p += sizeof(HEADER);
18639 #endif
18640         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18641 }
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650   *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653   (eval "$ac_link") 2>conftest.er1
18654   ac_status=$?
18655   grep -v '^ *+' conftest.er1 >conftest.err
18656   rm -f conftest.er1
18657   cat conftest.err >&5
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); } && {
18660          test -z "$ac_c_werror_flag" ||
18661          test ! -s conftest.err
18662        } && test -s conftest$ac_exeext &&
18663        $as_test_x conftest$ac_exeext; then
18664   ol_cv_resolver_bind=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669         ol_cv_resolver_bind=no
18670 fi
18671
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673       conftest$ac_exeext conftest.$ac_ext
18674
18675         LIBS="$ol_LIBS"
18676
18677 fi
18678 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18679 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18680
18681         if test $ol_cv_resolver_bind = yes ; then
18682                 ol_cv_lib_resolver=-lbind
18683         fi
18684 fi
18685
18686
18687
18688 ol_link_dnssrv=no
18689 if test "$ol_cv_lib_resolver" != no ; then
18690
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_RES_QUERY 1
18693 _ACEOF
18694
18695
18696         if test "$ol_enable_dnssrv" != no ; then
18697                 ol_link_dnssrv=yes
18698         fi
18699
18700         if test "$ol_cv_lib_resolver" != yes ; then
18701                 LIBS="$ol_cv_lib_resolver $LIBS"
18702         fi
18703 fi
18704
18705 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18706         if test "$ol_link_dnssrv" = no ; then
18707                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18708 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18709    { (exit 1); exit 1; }; }
18710         fi
18711 else
18712         ol_enable_dnssrv=no
18713 fi
18714
18715
18716 for ac_func in hstrerror
18717 do
18718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18722   echo $ECHO_N "(cached) $ECHO_C" >&6
18723 else
18724   cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18732 #define $ac_func innocuous_$ac_func
18733
18734 /* System header to define __stub macros and hopefully few prototypes,
18735     which can conflict with char $ac_func (); below.
18736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737     <limits.h> exists even on freestanding compilers.  */
18738
18739 #ifdef __STDC__
18740 # include <limits.h>
18741 #else
18742 # include <assert.h>
18743 #endif
18744
18745 #undef $ac_func
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748    Use char because int might match the return type of a GCC
18749    builtin and then its argument prototype would still apply.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char $ac_func ();
18754 /* The GNU C library defines this for functions which it implements
18755     to always fail with ENOSYS.  Some functions are actually named
18756     something starting with __ and the normal name is an alias.  */
18757 #if defined __stub_$ac_func || defined __stub___$ac_func
18758 choke me
18759 #endif
18760
18761 int
18762 main ()
18763 {
18764 return $ac_func ();
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_link") 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } && {
18783          test -z "$ac_c_werror_flag" ||
18784          test ! -s conftest.err
18785        } && test -s conftest$ac_exeext &&
18786        $as_test_x conftest$ac_exeext; then
18787   eval "$as_ac_var=yes"
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         eval "$as_ac_var=no"
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796       conftest$ac_exeext conftest.$ac_ext
18797 fi
18798 ac_res=`eval echo '${'$as_ac_var'}'`
18799                { echo "$as_me:$LINENO: result: $ac_res" >&5
18800 echo "${ECHO_T}$ac_res" >&6; }
18801 if test `eval echo '${'$as_ac_var'}'` = yes; then
18802   cat >>confdefs.h <<_ACEOF
18803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18804 _ACEOF
18805
18806 fi
18807 done
18808
18809
18810
18811
18812
18813
18814 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18815 do
18816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18830 #define $ac_func innocuous_$ac_func
18831
18832 /* System header to define __stub macros and hopefully few prototypes,
18833     which can conflict with char $ac_func (); below.
18834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18835     <limits.h> exists even on freestanding compilers.  */
18836
18837 #ifdef __STDC__
18838 # include <limits.h>
18839 #else
18840 # include <assert.h>
18841 #endif
18842
18843 #undef $ac_func
18844
18845 /* Override any GCC internal prototype to avoid an error.
18846    Use char because int might match the return type of a GCC
18847    builtin and then its argument prototype would still apply.  */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char $ac_func ();
18852 /* The GNU C library defines this for functions which it implements
18853     to always fail with ENOSYS.  Some functions are actually named
18854     something starting with __ and the normal name is an alias.  */
18855 #if defined __stub_$ac_func || defined __stub___$ac_func
18856 choke me
18857 #endif
18858
18859 int
18860 main ()
18861 {
18862 return $ac_func ();
18863   ;
18864   return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_link") 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } && {
18881          test -z "$ac_c_werror_flag" ||
18882          test ! -s conftest.err
18883        } && test -s conftest$ac_exeext &&
18884        $as_test_x conftest$ac_exeext; then
18885   eval "$as_ac_var=yes"
18886 else
18887   echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18889
18890         eval "$as_ac_var=no"
18891 fi
18892
18893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18894       conftest$ac_exeext conftest.$ac_ext
18895 fi
18896 ac_res=`eval echo '${'$as_ac_var'}'`
18897                { echo "$as_me:$LINENO: result: $ac_res" >&5
18898 echo "${ECHO_T}$ac_res" >&6; }
18899 if test `eval echo '${'$as_ac_var'}'` = yes; then
18900   cat >>confdefs.h <<_ACEOF
18901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18902 _ACEOF
18903
18904 fi
18905 done
18906
18907
18908 ol_link_ipv6=no
18909 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18910         if test $ol_enable_ipv6 = yes ; then
18911                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18912 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18913    { (exit 1); exit 1; }; }
18914         fi
18915 elif test $ol_enable_ipv6 != no ; then
18916         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18917 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18918 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921
18922                 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928
18929 #                       include <netinet/in.h>
18930 #                       ifdef INET6_ADDRSTRLEN
18931                                 __has_inet6_addrstrlen__;
18932 #                       endif
18933
18934 _ACEOF
18935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18936   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18937   ol_cv_inet6_addrstrlen=yes
18938 else
18939   ol_cv_inet6_addrstrlen=no
18940 fi
18941 rm -f conftest*
18942
18943 fi
18944 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18945 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18946
18947
18948         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18949 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18950 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18951   echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953
18954                 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960
18961 #include <sys/types.h>
18962 #include <sys/socket.h>
18963
18964 int
18965 main ()
18966 {
18967
18968                         struct sockaddr_storage ss;
18969
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_compile") 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } && {
18988          test -z "$ac_c_werror_flag" ||
18989          test ! -s conftest.err
18990        } && test -s conftest.$ac_objext; then
18991   ol_cv_struct_sockaddr_storage=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996         ol_cv_struct_sockaddr_storage=no
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 fi
19001 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19002 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19003
19004         if test $ol_cv_inet6_addrstrlen = yes &&
19005            test $ol_cv_struct_sockaddr_storage = yes ; then
19006                 ol_link_ipv6=yes
19007         elif test $ol_enable_ipv6 = yes &&
19008              test $ol_cv_inet6_addrstrlen = no ; then
19009                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19010 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19011    { (exit 1); exit 1; }; }
19012         elif test $ol_enable_ipv6 = yes &&
19013              test $ol_cv_struct_sockaddr_storage = no ; then
19014                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19015 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19016    { (exit 1); exit 1; }; }
19017         fi
19018 fi
19019
19020 if test $ol_enable_local != no ; then
19021
19022 for ac_header in sys/un.h
19023 do
19024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19029   echo $ECHO_N "(cached) $ECHO_C" >&6
19030 fi
19031 ac_res=`eval echo '${'$as_ac_Header'}'`
19032                { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19034 else
19035   # Is the header compilable?
19036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 $ac_includes_default
19045 #include <$ac_header>
19046 _ACEOF
19047 rm -f conftest.$ac_objext
19048 if { (ac_try="$ac_compile"
19049 case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054   (eval "$ac_compile") 2>conftest.er1
19055   ac_status=$?
19056   grep -v '^ *+' conftest.er1 >conftest.err
19057   rm -f conftest.er1
19058   cat conftest.err >&5
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); } && {
19061          test -z "$ac_c_werror_flag" ||
19062          test ! -s conftest.err
19063        } && test -s conftest.$ac_objext; then
19064   ac_header_compiler=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         ac_header_compiler=no
19070 fi
19071
19072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19074 echo "${ECHO_T}$ac_header_compiler" >&6; }
19075
19076 # Is the header present?
19077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <$ac_header>
19086 _ACEOF
19087 if { (ac_try="$ac_cpp conftest.$ac_ext"
19088 case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } >/dev/null && {
19100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19101          test ! -s conftest.err
19102        }; then
19103   ac_header_preproc=yes
19104 else
19105   echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19107
19108   ac_header_preproc=no
19109 fi
19110
19111 rm -f conftest.err conftest.$ac_ext
19112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19113 echo "${ECHO_T}$ac_header_preproc" >&6; }
19114
19115 # So?  What about this header?
19116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19117   yes:no: )
19118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19122     ac_header_preproc=yes
19123     ;;
19124   no:yes:* )
19125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19137     ( cat <<\_ASBOX
19138 ## --------------------------------------------- ##
19139 ## Report this to <http://www.openldap.org/its/> ##
19140 ## --------------------------------------------- ##
19141 _ASBOX
19142      ) | sed "s/^/$as_me: WARNING:     /" >&2
19143     ;;
19144 esac
19145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19148   echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150   eval "$as_ac_Header=\$ac_header_preproc"
19151 fi
19152 ac_res=`eval echo '${'$as_ac_Header'}'`
19153                { echo "$as_me:$LINENO: result: $ac_res" >&5
19154 echo "${ECHO_T}$ac_res" >&6; }
19155
19156 fi
19157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19158   cat >>confdefs.h <<_ACEOF
19159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19160 _ACEOF
19161
19162 fi
19163
19164 done
19165
19166
19167         if test $ol_enable_local = auto ; then
19168                 ol_enable_local=$ac_cv_header_sys_un_h
19169         elif test $ac_cv_header_sys_un_h = no ; then
19170                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19171 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19172    { (exit 1); exit 1; }; }
19173         fi
19174 fi
19175
19176
19177 if test $ol_with_tls = yes ; then
19178         ol_with_tls=auto
19179 fi
19180
19181 ol_link_tls=no
19182 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19183
19184 for ac_header in openssl/ssl.h
19185 do
19186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19188   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19191   echo $ECHO_N "(cached) $ECHO_C" >&6
19192 fi
19193 ac_res=`eval echo '${'$as_ac_Header'}'`
19194                { echo "$as_me:$LINENO: result: $ac_res" >&5
19195 echo "${ECHO_T}$ac_res" >&6; }
19196 else
19197   # Is the header compilable?
19198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19200 cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h.  */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h.  */
19206 $ac_includes_default
19207 #include <$ac_header>
19208 _ACEOF
19209 rm -f conftest.$ac_objext
19210 if { (ac_try="$ac_compile"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_compile") 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } && {
19223          test -z "$ac_c_werror_flag" ||
19224          test ! -s conftest.err
19225        } && test -s conftest.$ac_objext; then
19226   ac_header_compiler=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231         ac_header_compiler=no
19232 fi
19233
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236 echo "${ECHO_T}$ac_header_compiler" >&6; }
19237
19238 # Is the header present?
19239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 #include <$ac_header>
19248 _ACEOF
19249 if { (ac_try="$ac_cpp conftest.$ac_ext"
19250 case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } >/dev/null && {
19262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        }; then
19265   ac_header_preproc=yes
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270   ac_header_preproc=no
19271 fi
19272
19273 rm -f conftest.err conftest.$ac_ext
19274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275 echo "${ECHO_T}$ac_header_preproc" >&6; }
19276
19277 # So?  What about this header?
19278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19279   yes:no: )
19280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19284     ac_header_preproc=yes
19285     ;;
19286   no:yes:* )
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19299     ( cat <<\_ASBOX
19300 ## --------------------------------------------- ##
19301 ## Report this to <http://www.openldap.org/its/> ##
19302 ## --------------------------------------------- ##
19303 _ASBOX
19304      ) | sed "s/^/$as_me: WARNING:     /" >&2
19305     ;;
19306 esac
19307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   eval "$as_ac_Header=\$ac_header_preproc"
19313 fi
19314 ac_res=`eval echo '${'$as_ac_Header'}'`
19315                { echo "$as_me:$LINENO: result: $ac_res" >&5
19316 echo "${ECHO_T}$ac_res" >&6; }
19317
19318 fi
19319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320   cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322 _ACEOF
19323
19324 fi
19325
19326 done
19327
19328
19329         if test $ac_cv_header_openssl_ssl_h = yes ; then
19330                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19331 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lssl -lcrypto $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343
19344 /* Override any GCC internal prototype to avoid an error.
19345    Use char because int might match the return type of a GCC
19346    builtin and then its argument prototype would still apply.  */
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350 char SSL_library_init ();
19351 int
19352 main ()
19353 {
19354 return SSL_library_init ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366   (eval "$ac_link") 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } && {
19373          test -z "$ac_c_werror_flag" ||
19374          test ! -s conftest.err
19375        } && test -s conftest$ac_exeext &&
19376        $as_test_x conftest$ac_exeext; then
19377   ac_cv_lib_ssl_SSL_library_init=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382         ac_cv_lib_ssl_SSL_library_init=no
19383 fi
19384
19385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19386       conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19388 fi
19389 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19390 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19391 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19392   have_openssl=yes
19393                         need_rsaref=no
19394 else
19395   have_openssl=no
19396 fi
19397
19398
19399                 if test $have_openssl = no ; then
19400                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19401 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413
19414 /* Override any GCC internal prototype to avoid an error.
19415    Use char because int might match the return type of a GCC
19416    builtin and then its argument prototype would still apply.  */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char ssl3_accept ();
19421 int
19422 main ()
19423 {
19424 return ssl3_accept ();
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_link") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest$ac_exeext &&
19446        $as_test_x conftest$ac_exeext; then
19447   ac_cv_lib_ssl_ssl3_accept=yes
19448 else
19449   echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452         ac_cv_lib_ssl_ssl3_accept=no
19453 fi
19454
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456       conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19458 fi
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19460 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19461 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19462   have_openssl=yes
19463                                 need_rsaref=yes
19464 else
19465   have_openssl=no
19466 fi
19467
19468                 fi
19469
19470                 if test $have_openssl = yes ; then
19471                         ol_with_tls=openssl
19472                         ol_link_tls=yes
19473
19474
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_OPENSSL 1
19477 _ACEOF
19478
19479
19480                         if test $need_rsaref = yes; then
19481
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE_RSAREF 1
19484 _ACEOF
19485
19486
19487                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19488                         else
19489                                 TLS_LIBS="-lssl -lcrypto"
19490                         fi
19491
19492                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19493 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19494 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19495   echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497
19498                 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504
19505 #ifdef HAVE_OPENSSL_SSL_H
19506 #include <openssl/ssl.h>
19507 #endif
19508
19509 /* Require 0.9.7d+ */
19510 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19511         char *__ssl_compat = "0.9.7d";
19512 #endif
19513
19514 _ACEOF
19515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19516   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19517   ol_cv_ssl_crl_compat=yes
19518 else
19519   ol_cv_ssl_crl_compat=no
19520 fi
19521 rm -f conftest*
19522
19523 fi
19524 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19525 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19526
19527                         if test $ol_cv_ssl_crl_compat = yes ; then
19528
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_OPENSSL_CRL 1
19531 _ACEOF
19532
19533                         fi
19534                 fi
19535         fi
19536 fi
19537
19538 if test $ol_link_tls = no ; then
19539         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19540
19541 for ac_header in gnutls/gnutls.h
19542 do
19543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19545   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 fi
19550 ac_res=`eval echo '${'$as_ac_Header'}'`
19551                { echo "$as_me:$LINENO: result: $ac_res" >&5
19552 echo "${ECHO_T}$ac_res" >&6; }
19553 else
19554   # Is the header compilable?
19555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563 $ac_includes_default
19564 #include <$ac_header>
19565 _ACEOF
19566 rm -f conftest.$ac_objext
19567 if { (ac_try="$ac_compile"
19568 case "(($ac_try" in
19569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570   *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573   (eval "$ac_compile") 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } && {
19580          test -z "$ac_c_werror_flag" ||
19581          test ! -s conftest.err
19582        } && test -s conftest.$ac_objext; then
19583   ac_header_compiler=yes
19584 else
19585   echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588         ac_header_compiler=no
19589 fi
19590
19591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19593 echo "${ECHO_T}$ac_header_compiler" >&6; }
19594
19595 # Is the header present?
19596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604 #include <$ac_header>
19605 _ACEOF
19606 if { (ac_try="$ac_cpp conftest.$ac_ext"
19607 case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } >/dev/null && {
19619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19620          test ! -s conftest.err
19621        }; then
19622   ac_header_preproc=yes
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627   ac_header_preproc=no
19628 fi
19629
19630 rm -f conftest.err conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19632 echo "${ECHO_T}$ac_header_preproc" >&6; }
19633
19634 # So?  What about this header?
19635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19636   yes:no: )
19637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19641     ac_header_preproc=yes
19642     ;;
19643   no:yes:* )
19644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19656     ( cat <<\_ASBOX
19657 ## --------------------------------------------- ##
19658 ## Report this to <http://www.openldap.org/its/> ##
19659 ## --------------------------------------------- ##
19660 _ASBOX
19661      ) | sed "s/^/$as_me: WARNING:     /" >&2
19662     ;;
19663 esac
19664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19667   echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669   eval "$as_ac_Header=\$ac_header_preproc"
19670 fi
19671 ac_res=`eval echo '${'$as_ac_Header'}'`
19672                { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674
19675 fi
19676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19677   cat >>confdefs.h <<_ACEOF
19678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19679 _ACEOF
19680
19681 fi
19682
19683 done
19684
19685
19686                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19687                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19688 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19689 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lgnutls  $LIBS"
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700
19701 /* Override any GCC internal prototype to avoid an error.
19702    Use char because int might match the return type of a GCC
19703    builtin and then its argument prototype would still apply.  */
19704 #ifdef __cplusplus
19705 extern "C"
19706 #endif
19707 char gnutls_init ();
19708 int
19709 main ()
19710 {
19711 return gnutls_init ();
19712   ;
19713   return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_link") 2>conftest.er1
19724   ac_status=$?
19725   grep -v '^ *+' conftest.er1 >conftest.err
19726   rm -f conftest.er1
19727   cat conftest.err >&5
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } && {
19730          test -z "$ac_c_werror_flag" ||
19731          test ! -s conftest.err
19732        } && test -s conftest$ac_exeext &&
19733        $as_test_x conftest$ac_exeext; then
19734   ac_cv_lib_gnutls_gnutls_init=yes
19735 else
19736   echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739         ac_cv_lib_gnutls_gnutls_init=no
19740 fi
19741
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743       conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19747 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19748 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19749   have_gnutls=yes
19750 else
19751   have_gnutls=no
19752 fi
19753
19754
19755                         if test $have_gnutls = yes ; then
19756                                 ol_with_tls=gnutls
19757                                 ol_link_tls=yes
19758
19759                                 TLS_LIBS="-lgnutls"
19760
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_GNUTLS 1
19764 _ACEOF
19765
19766                         fi
19767                 fi
19768         fi
19769 fi
19770
19771 if test $ol_link_tls = no ; then
19772         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19773                 have_moznss=no
19774
19775 for ac_header in nssutil.h
19776 do
19777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19779   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 fi
19784 ac_res=`eval echo '${'$as_ac_Header'}'`
19785                { echo "$as_me:$LINENO: result: $ac_res" >&5
19786 echo "${ECHO_T}$ac_res" >&6; }
19787 else
19788   # Is the header compilable?
19789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 $ac_includes_default
19798 #include <$ac_header>
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_compile") 2>conftest.er1
19808   ac_status=$?
19809   grep -v '^ *+' conftest.er1 >conftest.err
19810   rm -f conftest.er1
19811   cat conftest.err >&5
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); } && {
19814          test -z "$ac_c_werror_flag" ||
19815          test ! -s conftest.err
19816        } && test -s conftest.$ac_objext; then
19817   ac_header_compiler=yes
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822         ac_header_compiler=no
19823 fi
19824
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19827 echo "${ECHO_T}$ac_header_compiler" >&6; }
19828
19829 # Is the header present?
19830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19832 cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 #include <$ac_header>
19839 _ACEOF
19840 if { (ac_try="$ac_cpp conftest.$ac_ext"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } >/dev/null && {
19853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        }; then
19856   ac_header_preproc=yes
19857 else
19858   echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861   ac_header_preproc=no
19862 fi
19863
19864 rm -f conftest.err conftest.$ac_ext
19865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866 echo "${ECHO_T}$ac_header_preproc" >&6; }
19867
19868 # So?  What about this header?
19869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19870   yes:no: )
19871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19875     ac_header_preproc=yes
19876     ;;
19877   no:yes:* )
19878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19890     ( cat <<\_ASBOX
19891 ## --------------------------------------------- ##
19892 ## Report this to <http://www.openldap.org/its/> ##
19893 ## --------------------------------------------- ##
19894 _ASBOX
19895      ) | sed "s/^/$as_me: WARNING:     /" >&2
19896     ;;
19897 esac
19898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   eval "$as_ac_Header=\$ac_header_preproc"
19904 fi
19905 ac_res=`eval echo '${'$as_ac_Header'}'`
19906                { echo "$as_me:$LINENO: result: $ac_res" >&5
19907 echo "${ECHO_T}$ac_res" >&6; }
19908
19909 fi
19910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19911   cat >>confdefs.h <<_ACEOF
19912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19913 _ACEOF
19914
19915 fi
19916
19917 done
19918
19919                 if test "$ac_cv_header_nssutil_h" = yes ; then
19920                         { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
19921 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   ac_check_lib_save_LIBS=$LIBS
19926 LIBS="-lnss3  $LIBS"
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933
19934 /* Override any GCC internal prototype to avoid an error.
19935    Use char because int might match the return type of a GCC
19936    builtin and then its argument prototype would still apply.  */
19937 #ifdef __cplusplus
19938 extern "C"
19939 #endif
19940 char NSS_Initialize ();
19941 int
19942 main ()
19943 {
19944 return NSS_Initialize ();
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_link") 2>conftest.er1
19957   ac_status=$?
19958   grep -v '^ *+' conftest.er1 >conftest.err
19959   rm -f conftest.er1
19960   cat conftest.err >&5
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } && {
19963          test -z "$ac_c_werror_flag" ||
19964          test ! -s conftest.err
19965        } && test -s conftest$ac_exeext &&
19966        $as_test_x conftest$ac_exeext; then
19967   ac_cv_lib_nss3_NSS_Initialize=yes
19968 else
19969   echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972         ac_cv_lib_nss3_NSS_Initialize=no
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976       conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19978 fi
19979 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
19980 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
19981 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
19982    have_moznss=yes
19983 else
19984    have_moznss=no
19985 fi
19986
19987                 fi
19988
19989                 if test "$have_moznss" = yes ; then
19990                         ol_with_tls=moznss
19991                         ol_link_tls=yes
19992
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE_MOZNSS 1
19995 _ACEOF
19996
19997                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
19998                 else
19999                         { { 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
20000 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;}
20001    { (exit 1); exit 1; }; }
20002                 fi
20003         fi
20004 fi
20005
20006 WITH_TLS=no
20007 if test $ol_link_tls = yes ; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_TLS 1
20011 _ACEOF
20012
20013         WITH_TLS=yes
20014 elif test $ol_with_tls = auto ; then
20015         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20016 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20017         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20018 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20019 elif test $ol_with_tls != no ; then
20020         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20021 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20022    { (exit 1); exit 1; }; }
20023 else
20024         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20025 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20026 fi
20027
20028 if test $ol_enable_lmpasswd != no; then
20029         if test $ol_link_tls != yes ; then
20030                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20031 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20032    { (exit 1); exit 1; }; }
20033         fi
20034
20035
20036 cat >>confdefs.h <<\_ACEOF
20037 #define SLAPD_LMHASH 1
20038 _ACEOF
20039
20040 fi
20041
20042 ol_link_threads=no
20043
20044 case $ol_with_threads in auto | yes | nt)
20045
20046
20047         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20048 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20049 if test "${ac_cv_func__beginthread+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20060 #define _beginthread innocuous__beginthread
20061
20062 /* System header to define __stub macros and hopefully few prototypes,
20063     which can conflict with char _beginthread (); below.
20064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065     <limits.h> exists even on freestanding compilers.  */
20066
20067 #ifdef __STDC__
20068 # include <limits.h>
20069 #else
20070 # include <assert.h>
20071 #endif
20072
20073 #undef _beginthread
20074
20075 /* Override any GCC internal prototype to avoid an error.
20076    Use char because int might match the return type of a GCC
20077    builtin and then its argument prototype would still apply.  */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char _beginthread ();
20082 /* The GNU C library defines this for functions which it implements
20083     to always fail with ENOSYS.  Some functions are actually named
20084     something starting with __ and the normal name is an alias.  */
20085 #if defined __stub__beginthread || defined __stub____beginthread
20086 choke me
20087 #endif
20088
20089 int
20090 main ()
20091 {
20092 return _beginthread ();
20093   ;
20094   return 0;
20095 }
20096 _ACEOF
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101   *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104   (eval "$ac_link") 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } && {
20111          test -z "$ac_c_werror_flag" ||
20112          test ! -s conftest.err
20113        } && test -s conftest$ac_exeext &&
20114        $as_test_x conftest$ac_exeext; then
20115   ac_cv_func__beginthread=yes
20116 else
20117   echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120         ac_cv_func__beginthread=no
20121 fi
20122
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124       conftest$ac_exeext conftest.$ac_ext
20125 fi
20126 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20127 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20128
20129
20130         if test $ac_cv_func__beginthread = yes ; then
20131
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE_NT_THREADS 1
20134 _ACEOF
20135
20136                 ol_cv_nt_threads=yes
20137         fi
20138
20139
20140         if test "$ol_cv_nt_threads" = yes ; then
20141                 ol_link_threads=nt
20142                 ol_with_threads=found
20143                 ol_with_yielding_select=yes
20144
20145
20146 cat >>confdefs.h <<\_ACEOF
20147 #define HAVE_NT_SERVICE_MANAGER 1
20148 _ACEOF
20149
20150
20151 cat >>confdefs.h <<\_ACEOF
20152 #define HAVE_NT_EVENT_LOG 1
20153 _ACEOF
20154
20155         fi
20156
20157         if test $ol_with_threads = nt ; then
20158                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20159 echo "$as_me: error: could not locate NT Threads" >&2;}
20160    { (exit 1); exit 1; }; }
20161         fi
20162         ;;
20163 esac
20164
20165 case $ol_with_threads in auto | yes | posix)
20166
20167
20168 for ac_header in pthread.h
20169 do
20170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 fi
20177 ac_res=`eval echo '${'$as_ac_Header'}'`
20178                { echo "$as_me:$LINENO: result: $ac_res" >&5
20179 echo "${ECHO_T}$ac_res" >&6; }
20180 else
20181   # Is the header compilable?
20182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190 $ac_includes_default
20191 #include <$ac_header>
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_compile") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } && {
20207          test -z "$ac_c_werror_flag" ||
20208          test ! -s conftest.err
20209        } && test -s conftest.$ac_objext; then
20210   ac_header_compiler=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215         ac_header_compiler=no
20216 fi
20217
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20221
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h.  */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h.  */
20231 #include <$ac_header>
20232 _ACEOF
20233 if { (ac_try="$ac_cpp conftest.$ac_ext"
20234 case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20240   ac_status=$?
20241   grep -v '^ *+' conftest.er1 >conftest.err
20242   rm -f conftest.er1
20243   cat conftest.err >&5
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); } >/dev/null && {
20246          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20247          test ! -s conftest.err
20248        }; then
20249   ac_header_preproc=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254   ac_header_preproc=no
20255 fi
20256
20257 rm -f conftest.err conftest.$ac_ext
20258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6; }
20260
20261 # So?  What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20263   yes:no: )
20264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20268     ac_header_preproc=yes
20269     ;;
20270   no:yes:* )
20271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20283     ( cat <<\_ASBOX
20284 ## --------------------------------------------- ##
20285 ## Report this to <http://www.openldap.org/its/> ##
20286 ## --------------------------------------------- ##
20287 _ASBOX
20288      ) | sed "s/^/$as_me: WARNING:     /" >&2
20289     ;;
20290 esac
20291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20294   echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296   eval "$as_ac_Header=\$ac_header_preproc"
20297 fi
20298 ac_res=`eval echo '${'$as_ac_Header'}'`
20299                { echo "$as_me:$LINENO: result: $ac_res" >&5
20300 echo "${ECHO_T}$ac_res" >&6; }
20301
20302 fi
20303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20304   cat >>confdefs.h <<_ACEOF
20305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20306 _ACEOF
20307
20308 fi
20309
20310 done
20311
20312
20313         if test $ac_cv_header_pthread_h = yes ; then
20314                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20315 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20316 if test "${ol_cv_pthread_version+set}" = set; then
20317   echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319
20320         cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h.  */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h.  */
20326
20327 #               include <pthread.h>
20328
20329 int
20330 main ()
20331 {
20332
20333                 int i = PTHREAD_CREATE_JOINABLE;
20334
20335   ;
20336   return 0;
20337 }
20338 _ACEOF
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343   *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346   (eval "$ac_compile") 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } && {
20353          test -z "$ac_c_werror_flag" ||
20354          test ! -s conftest.err
20355        } && test -s conftest.$ac_objext; then
20356
20357         cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 #include <pthread.h>
20364
20365 _ACEOF
20366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20367   $EGREP "pthread_detach" >/dev/null 2>&1; then
20368   ol_cv_pthread_version=10
20369 else
20370   ol_cv_pthread_version=8
20371 fi
20372 rm -f conftest*
20373
20374 else
20375   echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20377
20378
20379         cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386 #               include <pthread.h>
20387 #               ifdef PTHREAD_CREATE_UNDETACHED
20388                 draft7
20389 #               endif
20390
20391 _ACEOF
20392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20393   $EGREP "draft7" >/dev/null 2>&1; then
20394   ol_cv_pthread_version=7
20395 else
20396
20397         cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 #include <pthread.h>
20404
20405 _ACEOF
20406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20407   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20408   ol_cv_pthread_version=6
20409 else
20410
20411         cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 #               include <pthread.h>
20419 #ifdef          PTHREAD_MUTEX_INITIALIZER
20420                 draft5
20421 #endif
20422
20423 _ACEOF
20424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20425   $EGREP "draft5" >/dev/null 2>&1; then
20426   ol_cv_pthread_version=5
20427 else
20428   ol_cv_pthread_version=4
20429 fi
20430 rm -f conftest*
20431
20432 fi
20433 rm -f conftest*
20434
20435 fi
20436 rm -f conftest*
20437
20438 fi
20439
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441
20442 fi
20443 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20444 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20445
20446
20447                 if test $ol_cv_pthread_version != 0 ; then
20448
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_PTHREADS $ol_cv_pthread_version
20451 _ACEOF
20452
20453                 else
20454                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20455 echo "$as_me: error: unknown pthread version" >&2;}
20456    { (exit 1); exit 1; }; }
20457                 fi
20458
20459                 # consider threads found
20460                 ol_with_threads=found
20461
20462
20463         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20464 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20465 if test "${ol_cv_header_linux_threads+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 #include <pthread.h>
20475 _ACEOF
20476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20477   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20478   ol_cv_header_linux_threads=yes
20479 else
20480   ol_cv_header_linux_threads=no
20481 fi
20482 rm -f conftest*
20483
20484
20485 fi
20486 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20487 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20488         if test $ol_cv_header_linux_threads = yes; then
20489
20490 cat >>confdefs.h <<\_ACEOF
20491 #define HAVE_LINUX_THREADS 1
20492 _ACEOF
20493
20494         fi
20495
20496
20497         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20498 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20499 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20500   echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502   cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508 #include <pthread.h>
20509 #ifdef _POSIX_THREAD_IS_GNU_PTH
20510         __gnu_pth__;
20511 #endif
20512
20513 _ACEOF
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20516   ol_cv_header_gnu_pth_pthread_h=yes
20517 else
20518   ol_cv_header_gnu_pth_pthread_h=no
20519 fi
20520 rm -f conftest*
20521
20522
20523 fi
20524 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20525 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20526
20527
20528                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20529
20530 for ac_header in sched.h
20531 do
20532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20534   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 fi
20539 ac_res=`eval echo '${'$as_ac_Header'}'`
20540                { echo "$as_me:$LINENO: result: $ac_res" >&5
20541 echo "${ECHO_T}$ac_res" >&6; }
20542 else
20543   # Is the header compilable?
20544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 $ac_includes_default
20553 #include <$ac_header>
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_compile") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } && {
20569          test -z "$ac_c_werror_flag" ||
20570          test ! -s conftest.err
20571        } && test -s conftest.$ac_objext; then
20572   ac_header_compiler=yes
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577         ac_header_compiler=no
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582 echo "${ECHO_T}$ac_header_compiler" >&6; }
20583
20584 # Is the header present?
20585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593 #include <$ac_header>
20594 _ACEOF
20595 if { (ac_try="$ac_cpp conftest.$ac_ext"
20596 case "(($ac_try" in
20597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598   *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20602   ac_status=$?
20603   grep -v '^ *+' conftest.er1 >conftest.err
20604   rm -f conftest.er1
20605   cat conftest.err >&5
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); } >/dev/null && {
20608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20609          test ! -s conftest.err
20610        }; then
20611   ac_header_preproc=yes
20612 else
20613   echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20615
20616   ac_header_preproc=no
20617 fi
20618
20619 rm -f conftest.err conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20621 echo "${ECHO_T}$ac_header_preproc" >&6; }
20622
20623 # So?  What about this header?
20624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20625   yes:no: )
20626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20630     ac_header_preproc=yes
20631     ;;
20632   no:yes:* )
20633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20645     ( cat <<\_ASBOX
20646 ## --------------------------------------------- ##
20647 ## Report this to <http://www.openldap.org/its/> ##
20648 ## --------------------------------------------- ##
20649 _ASBOX
20650      ) | sed "s/^/$as_me: WARNING:     /" >&2
20651     ;;
20652 esac
20653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20656   echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658   eval "$as_ac_Header=\$ac_header_preproc"
20659 fi
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661                { echo "$as_me:$LINENO: result: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20663
20664 fi
20665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20666   cat >>confdefs.h <<_ACEOF
20667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20668 _ACEOF
20669
20670 fi
20671
20672 done
20673
20674                 fi
20675
20676
20677                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20678 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20679 if test "${ol_cv_pthread_create+set}" = set; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682
20683                         if test "$cross_compiling" = yes; then
20684   cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690
20691 /* pthread test headers */
20692 #include <pthread.h>
20693 #if HAVE_PTHREADS < 7
20694 #include <errno.h>
20695 #endif
20696 #ifndef NULL
20697 #define NULL (void*)0
20698 #endif
20699
20700 static void *task(p)
20701         void *p;
20702 {
20703         return (void *) (p == NULL);
20704 }
20705
20706 int
20707 main ()
20708 {
20709
20710         /* pthread test function */
20711 #ifndef PTHREAD_CREATE_DETACHED
20712 #define PTHREAD_CREATE_DETACHED 1
20713 #endif
20714         pthread_t t;
20715         int status;
20716         int detach = PTHREAD_CREATE_DETACHED;
20717
20718 #if HAVE_PTHREADS > 4
20719         /* Final pthreads */
20720         pthread_attr_t attr;
20721
20722         status = pthread_attr_init(&attr);
20723         if( status ) return status;
20724
20725 #if HAVE_PTHREADS < 7
20726         status = pthread_attr_setdetachstate(&attr, &detach);
20727         if( status < 0 ) status = errno;
20728 #else
20729         status = pthread_attr_setdetachstate(&attr, detach);
20730 #endif
20731         if( status ) return status;
20732         status = pthread_create( &t, &attr, task, NULL );
20733 #if HAVE_PTHREADS < 7
20734         if( status < 0 ) status = errno;
20735 #endif
20736         if( status ) return status;
20737 #else
20738         /* Draft 4 pthreads */
20739         status = pthread_create( &t, pthread_attr_default, task, NULL );
20740         if( status ) return errno;
20741
20742         /* give thread a chance to complete */
20743         /* it should remain joinable and hence detachable */
20744         sleep( 1 );
20745
20746         status = pthread_detach( &t );
20747         if( status ) return errno;
20748 #endif
20749
20750 #ifdef HAVE_LINUX_THREADS
20751         pthread_kill_other_threads_np();
20752 #endif
20753
20754         return 0;
20755
20756   ;
20757   return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_link") 2>conftest.er1
20768   ac_status=$?
20769   grep -v '^ *+' conftest.er1 >conftest.err
20770   rm -f conftest.er1
20771   cat conftest.err >&5
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } && {
20774          test -z "$ac_c_werror_flag" ||
20775          test ! -s conftest.err
20776        } && test -s conftest$ac_exeext &&
20777        $as_test_x conftest$ac_exeext; then
20778   ol_cv_pthread_create=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783         ol_cv_pthread_create=no
20784 fi
20785
20786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20787       conftest$ac_exeext conftest.$ac_ext
20788 else
20789   cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795
20796 /* pthread test headers */
20797 #include <pthread.h>
20798 #if HAVE_PTHREADS < 7
20799 #include <errno.h>
20800 #endif
20801 #ifndef NULL
20802 #define NULL (void*)0
20803 #endif
20804
20805 static void *task(p)
20806         void *p;
20807 {
20808         return (void *) (p == NULL);
20809 }
20810
20811
20812 int main(argc, argv)
20813         int argc;
20814         char **argv;
20815 {
20816
20817         /* pthread test function */
20818 #ifndef PTHREAD_CREATE_DETACHED
20819 #define PTHREAD_CREATE_DETACHED 1
20820 #endif
20821         pthread_t t;
20822         int status;
20823         int detach = PTHREAD_CREATE_DETACHED;
20824
20825 #if HAVE_PTHREADS > 4
20826         /* Final pthreads */
20827         pthread_attr_t attr;
20828
20829         status = pthread_attr_init(&attr);
20830         if( status ) return status;
20831
20832 #if HAVE_PTHREADS < 7
20833         status = pthread_attr_setdetachstate(&attr, &detach);
20834         if( status < 0 ) status = errno;
20835 #else
20836         status = pthread_attr_setdetachstate(&attr, detach);
20837 #endif
20838         if( status ) return status;
20839         status = pthread_create( &t, &attr, task, NULL );
20840 #if HAVE_PTHREADS < 7
20841         if( status < 0 ) status = errno;
20842 #endif
20843         if( status ) return status;
20844 #else
20845         /* Draft 4 pthreads */
20846         status = pthread_create( &t, pthread_attr_default, task, NULL );
20847         if( status ) return errno;
20848
20849         /* give thread a chance to complete */
20850         /* it should remain joinable and hence detachable */
20851         sleep( 1 );
20852
20853         status = pthread_detach( &t );
20854         if( status ) return errno;
20855 #endif
20856
20857 #ifdef HAVE_LINUX_THREADS
20858         pthread_kill_other_threads_np();
20859 #endif
20860
20861         return 0;
20862
20863 }
20864
20865 _ACEOF
20866 rm -f conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870   *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873   (eval "$ac_link") 2>&5
20874   ac_status=$?
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20877   { (case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_try") 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886   ol_cv_pthread_create=yes
20887 else
20888   echo "$as_me: program exited with status $ac_status" >&5
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20891
20892 ( exit $ac_status )
20893 ol_cv_pthread_create=no
20894 fi
20895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20896 fi
20897
20898
20899 fi
20900 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20901 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20902
20903                 if test $ol_cv_pthread_create != no ; then
20904                         ol_link_threads=posix
20905                         ol_link_pthreads=""
20906                 fi
20907
20908                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20909 if test "$ol_link_threads" = no ; then
20910         # try -kthread
20911         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20912 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20913 if test "${ol_cv_pthread_kthread+set}" = set; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916
20917                 # save the flags
20918                 ol_LIBS="$LIBS"
20919                 LIBS="-kthread $LIBS"
20920
20921                 if test "$cross_compiling" = yes; then
20922   cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928
20929 /* pthread test headers */
20930 #include <pthread.h>
20931 #if HAVE_PTHREADS < 7
20932 #include <errno.h>
20933 #endif
20934 #ifndef NULL
20935 #define NULL (void*)0
20936 #endif
20937
20938 static void *task(p)
20939         void *p;
20940 {
20941         return (void *) (p == NULL);
20942 }
20943
20944 int
20945 main ()
20946 {
20947
20948         /* pthread test function */
20949 #ifndef PTHREAD_CREATE_DETACHED
20950 #define PTHREAD_CREATE_DETACHED 1
20951 #endif
20952         pthread_t t;
20953         int status;
20954         int detach = PTHREAD_CREATE_DETACHED;
20955
20956 #if HAVE_PTHREADS > 4
20957         /* Final pthreads */
20958         pthread_attr_t attr;
20959
20960         status = pthread_attr_init(&attr);
20961         if( status ) return status;
20962
20963 #if HAVE_PTHREADS < 7
20964         status = pthread_attr_setdetachstate(&attr, &detach);
20965         if( status < 0 ) status = errno;
20966 #else
20967         status = pthread_attr_setdetachstate(&attr, detach);
20968 #endif
20969         if( status ) return status;
20970         status = pthread_create( &t, &attr, task, NULL );
20971 #if HAVE_PTHREADS < 7
20972         if( status < 0 ) status = errno;
20973 #endif
20974         if( status ) return status;
20975 #else
20976         /* Draft 4 pthreads */
20977         status = pthread_create( &t, pthread_attr_default, task, NULL );
20978         if( status ) return errno;
20979
20980         /* give thread a chance to complete */
20981         /* it should remain joinable and hence detachable */
20982         sleep( 1 );
20983
20984         status = pthread_detach( &t );
20985         if( status ) return errno;
20986 #endif
20987
20988 #ifdef HAVE_LINUX_THREADS
20989         pthread_kill_other_threads_np();
20990 #endif
20991
20992         return 0;
20993
20994   ;
20995   return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_link") 2>conftest.er1
21006   ac_status=$?
21007   grep -v '^ *+' conftest.er1 >conftest.err
21008   rm -f conftest.er1
21009   cat conftest.err >&5
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); } && {
21012          test -z "$ac_c_werror_flag" ||
21013          test ! -s conftest.err
21014        } && test -s conftest$ac_exeext &&
21015        $as_test_x conftest$ac_exeext; then
21016   ol_cv_pthread_kthread=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         ol_cv_pthread_kthread=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21025       conftest$ac_exeext conftest.$ac_ext
21026 else
21027   cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033
21034 /* pthread test headers */
21035 #include <pthread.h>
21036 #if HAVE_PTHREADS < 7
21037 #include <errno.h>
21038 #endif
21039 #ifndef NULL
21040 #define NULL (void*)0
21041 #endif
21042
21043 static void *task(p)
21044         void *p;
21045 {
21046         return (void *) (p == NULL);
21047 }
21048
21049
21050 int main(argc, argv)
21051         int argc;
21052         char **argv;
21053 {
21054
21055         /* pthread test function */
21056 #ifndef PTHREAD_CREATE_DETACHED
21057 #define PTHREAD_CREATE_DETACHED 1
21058 #endif
21059         pthread_t t;
21060         int status;
21061         int detach = PTHREAD_CREATE_DETACHED;
21062
21063 #if HAVE_PTHREADS > 4
21064         /* Final pthreads */
21065         pthread_attr_t attr;
21066
21067         status = pthread_attr_init(&attr);
21068         if( status ) return status;
21069
21070 #if HAVE_PTHREADS < 7
21071         status = pthread_attr_setdetachstate(&attr, &detach);
21072         if( status < 0 ) status = errno;
21073 #else
21074         status = pthread_attr_setdetachstate(&attr, detach);
21075 #endif
21076         if( status ) return status;
21077         status = pthread_create( &t, &attr, task, NULL );
21078 #if HAVE_PTHREADS < 7
21079         if( status < 0 ) status = errno;
21080 #endif
21081         if( status ) return status;
21082 #else
21083         /* Draft 4 pthreads */
21084         status = pthread_create( &t, pthread_attr_default, task, NULL );
21085         if( status ) return errno;
21086
21087         /* give thread a chance to complete */
21088         /* it should remain joinable and hence detachable */
21089         sleep( 1 );
21090
21091         status = pthread_detach( &t );
21092         if( status ) return errno;
21093 #endif
21094
21095 #ifdef HAVE_LINUX_THREADS
21096         pthread_kill_other_threads_np();
21097 #endif
21098
21099         return 0;
21100
21101 }
21102
21103 _ACEOF
21104 rm -f conftest$ac_exeext
21105 if { (ac_try="$ac_link"
21106 case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111   (eval "$ac_link") 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21115   { (case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_try") 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; }; then
21124   ol_cv_pthread_kthread=yes
21125 else
21126   echo "$as_me: program exited with status $ac_status" >&5
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130 ( exit $ac_status )
21131 ol_cv_pthread_kthread=no
21132 fi
21133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21134 fi
21135
21136
21137
21138                 # restore the LIBS
21139                 LIBS="$ol_LIBS"
21140
21141 fi
21142 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21143 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21144
21145         if test $ol_cv_pthread_kthread = yes ; then
21146                 ol_link_pthreads="-kthread"
21147                 ol_link_threads=posix
21148         fi
21149 fi
21150
21151                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21152 if test "$ol_link_threads" = no ; then
21153         # try -pthread
21154         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21155 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21156 if test "${ol_cv_pthread_pthread+set}" = set; then
21157   echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159
21160                 # save the flags
21161                 ol_LIBS="$LIBS"
21162                 LIBS="-pthread $LIBS"
21163
21164                 if test "$cross_compiling" = yes; then
21165   cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171
21172 /* pthread test headers */
21173 #include <pthread.h>
21174 #if HAVE_PTHREADS < 7
21175 #include <errno.h>
21176 #endif
21177 #ifndef NULL
21178 #define NULL (void*)0
21179 #endif
21180
21181 static void *task(p)
21182         void *p;
21183 {
21184         return (void *) (p == NULL);
21185 }
21186
21187 int
21188 main ()
21189 {
21190
21191         /* pthread test function */
21192 #ifndef PTHREAD_CREATE_DETACHED
21193 #define PTHREAD_CREATE_DETACHED 1
21194 #endif
21195         pthread_t t;
21196         int status;
21197         int detach = PTHREAD_CREATE_DETACHED;
21198
21199 #if HAVE_PTHREADS > 4
21200         /* Final pthreads */
21201         pthread_attr_t attr;
21202
21203         status = pthread_attr_init(&attr);
21204         if( status ) return status;
21205
21206 #if HAVE_PTHREADS < 7
21207         status = pthread_attr_setdetachstate(&attr, &detach);
21208         if( status < 0 ) status = errno;
21209 #else
21210         status = pthread_attr_setdetachstate(&attr, detach);
21211 #endif
21212         if( status ) return status;
21213         status = pthread_create( &t, &attr, task, NULL );
21214 #if HAVE_PTHREADS < 7
21215         if( status < 0 ) status = errno;
21216 #endif
21217         if( status ) return status;
21218 #else
21219         /* Draft 4 pthreads */
21220         status = pthread_create( &t, pthread_attr_default, task, NULL );
21221         if( status ) return errno;
21222
21223         /* give thread a chance to complete */
21224         /* it should remain joinable and hence detachable */
21225         sleep( 1 );
21226
21227         status = pthread_detach( &t );
21228         if( status ) return errno;
21229 #endif
21230
21231 #ifdef HAVE_LINUX_THREADS
21232         pthread_kill_other_threads_np();
21233 #endif
21234
21235         return 0;
21236
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245   *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248   (eval "$ac_link") 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } && {
21255          test -z "$ac_c_werror_flag" ||
21256          test ! -s conftest.err
21257        } && test -s conftest$ac_exeext &&
21258        $as_test_x conftest$ac_exeext; then
21259   ol_cv_pthread_pthread=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         ol_cv_pthread_pthread=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268       conftest$ac_exeext conftest.$ac_ext
21269 else
21270   cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h.  */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h.  */
21276
21277 /* pthread test headers */
21278 #include <pthread.h>
21279 #if HAVE_PTHREADS < 7
21280 #include <errno.h>
21281 #endif
21282 #ifndef NULL
21283 #define NULL (void*)0
21284 #endif
21285
21286 static void *task(p)
21287         void *p;
21288 {
21289         return (void *) (p == NULL);
21290 }
21291
21292
21293 int main(argc, argv)
21294         int argc;
21295         char **argv;
21296 {
21297
21298         /* pthread test function */
21299 #ifndef PTHREAD_CREATE_DETACHED
21300 #define PTHREAD_CREATE_DETACHED 1
21301 #endif
21302         pthread_t t;
21303         int status;
21304         int detach = PTHREAD_CREATE_DETACHED;
21305
21306 #if HAVE_PTHREADS > 4
21307         /* Final pthreads */
21308         pthread_attr_t attr;
21309
21310         status = pthread_attr_init(&attr);
21311         if( status ) return status;
21312
21313 #if HAVE_PTHREADS < 7
21314         status = pthread_attr_setdetachstate(&attr, &detach);
21315         if( status < 0 ) status = errno;
21316 #else
21317         status = pthread_attr_setdetachstate(&attr, detach);
21318 #endif
21319         if( status ) return status;
21320         status = pthread_create( &t, &attr, task, NULL );
21321 #if HAVE_PTHREADS < 7
21322         if( status < 0 ) status = errno;
21323 #endif
21324         if( status ) return status;
21325 #else
21326         /* Draft 4 pthreads */
21327         status = pthread_create( &t, pthread_attr_default, task, NULL );
21328         if( status ) return errno;
21329
21330         /* give thread a chance to complete */
21331         /* it should remain joinable and hence detachable */
21332         sleep( 1 );
21333
21334         status = pthread_detach( &t );
21335         if( status ) return errno;
21336 #endif
21337
21338 #ifdef HAVE_LINUX_THREADS
21339         pthread_kill_other_threads_np();
21340 #endif
21341
21342         return 0;
21343
21344 }
21345
21346 _ACEOF
21347 rm -f conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_link") 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21358   { (case "(($ac_try" in
21359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360   *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363   (eval "$ac_try") 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); }; }; then
21367   ol_cv_pthread_pthread=yes
21368 else
21369   echo "$as_me: program exited with status $ac_status" >&5
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 ( exit $ac_status )
21374 ol_cv_pthread_pthread=no
21375 fi
21376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21377 fi
21378
21379
21380
21381                 # restore the LIBS
21382                 LIBS="$ol_LIBS"
21383
21384 fi
21385 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21386 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21387
21388         if test $ol_cv_pthread_pthread = yes ; then
21389                 ol_link_pthreads="-pthread"
21390                 ol_link_threads=posix
21391         fi
21392 fi
21393
21394                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21395 if test "$ol_link_threads" = no ; then
21396         # try -pthreads
21397         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21398 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21399 if test "${ol_cv_pthread_pthreads+set}" = set; then
21400   echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402
21403                 # save the flags
21404                 ol_LIBS="$LIBS"
21405                 LIBS="-pthreads $LIBS"
21406
21407                 if test "$cross_compiling" = yes; then
21408   cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414
21415 /* pthread test headers */
21416 #include <pthread.h>
21417 #if HAVE_PTHREADS < 7
21418 #include <errno.h>
21419 #endif
21420 #ifndef NULL
21421 #define NULL (void*)0
21422 #endif
21423
21424 static void *task(p)
21425         void *p;
21426 {
21427         return (void *) (p == NULL);
21428 }
21429
21430 int
21431 main ()
21432 {
21433
21434         /* pthread test function */
21435 #ifndef PTHREAD_CREATE_DETACHED
21436 #define PTHREAD_CREATE_DETACHED 1
21437 #endif
21438         pthread_t t;
21439         int status;
21440         int detach = PTHREAD_CREATE_DETACHED;
21441
21442 #if HAVE_PTHREADS > 4
21443         /* Final pthreads */
21444         pthread_attr_t attr;
21445
21446         status = pthread_attr_init(&attr);
21447         if( status ) return status;
21448
21449 #if HAVE_PTHREADS < 7
21450         status = pthread_attr_setdetachstate(&attr, &detach);
21451         if( status < 0 ) status = errno;
21452 #else
21453         status = pthread_attr_setdetachstate(&attr, detach);
21454 #endif
21455         if( status ) return status;
21456         status = pthread_create( &t, &attr, task, NULL );
21457 #if HAVE_PTHREADS < 7
21458         if( status < 0 ) status = errno;
21459 #endif
21460         if( status ) return status;
21461 #else
21462         /* Draft 4 pthreads */
21463         status = pthread_create( &t, pthread_attr_default, task, NULL );
21464         if( status ) return errno;
21465
21466         /* give thread a chance to complete */
21467         /* it should remain joinable and hence detachable */
21468         sleep( 1 );
21469
21470         status = pthread_detach( &t );
21471         if( status ) return errno;
21472 #endif
21473
21474 #ifdef HAVE_LINUX_THREADS
21475         pthread_kill_other_threads_np();
21476 #endif
21477
21478         return 0;
21479
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (ac_try="$ac_link"
21486 case "(($ac_try" in
21487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488   *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491   (eval "$ac_link") 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } && {
21498          test -z "$ac_c_werror_flag" ||
21499          test ! -s conftest.err
21500        } && test -s conftest$ac_exeext &&
21501        $as_test_x conftest$ac_exeext; then
21502   ol_cv_pthread_pthreads=yes
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507         ol_cv_pthread_pthreads=no
21508 fi
21509
21510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21511       conftest$ac_exeext conftest.$ac_ext
21512 else
21513   cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519
21520 /* pthread test headers */
21521 #include <pthread.h>
21522 #if HAVE_PTHREADS < 7
21523 #include <errno.h>
21524 #endif
21525 #ifndef NULL
21526 #define NULL (void*)0
21527 #endif
21528
21529 static void *task(p)
21530         void *p;
21531 {
21532         return (void *) (p == NULL);
21533 }
21534
21535
21536 int main(argc, argv)
21537         int argc;
21538         char **argv;
21539 {
21540
21541         /* pthread test function */
21542 #ifndef PTHREAD_CREATE_DETACHED
21543 #define PTHREAD_CREATE_DETACHED 1
21544 #endif
21545         pthread_t t;
21546         int status;
21547         int detach = PTHREAD_CREATE_DETACHED;
21548
21549 #if HAVE_PTHREADS > 4
21550         /* Final pthreads */
21551         pthread_attr_t attr;
21552
21553         status = pthread_attr_init(&attr);
21554         if( status ) return status;
21555
21556 #if HAVE_PTHREADS < 7
21557         status = pthread_attr_setdetachstate(&attr, &detach);
21558         if( status < 0 ) status = errno;
21559 #else
21560         status = pthread_attr_setdetachstate(&attr, detach);
21561 #endif
21562         if( status ) return status;
21563         status = pthread_create( &t, &attr, task, NULL );
21564 #if HAVE_PTHREADS < 7
21565         if( status < 0 ) status = errno;
21566 #endif
21567         if( status ) return status;
21568 #else
21569         /* Draft 4 pthreads */
21570         status = pthread_create( &t, pthread_attr_default, task, NULL );
21571         if( status ) return errno;
21572
21573         /* give thread a chance to complete */
21574         /* it should remain joinable and hence detachable */
21575         sleep( 1 );
21576
21577         status = pthread_detach( &t );
21578         if( status ) return errno;
21579 #endif
21580
21581 #ifdef HAVE_LINUX_THREADS
21582         pthread_kill_other_threads_np();
21583 #endif
21584
21585         return 0;
21586
21587 }
21588
21589 _ACEOF
21590 rm -f conftest$ac_exeext
21591 if { (ac_try="$ac_link"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_link") 2>&5
21598   ac_status=$?
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21601   { (case "(($ac_try" in
21602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603   *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606   (eval "$ac_try") 2>&5
21607   ac_status=$?
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); }; }; then
21610   ol_cv_pthread_pthreads=yes
21611 else
21612   echo "$as_me: program exited with status $ac_status" >&5
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ( exit $ac_status )
21617 ol_cv_pthread_pthreads=no
21618 fi
21619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21620 fi
21621
21622
21623
21624                 # restore the LIBS
21625                 LIBS="$ol_LIBS"
21626
21627 fi
21628 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21629 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21630
21631         if test $ol_cv_pthread_pthreads = yes ; then
21632                 ol_link_pthreads="-pthreads"
21633                 ol_link_threads=posix
21634         fi
21635 fi
21636
21637                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21638 if test "$ol_link_threads" = no ; then
21639         # try -mthreads
21640         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21641 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21642 if test "${ol_cv_pthread_mthreads+set}" = set; then
21643   echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645
21646                 # save the flags
21647                 ol_LIBS="$LIBS"
21648                 LIBS="-mthreads $LIBS"
21649
21650                 if test "$cross_compiling" = yes; then
21651   cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h.  */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h.  */
21657
21658 /* pthread test headers */
21659 #include <pthread.h>
21660 #if HAVE_PTHREADS < 7
21661 #include <errno.h>
21662 #endif
21663 #ifndef NULL
21664 #define NULL (void*)0
21665 #endif
21666
21667 static void *task(p)
21668         void *p;
21669 {
21670         return (void *) (p == NULL);
21671 }
21672
21673 int
21674 main ()
21675 {
21676
21677         /* pthread test function */
21678 #ifndef PTHREAD_CREATE_DETACHED
21679 #define PTHREAD_CREATE_DETACHED 1
21680 #endif
21681         pthread_t t;
21682         int status;
21683         int detach = PTHREAD_CREATE_DETACHED;
21684
21685 #if HAVE_PTHREADS > 4
21686         /* Final pthreads */
21687         pthread_attr_t attr;
21688
21689         status = pthread_attr_init(&attr);
21690         if( status ) return status;
21691
21692 #if HAVE_PTHREADS < 7
21693         status = pthread_attr_setdetachstate(&attr, &detach);
21694         if( status < 0 ) status = errno;
21695 #else
21696         status = pthread_attr_setdetachstate(&attr, detach);
21697 #endif
21698         if( status ) return status;
21699         status = pthread_create( &t, &attr, task, NULL );
21700 #if HAVE_PTHREADS < 7
21701         if( status < 0 ) status = errno;
21702 #endif
21703         if( status ) return status;
21704 #else
21705         /* Draft 4 pthreads */
21706         status = pthread_create( &t, pthread_attr_default, task, NULL );
21707         if( status ) return errno;
21708
21709         /* give thread a chance to complete */
21710         /* it should remain joinable and hence detachable */
21711         sleep( 1 );
21712
21713         status = pthread_detach( &t );
21714         if( status ) return errno;
21715 #endif
21716
21717 #ifdef HAVE_LINUX_THREADS
21718         pthread_kill_other_threads_np();
21719 #endif
21720
21721         return 0;
21722
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (ac_try="$ac_link"
21729 case "(($ac_try" in
21730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731   *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734   (eval "$ac_link") 2>conftest.er1
21735   ac_status=$?
21736   grep -v '^ *+' conftest.er1 >conftest.err
21737   rm -f conftest.er1
21738   cat conftest.err >&5
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } && {
21741          test -z "$ac_c_werror_flag" ||
21742          test ! -s conftest.err
21743        } && test -s conftest$ac_exeext &&
21744        $as_test_x conftest$ac_exeext; then
21745   ol_cv_pthread_mthreads=yes
21746 else
21747   echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750         ol_cv_pthread_mthreads=no
21751 fi
21752
21753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21754       conftest$ac_exeext conftest.$ac_ext
21755 else
21756   cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762
21763 /* pthread test headers */
21764 #include <pthread.h>
21765 #if HAVE_PTHREADS < 7
21766 #include <errno.h>
21767 #endif
21768 #ifndef NULL
21769 #define NULL (void*)0
21770 #endif
21771
21772 static void *task(p)
21773         void *p;
21774 {
21775         return (void *) (p == NULL);
21776 }
21777
21778
21779 int main(argc, argv)
21780         int argc;
21781         char **argv;
21782 {
21783
21784         /* pthread test function */
21785 #ifndef PTHREAD_CREATE_DETACHED
21786 #define PTHREAD_CREATE_DETACHED 1
21787 #endif
21788         pthread_t t;
21789         int status;
21790         int detach = PTHREAD_CREATE_DETACHED;
21791
21792 #if HAVE_PTHREADS > 4
21793         /* Final pthreads */
21794         pthread_attr_t attr;
21795
21796         status = pthread_attr_init(&attr);
21797         if( status ) return status;
21798
21799 #if HAVE_PTHREADS < 7
21800         status = pthread_attr_setdetachstate(&attr, &detach);
21801         if( status < 0 ) status = errno;
21802 #else
21803         status = pthread_attr_setdetachstate(&attr, detach);
21804 #endif
21805         if( status ) return status;
21806         status = pthread_create( &t, &attr, task, NULL );
21807 #if HAVE_PTHREADS < 7
21808         if( status < 0 ) status = errno;
21809 #endif
21810         if( status ) return status;
21811 #else
21812         /* Draft 4 pthreads */
21813         status = pthread_create( &t, pthread_attr_default, task, NULL );
21814         if( status ) return errno;
21815
21816         /* give thread a chance to complete */
21817         /* it should remain joinable and hence detachable */
21818         sleep( 1 );
21819
21820         status = pthread_detach( &t );
21821         if( status ) return errno;
21822 #endif
21823
21824 #ifdef HAVE_LINUX_THREADS
21825         pthread_kill_other_threads_np();
21826 #endif
21827
21828         return 0;
21829
21830 }
21831
21832 _ACEOF
21833 rm -f conftest$ac_exeext
21834 if { (ac_try="$ac_link"
21835 case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_link") 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844   { (case "(($ac_try" in
21845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846   *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849   (eval "$ac_try") 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853   ol_cv_pthread_mthreads=yes
21854 else
21855   echo "$as_me: program exited with status $ac_status" >&5
21856 echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859 ( exit $ac_status )
21860 ol_cv_pthread_mthreads=no
21861 fi
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21863 fi
21864
21865
21866
21867                 # restore the LIBS
21868                 LIBS="$ol_LIBS"
21869
21870 fi
21871 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21872 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21873
21874         if test $ol_cv_pthread_mthreads = yes ; then
21875                 ol_link_pthreads="-mthreads"
21876                 ol_link_threads=posix
21877         fi
21878 fi
21879
21880                 # Pthread try link: -thread (ol_cv_pthread_thread)
21881 if test "$ol_link_threads" = no ; then
21882         # try -thread
21883         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21884 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21885 if test "${ol_cv_pthread_thread+set}" = set; then
21886   echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888
21889                 # save the flags
21890                 ol_LIBS="$LIBS"
21891                 LIBS="-thread $LIBS"
21892
21893                 if test "$cross_compiling" = yes; then
21894   cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h.  */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h.  */
21900
21901 /* pthread test headers */
21902 #include <pthread.h>
21903 #if HAVE_PTHREADS < 7
21904 #include <errno.h>
21905 #endif
21906 #ifndef NULL
21907 #define NULL (void*)0
21908 #endif
21909
21910 static void *task(p)
21911         void *p;
21912 {
21913         return (void *) (p == NULL);
21914 }
21915
21916 int
21917 main ()
21918 {
21919
21920         /* pthread test function */
21921 #ifndef PTHREAD_CREATE_DETACHED
21922 #define PTHREAD_CREATE_DETACHED 1
21923 #endif
21924         pthread_t t;
21925         int status;
21926         int detach = PTHREAD_CREATE_DETACHED;
21927
21928 #if HAVE_PTHREADS > 4
21929         /* Final pthreads */
21930         pthread_attr_t attr;
21931
21932         status = pthread_attr_init(&attr);
21933         if( status ) return status;
21934
21935 #if HAVE_PTHREADS < 7
21936         status = pthread_attr_setdetachstate(&attr, &detach);
21937         if( status < 0 ) status = errno;
21938 #else
21939         status = pthread_attr_setdetachstate(&attr, detach);
21940 #endif
21941         if( status ) return status;
21942         status = pthread_create( &t, &attr, task, NULL );
21943 #if HAVE_PTHREADS < 7
21944         if( status < 0 ) status = errno;
21945 #endif
21946         if( status ) return status;
21947 #else
21948         /* Draft 4 pthreads */
21949         status = pthread_create( &t, pthread_attr_default, task, NULL );
21950         if( status ) return errno;
21951
21952         /* give thread a chance to complete */
21953         /* it should remain joinable and hence detachable */
21954         sleep( 1 );
21955
21956         status = pthread_detach( &t );
21957         if( status ) return errno;
21958 #endif
21959
21960 #ifdef HAVE_LINUX_THREADS
21961         pthread_kill_other_threads_np();
21962 #endif
21963
21964         return 0;
21965
21966   ;
21967   return 0;
21968 }
21969 _ACEOF
21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974   *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977   (eval "$ac_link") 2>conftest.er1
21978   ac_status=$?
21979   grep -v '^ *+' conftest.er1 >conftest.err
21980   rm -f conftest.er1
21981   cat conftest.err >&5
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } && {
21984          test -z "$ac_c_werror_flag" ||
21985          test ! -s conftest.err
21986        } && test -s conftest$ac_exeext &&
21987        $as_test_x conftest$ac_exeext; then
21988   ol_cv_pthread_thread=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993         ol_cv_pthread_thread=no
21994 fi
21995
21996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21997       conftest$ac_exeext conftest.$ac_ext
21998 else
21999   cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005
22006 /* pthread test headers */
22007 #include <pthread.h>
22008 #if HAVE_PTHREADS < 7
22009 #include <errno.h>
22010 #endif
22011 #ifndef NULL
22012 #define NULL (void*)0
22013 #endif
22014
22015 static void *task(p)
22016         void *p;
22017 {
22018         return (void *) (p == NULL);
22019 }
22020
22021
22022 int main(argc, argv)
22023         int argc;
22024         char **argv;
22025 {
22026
22027         /* pthread test function */
22028 #ifndef PTHREAD_CREATE_DETACHED
22029 #define PTHREAD_CREATE_DETACHED 1
22030 #endif
22031         pthread_t t;
22032         int status;
22033         int detach = PTHREAD_CREATE_DETACHED;
22034
22035 #if HAVE_PTHREADS > 4
22036         /* Final pthreads */
22037         pthread_attr_t attr;
22038
22039         status = pthread_attr_init(&attr);
22040         if( status ) return status;
22041
22042 #if HAVE_PTHREADS < 7
22043         status = pthread_attr_setdetachstate(&attr, &detach);
22044         if( status < 0 ) status = errno;
22045 #else
22046         status = pthread_attr_setdetachstate(&attr, detach);
22047 #endif
22048         if( status ) return status;
22049         status = pthread_create( &t, &attr, task, NULL );
22050 #if HAVE_PTHREADS < 7
22051         if( status < 0 ) status = errno;
22052 #endif
22053         if( status ) return status;
22054 #else
22055         /* Draft 4 pthreads */
22056         status = pthread_create( &t, pthread_attr_default, task, NULL );
22057         if( status ) return errno;
22058
22059         /* give thread a chance to complete */
22060         /* it should remain joinable and hence detachable */
22061         sleep( 1 );
22062
22063         status = pthread_detach( &t );
22064         if( status ) return errno;
22065 #endif
22066
22067 #ifdef HAVE_LINUX_THREADS
22068         pthread_kill_other_threads_np();
22069 #endif
22070
22071         return 0;
22072
22073 }
22074
22075 _ACEOF
22076 rm -f conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080   *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083   (eval "$ac_link") 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22087   { (case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_try") 2>&5
22093   ac_status=$?
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); }; }; then
22096   ol_cv_pthread_thread=yes
22097 else
22098   echo "$as_me: program exited with status $ac_status" >&5
22099 echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102 ( exit $ac_status )
22103 ol_cv_pthread_thread=no
22104 fi
22105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22106 fi
22107
22108
22109
22110                 # restore the LIBS
22111                 LIBS="$ol_LIBS"
22112
22113 fi
22114 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22115 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22116
22117         if test $ol_cv_pthread_thread = yes ; then
22118                 ol_link_pthreads="-thread"
22119                 ol_link_threads=posix
22120         fi
22121 fi
22122
22123
22124                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22125 if test "$ol_link_threads" = no ; then
22126         # try -lpthread -lmach -lexc -lc_r
22127         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22128 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22129 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22130   echo $ECHO_N "(cached) $ECHO_C" >&6
22131 else
22132
22133                 # save the flags
22134                 ol_LIBS="$LIBS"
22135                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22136
22137                 if test "$cross_compiling" = yes; then
22138   cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144
22145 /* pthread test headers */
22146 #include <pthread.h>
22147 #if HAVE_PTHREADS < 7
22148 #include <errno.h>
22149 #endif
22150 #ifndef NULL
22151 #define NULL (void*)0
22152 #endif
22153
22154 static void *task(p)
22155         void *p;
22156 {
22157         return (void *) (p == NULL);
22158 }
22159
22160 int
22161 main ()
22162 {
22163
22164         /* pthread test function */
22165 #ifndef PTHREAD_CREATE_DETACHED
22166 #define PTHREAD_CREATE_DETACHED 1
22167 #endif
22168         pthread_t t;
22169         int status;
22170         int detach = PTHREAD_CREATE_DETACHED;
22171
22172 #if HAVE_PTHREADS > 4
22173         /* Final pthreads */
22174         pthread_attr_t attr;
22175
22176         status = pthread_attr_init(&attr);
22177         if( status ) return status;
22178
22179 #if HAVE_PTHREADS < 7
22180         status = pthread_attr_setdetachstate(&attr, &detach);
22181         if( status < 0 ) status = errno;
22182 #else
22183         status = pthread_attr_setdetachstate(&attr, detach);
22184 #endif
22185         if( status ) return status;
22186         status = pthread_create( &t, &attr, task, NULL );
22187 #if HAVE_PTHREADS < 7
22188         if( status < 0 ) status = errno;
22189 #endif
22190         if( status ) return status;
22191 #else
22192         /* Draft 4 pthreads */
22193         status = pthread_create( &t, pthread_attr_default, task, NULL );
22194         if( status ) return errno;
22195
22196         /* give thread a chance to complete */
22197         /* it should remain joinable and hence detachable */
22198         sleep( 1 );
22199
22200         status = pthread_detach( &t );
22201         if( status ) return errno;
22202 #endif
22203
22204 #ifdef HAVE_LINUX_THREADS
22205         pthread_kill_other_threads_np();
22206 #endif
22207
22208         return 0;
22209
22210   ;
22211   return 0;
22212 }
22213 _ACEOF
22214 rm -f conftest.$ac_objext conftest$ac_exeext
22215 if { (ac_try="$ac_link"
22216 case "(($ac_try" in
22217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218   *) ac_try_echo=$ac_try;;
22219 esac
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221   (eval "$ac_link") 2>conftest.er1
22222   ac_status=$?
22223   grep -v '^ *+' conftest.er1 >conftest.err
22224   rm -f conftest.er1
22225   cat conftest.err >&5
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } && {
22228          test -z "$ac_c_werror_flag" ||
22229          test ! -s conftest.err
22230        } && test -s conftest$ac_exeext &&
22231        $as_test_x conftest$ac_exeext; then
22232   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22233 else
22234   echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22236
22237         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22238 fi
22239
22240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22241       conftest$ac_exeext conftest.$ac_ext
22242 else
22243   cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249
22250 /* pthread test headers */
22251 #include <pthread.h>
22252 #if HAVE_PTHREADS < 7
22253 #include <errno.h>
22254 #endif
22255 #ifndef NULL
22256 #define NULL (void*)0
22257 #endif
22258
22259 static void *task(p)
22260         void *p;
22261 {
22262         return (void *) (p == NULL);
22263 }
22264
22265
22266 int main(argc, argv)
22267         int argc;
22268         char **argv;
22269 {
22270
22271         /* pthread test function */
22272 #ifndef PTHREAD_CREATE_DETACHED
22273 #define PTHREAD_CREATE_DETACHED 1
22274 #endif
22275         pthread_t t;
22276         int status;
22277         int detach = PTHREAD_CREATE_DETACHED;
22278
22279 #if HAVE_PTHREADS > 4
22280         /* Final pthreads */
22281         pthread_attr_t attr;
22282
22283         status = pthread_attr_init(&attr);
22284         if( status ) return status;
22285
22286 #if HAVE_PTHREADS < 7
22287         status = pthread_attr_setdetachstate(&attr, &detach);
22288         if( status < 0 ) status = errno;
22289 #else
22290         status = pthread_attr_setdetachstate(&attr, detach);
22291 #endif
22292         if( status ) return status;
22293         status = pthread_create( &t, &attr, task, NULL );
22294 #if HAVE_PTHREADS < 7
22295         if( status < 0 ) status = errno;
22296 #endif
22297         if( status ) return status;
22298 #else
22299         /* Draft 4 pthreads */
22300         status = pthread_create( &t, pthread_attr_default, task, NULL );
22301         if( status ) return errno;
22302
22303         /* give thread a chance to complete */
22304         /* it should remain joinable and hence detachable */
22305         sleep( 1 );
22306
22307         status = pthread_detach( &t );
22308         if( status ) return errno;
22309 #endif
22310
22311 #ifdef HAVE_LINUX_THREADS
22312         pthread_kill_other_threads_np();
22313 #endif
22314
22315         return 0;
22316
22317 }
22318
22319 _ACEOF
22320 rm -f conftest$ac_exeext
22321 if { (ac_try="$ac_link"
22322 case "(($ac_try" in
22323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324   *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327   (eval "$ac_link") 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22331   { (case "(($ac_try" in
22332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333   *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336   (eval "$ac_try") 2>&5
22337   ac_status=$?
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); }; }; then
22340   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22341 else
22342   echo "$as_me: program exited with status $ac_status" >&5
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22345
22346 ( exit $ac_status )
22347 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22348 fi
22349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22350 fi
22351
22352
22353
22354                 # restore the LIBS
22355                 LIBS="$ol_LIBS"
22356
22357 fi
22358 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22359 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22360
22361         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22362                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22363                 ol_link_threads=posix
22364         fi
22365 fi
22366
22367                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22368 if test "$ol_link_threads" = no ; then
22369         # try -lpthread -lmach -lexc
22370         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22371 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22372 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22373   echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375
22376                 # save the flags
22377                 ol_LIBS="$LIBS"
22378                 LIBS="-lpthread -lmach -lexc $LIBS"
22379
22380                 if test "$cross_compiling" = yes; then
22381   cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h.  */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h.  */
22387
22388 /* pthread test headers */
22389 #include <pthread.h>
22390 #if HAVE_PTHREADS < 7
22391 #include <errno.h>
22392 #endif
22393 #ifndef NULL
22394 #define NULL (void*)0
22395 #endif
22396
22397 static void *task(p)
22398         void *p;
22399 {
22400         return (void *) (p == NULL);
22401 }
22402
22403 int
22404 main ()
22405 {
22406
22407         /* pthread test function */
22408 #ifndef PTHREAD_CREATE_DETACHED
22409 #define PTHREAD_CREATE_DETACHED 1
22410 #endif
22411         pthread_t t;
22412         int status;
22413         int detach = PTHREAD_CREATE_DETACHED;
22414
22415 #if HAVE_PTHREADS > 4
22416         /* Final pthreads */
22417         pthread_attr_t attr;
22418
22419         status = pthread_attr_init(&attr);
22420         if( status ) return status;
22421
22422 #if HAVE_PTHREADS < 7
22423         status = pthread_attr_setdetachstate(&attr, &detach);
22424         if( status < 0 ) status = errno;
22425 #else
22426         status = pthread_attr_setdetachstate(&attr, detach);
22427 #endif
22428         if( status ) return status;
22429         status = pthread_create( &t, &attr, task, NULL );
22430 #if HAVE_PTHREADS < 7
22431         if( status < 0 ) status = errno;
22432 #endif
22433         if( status ) return status;
22434 #else
22435         /* Draft 4 pthreads */
22436         status = pthread_create( &t, pthread_attr_default, task, NULL );
22437         if( status ) return errno;
22438
22439         /* give thread a chance to complete */
22440         /* it should remain joinable and hence detachable */
22441         sleep( 1 );
22442
22443         status = pthread_detach( &t );
22444         if( status ) return errno;
22445 #endif
22446
22447 #ifdef HAVE_LINUX_THREADS
22448         pthread_kill_other_threads_np();
22449 #endif
22450
22451         return 0;
22452
22453   ;
22454   return 0;
22455 }
22456 _ACEOF
22457 rm -f conftest.$ac_objext conftest$ac_exeext
22458 if { (ac_try="$ac_link"
22459 case "(($ac_try" in
22460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461   *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464   (eval "$ac_link") 2>conftest.er1
22465   ac_status=$?
22466   grep -v '^ *+' conftest.er1 >conftest.err
22467   rm -f conftest.er1
22468   cat conftest.err >&5
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } && {
22471          test -z "$ac_c_werror_flag" ||
22472          test ! -s conftest.err
22473        } && test -s conftest$ac_exeext &&
22474        $as_test_x conftest$ac_exeext; then
22475   ol_cv_pthread_lpthread_lmach_lexc=yes
22476 else
22477   echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480         ol_cv_pthread_lpthread_lmach_lexc=no
22481 fi
22482
22483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22484       conftest$ac_exeext conftest.$ac_ext
22485 else
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492
22493 /* pthread test headers */
22494 #include <pthread.h>
22495 #if HAVE_PTHREADS < 7
22496 #include <errno.h>
22497 #endif
22498 #ifndef NULL
22499 #define NULL (void*)0
22500 #endif
22501
22502 static void *task(p)
22503         void *p;
22504 {
22505         return (void *) (p == NULL);
22506 }
22507
22508
22509 int main(argc, argv)
22510         int argc;
22511         char **argv;
22512 {
22513
22514         /* pthread test function */
22515 #ifndef PTHREAD_CREATE_DETACHED
22516 #define PTHREAD_CREATE_DETACHED 1
22517 #endif
22518         pthread_t t;
22519         int status;
22520         int detach = PTHREAD_CREATE_DETACHED;
22521
22522 #if HAVE_PTHREADS > 4
22523         /* Final pthreads */
22524         pthread_attr_t attr;
22525
22526         status = pthread_attr_init(&attr);
22527         if( status ) return status;
22528
22529 #if HAVE_PTHREADS < 7
22530         status = pthread_attr_setdetachstate(&attr, &detach);
22531         if( status < 0 ) status = errno;
22532 #else
22533         status = pthread_attr_setdetachstate(&attr, detach);
22534 #endif
22535         if( status ) return status;
22536         status = pthread_create( &t, &attr, task, NULL );
22537 #if HAVE_PTHREADS < 7
22538         if( status < 0 ) status = errno;
22539 #endif
22540         if( status ) return status;
22541 #else
22542         /* Draft 4 pthreads */
22543         status = pthread_create( &t, pthread_attr_default, task, NULL );
22544         if( status ) return errno;
22545
22546         /* give thread a chance to complete */
22547         /* it should remain joinable and hence detachable */
22548         sleep( 1 );
22549
22550         status = pthread_detach( &t );
22551         if( status ) return errno;
22552 #endif
22553
22554 #ifdef HAVE_LINUX_THREADS
22555         pthread_kill_other_threads_np();
22556 #endif
22557
22558         return 0;
22559
22560 }
22561
22562 _ACEOF
22563 rm -f conftest$ac_exeext
22564 if { (ac_try="$ac_link"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570   (eval "$ac_link") 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22574   { (case "(($ac_try" in
22575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576   *) ac_try_echo=$ac_try;;
22577 esac
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579   (eval "$ac_try") 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; }; then
22583   ol_cv_pthread_lpthread_lmach_lexc=yes
22584 else
22585   echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ( exit $ac_status )
22590 ol_cv_pthread_lpthread_lmach_lexc=no
22591 fi
22592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22593 fi
22594
22595
22596
22597                 # restore the LIBS
22598                 LIBS="$ol_LIBS"
22599
22600 fi
22601 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22602 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22603
22604         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22605                 ol_link_pthreads="-lpthread -lmach -lexc"
22606                 ol_link_threads=posix
22607         fi
22608 fi
22609
22610
22611                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22612 if test "$ol_link_threads" = no ; then
22613         # try -lpthread -Wl,-woff,85
22614         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22615 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22616 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22617   echo $ECHO_N "(cached) $ECHO_C" >&6
22618 else
22619
22620                 # save the flags
22621                 ol_LIBS="$LIBS"
22622                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22623
22624                 if test "$cross_compiling" = yes; then
22625   cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h.  */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h.  */
22631
22632 /* pthread test headers */
22633 #include <pthread.h>
22634 #if HAVE_PTHREADS < 7
22635 #include <errno.h>
22636 #endif
22637 #ifndef NULL
22638 #define NULL (void*)0
22639 #endif
22640
22641 static void *task(p)
22642         void *p;
22643 {
22644         return (void *) (p == NULL);
22645 }
22646
22647 int
22648 main ()
22649 {
22650
22651         /* pthread test function */
22652 #ifndef PTHREAD_CREATE_DETACHED
22653 #define PTHREAD_CREATE_DETACHED 1
22654 #endif
22655         pthread_t t;
22656         int status;
22657         int detach = PTHREAD_CREATE_DETACHED;
22658
22659 #if HAVE_PTHREADS > 4
22660         /* Final pthreads */
22661         pthread_attr_t attr;
22662
22663         status = pthread_attr_init(&attr);
22664         if( status ) return status;
22665
22666 #if HAVE_PTHREADS < 7
22667         status = pthread_attr_setdetachstate(&attr, &detach);
22668         if( status < 0 ) status = errno;
22669 #else
22670         status = pthread_attr_setdetachstate(&attr, detach);
22671 #endif
22672         if( status ) return status;
22673         status = pthread_create( &t, &attr, task, NULL );
22674 #if HAVE_PTHREADS < 7
22675         if( status < 0 ) status = errno;
22676 #endif
22677         if( status ) return status;
22678 #else
22679         /* Draft 4 pthreads */
22680         status = pthread_create( &t, pthread_attr_default, task, NULL );
22681         if( status ) return errno;
22682
22683         /* give thread a chance to complete */
22684         /* it should remain joinable and hence detachable */
22685         sleep( 1 );
22686
22687         status = pthread_detach( &t );
22688         if( status ) return errno;
22689 #endif
22690
22691 #ifdef HAVE_LINUX_THREADS
22692         pthread_kill_other_threads_np();
22693 #endif
22694
22695         return 0;
22696
22697   ;
22698   return 0;
22699 }
22700 _ACEOF
22701 rm -f conftest.$ac_objext conftest$ac_exeext
22702 if { (ac_try="$ac_link"
22703 case "(($ac_try" in
22704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705   *) ac_try_echo=$ac_try;;
22706 esac
22707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708   (eval "$ac_link") 2>conftest.er1
22709   ac_status=$?
22710   grep -v '^ *+' conftest.er1 >conftest.err
22711   rm -f conftest.er1
22712   cat conftest.err >&5
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); } && {
22715          test -z "$ac_c_werror_flag" ||
22716          test ! -s conftest.err
22717        } && test -s conftest$ac_exeext &&
22718        $as_test_x conftest$ac_exeext; then
22719   ol_cv_pthread_lib_lpthread_woff=yes
22720 else
22721   echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22723
22724         ol_cv_pthread_lib_lpthread_woff=no
22725 fi
22726
22727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22728       conftest$ac_exeext conftest.$ac_ext
22729 else
22730   cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h.  */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h.  */
22736
22737 /* pthread test headers */
22738 #include <pthread.h>
22739 #if HAVE_PTHREADS < 7
22740 #include <errno.h>
22741 #endif
22742 #ifndef NULL
22743 #define NULL (void*)0
22744 #endif
22745
22746 static void *task(p)
22747         void *p;
22748 {
22749         return (void *) (p == NULL);
22750 }
22751
22752
22753 int main(argc, argv)
22754         int argc;
22755         char **argv;
22756 {
22757
22758         /* pthread test function */
22759 #ifndef PTHREAD_CREATE_DETACHED
22760 #define PTHREAD_CREATE_DETACHED 1
22761 #endif
22762         pthread_t t;
22763         int status;
22764         int detach = PTHREAD_CREATE_DETACHED;
22765
22766 #if HAVE_PTHREADS > 4
22767         /* Final pthreads */
22768         pthread_attr_t attr;
22769
22770         status = pthread_attr_init(&attr);
22771         if( status ) return status;
22772
22773 #if HAVE_PTHREADS < 7
22774         status = pthread_attr_setdetachstate(&attr, &detach);
22775         if( status < 0 ) status = errno;
22776 #else
22777         status = pthread_attr_setdetachstate(&attr, detach);
22778 #endif
22779         if( status ) return status;
22780         status = pthread_create( &t, &attr, task, NULL );
22781 #if HAVE_PTHREADS < 7
22782         if( status < 0 ) status = errno;
22783 #endif
22784         if( status ) return status;
22785 #else
22786         /* Draft 4 pthreads */
22787         status = pthread_create( &t, pthread_attr_default, task, NULL );
22788         if( status ) return errno;
22789
22790         /* give thread a chance to complete */
22791         /* it should remain joinable and hence detachable */
22792         sleep( 1 );
22793
22794         status = pthread_detach( &t );
22795         if( status ) return errno;
22796 #endif
22797
22798 #ifdef HAVE_LINUX_THREADS
22799         pthread_kill_other_threads_np();
22800 #endif
22801
22802         return 0;
22803
22804 }
22805
22806 _ACEOF
22807 rm -f conftest$ac_exeext
22808 if { (ac_try="$ac_link"
22809 case "(($ac_try" in
22810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811   *) ac_try_echo=$ac_try;;
22812 esac
22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814   (eval "$ac_link") 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22818   { (case "(($ac_try" in
22819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820   *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823   (eval "$ac_try") 2>&5
22824   ac_status=$?
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); }; }; then
22827   ol_cv_pthread_lib_lpthread_woff=yes
22828 else
22829   echo "$as_me: program exited with status $ac_status" >&5
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 ( exit $ac_status )
22834 ol_cv_pthread_lib_lpthread_woff=no
22835 fi
22836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22837 fi
22838
22839
22840
22841                 # restore the LIBS
22842                 LIBS="$ol_LIBS"
22843
22844 fi
22845 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22846 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22847
22848         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22849                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22850                 ol_link_threads=posix
22851         fi
22852 fi
22853
22854
22855                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22856 if test "$ol_link_threads" = no ; then
22857         # try -lpthread
22858         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22859 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22860 if test "${ol_cv_pthread_lpthread+set}" = set; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863
22864                 # save the flags
22865                 ol_LIBS="$LIBS"
22866                 LIBS="-lpthread $LIBS"
22867
22868                 if test "$cross_compiling" = yes; then
22869   cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875
22876 /* pthread test headers */
22877 #include <pthread.h>
22878 #if HAVE_PTHREADS < 7
22879 #include <errno.h>
22880 #endif
22881 #ifndef NULL
22882 #define NULL (void*)0
22883 #endif
22884
22885 static void *task(p)
22886         void *p;
22887 {
22888         return (void *) (p == NULL);
22889 }
22890
22891 int
22892 main ()
22893 {
22894
22895         /* pthread test function */
22896 #ifndef PTHREAD_CREATE_DETACHED
22897 #define PTHREAD_CREATE_DETACHED 1
22898 #endif
22899         pthread_t t;
22900         int status;
22901         int detach = PTHREAD_CREATE_DETACHED;
22902
22903 #if HAVE_PTHREADS > 4
22904         /* Final pthreads */
22905         pthread_attr_t attr;
22906
22907         status = pthread_attr_init(&attr);
22908         if( status ) return status;
22909
22910 #if HAVE_PTHREADS < 7
22911         status = pthread_attr_setdetachstate(&attr, &detach);
22912         if( status < 0 ) status = errno;
22913 #else
22914         status = pthread_attr_setdetachstate(&attr, detach);
22915 #endif
22916         if( status ) return status;
22917         status = pthread_create( &t, &attr, task, NULL );
22918 #if HAVE_PTHREADS < 7
22919         if( status < 0 ) status = errno;
22920 #endif
22921         if( status ) return status;
22922 #else
22923         /* Draft 4 pthreads */
22924         status = pthread_create( &t, pthread_attr_default, task, NULL );
22925         if( status ) return errno;
22926
22927         /* give thread a chance to complete */
22928         /* it should remain joinable and hence detachable */
22929         sleep( 1 );
22930
22931         status = pthread_detach( &t );
22932         if( status ) return errno;
22933 #endif
22934
22935 #ifdef HAVE_LINUX_THREADS
22936         pthread_kill_other_threads_np();
22937 #endif
22938
22939         return 0;
22940
22941   ;
22942   return 0;
22943 }
22944 _ACEOF
22945 rm -f conftest.$ac_objext conftest$ac_exeext
22946 if { (ac_try="$ac_link"
22947 case "(($ac_try" in
22948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949   *) ac_try_echo=$ac_try;;
22950 esac
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952   (eval "$ac_link") 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } && {
22959          test -z "$ac_c_werror_flag" ||
22960          test ! -s conftest.err
22961        } && test -s conftest$ac_exeext &&
22962        $as_test_x conftest$ac_exeext; then
22963   ol_cv_pthread_lpthread=yes
22964 else
22965   echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968         ol_cv_pthread_lpthread=no
22969 fi
22970
22971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22972       conftest$ac_exeext conftest.$ac_ext
22973 else
22974   cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980
22981 /* pthread test headers */
22982 #include <pthread.h>
22983 #if HAVE_PTHREADS < 7
22984 #include <errno.h>
22985 #endif
22986 #ifndef NULL
22987 #define NULL (void*)0
22988 #endif
22989
22990 static void *task(p)
22991         void *p;
22992 {
22993         return (void *) (p == NULL);
22994 }
22995
22996
22997 int main(argc, argv)
22998         int argc;
22999         char **argv;
23000 {
23001
23002         /* pthread test function */
23003 #ifndef PTHREAD_CREATE_DETACHED
23004 #define PTHREAD_CREATE_DETACHED 1
23005 #endif
23006         pthread_t t;
23007         int status;
23008         int detach = PTHREAD_CREATE_DETACHED;
23009
23010 #if HAVE_PTHREADS > 4
23011         /* Final pthreads */
23012         pthread_attr_t attr;
23013
23014         status = pthread_attr_init(&attr);
23015         if( status ) return status;
23016
23017 #if HAVE_PTHREADS < 7
23018         status = pthread_attr_setdetachstate(&attr, &detach);
23019         if( status < 0 ) status = errno;
23020 #else
23021         status = pthread_attr_setdetachstate(&attr, detach);
23022 #endif
23023         if( status ) return status;
23024         status = pthread_create( &t, &attr, task, NULL );
23025 #if HAVE_PTHREADS < 7
23026         if( status < 0 ) status = errno;
23027 #endif
23028         if( status ) return status;
23029 #else
23030         /* Draft 4 pthreads */
23031         status = pthread_create( &t, pthread_attr_default, task, NULL );
23032         if( status ) return errno;
23033
23034         /* give thread a chance to complete */
23035         /* it should remain joinable and hence detachable */
23036         sleep( 1 );
23037
23038         status = pthread_detach( &t );
23039         if( status ) return errno;
23040 #endif
23041
23042 #ifdef HAVE_LINUX_THREADS
23043         pthread_kill_other_threads_np();
23044 #endif
23045
23046         return 0;
23047
23048 }
23049
23050 _ACEOF
23051 rm -f conftest$ac_exeext
23052 if { (ac_try="$ac_link"
23053 case "(($ac_try" in
23054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055   *) ac_try_echo=$ac_try;;
23056 esac
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058   (eval "$ac_link") 2>&5
23059   ac_status=$?
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23062   { (case "(($ac_try" in
23063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064   *) ac_try_echo=$ac_try;;
23065 esac
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067   (eval "$ac_try") 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); }; }; then
23071   ol_cv_pthread_lpthread=yes
23072 else
23073   echo "$as_me: program exited with status $ac_status" >&5
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077 ( exit $ac_status )
23078 ol_cv_pthread_lpthread=no
23079 fi
23080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23081 fi
23082
23083
23084
23085                 # restore the LIBS
23086                 LIBS="$ol_LIBS"
23087
23088 fi
23089 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23090 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23091
23092         if test $ol_cv_pthread_lpthread = yes ; then
23093                 ol_link_pthreads="-lpthread"
23094                 ol_link_threads=posix
23095         fi
23096 fi
23097
23098                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23099 if test "$ol_link_threads" = no ; then
23100         # try -lc_r
23101         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23102 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23103 if test "${ol_cv_pthread_lc_r+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106
23107                 # save the flags
23108                 ol_LIBS="$LIBS"
23109                 LIBS="-lc_r $LIBS"
23110
23111                 if test "$cross_compiling" = yes; then
23112   cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118
23119 /* pthread test headers */
23120 #include <pthread.h>
23121 #if HAVE_PTHREADS < 7
23122 #include <errno.h>
23123 #endif
23124 #ifndef NULL
23125 #define NULL (void*)0
23126 #endif
23127
23128 static void *task(p)
23129         void *p;
23130 {
23131         return (void *) (p == NULL);
23132 }
23133
23134 int
23135 main ()
23136 {
23137
23138         /* pthread test function */
23139 #ifndef PTHREAD_CREATE_DETACHED
23140 #define PTHREAD_CREATE_DETACHED 1
23141 #endif
23142         pthread_t t;
23143         int status;
23144         int detach = PTHREAD_CREATE_DETACHED;
23145
23146 #if HAVE_PTHREADS > 4
23147         /* Final pthreads */
23148         pthread_attr_t attr;
23149
23150         status = pthread_attr_init(&attr);
23151         if( status ) return status;
23152
23153 #if HAVE_PTHREADS < 7
23154         status = pthread_attr_setdetachstate(&attr, &detach);
23155         if( status < 0 ) status = errno;
23156 #else
23157         status = pthread_attr_setdetachstate(&attr, detach);
23158 #endif
23159         if( status ) return status;
23160         status = pthread_create( &t, &attr, task, NULL );
23161 #if HAVE_PTHREADS < 7
23162         if( status < 0 ) status = errno;
23163 #endif
23164         if( status ) return status;
23165 #else
23166         /* Draft 4 pthreads */
23167         status = pthread_create( &t, pthread_attr_default, task, NULL );
23168         if( status ) return errno;
23169
23170         /* give thread a chance to complete */
23171         /* it should remain joinable and hence detachable */
23172         sleep( 1 );
23173
23174         status = pthread_detach( &t );
23175         if( status ) return errno;
23176 #endif
23177
23178 #ifdef HAVE_LINUX_THREADS
23179         pthread_kill_other_threads_np();
23180 #endif
23181
23182         return 0;
23183
23184   ;
23185   return 0;
23186 }
23187 _ACEOF
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (ac_try="$ac_link"
23190 case "(($ac_try" in
23191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192   *) ac_try_echo=$ac_try;;
23193 esac
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195   (eval "$ac_link") 2>conftest.er1
23196   ac_status=$?
23197   grep -v '^ *+' conftest.er1 >conftest.err
23198   rm -f conftest.er1
23199   cat conftest.err >&5
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); } && {
23202          test -z "$ac_c_werror_flag" ||
23203          test ! -s conftest.err
23204        } && test -s conftest$ac_exeext &&
23205        $as_test_x conftest$ac_exeext; then
23206   ol_cv_pthread_lc_r=yes
23207 else
23208   echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211         ol_cv_pthread_lc_r=no
23212 fi
23213
23214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23215       conftest$ac_exeext conftest.$ac_ext
23216 else
23217   cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223
23224 /* pthread test headers */
23225 #include <pthread.h>
23226 #if HAVE_PTHREADS < 7
23227 #include <errno.h>
23228 #endif
23229 #ifndef NULL
23230 #define NULL (void*)0
23231 #endif
23232
23233 static void *task(p)
23234         void *p;
23235 {
23236         return (void *) (p == NULL);
23237 }
23238
23239
23240 int main(argc, argv)
23241         int argc;
23242         char **argv;
23243 {
23244
23245         /* pthread test function */
23246 #ifndef PTHREAD_CREATE_DETACHED
23247 #define PTHREAD_CREATE_DETACHED 1
23248 #endif
23249         pthread_t t;
23250         int status;
23251         int detach = PTHREAD_CREATE_DETACHED;
23252
23253 #if HAVE_PTHREADS > 4
23254         /* Final pthreads */
23255         pthread_attr_t attr;
23256
23257         status = pthread_attr_init(&attr);
23258         if( status ) return status;
23259
23260 #if HAVE_PTHREADS < 7
23261         status = pthread_attr_setdetachstate(&attr, &detach);
23262         if( status < 0 ) status = errno;
23263 #else
23264         status = pthread_attr_setdetachstate(&attr, detach);
23265 #endif
23266         if( status ) return status;
23267         status = pthread_create( &t, &attr, task, NULL );
23268 #if HAVE_PTHREADS < 7
23269         if( status < 0 ) status = errno;
23270 #endif
23271         if( status ) return status;
23272 #else
23273         /* Draft 4 pthreads */
23274         status = pthread_create( &t, pthread_attr_default, task, NULL );
23275         if( status ) return errno;
23276
23277         /* give thread a chance to complete */
23278         /* it should remain joinable and hence detachable */
23279         sleep( 1 );
23280
23281         status = pthread_detach( &t );
23282         if( status ) return errno;
23283 #endif
23284
23285 #ifdef HAVE_LINUX_THREADS
23286         pthread_kill_other_threads_np();
23287 #endif
23288
23289         return 0;
23290
23291 }
23292
23293 _ACEOF
23294 rm -f conftest$ac_exeext
23295 if { (ac_try="$ac_link"
23296 case "(($ac_try" in
23297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298   *) ac_try_echo=$ac_try;;
23299 esac
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301   (eval "$ac_link") 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23305   { (case "(($ac_try" in
23306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307   *) ac_try_echo=$ac_try;;
23308 esac
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310   (eval "$ac_try") 2>&5
23311   ac_status=$?
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); }; }; then
23314   ol_cv_pthread_lc_r=yes
23315 else
23316   echo "$as_me: program exited with status $ac_status" >&5
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320 ( exit $ac_status )
23321 ol_cv_pthread_lc_r=no
23322 fi
23323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23324 fi
23325
23326
23327
23328                 # restore the LIBS
23329                 LIBS="$ol_LIBS"
23330
23331 fi
23332 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23333 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23334
23335         if test $ol_cv_pthread_lc_r = yes ; then
23336                 ol_link_pthreads="-lc_r"
23337                 ol_link_threads=posix
23338         fi
23339 fi
23340
23341
23342                 # Pthread try link: -threads (ol_cv_pthread_threads)
23343 if test "$ol_link_threads" = no ; then
23344         # try -threads
23345         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23346 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23347 if test "${ol_cv_pthread_threads+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350
23351                 # save the flags
23352                 ol_LIBS="$LIBS"
23353                 LIBS="-threads $LIBS"
23354
23355                 if test "$cross_compiling" = yes; then
23356   cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h.  */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h.  */
23362
23363 /* pthread test headers */
23364 #include <pthread.h>
23365 #if HAVE_PTHREADS < 7
23366 #include <errno.h>
23367 #endif
23368 #ifndef NULL
23369 #define NULL (void*)0
23370 #endif
23371
23372 static void *task(p)
23373         void *p;
23374 {
23375         return (void *) (p == NULL);
23376 }
23377
23378 int
23379 main ()
23380 {
23381
23382         /* pthread test function */
23383 #ifndef PTHREAD_CREATE_DETACHED
23384 #define PTHREAD_CREATE_DETACHED 1
23385 #endif
23386         pthread_t t;
23387         int status;
23388         int detach = PTHREAD_CREATE_DETACHED;
23389
23390 #if HAVE_PTHREADS > 4
23391         /* Final pthreads */
23392         pthread_attr_t attr;
23393
23394         status = pthread_attr_init(&attr);
23395         if( status ) return status;
23396
23397 #if HAVE_PTHREADS < 7
23398         status = pthread_attr_setdetachstate(&attr, &detach);
23399         if( status < 0 ) status = errno;
23400 #else
23401         status = pthread_attr_setdetachstate(&attr, detach);
23402 #endif
23403         if( status ) return status;
23404         status = pthread_create( &t, &attr, task, NULL );
23405 #if HAVE_PTHREADS < 7
23406         if( status < 0 ) status = errno;
23407 #endif
23408         if( status ) return status;
23409 #else
23410         /* Draft 4 pthreads */
23411         status = pthread_create( &t, pthread_attr_default, task, NULL );
23412         if( status ) return errno;
23413
23414         /* give thread a chance to complete */
23415         /* it should remain joinable and hence detachable */
23416         sleep( 1 );
23417
23418         status = pthread_detach( &t );
23419         if( status ) return errno;
23420 #endif
23421
23422 #ifdef HAVE_LINUX_THREADS
23423         pthread_kill_other_threads_np();
23424 #endif
23425
23426         return 0;
23427
23428   ;
23429   return 0;
23430 }
23431 _ACEOF
23432 rm -f conftest.$ac_objext conftest$ac_exeext
23433 if { (ac_try="$ac_link"
23434 case "(($ac_try" in
23435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436   *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439   (eval "$ac_link") 2>conftest.er1
23440   ac_status=$?
23441   grep -v '^ *+' conftest.er1 >conftest.err
23442   rm -f conftest.er1
23443   cat conftest.err >&5
23444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445   (exit $ac_status); } && {
23446          test -z "$ac_c_werror_flag" ||
23447          test ! -s conftest.err
23448        } && test -s conftest$ac_exeext &&
23449        $as_test_x conftest$ac_exeext; then
23450   ol_cv_pthread_threads=yes
23451 else
23452   echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455         ol_cv_pthread_threads=no
23456 fi
23457
23458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23459       conftest$ac_exeext conftest.$ac_ext
23460 else
23461   cat >conftest.$ac_ext <<_ACEOF
23462 /* confdefs.h.  */
23463 _ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h.  */
23467
23468 /* pthread test headers */
23469 #include <pthread.h>
23470 #if HAVE_PTHREADS < 7
23471 #include <errno.h>
23472 #endif
23473 #ifndef NULL
23474 #define NULL (void*)0
23475 #endif
23476
23477 static void *task(p)
23478         void *p;
23479 {
23480         return (void *) (p == NULL);
23481 }
23482
23483
23484 int main(argc, argv)
23485         int argc;
23486         char **argv;
23487 {
23488
23489         /* pthread test function */
23490 #ifndef PTHREAD_CREATE_DETACHED
23491 #define PTHREAD_CREATE_DETACHED 1
23492 #endif
23493         pthread_t t;
23494         int status;
23495         int detach = PTHREAD_CREATE_DETACHED;
23496
23497 #if HAVE_PTHREADS > 4
23498         /* Final pthreads */
23499         pthread_attr_t attr;
23500
23501         status = pthread_attr_init(&attr);
23502         if( status ) return status;
23503
23504 #if HAVE_PTHREADS < 7
23505         status = pthread_attr_setdetachstate(&attr, &detach);
23506         if( status < 0 ) status = errno;
23507 #else
23508         status = pthread_attr_setdetachstate(&attr, detach);
23509 #endif
23510         if( status ) return status;
23511         status = pthread_create( &t, &attr, task, NULL );
23512 #if HAVE_PTHREADS < 7
23513         if( status < 0 ) status = errno;
23514 #endif
23515         if( status ) return status;
23516 #else
23517         /* Draft 4 pthreads */
23518         status = pthread_create( &t, pthread_attr_default, task, NULL );
23519         if( status ) return errno;
23520
23521         /* give thread a chance to complete */
23522         /* it should remain joinable and hence detachable */
23523         sleep( 1 );
23524
23525         status = pthread_detach( &t );
23526         if( status ) return errno;
23527 #endif
23528
23529 #ifdef HAVE_LINUX_THREADS
23530         pthread_kill_other_threads_np();
23531 #endif
23532
23533         return 0;
23534
23535 }
23536
23537 _ACEOF
23538 rm -f conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_link") 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23549   { (case "(($ac_try" in
23550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551   *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554   (eval "$ac_try") 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; }; then
23558   ol_cv_pthread_threads=yes
23559 else
23560   echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564 ( exit $ac_status )
23565 ol_cv_pthread_threads=no
23566 fi
23567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23568 fi
23569
23570
23571
23572                 # restore the LIBS
23573                 LIBS="$ol_LIBS"
23574
23575 fi
23576 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23577 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23578
23579         if test $ol_cv_pthread_threads = yes ; then
23580                 ol_link_pthreads="-threads"
23581                 ol_link_threads=posix
23582         fi
23583 fi
23584
23585
23586                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23587 if test "$ol_link_threads" = no ; then
23588         # try -lpthreads -lmach -lexc -lc_r
23589         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23590 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23591 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23592   echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594
23595                 # save the flags
23596                 ol_LIBS="$LIBS"
23597                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23598
23599                 if test "$cross_compiling" = yes; then
23600   cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606
23607 /* pthread test headers */
23608 #include <pthread.h>
23609 #if HAVE_PTHREADS < 7
23610 #include <errno.h>
23611 #endif
23612 #ifndef NULL
23613 #define NULL (void*)0
23614 #endif
23615
23616 static void *task(p)
23617         void *p;
23618 {
23619         return (void *) (p == NULL);
23620 }
23621
23622 int
23623 main ()
23624 {
23625
23626         /* pthread test function */
23627 #ifndef PTHREAD_CREATE_DETACHED
23628 #define PTHREAD_CREATE_DETACHED 1
23629 #endif
23630         pthread_t t;
23631         int status;
23632         int detach = PTHREAD_CREATE_DETACHED;
23633
23634 #if HAVE_PTHREADS > 4
23635         /* Final pthreads */
23636         pthread_attr_t attr;
23637
23638         status = pthread_attr_init(&attr);
23639         if( status ) return status;
23640
23641 #if HAVE_PTHREADS < 7
23642         status = pthread_attr_setdetachstate(&attr, &detach);
23643         if( status < 0 ) status = errno;
23644 #else
23645         status = pthread_attr_setdetachstate(&attr, detach);
23646 #endif
23647         if( status ) return status;
23648         status = pthread_create( &t, &attr, task, NULL );
23649 #if HAVE_PTHREADS < 7
23650         if( status < 0 ) status = errno;
23651 #endif
23652         if( status ) return status;
23653 #else
23654         /* Draft 4 pthreads */
23655         status = pthread_create( &t, pthread_attr_default, task, NULL );
23656         if( status ) return errno;
23657
23658         /* give thread a chance to complete */
23659         /* it should remain joinable and hence detachable */
23660         sleep( 1 );
23661
23662         status = pthread_detach( &t );
23663         if( status ) return errno;
23664 #endif
23665
23666 #ifdef HAVE_LINUX_THREADS
23667         pthread_kill_other_threads_np();
23668 #endif
23669
23670         return 0;
23671
23672   ;
23673   return 0;
23674 }
23675 _ACEOF
23676 rm -f conftest.$ac_objext conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680   *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683   (eval "$ac_link") 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } && {
23690          test -z "$ac_c_werror_flag" ||
23691          test ! -s conftest.err
23692        } && test -s conftest$ac_exeext &&
23693        $as_test_x conftest$ac_exeext; then
23694   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23703       conftest$ac_exeext conftest.$ac_ext
23704 else
23705   cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h.  */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h.  */
23711
23712 /* pthread test headers */
23713 #include <pthread.h>
23714 #if HAVE_PTHREADS < 7
23715 #include <errno.h>
23716 #endif
23717 #ifndef NULL
23718 #define NULL (void*)0
23719 #endif
23720
23721 static void *task(p)
23722         void *p;
23723 {
23724         return (void *) (p == NULL);
23725 }
23726
23727
23728 int main(argc, argv)
23729         int argc;
23730         char **argv;
23731 {
23732
23733         /* pthread test function */
23734 #ifndef PTHREAD_CREATE_DETACHED
23735 #define PTHREAD_CREATE_DETACHED 1
23736 #endif
23737         pthread_t t;
23738         int status;
23739         int detach = PTHREAD_CREATE_DETACHED;
23740
23741 #if HAVE_PTHREADS > 4
23742         /* Final pthreads */
23743         pthread_attr_t attr;
23744
23745         status = pthread_attr_init(&attr);
23746         if( status ) return status;
23747
23748 #if HAVE_PTHREADS < 7
23749         status = pthread_attr_setdetachstate(&attr, &detach);
23750         if( status < 0 ) status = errno;
23751 #else
23752         status = pthread_attr_setdetachstate(&attr, detach);
23753 #endif
23754         if( status ) return status;
23755         status = pthread_create( &t, &attr, task, NULL );
23756 #if HAVE_PTHREADS < 7
23757         if( status < 0 ) status = errno;
23758 #endif
23759         if( status ) return status;
23760 #else
23761         /* Draft 4 pthreads */
23762         status = pthread_create( &t, pthread_attr_default, task, NULL );
23763         if( status ) return errno;
23764
23765         /* give thread a chance to complete */
23766         /* it should remain joinable and hence detachable */
23767         sleep( 1 );
23768
23769         status = pthread_detach( &t );
23770         if( status ) return errno;
23771 #endif
23772
23773 #ifdef HAVE_LINUX_THREADS
23774         pthread_kill_other_threads_np();
23775 #endif
23776
23777         return 0;
23778
23779 }
23780
23781 _ACEOF
23782 rm -f conftest$ac_exeext
23783 if { (ac_try="$ac_link"
23784 case "(($ac_try" in
23785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786   *) ac_try_echo=$ac_try;;
23787 esac
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789   (eval "$ac_link") 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23793   { (case "(($ac_try" in
23794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795   *) ac_try_echo=$ac_try;;
23796 esac
23797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798   (eval "$ac_try") 2>&5
23799   ac_status=$?
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); }; }; then
23802   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23803 else
23804   echo "$as_me: program exited with status $ac_status" >&5
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23807
23808 ( exit $ac_status )
23809 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23810 fi
23811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23812 fi
23813
23814
23815
23816                 # restore the LIBS
23817                 LIBS="$ol_LIBS"
23818
23819 fi
23820 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23821 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23822
23823         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23824                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23825                 ol_link_threads=posix
23826         fi
23827 fi
23828
23829                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23830 if test "$ol_link_threads" = no ; then
23831         # try -lpthreads -lmach -lexc
23832         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23833 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23834 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23835   echo $ECHO_N "(cached) $ECHO_C" >&6
23836 else
23837
23838                 # save the flags
23839                 ol_LIBS="$LIBS"
23840                 LIBS="-lpthreads -lmach -lexc $LIBS"
23841
23842                 if test "$cross_compiling" = yes; then
23843   cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h.  */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h.  */
23849
23850 /* pthread test headers */
23851 #include <pthread.h>
23852 #if HAVE_PTHREADS < 7
23853 #include <errno.h>
23854 #endif
23855 #ifndef NULL
23856 #define NULL (void*)0
23857 #endif
23858
23859 static void *task(p)
23860         void *p;
23861 {
23862         return (void *) (p == NULL);
23863 }
23864
23865 int
23866 main ()
23867 {
23868
23869         /* pthread test function */
23870 #ifndef PTHREAD_CREATE_DETACHED
23871 #define PTHREAD_CREATE_DETACHED 1
23872 #endif
23873         pthread_t t;
23874         int status;
23875         int detach = PTHREAD_CREATE_DETACHED;
23876
23877 #if HAVE_PTHREADS > 4
23878         /* Final pthreads */
23879         pthread_attr_t attr;
23880
23881         status = pthread_attr_init(&attr);
23882         if( status ) return status;
23883
23884 #if HAVE_PTHREADS < 7
23885         status = pthread_attr_setdetachstate(&attr, &detach);
23886         if( status < 0 ) status = errno;
23887 #else
23888         status = pthread_attr_setdetachstate(&attr, detach);
23889 #endif
23890         if( status ) return status;
23891         status = pthread_create( &t, &attr, task, NULL );
23892 #if HAVE_PTHREADS < 7
23893         if( status < 0 ) status = errno;
23894 #endif
23895         if( status ) return status;
23896 #else
23897         /* Draft 4 pthreads */
23898         status = pthread_create( &t, pthread_attr_default, task, NULL );
23899         if( status ) return errno;
23900
23901         /* give thread a chance to complete */
23902         /* it should remain joinable and hence detachable */
23903         sleep( 1 );
23904
23905         status = pthread_detach( &t );
23906         if( status ) return errno;
23907 #endif
23908
23909 #ifdef HAVE_LINUX_THREADS
23910         pthread_kill_other_threads_np();
23911 #endif
23912
23913         return 0;
23914
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext conftest$ac_exeext
23920 if { (ac_try="$ac_link"
23921 case "(($ac_try" in
23922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923   *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926   (eval "$ac_link") 2>conftest.er1
23927   ac_status=$?
23928   grep -v '^ *+' conftest.er1 >conftest.err
23929   rm -f conftest.er1
23930   cat conftest.err >&5
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } && {
23933          test -z "$ac_c_werror_flag" ||
23934          test ! -s conftest.err
23935        } && test -s conftest$ac_exeext &&
23936        $as_test_x conftest$ac_exeext; then
23937   ol_cv_pthread_lpthreads_lmach_lexc=yes
23938 else
23939   echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942         ol_cv_pthread_lpthreads_lmach_lexc=no
23943 fi
23944
23945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23946       conftest$ac_exeext conftest.$ac_ext
23947 else
23948   cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954
23955 /* pthread test headers */
23956 #include <pthread.h>
23957 #if HAVE_PTHREADS < 7
23958 #include <errno.h>
23959 #endif
23960 #ifndef NULL
23961 #define NULL (void*)0
23962 #endif
23963
23964 static void *task(p)
23965         void *p;
23966 {
23967         return (void *) (p == NULL);
23968 }
23969
23970
23971 int main(argc, argv)
23972         int argc;
23973         char **argv;
23974 {
23975
23976         /* pthread test function */
23977 #ifndef PTHREAD_CREATE_DETACHED
23978 #define PTHREAD_CREATE_DETACHED 1
23979 #endif
23980         pthread_t t;
23981         int status;
23982         int detach = PTHREAD_CREATE_DETACHED;
23983
23984 #if HAVE_PTHREADS > 4
23985         /* Final pthreads */
23986         pthread_attr_t attr;
23987
23988         status = pthread_attr_init(&attr);
23989         if( status ) return status;
23990
23991 #if HAVE_PTHREADS < 7
23992         status = pthread_attr_setdetachstate(&attr, &detach);
23993         if( status < 0 ) status = errno;
23994 #else
23995         status = pthread_attr_setdetachstate(&attr, detach);
23996 #endif
23997         if( status ) return status;
23998         status = pthread_create( &t, &attr, task, NULL );
23999 #if HAVE_PTHREADS < 7
24000         if( status < 0 ) status = errno;
24001 #endif
24002         if( status ) return status;
24003 #else
24004         /* Draft 4 pthreads */
24005         status = pthread_create( &t, pthread_attr_default, task, NULL );
24006         if( status ) return errno;
24007
24008         /* give thread a chance to complete */
24009         /* it should remain joinable and hence detachable */
24010         sleep( 1 );
24011
24012         status = pthread_detach( &t );
24013         if( status ) return errno;
24014 #endif
24015
24016 #ifdef HAVE_LINUX_THREADS
24017         pthread_kill_other_threads_np();
24018 #endif
24019
24020         return 0;
24021
24022 }
24023
24024 _ACEOF
24025 rm -f conftest$ac_exeext
24026 if { (ac_try="$ac_link"
24027 case "(($ac_try" in
24028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029   *) ac_try_echo=$ac_try;;
24030 esac
24031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24032   (eval "$ac_link") 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24036   { (case "(($ac_try" in
24037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038   *) ac_try_echo=$ac_try;;
24039 esac
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041   (eval "$ac_try") 2>&5
24042   ac_status=$?
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); }; }; then
24045   ol_cv_pthread_lpthreads_lmach_lexc=yes
24046 else
24047   echo "$as_me: program exited with status $ac_status" >&5
24048 echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24050
24051 ( exit $ac_status )
24052 ol_cv_pthread_lpthreads_lmach_lexc=no
24053 fi
24054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24055 fi
24056
24057
24058
24059                 # restore the LIBS
24060                 LIBS="$ol_LIBS"
24061
24062 fi
24063 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24064 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24065
24066         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24067                 ol_link_pthreads="-lpthreads -lmach -lexc"
24068                 ol_link_threads=posix
24069         fi
24070 fi
24071
24072                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24073 if test "$ol_link_threads" = no ; then
24074         # try -lpthreads -lexc
24075         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24076 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24077 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24078   echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080
24081                 # save the flags
24082                 ol_LIBS="$LIBS"
24083                 LIBS="-lpthreads -lexc $LIBS"
24084
24085                 if test "$cross_compiling" = yes; then
24086   cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092
24093 /* pthread test headers */
24094 #include <pthread.h>
24095 #if HAVE_PTHREADS < 7
24096 #include <errno.h>
24097 #endif
24098 #ifndef NULL
24099 #define NULL (void*)0
24100 #endif
24101
24102 static void *task(p)
24103         void *p;
24104 {
24105         return (void *) (p == NULL);
24106 }
24107
24108 int
24109 main ()
24110 {
24111
24112         /* pthread test function */
24113 #ifndef PTHREAD_CREATE_DETACHED
24114 #define PTHREAD_CREATE_DETACHED 1
24115 #endif
24116         pthread_t t;
24117         int status;
24118         int detach = PTHREAD_CREATE_DETACHED;
24119
24120 #if HAVE_PTHREADS > 4
24121         /* Final pthreads */
24122         pthread_attr_t attr;
24123
24124         status = pthread_attr_init(&attr);
24125         if( status ) return status;
24126
24127 #if HAVE_PTHREADS < 7
24128         status = pthread_attr_setdetachstate(&attr, &detach);
24129         if( status < 0 ) status = errno;
24130 #else
24131         status = pthread_attr_setdetachstate(&attr, detach);
24132 #endif
24133         if( status ) return status;
24134         status = pthread_create( &t, &attr, task, NULL );
24135 #if HAVE_PTHREADS < 7
24136         if( status < 0 ) status = errno;
24137 #endif
24138         if( status ) return status;
24139 #else
24140         /* Draft 4 pthreads */
24141         status = pthread_create( &t, pthread_attr_default, task, NULL );
24142         if( status ) return errno;
24143
24144         /* give thread a chance to complete */
24145         /* it should remain joinable and hence detachable */
24146         sleep( 1 );
24147
24148         status = pthread_detach( &t );
24149         if( status ) return errno;
24150 #endif
24151
24152 #ifdef HAVE_LINUX_THREADS
24153         pthread_kill_other_threads_np();
24154 #endif
24155
24156         return 0;
24157
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166   *) ac_try_echo=$ac_try;;
24167 esac
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169   (eval "$ac_link") 2>conftest.er1
24170   ac_status=$?
24171   grep -v '^ *+' conftest.er1 >conftest.err
24172   rm -f conftest.er1
24173   cat conftest.err >&5
24174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175   (exit $ac_status); } && {
24176          test -z "$ac_c_werror_flag" ||
24177          test ! -s conftest.err
24178        } && test -s conftest$ac_exeext &&
24179        $as_test_x conftest$ac_exeext; then
24180   ol_cv_pthread_lpthreads_lexc=yes
24181 else
24182   echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185         ol_cv_pthread_lpthreads_lexc=no
24186 fi
24187
24188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24189       conftest$ac_exeext conftest.$ac_ext
24190 else
24191   cat >conftest.$ac_ext <<_ACEOF
24192 /* confdefs.h.  */
24193 _ACEOF
24194 cat confdefs.h >>conftest.$ac_ext
24195 cat >>conftest.$ac_ext <<_ACEOF
24196 /* end confdefs.h.  */
24197
24198 /* pthread test headers */
24199 #include <pthread.h>
24200 #if HAVE_PTHREADS < 7
24201 #include <errno.h>
24202 #endif
24203 #ifndef NULL
24204 #define NULL (void*)0
24205 #endif
24206
24207 static void *task(p)
24208         void *p;
24209 {
24210         return (void *) (p == NULL);
24211 }
24212
24213
24214 int main(argc, argv)
24215         int argc;
24216         char **argv;
24217 {
24218
24219         /* pthread test function */
24220 #ifndef PTHREAD_CREATE_DETACHED
24221 #define PTHREAD_CREATE_DETACHED 1
24222 #endif
24223         pthread_t t;
24224         int status;
24225         int detach = PTHREAD_CREATE_DETACHED;
24226
24227 #if HAVE_PTHREADS > 4
24228         /* Final pthreads */
24229         pthread_attr_t attr;
24230
24231         status = pthread_attr_init(&attr);
24232         if( status ) return status;
24233
24234 #if HAVE_PTHREADS < 7
24235         status = pthread_attr_setdetachstate(&attr, &detach);
24236         if( status < 0 ) status = errno;
24237 #else
24238         status = pthread_attr_setdetachstate(&attr, detach);
24239 #endif
24240         if( status ) return status;
24241         status = pthread_create( &t, &attr, task, NULL );
24242 #if HAVE_PTHREADS < 7
24243         if( status < 0 ) status = errno;
24244 #endif
24245         if( status ) return status;
24246 #else
24247         /* Draft 4 pthreads */
24248         status = pthread_create( &t, pthread_attr_default, task, NULL );
24249         if( status ) return errno;
24250
24251         /* give thread a chance to complete */
24252         /* it should remain joinable and hence detachable */
24253         sleep( 1 );
24254
24255         status = pthread_detach( &t );
24256         if( status ) return errno;
24257 #endif
24258
24259 #ifdef HAVE_LINUX_THREADS
24260         pthread_kill_other_threads_np();
24261 #endif
24262
24263         return 0;
24264
24265 }
24266
24267 _ACEOF
24268 rm -f conftest$ac_exeext
24269 if { (ac_try="$ac_link"
24270 case "(($ac_try" in
24271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272   *) ac_try_echo=$ac_try;;
24273 esac
24274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275   (eval "$ac_link") 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24279   { (case "(($ac_try" in
24280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281   *) ac_try_echo=$ac_try;;
24282 esac
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284   (eval "$ac_try") 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); }; }; then
24288   ol_cv_pthread_lpthreads_lexc=yes
24289 else
24290   echo "$as_me: program exited with status $ac_status" >&5
24291 echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24293
24294 ( exit $ac_status )
24295 ol_cv_pthread_lpthreads_lexc=no
24296 fi
24297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24298 fi
24299
24300
24301
24302                 # restore the LIBS
24303                 LIBS="$ol_LIBS"
24304
24305 fi
24306 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24307 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24308
24309         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24310                 ol_link_pthreads="-lpthreads -lexc"
24311                 ol_link_threads=posix
24312         fi
24313 fi
24314
24315
24316                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24317 if test "$ol_link_threads" = no ; then
24318         # try -lpthreads
24319         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24320 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24321 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24322   echo $ECHO_N "(cached) $ECHO_C" >&6
24323 else
24324
24325                 # save the flags
24326                 ol_LIBS="$LIBS"
24327                 LIBS="-lpthreads $LIBS"
24328
24329                 if test "$cross_compiling" = yes; then
24330   cat >conftest.$ac_ext <<_ACEOF
24331 /* confdefs.h.  */
24332 _ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h.  */
24336
24337 /* pthread test headers */
24338 #include <pthread.h>
24339 #if HAVE_PTHREADS < 7
24340 #include <errno.h>
24341 #endif
24342 #ifndef NULL
24343 #define NULL (void*)0
24344 #endif
24345
24346 static void *task(p)
24347         void *p;
24348 {
24349         return (void *) (p == NULL);
24350 }
24351
24352 int
24353 main ()
24354 {
24355
24356         /* pthread test function */
24357 #ifndef PTHREAD_CREATE_DETACHED
24358 #define PTHREAD_CREATE_DETACHED 1
24359 #endif
24360         pthread_t t;
24361         int status;
24362         int detach = PTHREAD_CREATE_DETACHED;
24363
24364 #if HAVE_PTHREADS > 4
24365         /* Final pthreads */
24366         pthread_attr_t attr;
24367
24368         status = pthread_attr_init(&attr);
24369         if( status ) return status;
24370
24371 #if HAVE_PTHREADS < 7
24372         status = pthread_attr_setdetachstate(&attr, &detach);
24373         if( status < 0 ) status = errno;
24374 #else
24375         status = pthread_attr_setdetachstate(&attr, detach);
24376 #endif
24377         if( status ) return status;
24378         status = pthread_create( &t, &attr, task, NULL );
24379 #if HAVE_PTHREADS < 7
24380         if( status < 0 ) status = errno;
24381 #endif
24382         if( status ) return status;
24383 #else
24384         /* Draft 4 pthreads */
24385         status = pthread_create( &t, pthread_attr_default, task, NULL );
24386         if( status ) return errno;
24387
24388         /* give thread a chance to complete */
24389         /* it should remain joinable and hence detachable */
24390         sleep( 1 );
24391
24392         status = pthread_detach( &t );
24393         if( status ) return errno;
24394 #endif
24395
24396 #ifdef HAVE_LINUX_THREADS
24397         pthread_kill_other_threads_np();
24398 #endif
24399
24400         return 0;
24401
24402   ;
24403   return 0;
24404 }
24405 _ACEOF
24406 rm -f conftest.$ac_objext conftest$ac_exeext
24407 if { (ac_try="$ac_link"
24408 case "(($ac_try" in
24409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410   *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413   (eval "$ac_link") 2>conftest.er1
24414   ac_status=$?
24415   grep -v '^ *+' conftest.er1 >conftest.err
24416   rm -f conftest.er1
24417   cat conftest.err >&5
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); } && {
24420          test -z "$ac_c_werror_flag" ||
24421          test ! -s conftest.err
24422        } && test -s conftest$ac_exeext &&
24423        $as_test_x conftest$ac_exeext; then
24424   ol_cv_pthread_lib_lpthreads=yes
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429         ol_cv_pthread_lib_lpthreads=no
24430 fi
24431
24432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24433       conftest$ac_exeext conftest.$ac_ext
24434 else
24435   cat >conftest.$ac_ext <<_ACEOF
24436 /* confdefs.h.  */
24437 _ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h.  */
24441
24442 /* pthread test headers */
24443 #include <pthread.h>
24444 #if HAVE_PTHREADS < 7
24445 #include <errno.h>
24446 #endif
24447 #ifndef NULL
24448 #define NULL (void*)0
24449 #endif
24450
24451 static void *task(p)
24452         void *p;
24453 {
24454         return (void *) (p == NULL);
24455 }
24456
24457
24458 int main(argc, argv)
24459         int argc;
24460         char **argv;
24461 {
24462
24463         /* pthread test function */
24464 #ifndef PTHREAD_CREATE_DETACHED
24465 #define PTHREAD_CREATE_DETACHED 1
24466 #endif
24467         pthread_t t;
24468         int status;
24469         int detach = PTHREAD_CREATE_DETACHED;
24470
24471 #if HAVE_PTHREADS > 4
24472         /* Final pthreads */
24473         pthread_attr_t attr;
24474
24475         status = pthread_attr_init(&attr);
24476         if( status ) return status;
24477
24478 #if HAVE_PTHREADS < 7
24479         status = pthread_attr_setdetachstate(&attr, &detach);
24480         if( status < 0 ) status = errno;
24481 #else
24482         status = pthread_attr_setdetachstate(&attr, detach);
24483 #endif
24484         if( status ) return status;
24485         status = pthread_create( &t, &attr, task, NULL );
24486 #if HAVE_PTHREADS < 7
24487         if( status < 0 ) status = errno;
24488 #endif
24489         if( status ) return status;
24490 #else
24491         /* Draft 4 pthreads */
24492         status = pthread_create( &t, pthread_attr_default, task, NULL );
24493         if( status ) return errno;
24494
24495         /* give thread a chance to complete */
24496         /* it should remain joinable and hence detachable */
24497         sleep( 1 );
24498
24499         status = pthread_detach( &t );
24500         if( status ) return errno;
24501 #endif
24502
24503 #ifdef HAVE_LINUX_THREADS
24504         pthread_kill_other_threads_np();
24505 #endif
24506
24507         return 0;
24508
24509 }
24510
24511 _ACEOF
24512 rm -f conftest$ac_exeext
24513 if { (ac_try="$ac_link"
24514 case "(($ac_try" in
24515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516   *) ac_try_echo=$ac_try;;
24517 esac
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519   (eval "$ac_link") 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24523   { (case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528   (eval "$ac_try") 2>&5
24529   ac_status=$?
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); }; }; then
24532   ol_cv_pthread_lib_lpthreads=yes
24533 else
24534   echo "$as_me: program exited with status $ac_status" >&5
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538 ( exit $ac_status )
24539 ol_cv_pthread_lib_lpthreads=no
24540 fi
24541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24542 fi
24543
24544
24545
24546                 # restore the LIBS
24547                 LIBS="$ol_LIBS"
24548
24549 fi
24550 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24551 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24552
24553         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24554                 ol_link_pthreads="-lpthreads"
24555                 ol_link_threads=posix
24556         fi
24557 fi
24558
24559
24560                 if test $ol_link_threads != no ; then
24561                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24562
24563                                                 save_CPPFLAGS="$CPPFLAGS"
24564                         save_LIBS="$LIBS"
24565                         LIBS="$LTHREAD_LIBS $LIBS"
24566
24567
24568
24569
24570 for ac_func in sched_yield pthread_yield thr_yield
24571 do
24572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24576   echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578   cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h.  */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h.  */
24584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24586 #define $ac_func innocuous_$ac_func
24587
24588 /* System header to define __stub macros and hopefully few prototypes,
24589     which can conflict with char $ac_func (); below.
24590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24591     <limits.h> exists even on freestanding compilers.  */
24592
24593 #ifdef __STDC__
24594 # include <limits.h>
24595 #else
24596 # include <assert.h>
24597 #endif
24598
24599 #undef $ac_func
24600
24601 /* Override any GCC internal prototype to avoid an error.
24602    Use char because int might match the return type of a GCC
24603    builtin and then its argument prototype would still apply.  */
24604 #ifdef __cplusplus
24605 extern "C"
24606 #endif
24607 char $ac_func ();
24608 /* The GNU C library defines this for functions which it implements
24609     to always fail with ENOSYS.  Some functions are actually named
24610     something starting with __ and the normal name is an alias.  */
24611 #if defined __stub_$ac_func || defined __stub___$ac_func
24612 choke me
24613 #endif
24614
24615 int
24616 main ()
24617 {
24618 return $ac_func ();
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest.$ac_objext conftest$ac_exeext
24624 if { (ac_try="$ac_link"
24625 case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630   (eval "$ac_link") 2>conftest.er1
24631   ac_status=$?
24632   grep -v '^ *+' conftest.er1 >conftest.err
24633   rm -f conftest.er1
24634   cat conftest.err >&5
24635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); } && {
24637          test -z "$ac_c_werror_flag" ||
24638          test ! -s conftest.err
24639        } && test -s conftest$ac_exeext &&
24640        $as_test_x conftest$ac_exeext; then
24641   eval "$as_ac_var=yes"
24642 else
24643   echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646         eval "$as_ac_var=no"
24647 fi
24648
24649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24650       conftest$ac_exeext conftest.$ac_ext
24651 fi
24652 ac_res=`eval echo '${'$as_ac_var'}'`
24653                { echo "$as_me:$LINENO: result: $ac_res" >&5
24654 echo "${ECHO_T}$ac_res" >&6; }
24655 if test `eval echo '${'$as_ac_var'}'` = yes; then
24656   cat >>confdefs.h <<_ACEOF
24657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24658 _ACEOF
24659
24660 fi
24661 done
24662
24663
24664                         if test $ac_cv_func_sched_yield = no &&
24665                            test $ac_cv_func_pthread_yield = no &&
24666                            test $ac_cv_func_thr_yield = no ; then
24667                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24668 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24669 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   ac_check_lib_save_LIBS=$LIBS
24673 LIBS="-lrt  $LIBS"
24674 cat >conftest.$ac_ext <<_ACEOF
24675 /* confdefs.h.  */
24676 _ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h.  */
24680
24681 /* Override any GCC internal prototype to avoid an error.
24682    Use char because int might match the return type of a GCC
24683    builtin and then its argument prototype would still apply.  */
24684 #ifdef __cplusplus
24685 extern "C"
24686 #endif
24687 char sched_yield ();
24688 int
24689 main ()
24690 {
24691 return sched_yield ();
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext conftest$ac_exeext
24697 if { (ac_try="$ac_link"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703   (eval "$ac_link") 2>conftest.er1
24704   ac_status=$?
24705   grep -v '^ *+' conftest.er1 >conftest.err
24706   rm -f conftest.er1
24707   cat conftest.err >&5
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && {
24710          test -z "$ac_c_werror_flag" ||
24711          test ! -s conftest.err
24712        } && test -s conftest$ac_exeext &&
24713        $as_test_x conftest$ac_exeext; then
24714   ac_cv_lib_rt_sched_yield=yes
24715 else
24716   echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719         ac_cv_lib_rt_sched_yield=no
24720 fi
24721
24722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24723       conftest$ac_exeext conftest.$ac_ext
24724 LIBS=$ac_check_lib_save_LIBS
24725 fi
24726 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24727 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24728 if test $ac_cv_lib_rt_sched_yield = yes; then
24729   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24730
24731 cat >>confdefs.h <<\_ACEOF
24732 #define HAVE_SCHED_YIELD 1
24733 _ACEOF
24734
24735                                         ac_cv_func_sched_yield=yes
24736 else
24737   ac_cv_func_sched_yield=no
24738 fi
24739
24740                         fi
24741                         if test $ac_cv_func_sched_yield = no &&
24742                            test $ac_cv_func_pthread_yield = no &&
24743                            test "$ac_cv_func_thr_yield" = no ; then
24744                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24745 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24746                         fi
24747
24748
24749 for ac_func in pthread_kill
24750 do
24751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24755   echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757   cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h.  */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h.  */
24763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24765 #define $ac_func innocuous_$ac_func
24766
24767 /* System header to define __stub macros and hopefully few prototypes,
24768     which can conflict with char $ac_func (); below.
24769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24770     <limits.h> exists even on freestanding compilers.  */
24771
24772 #ifdef __STDC__
24773 # include <limits.h>
24774 #else
24775 # include <assert.h>
24776 #endif
24777
24778 #undef $ac_func
24779
24780 /* Override any GCC internal prototype to avoid an error.
24781    Use char because int might match the return type of a GCC
24782    builtin and then its argument prototype would still apply.  */
24783 #ifdef __cplusplus
24784 extern "C"
24785 #endif
24786 char $ac_func ();
24787 /* The GNU C library defines this for functions which it implements
24788     to always fail with ENOSYS.  Some functions are actually named
24789     something starting with __ and the normal name is an alias.  */
24790 #if defined __stub_$ac_func || defined __stub___$ac_func
24791 choke me
24792 #endif
24793
24794 int
24795 main ()
24796 {
24797 return $ac_func ();
24798   ;
24799   return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806   *) ac_try_echo=$ac_try;;
24807 esac
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809   (eval "$ac_link") 2>conftest.er1
24810   ac_status=$?
24811   grep -v '^ *+' conftest.er1 >conftest.err
24812   rm -f conftest.er1
24813   cat conftest.err >&5
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); } && {
24816          test -z "$ac_c_werror_flag" ||
24817          test ! -s conftest.err
24818        } && test -s conftest$ac_exeext &&
24819        $as_test_x conftest$ac_exeext; then
24820   eval "$as_ac_var=yes"
24821 else
24822   echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24824
24825         eval "$as_ac_var=no"
24826 fi
24827
24828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24829       conftest$ac_exeext conftest.$ac_ext
24830 fi
24831 ac_res=`eval echo '${'$as_ac_var'}'`
24832                { echo "$as_me:$LINENO: result: $ac_res" >&5
24833 echo "${ECHO_T}$ac_res" >&6; }
24834 if test `eval echo '${'$as_ac_var'}'` = yes; then
24835   cat >>confdefs.h <<_ACEOF
24836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24837 _ACEOF
24838
24839 fi
24840 done
24841
24842
24843                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24844 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24845 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24846   echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848
24849                                                                 cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h.  */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h.  */
24855
24856 #include <pthread.h>
24857 pthread_rwlock_t rwlock;
24858
24859 int
24860 main ()
24861 {
24862 pthread_rwlock_destroy(&rwlock);
24863   ;
24864   return 0;
24865 }
24866 _ACEOF
24867 rm -f conftest.$ac_objext conftest$ac_exeext
24868 if { (ac_try="$ac_link"
24869 case "(($ac_try" in
24870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871   *) ac_try_echo=$ac_try;;
24872 esac
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874   (eval "$ac_link") 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } && {
24881          test -z "$ac_c_werror_flag" ||
24882          test ! -s conftest.err
24883        } && test -s conftest$ac_exeext &&
24884        $as_test_x conftest$ac_exeext; then
24885   ol_cv_func_pthread_rwlock_destroy=yes
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890         ol_cv_func_pthread_rwlock_destroy=no
24891 fi
24892
24893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24894       conftest$ac_exeext conftest.$ac_ext
24895
24896 fi
24897 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24898 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24899                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24900
24901 cat >>confdefs.h <<\_ACEOF
24902 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24903 _ACEOF
24904
24905                         fi
24906
24907                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24908 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24909 if test "${ol_cv_func_pthread_detach+set}" = set; then
24910   echo $ECHO_N "(cached) $ECHO_C" >&6
24911 else
24912
24913                                                                 cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919
24920 #include <pthread.h>
24921 #ifndef NULL
24922 #define NULL (void*)0
24923 #endif
24924
24925 int
24926 main ()
24927 {
24928 pthread_detach(NULL);
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 rm -f conftest.$ac_objext conftest$ac_exeext
24934 if { (ac_try="$ac_link"
24935 case "(($ac_try" in
24936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24937   *) ac_try_echo=$ac_try;;
24938 esac
24939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24940   (eval "$ac_link") 2>conftest.er1
24941   ac_status=$?
24942   grep -v '^ *+' conftest.er1 >conftest.err
24943   rm -f conftest.er1
24944   cat conftest.err >&5
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); } && {
24947          test -z "$ac_c_werror_flag" ||
24948          test ! -s conftest.err
24949        } && test -s conftest$ac_exeext &&
24950        $as_test_x conftest$ac_exeext; then
24951   ol_cv_func_pthread_detach=yes
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956         ol_cv_func_pthread_detach=no
24957 fi
24958
24959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24960       conftest$ac_exeext conftest.$ac_ext
24961
24962 fi
24963 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24964 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24965
24966                         if test $ol_cv_func_pthread_detach = no ; then
24967                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24968 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24969    { (exit 1); exit 1; }; }
24970                         fi
24971
24972
24973 cat >>confdefs.h <<\_ACEOF
24974 #define HAVE_PTHREAD_DETACH 1
24975 _ACEOF
24976
24977
24978
24979
24980
24981
24982 for ac_func in \
24983                                 pthread_setconcurrency \
24984                                 pthread_getconcurrency \
24985                                 thr_setconcurrency \
24986                                 thr_getconcurrency \
24987
24988 do
24989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24993   echo $ECHO_N "(cached) $ECHO_C" >&6
24994 else
24995   cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h.  */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h.  */
25001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25003 #define $ac_func innocuous_$ac_func
25004
25005 /* System header to define __stub macros and hopefully few prototypes,
25006     which can conflict with char $ac_func (); below.
25007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25008     <limits.h> exists even on freestanding compilers.  */
25009
25010 #ifdef __STDC__
25011 # include <limits.h>
25012 #else
25013 # include <assert.h>
25014 #endif
25015
25016 #undef $ac_func
25017
25018 /* Override any GCC internal prototype to avoid an error.
25019    Use char because int might match the return type of a GCC
25020    builtin and then its argument prototype would still apply.  */
25021 #ifdef __cplusplus
25022 extern "C"
25023 #endif
25024 char $ac_func ();
25025 /* The GNU C library defines this for functions which it implements
25026     to always fail with ENOSYS.  Some functions are actually named
25027     something starting with __ and the normal name is an alias.  */
25028 #if defined __stub_$ac_func || defined __stub___$ac_func
25029 choke me
25030 #endif
25031
25032 int
25033 main ()
25034 {
25035 return $ac_func ();
25036   ;
25037   return 0;
25038 }
25039 _ACEOF
25040 rm -f conftest.$ac_objext conftest$ac_exeext
25041 if { (ac_try="$ac_link"
25042 case "(($ac_try" in
25043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044   *) ac_try_echo=$ac_try;;
25045 esac
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047   (eval "$ac_link") 2>conftest.er1
25048   ac_status=$?
25049   grep -v '^ *+' conftest.er1 >conftest.err
25050   rm -f conftest.er1
25051   cat conftest.err >&5
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); } && {
25054          test -z "$ac_c_werror_flag" ||
25055          test ! -s conftest.err
25056        } && test -s conftest$ac_exeext &&
25057        $as_test_x conftest$ac_exeext; then
25058   eval "$as_ac_var=yes"
25059 else
25060   echo "$as_me: failed program was:" >&5
25061 sed 's/^/| /' conftest.$ac_ext >&5
25062
25063         eval "$as_ac_var=no"
25064 fi
25065
25066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25067       conftest$ac_exeext conftest.$ac_ext
25068 fi
25069 ac_res=`eval echo '${'$as_ac_var'}'`
25070                { echo "$as_me:$LINENO: result: $ac_res" >&5
25071 echo "${ECHO_T}$ac_res" >&6; }
25072 if test `eval echo '${'$as_ac_var'}'` = yes; then
25073   cat >>confdefs.h <<_ACEOF
25074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25075 _ACEOF
25076
25077 fi
25078 done
25079
25080
25081
25082
25083 for ac_func in pthread_kill_other_threads_np
25084 do
25085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091   cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25099 #define $ac_func innocuous_$ac_func
25100
25101 /* System header to define __stub macros and hopefully few prototypes,
25102     which can conflict with char $ac_func (); below.
25103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25104     <limits.h> exists even on freestanding compilers.  */
25105
25106 #ifdef __STDC__
25107 # include <limits.h>
25108 #else
25109 # include <assert.h>
25110 #endif
25111
25112 #undef $ac_func
25113
25114 /* Override any GCC internal prototype to avoid an error.
25115    Use char because int might match the return type of a GCC
25116    builtin and then its argument prototype would still apply.  */
25117 #ifdef __cplusplus
25118 extern "C"
25119 #endif
25120 char $ac_func ();
25121 /* The GNU C library defines this for functions which it implements
25122     to always fail with ENOSYS.  Some functions are actually named
25123     something starting with __ and the normal name is an alias.  */
25124 #if defined __stub_$ac_func || defined __stub___$ac_func
25125 choke me
25126 #endif
25127
25128 int
25129 main ()
25130 {
25131 return $ac_func ();
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (ac_try="$ac_link"
25138 case "(($ac_try" in
25139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140   *) ac_try_echo=$ac_try;;
25141 esac
25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143   (eval "$ac_link") 2>conftest.er1
25144   ac_status=$?
25145   grep -v '^ *+' conftest.er1 >conftest.err
25146   rm -f conftest.er1
25147   cat conftest.err >&5
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } && {
25150          test -z "$ac_c_werror_flag" ||
25151          test ! -s conftest.err
25152        } && test -s conftest$ac_exeext &&
25153        $as_test_x conftest$ac_exeext; then
25154   eval "$as_ac_var=yes"
25155 else
25156   echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159         eval "$as_ac_var=no"
25160 fi
25161
25162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25163       conftest$ac_exeext conftest.$ac_ext
25164 fi
25165 ac_res=`eval echo '${'$as_ac_var'}'`
25166                { echo "$as_me:$LINENO: result: $ac_res" >&5
25167 echo "${ECHO_T}$ac_res" >&6; }
25168 if test `eval echo '${'$as_ac_var'}'` = yes; then
25169   cat >>confdefs.h <<_ACEOF
25170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25171 _ACEOF
25172
25173 fi
25174 done
25175
25176         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25177 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25178 if test "${ol_cv_sys_linux_threads+set}" = set; then
25179   echo $ECHO_N "(cached) $ECHO_C" >&6
25180 else
25181   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25182 fi
25183 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25184 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25185
25186
25187
25188
25189         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25190 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25191 if test "${ol_cv_linux_threads+set}" = set; then
25192   echo $ECHO_N "(cached) $ECHO_C" >&6
25193 else
25194
25195                 if test $ol_cv_header_linux_threads = yes &&
25196                    test $ol_cv_sys_linux_threads = yes; then
25197                         ol_cv_linux_threads=yes
25198                 elif test $ol_cv_header_linux_threads = no &&
25199                      test $ol_cv_sys_linux_threads = no; then
25200                         ol_cv_linux_threads=no
25201                 else
25202                         ol_cv_linux_threads=error
25203                 fi
25204
25205 fi
25206 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25207 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25208
25209
25210                         if test $ol_cv_linux_threads = error; then
25211                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25212 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25213    { (exit 1); exit 1; }; };
25214                         fi
25215
25216                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25217 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25218 if test "${ol_cv_pthread_create_works+set}" = set; then
25219   echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221
25222                         if test "$cross_compiling" = yes; then
25223                                 ol_cv_pthread_create_works=yes
25224 else
25225   cat >conftest.$ac_ext <<_ACEOF
25226 /* confdefs.h.  */
25227 _ACEOF
25228 cat confdefs.h >>conftest.$ac_ext
25229 cat >>conftest.$ac_ext <<_ACEOF
25230 /* end confdefs.h.  */
25231
25232 /* pthread test headers */
25233 #include <pthread.h>
25234 #if HAVE_PTHREADS < 7
25235 #include <errno.h>
25236 #endif
25237 #ifndef NULL
25238 #define NULL (void*)0
25239 #endif
25240
25241 static void *task(p)
25242         void *p;
25243 {
25244         return (void *) (p == NULL);
25245 }
25246
25247
25248 int main(argc, argv)
25249         int argc;
25250         char **argv;
25251 {
25252
25253         /* pthread test function */
25254 #ifndef PTHREAD_CREATE_DETACHED
25255 #define PTHREAD_CREATE_DETACHED 1
25256 #endif
25257         pthread_t t;
25258         int status;
25259         int detach = PTHREAD_CREATE_DETACHED;
25260
25261 #if HAVE_PTHREADS > 4
25262         /* Final pthreads */
25263         pthread_attr_t attr;
25264
25265         status = pthread_attr_init(&attr);
25266         if( status ) return status;
25267
25268 #if HAVE_PTHREADS < 7
25269         status = pthread_attr_setdetachstate(&attr, &detach);
25270         if( status < 0 ) status = errno;
25271 #else
25272         status = pthread_attr_setdetachstate(&attr, detach);
25273 #endif
25274         if( status ) return status;
25275         status = pthread_create( &t, &attr, task, NULL );
25276 #if HAVE_PTHREADS < 7
25277         if( status < 0 ) status = errno;
25278 #endif
25279         if( status ) return status;
25280 #else
25281         /* Draft 4 pthreads */
25282         status = pthread_create( &t, pthread_attr_default, task, NULL );
25283         if( status ) return errno;
25284
25285         /* give thread a chance to complete */
25286         /* it should remain joinable and hence detachable */
25287         sleep( 1 );
25288
25289         status = pthread_detach( &t );
25290         if( status ) return errno;
25291 #endif
25292
25293 #ifdef HAVE_LINUX_THREADS
25294         pthread_kill_other_threads_np();
25295 #endif
25296
25297         return 0;
25298
25299 }
25300
25301 _ACEOF
25302 rm -f conftest$ac_exeext
25303 if { (ac_try="$ac_link"
25304 case "(($ac_try" in
25305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306   *) ac_try_echo=$ac_try;;
25307 esac
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309   (eval "$ac_link") 2>&5
25310   ac_status=$?
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25313   { (case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318   (eval "$ac_try") 2>&5
25319   ac_status=$?
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); }; }; then
25322   ol_cv_pthread_create_works=yes
25323 else
25324   echo "$as_me: program exited with status $ac_status" >&5
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328 ( exit $ac_status )
25329 ol_cv_pthread_create_works=no
25330 fi
25331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25332 fi
25333
25334
25335 fi
25336 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25337 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25338
25339                         if test $ol_cv_pthread_create_works = no ; then
25340                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25341 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25342    { (exit 1); exit 1; }; }
25343                         fi
25344
25345                         ol_replace_broken_yield=no
25346
25347                         if test $ol_replace_broken_yield = yes ; then
25348
25349 cat >>confdefs.h <<\_ACEOF
25350 #define REPLACE_BROKEN_YIELD 1
25351 _ACEOF
25352
25353                         fi
25354
25355                                                 if test $ol_with_yielding_select = auto ; then
25356                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25357 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25358 if test "${ol_cv_pthread_select_yields+set}" = set; then
25359   echo $ECHO_N "(cached) $ECHO_C" >&6
25360 else
25361
25362                                 if test "$cross_compiling" = yes; then
25363   ol_cv_pthread_select_yields=cross
25364 else
25365   cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371
25372 #include <sys/types.h>
25373 #include <sys/time.h>
25374 #include <unistd.h>
25375 #include <pthread.h>
25376 #ifndef NULL
25377 #define NULL (void*) 0
25378 #endif
25379
25380 static int fildes[2];
25381
25382 static void *task(p)
25383         void *p;
25384 {
25385         int i;
25386         struct timeval tv;
25387
25388         fd_set rfds;
25389
25390         tv.tv_sec=10;
25391         tv.tv_usec=0;
25392
25393         FD_ZERO(&rfds);
25394         FD_SET(fildes[0], &rfds);
25395
25396         /* we're not interested in any fds */
25397         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25398
25399         if(i < 0) {
25400                 perror("select");
25401                 exit(10);
25402         }
25403
25404         exit(0); /* if we exit here, the select blocked the whole process */
25405 }
25406
25407 int main(argc, argv)
25408         int argc;
25409         char **argv;
25410 {
25411         pthread_t t;
25412
25413         /* create a pipe to select */
25414         if(pipe(&fildes[0])) {
25415                 perror("select");
25416                 exit(1);
25417         }
25418
25419 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25420         (void) pthread_setconcurrency(2);
25421 #else
25422 #ifdef HAVE_THR_SETCONCURRENCY
25423         /* Set Solaris LWP concurrency to 2 */
25424         thr_setconcurrency(2);
25425 #endif
25426 #endif
25427
25428 #if HAVE_PTHREADS < 6
25429         pthread_create(&t, pthread_attr_default, task, NULL);
25430 #else
25431         pthread_create(&t, NULL, task, NULL);
25432 #endif
25433
25434         /* make sure task runs first */
25435 #ifdef HAVE_THR_YIELD
25436         thr_yield();
25437 #elif defined( HAVE_SCHED_YIELD )
25438         sched_yield();
25439 #elif defined( HAVE_PTHREAD_YIELD )
25440         pthread_yield();
25441 #endif
25442
25443         exit(2);
25444 }
25445 _ACEOF
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453   (eval "$ac_link") 2>&5
25454   ac_status=$?
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25457   { (case "(($ac_try" in
25458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459   *) ac_try_echo=$ac_try;;
25460 esac
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462   (eval "$ac_try") 2>&5
25463   ac_status=$?
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); }; }; then
25466   ol_cv_pthread_select_yields=no
25467 else
25468   echo "$as_me: program exited with status $ac_status" >&5
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 ( exit $ac_status )
25473 ol_cv_pthread_select_yields=yes
25474 fi
25475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25476 fi
25477
25478
25479 fi
25480 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25481 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25482
25483                                 if test $ol_cv_pthread_select_yields = cross ; then
25484                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25485 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25486    { (exit 1); exit 1; }; }
25487                                 fi
25488
25489                                 if test $ol_cv_pthread_select_yields = yes ; then
25490                                         ol_with_yielding_select=yes
25491                                 fi
25492                         fi
25493
25494                                                 CPPFLAGS="$save_CPPFLAGS"
25495                         LIBS="$save_LIBS"
25496                 else
25497                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25498 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25499    { (exit 1); exit 1; }; }
25500                 fi
25501         fi
25502
25503         if test $ol_with_threads = posix ; then
25504                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25505 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25506    { (exit 1); exit 1; }; }
25507         fi
25508         ;;
25509 esac
25510
25511 case $ol_with_threads in auto | yes | mach)
25512
25513
25514
25515 for ac_header in mach/cthreads.h cthreads.h
25516 do
25517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25519   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25522   echo $ECHO_N "(cached) $ECHO_C" >&6
25523 fi
25524 ac_res=`eval echo '${'$as_ac_Header'}'`
25525                { echo "$as_me:$LINENO: result: $ac_res" >&5
25526 echo "${ECHO_T}$ac_res" >&6; }
25527 else
25528   # Is the header compilable?
25529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25531 cat >conftest.$ac_ext <<_ACEOF
25532 /* confdefs.h.  */
25533 _ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h.  */
25537 $ac_includes_default
25538 #include <$ac_header>
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544   *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547   (eval "$ac_compile") 2>conftest.er1
25548   ac_status=$?
25549   grep -v '^ *+' conftest.er1 >conftest.err
25550   rm -f conftest.er1
25551   cat conftest.err >&5
25552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553   (exit $ac_status); } && {
25554          test -z "$ac_c_werror_flag" ||
25555          test ! -s conftest.err
25556        } && test -s conftest.$ac_objext; then
25557   ac_header_compiler=yes
25558 else
25559   echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25561
25562         ac_header_compiler=no
25563 fi
25564
25565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25567 echo "${ECHO_T}$ac_header_compiler" >&6; }
25568
25569 # Is the header present?
25570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25572 cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h.  */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h.  */
25578 #include <$ac_header>
25579 _ACEOF
25580 if { (ac_try="$ac_cpp conftest.$ac_ext"
25581 case "(($ac_try" in
25582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583   *) ac_try_echo=$ac_try;;
25584 esac
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25587   ac_status=$?
25588   grep -v '^ *+' conftest.er1 >conftest.err
25589   rm -f conftest.er1
25590   cat conftest.err >&5
25591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592   (exit $ac_status); } >/dev/null && {
25593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25594          test ! -s conftest.err
25595        }; then
25596   ac_header_preproc=yes
25597 else
25598   echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25600
25601   ac_header_preproc=no
25602 fi
25603
25604 rm -f conftest.err conftest.$ac_ext
25605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25606 echo "${ECHO_T}$ac_header_preproc" >&6; }
25607
25608 # So?  What about this header?
25609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25610   yes:no: )
25611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25615     ac_header_preproc=yes
25616     ;;
25617   no:yes:* )
25618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25630     ( cat <<\_ASBOX
25631 ## --------------------------------------------- ##
25632 ## Report this to <http://www.openldap.org/its/> ##
25633 ## --------------------------------------------- ##
25634 _ASBOX
25635      ) | sed "s/^/$as_me: WARNING:     /" >&2
25636     ;;
25637 esac
25638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25641   echo $ECHO_N "(cached) $ECHO_C" >&6
25642 else
25643   eval "$as_ac_Header=\$ac_header_preproc"
25644 fi
25645 ac_res=`eval echo '${'$as_ac_Header'}'`
25646                { echo "$as_me:$LINENO: result: $ac_res" >&5
25647 echo "${ECHO_T}$ac_res" >&6; }
25648
25649 fi
25650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25651   cat >>confdefs.h <<_ACEOF
25652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25653 _ACEOF
25654
25655 fi
25656
25657 done
25658
25659         if test $ac_cv_header_mach_cthreads_h = yes ; then
25660                 ol_with_threads=found
25661
25662                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25663 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25664 if test "${ac_cv_func_cthread_fork+set}" = set; then
25665   echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667   cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25675 #define cthread_fork innocuous_cthread_fork
25676
25677 /* System header to define __stub macros and hopefully few prototypes,
25678     which can conflict with char cthread_fork (); below.
25679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25680     <limits.h> exists even on freestanding compilers.  */
25681
25682 #ifdef __STDC__
25683 # include <limits.h>
25684 #else
25685 # include <assert.h>
25686 #endif
25687
25688 #undef cthread_fork
25689
25690 /* Override any GCC internal prototype to avoid an error.
25691    Use char because int might match the return type of a GCC
25692    builtin and then its argument prototype would still apply.  */
25693 #ifdef __cplusplus
25694 extern "C"
25695 #endif
25696 char cthread_fork ();
25697 /* The GNU C library defines this for functions which it implements
25698     to always fail with ENOSYS.  Some functions are actually named
25699     something starting with __ and the normal name is an alias.  */
25700 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25701 choke me
25702 #endif
25703
25704 int
25705 main ()
25706 {
25707 return cthread_fork ();
25708   ;
25709   return 0;
25710 }
25711 _ACEOF
25712 rm -f conftest.$ac_objext conftest$ac_exeext
25713 if { (ac_try="$ac_link"
25714 case "(($ac_try" in
25715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716   *) ac_try_echo=$ac_try;;
25717 esac
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719   (eval "$ac_link") 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
25723   cat conftest.err >&5
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } && {
25726          test -z "$ac_c_werror_flag" ||
25727          test ! -s conftest.err
25728        } && test -s conftest$ac_exeext &&
25729        $as_test_x conftest$ac_exeext; then
25730   ac_cv_func_cthread_fork=yes
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735         ac_cv_func_cthread_fork=no
25736 fi
25737
25738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25739       conftest$ac_exeext conftest.$ac_ext
25740 fi
25741 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25742 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25743 if test $ac_cv_func_cthread_fork = yes; then
25744   ol_link_threads=yes
25745 fi
25746
25747
25748                 if test $ol_link_threads = no ; then
25749                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25750 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25751 if test "${ol_cv_cthread_all_load+set}" = set; then
25752   echo $ECHO_N "(cached) $ECHO_C" >&6
25753 else
25754
25755                                                                 save_LIBS="$LIBS"
25756                                 LIBS="-all_load $LIBS"
25757                                 cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763 #include <mach/cthreads.h>
25764 int
25765 main ()
25766 {
25767
25768                                         cthread_fork((void *)0, (void *)0);
25769
25770   ;
25771   return 0;
25772 }
25773 _ACEOF
25774 rm -f conftest.$ac_objext conftest$ac_exeext
25775 if { (ac_try="$ac_link"
25776 case "(($ac_try" in
25777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778   *) ac_try_echo=$ac_try;;
25779 esac
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781   (eval "$ac_link") 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } && {
25788          test -z "$ac_c_werror_flag" ||
25789          test ! -s conftest.err
25790        } && test -s conftest$ac_exeext &&
25791        $as_test_x conftest$ac_exeext; then
25792   ol_cv_cthread_all_load=yes
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797         ol_cv_cthread_all_load=no
25798 fi
25799
25800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25801       conftest$ac_exeext conftest.$ac_ext
25802                                                                 LIBS="$save_LIBS"
25803
25804 fi
25805 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25806 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25807
25808                         if test $ol_cv_cthread_all_load = yes ; then
25809                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25810                                 ol_link_threads=mach
25811                                 ol_with_threads=found
25812                         fi
25813                 fi
25814
25815         elif test $ac_cv_header_cthreads_h = yes ; then
25816
25817                 ol_with_threads=found
25818
25819                                 save_LIBS="$LIBS"
25820                 LIBS="$LIBS -lthreads"
25821                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25822 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25823 if test "${ac_cv_func_cthread_fork+set}" = set; then
25824   echo $ECHO_N "(cached) $ECHO_C" >&6
25825 else
25826   cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h.  */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h.  */
25832 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25834 #define cthread_fork innocuous_cthread_fork
25835
25836 /* System header to define __stub macros and hopefully few prototypes,
25837     which can conflict with char cthread_fork (); below.
25838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25839     <limits.h> exists even on freestanding compilers.  */
25840
25841 #ifdef __STDC__
25842 # include <limits.h>
25843 #else
25844 # include <assert.h>
25845 #endif
25846
25847 #undef cthread_fork
25848
25849 /* Override any GCC internal prototype to avoid an error.
25850    Use char because int might match the return type of a GCC
25851    builtin and then its argument prototype would still apply.  */
25852 #ifdef __cplusplus
25853 extern "C"
25854 #endif
25855 char cthread_fork ();
25856 /* The GNU C library defines this for functions which it implements
25857     to always fail with ENOSYS.  Some functions are actually named
25858     something starting with __ and the normal name is an alias.  */
25859 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25860 choke me
25861 #endif
25862
25863 int
25864 main ()
25865 {
25866 return cthread_fork ();
25867   ;
25868   return 0;
25869 }
25870 _ACEOF
25871 rm -f conftest.$ac_objext conftest$ac_exeext
25872 if { (ac_try="$ac_link"
25873 case "(($ac_try" in
25874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875   *) ac_try_echo=$ac_try;;
25876 esac
25877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878   (eval "$ac_link") 2>conftest.er1
25879   ac_status=$?
25880   grep -v '^ *+' conftest.er1 >conftest.err
25881   rm -f conftest.er1
25882   cat conftest.err >&5
25883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884   (exit $ac_status); } && {
25885          test -z "$ac_c_werror_flag" ||
25886          test ! -s conftest.err
25887        } && test -s conftest$ac_exeext &&
25888        $as_test_x conftest$ac_exeext; then
25889   ac_cv_func_cthread_fork=yes
25890 else
25891   echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894         ac_cv_func_cthread_fork=no
25895 fi
25896
25897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25898       conftest$ac_exeext conftest.$ac_ext
25899 fi
25900 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25901 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25902 if test $ac_cv_func_cthread_fork = yes; then
25903   ol_link_threads=yes
25904 fi
25905
25906                 LIBS="$save_LIBS"
25907
25908                 if test $ol_link_threads = yes ; then
25909                         LTHREAD_LIBS="-lthreads"
25910                         ol_link_threads=mach
25911                         ol_with_threads=found
25912                 else
25913                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25914 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25915    { (exit 1); exit 1; }; }
25916                 fi
25917
25918         elif test $ol_with_threads = mach ; then
25919                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25920 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25921    { (exit 1); exit 1; }; }
25922         fi
25923
25924         if test $ol_link_threads = mach ; then
25925
25926 cat >>confdefs.h <<\_ACEOF
25927 #define HAVE_MACH_CTHREADS 1
25928 _ACEOF
25929
25930         elif test $ol_with_threads = found ; then
25931                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25932 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25933    { (exit 1); exit 1; }; }
25934         fi
25935         ;;
25936 esac
25937
25938 case $ol_with_threads in auto | yes | pth)
25939
25940
25941 for ac_header in pth.h
25942 do
25943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25945   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25948   echo $ECHO_N "(cached) $ECHO_C" >&6
25949 fi
25950 ac_res=`eval echo '${'$as_ac_Header'}'`
25951                { echo "$as_me:$LINENO: result: $ac_res" >&5
25952 echo "${ECHO_T}$ac_res" >&6; }
25953 else
25954   # Is the header compilable?
25955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25957 cat >conftest.$ac_ext <<_ACEOF
25958 /* confdefs.h.  */
25959 _ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h.  */
25963 $ac_includes_default
25964 #include <$ac_header>
25965 _ACEOF
25966 rm -f conftest.$ac_objext
25967 if { (ac_try="$ac_compile"
25968 case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973   (eval "$ac_compile") 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } && {
25980          test -z "$ac_c_werror_flag" ||
25981          test ! -s conftest.err
25982        } && test -s conftest.$ac_objext; then
25983   ac_header_compiler=yes
25984 else
25985   echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988         ac_header_compiler=no
25989 fi
25990
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25993 echo "${ECHO_T}$ac_header_compiler" >&6; }
25994
25995 # Is the header present?
25996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25998 cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h.  */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h.  */
26004 #include <$ac_header>
26005 _ACEOF
26006 if { (ac_try="$ac_cpp conftest.$ac_ext"
26007 case "(($ac_try" in
26008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009   *) ac_try_echo=$ac_try;;
26010 esac
26011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } >/dev/null && {
26019          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26020          test ! -s conftest.err
26021        }; then
26022   ac_header_preproc=yes
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027   ac_header_preproc=no
26028 fi
26029
26030 rm -f conftest.err conftest.$ac_ext
26031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26032 echo "${ECHO_T}$ac_header_preproc" >&6; }
26033
26034 # So?  What about this header?
26035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26036   yes:no: )
26037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26041     ac_header_preproc=yes
26042     ;;
26043   no:yes:* )
26044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26046     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26047 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26048     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26050     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26051 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26054     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26056     ( cat <<\_ASBOX
26057 ## --------------------------------------------- ##
26058 ## Report this to <http://www.openldap.org/its/> ##
26059 ## --------------------------------------------- ##
26060 _ASBOX
26061      ) | sed "s/^/$as_me: WARNING:     /" >&2
26062     ;;
26063 esac
26064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26067   echo $ECHO_N "(cached) $ECHO_C" >&6
26068 else
26069   eval "$as_ac_Header=\$ac_header_preproc"
26070 fi
26071 ac_res=`eval echo '${'$as_ac_Header'}'`
26072                { echo "$as_me:$LINENO: result: $ac_res" >&5
26073 echo "${ECHO_T}$ac_res" >&6; }
26074
26075 fi
26076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26077   cat >>confdefs.h <<_ACEOF
26078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26079 _ACEOF
26080
26081 fi
26082
26083 done
26084
26085
26086         if test $ac_cv_header_pth_h = yes ; then
26087                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26088 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26089 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26090   echo $ECHO_N "(cached) $ECHO_C" >&6
26091 else
26092   ac_check_lib_save_LIBS=$LIBS
26093 LIBS="-lpth  $LIBS"
26094 cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100
26101 /* Override any GCC internal prototype to avoid an error.
26102    Use char because int might match the return type of a GCC
26103    builtin and then its argument prototype would still apply.  */
26104 #ifdef __cplusplus
26105 extern "C"
26106 #endif
26107 char pth_version ();
26108 int
26109 main ()
26110 {
26111 return pth_version ();
26112   ;
26113   return 0;
26114 }
26115 _ACEOF
26116 rm -f conftest.$ac_objext conftest$ac_exeext
26117 if { (ac_try="$ac_link"
26118 case "(($ac_try" in
26119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120   *) ac_try_echo=$ac_try;;
26121 esac
26122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26123   (eval "$ac_link") 2>conftest.er1
26124   ac_status=$?
26125   grep -v '^ *+' conftest.er1 >conftest.err
26126   rm -f conftest.er1
26127   cat conftest.err >&5
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); } && {
26130          test -z "$ac_c_werror_flag" ||
26131          test ! -s conftest.err
26132        } && test -s conftest$ac_exeext &&
26133        $as_test_x conftest$ac_exeext; then
26134   ac_cv_lib_pth_pth_version=yes
26135 else
26136   echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26138
26139         ac_cv_lib_pth_pth_version=no
26140 fi
26141
26142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26143       conftest$ac_exeext conftest.$ac_ext
26144 LIBS=$ac_check_lib_save_LIBS
26145 fi
26146 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26147 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26148 if test $ac_cv_lib_pth_pth_version = yes; then
26149   have_pth=yes
26150 else
26151   have_pth=no
26152 fi
26153
26154
26155                 if test $have_pth = yes ; then
26156
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_GNU_PTH 1
26159 _ACEOF
26160
26161                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26162                         ol_link_threads=pth
26163                         ol_with_threads=found
26164
26165                         if test $ol_with_yielding_select = auto ; then
26166                                 ol_with_yielding_select=yes
26167                         fi
26168                 fi
26169         fi
26170         ;;
26171 esac
26172
26173 case $ol_with_threads in auto | yes | lwp)
26174
26175
26176
26177 for ac_header in thread.h synch.h
26178 do
26179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26184   echo $ECHO_N "(cached) $ECHO_C" >&6
26185 fi
26186 ac_res=`eval echo '${'$as_ac_Header'}'`
26187                { echo "$as_me:$LINENO: result: $ac_res" >&5
26188 echo "${ECHO_T}$ac_res" >&6; }
26189 else
26190   # Is the header compilable?
26191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26193 cat >conftest.$ac_ext <<_ACEOF
26194 /* confdefs.h.  */
26195 _ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h.  */
26199 $ac_includes_default
26200 #include <$ac_header>
26201 _ACEOF
26202 rm -f conftest.$ac_objext
26203 if { (ac_try="$ac_compile"
26204 case "(($ac_try" in
26205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206   *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209   (eval "$ac_compile") 2>conftest.er1
26210   ac_status=$?
26211   grep -v '^ *+' conftest.er1 >conftest.err
26212   rm -f conftest.er1
26213   cat conftest.err >&5
26214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215   (exit $ac_status); } && {
26216          test -z "$ac_c_werror_flag" ||
26217          test ! -s conftest.err
26218        } && test -s conftest.$ac_objext; then
26219   ac_header_compiler=yes
26220 else
26221   echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26223
26224         ac_header_compiler=no
26225 fi
26226
26227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26229 echo "${ECHO_T}$ac_header_compiler" >&6; }
26230
26231 # Is the header present?
26232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26234 cat >conftest.$ac_ext <<_ACEOF
26235 /* confdefs.h.  */
26236 _ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h.  */
26240 #include <$ac_header>
26241 _ACEOF
26242 if { (ac_try="$ac_cpp conftest.$ac_ext"
26243 case "(($ac_try" in
26244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245   *) ac_try_echo=$ac_try;;
26246 esac
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26249   ac_status=$?
26250   grep -v '^ *+' conftest.er1 >conftest.err
26251   rm -f conftest.er1
26252   cat conftest.err >&5
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } >/dev/null && {
26255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26256          test ! -s conftest.err
26257        }; then
26258   ac_header_preproc=yes
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263   ac_header_preproc=no
26264 fi
26265
26266 rm -f conftest.err conftest.$ac_ext
26267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26268 echo "${ECHO_T}$ac_header_preproc" >&6; }
26269
26270 # So?  What about this header?
26271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26272   yes:no: )
26273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26277     ac_header_preproc=yes
26278     ;;
26279   no:yes:* )
26280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26292     ( cat <<\_ASBOX
26293 ## --------------------------------------------- ##
26294 ## Report this to <http://www.openldap.org/its/> ##
26295 ## --------------------------------------------- ##
26296 _ASBOX
26297      ) | sed "s/^/$as_me: WARNING:     /" >&2
26298     ;;
26299 esac
26300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26303   echo $ECHO_N "(cached) $ECHO_C" >&6
26304 else
26305   eval "$as_ac_Header=\$ac_header_preproc"
26306 fi
26307 ac_res=`eval echo '${'$as_ac_Header'}'`
26308                { echo "$as_me:$LINENO: result: $ac_res" >&5
26309 echo "${ECHO_T}$ac_res" >&6; }
26310
26311 fi
26312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26313   cat >>confdefs.h <<_ACEOF
26314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26315 _ACEOF
26316
26317 fi
26318
26319 done
26320
26321         if test $ac_cv_header_thread_h = yes &&
26322            test $ac_cv_header_synch_h = yes ; then
26323                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26324 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26325 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26326   echo $ECHO_N "(cached) $ECHO_C" >&6
26327 else
26328   ac_check_lib_save_LIBS=$LIBS
26329 LIBS="-lthread  $LIBS"
26330 cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h.  */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h.  */
26336
26337 /* Override any GCC internal prototype to avoid an error.
26338    Use char because int might match the return type of a GCC
26339    builtin and then its argument prototype would still apply.  */
26340 #ifdef __cplusplus
26341 extern "C"
26342 #endif
26343 char thr_create ();
26344 int
26345 main ()
26346 {
26347 return thr_create ();
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext conftest$ac_exeext
26353 if { (ac_try="$ac_link"
26354 case "(($ac_try" in
26355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356   *) ac_try_echo=$ac_try;;
26357 esac
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359   (eval "$ac_link") 2>conftest.er1
26360   ac_status=$?
26361   grep -v '^ *+' conftest.er1 >conftest.err
26362   rm -f conftest.er1
26363   cat conftest.err >&5
26364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365   (exit $ac_status); } && {
26366          test -z "$ac_c_werror_flag" ||
26367          test ! -s conftest.err
26368        } && test -s conftest$ac_exeext &&
26369        $as_test_x conftest$ac_exeext; then
26370   ac_cv_lib_thread_thr_create=yes
26371 else
26372   echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375         ac_cv_lib_thread_thr_create=no
26376 fi
26377
26378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26379       conftest$ac_exeext conftest.$ac_ext
26380 LIBS=$ac_check_lib_save_LIBS
26381 fi
26382 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26383 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26384 if test $ac_cv_lib_thread_thr_create = yes; then
26385   have_thr=yes
26386 else
26387   have_thr=no
26388 fi
26389
26390
26391                 if test $have_thr = yes ; then
26392
26393 cat >>confdefs.h <<\_ACEOF
26394 #define HAVE_THR 1
26395 _ACEOF
26396
26397                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26398                         ol_link_threads=thr
26399
26400                         if test $ol_with_yielding_select = auto ; then
26401                                 ol_with_yielding_select=yes
26402                         fi
26403
26404
26405
26406 for ac_func in \
26407                                 thr_setconcurrency \
26408                                 thr_getconcurrency \
26409
26410 do
26411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417   cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h.  */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h.  */
26423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26425 #define $ac_func innocuous_$ac_func
26426
26427 /* System header to define __stub macros and hopefully few prototypes,
26428     which can conflict with char $ac_func (); below.
26429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26430     <limits.h> exists even on freestanding compilers.  */
26431
26432 #ifdef __STDC__
26433 # include <limits.h>
26434 #else
26435 # include <assert.h>
26436 #endif
26437
26438 #undef $ac_func
26439
26440 /* Override any GCC internal prototype to avoid an error.
26441    Use char because int might match the return type of a GCC
26442    builtin and then its argument prototype would still apply.  */
26443 #ifdef __cplusplus
26444 extern "C"
26445 #endif
26446 char $ac_func ();
26447 /* The GNU C library defines this for functions which it implements
26448     to always fail with ENOSYS.  Some functions are actually named
26449     something starting with __ and the normal name is an alias.  */
26450 #if defined __stub_$ac_func || defined __stub___$ac_func
26451 choke me
26452 #endif
26453
26454 int
26455 main ()
26456 {
26457 return $ac_func ();
26458   ;
26459   return 0;
26460 }
26461 _ACEOF
26462 rm -f conftest.$ac_objext conftest$ac_exeext
26463 if { (ac_try="$ac_link"
26464 case "(($ac_try" in
26465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26466   *) ac_try_echo=$ac_try;;
26467 esac
26468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26469   (eval "$ac_link") 2>conftest.er1
26470   ac_status=$?
26471   grep -v '^ *+' conftest.er1 >conftest.err
26472   rm -f conftest.er1
26473   cat conftest.err >&5
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); } && {
26476          test -z "$ac_c_werror_flag" ||
26477          test ! -s conftest.err
26478        } && test -s conftest$ac_exeext &&
26479        $as_test_x conftest$ac_exeext; then
26480   eval "$as_ac_var=yes"
26481 else
26482   echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26484
26485         eval "$as_ac_var=no"
26486 fi
26487
26488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26489       conftest$ac_exeext conftest.$ac_ext
26490 fi
26491 ac_res=`eval echo '${'$as_ac_var'}'`
26492                { echo "$as_me:$LINENO: result: $ac_res" >&5
26493 echo "${ECHO_T}$ac_res" >&6; }
26494 if test `eval echo '${'$as_ac_var'}'` = yes; then
26495   cat >>confdefs.h <<_ACEOF
26496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26497 _ACEOF
26498
26499 fi
26500 done
26501
26502                 fi
26503         fi
26504
26505
26506 for ac_header in lwp/lwp.h
26507 do
26508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26510   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26513   echo $ECHO_N "(cached) $ECHO_C" >&6
26514 fi
26515 ac_res=`eval echo '${'$as_ac_Header'}'`
26516                { echo "$as_me:$LINENO: result: $ac_res" >&5
26517 echo "${ECHO_T}$ac_res" >&6; }
26518 else
26519   # Is the header compilable?
26520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26522 cat >conftest.$ac_ext <<_ACEOF
26523 /* confdefs.h.  */
26524 _ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h.  */
26528 $ac_includes_default
26529 #include <$ac_header>
26530 _ACEOF
26531 rm -f conftest.$ac_objext
26532 if { (ac_try="$ac_compile"
26533 case "(($ac_try" in
26534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26535   *) ac_try_echo=$ac_try;;
26536 esac
26537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26538   (eval "$ac_compile") 2>conftest.er1
26539   ac_status=$?
26540   grep -v '^ *+' conftest.er1 >conftest.err
26541   rm -f conftest.er1
26542   cat conftest.err >&5
26543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544   (exit $ac_status); } && {
26545          test -z "$ac_c_werror_flag" ||
26546          test ! -s conftest.err
26547        } && test -s conftest.$ac_objext; then
26548   ac_header_compiler=yes
26549 else
26550   echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553         ac_header_compiler=no
26554 fi
26555
26556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26558 echo "${ECHO_T}$ac_header_compiler" >&6; }
26559
26560 # Is the header present?
26561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26563 cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569 #include <$ac_header>
26570 _ACEOF
26571 if { (ac_try="$ac_cpp conftest.$ac_ext"
26572 case "(($ac_try" in
26573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574   *) ac_try_echo=$ac_try;;
26575 esac
26576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26578   ac_status=$?
26579   grep -v '^ *+' conftest.er1 >conftest.err
26580   rm -f conftest.er1
26581   cat conftest.err >&5
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); } >/dev/null && {
26584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26585          test ! -s conftest.err
26586        }; then
26587   ac_header_preproc=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592   ac_header_preproc=no
26593 fi
26594
26595 rm -f conftest.err conftest.$ac_ext
26596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26597 echo "${ECHO_T}$ac_header_preproc" >&6; }
26598
26599 # So?  What about this header?
26600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26601   yes:no: )
26602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26606     ac_header_preproc=yes
26607     ;;
26608   no:yes:* )
26609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26621     ( cat <<\_ASBOX
26622 ## --------------------------------------------- ##
26623 ## Report this to <http://www.openldap.org/its/> ##
26624 ## --------------------------------------------- ##
26625 _ASBOX
26626      ) | sed "s/^/$as_me: WARNING:     /" >&2
26627     ;;
26628 esac
26629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634   eval "$as_ac_Header=\$ac_header_preproc"
26635 fi
26636 ac_res=`eval echo '${'$as_ac_Header'}'`
26637                { echo "$as_me:$LINENO: result: $ac_res" >&5
26638 echo "${ECHO_T}$ac_res" >&6; }
26639
26640 fi
26641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642   cat >>confdefs.h <<_ACEOF
26643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26644 _ACEOF
26645
26646 fi
26647
26648 done
26649
26650         if test $ac_cv_header_lwp_lwp_h = yes ; then
26651                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26652 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26653 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656   ac_check_lib_save_LIBS=$LIBS
26657 LIBS="-llwp  $LIBS"
26658 cat >conftest.$ac_ext <<_ACEOF
26659 /* confdefs.h.  */
26660 _ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h.  */
26664
26665 /* Override any GCC internal prototype to avoid an error.
26666    Use char because int might match the return type of a GCC
26667    builtin and then its argument prototype would still apply.  */
26668 #ifdef __cplusplus
26669 extern "C"
26670 #endif
26671 char lwp_create ();
26672 int
26673 main ()
26674 {
26675 return lwp_create ();
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (ac_try="$ac_link"
26682 case "(($ac_try" in
26683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684   *) ac_try_echo=$ac_try;;
26685 esac
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687   (eval "$ac_link") 2>conftest.er1
26688   ac_status=$?
26689   grep -v '^ *+' conftest.er1 >conftest.err
26690   rm -f conftest.er1
26691   cat conftest.err >&5
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); } && {
26694          test -z "$ac_c_werror_flag" ||
26695          test ! -s conftest.err
26696        } && test -s conftest$ac_exeext &&
26697        $as_test_x conftest$ac_exeext; then
26698   ac_cv_lib_lwp_lwp_create=yes
26699 else
26700   echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703         ac_cv_lib_lwp_lwp_create=no
26704 fi
26705
26706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26707       conftest$ac_exeext conftest.$ac_ext
26708 LIBS=$ac_check_lib_save_LIBS
26709 fi
26710 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26711 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26712 if test $ac_cv_lib_lwp_lwp_create = yes; then
26713   have_lwp=yes
26714 else
26715   have_lwp=no
26716 fi
26717
26718
26719                 if test $have_lwp = yes ; then
26720
26721 cat >>confdefs.h <<\_ACEOF
26722 #define HAVE_LWP 1
26723 _ACEOF
26724
26725                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26726                         ol_link_threads=lwp
26727
26728                         if test $ol_with_yielding_select = auto ; then
26729                                 ol_with_yielding_select=no
26730                         fi
26731                 fi
26732         fi
26733         ;;
26734 esac
26735
26736 if test $ol_with_yielding_select = yes ; then
26737
26738 cat >>confdefs.h <<\_ACEOF
26739 #define HAVE_YIELDING_SELECT 1
26740 _ACEOF
26741
26742 fi
26743
26744 if test $ol_with_threads = manual ; then
26745                 ol_link_threads=yes
26746
26747         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26748 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26749
26750
26751
26752 for ac_header in pthread.h sched.h
26753 do
26754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26756   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26759   echo $ECHO_N "(cached) $ECHO_C" >&6
26760 fi
26761 ac_res=`eval echo '${'$as_ac_Header'}'`
26762                { echo "$as_me:$LINENO: result: $ac_res" >&5
26763 echo "${ECHO_T}$ac_res" >&6; }
26764 else
26765   # Is the header compilable?
26766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26768 cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 $ac_includes_default
26775 #include <$ac_header>
26776 _ACEOF
26777 rm -f conftest.$ac_objext
26778 if { (ac_try="$ac_compile"
26779 case "(($ac_try" in
26780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26781   *) ac_try_echo=$ac_try;;
26782 esac
26783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26784   (eval "$ac_compile") 2>conftest.er1
26785   ac_status=$?
26786   grep -v '^ *+' conftest.er1 >conftest.err
26787   rm -f conftest.er1
26788   cat conftest.err >&5
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); } && {
26791          test -z "$ac_c_werror_flag" ||
26792          test ! -s conftest.err
26793        } && test -s conftest.$ac_objext; then
26794   ac_header_compiler=yes
26795 else
26796   echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799         ac_header_compiler=no
26800 fi
26801
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6; }
26805
26806 # Is the header present?
26807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26809 cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 #include <$ac_header>
26816 _ACEOF
26817 if { (ac_try="$ac_cpp conftest.$ac_ext"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } >/dev/null && {
26830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26831          test ! -s conftest.err
26832        }; then
26833   ac_header_preproc=yes
26834 else
26835   echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26837
26838   ac_header_preproc=no
26839 fi
26840
26841 rm -f conftest.err conftest.$ac_ext
26842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26843 echo "${ECHO_T}$ac_header_preproc" >&6; }
26844
26845 # So?  What about this header?
26846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26847   yes:no: )
26848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26852     ac_header_preproc=yes
26853     ;;
26854   no:yes:* )
26855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26867     ( cat <<\_ASBOX
26868 ## --------------------------------------------- ##
26869 ## Report this to <http://www.openldap.org/its/> ##
26870 ## --------------------------------------------- ##
26871 _ASBOX
26872      ) | sed "s/^/$as_me: WARNING:     /" >&2
26873     ;;
26874 esac
26875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26878   echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880   eval "$as_ac_Header=\$ac_header_preproc"
26881 fi
26882 ac_res=`eval echo '${'$as_ac_Header'}'`
26883                { echo "$as_me:$LINENO: result: $ac_res" >&5
26884 echo "${ECHO_T}$ac_res" >&6; }
26885
26886 fi
26887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26888   cat >>confdefs.h <<_ACEOF
26889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26890 _ACEOF
26891
26892 fi
26893
26894 done
26895
26896
26897
26898 for ac_func in sched_yield pthread_yield
26899 do
26900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26904   echo $ECHO_N "(cached) $ECHO_C" >&6
26905 else
26906   cat >conftest.$ac_ext <<_ACEOF
26907 /* confdefs.h.  */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h.  */
26912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26914 #define $ac_func innocuous_$ac_func
26915
26916 /* System header to define __stub macros and hopefully few prototypes,
26917     which can conflict with char $ac_func (); below.
26918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26919     <limits.h> exists even on freestanding compilers.  */
26920
26921 #ifdef __STDC__
26922 # include <limits.h>
26923 #else
26924 # include <assert.h>
26925 #endif
26926
26927 #undef $ac_func
26928
26929 /* Override any GCC internal prototype to avoid an error.
26930    Use char because int might match the return type of a GCC
26931    builtin and then its argument prototype would still apply.  */
26932 #ifdef __cplusplus
26933 extern "C"
26934 #endif
26935 char $ac_func ();
26936 /* The GNU C library defines this for functions which it implements
26937     to always fail with ENOSYS.  Some functions are actually named
26938     something starting with __ and the normal name is an alias.  */
26939 #if defined __stub_$ac_func || defined __stub___$ac_func
26940 choke me
26941 #endif
26942
26943 int
26944 main ()
26945 {
26946 return $ac_func ();
26947   ;
26948   return 0;
26949 }
26950 _ACEOF
26951 rm -f conftest.$ac_objext conftest$ac_exeext
26952 if { (ac_try="$ac_link"
26953 case "(($ac_try" in
26954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26955   *) ac_try_echo=$ac_try;;
26956 esac
26957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26958   (eval "$ac_link") 2>conftest.er1
26959   ac_status=$?
26960   grep -v '^ *+' conftest.er1 >conftest.err
26961   rm -f conftest.er1
26962   cat conftest.err >&5
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); } && {
26965          test -z "$ac_c_werror_flag" ||
26966          test ! -s conftest.err
26967        } && test -s conftest$ac_exeext &&
26968        $as_test_x conftest$ac_exeext; then
26969   eval "$as_ac_var=yes"
26970 else
26971   echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26973
26974         eval "$as_ac_var=no"
26975 fi
26976
26977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26978       conftest$ac_exeext conftest.$ac_ext
26979 fi
26980 ac_res=`eval echo '${'$as_ac_var'}'`
26981                { echo "$as_me:$LINENO: result: $ac_res" >&5
26982 echo "${ECHO_T}$ac_res" >&6; }
26983 if test `eval echo '${'$as_ac_var'}'` = yes; then
26984   cat >>confdefs.h <<_ACEOF
26985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26986 _ACEOF
26987
26988 fi
26989 done
26990
26991
26992         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26993 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26994 if test "${ol_cv_header_linux_threads+set}" = set; then
26995   echo $ECHO_N "(cached) $ECHO_C" >&6
26996 else
26997   cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h.  */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h.  */
27003 #include <pthread.h>
27004 _ACEOF
27005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27006   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27007   ol_cv_header_linux_threads=yes
27008 else
27009   ol_cv_header_linux_threads=no
27010 fi
27011 rm -f conftest*
27012
27013
27014 fi
27015 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27016 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27017         if test $ol_cv_header_linux_threads = yes; then
27018
27019 cat >>confdefs.h <<\_ACEOF
27020 #define HAVE_LINUX_THREADS 1
27021 _ACEOF
27022
27023         fi
27024
27025
27026
27027 for ac_header in mach/cthreads.h
27028 do
27029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27031   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 fi
27036 ac_res=`eval echo '${'$as_ac_Header'}'`
27037                { echo "$as_me:$LINENO: result: $ac_res" >&5
27038 echo "${ECHO_T}$ac_res" >&6; }
27039 else
27040   # Is the header compilable?
27041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27043 cat >conftest.$ac_ext <<_ACEOF
27044 /* confdefs.h.  */
27045 _ACEOF
27046 cat confdefs.h >>conftest.$ac_ext
27047 cat >>conftest.$ac_ext <<_ACEOF
27048 /* end confdefs.h.  */
27049 $ac_includes_default
27050 #include <$ac_header>
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056   *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059   (eval "$ac_compile") 2>conftest.er1
27060   ac_status=$?
27061   grep -v '^ *+' conftest.er1 >conftest.err
27062   rm -f conftest.er1
27063   cat conftest.err >&5
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } && {
27066          test -z "$ac_c_werror_flag" ||
27067          test ! -s conftest.err
27068        } && test -s conftest.$ac_objext; then
27069   ac_header_compiler=yes
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074         ac_header_compiler=no
27075 fi
27076
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27079 echo "${ECHO_T}$ac_header_compiler" >&6; }
27080
27081 # Is the header present?
27082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27084 cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090 #include <$ac_header>
27091 _ACEOF
27092 if { (ac_try="$ac_cpp conftest.$ac_ext"
27093 case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } >/dev/null && {
27105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27106          test ! -s conftest.err
27107        }; then
27108   ac_header_preproc=yes
27109 else
27110   echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27112
27113   ac_header_preproc=no
27114 fi
27115
27116 rm -f conftest.err conftest.$ac_ext
27117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27118 echo "${ECHO_T}$ac_header_preproc" >&6; }
27119
27120 # So?  What about this header?
27121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27122   yes:no: )
27123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27127     ac_header_preproc=yes
27128     ;;
27129   no:yes:* )
27130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27142     ( cat <<\_ASBOX
27143 ## --------------------------------------------- ##
27144 ## Report this to <http://www.openldap.org/its/> ##
27145 ## --------------------------------------------- ##
27146 _ASBOX
27147      ) | sed "s/^/$as_me: WARNING:     /" >&2
27148     ;;
27149 esac
27150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27153   echo $ECHO_N "(cached) $ECHO_C" >&6
27154 else
27155   eval "$as_ac_Header=\$ac_header_preproc"
27156 fi
27157 ac_res=`eval echo '${'$as_ac_Header'}'`
27158                { echo "$as_me:$LINENO: result: $ac_res" >&5
27159 echo "${ECHO_T}$ac_res" >&6; }
27160
27161 fi
27162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27163   cat >>confdefs.h <<_ACEOF
27164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27165 _ACEOF
27166
27167 fi
27168
27169 done
27170
27171
27172 for ac_header in lwp/lwp.h
27173 do
27174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27179   echo $ECHO_N "(cached) $ECHO_C" >&6
27180 fi
27181 ac_res=`eval echo '${'$as_ac_Header'}'`
27182                { echo "$as_me:$LINENO: result: $ac_res" >&5
27183 echo "${ECHO_T}$ac_res" >&6; }
27184 else
27185   # Is the header compilable?
27186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27188 cat >conftest.$ac_ext <<_ACEOF
27189 /* confdefs.h.  */
27190 _ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h.  */
27194 $ac_includes_default
27195 #include <$ac_header>
27196 _ACEOF
27197 rm -f conftest.$ac_objext
27198 if { (ac_try="$ac_compile"
27199 case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204   (eval "$ac_compile") 2>conftest.er1
27205   ac_status=$?
27206   grep -v '^ *+' conftest.er1 >conftest.err
27207   rm -f conftest.er1
27208   cat conftest.err >&5
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); } && {
27211          test -z "$ac_c_werror_flag" ||
27212          test ! -s conftest.err
27213        } && test -s conftest.$ac_objext; then
27214   ac_header_compiler=yes
27215 else
27216   echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219         ac_header_compiler=no
27220 fi
27221
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27224 echo "${ECHO_T}$ac_header_compiler" >&6; }
27225
27226 # Is the header present?
27227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27229 cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 #include <$ac_header>
27236 _ACEOF
27237 if { (ac_try="$ac_cpp conftest.$ac_ext"
27238 case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27244   ac_status=$?
27245   grep -v '^ *+' conftest.er1 >conftest.err
27246   rm -f conftest.er1
27247   cat conftest.err >&5
27248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249   (exit $ac_status); } >/dev/null && {
27250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27251          test ! -s conftest.err
27252        }; then
27253   ac_header_preproc=yes
27254 else
27255   echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27257
27258   ac_header_preproc=no
27259 fi
27260
27261 rm -f conftest.err conftest.$ac_ext
27262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27263 echo "${ECHO_T}$ac_header_preproc" >&6; }
27264
27265 # So?  What about this header?
27266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27267   yes:no: )
27268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27272     ac_header_preproc=yes
27273     ;;
27274   no:yes:* )
27275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27287     ( cat <<\_ASBOX
27288 ## --------------------------------------------- ##
27289 ## Report this to <http://www.openldap.org/its/> ##
27290 ## --------------------------------------------- ##
27291 _ASBOX
27292      ) | sed "s/^/$as_me: WARNING:     /" >&2
27293     ;;
27294 esac
27295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27298   echo $ECHO_N "(cached) $ECHO_C" >&6
27299 else
27300   eval "$as_ac_Header=\$ac_header_preproc"
27301 fi
27302 ac_res=`eval echo '${'$as_ac_Header'}'`
27303                { echo "$as_me:$LINENO: result: $ac_res" >&5
27304 echo "${ECHO_T}$ac_res" >&6; }
27305
27306 fi
27307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27308   cat >>confdefs.h <<_ACEOF
27309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27310 _ACEOF
27311
27312 fi
27313
27314 done
27315
27316
27317
27318 for ac_header in thread.h synch.h
27319 do
27320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27325   echo $ECHO_N "(cached) $ECHO_C" >&6
27326 fi
27327 ac_res=`eval echo '${'$as_ac_Header'}'`
27328                { echo "$as_me:$LINENO: result: $ac_res" >&5
27329 echo "${ECHO_T}$ac_res" >&6; }
27330 else
27331   # Is the header compilable?
27332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27334 cat >conftest.$ac_ext <<_ACEOF
27335 /* confdefs.h.  */
27336 _ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h.  */
27340 $ac_includes_default
27341 #include <$ac_header>
27342 _ACEOF
27343 rm -f conftest.$ac_objext
27344 if { (ac_try="$ac_compile"
27345 case "(($ac_try" in
27346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347   *) ac_try_echo=$ac_try;;
27348 esac
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350   (eval "$ac_compile") 2>conftest.er1
27351   ac_status=$?
27352   grep -v '^ *+' conftest.er1 >conftest.err
27353   rm -f conftest.er1
27354   cat conftest.err >&5
27355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356   (exit $ac_status); } && {
27357          test -z "$ac_c_werror_flag" ||
27358          test ! -s conftest.err
27359        } && test -s conftest.$ac_objext; then
27360   ac_header_compiler=yes
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365         ac_header_compiler=no
27366 fi
27367
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27370 echo "${ECHO_T}$ac_header_compiler" >&6; }
27371
27372 # Is the header present?
27373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27375 cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381 #include <$ac_header>
27382 _ACEOF
27383 if { (ac_try="$ac_cpp conftest.$ac_ext"
27384 case "(($ac_try" in
27385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386   *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27390   ac_status=$?
27391   grep -v '^ *+' conftest.er1 >conftest.err
27392   rm -f conftest.er1
27393   cat conftest.err >&5
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } >/dev/null && {
27396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27397          test ! -s conftest.err
27398        }; then
27399   ac_header_preproc=yes
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404   ac_header_preproc=no
27405 fi
27406
27407 rm -f conftest.err conftest.$ac_ext
27408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27409 echo "${ECHO_T}$ac_header_preproc" >&6; }
27410
27411 # So?  What about this header?
27412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27413   yes:no: )
27414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27418     ac_header_preproc=yes
27419     ;;
27420   no:yes:* )
27421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27433     ( cat <<\_ASBOX
27434 ## --------------------------------------------- ##
27435 ## Report this to <http://www.openldap.org/its/> ##
27436 ## --------------------------------------------- ##
27437 _ASBOX
27438      ) | sed "s/^/$as_me: WARNING:     /" >&2
27439     ;;
27440 esac
27441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27444   echo $ECHO_N "(cached) $ECHO_C" >&6
27445 else
27446   eval "$as_ac_Header=\$ac_header_preproc"
27447 fi
27448 ac_res=`eval echo '${'$as_ac_Header'}'`
27449                { echo "$as_me:$LINENO: result: $ac_res" >&5
27450 echo "${ECHO_T}$ac_res" >&6; }
27451
27452 fi
27453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27454   cat >>confdefs.h <<_ACEOF
27455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27456 _ACEOF
27457
27458 fi
27459
27460 done
27461
27462 fi
27463
27464 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27465                         cat >>confdefs.h <<\_ACEOF
27466 #define REENTRANT 1
27467 _ACEOF
27468
27469         cat >>confdefs.h <<\_ACEOF
27470 #define _REENTRANT 1
27471 _ACEOF
27472
27473         cat >>confdefs.h <<\_ACEOF
27474 #define THREAD_SAFE 1
27475 _ACEOF
27476
27477         cat >>confdefs.h <<\_ACEOF
27478 #define _THREAD_SAFE 1
27479 _ACEOF
27480
27481         cat >>confdefs.h <<\_ACEOF
27482 #define THREADSAFE 1
27483 _ACEOF
27484
27485         cat >>confdefs.h <<\_ACEOF
27486 #define _THREADSAFE 1
27487 _ACEOF
27488
27489         cat >>confdefs.h <<\_ACEOF
27490 #define _SGI_MP_SOURCE 1
27491 _ACEOF
27492
27493
27494                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27495 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27496 if test "${ol_cv_errno_thread_specific+set}" = set; then
27497   echo $ECHO_N "(cached) $ECHO_C" >&6
27498 else
27499
27500                 cat >conftest.$ac_ext <<_ACEOF
27501 /* confdefs.h.  */
27502 _ACEOF
27503 cat confdefs.h >>conftest.$ac_ext
27504 cat >>conftest.$ac_ext <<_ACEOF
27505 /* end confdefs.h.  */
27506 #include <errno.h>
27507 int
27508 main ()
27509 {
27510 errno = 0;
27511   ;
27512   return 0;
27513 }
27514 _ACEOF
27515 rm -f conftest.$ac_objext conftest$ac_exeext
27516 if { (ac_try="$ac_link"
27517 case "(($ac_try" in
27518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519   *) ac_try_echo=$ac_try;;
27520 esac
27521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27522   (eval "$ac_link") 2>conftest.er1
27523   ac_status=$?
27524   grep -v '^ *+' conftest.er1 >conftest.err
27525   rm -f conftest.er1
27526   cat conftest.err >&5
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); } && {
27529          test -z "$ac_c_werror_flag" ||
27530          test ! -s conftest.err
27531        } && test -s conftest$ac_exeext &&
27532        $as_test_x conftest$ac_exeext; then
27533   ol_cv_errno_thread_specific=yes
27534 else
27535   echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27537
27538         ol_cv_errno_thread_specific=no
27539 fi
27540
27541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27542       conftest$ac_exeext conftest.$ac_ext
27543
27544 fi
27545 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27546 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27547
27548                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27549 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27550 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27551   echo $ECHO_N "(cached) $ECHO_C" >&6
27552 else
27553
27554                 cat >conftest.$ac_ext <<_ACEOF
27555 /* confdefs.h.  */
27556 _ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h.  */
27560 #include <netdb.h>
27561 int
27562 main ()
27563 {
27564 h_errno = 0;
27565   ;
27566   return 0;
27567 }
27568 _ACEOF
27569 rm -f conftest.$ac_objext conftest$ac_exeext
27570 if { (ac_try="$ac_link"
27571 case "(($ac_try" in
27572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573   *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576   (eval "$ac_link") 2>conftest.er1
27577   ac_status=$?
27578   grep -v '^ *+' conftest.er1 >conftest.err
27579   rm -f conftest.er1
27580   cat conftest.err >&5
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); } && {
27583          test -z "$ac_c_werror_flag" ||
27584          test ! -s conftest.err
27585        } && test -s conftest$ac_exeext &&
27586        $as_test_x conftest$ac_exeext; then
27587   ol_cv_h_errno_thread_specific=yes
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592         ol_cv_h_errno_thread_specific=no
27593 fi
27594
27595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27596       conftest$ac_exeext conftest.$ac_ext
27597
27598 fi
27599 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27600 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27601
27602         if test $ol_cv_errno_thread_specific != yes ||
27603            test $ol_cv_h_errno_thread_specific != yes ; then
27604                 LIBS="$LTHREAD_LIBS $LIBS"
27605                 LTHREAD_LIBS=""
27606         fi
27607
27608 fi
27609
27610 if test $ol_link_threads = no ; then
27611         if test $ol_with_threads = yes ; then
27612                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27613 echo "$as_me: error: no suitable thread support" >&2;}
27614    { (exit 1); exit 1; }; }
27615         fi
27616
27617         if test $ol_with_threads = auto ; then
27618                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27619 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27620                 ol_with_threads=no
27621         fi
27622
27623
27624 cat >>confdefs.h <<\_ACEOF
27625 #define NO_THREADS 1
27626 _ACEOF
27627
27628         LTHREAD_LIBS=""
27629         BUILD_THREAD=no
27630 else
27631         BUILD_THREAD=yes
27632 fi
27633
27634 if test $ol_link_threads != no ; then
27635
27636 cat >>confdefs.h <<\_ACEOF
27637 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27638 _ACEOF
27639
27640 fi
27641
27642
27643
27644
27645
27646
27647 for ac_func in \
27648         ctime_r                 \
27649         gmtime_r localtime_r \
27650         gethostbyname_r gethostbyaddr_r \
27651
27652 do
27653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27657   echo $ECHO_N "(cached) $ECHO_C" >&6
27658 else
27659   cat >conftest.$ac_ext <<_ACEOF
27660 /* confdefs.h.  */
27661 _ACEOF
27662 cat confdefs.h >>conftest.$ac_ext
27663 cat >>conftest.$ac_ext <<_ACEOF
27664 /* end confdefs.h.  */
27665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27667 #define $ac_func innocuous_$ac_func
27668
27669 /* System header to define __stub macros and hopefully few prototypes,
27670     which can conflict with char $ac_func (); below.
27671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27672     <limits.h> exists even on freestanding compilers.  */
27673
27674 #ifdef __STDC__
27675 # include <limits.h>
27676 #else
27677 # include <assert.h>
27678 #endif
27679
27680 #undef $ac_func
27681
27682 /* Override any GCC internal prototype to avoid an error.
27683    Use char because int might match the return type of a GCC
27684    builtin and then its argument prototype would still apply.  */
27685 #ifdef __cplusplus
27686 extern "C"
27687 #endif
27688 char $ac_func ();
27689 /* The GNU C library defines this for functions which it implements
27690     to always fail with ENOSYS.  Some functions are actually named
27691     something starting with __ and the normal name is an alias.  */
27692 #if defined __stub_$ac_func || defined __stub___$ac_func
27693 choke me
27694 #endif
27695
27696 int
27697 main ()
27698 {
27699 return $ac_func ();
27700   ;
27701   return 0;
27702 }
27703 _ACEOF
27704 rm -f conftest.$ac_objext conftest$ac_exeext
27705 if { (ac_try="$ac_link"
27706 case "(($ac_try" in
27707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708   *) ac_try_echo=$ac_try;;
27709 esac
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711   (eval "$ac_link") 2>conftest.er1
27712   ac_status=$?
27713   grep -v '^ *+' conftest.er1 >conftest.err
27714   rm -f conftest.er1
27715   cat conftest.err >&5
27716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); } && {
27718          test -z "$ac_c_werror_flag" ||
27719          test ! -s conftest.err
27720        } && test -s conftest$ac_exeext &&
27721        $as_test_x conftest$ac_exeext; then
27722   eval "$as_ac_var=yes"
27723 else
27724   echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27726
27727         eval "$as_ac_var=no"
27728 fi
27729
27730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27731       conftest$ac_exeext conftest.$ac_ext
27732 fi
27733 ac_res=`eval echo '${'$as_ac_var'}'`
27734                { echo "$as_me:$LINENO: result: $ac_res" >&5
27735 echo "${ECHO_T}$ac_res" >&6; }
27736 if test `eval echo '${'$as_ac_var'}'` = yes; then
27737   cat >>confdefs.h <<_ACEOF
27738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27739 _ACEOF
27740
27741 fi
27742 done
27743
27744
27745 if test "$ac_cv_func_ctime_r" = no ; then
27746         ol_cv_func_ctime_r_nargs=0
27747 else
27748         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27749 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27750 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27751   echo $ECHO_N "(cached) $ECHO_C" >&6
27752 else
27753   cat >conftest.$ac_ext <<_ACEOF
27754 /* confdefs.h.  */
27755 _ACEOF
27756 cat confdefs.h >>conftest.$ac_ext
27757 cat >>conftest.$ac_ext <<_ACEOF
27758 /* end confdefs.h.  */
27759 #include <time.h>
27760 int
27761 main ()
27762 {
27763 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27764   ;
27765   return 0;
27766 }
27767 _ACEOF
27768 rm -f conftest.$ac_objext
27769 if { (ac_try="$ac_compile"
27770 case "(($ac_try" in
27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772   *) ac_try_echo=$ac_try;;
27773 esac
27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775   (eval "$ac_compile") 2>conftest.er1
27776   ac_status=$?
27777   grep -v '^ *+' conftest.er1 >conftest.err
27778   rm -f conftest.er1
27779   cat conftest.err >&5
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); } && {
27782          test -z "$ac_c_werror_flag" ||
27783          test ! -s conftest.err
27784        } && test -s conftest.$ac_objext; then
27785   ol_cv_func_ctime_r_nargs3=yes
27786 else
27787   echo "$as_me: failed program was:" >&5
27788 sed 's/^/| /' conftest.$ac_ext >&5
27789
27790         ol_cv_func_ctime_r_nargs3=no
27791 fi
27792
27793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27794
27795         cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h.  */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h.  */
27801 #include <time.h>
27802 int
27803 main ()
27804 {
27805 time_t ti; char *buffer; ctime_r(&ti,buffer);
27806   ;
27807   return 0;
27808 }
27809 _ACEOF
27810 rm -f conftest.$ac_objext
27811 if { (ac_try="$ac_compile"
27812 case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817   (eval "$ac_compile") 2>conftest.er1
27818   ac_status=$?
27819   grep -v '^ *+' conftest.er1 >conftest.err
27820   rm -f conftest.er1
27821   cat conftest.err >&5
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); } && {
27824          test -z "$ac_c_werror_flag" ||
27825          test ! -s conftest.err
27826        } && test -s conftest.$ac_objext; then
27827   ol_cv_func_ctime_r_nargs2=yes
27828 else
27829   echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832         ol_cv_func_ctime_r_nargs2=no
27833 fi
27834
27835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27836
27837         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27838            test $ol_cv_func_ctime_r_nargs2 = no ; then
27839
27840                 ol_cv_func_ctime_r_nargs=3
27841
27842         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27843              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27844
27845                 ol_cv_func_ctime_r_nargs=2
27846
27847         else
27848                 ol_cv_func_ctime_r_nargs=0
27849         fi
27850
27851 fi
27852 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27853 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27854
27855   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27856
27857 cat >>confdefs.h <<_ACEOF
27858 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27859 _ACEOF
27860
27861   fi
27862
27863 fi
27864
27865 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27866         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27867 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27868 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27869   echo $ECHO_N "(cached) $ECHO_C" >&6
27870 else
27871   cat >conftest.$ac_ext <<_ACEOF
27872 /* confdefs.h.  */
27873 _ACEOF
27874 cat confdefs.h >>conftest.$ac_ext
27875 cat >>conftest.$ac_ext <<_ACEOF
27876 /* end confdefs.h.  */
27877 #include <sys/types.h>
27878 #include <sys/socket.h>
27879 #include <netinet/in.h>
27880 #include <netdb.h>
27881 #define BUFSIZE (sizeof(struct hostent)+10)
27882 int
27883 main ()
27884 {
27885 struct hostent hent; char buffer[BUFSIZE];
27886                 int bufsize=BUFSIZE;int h_errno;
27887                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27888                         buffer, bufsize, &h_errno);
27889   ;
27890   return 0;
27891 }
27892 _ACEOF
27893 rm -f conftest.$ac_objext
27894 if { (ac_try="$ac_compile"
27895 case "(($ac_try" in
27896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897   *) ac_try_echo=$ac_try;;
27898 esac
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900   (eval "$ac_compile") 2>conftest.er1
27901   ac_status=$?
27902   grep -v '^ *+' conftest.er1 >conftest.err
27903   rm -f conftest.er1
27904   cat conftest.err >&5
27905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906   (exit $ac_status); } && {
27907          test -z "$ac_c_werror_flag" ||
27908          test ! -s conftest.err
27909        } && test -s conftest.$ac_objext; then
27910   ol_cv_func_gethostbyname_r_nargs5=yes
27911 else
27912   echo "$as_me: failed program was:" >&5
27913 sed 's/^/| /' conftest.$ac_ext >&5
27914
27915         ol_cv_func_gethostbyname_r_nargs5=no
27916 fi
27917
27918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27919
27920         cat >conftest.$ac_ext <<_ACEOF
27921 /* confdefs.h.  */
27922 _ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h.  */
27926 #include <sys/types.h>
27927 #include <sys/socket.h>
27928 #include <netinet/in.h>
27929 #include <netdb.h>
27930 #define BUFSIZE (sizeof(struct hostent)+10)
27931 int
27932 main ()
27933 {
27934 struct hostent hent;struct hostent *rhent;
27935                 char buffer[BUFSIZE];
27936                 int bufsize=BUFSIZE;int h_errno;
27937                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27938                         &rhent, &h_errno);
27939   ;
27940   return 0;
27941 }
27942 _ACEOF
27943 rm -f conftest.$ac_objext
27944 if { (ac_try="$ac_compile"
27945 case "(($ac_try" in
27946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947   *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950   (eval "$ac_compile") 2>conftest.er1
27951   ac_status=$?
27952   grep -v '^ *+' conftest.er1 >conftest.err
27953   rm -f conftest.er1
27954   cat conftest.err >&5
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); } && {
27957          test -z "$ac_c_werror_flag" ||
27958          test ! -s conftest.err
27959        } && test -s conftest.$ac_objext; then
27960   ol_cv_func_gethostbyname_r_nargs6=yes
27961 else
27962   echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27964
27965         ol_cv_func_gethostbyname_r_nargs6=no
27966 fi
27967
27968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27969
27970         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27971            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27972
27973                 ol_cv_func_gethostbyname_r_nargs=5
27974
27975         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27976              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27977
27978                 ol_cv_func_gethostbyname_r_nargs=6
27979
27980         else
27981                 ol_cv_func_gethostbyname_r_nargs=0
27982         fi
27983
27984 fi
27985 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27986 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27987   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27988
27989 cat >>confdefs.h <<_ACEOF
27990 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27991 _ACEOF
27992
27993   fi
27994
27995 else
27996         ol_cv_func_gethostbyname_r_nargs=0
27997 fi
27998
27999 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28000         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28001 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
28002 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28003   echo $ECHO_N "(cached) $ECHO_C" >&6
28004 else
28005   cat >conftest.$ac_ext <<_ACEOF
28006 /* confdefs.h.  */
28007 _ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h.  */
28011 #include <sys/types.h>
28012 #include <sys/socket.h>
28013 #include <netinet/in.h>
28014 #include <netdb.h>
28015 #define BUFSIZE (sizeof(struct hostent)+10)
28016 int
28017 main ()
28018 {
28019 struct hostent hent; char buffer[BUFSIZE];
28020             struct in_addr add;
28021             size_t alen=sizeof(struct in_addr);
28022             int bufsize=BUFSIZE;int h_errno;
28023                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28024                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28025   ;
28026   return 0;
28027 }
28028 _ACEOF
28029 rm -f conftest.$ac_objext
28030 if { (ac_try="$ac_compile"
28031 case "(($ac_try" in
28032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033   *) ac_try_echo=$ac_try;;
28034 esac
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036   (eval "$ac_compile") 2>conftest.er1
28037   ac_status=$?
28038   grep -v '^ *+' conftest.er1 >conftest.err
28039   rm -f conftest.er1
28040   cat conftest.err >&5
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); } && {
28043          test -z "$ac_c_werror_flag" ||
28044          test ! -s conftest.err
28045        } && test -s conftest.$ac_objext; then
28046   ol_cv_func_gethostbyaddr_r_nargs7=yes
28047 else
28048   echo "$as_me: failed program was:" >&5
28049 sed 's/^/| /' conftest.$ac_ext >&5
28050
28051         ol_cv_func_gethostbyaddr_r_nargs7=no
28052 fi
28053
28054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28055
28056         cat >conftest.$ac_ext <<_ACEOF
28057 /* confdefs.h.  */
28058 _ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h.  */
28062 #include <sys/types.h>
28063 #include <sys/socket.h>
28064 #include <netinet/in.h>
28065 #include <netdb.h>
28066 #define BUFSIZE (sizeof(struct hostent)+10)
28067 int
28068 main ()
28069 {
28070 struct hostent hent;
28071                 struct hostent *rhent; char buffer[BUFSIZE];
28072                 struct in_addr add;
28073                 size_t alen=sizeof(struct in_addr);
28074                 int bufsize=BUFSIZE;int h_errno;
28075                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28076                         alen, AF_INET, &hent, buffer, bufsize,
28077                         &rhent, &h_errno);
28078   ;
28079   return 0;
28080 }
28081 _ACEOF
28082 rm -f conftest.$ac_objext
28083 if { (ac_try="$ac_compile"
28084 case "(($ac_try" in
28085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086   *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089   (eval "$ac_compile") 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } && {
28096          test -z "$ac_c_werror_flag" ||
28097          test ! -s conftest.err
28098        } && test -s conftest.$ac_objext; then
28099   ol_cv_func_gethostbyaddr_r_nargs8=yes
28100 else
28101   echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104         ol_cv_func_gethostbyaddr_r_nargs8=no
28105 fi
28106
28107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28108
28109         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28110            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28111
28112                 ol_cv_func_gethostbyaddr_r_nargs=7
28113
28114         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28115              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28116
28117                 ol_cv_func_gethostbyaddr_r_nargs=8
28118
28119         else
28120                 ol_cv_func_gethostbyaddr_r_nargs=0
28121         fi
28122
28123 fi
28124 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28125 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28126   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28127
28128 cat >>confdefs.h <<_ACEOF
28129 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28130 _ACEOF
28131
28132   fi
28133
28134 else
28135         ol_cv_func_gethostbyaddr_r_nargs=0
28136 fi
28137
28138 ol_link_bdb=no
28139
28140 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28141         ol_cv_berkeley_db=no
28142
28143 for ac_header in db.h
28144 do
28145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28147   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28150   echo $ECHO_N "(cached) $ECHO_C" >&6
28151 fi
28152 ac_res=`eval echo '${'$as_ac_Header'}'`
28153                { echo "$as_me:$LINENO: result: $ac_res" >&5
28154 echo "${ECHO_T}$ac_res" >&6; }
28155 else
28156   # Is the header compilable?
28157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28159 cat >conftest.$ac_ext <<_ACEOF
28160 /* confdefs.h.  */
28161 _ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h.  */
28165 $ac_includes_default
28166 #include <$ac_header>
28167 _ACEOF
28168 rm -f conftest.$ac_objext
28169 if { (ac_try="$ac_compile"
28170 case "(($ac_try" in
28171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172   *) ac_try_echo=$ac_try;;
28173 esac
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175   (eval "$ac_compile") 2>conftest.er1
28176   ac_status=$?
28177   grep -v '^ *+' conftest.er1 >conftest.err
28178   rm -f conftest.er1
28179   cat conftest.err >&5
28180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181   (exit $ac_status); } && {
28182          test -z "$ac_c_werror_flag" ||
28183          test ! -s conftest.err
28184        } && test -s conftest.$ac_objext; then
28185   ac_header_compiler=yes
28186 else
28187   echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28189
28190         ac_header_compiler=no
28191 fi
28192
28193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28195 echo "${ECHO_T}$ac_header_compiler" >&6; }
28196
28197 # Is the header present?
28198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28200 cat >conftest.$ac_ext <<_ACEOF
28201 /* confdefs.h.  */
28202 _ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h.  */
28206 #include <$ac_header>
28207 _ACEOF
28208 if { (ac_try="$ac_cpp conftest.$ac_ext"
28209 case "(($ac_try" in
28210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211   *) ac_try_echo=$ac_try;;
28212 esac
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28215   ac_status=$?
28216   grep -v '^ *+' conftest.er1 >conftest.err
28217   rm -f conftest.er1
28218   cat conftest.err >&5
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); } >/dev/null && {
28221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28222          test ! -s conftest.err
28223        }; then
28224   ac_header_preproc=yes
28225 else
28226   echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28228
28229   ac_header_preproc=no
28230 fi
28231
28232 rm -f conftest.err conftest.$ac_ext
28233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28234 echo "${ECHO_T}$ac_header_preproc" >&6; }
28235
28236 # So?  What about this header?
28237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28238   yes:no: )
28239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28243     ac_header_preproc=yes
28244     ;;
28245   no:yes:* )
28246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28258     ( cat <<\_ASBOX
28259 ## --------------------------------------------- ##
28260 ## Report this to <http://www.openldap.org/its/> ##
28261 ## --------------------------------------------- ##
28262 _ASBOX
28263      ) | sed "s/^/$as_me: WARNING:     /" >&2
28264     ;;
28265 esac
28266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28269   echo $ECHO_N "(cached) $ECHO_C" >&6
28270 else
28271   eval "$as_ac_Header=\$ac_header_preproc"
28272 fi
28273 ac_res=`eval echo '${'$as_ac_Header'}'`
28274                { echo "$as_me:$LINENO: result: $ac_res" >&5
28275 echo "${ECHO_T}$ac_res" >&6; }
28276
28277 fi
28278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28279   cat >>confdefs.h <<_ACEOF
28280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28281 _ACEOF
28282
28283 fi
28284
28285 done
28286
28287 if test $ac_cv_header_db_h = yes; then
28288         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28289 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28290 if test "${ol_cv_bdb_major+set}" = set; then
28291   echo $ECHO_N "(cached) $ECHO_C" >&6
28292 else
28293
28294         cat >conftest.$ac_ext <<_ACEOF
28295
28296 #include <db.h>
28297 #ifndef DB_VERSION_MAJOR
28298 #       define DB_VERSION_MAJOR 1
28299 #endif
28300 __db_version DB_VERSION_MAJOR
28301
28302 _ACEOF
28303         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28304         ol_cv_bdb_major=${3}
28305
28306 fi
28307 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28308 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28309 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28310         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28311 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28312    { (exit 1); exit 1; }; } ;;
28313 esac
28314
28315 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28316 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28317 if test "${ol_cv_bdb_minor+set}" = set; then
28318   echo $ECHO_N "(cached) $ECHO_C" >&6
28319 else
28320
28321         cat >conftest.$ac_ext <<_ACEOF
28322
28323 #include <db.h>
28324 #ifndef DB_VERSION_MINOR
28325 #       define DB_VERSION_MINOR 0
28326 #endif
28327 __db_version DB_VERSION_MINOR
28328
28329 _ACEOF
28330         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28331         ol_cv_bdb_minor=${3}
28332
28333 fi
28334 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28335 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28336 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28337         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28338 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28339    { (exit 1); exit 1; }; } ;;
28340 esac
28341
28342         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28343 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28344 if test "${ol_cv_bdb_compat+set}" = set; then
28345   echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347
28348         cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h.  */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h.  */
28354
28355 #include <db.h>
28356
28357  /* this check could be improved */
28358 #ifndef DB_VERSION_MAJOR
28359 #       define DB_VERSION_MAJOR 1
28360 #endif
28361 #ifndef DB_VERSION_MINOR
28362 #       define DB_VERSION_MINOR 0
28363 #endif
28364
28365 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28366
28367 /* require 4.4 or later */
28368 #if DB_VERSION_MM >= 0x0404
28369         __db_version_compat
28370 #endif
28371
28372 _ACEOF
28373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28374   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28375   ol_cv_bdb_compat=yes
28376 else
28377   ol_cv_bdb_compat=no
28378 fi
28379 rm -f conftest*
28380
28381 fi
28382 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28383 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28384
28385
28386         if test $ol_cv_bdb_compat != yes ; then
28387                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28388 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28389    { (exit 1); exit 1; }; }
28390         fi
28391
28392         ol_cv_lib_db=no
28393
28394 if test $ol_cv_bdb_major = 4 ; then
28395         if test $ol_cv_lib_db = no ; then
28396         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28397 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28398 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28399   echo $ECHO_N "(cached) $ECHO_C" >&6
28400 else
28401
28402         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28403         ol_LIBS=$LIBS
28404         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28405
28406         cat >conftest.$ac_ext <<_ACEOF
28407 /* confdefs.h.  */
28408 _ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h.  */
28412
28413 #ifdef HAVE_DB_185_H
28414 # include <db_185.h>
28415 #else
28416 # include <db.h>
28417 #endif
28418
28419 #ifndef DB_VERSION_MAJOR
28420 # define DB_VERSION_MAJOR 1
28421 #endif
28422
28423 #ifndef NULL
28424 #define NULL ((void*)0)
28425 #endif
28426
28427 int
28428 main ()
28429 {
28430
28431 #if DB_VERSION_MAJOR > 2
28432         db_env_create( NULL, 0 );
28433 #elif DB_VERSION_MAJOR > 1
28434         db_appexit( NULL );
28435 #else
28436         (void) dbopen( NULL, 0, 0, 0, NULL);
28437 #endif
28438
28439   ;
28440   return 0;
28441 }
28442 _ACEOF
28443 rm -f conftest.$ac_objext conftest$ac_exeext
28444 if { (ac_try="$ac_link"
28445 case "(($ac_try" in
28446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447   *) ac_try_echo=$ac_try;;
28448 esac
28449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450   (eval "$ac_link") 2>conftest.er1
28451   ac_status=$?
28452   grep -v '^ *+' conftest.er1 >conftest.err
28453   rm -f conftest.er1
28454   cat conftest.err >&5
28455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456   (exit $ac_status); } && {
28457          test -z "$ac_c_werror_flag" ||
28458          test ! -s conftest.err
28459        } && test -s conftest$ac_exeext &&
28460        $as_test_x conftest$ac_exeext; then
28461   ol_cv_db_db_4_dot_m=yes
28462 else
28463   echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28465
28466         ol_cv_db_db_4_dot_m=no
28467 fi
28468
28469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28470       conftest$ac_exeext conftest.$ac_ext
28471
28472         LIBS="$ol_LIBS"
28473
28474 fi
28475 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28476 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28477
28478         if test $ol_cv_db_db_4_dot_m = yes ; then
28479                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28480         fi
28481 fi
28482
28483         if test $ol_cv_lib_db = no ; then
28484         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28485 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28486 if test "${ol_cv_db_db4m+set}" = set; then
28487   echo $ECHO_N "(cached) $ECHO_C" >&6
28488 else
28489
28490         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28491         ol_LIBS=$LIBS
28492         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28493
28494         cat >conftest.$ac_ext <<_ACEOF
28495 /* confdefs.h.  */
28496 _ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h.  */
28500
28501 #ifdef HAVE_DB_185_H
28502 # include <db_185.h>
28503 #else
28504 # include <db.h>
28505 #endif
28506
28507 #ifndef DB_VERSION_MAJOR
28508 # define DB_VERSION_MAJOR 1
28509 #endif
28510
28511 #ifndef NULL
28512 #define NULL ((void*)0)
28513 #endif
28514
28515 int
28516 main ()
28517 {
28518
28519 #if DB_VERSION_MAJOR > 2
28520         db_env_create( NULL, 0 );
28521 #elif DB_VERSION_MAJOR > 1
28522         db_appexit( NULL );
28523 #else
28524         (void) dbopen( NULL, 0, 0, 0, NULL);
28525 #endif
28526
28527   ;
28528   return 0;
28529 }
28530 _ACEOF
28531 rm -f conftest.$ac_objext conftest$ac_exeext
28532 if { (ac_try="$ac_link"
28533 case "(($ac_try" in
28534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535   *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538   (eval "$ac_link") 2>conftest.er1
28539   ac_status=$?
28540   grep -v '^ *+' conftest.er1 >conftest.err
28541   rm -f conftest.er1
28542   cat conftest.err >&5
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); } && {
28545          test -z "$ac_c_werror_flag" ||
28546          test ! -s conftest.err
28547        } && test -s conftest$ac_exeext &&
28548        $as_test_x conftest$ac_exeext; then
28549   ol_cv_db_db4m=yes
28550 else
28551   echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28553
28554         ol_cv_db_db4m=no
28555 fi
28556
28557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28558       conftest$ac_exeext conftest.$ac_ext
28559
28560         LIBS="$ol_LIBS"
28561
28562 fi
28563 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28564 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28565
28566         if test $ol_cv_db_db4m = yes ; then
28567                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28568         fi
28569 fi
28570
28571         if test $ol_cv_lib_db = no ; then
28572         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28573 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28574 if test "${ol_cv_db_db_4m+set}" = set; then
28575   echo $ECHO_N "(cached) $ECHO_C" >&6
28576 else
28577
28578         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28579         ol_LIBS=$LIBS
28580         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28581
28582         cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h.  */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h.  */
28588
28589 #ifdef HAVE_DB_185_H
28590 # include <db_185.h>
28591 #else
28592 # include <db.h>
28593 #endif
28594
28595 #ifndef DB_VERSION_MAJOR
28596 # define DB_VERSION_MAJOR 1
28597 #endif
28598
28599 #ifndef NULL
28600 #define NULL ((void*)0)
28601 #endif
28602
28603 int
28604 main ()
28605 {
28606
28607 #if DB_VERSION_MAJOR > 2
28608         db_env_create( NULL, 0 );
28609 #elif DB_VERSION_MAJOR > 1
28610         db_appexit( NULL );
28611 #else
28612         (void) dbopen( NULL, 0, 0, 0, NULL);
28613 #endif
28614
28615   ;
28616   return 0;
28617 }
28618 _ACEOF
28619 rm -f conftest.$ac_objext conftest$ac_exeext
28620 if { (ac_try="$ac_link"
28621 case "(($ac_try" in
28622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623   *) ac_try_echo=$ac_try;;
28624 esac
28625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626   (eval "$ac_link") 2>conftest.er1
28627   ac_status=$?
28628   grep -v '^ *+' conftest.er1 >conftest.err
28629   rm -f conftest.er1
28630   cat conftest.err >&5
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); } && {
28633          test -z "$ac_c_werror_flag" ||
28634          test ! -s conftest.err
28635        } && test -s conftest$ac_exeext &&
28636        $as_test_x conftest$ac_exeext; then
28637   ol_cv_db_db_4m=yes
28638 else
28639   echo "$as_me: failed program was:" >&5
28640 sed 's/^/| /' conftest.$ac_ext >&5
28641
28642         ol_cv_db_db_4m=no
28643 fi
28644
28645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28646       conftest$ac_exeext conftest.$ac_ext
28647
28648         LIBS="$ol_LIBS"
28649
28650 fi
28651 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28652 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28653
28654         if test $ol_cv_db_db_4m = yes ; then
28655                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28656         fi
28657 fi
28658
28659         if test $ol_cv_lib_db = no ; then
28660         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28661 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28662 if test "${ol_cv_db_db_4_m+set}" = set; then
28663   echo $ECHO_N "(cached) $ECHO_C" >&6
28664 else
28665
28666         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28667         ol_LIBS=$LIBS
28668         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28669
28670         cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h.  */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h.  */
28676
28677 #ifdef HAVE_DB_185_H
28678 # include <db_185.h>
28679 #else
28680 # include <db.h>
28681 #endif
28682
28683 #ifndef DB_VERSION_MAJOR
28684 # define DB_VERSION_MAJOR 1
28685 #endif
28686
28687 #ifndef NULL
28688 #define NULL ((void*)0)
28689 #endif
28690
28691 int
28692 main ()
28693 {
28694
28695 #if DB_VERSION_MAJOR > 2
28696         db_env_create( NULL, 0 );
28697 #elif DB_VERSION_MAJOR > 1
28698         db_appexit( NULL );
28699 #else
28700         (void) dbopen( NULL, 0, 0, 0, NULL);
28701 #endif
28702
28703   ;
28704   return 0;
28705 }
28706 _ACEOF
28707 rm -f conftest.$ac_objext conftest$ac_exeext
28708 if { (ac_try="$ac_link"
28709 case "(($ac_try" in
28710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711   *) ac_try_echo=$ac_try;;
28712 esac
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714   (eval "$ac_link") 2>conftest.er1
28715   ac_status=$?
28716   grep -v '^ *+' conftest.er1 >conftest.err
28717   rm -f conftest.er1
28718   cat conftest.err >&5
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); } && {
28721          test -z "$ac_c_werror_flag" ||
28722          test ! -s conftest.err
28723        } && test -s conftest$ac_exeext &&
28724        $as_test_x conftest$ac_exeext; then
28725   ol_cv_db_db_4_m=yes
28726 else
28727   echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28729
28730         ol_cv_db_db_4_m=no
28731 fi
28732
28733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28734       conftest$ac_exeext conftest.$ac_ext
28735
28736         LIBS="$ol_LIBS"
28737
28738 fi
28739 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28740 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28741
28742         if test $ol_cv_db_db_4_m = yes ; then
28743                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28744         fi
28745 fi
28746
28747         if test $ol_cv_lib_db = no ; then
28748         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28749 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28750 if test "${ol_cv_db_db_4+set}" = set; then
28751   echo $ECHO_N "(cached) $ECHO_C" >&6
28752 else
28753
28754         ol_DB_LIB=-ldb-4
28755         ol_LIBS=$LIBS
28756         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28757
28758         cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h.  */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h.  */
28764
28765 #ifdef HAVE_DB_185_H
28766 # include <db_185.h>
28767 #else
28768 # include <db.h>
28769 #endif
28770
28771 #ifndef DB_VERSION_MAJOR
28772 # define DB_VERSION_MAJOR 1
28773 #endif
28774
28775 #ifndef NULL
28776 #define NULL ((void*)0)
28777 #endif
28778
28779 int
28780 main ()
28781 {
28782
28783 #if DB_VERSION_MAJOR > 2
28784         db_env_create( NULL, 0 );
28785 #elif DB_VERSION_MAJOR > 1
28786         db_appexit( NULL );
28787 #else
28788         (void) dbopen( NULL, 0, 0, 0, NULL);
28789 #endif
28790
28791   ;
28792   return 0;
28793 }
28794 _ACEOF
28795 rm -f conftest.$ac_objext conftest$ac_exeext
28796 if { (ac_try="$ac_link"
28797 case "(($ac_try" in
28798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28799   *) ac_try_echo=$ac_try;;
28800 esac
28801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28802   (eval "$ac_link") 2>conftest.er1
28803   ac_status=$?
28804   grep -v '^ *+' conftest.er1 >conftest.err
28805   rm -f conftest.er1
28806   cat conftest.err >&5
28807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808   (exit $ac_status); } && {
28809          test -z "$ac_c_werror_flag" ||
28810          test ! -s conftest.err
28811        } && test -s conftest$ac_exeext &&
28812        $as_test_x conftest$ac_exeext; then
28813   ol_cv_db_db_4=yes
28814 else
28815   echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28817
28818         ol_cv_db_db_4=no
28819 fi
28820
28821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28822       conftest$ac_exeext conftest.$ac_ext
28823
28824         LIBS="$ol_LIBS"
28825
28826 fi
28827 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28828 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28829
28830         if test $ol_cv_db_db_4 = yes ; then
28831                 ol_cv_lib_db=-ldb-4
28832         fi
28833 fi
28834
28835         if test $ol_cv_lib_db = no ; then
28836         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28837 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28838 if test "${ol_cv_db_db4+set}" = set; then
28839   echo $ECHO_N "(cached) $ECHO_C" >&6
28840 else
28841
28842         ol_DB_LIB=-ldb4
28843         ol_LIBS=$LIBS
28844         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28845
28846         cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852
28853 #ifdef HAVE_DB_185_H
28854 # include <db_185.h>
28855 #else
28856 # include <db.h>
28857 #endif
28858
28859 #ifndef DB_VERSION_MAJOR
28860 # define DB_VERSION_MAJOR 1
28861 #endif
28862
28863 #ifndef NULL
28864 #define NULL ((void*)0)
28865 #endif
28866
28867 int
28868 main ()
28869 {
28870
28871 #if DB_VERSION_MAJOR > 2
28872         db_env_create( NULL, 0 );
28873 #elif DB_VERSION_MAJOR > 1
28874         db_appexit( NULL );
28875 #else
28876         (void) dbopen( NULL, 0, 0, 0, NULL);
28877 #endif
28878
28879   ;
28880   return 0;
28881 }
28882 _ACEOF
28883 rm -f conftest.$ac_objext conftest$ac_exeext
28884 if { (ac_try="$ac_link"
28885 case "(($ac_try" in
28886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28887   *) ac_try_echo=$ac_try;;
28888 esac
28889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28890   (eval "$ac_link") 2>conftest.er1
28891   ac_status=$?
28892   grep -v '^ *+' conftest.er1 >conftest.err
28893   rm -f conftest.er1
28894   cat conftest.err >&5
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); } && {
28897          test -z "$ac_c_werror_flag" ||
28898          test ! -s conftest.err
28899        } && test -s conftest$ac_exeext &&
28900        $as_test_x conftest$ac_exeext; then
28901   ol_cv_db_db4=yes
28902 else
28903   echo "$as_me: failed program was:" >&5
28904 sed 's/^/| /' conftest.$ac_ext >&5
28905
28906         ol_cv_db_db4=no
28907 fi
28908
28909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28910       conftest$ac_exeext conftest.$ac_ext
28911
28912         LIBS="$ol_LIBS"
28913
28914 fi
28915 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28916 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28917
28918         if test $ol_cv_db_db4 = yes ; then
28919                 ol_cv_lib_db=-ldb4
28920         fi
28921 fi
28922
28923         if test $ol_cv_lib_db = no ; then
28924         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28925 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28926 if test "${ol_cv_db_db+set}" = set; then
28927   echo $ECHO_N "(cached) $ECHO_C" >&6
28928 else
28929
28930         ol_DB_LIB=-ldb
28931         ol_LIBS=$LIBS
28932         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28933
28934         cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940
28941 #ifdef HAVE_DB_185_H
28942 # include <db_185.h>
28943 #else
28944 # include <db.h>
28945 #endif
28946
28947 #ifndef DB_VERSION_MAJOR
28948 # define DB_VERSION_MAJOR 1
28949 #endif
28950
28951 #ifndef NULL
28952 #define NULL ((void*)0)
28953 #endif
28954
28955 int
28956 main ()
28957 {
28958
28959 #if DB_VERSION_MAJOR > 2
28960         db_env_create( NULL, 0 );
28961 #elif DB_VERSION_MAJOR > 1
28962         db_appexit( NULL );
28963 #else
28964         (void) dbopen( NULL, 0, 0, 0, NULL);
28965 #endif
28966
28967   ;
28968   return 0;
28969 }
28970 _ACEOF
28971 rm -f conftest.$ac_objext conftest$ac_exeext
28972 if { (ac_try="$ac_link"
28973 case "(($ac_try" in
28974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28975   *) ac_try_echo=$ac_try;;
28976 esac
28977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28978   (eval "$ac_link") 2>conftest.er1
28979   ac_status=$?
28980   grep -v '^ *+' conftest.er1 >conftest.err
28981   rm -f conftest.er1
28982   cat conftest.err >&5
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); } && {
28985          test -z "$ac_c_werror_flag" ||
28986          test ! -s conftest.err
28987        } && test -s conftest$ac_exeext &&
28988        $as_test_x conftest$ac_exeext; then
28989   ol_cv_db_db=yes
28990 else
28991   echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28993
28994         ol_cv_db_db=no
28995 fi
28996
28997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28998       conftest$ac_exeext conftest.$ac_ext
28999
29000         LIBS="$ol_LIBS"
29001
29002 fi
29003 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29004 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29005
29006         if test $ol_cv_db_db = yes ; then
29007                 ol_cv_lib_db=-ldb
29008         fi
29009 fi
29010
29011 fi
29012 if test $ol_cv_lib_db = no ; then
29013         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29014 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29015 if test "${ol_cv_db_none+set}" = set; then
29016   echo $ECHO_N "(cached) $ECHO_C" >&6
29017 else
29018
29019         ol_DB_LIB=
29020         ol_LIBS=$LIBS
29021         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29022
29023         cat >conftest.$ac_ext <<_ACEOF
29024 /* confdefs.h.  */
29025 _ACEOF
29026 cat confdefs.h >>conftest.$ac_ext
29027 cat >>conftest.$ac_ext <<_ACEOF
29028 /* end confdefs.h.  */
29029
29030 #ifdef HAVE_DB_185_H
29031 # include <db_185.h>
29032 #else
29033 # include <db.h>
29034 #endif
29035
29036 #ifndef DB_VERSION_MAJOR
29037 # define DB_VERSION_MAJOR 1
29038 #endif
29039
29040 #ifndef NULL
29041 #define NULL ((void*)0)
29042 #endif
29043
29044 int
29045 main ()
29046 {
29047
29048 #if DB_VERSION_MAJOR > 2
29049         db_env_create( NULL, 0 );
29050 #elif DB_VERSION_MAJOR > 1
29051         db_appexit( NULL );
29052 #else
29053         (void) dbopen( NULL, 0, 0, 0, NULL);
29054 #endif
29055
29056   ;
29057   return 0;
29058 }
29059 _ACEOF
29060 rm -f conftest.$ac_objext conftest$ac_exeext
29061 if { (ac_try="$ac_link"
29062 case "(($ac_try" in
29063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064   *) ac_try_echo=$ac_try;;
29065 esac
29066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067   (eval "$ac_link") 2>conftest.er1
29068   ac_status=$?
29069   grep -v '^ *+' conftest.er1 >conftest.err
29070   rm -f conftest.er1
29071   cat conftest.err >&5
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); } && {
29074          test -z "$ac_c_werror_flag" ||
29075          test ! -s conftest.err
29076        } && test -s conftest$ac_exeext &&
29077        $as_test_x conftest$ac_exeext; then
29078   ol_cv_db_none=yes
29079 else
29080   echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.$ac_ext >&5
29082
29083         ol_cv_db_none=no
29084 fi
29085
29086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29087       conftest$ac_exeext conftest.$ac_ext
29088
29089         LIBS="$ol_LIBS"
29090
29091 fi
29092 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29093 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29094
29095         if test $ol_cv_db_none = yes ; then
29096                 ol_cv_lib_db=yes
29097         fi
29098 fi
29099
29100
29101         if test "$ol_cv_lib_db" != no ; then
29102                 ol_cv_berkeley_db=yes
29103                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29104 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29105 if test "${ol_cv_berkeley_db_version+set}" = set; then
29106   echo $ECHO_N "(cached) $ECHO_C" >&6
29107 else
29108
29109         ol_LIBS="$LIBS"
29110         LIBS="$LTHREAD_LIBS $LIBS"
29111         if test $ol_cv_lib_db != yes ; then
29112                 LIBS="$ol_cv_lib_db $LIBS"
29113         fi
29114
29115         if test "$cross_compiling" = yes; then
29116   ol_cv_berkeley_db_version=cross
29117 else
29118   cat >conftest.$ac_ext <<_ACEOF
29119 /* confdefs.h.  */
29120 _ACEOF
29121 cat confdefs.h >>conftest.$ac_ext
29122 cat >>conftest.$ac_ext <<_ACEOF
29123 /* end confdefs.h.  */
29124
29125 #ifdef HAVE_DB_185_H
29126         choke me;
29127 #else
29128 #include <db.h>
29129 #endif
29130 #ifndef DB_VERSION_MAJOR
29131 # define DB_VERSION_MAJOR 1
29132 #endif
29133 #ifndef NULL
29134 #define NULL ((void *)0)
29135 #endif
29136 main()
29137 {
29138 #if DB_VERSION_MAJOR > 1
29139         char *version;
29140         int major, minor, patch;
29141
29142         version = db_version( &major, &minor, &patch );
29143
29144         if( major != DB_VERSION_MAJOR ||
29145                 minor != DB_VERSION_MINOR ||
29146                 patch != DB_VERSION_PATCH )
29147         {
29148                 printf("Berkeley DB version mismatch\n"
29149                         "\theader: %s\n\tlibrary: %s\n",
29150                         DB_VERSION_STRING, version);
29151                 return 1;
29152         }
29153 #endif
29154
29155         return 0;
29156 }
29157 _ACEOF
29158 rm -f conftest$ac_exeext
29159 if { (ac_try="$ac_link"
29160 case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_link") 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29169   { (case "(($ac_try" in
29170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171   *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174   (eval "$ac_try") 2>&5
29175   ac_status=$?
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); }; }; then
29178   ol_cv_berkeley_db_version=yes
29179 else
29180   echo "$as_me: program exited with status $ac_status" >&5
29181 echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184 ( exit $ac_status )
29185 ol_cv_berkeley_db_version=no
29186 fi
29187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29188 fi
29189
29190
29191
29192         LIBS="$ol_LIBS"
29193
29194 fi
29195 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29196 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29197
29198         if test $ol_cv_berkeley_db_version = no ; then
29199                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29200 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29201    { (exit 1); exit 1; }; }
29202         fi
29203
29204                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29205 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29206 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29207   echo $ECHO_N "(cached) $ECHO_C" >&6
29208 else
29209
29210         ol_LIBS="$LIBS"
29211         LIBS="$LTHREAD_LIBS $LIBS"
29212         if test $ol_cv_lib_db != yes ; then
29213                 LIBS="$ol_cv_lib_db $LIBS"
29214         fi
29215
29216         if test "$cross_compiling" = yes; then
29217   ol_cv_berkeley_db_thread=cross
29218 else
29219   cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h.  */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h.  */
29225
29226 #ifdef HAVE_DB_185_H
29227         choke me;
29228 #else
29229 #include <db.h>
29230 #endif
29231 #ifndef NULL
29232 #define NULL ((void *)0)
29233 #endif
29234 main()
29235 {
29236         int rc;
29237         u_int32_t flags = DB_CREATE |
29238 #ifdef DB_PRIVATE
29239                 DB_PRIVATE |
29240 #endif
29241                 DB_THREAD;
29242
29243 #if DB_VERSION_MAJOR > 2
29244         DB_ENV *env = NULL;
29245
29246         rc = db_env_create( &env, 0 );
29247
29248         flags |= DB_INIT_MPOOL;
29249 #ifdef DB_MPOOL_PRIVATE
29250         flags |= DB_MPOOL_PRIVATE;
29251 #endif
29252
29253         if( rc ) {
29254                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29255                 return rc;
29256         }
29257
29258 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29259         rc = (env->open)( env, NULL, flags, 0 );
29260 #else
29261         rc = (env->open)( env, NULL, NULL, flags, 0 );
29262 #endif
29263
29264         if ( rc == 0 ) {
29265                 rc = env->close( env, 0 );
29266         }
29267
29268         if( rc ) {
29269                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29270                 return rc;
29271         }
29272
29273 #else
29274         DB_ENV env;
29275         memset( &env, '\0', sizeof(env) );
29276
29277         rc = db_appinit( NULL, NULL, &env, flags );
29278
29279         if( rc == 0 ) {
29280                 db_appexit( &env );
29281         }
29282
29283         unlink("__db_mpool.share");
29284         unlink("__db_lock.share");
29285 #endif
29286
29287         return rc;
29288 }
29289 _ACEOF
29290 rm -f conftest$ac_exeext
29291 if { (ac_try="$ac_link"
29292 case "(($ac_try" in
29293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294   *) ac_try_echo=$ac_try;;
29295 esac
29296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297   (eval "$ac_link") 2>&5
29298   ac_status=$?
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29301   { (case "(($ac_try" in
29302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303   *) ac_try_echo=$ac_try;;
29304 esac
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306   (eval "$ac_try") 2>&5
29307   ac_status=$?
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); }; }; then
29310   ol_cv_berkeley_db_thread=yes
29311 else
29312   echo "$as_me: program exited with status $ac_status" >&5
29313 echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315
29316 ( exit $ac_status )
29317 ol_cv_berkeley_db_thread=no
29318 fi
29319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29320 fi
29321
29322
29323
29324         LIBS="$ol_LIBS"
29325
29326 fi
29327 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29328 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29329
29330         if test $ol_cv_berkeley_db_thread != no ; then
29331
29332 cat >>confdefs.h <<\_ACEOF
29333 #define HAVE_BERKELEY_DB_THREAD 1
29334 _ACEOF
29335
29336         fi
29337
29338         fi
29339 fi
29340
29341
29342         if test $ol_cv_berkeley_db = no ; then
29343                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29344 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29345    { (exit 1); exit 1; }; }
29346         fi
29347
29348
29349 cat >>confdefs.h <<\_ACEOF
29350 #define HAVE_BERKELEY_DB 1
29351 _ACEOF
29352
29353
29354                         if test $ol_cv_lib_db != yes ; then
29355                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29356         fi
29357
29358         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29359
29360         ol_link_bdb=yes
29361 fi
29362
29363
29364 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29365         BUILD_LIBS_DYNAMIC=shared
29366
29367 cat >>confdefs.h <<\_ACEOF
29368 #define LDAP_LIBS_DYNAMIC 1
29369 _ACEOF
29370
29371         LTSTATIC=""
29372 else
29373         BUILD_LIBS_DYNAMIC=static
29374         LTSTATIC="-static"
29375 fi
29376
29377 if test $ol_enable_wrappers != no ; then
29378
29379 for ac_header in tcpd.h
29380 do
29381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29383   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29386   echo $ECHO_N "(cached) $ECHO_C" >&6
29387 fi
29388 ac_res=`eval echo '${'$as_ac_Header'}'`
29389                { echo "$as_me:$LINENO: result: $ac_res" >&5
29390 echo "${ECHO_T}$ac_res" >&6; }
29391 else
29392   # Is the header compilable?
29393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29395 cat >conftest.$ac_ext <<_ACEOF
29396 /* confdefs.h.  */
29397 _ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h.  */
29401 $ac_includes_default
29402 #include <$ac_header>
29403 _ACEOF
29404 rm -f conftest.$ac_objext
29405 if { (ac_try="$ac_compile"
29406 case "(($ac_try" in
29407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29408   *) ac_try_echo=$ac_try;;
29409 esac
29410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29411   (eval "$ac_compile") 2>conftest.er1
29412   ac_status=$?
29413   grep -v '^ *+' conftest.er1 >conftest.err
29414   rm -f conftest.er1
29415   cat conftest.err >&5
29416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417   (exit $ac_status); } && {
29418          test -z "$ac_c_werror_flag" ||
29419          test ! -s conftest.err
29420        } && test -s conftest.$ac_objext; then
29421   ac_header_compiler=yes
29422 else
29423   echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29425
29426         ac_header_compiler=no
29427 fi
29428
29429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29431 echo "${ECHO_T}$ac_header_compiler" >&6; }
29432
29433 # Is the header present?
29434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29436 cat >conftest.$ac_ext <<_ACEOF
29437 /* confdefs.h.  */
29438 _ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h.  */
29442 #include <$ac_header>
29443 _ACEOF
29444 if { (ac_try="$ac_cpp conftest.$ac_ext"
29445 case "(($ac_try" in
29446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29447   *) ac_try_echo=$ac_try;;
29448 esac
29449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29451   ac_status=$?
29452   grep -v '^ *+' conftest.er1 >conftest.err
29453   rm -f conftest.er1
29454   cat conftest.err >&5
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); } >/dev/null && {
29457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29458          test ! -s conftest.err
29459        }; then
29460   ac_header_preproc=yes
29461 else
29462   echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29464
29465   ac_header_preproc=no
29466 fi
29467
29468 rm -f conftest.err conftest.$ac_ext
29469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29470 echo "${ECHO_T}$ac_header_preproc" >&6; }
29471
29472 # So?  What about this header?
29473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29474   yes:no: )
29475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29479     ac_header_preproc=yes
29480     ;;
29481   no:yes:* )
29482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29494     ( cat <<\_ASBOX
29495 ## --------------------------------------------- ##
29496 ## Report this to <http://www.openldap.org/its/> ##
29497 ## --------------------------------------------- ##
29498 _ASBOX
29499      ) | sed "s/^/$as_me: WARNING:     /" >&2
29500     ;;
29501 esac
29502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29505   echo $ECHO_N "(cached) $ECHO_C" >&6
29506 else
29507   eval "$as_ac_Header=\$ac_header_preproc"
29508 fi
29509 ac_res=`eval echo '${'$as_ac_Header'}'`
29510                { echo "$as_me:$LINENO: result: $ac_res" >&5
29511 echo "${ECHO_T}$ac_res" >&6; }
29512
29513 fi
29514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29515   cat >>confdefs.h <<_ACEOF
29516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29517 _ACEOF
29518
29519                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29520 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29521                 save_LIBS="$LIBS"
29522                 LIBS="$LIBS -lwrap"
29523                 cat >conftest.$ac_ext <<_ACEOF
29524 /* confdefs.h.  */
29525 _ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h.  */
29529
29530 #include <tcpd.h>
29531 int allow_severity = 0;
29532 int deny_severity  = 0;
29533
29534 struct request_info *req;
29535
29536 int
29537 main ()
29538 {
29539
29540 hosts_access(req)
29541
29542   ;
29543   return 0;
29544 }
29545 _ACEOF
29546 rm -f conftest.$ac_objext conftest$ac_exeext
29547 if { (ac_try="$ac_link"
29548 case "(($ac_try" in
29549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550   *) ac_try_echo=$ac_try;;
29551 esac
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553   (eval "$ac_link") 2>conftest.er1
29554   ac_status=$?
29555   grep -v '^ *+' conftest.er1 >conftest.err
29556   rm -f conftest.er1
29557   cat conftest.err >&5
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); } && {
29560          test -z "$ac_c_werror_flag" ||
29561          test ! -s conftest.err
29562        } && test -s conftest$ac_exeext &&
29563        $as_test_x conftest$ac_exeext; then
29564   { echo "$as_me:$LINENO: result: -lwrap" >&5
29565 echo "${ECHO_T}-lwrap" >&6; }
29566                 have_wrappers=yes
29567                 LIBS="$save_LIBS"
29568 else
29569   echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29571
29572
29573                                 LIBS="$LIBS -lnsl"
29574                 cat >conftest.$ac_ext <<_ACEOF
29575 /* confdefs.h.  */
29576 _ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h.  */
29580
29581 #include <tcpd.h>
29582 int allow_severity = 0;
29583 int deny_severity  = 0;
29584
29585 struct request_info *req;
29586
29587 int
29588 main ()
29589 {
29590
29591 hosts_access(req)
29592
29593   ;
29594   return 0;
29595 }
29596 _ACEOF
29597 rm -f conftest.$ac_objext conftest$ac_exeext
29598 if { (ac_try="$ac_link"
29599 case "(($ac_try" in
29600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601   *) ac_try_echo=$ac_try;;
29602 esac
29603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29604   (eval "$ac_link") 2>conftest.er1
29605   ac_status=$?
29606   grep -v '^ *+' conftest.er1 >conftest.err
29607   rm -f conftest.er1
29608   cat conftest.err >&5
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); } && {
29611          test -z "$ac_c_werror_flag" ||
29612          test ! -s conftest.err
29613        } && test -s conftest$ac_exeext &&
29614        $as_test_x conftest$ac_exeext; then
29615   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29616 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29617                 have_wrappers=yes
29618                 LIBS="$save_LIBS -lnsl"
29619 else
29620   echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623
29624                 { echo "$as_me:$LINENO: result: no" >&5
29625 echo "${ECHO_T}no" >&6; }
29626                 have_wrappers=no
29627                 LIBS=$save_LIBS
29628 fi
29629
29630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29631       conftest$ac_exeext conftest.$ac_ext
29632 fi
29633
29634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29635       conftest$ac_exeext conftest.$ac_ext
29636 else
29637   have_wrappers=no
29638 fi
29639
29640 done
29641
29642
29643         if test $have_wrappers = yes ; then
29644
29645 cat >>confdefs.h <<\_ACEOF
29646 #define HAVE_TCPD 1
29647 _ACEOF
29648
29649                 WRAP_LIBS="-lwrap"
29650         elif test $ol_enable_wrappers = yes ; then
29651                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29652 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29653    { (exit 1); exit 1; }; }
29654         else
29655                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29656 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29657                 WRAP_LIBS=""
29658         fi
29659 fi
29660
29661 if test $ol_enable_syslog != no ; then
29662         { echo "$as_me:$LINENO: checking for openlog" >&5
29663 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29664 if test "${ac_cv_func_openlog+set}" = set; then
29665   echo $ECHO_N "(cached) $ECHO_C" >&6
29666 else
29667   cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29675 #define openlog innocuous_openlog
29676
29677 /* System header to define __stub macros and hopefully few prototypes,
29678     which can conflict with char openlog (); below.
29679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29680     <limits.h> exists even on freestanding compilers.  */
29681
29682 #ifdef __STDC__
29683 # include <limits.h>
29684 #else
29685 # include <assert.h>
29686 #endif
29687
29688 #undef openlog
29689
29690 /* Override any GCC internal prototype to avoid an error.
29691    Use char because int might match the return type of a GCC
29692    builtin and then its argument prototype would still apply.  */
29693 #ifdef __cplusplus
29694 extern "C"
29695 #endif
29696 char openlog ();
29697 /* The GNU C library defines this for functions which it implements
29698     to always fail with ENOSYS.  Some functions are actually named
29699     something starting with __ and the normal name is an alias.  */
29700 #if defined __stub_openlog || defined __stub___openlog
29701 choke me
29702 #endif
29703
29704 int
29705 main ()
29706 {
29707 return openlog ();
29708   ;
29709   return 0;
29710 }
29711 _ACEOF
29712 rm -f conftest.$ac_objext conftest$ac_exeext
29713 if { (ac_try="$ac_link"
29714 case "(($ac_try" in
29715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716   *) ac_try_echo=$ac_try;;
29717 esac
29718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29719   (eval "$ac_link") 2>conftest.er1
29720   ac_status=$?
29721   grep -v '^ *+' conftest.er1 >conftest.err
29722   rm -f conftest.er1
29723   cat conftest.err >&5
29724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725   (exit $ac_status); } && {
29726          test -z "$ac_c_werror_flag" ||
29727          test ! -s conftest.err
29728        } && test -s conftest$ac_exeext &&
29729        $as_test_x conftest$ac_exeext; then
29730   ac_cv_func_openlog=yes
29731 else
29732   echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735         ac_cv_func_openlog=no
29736 fi
29737
29738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29739       conftest$ac_exeext conftest.$ac_ext
29740 fi
29741 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29742 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29743
29744         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29745                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29746 echo "$as_me: error: could not find syslog" >&2;}
29747    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29748         fi
29749         ol_enable_syslog=$ac_cv_func_openlog
29750 fi
29751
29752 ol_link_sql=no
29753 if test $ol_enable_sql != no ; then
29754
29755
29756 for ac_header in sql.h sqlext.h
29757 do
29758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29760   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29763   echo $ECHO_N "(cached) $ECHO_C" >&6
29764 fi
29765 ac_res=`eval echo '${'$as_ac_Header'}'`
29766                { echo "$as_me:$LINENO: result: $ac_res" >&5
29767 echo "${ECHO_T}$ac_res" >&6; }
29768 else
29769   # Is the header compilable?
29770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29772 cat >conftest.$ac_ext <<_ACEOF
29773 /* confdefs.h.  */
29774 _ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h.  */
29778 $ac_includes_default
29779 #include <$ac_header>
29780 _ACEOF
29781 rm -f conftest.$ac_objext
29782 if { (ac_try="$ac_compile"
29783 case "(($ac_try" in
29784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29785   *) ac_try_echo=$ac_try;;
29786 esac
29787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29788   (eval "$ac_compile") 2>conftest.er1
29789   ac_status=$?
29790   grep -v '^ *+' conftest.er1 >conftest.err
29791   rm -f conftest.er1
29792   cat conftest.err >&5
29793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794   (exit $ac_status); } && {
29795          test -z "$ac_c_werror_flag" ||
29796          test ! -s conftest.err
29797        } && test -s conftest.$ac_objext; then
29798   ac_header_compiler=yes
29799 else
29800   echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29802
29803         ac_header_compiler=no
29804 fi
29805
29806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29808 echo "${ECHO_T}$ac_header_compiler" >&6; }
29809
29810 # Is the header present?
29811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29813 cat >conftest.$ac_ext <<_ACEOF
29814 /* confdefs.h.  */
29815 _ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h.  */
29819 #include <$ac_header>
29820 _ACEOF
29821 if { (ac_try="$ac_cpp conftest.$ac_ext"
29822 case "(($ac_try" in
29823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29824   *) ac_try_echo=$ac_try;;
29825 esac
29826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29828   ac_status=$?
29829   grep -v '^ *+' conftest.er1 >conftest.err
29830   rm -f conftest.er1
29831   cat conftest.err >&5
29832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } >/dev/null && {
29834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29835          test ! -s conftest.err
29836        }; then
29837   ac_header_preproc=yes
29838 else
29839   echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842   ac_header_preproc=no
29843 fi
29844
29845 rm -f conftest.err conftest.$ac_ext
29846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29847 echo "${ECHO_T}$ac_header_preproc" >&6; }
29848
29849 # So?  What about this header?
29850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29851   yes:no: )
29852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29856     ac_header_preproc=yes
29857     ;;
29858   no:yes:* )
29859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29871     ( cat <<\_ASBOX
29872 ## --------------------------------------------- ##
29873 ## Report this to <http://www.openldap.org/its/> ##
29874 ## --------------------------------------------- ##
29875 _ASBOX
29876      ) | sed "s/^/$as_me: WARNING:     /" >&2
29877     ;;
29878 esac
29879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29882   echo $ECHO_N "(cached) $ECHO_C" >&6
29883 else
29884   eval "$as_ac_Header=\$ac_header_preproc"
29885 fi
29886 ac_res=`eval echo '${'$as_ac_Header'}'`
29887                { echo "$as_me:$LINENO: result: $ac_res" >&5
29888 echo "${ECHO_T}$ac_res" >&6; }
29889
29890 fi
29891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29892   cat >>confdefs.h <<_ACEOF
29893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29894 _ACEOF
29895
29896 else
29897
29898                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29899 echo "$as_me: error: could not locate SQL headers" >&2;}
29900    { (exit 1); exit 1; }; }
29901
29902 fi
29903
29904 done
29905
29906
29907         sql_LIBS="$LIBS"
29908         LIBS="$LTHREAD_LIBS"
29909
29910         if test $ol_with_odbc = auto ; then
29911                 ol_with_odbc="iodbc unixodbc odbc32"
29912         fi
29913
29914         for odbc in $ol_with_odbc ; do
29915                 if test $ol_link_sql = no ; then
29916                         case $odbc in
29917                         iodbc)
29918                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29919 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29920 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29921   echo $ECHO_N "(cached) $ECHO_C" >&6
29922 else
29923   ac_check_lib_save_LIBS=$LIBS
29924 LIBS="-liodbc  $LIBS"
29925 cat >conftest.$ac_ext <<_ACEOF
29926 /* confdefs.h.  */
29927 _ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h.  */
29931
29932 /* Override any GCC internal prototype to avoid an error.
29933    Use char because int might match the return type of a GCC
29934    builtin and then its argument prototype would still apply.  */
29935 #ifdef __cplusplus
29936 extern "C"
29937 #endif
29938 char SQLDriverConnect ();
29939 int
29940 main ()
29941 {
29942 return SQLDriverConnect ();
29943   ;
29944   return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext conftest$ac_exeext
29948 if { (ac_try="$ac_link"
29949 case "(($ac_try" in
29950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951   *) ac_try_echo=$ac_try;;
29952 esac
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954   (eval "$ac_link") 2>conftest.er1
29955   ac_status=$?
29956   grep -v '^ *+' conftest.er1 >conftest.err
29957   rm -f conftest.er1
29958   cat conftest.err >&5
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); } && {
29961          test -z "$ac_c_werror_flag" ||
29962          test ! -s conftest.err
29963        } && test -s conftest$ac_exeext &&
29964        $as_test_x conftest$ac_exeext; then
29965   ac_cv_lib_iodbc_SQLDriverConnect=yes
29966 else
29967   echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29969
29970         ac_cv_lib_iodbc_SQLDriverConnect=no
29971 fi
29972
29973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29974       conftest$ac_exeext conftest.$ac_ext
29975 LIBS=$ac_check_lib_save_LIBS
29976 fi
29977 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29978 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29979 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29980   have_iodbc=yes
29981 else
29982   have_iodbc=no
29983 fi
29984
29985                                 if test $have_iodbc = yes ; then
29986                                         ol_link_sql="-liodbc"
29987                                 fi
29988                                 ;;
29989
29990                         unixodbc)
29991                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29992 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29993 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29994   echo $ECHO_N "(cached) $ECHO_C" >&6
29995 else
29996   ac_check_lib_save_LIBS=$LIBS
29997 LIBS="-lodbc  $LIBS"
29998 cat >conftest.$ac_ext <<_ACEOF
29999 /* confdefs.h.  */
30000 _ACEOF
30001 cat confdefs.h >>conftest.$ac_ext
30002 cat >>conftest.$ac_ext <<_ACEOF
30003 /* end confdefs.h.  */
30004
30005 /* Override any GCC internal prototype to avoid an error.
30006    Use char because int might match the return type of a GCC
30007    builtin and then its argument prototype would still apply.  */
30008 #ifdef __cplusplus
30009 extern "C"
30010 #endif
30011 char SQLDriverConnect ();
30012 int
30013 main ()
30014 {
30015 return SQLDriverConnect ();
30016   ;
30017   return 0;
30018 }
30019 _ACEOF
30020 rm -f conftest.$ac_objext conftest$ac_exeext
30021 if { (ac_try="$ac_link"
30022 case "(($ac_try" in
30023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024   *) ac_try_echo=$ac_try;;
30025 esac
30026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027   (eval "$ac_link") 2>conftest.er1
30028   ac_status=$?
30029   grep -v '^ *+' conftest.er1 >conftest.err
30030   rm -f conftest.er1
30031   cat conftest.err >&5
30032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033   (exit $ac_status); } && {
30034          test -z "$ac_c_werror_flag" ||
30035          test ! -s conftest.err
30036        } && test -s conftest$ac_exeext &&
30037        $as_test_x conftest$ac_exeext; then
30038   ac_cv_lib_odbc_SQLDriverConnect=yes
30039 else
30040   echo "$as_me: failed program was:" >&5
30041 sed 's/^/| /' conftest.$ac_ext >&5
30042
30043         ac_cv_lib_odbc_SQLDriverConnect=no
30044 fi
30045
30046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30047       conftest$ac_exeext conftest.$ac_ext
30048 LIBS=$ac_check_lib_save_LIBS
30049 fi
30050 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30051 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30052 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30053   have_odbc=yes
30054 else
30055   have_odbc=no
30056 fi
30057
30058                                 if test $have_odbc = yes ; then
30059                                         ol_link_sql="-lodbc"
30060                                 fi
30061                                 ;;
30062
30063                         odbc32)
30064                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30065 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30066 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30067   echo $ECHO_N "(cached) $ECHO_C" >&6
30068 else
30069   ac_check_lib_save_LIBS=$LIBS
30070 LIBS="-lodbc32  $LIBS"
30071 cat >conftest.$ac_ext <<_ACEOF
30072 /* confdefs.h.  */
30073 _ACEOF
30074 cat confdefs.h >>conftest.$ac_ext
30075 cat >>conftest.$ac_ext <<_ACEOF
30076 /* end confdefs.h.  */
30077
30078 /* Override any GCC internal prototype to avoid an error.
30079    Use char because int might match the return type of a GCC
30080    builtin and then its argument prototype would still apply.  */
30081 #ifdef __cplusplus
30082 extern "C"
30083 #endif
30084 char SQLDriverConnect ();
30085 int
30086 main ()
30087 {
30088 return SQLDriverConnect ();
30089   ;
30090   return 0;
30091 }
30092 _ACEOF
30093 rm -f conftest.$ac_objext conftest$ac_exeext
30094 if { (ac_try="$ac_link"
30095 case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_link") 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } && {
30107          test -z "$ac_c_werror_flag" ||
30108          test ! -s conftest.err
30109        } && test -s conftest$ac_exeext &&
30110        $as_test_x conftest$ac_exeext; then
30111   ac_cv_lib_odbc32_SQLDriverConnect=yes
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116         ac_cv_lib_odbc32_SQLDriverConnect=no
30117 fi
30118
30119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30120       conftest$ac_exeext conftest.$ac_ext
30121 LIBS=$ac_check_lib_save_LIBS
30122 fi
30123 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30124 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30125 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30126   have_odbc32=yes
30127 else
30128   have_odbc32=no
30129 fi
30130
30131                                 if test $have_odbc32 = yes ; then
30132                                         ol_link_sql="-lodbc32"
30133                                 fi
30134                                 ;;
30135
30136                         *)
30137                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30138 echo "$as_me: error: unknown ODBC library" >&2;}
30139    { (exit 1); exit 1; }; }
30140                                 ;;
30141                         esac
30142                 fi
30143         done
30144
30145         LIBS="$sql_LIBS"
30146
30147         if test $ol_link_sql != no ; then
30148                 SLAPD_SQL_LIBS="$ol_link_sql"
30149
30150         elif test $ol_enable_sql != auto ; then
30151                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30152 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30153    { (exit 1); exit 1; }; }
30154         fi
30155 fi
30156
30157 ol_link_ndb=no
30158 if test $ol_enable_ndb != no ; then
30159         # Extract the first word of "mysql_config", so it can be a program name with args.
30160 set dummy mysql_config; ac_word=$2
30161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30163 if test "${ac_cv_prog_MYSQL+set}" = set; then
30164   echo $ECHO_N "(cached) $ECHO_C" >&6
30165 else
30166   if test -n "$MYSQL"; then
30167   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30168 else
30169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170 for as_dir in $PATH
30171 do
30172   IFS=$as_save_IFS
30173   test -z "$as_dir" && as_dir=.
30174   for ac_exec_ext in '' $ac_executable_extensions; do
30175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30176     ac_cv_prog_MYSQL="yes"
30177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30178     break 2
30179   fi
30180 done
30181 done
30182 IFS=$as_save_IFS
30183
30184 fi
30185 fi
30186 MYSQL=$ac_cv_prog_MYSQL
30187 if test -n "$MYSQL"; then
30188   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30189 echo "${ECHO_T}$MYSQL" >&6; }
30190 else
30191   { echo "$as_me:$LINENO: result: no" >&5
30192 echo "${ECHO_T}no" >&6; }
30193 fi
30194
30195
30196         if test "$MYSQL" != yes ; then
30197                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30198 echo "$as_me: error: could not locate mysql_config" >&2;}
30199    { (exit 1); exit 1; }; }
30200         fi
30201
30202         SQL_INC=`mysql_config --include`
30203         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30204
30205         save_CPPFLAGS="$CPPFLAGS"
30206         CPPFLAGS="$SLAPD_NDB_INCS"
30207         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30208 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30209         cat >conftest.$ac_ext <<_ACEOF
30210 /* confdefs.h.  */
30211 _ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h.  */
30215 #include <NdbApi.hpp>
30216 _ACEOF
30217 if { (ac_try="$ac_cpp conftest.$ac_ext"
30218 case "(($ac_try" in
30219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220   *) ac_try_echo=$ac_try;;
30221 esac
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30224   ac_status=$?
30225   grep -v '^ *+' conftest.er1 >conftest.err
30226   rm -f conftest.er1
30227   cat conftest.err >&5
30228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229   (exit $ac_status); } >/dev/null && {
30230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30231          test ! -s conftest.err
30232        }; then
30233   { echo "$as_me:$LINENO: result: yes" >&5
30234 echo "${ECHO_T}yes" >&6; }
30235 else
30236   echo "$as_me: failed program was:" >&5
30237 sed 's/^/| /' conftest.$ac_ext >&5
30238
30239   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30240 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30241    { (exit 1); exit 1; }; }
30242
30243 fi
30244
30245 rm -f conftest.err conftest.$ac_ext
30246         CPPFLAGS="$save_CPPFLAGS"
30247
30248         SQL_LIB=`mysql_config --libs_r`
30249         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30250
30251         save_LDFLAGS="$LDFLAGS"
30252         save_LIBS="$LIBS"
30253         LDFLAGS="$SQL_LIB"
30254         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30255 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30256 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30257   echo $ECHO_N "(cached) $ECHO_C" >&6
30258 else
30259   ac_check_lib_save_LIBS=$LIBS
30260 LIBS="-lndbclient -lstdc++ $LIBS"
30261 cat >conftest.$ac_ext <<_ACEOF
30262 /* confdefs.h.  */
30263 _ACEOF
30264 cat confdefs.h >>conftest.$ac_ext
30265 cat >>conftest.$ac_ext <<_ACEOF
30266 /* end confdefs.h.  */
30267
30268 /* Override any GCC internal prototype to avoid an error.
30269    Use char because int might match the return type of a GCC
30270    builtin and then its argument prototype would still apply.  */
30271 #ifdef __cplusplus
30272 extern "C"
30273 #endif
30274 char ndb_init ();
30275 int
30276 main ()
30277 {
30278 return ndb_init ();
30279   ;
30280   return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext conftest$ac_exeext
30284 if { (ac_try="$ac_link"
30285 case "(($ac_try" in
30286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287   *) ac_try_echo=$ac_try;;
30288 esac
30289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290   (eval "$ac_link") 2>conftest.er1
30291   ac_status=$?
30292   grep -v '^ *+' conftest.er1 >conftest.err
30293   rm -f conftest.er1
30294   cat conftest.err >&5
30295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296   (exit $ac_status); } && {
30297          test -z "$ac_c_werror_flag" ||
30298          test ! -s conftest.err
30299        } && test -s conftest$ac_exeext &&
30300        $as_test_x conftest$ac_exeext; then
30301   ac_cv_lib_ndbclient_ndb_init=yes
30302 else
30303   echo "$as_me: failed program was:" >&5
30304 sed 's/^/| /' conftest.$ac_ext >&5
30305
30306         ac_cv_lib_ndbclient_ndb_init=no
30307 fi
30308
30309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30310       conftest$ac_exeext conftest.$ac_ext
30311 LIBS=$ac_check_lib_save_LIBS
30312 fi
30313 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30314 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30315 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30316   : ok
30317 else
30318
30319                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30320 echo "$as_me: error: could not locate ndbclient library" >&2;}
30321    { (exit 1); exit 1; }; }
30322
30323 fi
30324
30325         LIBS="$save_LIBS"
30326         LDFLAGS="$save_LDFLAGS"
30327
30328         if test "$ol_enable_ndb" = yes ; then
30329                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30330         fi
30331 fi
30332
30333 ol_icu=no
30334
30335 for ac_header in unicode/utypes.h
30336 do
30337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30342   echo $ECHO_N "(cached) $ECHO_C" >&6
30343 fi
30344 ac_res=`eval echo '${'$as_ac_Header'}'`
30345                { echo "$as_me:$LINENO: result: $ac_res" >&5
30346 echo "${ECHO_T}$ac_res" >&6; }
30347 else
30348   # Is the header compilable?
30349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30351 cat >conftest.$ac_ext <<_ACEOF
30352 /* confdefs.h.  */
30353 _ACEOF
30354 cat confdefs.h >>conftest.$ac_ext
30355 cat >>conftest.$ac_ext <<_ACEOF
30356 /* end confdefs.h.  */
30357 $ac_includes_default
30358 #include <$ac_header>
30359 _ACEOF
30360 rm -f conftest.$ac_objext
30361 if { (ac_try="$ac_compile"
30362 case "(($ac_try" in
30363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364   *) ac_try_echo=$ac_try;;
30365 esac
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367   (eval "$ac_compile") 2>conftest.er1
30368   ac_status=$?
30369   grep -v '^ *+' conftest.er1 >conftest.err
30370   rm -f conftest.er1
30371   cat conftest.err >&5
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); } && {
30374          test -z "$ac_c_werror_flag" ||
30375          test ! -s conftest.err
30376        } && test -s conftest.$ac_objext; then
30377   ac_header_compiler=yes
30378 else
30379   echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30381
30382         ac_header_compiler=no
30383 fi
30384
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30387 echo "${ECHO_T}$ac_header_compiler" >&6; }
30388
30389 # Is the header present?
30390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30392 cat >conftest.$ac_ext <<_ACEOF
30393 /* confdefs.h.  */
30394 _ACEOF
30395 cat confdefs.h >>conftest.$ac_ext
30396 cat >>conftest.$ac_ext <<_ACEOF
30397 /* end confdefs.h.  */
30398 #include <$ac_header>
30399 _ACEOF
30400 if { (ac_try="$ac_cpp conftest.$ac_ext"
30401 case "(($ac_try" in
30402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403   *) ac_try_echo=$ac_try;;
30404 esac
30405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30407   ac_status=$?
30408   grep -v '^ *+' conftest.er1 >conftest.err
30409   rm -f conftest.er1
30410   cat conftest.err >&5
30411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412   (exit $ac_status); } >/dev/null && {
30413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30414          test ! -s conftest.err
30415        }; then
30416   ac_header_preproc=yes
30417 else
30418   echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30420
30421   ac_header_preproc=no
30422 fi
30423
30424 rm -f conftest.err conftest.$ac_ext
30425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30426 echo "${ECHO_T}$ac_header_preproc" >&6; }
30427
30428 # So?  What about this header?
30429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30430   yes:no: )
30431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30435     ac_header_preproc=yes
30436     ;;
30437   no:yes:* )
30438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30450     ( cat <<\_ASBOX
30451 ## --------------------------------------------- ##
30452 ## Report this to <http://www.openldap.org/its/> ##
30453 ## --------------------------------------------- ##
30454 _ASBOX
30455      ) | sed "s/^/$as_me: WARNING:     /" >&2
30456     ;;
30457 esac
30458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30461   echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463   eval "$as_ac_Header=\$ac_header_preproc"
30464 fi
30465 ac_res=`eval echo '${'$as_ac_Header'}'`
30466                { echo "$as_me:$LINENO: result: $ac_res" >&5
30467 echo "${ECHO_T}$ac_res" >&6; }
30468
30469 fi
30470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30471   cat >>confdefs.h <<_ACEOF
30472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30473 _ACEOF
30474
30475 fi
30476
30477 done
30478
30479 if test $ac_cv_header_unicode_utypes_h = yes ; then
30480                 OL_ICULIBS="-licuuc -licudata"
30481
30482         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30483 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30484 if test "${ol_cv_lib_icu+set}" = set; then
30485   echo $ECHO_N "(cached) $ECHO_C" >&6
30486 else
30487
30488                 ol_LIBS="$LIBS"
30489                 LIBS="$OL_ICULIBS $LIBS"
30490                 cat >conftest.$ac_ext <<_ACEOF
30491 /* confdefs.h.  */
30492 _ACEOF
30493 cat confdefs.h >>conftest.$ac_ext
30494 cat >>conftest.$ac_ext <<_ACEOF
30495 /* end confdefs.h.  */
30496
30497 #include <unicode/utypes.h>
30498
30499 int
30500 main ()
30501 {
30502
30503 (void) u_errorName(0);
30504
30505   ;
30506   return 0;
30507 }
30508 _ACEOF
30509 rm -f conftest.$ac_objext conftest$ac_exeext
30510 if { (ac_try="$ac_link"
30511 case "(($ac_try" in
30512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513   *) ac_try_echo=$ac_try;;
30514 esac
30515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516   (eval "$ac_link") 2>conftest.er1
30517   ac_status=$?
30518   grep -v '^ *+' conftest.er1 >conftest.err
30519   rm -f conftest.er1
30520   cat conftest.err >&5
30521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522   (exit $ac_status); } && {
30523          test -z "$ac_c_werror_flag" ||
30524          test ! -s conftest.err
30525        } && test -s conftest$ac_exeext &&
30526        $as_test_x conftest$ac_exeext; then
30527   ol_cv_lib_icu=yes
30528 else
30529   echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30531
30532         ol_cv_lib_icu=no
30533 fi
30534
30535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30536       conftest$ac_exeext conftest.$ac_ext
30537                 LIBS="$ol_LIBS"
30538
30539 fi
30540 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30541 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30542
30543         if test $ol_cv_lib_icu != no ; then
30544                 ol_icu="$OL_ICULIBS"
30545
30546 cat >>confdefs.h <<\_ACEOF
30547 #define HAVE_ICU 1
30548 _ACEOF
30549
30550         fi
30551 fi
30552
30553 if test "$ol_icu" = no ; then
30554         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30555 echo "$as_me: WARNING: ICU not available" >&2;}
30556 else
30557         ICU_LIBS="$ol_icu"
30558 fi
30559 WITH_SASL=no
30560 ol_link_sasl=no
30561 ol_link_spasswd=no
30562 if test $ol_with_cyrus_sasl != no ; then
30563
30564
30565 for ac_header in sasl/sasl.h sasl.h
30566 do
30567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30569   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30572   echo $ECHO_N "(cached) $ECHO_C" >&6
30573 fi
30574 ac_res=`eval echo '${'$as_ac_Header'}'`
30575                { echo "$as_me:$LINENO: result: $ac_res" >&5
30576 echo "${ECHO_T}$ac_res" >&6; }
30577 else
30578   # Is the header compilable?
30579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30581 cat >conftest.$ac_ext <<_ACEOF
30582 /* confdefs.h.  */
30583 _ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h.  */
30587 $ac_includes_default
30588 #include <$ac_header>
30589 _ACEOF
30590 rm -f conftest.$ac_objext
30591 if { (ac_try="$ac_compile"
30592 case "(($ac_try" in
30593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594   *) ac_try_echo=$ac_try;;
30595 esac
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597   (eval "$ac_compile") 2>conftest.er1
30598   ac_status=$?
30599   grep -v '^ *+' conftest.er1 >conftest.err
30600   rm -f conftest.er1
30601   cat conftest.err >&5
30602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603   (exit $ac_status); } && {
30604          test -z "$ac_c_werror_flag" ||
30605          test ! -s conftest.err
30606        } && test -s conftest.$ac_objext; then
30607   ac_header_compiler=yes
30608 else
30609   echo "$as_me: failed program was:" >&5
30610 sed 's/^/| /' conftest.$ac_ext >&5
30611
30612         ac_header_compiler=no
30613 fi
30614
30615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30617 echo "${ECHO_T}$ac_header_compiler" >&6; }
30618
30619 # Is the header present?
30620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30622 cat >conftest.$ac_ext <<_ACEOF
30623 /* confdefs.h.  */
30624 _ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h.  */
30628 #include <$ac_header>
30629 _ACEOF
30630 if { (ac_try="$ac_cpp conftest.$ac_ext"
30631 case "(($ac_try" in
30632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633   *) ac_try_echo=$ac_try;;
30634 esac
30635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30637   ac_status=$?
30638   grep -v '^ *+' conftest.er1 >conftest.err
30639   rm -f conftest.er1
30640   cat conftest.err >&5
30641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642   (exit $ac_status); } >/dev/null && {
30643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30644          test ! -s conftest.err
30645        }; then
30646   ac_header_preproc=yes
30647 else
30648   echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.$ac_ext >&5
30650
30651   ac_header_preproc=no
30652 fi
30653
30654 rm -f conftest.err conftest.$ac_ext
30655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30656 echo "${ECHO_T}$ac_header_preproc" >&6; }
30657
30658 # So?  What about this header?
30659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30660   yes:no: )
30661     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30665     ac_header_preproc=yes
30666     ;;
30667   no:yes:* )
30668     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30670     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30671 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30672     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30674     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30675 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30678     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30680     ( cat <<\_ASBOX
30681 ## --------------------------------------------- ##
30682 ## Report this to <http://www.openldap.org/its/> ##
30683 ## --------------------------------------------- ##
30684 _ASBOX
30685      ) | sed "s/^/$as_me: WARNING:     /" >&2
30686     ;;
30687 esac
30688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30691   echo $ECHO_N "(cached) $ECHO_C" >&6
30692 else
30693   eval "$as_ac_Header=\$ac_header_preproc"
30694 fi
30695 ac_res=`eval echo '${'$as_ac_Header'}'`
30696                { echo "$as_me:$LINENO: result: $ac_res" >&5
30697 echo "${ECHO_T}$ac_res" >&6; }
30698
30699 fi
30700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30701   cat >>confdefs.h <<_ACEOF
30702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30703 _ACEOF
30704
30705 fi
30706
30707 done
30708
30709
30710         if test $ac_cv_header_sasl_sasl_h = yes ||
30711            test $ac_cv_header_sasl_h = yes; then
30712                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30713 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30714 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30715   echo $ECHO_N "(cached) $ECHO_C" >&6
30716 else
30717   ac_check_lib_save_LIBS=$LIBS
30718 LIBS="-lsasl2  $LIBS"
30719 cat >conftest.$ac_ext <<_ACEOF
30720 /* confdefs.h.  */
30721 _ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h.  */
30725
30726 /* Override any GCC internal prototype to avoid an error.
30727    Use char because int might match the return type of a GCC
30728    builtin and then its argument prototype would still apply.  */
30729 #ifdef __cplusplus
30730 extern "C"
30731 #endif
30732 char sasl_client_init ();
30733 int
30734 main ()
30735 {
30736 return sasl_client_init ();
30737   ;
30738   return 0;
30739 }
30740 _ACEOF
30741 rm -f conftest.$ac_objext conftest$ac_exeext
30742 if { (ac_try="$ac_link"
30743 case "(($ac_try" in
30744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745   *) ac_try_echo=$ac_try;;
30746 esac
30747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748   (eval "$ac_link") 2>conftest.er1
30749   ac_status=$?
30750   grep -v '^ *+' conftest.er1 >conftest.err
30751   rm -f conftest.er1
30752   cat conftest.err >&5
30753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754   (exit $ac_status); } && {
30755          test -z "$ac_c_werror_flag" ||
30756          test ! -s conftest.err
30757        } && test -s conftest$ac_exeext &&
30758        $as_test_x conftest$ac_exeext; then
30759   ac_cv_lib_sasl2_sasl_client_init=yes
30760 else
30761   echo "$as_me: failed program was:" >&5
30762 sed 's/^/| /' conftest.$ac_ext >&5
30763
30764         ac_cv_lib_sasl2_sasl_client_init=no
30765 fi
30766
30767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30768       conftest$ac_exeext conftest.$ac_ext
30769 LIBS=$ac_check_lib_save_LIBS
30770 fi
30771 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30772 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30773 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30774   ol_link_sasl="-lsasl2"
30775 else
30776   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30777 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30778 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30779   echo $ECHO_N "(cached) $ECHO_C" >&6
30780 else
30781   ac_check_lib_save_LIBS=$LIBS
30782 LIBS="-lsasl  $LIBS"
30783 cat >conftest.$ac_ext <<_ACEOF
30784 /* confdefs.h.  */
30785 _ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h.  */
30789
30790 /* Override any GCC internal prototype to avoid an error.
30791    Use char because int might match the return type of a GCC
30792    builtin and then its argument prototype would still apply.  */
30793 #ifdef __cplusplus
30794 extern "C"
30795 #endif
30796 char sasl_client_init ();
30797 int
30798 main ()
30799 {
30800 return sasl_client_init ();
30801   ;
30802   return 0;
30803 }
30804 _ACEOF
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809   *) ac_try_echo=$ac_try;;
30810 esac
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812   (eval "$ac_link") 2>conftest.er1
30813   ac_status=$?
30814   grep -v '^ *+' conftest.er1 >conftest.err
30815   rm -f conftest.er1
30816   cat conftest.err >&5
30817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818   (exit $ac_status); } && {
30819          test -z "$ac_c_werror_flag" ||
30820          test ! -s conftest.err
30821        } && test -s conftest$ac_exeext &&
30822        $as_test_x conftest$ac_exeext; then
30823   ac_cv_lib_sasl_sasl_client_init=yes
30824 else
30825   echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30827
30828         ac_cv_lib_sasl_sasl_client_init=no
30829 fi
30830
30831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30832       conftest$ac_exeext conftest.$ac_ext
30833 LIBS=$ac_check_lib_save_LIBS
30834 fi
30835 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30836 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30837 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30838   ol_link_sasl="-lsasl"
30839 fi
30840
30841 fi
30842
30843         fi
30844
30845         if test $ol_link_sasl = no ; then
30846                 if test $ol_with_cyrus_sasl != auto ; then
30847                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30848 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30849    { (exit 1); exit 1; }; }
30850                 else
30851                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30852 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30853                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30854 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30855                         if test $ol_link_tls = no ; then
30856                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30857 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30858                         fi
30859                 fi
30860         else
30861                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30862 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30863 if test "${ol_cv_sasl_compat+set}" = set; then
30864   echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866
30867         cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h.  */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h.  */
30873
30874 #ifdef HAVE_SASL_SASL_H
30875 #include <sasl/sasl.h>
30876 #else
30877 #include <sasl.h>
30878 #endif
30879
30880 /* Require 2.1.15+ */
30881 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30882         char *__sasl_compat = "2.2+ or better okay (we guess)";
30883 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30884         && SASL_VERSION_STEP >=15
30885         char *__sasl_compat = "2.1.15+ or better okay";
30886 #endif
30887
30888 _ACEOF
30889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30890   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30891   ol_cv_sasl_compat=yes
30892 else
30893   ol_cv_sasl_compat=no
30894 fi
30895 rm -f conftest*
30896
30897 fi
30898 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30899 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30900
30901                 if test $ol_cv_sasl_compat = no ; then
30902                         ol_link_sasl=no
30903                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30904 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30905    { (exit 1); exit 1; }; }
30906                 fi
30907
30908
30909 cat >>confdefs.h <<\_ACEOF
30910 #define HAVE_CYRUS_SASL 1
30911 _ACEOF
30912
30913                 SASL_LIBS="$ol_link_sasl"
30914                 if test $ol_enable_spasswd != no ; then
30915                         ol_link_spasswd=yes
30916                 fi
30917
30918                 ac_save_LIBS="$LIBS"
30919                 LIBS="$LIBS $ol_link_sasl"
30920                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30921 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30922 if test "${ac_cv_func_sasl_version+set}" = set; then
30923   echo $ECHO_N "(cached) $ECHO_C" >&6
30924 else
30925   cat >conftest.$ac_ext <<_ACEOF
30926 /* confdefs.h.  */
30927 _ACEOF
30928 cat confdefs.h >>conftest.$ac_ext
30929 cat >>conftest.$ac_ext <<_ACEOF
30930 /* end confdefs.h.  */
30931 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30933 #define sasl_version innocuous_sasl_version
30934
30935 /* System header to define __stub macros and hopefully few prototypes,
30936     which can conflict with char sasl_version (); below.
30937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30938     <limits.h> exists even on freestanding compilers.  */
30939
30940 #ifdef __STDC__
30941 # include <limits.h>
30942 #else
30943 # include <assert.h>
30944 #endif
30945
30946 #undef sasl_version
30947
30948 /* Override any GCC internal prototype to avoid an error.
30949    Use char because int might match the return type of a GCC
30950    builtin and then its argument prototype would still apply.  */
30951 #ifdef __cplusplus
30952 extern "C"
30953 #endif
30954 char sasl_version ();
30955 /* The GNU C library defines this for functions which it implements
30956     to always fail with ENOSYS.  Some functions are actually named
30957     something starting with __ and the normal name is an alias.  */
30958 #if defined __stub_sasl_version || defined __stub___sasl_version
30959 choke me
30960 #endif
30961
30962 int
30963 main ()
30964 {
30965 return sasl_version ();
30966   ;
30967   return 0;
30968 }
30969 _ACEOF
30970 rm -f conftest.$ac_objext conftest$ac_exeext
30971 if { (ac_try="$ac_link"
30972 case "(($ac_try" in
30973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974   *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977   (eval "$ac_link") 2>conftest.er1
30978   ac_status=$?
30979   grep -v '^ *+' conftest.er1 >conftest.err
30980   rm -f conftest.er1
30981   cat conftest.err >&5
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); } && {
30984          test -z "$ac_c_werror_flag" ||
30985          test ! -s conftest.err
30986        } && test -s conftest$ac_exeext &&
30987        $as_test_x conftest$ac_exeext; then
30988   ac_cv_func_sasl_version=yes
30989 else
30990   echo "$as_me: failed program was:" >&5
30991 sed 's/^/| /' conftest.$ac_ext >&5
30992
30993         ac_cv_func_sasl_version=no
30994 fi
30995
30996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30997       conftest$ac_exeext conftest.$ac_ext
30998 fi
30999 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31000 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31001 if test $ac_cv_func_sasl_version = yes; then
31002
31003 cat >>confdefs.h <<\_ACEOF
31004 #define HAVE_SASL_VERSION 1
31005 _ACEOF
31006
31007 fi
31008
31009                 LIBS="$ac_save_LIBS"
31010
31011                 WITH_SASL=yes
31012         fi
31013
31014 else
31015         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31016 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31017         if test $ol_link_tls = no ; then
31018                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31019 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31020         fi
31021 fi
31022
31023 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31024         dev=no
31025         if test -r /dev/urandom ; then
31026                 dev="/dev/urandom";
31027         elif test -r /idev/urandom ; then
31028                 dev="/idev/urandom";
31029         elif test -r /dev/srandom ; then
31030                 dev="/dev/srandom";
31031         elif test -r /dev/random ; then
31032                 dev="/dev/random";
31033         elif test -r /idev/random ; then
31034                 dev="/idev/random";
31035         fi
31036
31037         if test $dev != no ; then
31038
31039 cat >>confdefs.h <<_ACEOF
31040 #define URANDOM_DEVICE "$dev"
31041 _ACEOF
31042
31043         fi
31044 fi
31045
31046 ol_link_fetch=no
31047 if test $ol_with_fetch != no ; then
31048         ol_LIBS=$LIBS
31049 LIBS="-lfetch -lcom_err $LIBS"
31050 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31051 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31052 if test "${ol_cv_lib_fetch+set}" = set; then
31053   echo $ECHO_N "(cached) $ECHO_C" >&6
31054 else
31055
31056         cat >conftest.$ac_ext <<_ACEOF
31057 /* confdefs.h.  */
31058 _ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h.  */
31062
31063 #ifdef HAVE_SYS_PARAM_H
31064 #include <sys/param.h>
31065 #endif
31066 #include <stdio.h>
31067 #include <fetch.h>
31068 int
31069 main ()
31070 {
31071 struct url *u = fetchParseURL("file:///");
31072   ;
31073   return 0;
31074 }
31075 _ACEOF
31076 rm -f conftest.$ac_objext conftest$ac_exeext
31077 if { (ac_try="$ac_link"
31078 case "(($ac_try" in
31079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080   *) ac_try_echo=$ac_try;;
31081 esac
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083   (eval "$ac_link") 2>conftest.er1
31084   ac_status=$?
31085   grep -v '^ *+' conftest.er1 >conftest.err
31086   rm -f conftest.er1
31087   cat conftest.err >&5
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); } && {
31090          test -z "$ac_c_werror_flag" ||
31091          test ! -s conftest.err
31092        } && test -s conftest$ac_exeext &&
31093        $as_test_x conftest$ac_exeext; then
31094   ol_cv_lib_fetch=yes
31095 else
31096   echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31098
31099         ol_cv_lib_fetch=no
31100 fi
31101
31102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31103       conftest$ac_exeext conftest.$ac_ext
31104 fi
31105 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31106 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31107 LIBS=$ol_LIBS
31108 if test $ol_cv_lib_fetch != no ; then
31109         ol_link_fetch="-lfetch -lcom_err"
31110
31111 cat >>confdefs.h <<\_ACEOF
31112 #define HAVE_FETCH 1
31113 _ACEOF
31114
31115 fi
31116
31117
31118         if test $ol_cv_lib_fetch != no ; then
31119                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31120                 ol_link_fetch=freebsd
31121
31122         elif test $ol_with_fetch != auto ; then
31123                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31124 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31125    { (exit 1); exit 1; }; }
31126         fi
31127 fi
31128
31129 if test $ol_enable_crypt != no ; then
31130         save_LIBS="$LIBS"
31131         LIBS="$TLS_LIBS $LIBS"
31132
31133         { echo "$as_me:$LINENO: checking for crypt" >&5
31134 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31135 if test "${ac_cv_func_crypt+set}" = set; then
31136   echo $ECHO_N "(cached) $ECHO_C" >&6
31137 else
31138   cat >conftest.$ac_ext <<_ACEOF
31139 /* confdefs.h.  */
31140 _ACEOF
31141 cat confdefs.h >>conftest.$ac_ext
31142 cat >>conftest.$ac_ext <<_ACEOF
31143 /* end confdefs.h.  */
31144 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31146 #define crypt innocuous_crypt
31147
31148 /* System header to define __stub macros and hopefully few prototypes,
31149     which can conflict with char crypt (); below.
31150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31151     <limits.h> exists even on freestanding compilers.  */
31152
31153 #ifdef __STDC__
31154 # include <limits.h>
31155 #else
31156 # include <assert.h>
31157 #endif
31158
31159 #undef crypt
31160
31161 /* Override any GCC internal prototype to avoid an error.
31162    Use char because int might match the return type of a GCC
31163    builtin and then its argument prototype would still apply.  */
31164 #ifdef __cplusplus
31165 extern "C"
31166 #endif
31167 char crypt ();
31168 /* The GNU C library defines this for functions which it implements
31169     to always fail with ENOSYS.  Some functions are actually named
31170     something starting with __ and the normal name is an alias.  */
31171 #if defined __stub_crypt || defined __stub___crypt
31172 choke me
31173 #endif
31174
31175 int
31176 main ()
31177 {
31178 return crypt ();
31179   ;
31180   return 0;
31181 }
31182 _ACEOF
31183 rm -f conftest.$ac_objext conftest$ac_exeext
31184 if { (ac_try="$ac_link"
31185 case "(($ac_try" in
31186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187   *) ac_try_echo=$ac_try;;
31188 esac
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190   (eval "$ac_link") 2>conftest.er1
31191   ac_status=$?
31192   grep -v '^ *+' conftest.er1 >conftest.err
31193   rm -f conftest.er1
31194   cat conftest.err >&5
31195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); } && {
31197          test -z "$ac_c_werror_flag" ||
31198          test ! -s conftest.err
31199        } && test -s conftest$ac_exeext &&
31200        $as_test_x conftest$ac_exeext; then
31201   ac_cv_func_crypt=yes
31202 else
31203   echo "$as_me: failed program was:" >&5
31204 sed 's/^/| /' conftest.$ac_ext >&5
31205
31206         ac_cv_func_crypt=no
31207 fi
31208
31209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31210       conftest$ac_exeext conftest.$ac_ext
31211 fi
31212 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31213 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31214 if test $ac_cv_func_crypt = yes; then
31215   have_crypt=yes
31216 else
31217
31218                 LIBS="$save_LIBS"
31219                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31220 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31221 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31222   echo $ECHO_N "(cached) $ECHO_C" >&6
31223 else
31224   ac_check_lib_save_LIBS=$LIBS
31225 LIBS="-lcrypt  $LIBS"
31226 cat >conftest.$ac_ext <<_ACEOF
31227 /* confdefs.h.  */
31228 _ACEOF
31229 cat confdefs.h >>conftest.$ac_ext
31230 cat >>conftest.$ac_ext <<_ACEOF
31231 /* end confdefs.h.  */
31232
31233 /* Override any GCC internal prototype to avoid an error.
31234    Use char because int might match the return type of a GCC
31235    builtin and then its argument prototype would still apply.  */
31236 #ifdef __cplusplus
31237 extern "C"
31238 #endif
31239 char crypt ();
31240 int
31241 main ()
31242 {
31243 return crypt ();
31244   ;
31245   return 0;
31246 }
31247 _ACEOF
31248 rm -f conftest.$ac_objext conftest$ac_exeext
31249 if { (ac_try="$ac_link"
31250 case "(($ac_try" in
31251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252   *) ac_try_echo=$ac_try;;
31253 esac
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255   (eval "$ac_link") 2>conftest.er1
31256   ac_status=$?
31257   grep -v '^ *+' conftest.er1 >conftest.err
31258   rm -f conftest.er1
31259   cat conftest.err >&5
31260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261   (exit $ac_status); } && {
31262          test -z "$ac_c_werror_flag" ||
31263          test ! -s conftest.err
31264        } && test -s conftest$ac_exeext &&
31265        $as_test_x conftest$ac_exeext; then
31266   ac_cv_lib_crypt_crypt=yes
31267 else
31268   echo "$as_me: failed program was:" >&5
31269 sed 's/^/| /' conftest.$ac_ext >&5
31270
31271         ac_cv_lib_crypt_crypt=no
31272 fi
31273
31274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31275       conftest$ac_exeext conftest.$ac_ext
31276 LIBS=$ac_check_lib_save_LIBS
31277 fi
31278 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31279 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31280 if test $ac_cv_lib_crypt_crypt = yes; then
31281   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31282                         have_crypt=yes
31283 else
31284   have_crypt=no
31285 fi
31286
31287 fi
31288
31289
31290         LIBS="$save_LIBS"
31291
31292         if test $have_crypt = yes ; then
31293
31294 cat >>confdefs.h <<\_ACEOF
31295 #define HAVE_CRYPT 1
31296 _ACEOF
31297
31298         else
31299                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31300 echo "$as_me: WARNING: could not find crypt" >&2;}
31301                 if test $ol_enable_crypt = yes ; then
31302                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31303 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31304    { (exit 1); exit 1; }; }
31305                 fi
31306
31307                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31308 echo "$as_me: WARNING: disabling crypt support" >&2;}
31309                 ol_enable_crypt=no
31310         fi
31311 fi
31312
31313 if test $ol_enable_proctitle != no ; then
31314         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31315 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31316 if test "${ac_cv_func_setproctitle+set}" = set; then
31317   echo $ECHO_N "(cached) $ECHO_C" >&6
31318 else
31319   cat >conftest.$ac_ext <<_ACEOF
31320 /* confdefs.h.  */
31321 _ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h.  */
31325 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31327 #define setproctitle innocuous_setproctitle
31328
31329 /* System header to define __stub macros and hopefully few prototypes,
31330     which can conflict with char setproctitle (); below.
31331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31332     <limits.h> exists even on freestanding compilers.  */
31333
31334 #ifdef __STDC__
31335 # include <limits.h>
31336 #else
31337 # include <assert.h>
31338 #endif
31339
31340 #undef setproctitle
31341
31342 /* Override any GCC internal prototype to avoid an error.
31343    Use char because int might match the return type of a GCC
31344    builtin and then its argument prototype would still apply.  */
31345 #ifdef __cplusplus
31346 extern "C"
31347 #endif
31348 char setproctitle ();
31349 /* The GNU C library defines this for functions which it implements
31350     to always fail with ENOSYS.  Some functions are actually named
31351     something starting with __ and the normal name is an alias.  */
31352 #if defined __stub_setproctitle || defined __stub___setproctitle
31353 choke me
31354 #endif
31355
31356 int
31357 main ()
31358 {
31359 return setproctitle ();
31360   ;
31361   return 0;
31362 }
31363 _ACEOF
31364 rm -f conftest.$ac_objext conftest$ac_exeext
31365 if { (ac_try="$ac_link"
31366 case "(($ac_try" in
31367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368   *) ac_try_echo=$ac_try;;
31369 esac
31370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371   (eval "$ac_link") 2>conftest.er1
31372   ac_status=$?
31373   grep -v '^ *+' conftest.er1 >conftest.err
31374   rm -f conftest.er1
31375   cat conftest.err >&5
31376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377   (exit $ac_status); } && {
31378          test -z "$ac_c_werror_flag" ||
31379          test ! -s conftest.err
31380        } && test -s conftest$ac_exeext &&
31381        $as_test_x conftest$ac_exeext; then
31382   ac_cv_func_setproctitle=yes
31383 else
31384   echo "$as_me: failed program was:" >&5
31385 sed 's/^/| /' conftest.$ac_ext >&5
31386
31387         ac_cv_func_setproctitle=no
31388 fi
31389
31390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31391       conftest$ac_exeext conftest.$ac_ext
31392 fi
31393 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31394 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31395 if test $ac_cv_func_setproctitle = yes; then
31396   have_setproctitle=yes
31397 else
31398
31399                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31400 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31401 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31402   echo $ECHO_N "(cached) $ECHO_C" >&6
31403 else
31404   ac_check_lib_save_LIBS=$LIBS
31405 LIBS="-lutil  $LIBS"
31406 cat >conftest.$ac_ext <<_ACEOF
31407 /* confdefs.h.  */
31408 _ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h.  */
31412
31413 /* Override any GCC internal prototype to avoid an error.
31414    Use char because int might match the return type of a GCC
31415    builtin and then its argument prototype would still apply.  */
31416 #ifdef __cplusplus
31417 extern "C"
31418 #endif
31419 char setproctitle ();
31420 int
31421 main ()
31422 {
31423 return setproctitle ();
31424   ;
31425   return 0;
31426 }
31427 _ACEOF
31428 rm -f conftest.$ac_objext conftest$ac_exeext
31429 if { (ac_try="$ac_link"
31430 case "(($ac_try" in
31431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432   *) ac_try_echo=$ac_try;;
31433 esac
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435   (eval "$ac_link") 2>conftest.er1
31436   ac_status=$?
31437   grep -v '^ *+' conftest.er1 >conftest.err
31438   rm -f conftest.er1
31439   cat conftest.err >&5
31440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); } && {
31442          test -z "$ac_c_werror_flag" ||
31443          test ! -s conftest.err
31444        } && test -s conftest$ac_exeext &&
31445        $as_test_x conftest$ac_exeext; then
31446   ac_cv_lib_util_setproctitle=yes
31447 else
31448   echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31450
31451         ac_cv_lib_util_setproctitle=no
31452 fi
31453
31454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31455       conftest$ac_exeext conftest.$ac_ext
31456 LIBS=$ac_check_lib_save_LIBS
31457 fi
31458 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31459 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31460 if test $ac_cv_lib_util_setproctitle = yes; then
31461   have_setproctitle=yes
31462                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31463 else
31464   have_setproctitle=no
31465                         case " $LIBOBJS " in
31466   *" setproctitle.$ac_objext "* ) ;;
31467   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31468  ;;
31469 esac
31470
31471                         LIBSRCS="$LIBSRCS setproctitle.c"
31472 fi
31473
31474 fi
31475
31476
31477         if test $have_setproctitle = yes ; then
31478
31479 cat >>confdefs.h <<\_ACEOF
31480 #define HAVE_SETPROCTITLE 1
31481 _ACEOF
31482
31483         fi
31484 fi
31485
31486 if test $ol_enable_slp != no ; then
31487
31488 for ac_header in slp.h
31489 do
31490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31492   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31495   echo $ECHO_N "(cached) $ECHO_C" >&6
31496 fi
31497 ac_res=`eval echo '${'$as_ac_Header'}'`
31498                { echo "$as_me:$LINENO: result: $ac_res" >&5
31499 echo "${ECHO_T}$ac_res" >&6; }
31500 else
31501   # Is the header compilable?
31502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31504 cat >conftest.$ac_ext <<_ACEOF
31505 /* confdefs.h.  */
31506 _ACEOF
31507 cat confdefs.h >>conftest.$ac_ext
31508 cat >>conftest.$ac_ext <<_ACEOF
31509 /* end confdefs.h.  */
31510 $ac_includes_default
31511 #include <$ac_header>
31512 _ACEOF
31513 rm -f conftest.$ac_objext
31514 if { (ac_try="$ac_compile"
31515 case "(($ac_try" in
31516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517   *) ac_try_echo=$ac_try;;
31518 esac
31519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520   (eval "$ac_compile") 2>conftest.er1
31521   ac_status=$?
31522   grep -v '^ *+' conftest.er1 >conftest.err
31523   rm -f conftest.er1
31524   cat conftest.err >&5
31525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526   (exit $ac_status); } && {
31527          test -z "$ac_c_werror_flag" ||
31528          test ! -s conftest.err
31529        } && test -s conftest.$ac_objext; then
31530   ac_header_compiler=yes
31531 else
31532   echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31534
31535         ac_header_compiler=no
31536 fi
31537
31538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31540 echo "${ECHO_T}$ac_header_compiler" >&6; }
31541
31542 # Is the header present?
31543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31545 cat >conftest.$ac_ext <<_ACEOF
31546 /* confdefs.h.  */
31547 _ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h.  */
31551 #include <$ac_header>
31552 _ACEOF
31553 if { (ac_try="$ac_cpp conftest.$ac_ext"
31554 case "(($ac_try" in
31555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31556   *) ac_try_echo=$ac_try;;
31557 esac
31558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31560   ac_status=$?
31561   grep -v '^ *+' conftest.er1 >conftest.err
31562   rm -f conftest.er1
31563   cat conftest.err >&5
31564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565   (exit $ac_status); } >/dev/null && {
31566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31567          test ! -s conftest.err
31568        }; then
31569   ac_header_preproc=yes
31570 else
31571   echo "$as_me: failed program was:" >&5
31572 sed 's/^/| /' conftest.$ac_ext >&5
31573
31574   ac_header_preproc=no
31575 fi
31576
31577 rm -f conftest.err conftest.$ac_ext
31578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31579 echo "${ECHO_T}$ac_header_preproc" >&6; }
31580
31581 # So?  What about this header?
31582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31583   yes:no: )
31584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31588     ac_header_preproc=yes
31589     ;;
31590   no:yes:* )
31591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31603     ( cat <<\_ASBOX
31604 ## --------------------------------------------- ##
31605 ## Report this to <http://www.openldap.org/its/> ##
31606 ## --------------------------------------------- ##
31607 _ASBOX
31608      ) | sed "s/^/$as_me: WARNING:     /" >&2
31609     ;;
31610 esac
31611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31614   echo $ECHO_N "(cached) $ECHO_C" >&6
31615 else
31616   eval "$as_ac_Header=\$ac_header_preproc"
31617 fi
31618 ac_res=`eval echo '${'$as_ac_Header'}'`
31619                { echo "$as_me:$LINENO: result: $ac_res" >&5
31620 echo "${ECHO_T}$ac_res" >&6; }
31621
31622 fi
31623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31624   cat >>confdefs.h <<_ACEOF
31625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31626 _ACEOF
31627
31628 fi
31629
31630 done
31631
31632
31633         if test $ac_cv_header_slp_h = yes ; then
31634                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31635 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31636 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31637   echo $ECHO_N "(cached) $ECHO_C" >&6
31638 else
31639   ac_check_lib_save_LIBS=$LIBS
31640 LIBS="-lslp  $LIBS"
31641 cat >conftest.$ac_ext <<_ACEOF
31642 /* confdefs.h.  */
31643 _ACEOF
31644 cat confdefs.h >>conftest.$ac_ext
31645 cat >>conftest.$ac_ext <<_ACEOF
31646 /* end confdefs.h.  */
31647
31648 /* Override any GCC internal prototype to avoid an error.
31649    Use char because int might match the return type of a GCC
31650    builtin and then its argument prototype would still apply.  */
31651 #ifdef __cplusplus
31652 extern "C"
31653 #endif
31654 char SLPOpen ();
31655 int
31656 main ()
31657 {
31658 return SLPOpen ();
31659   ;
31660   return 0;
31661 }
31662 _ACEOF
31663 rm -f conftest.$ac_objext conftest$ac_exeext
31664 if { (ac_try="$ac_link"
31665 case "(($ac_try" in
31666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667   *) ac_try_echo=$ac_try;;
31668 esac
31669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670   (eval "$ac_link") 2>conftest.er1
31671   ac_status=$?
31672   grep -v '^ *+' conftest.er1 >conftest.err
31673   rm -f conftest.er1
31674   cat conftest.err >&5
31675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676   (exit $ac_status); } && {
31677          test -z "$ac_c_werror_flag" ||
31678          test ! -s conftest.err
31679        } && test -s conftest$ac_exeext &&
31680        $as_test_x conftest$ac_exeext; then
31681   ac_cv_lib_slp_SLPOpen=yes
31682 else
31683   echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31685
31686         ac_cv_lib_slp_SLPOpen=no
31687 fi
31688
31689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31690       conftest$ac_exeext conftest.$ac_ext
31691 LIBS=$ac_check_lib_save_LIBS
31692 fi
31693 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31694 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31695 if test $ac_cv_lib_slp_SLPOpen = yes; then
31696   have_slp=yes
31697 else
31698   have_slp=no
31699 fi
31700
31701                 if test $have_slp = yes ; then
31702
31703 cat >>confdefs.h <<\_ACEOF
31704 #define HAVE_SLP 1
31705 _ACEOF
31706
31707                         SLAPD_SLP_LIBS=-lslp
31708                 fi
31709
31710         elif test $ol_enable_slp = yes ; then
31711                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31712 echo "$as_me: error: SLP not found" >&2;}
31713    { (exit 1); exit 1; }; }
31714         fi
31715 fi
31716
31717
31718 { echo "$as_me:$LINENO: checking for mode_t" >&5
31719 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31720 if test "${ac_cv_type_mode_t+set}" = set; then
31721   echo $ECHO_N "(cached) $ECHO_C" >&6
31722 else
31723   cat >conftest.$ac_ext <<_ACEOF
31724 /* confdefs.h.  */
31725 _ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h.  */
31729 $ac_includes_default
31730 typedef mode_t ac__type_new_;
31731 int
31732 main ()
31733 {
31734 if ((ac__type_new_ *) 0)
31735   return 0;
31736 if (sizeof (ac__type_new_))
31737   return 0;
31738   ;
31739   return 0;
31740 }
31741 _ACEOF
31742 rm -f conftest.$ac_objext
31743 if { (ac_try="$ac_compile"
31744 case "(($ac_try" in
31745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746   *) ac_try_echo=$ac_try;;
31747 esac
31748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749   (eval "$ac_compile") 2>conftest.er1
31750   ac_status=$?
31751   grep -v '^ *+' conftest.er1 >conftest.err
31752   rm -f conftest.er1
31753   cat conftest.err >&5
31754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755   (exit $ac_status); } && {
31756          test -z "$ac_c_werror_flag" ||
31757          test ! -s conftest.err
31758        } && test -s conftest.$ac_objext; then
31759   ac_cv_type_mode_t=yes
31760 else
31761   echo "$as_me: failed program was:" >&5
31762 sed 's/^/| /' conftest.$ac_ext >&5
31763
31764         ac_cv_type_mode_t=no
31765 fi
31766
31767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768 fi
31769 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31770 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31771 if test $ac_cv_type_mode_t = yes; then
31772   :
31773 else
31774
31775 cat >>confdefs.h <<_ACEOF
31776 #define mode_t int
31777 _ACEOF
31778
31779 fi
31780
31781 { echo "$as_me:$LINENO: checking for off_t" >&5
31782 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31783 if test "${ac_cv_type_off_t+set}" = set; then
31784   echo $ECHO_N "(cached) $ECHO_C" >&6
31785 else
31786   cat >conftest.$ac_ext <<_ACEOF
31787 /* confdefs.h.  */
31788 _ACEOF
31789 cat confdefs.h >>conftest.$ac_ext
31790 cat >>conftest.$ac_ext <<_ACEOF
31791 /* end confdefs.h.  */
31792 $ac_includes_default
31793 typedef off_t ac__type_new_;
31794 int
31795 main ()
31796 {
31797 if ((ac__type_new_ *) 0)
31798   return 0;
31799 if (sizeof (ac__type_new_))
31800   return 0;
31801   ;
31802   return 0;
31803 }
31804 _ACEOF
31805 rm -f conftest.$ac_objext
31806 if { (ac_try="$ac_compile"
31807 case "(($ac_try" in
31808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809   *) ac_try_echo=$ac_try;;
31810 esac
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812   (eval "$ac_compile") 2>conftest.er1
31813   ac_status=$?
31814   grep -v '^ *+' conftest.er1 >conftest.err
31815   rm -f conftest.er1
31816   cat conftest.err >&5
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); } && {
31819          test -z "$ac_c_werror_flag" ||
31820          test ! -s conftest.err
31821        } && test -s conftest.$ac_objext; then
31822   ac_cv_type_off_t=yes
31823 else
31824   echo "$as_me: failed program was:" >&5
31825 sed 's/^/| /' conftest.$ac_ext >&5
31826
31827         ac_cv_type_off_t=no
31828 fi
31829
31830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31831 fi
31832 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31833 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31834 if test $ac_cv_type_off_t = yes; then
31835   :
31836 else
31837
31838 cat >>confdefs.h <<_ACEOF
31839 #define off_t long
31840 _ACEOF
31841
31842 fi
31843
31844 { echo "$as_me:$LINENO: checking for pid_t" >&5
31845 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31846 if test "${ac_cv_type_pid_t+set}" = set; then
31847   echo $ECHO_N "(cached) $ECHO_C" >&6
31848 else
31849   cat >conftest.$ac_ext <<_ACEOF
31850 /* confdefs.h.  */
31851 _ACEOF
31852 cat confdefs.h >>conftest.$ac_ext
31853 cat >>conftest.$ac_ext <<_ACEOF
31854 /* end confdefs.h.  */
31855 $ac_includes_default
31856 typedef pid_t ac__type_new_;
31857 int
31858 main ()
31859 {
31860 if ((ac__type_new_ *) 0)
31861   return 0;
31862 if (sizeof (ac__type_new_))
31863   return 0;
31864   ;
31865   return 0;
31866 }
31867 _ACEOF
31868 rm -f conftest.$ac_objext
31869 if { (ac_try="$ac_compile"
31870 case "(($ac_try" in
31871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31872   *) ac_try_echo=$ac_try;;
31873 esac
31874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31875   (eval "$ac_compile") 2>conftest.er1
31876   ac_status=$?
31877   grep -v '^ *+' conftest.er1 >conftest.err
31878   rm -f conftest.er1
31879   cat conftest.err >&5
31880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881   (exit $ac_status); } && {
31882          test -z "$ac_c_werror_flag" ||
31883          test ! -s conftest.err
31884        } && test -s conftest.$ac_objext; then
31885   ac_cv_type_pid_t=yes
31886 else
31887   echo "$as_me: failed program was:" >&5
31888 sed 's/^/| /' conftest.$ac_ext >&5
31889
31890         ac_cv_type_pid_t=no
31891 fi
31892
31893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31894 fi
31895 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31896 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31897 if test $ac_cv_type_pid_t = yes; then
31898   :
31899 else
31900
31901 cat >>confdefs.h <<_ACEOF
31902 #define pid_t int
31903 _ACEOF
31904
31905 fi
31906
31907 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31908 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31909 if test "${ac_cv_type_ssize_t+set}" = set; then
31910   echo $ECHO_N "(cached) $ECHO_C" >&6
31911 else
31912   cat >conftest.$ac_ext <<_ACEOF
31913 /* confdefs.h.  */
31914 _ACEOF
31915 cat confdefs.h >>conftest.$ac_ext
31916 cat >>conftest.$ac_ext <<_ACEOF
31917 /* end confdefs.h.  */
31918 $ac_includes_default
31919 typedef ssize_t ac__type_new_;
31920 int
31921 main ()
31922 {
31923 if ((ac__type_new_ *) 0)
31924   return 0;
31925 if (sizeof (ac__type_new_))
31926   return 0;
31927   ;
31928   return 0;
31929 }
31930 _ACEOF
31931 rm -f conftest.$ac_objext
31932 if { (ac_try="$ac_compile"
31933 case "(($ac_try" in
31934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935   *) ac_try_echo=$ac_try;;
31936 esac
31937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938   (eval "$ac_compile") 2>conftest.er1
31939   ac_status=$?
31940   grep -v '^ *+' conftest.er1 >conftest.err
31941   rm -f conftest.er1
31942   cat conftest.err >&5
31943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944   (exit $ac_status); } && {
31945          test -z "$ac_c_werror_flag" ||
31946          test ! -s conftest.err
31947        } && test -s conftest.$ac_objext; then
31948   ac_cv_type_ssize_t=yes
31949 else
31950   echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31952
31953         ac_cv_type_ssize_t=no
31954 fi
31955
31956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31957 fi
31958 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31959 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31960 if test $ac_cv_type_ssize_t = yes; then
31961   :
31962 else
31963
31964 cat >>confdefs.h <<_ACEOF
31965 #define ssize_t signed int
31966 _ACEOF
31967
31968 fi
31969
31970 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31971 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31972 if test "${ac_cv_type_caddr_t+set}" = set; then
31973   echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975   cat >conftest.$ac_ext <<_ACEOF
31976 /* confdefs.h.  */
31977 _ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h.  */
31981 $ac_includes_default
31982 typedef caddr_t ac__type_new_;
31983 int
31984 main ()
31985 {
31986 if ((ac__type_new_ *) 0)
31987   return 0;
31988 if (sizeof (ac__type_new_))
31989   return 0;
31990   ;
31991   return 0;
31992 }
31993 _ACEOF
31994 rm -f conftest.$ac_objext
31995 if { (ac_try="$ac_compile"
31996 case "(($ac_try" in
31997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998   *) ac_try_echo=$ac_try;;
31999 esac
32000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001   (eval "$ac_compile") 2>conftest.er1
32002   ac_status=$?
32003   grep -v '^ *+' conftest.er1 >conftest.err
32004   rm -f conftest.er1
32005   cat conftest.err >&5
32006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007   (exit $ac_status); } && {
32008          test -z "$ac_c_werror_flag" ||
32009          test ! -s conftest.err
32010        } && test -s conftest.$ac_objext; then
32011   ac_cv_type_caddr_t=yes
32012 else
32013   echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.$ac_ext >&5
32015
32016         ac_cv_type_caddr_t=no
32017 fi
32018
32019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32020 fi
32021 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32022 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32023 if test $ac_cv_type_caddr_t = yes; then
32024   :
32025 else
32026
32027 cat >>confdefs.h <<_ACEOF
32028 #define caddr_t char *
32029 _ACEOF
32030
32031 fi
32032
32033 { echo "$as_me:$LINENO: checking for size_t" >&5
32034 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32035 if test "${ac_cv_type_size_t+set}" = set; then
32036   echo $ECHO_N "(cached) $ECHO_C" >&6
32037 else
32038   cat >conftest.$ac_ext <<_ACEOF
32039 /* confdefs.h.  */
32040 _ACEOF
32041 cat confdefs.h >>conftest.$ac_ext
32042 cat >>conftest.$ac_ext <<_ACEOF
32043 /* end confdefs.h.  */
32044 $ac_includes_default
32045 typedef size_t ac__type_new_;
32046 int
32047 main ()
32048 {
32049 if ((ac__type_new_ *) 0)
32050   return 0;
32051 if (sizeof (ac__type_new_))
32052   return 0;
32053   ;
32054   return 0;
32055 }
32056 _ACEOF
32057 rm -f conftest.$ac_objext
32058 if { (ac_try="$ac_compile"
32059 case "(($ac_try" in
32060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32061   *) ac_try_echo=$ac_try;;
32062 esac
32063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32064   (eval "$ac_compile") 2>conftest.er1
32065   ac_status=$?
32066   grep -v '^ *+' conftest.er1 >conftest.err
32067   rm -f conftest.er1
32068   cat conftest.err >&5
32069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070   (exit $ac_status); } && {
32071          test -z "$ac_c_werror_flag" ||
32072          test ! -s conftest.err
32073        } && test -s conftest.$ac_objext; then
32074   ac_cv_type_size_t=yes
32075 else
32076   echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32078
32079         ac_cv_type_size_t=no
32080 fi
32081
32082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32083 fi
32084 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32085 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32086 if test $ac_cv_type_size_t = yes; then
32087   :
32088 else
32089
32090 cat >>confdefs.h <<_ACEOF
32091 #define size_t unsigned
32092 _ACEOF
32093
32094 fi
32095
32096
32097 { echo "$as_me:$LINENO: checking for long long" >&5
32098 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32099 if test "${ac_cv_type_long_long+set}" = set; then
32100   echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102   cat >conftest.$ac_ext <<_ACEOF
32103 /* confdefs.h.  */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h.  */
32108 $ac_includes_default
32109 typedef long long ac__type_new_;
32110 int
32111 main ()
32112 {
32113 if ((ac__type_new_ *) 0)
32114   return 0;
32115 if (sizeof (ac__type_new_))
32116   return 0;
32117   ;
32118   return 0;
32119 }
32120 _ACEOF
32121 rm -f conftest.$ac_objext
32122 if { (ac_try="$ac_compile"
32123 case "(($ac_try" in
32124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125   *) ac_try_echo=$ac_try;;
32126 esac
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128   (eval "$ac_compile") 2>conftest.er1
32129   ac_status=$?
32130   grep -v '^ *+' conftest.er1 >conftest.err
32131   rm -f conftest.er1
32132   cat conftest.err >&5
32133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134   (exit $ac_status); } && {
32135          test -z "$ac_c_werror_flag" ||
32136          test ! -s conftest.err
32137        } && test -s conftest.$ac_objext; then
32138   ac_cv_type_long_long=yes
32139 else
32140   echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32142
32143         ac_cv_type_long_long=no
32144 fi
32145
32146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32147 fi
32148 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32149 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32150 if test $ac_cv_type_long_long = yes; then
32151
32152 cat >>confdefs.h <<_ACEOF
32153 #define HAVE_LONG_LONG 1
32154 _ACEOF
32155
32156
32157 fi
32158
32159 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32160 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32161 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32162   echo $ECHO_N "(cached) $ECHO_C" >&6
32163 else
32164   cat >conftest.$ac_ext <<_ACEOF
32165 /* confdefs.h.  */
32166 _ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h.  */
32170 $ac_includes_default
32171 typedef ptrdiff_t ac__type_new_;
32172 int
32173 main ()
32174 {
32175 if ((ac__type_new_ *) 0)
32176   return 0;
32177 if (sizeof (ac__type_new_))
32178   return 0;
32179   ;
32180   return 0;
32181 }
32182 _ACEOF
32183 rm -f conftest.$ac_objext
32184 if { (ac_try="$ac_compile"
32185 case "(($ac_try" in
32186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187   *) ac_try_echo=$ac_try;;
32188 esac
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190   (eval "$ac_compile") 2>conftest.er1
32191   ac_status=$?
32192   grep -v '^ *+' conftest.er1 >conftest.err
32193   rm -f conftest.er1
32194   cat conftest.err >&5
32195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196   (exit $ac_status); } && {
32197          test -z "$ac_c_werror_flag" ||
32198          test ! -s conftest.err
32199        } && test -s conftest.$ac_objext; then
32200   ac_cv_type_ptrdiff_t=yes
32201 else
32202   echo "$as_me: failed program was:" >&5
32203 sed 's/^/| /' conftest.$ac_ext >&5
32204
32205         ac_cv_type_ptrdiff_t=no
32206 fi
32207
32208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32209 fi
32210 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32211 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32212 if test $ac_cv_type_ptrdiff_t = yes; then
32213
32214 cat >>confdefs.h <<_ACEOF
32215 #define HAVE_PTRDIFF_T 1
32216 _ACEOF
32217
32218
32219 fi
32220
32221
32222
32223 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32224 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32225 if test "${ac_cv_type_socklen_t+set}" = set; then
32226   echo $ECHO_N "(cached) $ECHO_C" >&6
32227 else
32228   cat >conftest.$ac_ext <<_ACEOF
32229 /* confdefs.h.  */
32230 _ACEOF
32231 cat confdefs.h >>conftest.$ac_ext
32232 cat >>conftest.$ac_ext <<_ACEOF
32233 /* end confdefs.h.  */
32234 $ac_includes_default
32235 #ifdef HAVE_SYS_SOCKET_H
32236 #include <sys/socket.h>
32237 #endif
32238
32239 typedef socklen_t ac__type_new_;
32240 int
32241 main ()
32242 {
32243 if ((ac__type_new_ *) 0)
32244   return 0;
32245 if (sizeof (ac__type_new_))
32246   return 0;
32247   ;
32248   return 0;
32249 }
32250 _ACEOF
32251 rm -f conftest.$ac_objext
32252 if { (ac_try="$ac_compile"
32253 case "(($ac_try" in
32254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255   *) ac_try_echo=$ac_try;;
32256 esac
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258   (eval "$ac_compile") 2>conftest.er1
32259   ac_status=$?
32260   grep -v '^ *+' conftest.er1 >conftest.err
32261   rm -f conftest.er1
32262   cat conftest.err >&5
32263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264   (exit $ac_status); } && {
32265          test -z "$ac_c_werror_flag" ||
32266          test ! -s conftest.err
32267        } && test -s conftest.$ac_objext; then
32268   ac_cv_type_socklen_t=yes
32269 else
32270   echo "$as_me: failed program was:" >&5
32271 sed 's/^/| /' conftest.$ac_ext >&5
32272
32273         ac_cv_type_socklen_t=no
32274 fi
32275
32276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32277 fi
32278 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32279 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32280
32281
32282 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32283 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32284 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32285   echo $ECHO_N "(cached) $ECHO_C" >&6
32286 else
32287
32288         set socklen_t int unsigned "unsigned long" long size_t
32289         test "$ac_cv_type_socklen_t" = yes || shift
32290         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32291         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32292                 cat >conftest.$ac_ext <<_ACEOF
32293 /* confdefs.h.  */
32294 _ACEOF
32295 cat confdefs.h >>conftest.$ac_ext
32296 cat >>conftest.$ac_ext <<_ACEOF
32297 /* end confdefs.h.  */
32298 $ac_includes_default
32299 #ifdef HAVE_SYS_SOCKET_H
32300 #include <sys/socket.h>
32301 #endif
32302 extern int accept(int s, $addrtype *ap, $lentype *lp);
32303
32304 int
32305 main ()
32306 {
32307
32308 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32309
32310   ;
32311   return 0;
32312 }
32313 _ACEOF
32314 rm -f conftest.$ac_objext
32315 if { (ac_try="$ac_compile"
32316 case "(($ac_try" in
32317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318   *) ac_try_echo=$ac_try;;
32319 esac
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321   (eval "$ac_compile") 2>conftest.er1
32322   ac_status=$?
32323   grep -v '^ *+' conftest.er1 >conftest.err
32324   rm -f conftest.er1
32325   cat conftest.err >&5
32326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327   (exit $ac_status); } && {
32328          test -z "$ac_c_werror_flag" ||
32329          test ! -s conftest.err
32330        } && test -s conftest.$ac_objext; then
32331   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32332 else
32333   echo "$as_me: failed program was:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32335
32336
32337 fi
32338
32339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32340         done ; done
32341 fi
32342
32343 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32344 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32345
32346 cat >>confdefs.h <<_ACEOF
32347 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32348 _ACEOF
32349
32350
32351 if test "$ac_cv_type_socklen_t" != yes; then
32352
32353 cat >>confdefs.h <<_ACEOF
32354 #define socklen_t $ol_cv_type_ber_socklen_t
32355 _ACEOF
32356
32357 fi
32358
32359
32360 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32361 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32362 if test "${ac_cv_type_signal+set}" = set; then
32363   echo $ECHO_N "(cached) $ECHO_C" >&6
32364 else
32365   cat >conftest.$ac_ext <<_ACEOF
32366 /* confdefs.h.  */
32367 _ACEOF
32368 cat confdefs.h >>conftest.$ac_ext
32369 cat >>conftest.$ac_ext <<_ACEOF
32370 /* end confdefs.h.  */
32371 #include <sys/types.h>
32372 #include <signal.h>
32373
32374 int
32375 main ()
32376 {
32377 return *(signal (0, 0)) (0) == 1;
32378   ;
32379   return 0;
32380 }
32381 _ACEOF
32382 rm -f conftest.$ac_objext
32383 if { (ac_try="$ac_compile"
32384 case "(($ac_try" in
32385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386   *) ac_try_echo=$ac_try;;
32387 esac
32388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389   (eval "$ac_compile") 2>conftest.er1
32390   ac_status=$?
32391   grep -v '^ *+' conftest.er1 >conftest.err
32392   rm -f conftest.er1
32393   cat conftest.err >&5
32394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395   (exit $ac_status); } && {
32396          test -z "$ac_c_werror_flag" ||
32397          test ! -s conftest.err
32398        } && test -s conftest.$ac_objext; then
32399   ac_cv_type_signal=int
32400 else
32401   echo "$as_me: failed program was:" >&5
32402 sed 's/^/| /' conftest.$ac_ext >&5
32403
32404         ac_cv_type_signal=void
32405 fi
32406
32407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32408 fi
32409 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32410 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32411
32412 cat >>confdefs.h <<_ACEOF
32413 #define RETSIGTYPE $ac_cv_type_signal
32414 _ACEOF
32415
32416
32417
32418 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32419 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32420 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32421   echo $ECHO_N "(cached) $ECHO_C" >&6
32422 else
32423   cat >conftest.$ac_ext <<_ACEOF
32424 /* confdefs.h.  */
32425 _ACEOF
32426 cat confdefs.h >>conftest.$ac_ext
32427 cat >>conftest.$ac_ext <<_ACEOF
32428 /* end confdefs.h.  */
32429 $ac_includes_default
32430 #include <signal.h>
32431
32432
32433 typedef sig_atomic_t ac__type_new_;
32434 int
32435 main ()
32436 {
32437 if ((ac__type_new_ *) 0)
32438   return 0;
32439 if (sizeof (ac__type_new_))
32440   return 0;
32441   ;
32442   return 0;
32443 }
32444 _ACEOF
32445 rm -f conftest.$ac_objext
32446 if { (ac_try="$ac_compile"
32447 case "(($ac_try" in
32448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449   *) ac_try_echo=$ac_try;;
32450 esac
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452   (eval "$ac_compile") 2>conftest.er1
32453   ac_status=$?
32454   grep -v '^ *+' conftest.er1 >conftest.err
32455   rm -f conftest.er1
32456   cat conftest.err >&5
32457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); } && {
32459          test -z "$ac_c_werror_flag" ||
32460          test ! -s conftest.err
32461        } && test -s conftest.$ac_objext; then
32462   ac_cv_type_sig_atomic_t=yes
32463 else
32464   echo "$as_me: failed program was:" >&5
32465 sed 's/^/| /' conftest.$ac_ext >&5
32466
32467         ac_cv_type_sig_atomic_t=no
32468 fi
32469
32470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32471 fi
32472 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32473 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32474 if test $ac_cv_type_sig_atomic_t = yes; then
32475   :
32476 else
32477
32478 cat >>confdefs.h <<_ACEOF
32479 #define sig_atomic_t int
32480 _ACEOF
32481
32482 fi
32483
32484
32485 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32486 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32487 if test "${ac_cv_type_uid_t+set}" = set; then
32488   echo $ECHO_N "(cached) $ECHO_C" >&6
32489 else
32490   cat >conftest.$ac_ext <<_ACEOF
32491 /* confdefs.h.  */
32492 _ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h.  */
32496 #include <sys/types.h>
32497
32498 _ACEOF
32499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32500   $EGREP "uid_t" >/dev/null 2>&1; then
32501   ac_cv_type_uid_t=yes
32502 else
32503   ac_cv_type_uid_t=no
32504 fi
32505 rm -f conftest*
32506
32507 fi
32508 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32509 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32510 if test $ac_cv_type_uid_t = no; then
32511
32512 cat >>confdefs.h <<\_ACEOF
32513 #define uid_t int
32514 _ACEOF
32515
32516
32517 cat >>confdefs.h <<\_ACEOF
32518 #define gid_t int
32519 _ACEOF
32520
32521 fi
32522
32523
32524 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32525 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32526 if test "${ac_cv_header_time+set}" = set; then
32527   echo $ECHO_N "(cached) $ECHO_C" >&6
32528 else
32529   cat >conftest.$ac_ext <<_ACEOF
32530 /* confdefs.h.  */
32531 _ACEOF
32532 cat confdefs.h >>conftest.$ac_ext
32533 cat >>conftest.$ac_ext <<_ACEOF
32534 /* end confdefs.h.  */
32535 #include <sys/types.h>
32536 #include <sys/time.h>
32537 #include <time.h>
32538
32539 int
32540 main ()
32541 {
32542 if ((struct tm *) 0)
32543 return 0;
32544   ;
32545   return 0;
32546 }
32547 _ACEOF
32548 rm -f conftest.$ac_objext
32549 if { (ac_try="$ac_compile"
32550 case "(($ac_try" in
32551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32552   *) ac_try_echo=$ac_try;;
32553 esac
32554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32555   (eval "$ac_compile") 2>conftest.er1
32556   ac_status=$?
32557   grep -v '^ *+' conftest.er1 >conftest.err
32558   rm -f conftest.er1
32559   cat conftest.err >&5
32560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561   (exit $ac_status); } && {
32562          test -z "$ac_c_werror_flag" ||
32563          test ! -s conftest.err
32564        } && test -s conftest.$ac_objext; then
32565   ac_cv_header_time=yes
32566 else
32567   echo "$as_me: failed program was:" >&5
32568 sed 's/^/| /' conftest.$ac_ext >&5
32569
32570         ac_cv_header_time=no
32571 fi
32572
32573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32574 fi
32575 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32576 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32577 if test $ac_cv_header_time = yes; then
32578
32579 cat >>confdefs.h <<\_ACEOF
32580 #define TIME_WITH_SYS_TIME 1
32581 _ACEOF
32582
32583 fi
32584
32585 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32586 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32587 if test "${ac_cv_struct_tm+set}" = set; then
32588   echo $ECHO_N "(cached) $ECHO_C" >&6
32589 else
32590   cat >conftest.$ac_ext <<_ACEOF
32591 /* confdefs.h.  */
32592 _ACEOF
32593 cat confdefs.h >>conftest.$ac_ext
32594 cat >>conftest.$ac_ext <<_ACEOF
32595 /* end confdefs.h.  */
32596 #include <sys/types.h>
32597 #include <time.h>
32598
32599 int
32600 main ()
32601 {
32602 struct tm tm;
32603                                      int *p = &tm.tm_sec;
32604                                      return !p;
32605   ;
32606   return 0;
32607 }
32608 _ACEOF
32609 rm -f conftest.$ac_objext
32610 if { (ac_try="$ac_compile"
32611 case "(($ac_try" in
32612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613   *) ac_try_echo=$ac_try;;
32614 esac
32615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616   (eval "$ac_compile") 2>conftest.er1
32617   ac_status=$?
32618   grep -v '^ *+' conftest.er1 >conftest.err
32619   rm -f conftest.er1
32620   cat conftest.err >&5
32621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622   (exit $ac_status); } && {
32623          test -z "$ac_c_werror_flag" ||
32624          test ! -s conftest.err
32625        } && test -s conftest.$ac_objext; then
32626   ac_cv_struct_tm=time.h
32627 else
32628   echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32630
32631         ac_cv_struct_tm=sys/time.h
32632 fi
32633
32634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32635 fi
32636 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32637 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32638 if test $ac_cv_struct_tm = sys/time.h; then
32639
32640 cat >>confdefs.h <<\_ACEOF
32641 #define TM_IN_SYS_TIME 1
32642 _ACEOF
32643
32644 fi
32645
32646 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32647 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32648 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32649   echo $ECHO_N "(cached) $ECHO_C" >&6
32650 else
32651   cat >conftest.$ac_ext <<_ACEOF
32652 /* confdefs.h.  */
32653 _ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h.  */
32657 $ac_includes_default
32658 int
32659 main ()
32660 {
32661 static struct stat ac_aggr;
32662 if (ac_aggr.st_blksize)
32663 return 0;
32664   ;
32665   return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest.$ac_objext
32669 if { (ac_try="$ac_compile"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_compile") 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } && {
32682          test -z "$ac_c_werror_flag" ||
32683          test ! -s conftest.err
32684        } && test -s conftest.$ac_objext; then
32685   ac_cv_member_struct_stat_st_blksize=yes
32686 else
32687   echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32689
32690         cat >conftest.$ac_ext <<_ACEOF
32691 /* confdefs.h.  */
32692 _ACEOF
32693 cat confdefs.h >>conftest.$ac_ext
32694 cat >>conftest.$ac_ext <<_ACEOF
32695 /* end confdefs.h.  */
32696 $ac_includes_default
32697 int
32698 main ()
32699 {
32700 static struct stat ac_aggr;
32701 if (sizeof ac_aggr.st_blksize)
32702 return 0;
32703   ;
32704   return 0;
32705 }
32706 _ACEOF
32707 rm -f conftest.$ac_objext
32708 if { (ac_try="$ac_compile"
32709 case "(($ac_try" in
32710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32711   *) ac_try_echo=$ac_try;;
32712 esac
32713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32714   (eval "$ac_compile") 2>conftest.er1
32715   ac_status=$?
32716   grep -v '^ *+' conftest.er1 >conftest.err
32717   rm -f conftest.er1
32718   cat conftest.err >&5
32719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720   (exit $ac_status); } && {
32721          test -z "$ac_c_werror_flag" ||
32722          test ! -s conftest.err
32723        } && test -s conftest.$ac_objext; then
32724   ac_cv_member_struct_stat_st_blksize=yes
32725 else
32726   echo "$as_me: failed program was:" >&5
32727 sed 's/^/| /' conftest.$ac_ext >&5
32728
32729         ac_cv_member_struct_stat_st_blksize=no
32730 fi
32731
32732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733 fi
32734
32735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32736 fi
32737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32738 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32739 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32740
32741 cat >>confdefs.h <<_ACEOF
32742 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32743 _ACEOF
32744
32745
32746 fi
32747
32748 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32749 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32750 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32751   echo $ECHO_N "(cached) $ECHO_C" >&6
32752 else
32753   cat >conftest.$ac_ext <<_ACEOF
32754 /* confdefs.h.  */
32755 _ACEOF
32756 cat confdefs.h >>conftest.$ac_ext
32757 cat >>conftest.$ac_ext <<_ACEOF
32758 /* end confdefs.h.  */
32759 $ac_includes_default
32760 #include <pwd.h>
32761
32762 int
32763 main ()
32764 {
32765 static struct passwd ac_aggr;
32766 if (ac_aggr.pw_gecos)
32767 return 0;
32768   ;
32769   return 0;
32770 }
32771 _ACEOF
32772 rm -f conftest.$ac_objext
32773 if { (ac_try="$ac_compile"
32774 case "(($ac_try" in
32775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776   *) ac_try_echo=$ac_try;;
32777 esac
32778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779   (eval "$ac_compile") 2>conftest.er1
32780   ac_status=$?
32781   grep -v '^ *+' conftest.er1 >conftest.err
32782   rm -f conftest.er1
32783   cat conftest.err >&5
32784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785   (exit $ac_status); } && {
32786          test -z "$ac_c_werror_flag" ||
32787          test ! -s conftest.err
32788        } && test -s conftest.$ac_objext; then
32789   ac_cv_member_struct_passwd_pw_gecos=yes
32790 else
32791   echo "$as_me: failed program was:" >&5
32792 sed 's/^/| /' conftest.$ac_ext >&5
32793
32794         cat >conftest.$ac_ext <<_ACEOF
32795 /* confdefs.h.  */
32796 _ACEOF
32797 cat confdefs.h >>conftest.$ac_ext
32798 cat >>conftest.$ac_ext <<_ACEOF
32799 /* end confdefs.h.  */
32800 $ac_includes_default
32801 #include <pwd.h>
32802
32803 int
32804 main ()
32805 {
32806 static struct passwd ac_aggr;
32807 if (sizeof ac_aggr.pw_gecos)
32808 return 0;
32809   ;
32810   return 0;
32811 }
32812 _ACEOF
32813 rm -f conftest.$ac_objext
32814 if { (ac_try="$ac_compile"
32815 case "(($ac_try" in
32816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817   *) ac_try_echo=$ac_try;;
32818 esac
32819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32820   (eval "$ac_compile") 2>conftest.er1
32821   ac_status=$?
32822   grep -v '^ *+' conftest.er1 >conftest.err
32823   rm -f conftest.er1
32824   cat conftest.err >&5
32825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826   (exit $ac_status); } && {
32827          test -z "$ac_c_werror_flag" ||
32828          test ! -s conftest.err
32829        } && test -s conftest.$ac_objext; then
32830   ac_cv_member_struct_passwd_pw_gecos=yes
32831 else
32832   echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32834
32835         ac_cv_member_struct_passwd_pw_gecos=no
32836 fi
32837
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32839 fi
32840
32841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32842 fi
32843 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32844 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32845 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32846
32847 cat >>confdefs.h <<_ACEOF
32848 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32849 _ACEOF
32850
32851
32852 fi
32853
32854 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32855 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32856 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32857   echo $ECHO_N "(cached) $ECHO_C" >&6
32858 else
32859   cat >conftest.$ac_ext <<_ACEOF
32860 /* confdefs.h.  */
32861 _ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h.  */
32865 $ac_includes_default
32866 #include <pwd.h>
32867
32868 int
32869 main ()
32870 {
32871 static struct passwd ac_aggr;
32872 if (ac_aggr.pw_passwd)
32873 return 0;
32874   ;
32875   return 0;
32876 }
32877 _ACEOF
32878 rm -f conftest.$ac_objext
32879 if { (ac_try="$ac_compile"
32880 case "(($ac_try" in
32881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882   *) ac_try_echo=$ac_try;;
32883 esac
32884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885   (eval "$ac_compile") 2>conftest.er1
32886   ac_status=$?
32887   grep -v '^ *+' conftest.er1 >conftest.err
32888   rm -f conftest.er1
32889   cat conftest.err >&5
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); } && {
32892          test -z "$ac_c_werror_flag" ||
32893          test ! -s conftest.err
32894        } && test -s conftest.$ac_objext; then
32895   ac_cv_member_struct_passwd_pw_passwd=yes
32896 else
32897   echo "$as_me: failed program was:" >&5
32898 sed 's/^/| /' conftest.$ac_ext >&5
32899
32900         cat >conftest.$ac_ext <<_ACEOF
32901 /* confdefs.h.  */
32902 _ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h.  */
32906 $ac_includes_default
32907 #include <pwd.h>
32908
32909 int
32910 main ()
32911 {
32912 static struct passwd ac_aggr;
32913 if (sizeof ac_aggr.pw_passwd)
32914 return 0;
32915   ;
32916   return 0;
32917 }
32918 _ACEOF
32919 rm -f conftest.$ac_objext
32920 if { (ac_try="$ac_compile"
32921 case "(($ac_try" in
32922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923   *) ac_try_echo=$ac_try;;
32924 esac
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926   (eval "$ac_compile") 2>conftest.er1
32927   ac_status=$?
32928   grep -v '^ *+' conftest.er1 >conftest.err
32929   rm -f conftest.er1
32930   cat conftest.err >&5
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); } && {
32933          test -z "$ac_c_werror_flag" ||
32934          test ! -s conftest.err
32935        } && test -s conftest.$ac_objext; then
32936   ac_cv_member_struct_passwd_pw_passwd=yes
32937 else
32938   echo "$as_me: failed program was:" >&5
32939 sed 's/^/| /' conftest.$ac_ext >&5
32940
32941         ac_cv_member_struct_passwd_pw_passwd=no
32942 fi
32943
32944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32945 fi
32946
32947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32948 fi
32949 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32950 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32951 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32952
32953 cat >>confdefs.h <<_ACEOF
32954 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32955 _ACEOF
32956
32957
32958 fi
32959
32960
32961 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32962 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32963 if test "${ol_cv_c_upper_lower+set}" = set; then
32964   echo $ECHO_N "(cached) $ECHO_C" >&6
32965 else
32966
32967         if test "$cross_compiling" = yes; then
32968   ol_cv_c_upper_lower=safe
32969 else
32970   cat >conftest.$ac_ext <<_ACEOF
32971 /* confdefs.h.  */
32972 _ACEOF
32973 cat confdefs.h >>conftest.$ac_ext
32974 cat >>conftest.$ac_ext <<_ACEOF
32975 /* end confdefs.h.  */
32976
32977 #include <ctype.h>
32978 main()
32979 {
32980         if ('C' == toupper('C'))
32981                 exit(0);
32982         else
32983                 exit(1);
32984 }
32985 _ACEOF
32986 rm -f conftest$ac_exeext
32987 if { (ac_try="$ac_link"
32988 case "(($ac_try" in
32989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990   *) ac_try_echo=$ac_try;;
32991 esac
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993   (eval "$ac_link") 2>&5
32994   ac_status=$?
32995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32997   { (case "(($ac_try" in
32998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32999   *) ac_try_echo=$ac_try;;
33000 esac
33001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33002   (eval "$ac_try") 2>&5
33003   ac_status=$?
33004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005   (exit $ac_status); }; }; then
33006   ol_cv_c_upper_lower=no
33007 else
33008   echo "$as_me: program exited with status $ac_status" >&5
33009 echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33011
33012 ( exit $ac_status )
33013 ol_cv_c_upper_lower=yes
33014 fi
33015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33016 fi
33017
33018
33019 fi
33020 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33021 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33022 if test $ol_cv_c_upper_lower != no ; then
33023
33024 cat >>confdefs.h <<\_ACEOF
33025 #define C_UPPER_LOWER 1
33026 _ACEOF
33027
33028 fi
33029
33030 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33032 if test "${ac_cv_c_const+set}" = set; then
33033   echo $ECHO_N "(cached) $ECHO_C" >&6
33034 else
33035   cat >conftest.$ac_ext <<_ACEOF
33036 /* confdefs.h.  */
33037 _ACEOF
33038 cat confdefs.h >>conftest.$ac_ext
33039 cat >>conftest.$ac_ext <<_ACEOF
33040 /* end confdefs.h.  */
33041
33042 int
33043 main ()
33044 {
33045 /* FIXME: Include the comments suggested by Paul. */
33046 #ifndef __cplusplus
33047   /* Ultrix mips cc rejects this.  */
33048   typedef int charset[2];
33049   const charset cs;
33050   /* SunOS 4.1.1 cc rejects this.  */
33051   char const *const *pcpcc;
33052   char **ppc;
33053   /* NEC SVR4.0.2 mips cc rejects this.  */
33054   struct point {int x, y;};
33055   static struct point const zero = {0,0};
33056   /* AIX XL C 1.02.0.0 rejects this.
33057      It does not let you subtract one const X* pointer from another in
33058      an arm of an if-expression whose if-part is not a constant
33059      expression */
33060   const char *g = "string";
33061   pcpcc = &g + (g ? g-g : 0);
33062   /* HPUX 7.0 cc rejects these. */
33063   ++pcpcc;
33064   ppc = (char**) pcpcc;
33065   pcpcc = (char const *const *) ppc;
33066   { /* SCO 3.2v4 cc rejects this.  */
33067     char *t;
33068     char const *s = 0 ? (char *) 0 : (char const *) 0;
33069
33070     *t++ = 0;
33071     if (s) return 0;
33072   }
33073   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33074     int x[] = {25, 17};
33075     const int *foo = &x[0];
33076     ++foo;
33077   }
33078   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33079     typedef const int *iptr;
33080     iptr p = 0;
33081     ++p;
33082   }
33083   { /* AIX XL C 1.02.0.0 rejects this saying
33084        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33085     struct s { int j; const int *ap[3]; };
33086     struct s *b; b->j = 5;
33087   }
33088   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33089     const int foo = 10;
33090     if (!foo) return 0;
33091   }
33092   return !cs[0] && !zero.x;
33093 #endif
33094
33095   ;
33096   return 0;
33097 }
33098 _ACEOF
33099 rm -f conftest.$ac_objext
33100 if { (ac_try="$ac_compile"
33101 case "(($ac_try" in
33102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103   *) ac_try_echo=$ac_try;;
33104 esac
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106   (eval "$ac_compile") 2>conftest.er1
33107   ac_status=$?
33108   grep -v '^ *+' conftest.er1 >conftest.err
33109   rm -f conftest.er1
33110   cat conftest.err >&5
33111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112   (exit $ac_status); } && {
33113          test -z "$ac_c_werror_flag" ||
33114          test ! -s conftest.err
33115        } && test -s conftest.$ac_objext; then
33116   ac_cv_c_const=yes
33117 else
33118   echo "$as_me: failed program was:" >&5
33119 sed 's/^/| /' conftest.$ac_ext >&5
33120
33121         ac_cv_c_const=no
33122 fi
33123
33124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33125 fi
33126 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33127 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33128 if test $ac_cv_c_const = no; then
33129
33130 cat >>confdefs.h <<\_ACEOF
33131 #define const
33132 _ACEOF
33133
33134 fi
33135
33136 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33137 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33138 if test "${ol_cv_c_volatile+set}" = set; then
33139   echo $ECHO_N "(cached) $ECHO_C" >&6
33140 else
33141   cat >conftest.$ac_ext <<_ACEOF
33142 /* confdefs.h.  */
33143 _ACEOF
33144 cat confdefs.h >>conftest.$ac_ext
33145 cat >>conftest.$ac_ext <<_ACEOF
33146 /* end confdefs.h.  */
33147 int x, y, z;
33148 int
33149 main ()
33150 {
33151 volatile int a; int * volatile b = x ? &y : &z;
33152       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33153       *b = 0;
33154   ;
33155   return 0;
33156 }
33157 _ACEOF
33158 rm -f conftest.$ac_objext
33159 if { (ac_try="$ac_compile"
33160 case "(($ac_try" in
33161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33162   *) ac_try_echo=$ac_try;;
33163 esac
33164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33165   (eval "$ac_compile") 2>conftest.er1
33166   ac_status=$?
33167   grep -v '^ *+' conftest.er1 >conftest.err
33168   rm -f conftest.er1
33169   cat conftest.err >&5
33170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171   (exit $ac_status); } && {
33172          test -z "$ac_c_werror_flag" ||
33173          test ! -s conftest.err
33174        } && test -s conftest.$ac_objext; then
33175   ol_cv_c_volatile=yes
33176 else
33177   echo "$as_me: failed program was:" >&5
33178 sed 's/^/| /' conftest.$ac_ext >&5
33179
33180         ol_cv_c_volatile=no
33181 fi
33182
33183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33184 fi
33185 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33186 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33187   if test $ol_cv_c_volatile = yes; then
33188     :
33189   else
33190
33191 cat >>confdefs.h <<\_ACEOF
33192 #define volatile
33193 _ACEOF
33194
33195   fi
33196
33197
33198 if test $cross_compiling = yes ; then
33199         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33200 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33201
33202 cat >>confdefs.h <<\_ACEOF
33203 #define CROSS_COMPILING 1
33204 _ACEOF
33205
33206 else
33207         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33208 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33209 if test "${ac_cv_c_bigendian+set}" = set; then
33210   echo $ECHO_N "(cached) $ECHO_C" >&6
33211 else
33212   # See if sys/param.h defines the BYTE_ORDER macro.
33213 cat >conftest.$ac_ext <<_ACEOF
33214 /* confdefs.h.  */
33215 _ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h.  */
33219 #include <sys/types.h>
33220 #include <sys/param.h>
33221
33222 int
33223 main ()
33224 {
33225 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33226         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33227  bogus endian macros
33228 #endif
33229
33230   ;
33231   return 0;
33232 }
33233 _ACEOF
33234 rm -f conftest.$ac_objext
33235 if { (ac_try="$ac_compile"
33236 case "(($ac_try" in
33237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33238   *) ac_try_echo=$ac_try;;
33239 esac
33240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33241   (eval "$ac_compile") 2>conftest.er1
33242   ac_status=$?
33243   grep -v '^ *+' conftest.er1 >conftest.err
33244   rm -f conftest.er1
33245   cat conftest.err >&5
33246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247   (exit $ac_status); } && {
33248          test -z "$ac_c_werror_flag" ||
33249          test ! -s conftest.err
33250        } && test -s conftest.$ac_objext; then
33251   # It does; now see whether it defined to BIG_ENDIAN or not.
33252 cat >conftest.$ac_ext <<_ACEOF
33253 /* confdefs.h.  */
33254 _ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h.  */
33258 #include <sys/types.h>
33259 #include <sys/param.h>
33260
33261 int
33262 main ()
33263 {
33264 #if BYTE_ORDER != BIG_ENDIAN
33265  not big endian
33266 #endif
33267
33268   ;
33269   return 0;
33270 }
33271 _ACEOF
33272 rm -f conftest.$ac_objext
33273 if { (ac_try="$ac_compile"
33274 case "(($ac_try" in
33275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276   *) ac_try_echo=$ac_try;;
33277 esac
33278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279   (eval "$ac_compile") 2>conftest.er1
33280   ac_status=$?
33281   grep -v '^ *+' conftest.er1 >conftest.err
33282   rm -f conftest.er1
33283   cat conftest.err >&5
33284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285   (exit $ac_status); } && {
33286          test -z "$ac_c_werror_flag" ||
33287          test ! -s conftest.err
33288        } && test -s conftest.$ac_objext; then
33289   ac_cv_c_bigendian=yes
33290 else
33291   echo "$as_me: failed program was:" >&5
33292 sed 's/^/| /' conftest.$ac_ext >&5
33293
33294         ac_cv_c_bigendian=no
33295 fi
33296
33297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33298 else
33299   echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33301
33302         # It does not; compile a test program.
33303 if test "$cross_compiling" = yes; then
33304   # try to guess the endianness by grepping values into an object file
33305   ac_cv_c_bigendian=unknown
33306   cat >conftest.$ac_ext <<_ACEOF
33307 /* confdefs.h.  */
33308 _ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h.  */
33312 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33313 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33314 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33315 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33316 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33317 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33318 int
33319 main ()
33320 {
33321  _ascii (); _ebcdic ();
33322   ;
33323   return 0;
33324 }
33325 _ACEOF
33326 rm -f conftest.$ac_objext
33327 if { (ac_try="$ac_compile"
33328 case "(($ac_try" in
33329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330   *) ac_try_echo=$ac_try;;
33331 esac
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333   (eval "$ac_compile") 2>conftest.er1
33334   ac_status=$?
33335   grep -v '^ *+' conftest.er1 >conftest.err
33336   rm -f conftest.er1
33337   cat conftest.err >&5
33338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339   (exit $ac_status); } && {
33340          test -z "$ac_c_werror_flag" ||
33341          test ! -s conftest.err
33342        } && test -s conftest.$ac_objext; then
33343   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33344   ac_cv_c_bigendian=yes
33345 fi
33346 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33347   if test "$ac_cv_c_bigendian" = unknown; then
33348     ac_cv_c_bigendian=no
33349   else
33350     # finding both strings is unlikely to happen, but who knows?
33351     ac_cv_c_bigendian=unknown
33352   fi
33353 fi
33354 else
33355   echo "$as_me: failed program was:" >&5
33356 sed 's/^/| /' conftest.$ac_ext >&5
33357
33358
33359 fi
33360
33361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33362 else
33363   cat >conftest.$ac_ext <<_ACEOF
33364 /* confdefs.h.  */
33365 _ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h.  */
33369 $ac_includes_default
33370 int
33371 main ()
33372 {
33373
33374   /* Are we little or big endian?  From Harbison&Steele.  */
33375   union
33376   {
33377     long int l;
33378     char c[sizeof (long int)];
33379   } u;
33380   u.l = 1;
33381   return u.c[sizeof (long int) - 1] == 1;
33382
33383   ;
33384   return 0;
33385 }
33386 _ACEOF
33387 rm -f conftest$ac_exeext
33388 if { (ac_try="$ac_link"
33389 case "(($ac_try" in
33390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391   *) ac_try_echo=$ac_try;;
33392 esac
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394   (eval "$ac_link") 2>&5
33395   ac_status=$?
33396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33398   { (case "(($ac_try" in
33399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400   *) ac_try_echo=$ac_try;;
33401 esac
33402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33403   (eval "$ac_try") 2>&5
33404   ac_status=$?
33405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406   (exit $ac_status); }; }; then
33407   ac_cv_c_bigendian=no
33408 else
33409   echo "$as_me: program exited with status $ac_status" >&5
33410 echo "$as_me: failed program was:" >&5
33411 sed 's/^/| /' conftest.$ac_ext >&5
33412
33413 ( exit $ac_status )
33414 ac_cv_c_bigendian=yes
33415 fi
33416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33417 fi
33418
33419
33420 fi
33421
33422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33423 fi
33424 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33425 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33426 case $ac_cv_c_bigendian in
33427   yes)
33428
33429 cat >>confdefs.h <<\_ACEOF
33430 #define WORDS_BIGENDIAN 1
33431 _ACEOF
33432  ;;
33433   no)
33434      ;;
33435   *)
33436     { { echo "$as_me:$LINENO: error: unknown endianness
33437 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33438 echo "$as_me: error: unknown endianness
33439 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33440    { (exit 1); exit 1; }; } ;;
33441 esac
33442
33443 fi
33444
33445 { echo "$as_me:$LINENO: checking for short" >&5
33446 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33447 if test "${ac_cv_type_short+set}" = set; then
33448   echo $ECHO_N "(cached) $ECHO_C" >&6
33449 else
33450   cat >conftest.$ac_ext <<_ACEOF
33451 /* confdefs.h.  */
33452 _ACEOF
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h.  */
33456 $ac_includes_default
33457 typedef short ac__type_new_;
33458 int
33459 main ()
33460 {
33461 if ((ac__type_new_ *) 0)
33462   return 0;
33463 if (sizeof (ac__type_new_))
33464   return 0;
33465   ;
33466   return 0;
33467 }
33468 _ACEOF
33469 rm -f conftest.$ac_objext
33470 if { (ac_try="$ac_compile"
33471 case "(($ac_try" in
33472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473   *) ac_try_echo=$ac_try;;
33474 esac
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476   (eval "$ac_compile") 2>conftest.er1
33477   ac_status=$?
33478   grep -v '^ *+' conftest.er1 >conftest.err
33479   rm -f conftest.er1
33480   cat conftest.err >&5
33481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482   (exit $ac_status); } && {
33483          test -z "$ac_c_werror_flag" ||
33484          test ! -s conftest.err
33485        } && test -s conftest.$ac_objext; then
33486   ac_cv_type_short=yes
33487 else
33488   echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33490
33491         ac_cv_type_short=no
33492 fi
33493
33494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33495 fi
33496 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33497 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33498
33499 # The cast to long int works around a bug in the HP C Compiler
33500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33502 # This bug is HP SR number 8606223364.
33503 { echo "$as_me:$LINENO: checking size of short" >&5
33504 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33505 if test "${ac_cv_sizeof_short+set}" = set; then
33506   echo $ECHO_N "(cached) $ECHO_C" >&6
33507 else
33508   if test "$cross_compiling" = yes; then
33509   # Depending upon the size, compute the lo and hi bounds.
33510 cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516 $ac_includes_default
33517    typedef short ac__type_sizeof_;
33518 int
33519 main ()
33520 {
33521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33522 test_array [0] = 0
33523
33524   ;
33525   return 0;
33526 }
33527 _ACEOF
33528 rm -f conftest.$ac_objext
33529 if { (ac_try="$ac_compile"
33530 case "(($ac_try" in
33531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532   *) ac_try_echo=$ac_try;;
33533 esac
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535   (eval "$ac_compile") 2>conftest.er1
33536   ac_status=$?
33537   grep -v '^ *+' conftest.er1 >conftest.err
33538   rm -f conftest.er1
33539   cat conftest.err >&5
33540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541   (exit $ac_status); } && {
33542          test -z "$ac_c_werror_flag" ||
33543          test ! -s conftest.err
33544        } && test -s conftest.$ac_objext; then
33545   ac_lo=0 ac_mid=0
33546   while :; do
33547     cat >conftest.$ac_ext <<_ACEOF
33548 /* confdefs.h.  */
33549 _ACEOF
33550 cat confdefs.h >>conftest.$ac_ext
33551 cat >>conftest.$ac_ext <<_ACEOF
33552 /* end confdefs.h.  */
33553 $ac_includes_default
33554    typedef short ac__type_sizeof_;
33555 int
33556 main ()
33557 {
33558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33559 test_array [0] = 0
33560
33561   ;
33562   return 0;
33563 }
33564 _ACEOF
33565 rm -f conftest.$ac_objext
33566 if { (ac_try="$ac_compile"
33567 case "(($ac_try" in
33568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569   *) ac_try_echo=$ac_try;;
33570 esac
33571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572   (eval "$ac_compile") 2>conftest.er1
33573   ac_status=$?
33574   grep -v '^ *+' conftest.er1 >conftest.err
33575   rm -f conftest.er1
33576   cat conftest.err >&5
33577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578   (exit $ac_status); } && {
33579          test -z "$ac_c_werror_flag" ||
33580          test ! -s conftest.err
33581        } && test -s conftest.$ac_objext; then
33582   ac_hi=$ac_mid; break
33583 else
33584   echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33586
33587         ac_lo=`expr $ac_mid + 1`
33588                         if test $ac_lo -le $ac_mid; then
33589                           ac_lo= ac_hi=
33590                           break
33591                         fi
33592                         ac_mid=`expr 2 '*' $ac_mid + 1`
33593 fi
33594
33595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33596   done
33597 else
33598   echo "$as_me: failed program was:" >&5
33599 sed 's/^/| /' conftest.$ac_ext >&5
33600
33601         cat >conftest.$ac_ext <<_ACEOF
33602 /* confdefs.h.  */
33603 _ACEOF
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h.  */
33607 $ac_includes_default
33608    typedef short ac__type_sizeof_;
33609 int
33610 main ()
33611 {
33612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33613 test_array [0] = 0
33614
33615   ;
33616   return 0;
33617 }
33618 _ACEOF
33619 rm -f conftest.$ac_objext
33620 if { (ac_try="$ac_compile"
33621 case "(($ac_try" in
33622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33623   *) ac_try_echo=$ac_try;;
33624 esac
33625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33626   (eval "$ac_compile") 2>conftest.er1
33627   ac_status=$?
33628   grep -v '^ *+' conftest.er1 >conftest.err
33629   rm -f conftest.er1
33630   cat conftest.err >&5
33631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632   (exit $ac_status); } && {
33633          test -z "$ac_c_werror_flag" ||
33634          test ! -s conftest.err
33635        } && test -s conftest.$ac_objext; then
33636   ac_hi=-1 ac_mid=-1
33637   while :; do
33638     cat >conftest.$ac_ext <<_ACEOF
33639 /* confdefs.h.  */
33640 _ACEOF
33641 cat confdefs.h >>conftest.$ac_ext
33642 cat >>conftest.$ac_ext <<_ACEOF
33643 /* end confdefs.h.  */
33644 $ac_includes_default
33645    typedef short ac__type_sizeof_;
33646 int
33647 main ()
33648 {
33649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33650 test_array [0] = 0
33651
33652   ;
33653   return 0;
33654 }
33655 _ACEOF
33656 rm -f conftest.$ac_objext
33657 if { (ac_try="$ac_compile"
33658 case "(($ac_try" in
33659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660   *) ac_try_echo=$ac_try;;
33661 esac
33662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663   (eval "$ac_compile") 2>conftest.er1
33664   ac_status=$?
33665   grep -v '^ *+' conftest.er1 >conftest.err
33666   rm -f conftest.er1
33667   cat conftest.err >&5
33668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669   (exit $ac_status); } && {
33670          test -z "$ac_c_werror_flag" ||
33671          test ! -s conftest.err
33672        } && test -s conftest.$ac_objext; then
33673   ac_lo=$ac_mid; break
33674 else
33675   echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.$ac_ext >&5
33677
33678         ac_hi=`expr '(' $ac_mid ')' - 1`
33679                         if test $ac_mid -le $ac_hi; then
33680                           ac_lo= ac_hi=
33681                           break
33682                         fi
33683                         ac_mid=`expr 2 '*' $ac_mid`
33684 fi
33685
33686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33687   done
33688 else
33689   echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33691
33692         ac_lo= ac_hi=
33693 fi
33694
33695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 fi
33697
33698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33699 # Binary search between lo and hi bounds.
33700 while test "x$ac_lo" != "x$ac_hi"; do
33701   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33702   cat >conftest.$ac_ext <<_ACEOF
33703 /* confdefs.h.  */
33704 _ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h.  */
33708 $ac_includes_default
33709    typedef short ac__type_sizeof_;
33710 int
33711 main ()
33712 {
33713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33714 test_array [0] = 0
33715
33716   ;
33717   return 0;
33718 }
33719 _ACEOF
33720 rm -f conftest.$ac_objext
33721 if { (ac_try="$ac_compile"
33722 case "(($ac_try" in
33723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33724   *) ac_try_echo=$ac_try;;
33725 esac
33726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33727   (eval "$ac_compile") 2>conftest.er1
33728   ac_status=$?
33729   grep -v '^ *+' conftest.er1 >conftest.err
33730   rm -f conftest.er1
33731   cat conftest.err >&5
33732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733   (exit $ac_status); } && {
33734          test -z "$ac_c_werror_flag" ||
33735          test ! -s conftest.err
33736        } && test -s conftest.$ac_objext; then
33737   ac_hi=$ac_mid
33738 else
33739   echo "$as_me: failed program was:" >&5
33740 sed 's/^/| /' conftest.$ac_ext >&5
33741
33742         ac_lo=`expr '(' $ac_mid ')' + 1`
33743 fi
33744
33745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33746 done
33747 case $ac_lo in
33748 ?*) ac_cv_sizeof_short=$ac_lo;;
33749 '') if test "$ac_cv_type_short" = yes; then
33750      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33751 See \`config.log' for more details." >&5
33752 echo "$as_me: error: cannot compute sizeof (short)
33753 See \`config.log' for more details." >&2;}
33754    { (exit 77); exit 77; }; }
33755    else
33756      ac_cv_sizeof_short=0
33757    fi ;;
33758 esac
33759 else
33760   cat >conftest.$ac_ext <<_ACEOF
33761 /* confdefs.h.  */
33762 _ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h.  */
33766 $ac_includes_default
33767    typedef short ac__type_sizeof_;
33768 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33769 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33770 #include <stdio.h>
33771 #include <stdlib.h>
33772 int
33773 main ()
33774 {
33775
33776   FILE *f = fopen ("conftest.val", "w");
33777   if (! f)
33778     return 1;
33779   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33780     {
33781       long int i = longval ();
33782       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33783         return 1;
33784       fprintf (f, "%ld\n", i);
33785     }
33786   else
33787     {
33788       unsigned long int i = ulongval ();
33789       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33790         return 1;
33791       fprintf (f, "%lu\n", i);
33792     }
33793   return ferror (f) || fclose (f) != 0;
33794
33795   ;
33796   return 0;
33797 }
33798 _ACEOF
33799 rm -f conftest$ac_exeext
33800 if { (ac_try="$ac_link"
33801 case "(($ac_try" in
33802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803   *) ac_try_echo=$ac_try;;
33804 esac
33805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33806   (eval "$ac_link") 2>&5
33807   ac_status=$?
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33810   { (case "(($ac_try" in
33811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812   *) ac_try_echo=$ac_try;;
33813 esac
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815   (eval "$ac_try") 2>&5
33816   ac_status=$?
33817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818   (exit $ac_status); }; }; then
33819   ac_cv_sizeof_short=`cat conftest.val`
33820 else
33821   echo "$as_me: program exited with status $ac_status" >&5
33822 echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33824
33825 ( exit $ac_status )
33826 if test "$ac_cv_type_short" = yes; then
33827      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33828 See \`config.log' for more details." >&5
33829 echo "$as_me: error: cannot compute sizeof (short)
33830 See \`config.log' for more details." >&2;}
33831    { (exit 77); exit 77; }; }
33832    else
33833      ac_cv_sizeof_short=0
33834    fi
33835 fi
33836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33837 fi
33838 rm -f conftest.val
33839 fi
33840 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33841 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33842
33843
33844
33845 cat >>confdefs.h <<_ACEOF
33846 #define SIZEOF_SHORT $ac_cv_sizeof_short
33847 _ACEOF
33848
33849
33850 { echo "$as_me:$LINENO: checking for int" >&5
33851 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33852 if test "${ac_cv_type_int+set}" = set; then
33853   echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33855   cat >conftest.$ac_ext <<_ACEOF
33856 /* confdefs.h.  */
33857 _ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h.  */
33861 $ac_includes_default
33862 typedef int ac__type_new_;
33863 int
33864 main ()
33865 {
33866 if ((ac__type_new_ *) 0)
33867   return 0;
33868 if (sizeof (ac__type_new_))
33869   return 0;
33870   ;
33871   return 0;
33872 }
33873 _ACEOF
33874 rm -f conftest.$ac_objext
33875 if { (ac_try="$ac_compile"
33876 case "(($ac_try" in
33877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878   *) ac_try_echo=$ac_try;;
33879 esac
33880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33881   (eval "$ac_compile") 2>conftest.er1
33882   ac_status=$?
33883   grep -v '^ *+' conftest.er1 >conftest.err
33884   rm -f conftest.er1
33885   cat conftest.err >&5
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); } && {
33888          test -z "$ac_c_werror_flag" ||
33889          test ! -s conftest.err
33890        } && test -s conftest.$ac_objext; then
33891   ac_cv_type_int=yes
33892 else
33893   echo "$as_me: failed program was:" >&5
33894 sed 's/^/| /' conftest.$ac_ext >&5
33895
33896         ac_cv_type_int=no
33897 fi
33898
33899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33900 fi
33901 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33902 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33903
33904 # The cast to long int works around a bug in the HP C Compiler
33905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33907 # This bug is HP SR number 8606223364.
33908 { echo "$as_me:$LINENO: checking size of int" >&5
33909 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33910 if test "${ac_cv_sizeof_int+set}" = set; then
33911   echo $ECHO_N "(cached) $ECHO_C" >&6
33912 else
33913   if test "$cross_compiling" = yes; then
33914   # Depending upon the size, compute the lo and hi bounds.
33915 cat >conftest.$ac_ext <<_ACEOF
33916 /* confdefs.h.  */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h.  */
33921 $ac_includes_default
33922    typedef int ac__type_sizeof_;
33923 int
33924 main ()
33925 {
33926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33927 test_array [0] = 0
33928
33929   ;
33930   return 0;
33931 }
33932 _ACEOF
33933 rm -f conftest.$ac_objext
33934 if { (ac_try="$ac_compile"
33935 case "(($ac_try" in
33936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33937   *) ac_try_echo=$ac_try;;
33938 esac
33939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33940   (eval "$ac_compile") 2>conftest.er1
33941   ac_status=$?
33942   grep -v '^ *+' conftest.er1 >conftest.err
33943   rm -f conftest.er1
33944   cat conftest.err >&5
33945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946   (exit $ac_status); } && {
33947          test -z "$ac_c_werror_flag" ||
33948          test ! -s conftest.err
33949        } && test -s conftest.$ac_objext; then
33950   ac_lo=0 ac_mid=0
33951   while :; do
33952     cat >conftest.$ac_ext <<_ACEOF
33953 /* confdefs.h.  */
33954 _ACEOF
33955 cat confdefs.h >>conftest.$ac_ext
33956 cat >>conftest.$ac_ext <<_ACEOF
33957 /* end confdefs.h.  */
33958 $ac_includes_default
33959    typedef int ac__type_sizeof_;
33960 int
33961 main ()
33962 {
33963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33964 test_array [0] = 0
33965
33966   ;
33967   return 0;
33968 }
33969 _ACEOF
33970 rm -f conftest.$ac_objext
33971 if { (ac_try="$ac_compile"
33972 case "(($ac_try" in
33973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33974   *) ac_try_echo=$ac_try;;
33975 esac
33976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33977   (eval "$ac_compile") 2>conftest.er1
33978   ac_status=$?
33979   grep -v '^ *+' conftest.er1 >conftest.err
33980   rm -f conftest.er1
33981   cat conftest.err >&5
33982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983   (exit $ac_status); } && {
33984          test -z "$ac_c_werror_flag" ||
33985          test ! -s conftest.err
33986        } && test -s conftest.$ac_objext; then
33987   ac_hi=$ac_mid; break
33988 else
33989   echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33991
33992         ac_lo=`expr $ac_mid + 1`
33993                         if test $ac_lo -le $ac_mid; then
33994                           ac_lo= ac_hi=
33995                           break
33996                         fi
33997                         ac_mid=`expr 2 '*' $ac_mid + 1`
33998 fi
33999
34000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34001   done
34002 else
34003   echo "$as_me: failed program was:" >&5
34004 sed 's/^/| /' conftest.$ac_ext >&5
34005
34006         cat >conftest.$ac_ext <<_ACEOF
34007 /* confdefs.h.  */
34008 _ACEOF
34009 cat confdefs.h >>conftest.$ac_ext
34010 cat >>conftest.$ac_ext <<_ACEOF
34011 /* end confdefs.h.  */
34012 $ac_includes_default
34013    typedef int ac__type_sizeof_;
34014 int
34015 main ()
34016 {
34017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34018 test_array [0] = 0
34019
34020   ;
34021   return 0;
34022 }
34023 _ACEOF
34024 rm -f conftest.$ac_objext
34025 if { (ac_try="$ac_compile"
34026 case "(($ac_try" in
34027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028   *) ac_try_echo=$ac_try;;
34029 esac
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031   (eval "$ac_compile") 2>conftest.er1
34032   ac_status=$?
34033   grep -v '^ *+' conftest.er1 >conftest.err
34034   rm -f conftest.er1
34035   cat conftest.err >&5
34036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037   (exit $ac_status); } && {
34038          test -z "$ac_c_werror_flag" ||
34039          test ! -s conftest.err
34040        } && test -s conftest.$ac_objext; then
34041   ac_hi=-1 ac_mid=-1
34042   while :; do
34043     cat >conftest.$ac_ext <<_ACEOF
34044 /* confdefs.h.  */
34045 _ACEOF
34046 cat confdefs.h >>conftest.$ac_ext
34047 cat >>conftest.$ac_ext <<_ACEOF
34048 /* end confdefs.h.  */
34049 $ac_includes_default
34050    typedef int ac__type_sizeof_;
34051 int
34052 main ()
34053 {
34054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34055 test_array [0] = 0
34056
34057   ;
34058   return 0;
34059 }
34060 _ACEOF
34061 rm -f conftest.$ac_objext
34062 if { (ac_try="$ac_compile"
34063 case "(($ac_try" in
34064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065   *) ac_try_echo=$ac_try;;
34066 esac
34067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068   (eval "$ac_compile") 2>conftest.er1
34069   ac_status=$?
34070   grep -v '^ *+' conftest.er1 >conftest.err
34071   rm -f conftest.er1
34072   cat conftest.err >&5
34073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074   (exit $ac_status); } && {
34075          test -z "$ac_c_werror_flag" ||
34076          test ! -s conftest.err
34077        } && test -s conftest.$ac_objext; then
34078   ac_lo=$ac_mid; break
34079 else
34080   echo "$as_me: failed program was:" >&5
34081 sed 's/^/| /' conftest.$ac_ext >&5
34082
34083         ac_hi=`expr '(' $ac_mid ')' - 1`
34084                         if test $ac_mid -le $ac_hi; then
34085                           ac_lo= ac_hi=
34086                           break
34087                         fi
34088                         ac_mid=`expr 2 '*' $ac_mid`
34089 fi
34090
34091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34092   done
34093 else
34094   echo "$as_me: failed program was:" >&5
34095 sed 's/^/| /' conftest.$ac_ext >&5
34096
34097         ac_lo= ac_hi=
34098 fi
34099
34100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101 fi
34102
34103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34104 # Binary search between lo and hi bounds.
34105 while test "x$ac_lo" != "x$ac_hi"; do
34106   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34107   cat >conftest.$ac_ext <<_ACEOF
34108 /* confdefs.h.  */
34109 _ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h.  */
34113 $ac_includes_default
34114    typedef int ac__type_sizeof_;
34115 int
34116 main ()
34117 {
34118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34119 test_array [0] = 0
34120
34121   ;
34122   return 0;
34123 }
34124 _ACEOF
34125 rm -f conftest.$ac_objext
34126 if { (ac_try="$ac_compile"
34127 case "(($ac_try" in
34128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34129   *) ac_try_echo=$ac_try;;
34130 esac
34131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34132   (eval "$ac_compile") 2>conftest.er1
34133   ac_status=$?
34134   grep -v '^ *+' conftest.er1 >conftest.err
34135   rm -f conftest.er1
34136   cat conftest.err >&5
34137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138   (exit $ac_status); } && {
34139          test -z "$ac_c_werror_flag" ||
34140          test ! -s conftest.err
34141        } && test -s conftest.$ac_objext; then
34142   ac_hi=$ac_mid
34143 else
34144   echo "$as_me: failed program was:" >&5
34145 sed 's/^/| /' conftest.$ac_ext >&5
34146
34147         ac_lo=`expr '(' $ac_mid ')' + 1`
34148 fi
34149
34150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34151 done
34152 case $ac_lo in
34153 ?*) ac_cv_sizeof_int=$ac_lo;;
34154 '') if test "$ac_cv_type_int" = yes; then
34155      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34156 See \`config.log' for more details." >&5
34157 echo "$as_me: error: cannot compute sizeof (int)
34158 See \`config.log' for more details." >&2;}
34159    { (exit 77); exit 77; }; }
34160    else
34161      ac_cv_sizeof_int=0
34162    fi ;;
34163 esac
34164 else
34165   cat >conftest.$ac_ext <<_ACEOF
34166 /* confdefs.h.  */
34167 _ACEOF
34168 cat confdefs.h >>conftest.$ac_ext
34169 cat >>conftest.$ac_ext <<_ACEOF
34170 /* end confdefs.h.  */
34171 $ac_includes_default
34172    typedef int ac__type_sizeof_;
34173 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34174 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34175 #include <stdio.h>
34176 #include <stdlib.h>
34177 int
34178 main ()
34179 {
34180
34181   FILE *f = fopen ("conftest.val", "w");
34182   if (! f)
34183     return 1;
34184   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34185     {
34186       long int i = longval ();
34187       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34188         return 1;
34189       fprintf (f, "%ld\n", i);
34190     }
34191   else
34192     {
34193       unsigned long int i = ulongval ();
34194       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34195         return 1;
34196       fprintf (f, "%lu\n", i);
34197     }
34198   return ferror (f) || fclose (f) != 0;
34199
34200   ;
34201   return 0;
34202 }
34203 _ACEOF
34204 rm -f conftest$ac_exeext
34205 if { (ac_try="$ac_link"
34206 case "(($ac_try" in
34207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34208   *) ac_try_echo=$ac_try;;
34209 esac
34210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34211   (eval "$ac_link") 2>&5
34212   ac_status=$?
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34215   { (case "(($ac_try" in
34216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34217   *) ac_try_echo=$ac_try;;
34218 esac
34219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34220   (eval "$ac_try") 2>&5
34221   ac_status=$?
34222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223   (exit $ac_status); }; }; then
34224   ac_cv_sizeof_int=`cat conftest.val`
34225 else
34226   echo "$as_me: program exited with status $ac_status" >&5
34227 echo "$as_me: failed program was:" >&5
34228 sed 's/^/| /' conftest.$ac_ext >&5
34229
34230 ( exit $ac_status )
34231 if test "$ac_cv_type_int" = yes; then
34232      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34233 See \`config.log' for more details." >&5
34234 echo "$as_me: error: cannot compute sizeof (int)
34235 See \`config.log' for more details." >&2;}
34236    { (exit 77); exit 77; }; }
34237    else
34238      ac_cv_sizeof_int=0
34239    fi
34240 fi
34241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34242 fi
34243 rm -f conftest.val
34244 fi
34245 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34246 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34247
34248
34249
34250 cat >>confdefs.h <<_ACEOF
34251 #define SIZEOF_INT $ac_cv_sizeof_int
34252 _ACEOF
34253
34254
34255 { echo "$as_me:$LINENO: checking for long" >&5
34256 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34257 if test "${ac_cv_type_long+set}" = set; then
34258   echo $ECHO_N "(cached) $ECHO_C" >&6
34259 else
34260   cat >conftest.$ac_ext <<_ACEOF
34261 /* confdefs.h.  */
34262 _ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h.  */
34266 $ac_includes_default
34267 typedef long ac__type_new_;
34268 int
34269 main ()
34270 {
34271 if ((ac__type_new_ *) 0)
34272   return 0;
34273 if (sizeof (ac__type_new_))
34274   return 0;
34275   ;
34276   return 0;
34277 }
34278 _ACEOF
34279 rm -f conftest.$ac_objext
34280 if { (ac_try="$ac_compile"
34281 case "(($ac_try" in
34282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34283   *) ac_try_echo=$ac_try;;
34284 esac
34285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34286   (eval "$ac_compile") 2>conftest.er1
34287   ac_status=$?
34288   grep -v '^ *+' conftest.er1 >conftest.err
34289   rm -f conftest.er1
34290   cat conftest.err >&5
34291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292   (exit $ac_status); } && {
34293          test -z "$ac_c_werror_flag" ||
34294          test ! -s conftest.err
34295        } && test -s conftest.$ac_objext; then
34296   ac_cv_type_long=yes
34297 else
34298   echo "$as_me: failed program was:" >&5
34299 sed 's/^/| /' conftest.$ac_ext >&5
34300
34301         ac_cv_type_long=no
34302 fi
34303
34304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34305 fi
34306 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34307 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34308
34309 # The cast to long int works around a bug in the HP C Compiler
34310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34311 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34312 # This bug is HP SR number 8606223364.
34313 { echo "$as_me:$LINENO: checking size of long" >&5
34314 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34315 if test "${ac_cv_sizeof_long+set}" = set; then
34316   echo $ECHO_N "(cached) $ECHO_C" >&6
34317 else
34318   if test "$cross_compiling" = yes; then
34319   # Depending upon the size, compute the lo and hi bounds.
34320 cat >conftest.$ac_ext <<_ACEOF
34321 /* confdefs.h.  */
34322 _ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h.  */
34326 $ac_includes_default
34327    typedef long ac__type_sizeof_;
34328 int
34329 main ()
34330 {
34331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34332 test_array [0] = 0
34333
34334   ;
34335   return 0;
34336 }
34337 _ACEOF
34338 rm -f conftest.$ac_objext
34339 if { (ac_try="$ac_compile"
34340 case "(($ac_try" in
34341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34342   *) ac_try_echo=$ac_try;;
34343 esac
34344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34345   (eval "$ac_compile") 2>conftest.er1
34346   ac_status=$?
34347   grep -v '^ *+' conftest.er1 >conftest.err
34348   rm -f conftest.er1
34349   cat conftest.err >&5
34350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351   (exit $ac_status); } && {
34352          test -z "$ac_c_werror_flag" ||
34353          test ! -s conftest.err
34354        } && test -s conftest.$ac_objext; then
34355   ac_lo=0 ac_mid=0
34356   while :; do
34357     cat >conftest.$ac_ext <<_ACEOF
34358 /* confdefs.h.  */
34359 _ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h.  */
34363 $ac_includes_default
34364    typedef long ac__type_sizeof_;
34365 int
34366 main ()
34367 {
34368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34369 test_array [0] = 0
34370
34371   ;
34372   return 0;
34373 }
34374 _ACEOF
34375 rm -f conftest.$ac_objext
34376 if { (ac_try="$ac_compile"
34377 case "(($ac_try" in
34378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34379   *) ac_try_echo=$ac_try;;
34380 esac
34381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34382   (eval "$ac_compile") 2>conftest.er1
34383   ac_status=$?
34384   grep -v '^ *+' conftest.er1 >conftest.err
34385   rm -f conftest.er1
34386   cat conftest.err >&5
34387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388   (exit $ac_status); } && {
34389          test -z "$ac_c_werror_flag" ||
34390          test ! -s conftest.err
34391        } && test -s conftest.$ac_objext; then
34392   ac_hi=$ac_mid; break
34393 else
34394   echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34396
34397         ac_lo=`expr $ac_mid + 1`
34398                         if test $ac_lo -le $ac_mid; then
34399                           ac_lo= ac_hi=
34400                           break
34401                         fi
34402                         ac_mid=`expr 2 '*' $ac_mid + 1`
34403 fi
34404
34405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34406   done
34407 else
34408   echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34410
34411         cat >conftest.$ac_ext <<_ACEOF
34412 /* confdefs.h.  */
34413 _ACEOF
34414 cat confdefs.h >>conftest.$ac_ext
34415 cat >>conftest.$ac_ext <<_ACEOF
34416 /* end confdefs.h.  */
34417 $ac_includes_default
34418    typedef long ac__type_sizeof_;
34419 int
34420 main ()
34421 {
34422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34423 test_array [0] = 0
34424
34425   ;
34426   return 0;
34427 }
34428 _ACEOF
34429 rm -f conftest.$ac_objext
34430 if { (ac_try="$ac_compile"
34431 case "(($ac_try" in
34432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433   *) ac_try_echo=$ac_try;;
34434 esac
34435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34436   (eval "$ac_compile") 2>conftest.er1
34437   ac_status=$?
34438   grep -v '^ *+' conftest.er1 >conftest.err
34439   rm -f conftest.er1
34440   cat conftest.err >&5
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); } && {
34443          test -z "$ac_c_werror_flag" ||
34444          test ! -s conftest.err
34445        } && test -s conftest.$ac_objext; then
34446   ac_hi=-1 ac_mid=-1
34447   while :; do
34448     cat >conftest.$ac_ext <<_ACEOF
34449 /* confdefs.h.  */
34450 _ACEOF
34451 cat confdefs.h >>conftest.$ac_ext
34452 cat >>conftest.$ac_ext <<_ACEOF
34453 /* end confdefs.h.  */
34454 $ac_includes_default
34455    typedef long ac__type_sizeof_;
34456 int
34457 main ()
34458 {
34459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34460 test_array [0] = 0
34461
34462   ;
34463   return 0;
34464 }
34465 _ACEOF
34466 rm -f conftest.$ac_objext
34467 if { (ac_try="$ac_compile"
34468 case "(($ac_try" in
34469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34470   *) ac_try_echo=$ac_try;;
34471 esac
34472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34473   (eval "$ac_compile") 2>conftest.er1
34474   ac_status=$?
34475   grep -v '^ *+' conftest.er1 >conftest.err
34476   rm -f conftest.er1
34477   cat conftest.err >&5
34478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479   (exit $ac_status); } && {
34480          test -z "$ac_c_werror_flag" ||
34481          test ! -s conftest.err
34482        } && test -s conftest.$ac_objext; then
34483   ac_lo=$ac_mid; break
34484 else
34485   echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34487
34488         ac_hi=`expr '(' $ac_mid ')' - 1`
34489                         if test $ac_mid -le $ac_hi; then
34490                           ac_lo= ac_hi=
34491                           break
34492                         fi
34493                         ac_mid=`expr 2 '*' $ac_mid`
34494 fi
34495
34496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34497   done
34498 else
34499   echo "$as_me: failed program was:" >&5
34500 sed 's/^/| /' conftest.$ac_ext >&5
34501
34502         ac_lo= ac_hi=
34503 fi
34504
34505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34506 fi
34507
34508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34509 # Binary search between lo and hi bounds.
34510 while test "x$ac_lo" != "x$ac_hi"; do
34511   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34512   cat >conftest.$ac_ext <<_ACEOF
34513 /* confdefs.h.  */
34514 _ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h.  */
34518 $ac_includes_default
34519    typedef long ac__type_sizeof_;
34520 int
34521 main ()
34522 {
34523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34524 test_array [0] = 0
34525
34526   ;
34527   return 0;
34528 }
34529 _ACEOF
34530 rm -f conftest.$ac_objext
34531 if { (ac_try="$ac_compile"
34532 case "(($ac_try" in
34533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34534   *) ac_try_echo=$ac_try;;
34535 esac
34536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34537   (eval "$ac_compile") 2>conftest.er1
34538   ac_status=$?
34539   grep -v '^ *+' conftest.er1 >conftest.err
34540   rm -f conftest.er1
34541   cat conftest.err >&5
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); } && {
34544          test -z "$ac_c_werror_flag" ||
34545          test ! -s conftest.err
34546        } && test -s conftest.$ac_objext; then
34547   ac_hi=$ac_mid
34548 else
34549   echo "$as_me: failed program was:" >&5
34550 sed 's/^/| /' conftest.$ac_ext >&5
34551
34552         ac_lo=`expr '(' $ac_mid ')' + 1`
34553 fi
34554
34555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34556 done
34557 case $ac_lo in
34558 ?*) ac_cv_sizeof_long=$ac_lo;;
34559 '') if test "$ac_cv_type_long" = yes; then
34560      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34561 See \`config.log' for more details." >&5
34562 echo "$as_me: error: cannot compute sizeof (long)
34563 See \`config.log' for more details." >&2;}
34564    { (exit 77); exit 77; }; }
34565    else
34566      ac_cv_sizeof_long=0
34567    fi ;;
34568 esac
34569 else
34570   cat >conftest.$ac_ext <<_ACEOF
34571 /* confdefs.h.  */
34572 _ACEOF
34573 cat confdefs.h >>conftest.$ac_ext
34574 cat >>conftest.$ac_ext <<_ACEOF
34575 /* end confdefs.h.  */
34576 $ac_includes_default
34577    typedef long ac__type_sizeof_;
34578 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34579 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34580 #include <stdio.h>
34581 #include <stdlib.h>
34582 int
34583 main ()
34584 {
34585
34586   FILE *f = fopen ("conftest.val", "w");
34587   if (! f)
34588     return 1;
34589   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34590     {
34591       long int i = longval ();
34592       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34593         return 1;
34594       fprintf (f, "%ld\n", i);
34595     }
34596   else
34597     {
34598       unsigned long int i = ulongval ();
34599       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34600         return 1;
34601       fprintf (f, "%lu\n", i);
34602     }
34603   return ferror (f) || fclose (f) != 0;
34604
34605   ;
34606   return 0;
34607 }
34608 _ACEOF
34609 rm -f conftest$ac_exeext
34610 if { (ac_try="$ac_link"
34611 case "(($ac_try" in
34612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34613   *) ac_try_echo=$ac_try;;
34614 esac
34615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34616   (eval "$ac_link") 2>&5
34617   ac_status=$?
34618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34620   { (case "(($ac_try" in
34621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34622   *) ac_try_echo=$ac_try;;
34623 esac
34624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34625   (eval "$ac_try") 2>&5
34626   ac_status=$?
34627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628   (exit $ac_status); }; }; then
34629   ac_cv_sizeof_long=`cat conftest.val`
34630 else
34631   echo "$as_me: program exited with status $ac_status" >&5
34632 echo "$as_me: failed program was:" >&5
34633 sed 's/^/| /' conftest.$ac_ext >&5
34634
34635 ( exit $ac_status )
34636 if test "$ac_cv_type_long" = yes; then
34637      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34638 See \`config.log' for more details." >&5
34639 echo "$as_me: error: cannot compute sizeof (long)
34640 See \`config.log' for more details." >&2;}
34641    { (exit 77); exit 77; }; }
34642    else
34643      ac_cv_sizeof_long=0
34644    fi
34645 fi
34646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34647 fi
34648 rm -f conftest.val
34649 fi
34650 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34651 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34652
34653
34654
34655 cat >>confdefs.h <<_ACEOF
34656 #define SIZEOF_LONG $ac_cv_sizeof_long
34657 _ACEOF
34658
34659
34660 { echo "$as_me:$LINENO: checking for long long" >&5
34661 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34662 if test "${ac_cv_type_long_long+set}" = set; then
34663   echo $ECHO_N "(cached) $ECHO_C" >&6
34664 else
34665   cat >conftest.$ac_ext <<_ACEOF
34666 /* confdefs.h.  */
34667 _ACEOF
34668 cat confdefs.h >>conftest.$ac_ext
34669 cat >>conftest.$ac_ext <<_ACEOF
34670 /* end confdefs.h.  */
34671 $ac_includes_default
34672 typedef long long ac__type_new_;
34673 int
34674 main ()
34675 {
34676 if ((ac__type_new_ *) 0)
34677   return 0;
34678 if (sizeof (ac__type_new_))
34679   return 0;
34680   ;
34681   return 0;
34682 }
34683 _ACEOF
34684 rm -f conftest.$ac_objext
34685 if { (ac_try="$ac_compile"
34686 case "(($ac_try" in
34687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34688   *) ac_try_echo=$ac_try;;
34689 esac
34690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34691   (eval "$ac_compile") 2>conftest.er1
34692   ac_status=$?
34693   grep -v '^ *+' conftest.er1 >conftest.err
34694   rm -f conftest.er1
34695   cat conftest.err >&5
34696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697   (exit $ac_status); } && {
34698          test -z "$ac_c_werror_flag" ||
34699          test ! -s conftest.err
34700        } && test -s conftest.$ac_objext; then
34701   ac_cv_type_long_long=yes
34702 else
34703   echo "$as_me: failed program was:" >&5
34704 sed 's/^/| /' conftest.$ac_ext >&5
34705
34706         ac_cv_type_long_long=no
34707 fi
34708
34709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34710 fi
34711 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34712 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34713
34714 # The cast to long int works around a bug in the HP C Compiler
34715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34717 # This bug is HP SR number 8606223364.
34718 { echo "$as_me:$LINENO: checking size of long long" >&5
34719 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34720 if test "${ac_cv_sizeof_long_long+set}" = set; then
34721   echo $ECHO_N "(cached) $ECHO_C" >&6
34722 else
34723   if test "$cross_compiling" = yes; then
34724   # Depending upon the size, compute the lo and hi bounds.
34725 cat >conftest.$ac_ext <<_ACEOF
34726 /* confdefs.h.  */
34727 _ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h.  */
34731 $ac_includes_default
34732    typedef long long ac__type_sizeof_;
34733 int
34734 main ()
34735 {
34736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34737 test_array [0] = 0
34738
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext
34744 if { (ac_try="$ac_compile"
34745 case "(($ac_try" in
34746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747   *) ac_try_echo=$ac_try;;
34748 esac
34749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750   (eval "$ac_compile") 2>conftest.er1
34751   ac_status=$?
34752   grep -v '^ *+' conftest.er1 >conftest.err
34753   rm -f conftest.er1
34754   cat conftest.err >&5
34755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756   (exit $ac_status); } && {
34757          test -z "$ac_c_werror_flag" ||
34758          test ! -s conftest.err
34759        } && test -s conftest.$ac_objext; then
34760   ac_lo=0 ac_mid=0
34761   while :; do
34762     cat >conftest.$ac_ext <<_ACEOF
34763 /* confdefs.h.  */
34764 _ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h.  */
34768 $ac_includes_default
34769    typedef long long ac__type_sizeof_;
34770 int
34771 main ()
34772 {
34773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34774 test_array [0] = 0
34775
34776   ;
34777   return 0;
34778 }
34779 _ACEOF
34780 rm -f conftest.$ac_objext
34781 if { (ac_try="$ac_compile"
34782 case "(($ac_try" in
34783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784   *) ac_try_echo=$ac_try;;
34785 esac
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787   (eval "$ac_compile") 2>conftest.er1
34788   ac_status=$?
34789   grep -v '^ *+' conftest.er1 >conftest.err
34790   rm -f conftest.er1
34791   cat conftest.err >&5
34792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793   (exit $ac_status); } && {
34794          test -z "$ac_c_werror_flag" ||
34795          test ! -s conftest.err
34796        } && test -s conftest.$ac_objext; then
34797   ac_hi=$ac_mid; break
34798 else
34799   echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34801
34802         ac_lo=`expr $ac_mid + 1`
34803                         if test $ac_lo -le $ac_mid; then
34804                           ac_lo= ac_hi=
34805                           break
34806                         fi
34807                         ac_mid=`expr 2 '*' $ac_mid + 1`
34808 fi
34809
34810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34811   done
34812 else
34813   echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34815
34816         cat >conftest.$ac_ext <<_ACEOF
34817 /* confdefs.h.  */
34818 _ACEOF
34819 cat confdefs.h >>conftest.$ac_ext
34820 cat >>conftest.$ac_ext <<_ACEOF
34821 /* end confdefs.h.  */
34822 $ac_includes_default
34823    typedef long long ac__type_sizeof_;
34824 int
34825 main ()
34826 {
34827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34828 test_array [0] = 0
34829
34830   ;
34831   return 0;
34832 }
34833 _ACEOF
34834 rm -f conftest.$ac_objext
34835 if { (ac_try="$ac_compile"
34836 case "(($ac_try" in
34837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838   *) ac_try_echo=$ac_try;;
34839 esac
34840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841   (eval "$ac_compile") 2>conftest.er1
34842   ac_status=$?
34843   grep -v '^ *+' conftest.er1 >conftest.err
34844   rm -f conftest.er1
34845   cat conftest.err >&5
34846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847   (exit $ac_status); } && {
34848          test -z "$ac_c_werror_flag" ||
34849          test ! -s conftest.err
34850        } && test -s conftest.$ac_objext; then
34851   ac_hi=-1 ac_mid=-1
34852   while :; do
34853     cat >conftest.$ac_ext <<_ACEOF
34854 /* confdefs.h.  */
34855 _ACEOF
34856 cat confdefs.h >>conftest.$ac_ext
34857 cat >>conftest.$ac_ext <<_ACEOF
34858 /* end confdefs.h.  */
34859 $ac_includes_default
34860    typedef long long ac__type_sizeof_;
34861 int
34862 main ()
34863 {
34864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34865 test_array [0] = 0
34866
34867   ;
34868   return 0;
34869 }
34870 _ACEOF
34871 rm -f conftest.$ac_objext
34872 if { (ac_try="$ac_compile"
34873 case "(($ac_try" in
34874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34875   *) ac_try_echo=$ac_try;;
34876 esac
34877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34878   (eval "$ac_compile") 2>conftest.er1
34879   ac_status=$?
34880   grep -v '^ *+' conftest.er1 >conftest.err
34881   rm -f conftest.er1
34882   cat conftest.err >&5
34883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884   (exit $ac_status); } && {
34885          test -z "$ac_c_werror_flag" ||
34886          test ! -s conftest.err
34887        } && test -s conftest.$ac_objext; then
34888   ac_lo=$ac_mid; break
34889 else
34890   echo "$as_me: failed program was:" >&5
34891 sed 's/^/| /' conftest.$ac_ext >&5
34892
34893         ac_hi=`expr '(' $ac_mid ')' - 1`
34894                         if test $ac_mid -le $ac_hi; then
34895                           ac_lo= ac_hi=
34896                           break
34897                         fi
34898                         ac_mid=`expr 2 '*' $ac_mid`
34899 fi
34900
34901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34902   done
34903 else
34904   echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34906
34907         ac_lo= ac_hi=
34908 fi
34909
34910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34911 fi
34912
34913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34914 # Binary search between lo and hi bounds.
34915 while test "x$ac_lo" != "x$ac_hi"; do
34916   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34917   cat >conftest.$ac_ext <<_ACEOF
34918 /* confdefs.h.  */
34919 _ACEOF
34920 cat confdefs.h >>conftest.$ac_ext
34921 cat >>conftest.$ac_ext <<_ACEOF
34922 /* end confdefs.h.  */
34923 $ac_includes_default
34924    typedef long long ac__type_sizeof_;
34925 int
34926 main ()
34927 {
34928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34929 test_array [0] = 0
34930
34931   ;
34932   return 0;
34933 }
34934 _ACEOF
34935 rm -f conftest.$ac_objext
34936 if { (ac_try="$ac_compile"
34937 case "(($ac_try" in
34938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939   *) ac_try_echo=$ac_try;;
34940 esac
34941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942   (eval "$ac_compile") 2>conftest.er1
34943   ac_status=$?
34944   grep -v '^ *+' conftest.er1 >conftest.err
34945   rm -f conftest.er1
34946   cat conftest.err >&5
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); } && {
34949          test -z "$ac_c_werror_flag" ||
34950          test ! -s conftest.err
34951        } && test -s conftest.$ac_objext; then
34952   ac_hi=$ac_mid
34953 else
34954   echo "$as_me: failed program was:" >&5
34955 sed 's/^/| /' conftest.$ac_ext >&5
34956
34957         ac_lo=`expr '(' $ac_mid ')' + 1`
34958 fi
34959
34960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34961 done
34962 case $ac_lo in
34963 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34964 '') if test "$ac_cv_type_long_long" = yes; then
34965      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34966 See \`config.log' for more details." >&5
34967 echo "$as_me: error: cannot compute sizeof (long long)
34968 See \`config.log' for more details." >&2;}
34969    { (exit 77); exit 77; }; }
34970    else
34971      ac_cv_sizeof_long_long=0
34972    fi ;;
34973 esac
34974 else
34975   cat >conftest.$ac_ext <<_ACEOF
34976 /* confdefs.h.  */
34977 _ACEOF
34978 cat confdefs.h >>conftest.$ac_ext
34979 cat >>conftest.$ac_ext <<_ACEOF
34980 /* end confdefs.h.  */
34981 $ac_includes_default
34982    typedef long long ac__type_sizeof_;
34983 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34984 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34985 #include <stdio.h>
34986 #include <stdlib.h>
34987 int
34988 main ()
34989 {
34990
34991   FILE *f = fopen ("conftest.val", "w");
34992   if (! f)
34993     return 1;
34994   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34995     {
34996       long int i = longval ();
34997       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34998         return 1;
34999       fprintf (f, "%ld\n", i);
35000     }
35001   else
35002     {
35003       unsigned long int i = ulongval ();
35004       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35005         return 1;
35006       fprintf (f, "%lu\n", i);
35007     }
35008   return ferror (f) || fclose (f) != 0;
35009
35010   ;
35011   return 0;
35012 }
35013 _ACEOF
35014 rm -f conftest$ac_exeext
35015 if { (ac_try="$ac_link"
35016 case "(($ac_try" in
35017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35018   *) ac_try_echo=$ac_try;;
35019 esac
35020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35021   (eval "$ac_link") 2>&5
35022   ac_status=$?
35023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35025   { (case "(($ac_try" in
35026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027   *) ac_try_echo=$ac_try;;
35028 esac
35029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35030   (eval "$ac_try") 2>&5
35031   ac_status=$?
35032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033   (exit $ac_status); }; }; then
35034   ac_cv_sizeof_long_long=`cat conftest.val`
35035 else
35036   echo "$as_me: program exited with status $ac_status" >&5
35037 echo "$as_me: failed program was:" >&5
35038 sed 's/^/| /' conftest.$ac_ext >&5
35039
35040 ( exit $ac_status )
35041 if test "$ac_cv_type_long_long" = yes; then
35042      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35043 See \`config.log' for more details." >&5
35044 echo "$as_me: error: cannot compute sizeof (long long)
35045 See \`config.log' for more details." >&2;}
35046    { (exit 77); exit 77; }; }
35047    else
35048      ac_cv_sizeof_long_long=0
35049    fi
35050 fi
35051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35052 fi
35053 rm -f conftest.val
35054 fi
35055 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35056 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35057
35058
35059
35060 cat >>confdefs.h <<_ACEOF
35061 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35062 _ACEOF
35063
35064
35065 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35066 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35067 if test "${ac_cv_type_wchar_t+set}" = set; then
35068   echo $ECHO_N "(cached) $ECHO_C" >&6
35069 else
35070   cat >conftest.$ac_ext <<_ACEOF
35071 /* confdefs.h.  */
35072 _ACEOF
35073 cat confdefs.h >>conftest.$ac_ext
35074 cat >>conftest.$ac_ext <<_ACEOF
35075 /* end confdefs.h.  */
35076 $ac_includes_default
35077 typedef wchar_t ac__type_new_;
35078 int
35079 main ()
35080 {
35081 if ((ac__type_new_ *) 0)
35082   return 0;
35083 if (sizeof (ac__type_new_))
35084   return 0;
35085   ;
35086   return 0;
35087 }
35088 _ACEOF
35089 rm -f conftest.$ac_objext
35090 if { (ac_try="$ac_compile"
35091 case "(($ac_try" in
35092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35093   *) ac_try_echo=$ac_try;;
35094 esac
35095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35096   (eval "$ac_compile") 2>conftest.er1
35097   ac_status=$?
35098   grep -v '^ *+' conftest.er1 >conftest.err
35099   rm -f conftest.er1
35100   cat conftest.err >&5
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); } && {
35103          test -z "$ac_c_werror_flag" ||
35104          test ! -s conftest.err
35105        } && test -s conftest.$ac_objext; then
35106   ac_cv_type_wchar_t=yes
35107 else
35108   echo "$as_me: failed program was:" >&5
35109 sed 's/^/| /' conftest.$ac_ext >&5
35110
35111         ac_cv_type_wchar_t=no
35112 fi
35113
35114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35115 fi
35116 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35117 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35118
35119 # The cast to long int works around a bug in the HP C Compiler
35120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35122 # This bug is HP SR number 8606223364.
35123 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35124 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35125 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35126   echo $ECHO_N "(cached) $ECHO_C" >&6
35127 else
35128   if test "$cross_compiling" = yes; then
35129   # Depending upon the size, compute the lo and hi bounds.
35130 cat >conftest.$ac_ext <<_ACEOF
35131 /* confdefs.h.  */
35132 _ACEOF
35133 cat confdefs.h >>conftest.$ac_ext
35134 cat >>conftest.$ac_ext <<_ACEOF
35135 /* end confdefs.h.  */
35136 $ac_includes_default
35137    typedef wchar_t ac__type_sizeof_;
35138 int
35139 main ()
35140 {
35141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35142 test_array [0] = 0
35143
35144   ;
35145   return 0;
35146 }
35147 _ACEOF
35148 rm -f conftest.$ac_objext
35149 if { (ac_try="$ac_compile"
35150 case "(($ac_try" in
35151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152   *) ac_try_echo=$ac_try;;
35153 esac
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155   (eval "$ac_compile") 2>conftest.er1
35156   ac_status=$?
35157   grep -v '^ *+' conftest.er1 >conftest.err
35158   rm -f conftest.er1
35159   cat conftest.err >&5
35160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161   (exit $ac_status); } && {
35162          test -z "$ac_c_werror_flag" ||
35163          test ! -s conftest.err
35164        } && test -s conftest.$ac_objext; then
35165   ac_lo=0 ac_mid=0
35166   while :; do
35167     cat >conftest.$ac_ext <<_ACEOF
35168 /* confdefs.h.  */
35169 _ACEOF
35170 cat confdefs.h >>conftest.$ac_ext
35171 cat >>conftest.$ac_ext <<_ACEOF
35172 /* end confdefs.h.  */
35173 $ac_includes_default
35174    typedef wchar_t ac__type_sizeof_;
35175 int
35176 main ()
35177 {
35178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35179 test_array [0] = 0
35180
35181   ;
35182   return 0;
35183 }
35184 _ACEOF
35185 rm -f conftest.$ac_objext
35186 if { (ac_try="$ac_compile"
35187 case "(($ac_try" in
35188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189   *) ac_try_echo=$ac_try;;
35190 esac
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192   (eval "$ac_compile") 2>conftest.er1
35193   ac_status=$?
35194   grep -v '^ *+' conftest.er1 >conftest.err
35195   rm -f conftest.er1
35196   cat conftest.err >&5
35197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198   (exit $ac_status); } && {
35199          test -z "$ac_c_werror_flag" ||
35200          test ! -s conftest.err
35201        } && test -s conftest.$ac_objext; then
35202   ac_hi=$ac_mid; break
35203 else
35204   echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35206
35207         ac_lo=`expr $ac_mid + 1`
35208                         if test $ac_lo -le $ac_mid; then
35209                           ac_lo= ac_hi=
35210                           break
35211                         fi
35212                         ac_mid=`expr 2 '*' $ac_mid + 1`
35213 fi
35214
35215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35216   done
35217 else
35218   echo "$as_me: failed program was:" >&5
35219 sed 's/^/| /' conftest.$ac_ext >&5
35220
35221         cat >conftest.$ac_ext <<_ACEOF
35222 /* confdefs.h.  */
35223 _ACEOF
35224 cat confdefs.h >>conftest.$ac_ext
35225 cat >>conftest.$ac_ext <<_ACEOF
35226 /* end confdefs.h.  */
35227 $ac_includes_default
35228    typedef wchar_t ac__type_sizeof_;
35229 int
35230 main ()
35231 {
35232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35233 test_array [0] = 0
35234
35235   ;
35236   return 0;
35237 }
35238 _ACEOF
35239 rm -f conftest.$ac_objext
35240 if { (ac_try="$ac_compile"
35241 case "(($ac_try" in
35242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35243   *) ac_try_echo=$ac_try;;
35244 esac
35245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35246   (eval "$ac_compile") 2>conftest.er1
35247   ac_status=$?
35248   grep -v '^ *+' conftest.er1 >conftest.err
35249   rm -f conftest.er1
35250   cat conftest.err >&5
35251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252   (exit $ac_status); } && {
35253          test -z "$ac_c_werror_flag" ||
35254          test ! -s conftest.err
35255        } && test -s conftest.$ac_objext; then
35256   ac_hi=-1 ac_mid=-1
35257   while :; do
35258     cat >conftest.$ac_ext <<_ACEOF
35259 /* confdefs.h.  */
35260 _ACEOF
35261 cat confdefs.h >>conftest.$ac_ext
35262 cat >>conftest.$ac_ext <<_ACEOF
35263 /* end confdefs.h.  */
35264 $ac_includes_default
35265    typedef wchar_t ac__type_sizeof_;
35266 int
35267 main ()
35268 {
35269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35270 test_array [0] = 0
35271
35272   ;
35273   return 0;
35274 }
35275 _ACEOF
35276 rm -f conftest.$ac_objext
35277 if { (ac_try="$ac_compile"
35278 case "(($ac_try" in
35279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35280   *) ac_try_echo=$ac_try;;
35281 esac
35282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35283   (eval "$ac_compile") 2>conftest.er1
35284   ac_status=$?
35285   grep -v '^ *+' conftest.er1 >conftest.err
35286   rm -f conftest.er1
35287   cat conftest.err >&5
35288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289   (exit $ac_status); } && {
35290          test -z "$ac_c_werror_flag" ||
35291          test ! -s conftest.err
35292        } && test -s conftest.$ac_objext; then
35293   ac_lo=$ac_mid; break
35294 else
35295   echo "$as_me: failed program was:" >&5
35296 sed 's/^/| /' conftest.$ac_ext >&5
35297
35298         ac_hi=`expr '(' $ac_mid ')' - 1`
35299                         if test $ac_mid -le $ac_hi; then
35300                           ac_lo= ac_hi=
35301                           break
35302                         fi
35303                         ac_mid=`expr 2 '*' $ac_mid`
35304 fi
35305
35306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307   done
35308 else
35309   echo "$as_me: failed program was:" >&5
35310 sed 's/^/| /' conftest.$ac_ext >&5
35311
35312         ac_lo= ac_hi=
35313 fi
35314
35315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35316 fi
35317
35318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35319 # Binary search between lo and hi bounds.
35320 while test "x$ac_lo" != "x$ac_hi"; do
35321   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35322   cat >conftest.$ac_ext <<_ACEOF
35323 /* confdefs.h.  */
35324 _ACEOF
35325 cat confdefs.h >>conftest.$ac_ext
35326 cat >>conftest.$ac_ext <<_ACEOF
35327 /* end confdefs.h.  */
35328 $ac_includes_default
35329    typedef wchar_t ac__type_sizeof_;
35330 int
35331 main ()
35332 {
35333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35334 test_array [0] = 0
35335
35336   ;
35337   return 0;
35338 }
35339 _ACEOF
35340 rm -f conftest.$ac_objext
35341 if { (ac_try="$ac_compile"
35342 case "(($ac_try" in
35343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344   *) ac_try_echo=$ac_try;;
35345 esac
35346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347   (eval "$ac_compile") 2>conftest.er1
35348   ac_status=$?
35349   grep -v '^ *+' conftest.er1 >conftest.err
35350   rm -f conftest.er1
35351   cat conftest.err >&5
35352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353   (exit $ac_status); } && {
35354          test -z "$ac_c_werror_flag" ||
35355          test ! -s conftest.err
35356        } && test -s conftest.$ac_objext; then
35357   ac_hi=$ac_mid
35358 else
35359   echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35361
35362         ac_lo=`expr '(' $ac_mid ')' + 1`
35363 fi
35364
35365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35366 done
35367 case $ac_lo in
35368 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35369 '') if test "$ac_cv_type_wchar_t" = yes; then
35370      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35371 See \`config.log' for more details." >&5
35372 echo "$as_me: error: cannot compute sizeof (wchar_t)
35373 See \`config.log' for more details." >&2;}
35374    { (exit 77); exit 77; }; }
35375    else
35376      ac_cv_sizeof_wchar_t=0
35377    fi ;;
35378 esac
35379 else
35380   cat >conftest.$ac_ext <<_ACEOF
35381 /* confdefs.h.  */
35382 _ACEOF
35383 cat confdefs.h >>conftest.$ac_ext
35384 cat >>conftest.$ac_ext <<_ACEOF
35385 /* end confdefs.h.  */
35386 $ac_includes_default
35387    typedef wchar_t ac__type_sizeof_;
35388 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35389 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35390 #include <stdio.h>
35391 #include <stdlib.h>
35392 int
35393 main ()
35394 {
35395
35396   FILE *f = fopen ("conftest.val", "w");
35397   if (! f)
35398     return 1;
35399   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35400     {
35401       long int i = longval ();
35402       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35403         return 1;
35404       fprintf (f, "%ld\n", i);
35405     }
35406   else
35407     {
35408       unsigned long int i = ulongval ();
35409       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35410         return 1;
35411       fprintf (f, "%lu\n", i);
35412     }
35413   return ferror (f) || fclose (f) != 0;
35414
35415   ;
35416   return 0;
35417 }
35418 _ACEOF
35419 rm -f conftest$ac_exeext
35420 if { (ac_try="$ac_link"
35421 case "(($ac_try" in
35422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35423   *) ac_try_echo=$ac_try;;
35424 esac
35425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35426   (eval "$ac_link") 2>&5
35427   ac_status=$?
35428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35430   { (case "(($ac_try" in
35431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35432   *) ac_try_echo=$ac_try;;
35433 esac
35434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35435   (eval "$ac_try") 2>&5
35436   ac_status=$?
35437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438   (exit $ac_status); }; }; then
35439   ac_cv_sizeof_wchar_t=`cat conftest.val`
35440 else
35441   echo "$as_me: program exited with status $ac_status" >&5
35442 echo "$as_me: failed program was:" >&5
35443 sed 's/^/| /' conftest.$ac_ext >&5
35444
35445 ( exit $ac_status )
35446 if test "$ac_cv_type_wchar_t" = yes; then
35447      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35448 See \`config.log' for more details." >&5
35449 echo "$as_me: error: cannot compute sizeof (wchar_t)
35450 See \`config.log' for more details." >&2;}
35451    { (exit 77); exit 77; }; }
35452    else
35453      ac_cv_sizeof_wchar_t=0
35454    fi
35455 fi
35456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35457 fi
35458 rm -f conftest.val
35459 fi
35460 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35461 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35462
35463
35464
35465 cat >>confdefs.h <<_ACEOF
35466 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35467 _ACEOF
35468
35469
35470
35471 if test "$ac_cv_sizeof_int" -lt 4 ; then
35472         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35473 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35474
35475
35476 cat >>confdefs.h <<\_ACEOF
35477 #define LBER_INT_T long
35478 _ACEOF
35479
35480 else
35481
35482 cat >>confdefs.h <<\_ACEOF
35483 #define LBER_INT_T int
35484 _ACEOF
35485
35486 fi
35487
35488
35489 cat >>confdefs.h <<\_ACEOF
35490 #define LBER_LEN_T long
35491 _ACEOF
35492
35493
35494 cat >>confdefs.h <<\_ACEOF
35495 #define LBER_SOCKET_T int
35496 _ACEOF
35497
35498
35499 cat >>confdefs.h <<\_ACEOF
35500 #define LBER_TAG_T long
35501 _ACEOF
35502
35503
35504 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35505         if test $ac_cv_sizeof_long_long -gt 4 ; then
35506                 ol_with_mp=longlong
35507
35508 cat >>confdefs.h <<\_ACEOF
35509 #define USE_MP_LONG_LONG 1
35510 _ACEOF
35511
35512         elif test $ol_with_mp = longlong ; then
35513                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35514 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35515    { (exit 1); exit 1; }; }
35516         fi
35517 fi
35518 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35519         if test $ac_cv_sizeof_long -gt 4 ; then
35520                 ol_with_mp=long
35521
35522 cat >>confdefs.h <<\_ACEOF
35523 #define USE_MP_LONG 1
35524 _ACEOF
35525
35526         elif test $ol_with_mp = long ; then
35527                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35528 echo "$as_me: error: long unusable for multiple precision" >&2;}
35529    { (exit 1); exit 1; }; }
35530         fi
35531 fi
35532 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35533
35534 for ac_header in openssl/bn.h
35535 do
35536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35538   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35541   echo $ECHO_N "(cached) $ECHO_C" >&6
35542 fi
35543 ac_res=`eval echo '${'$as_ac_Header'}'`
35544                { echo "$as_me:$LINENO: result: $ac_res" >&5
35545 echo "${ECHO_T}$ac_res" >&6; }
35546 else
35547   # Is the header compilable?
35548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35550 cat >conftest.$ac_ext <<_ACEOF
35551 /* confdefs.h.  */
35552 _ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h.  */
35556 $ac_includes_default
35557 #include <$ac_header>
35558 _ACEOF
35559 rm -f conftest.$ac_objext
35560 if { (ac_try="$ac_compile"
35561 case "(($ac_try" in
35562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35563   *) ac_try_echo=$ac_try;;
35564 esac
35565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35566   (eval "$ac_compile") 2>conftest.er1
35567   ac_status=$?
35568   grep -v '^ *+' conftest.er1 >conftest.err
35569   rm -f conftest.er1
35570   cat conftest.err >&5
35571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572   (exit $ac_status); } && {
35573          test -z "$ac_c_werror_flag" ||
35574          test ! -s conftest.err
35575        } && test -s conftest.$ac_objext; then
35576   ac_header_compiler=yes
35577 else
35578   echo "$as_me: failed program was:" >&5
35579 sed 's/^/| /' conftest.$ac_ext >&5
35580
35581         ac_header_compiler=no
35582 fi
35583
35584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35586 echo "${ECHO_T}$ac_header_compiler" >&6; }
35587
35588 # Is the header present?
35589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35591 cat >conftest.$ac_ext <<_ACEOF
35592 /* confdefs.h.  */
35593 _ACEOF
35594 cat confdefs.h >>conftest.$ac_ext
35595 cat >>conftest.$ac_ext <<_ACEOF
35596 /* end confdefs.h.  */
35597 #include <$ac_header>
35598 _ACEOF
35599 if { (ac_try="$ac_cpp conftest.$ac_ext"
35600 case "(($ac_try" in
35601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35602   *) ac_try_echo=$ac_try;;
35603 esac
35604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35606   ac_status=$?
35607   grep -v '^ *+' conftest.er1 >conftest.err
35608   rm -f conftest.er1
35609   cat conftest.err >&5
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); } >/dev/null && {
35612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35613          test ! -s conftest.err
35614        }; then
35615   ac_header_preproc=yes
35616 else
35617   echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35619
35620   ac_header_preproc=no
35621 fi
35622
35623 rm -f conftest.err conftest.$ac_ext
35624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35625 echo "${ECHO_T}$ac_header_preproc" >&6; }
35626
35627 # So?  What about this header?
35628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35629   yes:no: )
35630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35634     ac_header_preproc=yes
35635     ;;
35636   no:yes:* )
35637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35649     ( cat <<\_ASBOX
35650 ## --------------------------------------------- ##
35651 ## Report this to <http://www.openldap.org/its/> ##
35652 ## --------------------------------------------- ##
35653 _ASBOX
35654      ) | sed "s/^/$as_me: WARNING:     /" >&2
35655     ;;
35656 esac
35657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35660   echo $ECHO_N "(cached) $ECHO_C" >&6
35661 else
35662   eval "$as_ac_Header=\$ac_header_preproc"
35663 fi
35664 ac_res=`eval echo '${'$as_ac_Header'}'`
35665                { echo "$as_me:$LINENO: result: $ac_res" >&5
35666 echo "${ECHO_T}$ac_res" >&6; }
35667
35668 fi
35669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35670   cat >>confdefs.h <<_ACEOF
35671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35672 _ACEOF
35673
35674 fi
35675
35676 done
35677
35678
35679 for ac_header in openssl/crypto.h
35680 do
35681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35686   echo $ECHO_N "(cached) $ECHO_C" >&6
35687 fi
35688 ac_res=`eval echo '${'$as_ac_Header'}'`
35689                { echo "$as_me:$LINENO: result: $ac_res" >&5
35690 echo "${ECHO_T}$ac_res" >&6; }
35691 else
35692   # Is the header compilable?
35693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35695 cat >conftest.$ac_ext <<_ACEOF
35696 /* confdefs.h.  */
35697 _ACEOF
35698 cat confdefs.h >>conftest.$ac_ext
35699 cat >>conftest.$ac_ext <<_ACEOF
35700 /* end confdefs.h.  */
35701 $ac_includes_default
35702 #include <$ac_header>
35703 _ACEOF
35704 rm -f conftest.$ac_objext
35705 if { (ac_try="$ac_compile"
35706 case "(($ac_try" in
35707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35708   *) ac_try_echo=$ac_try;;
35709 esac
35710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35711   (eval "$ac_compile") 2>conftest.er1
35712   ac_status=$?
35713   grep -v '^ *+' conftest.er1 >conftest.err
35714   rm -f conftest.er1
35715   cat conftest.err >&5
35716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717   (exit $ac_status); } && {
35718          test -z "$ac_c_werror_flag" ||
35719          test ! -s conftest.err
35720        } && test -s conftest.$ac_objext; then
35721   ac_header_compiler=yes
35722 else
35723   echo "$as_me: failed program was:" >&5
35724 sed 's/^/| /' conftest.$ac_ext >&5
35725
35726         ac_header_compiler=no
35727 fi
35728
35729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35731 echo "${ECHO_T}$ac_header_compiler" >&6; }
35732
35733 # Is the header present?
35734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35736 cat >conftest.$ac_ext <<_ACEOF
35737 /* confdefs.h.  */
35738 _ACEOF
35739 cat confdefs.h >>conftest.$ac_ext
35740 cat >>conftest.$ac_ext <<_ACEOF
35741 /* end confdefs.h.  */
35742 #include <$ac_header>
35743 _ACEOF
35744 if { (ac_try="$ac_cpp conftest.$ac_ext"
35745 case "(($ac_try" in
35746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35747   *) ac_try_echo=$ac_try;;
35748 esac
35749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35751   ac_status=$?
35752   grep -v '^ *+' conftest.er1 >conftest.err
35753   rm -f conftest.er1
35754   cat conftest.err >&5
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); } >/dev/null && {
35757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35758          test ! -s conftest.err
35759        }; then
35760   ac_header_preproc=yes
35761 else
35762   echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35764
35765   ac_header_preproc=no
35766 fi
35767
35768 rm -f conftest.err conftest.$ac_ext
35769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35770 echo "${ECHO_T}$ac_header_preproc" >&6; }
35771
35772 # So?  What about this header?
35773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35774   yes:no: )
35775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35779     ac_header_preproc=yes
35780     ;;
35781   no:yes:* )
35782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35794     ( cat <<\_ASBOX
35795 ## --------------------------------------------- ##
35796 ## Report this to <http://www.openldap.org/its/> ##
35797 ## --------------------------------------------- ##
35798 _ASBOX
35799      ) | sed "s/^/$as_me: WARNING:     /" >&2
35800     ;;
35801 esac
35802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35805   echo $ECHO_N "(cached) $ECHO_C" >&6
35806 else
35807   eval "$as_ac_Header=\$ac_header_preproc"
35808 fi
35809 ac_res=`eval echo '${'$as_ac_Header'}'`
35810                { echo "$as_me:$LINENO: result: $ac_res" >&5
35811 echo "${ECHO_T}$ac_res" >&6; }
35812
35813 fi
35814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35815   cat >>confdefs.h <<_ACEOF
35816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35817 _ACEOF
35818
35819 fi
35820
35821 done
35822
35823         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35824                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35825                 test "$ol_with_tls" = "found" ; then
35826                 ol_with_mp=bignum
35827
35828 cat >>confdefs.h <<\_ACEOF
35829 #define USE_MP_BIGNUM 1
35830 _ACEOF
35831
35832         elif test $ol_with_mp = bignum ; then
35833                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35834 echo "$as_me: error: bignum not available" >&2;}
35835    { (exit 1); exit 1; }; }
35836         fi
35837 fi
35838 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35839
35840 for ac_header in gmp.h
35841 do
35842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35844   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35847   echo $ECHO_N "(cached) $ECHO_C" >&6
35848 fi
35849 ac_res=`eval echo '${'$as_ac_Header'}'`
35850                { echo "$as_me:$LINENO: result: $ac_res" >&5
35851 echo "${ECHO_T}$ac_res" >&6; }
35852 else
35853   # Is the header compilable?
35854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35856 cat >conftest.$ac_ext <<_ACEOF
35857 /* confdefs.h.  */
35858 _ACEOF
35859 cat confdefs.h >>conftest.$ac_ext
35860 cat >>conftest.$ac_ext <<_ACEOF
35861 /* end confdefs.h.  */
35862 $ac_includes_default
35863 #include <$ac_header>
35864 _ACEOF
35865 rm -f conftest.$ac_objext
35866 if { (ac_try="$ac_compile"
35867 case "(($ac_try" in
35868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35869   *) ac_try_echo=$ac_try;;
35870 esac
35871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35872   (eval "$ac_compile") 2>conftest.er1
35873   ac_status=$?
35874   grep -v '^ *+' conftest.er1 >conftest.err
35875   rm -f conftest.er1
35876   cat conftest.err >&5
35877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878   (exit $ac_status); } && {
35879          test -z "$ac_c_werror_flag" ||
35880          test ! -s conftest.err
35881        } && test -s conftest.$ac_objext; then
35882   ac_header_compiler=yes
35883 else
35884   echo "$as_me: failed program was:" >&5
35885 sed 's/^/| /' conftest.$ac_ext >&5
35886
35887         ac_header_compiler=no
35888 fi
35889
35890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35892 echo "${ECHO_T}$ac_header_compiler" >&6; }
35893
35894 # Is the header present?
35895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35897 cat >conftest.$ac_ext <<_ACEOF
35898 /* confdefs.h.  */
35899 _ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h.  */
35903 #include <$ac_header>
35904 _ACEOF
35905 if { (ac_try="$ac_cpp conftest.$ac_ext"
35906 case "(($ac_try" in
35907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35908   *) ac_try_echo=$ac_try;;
35909 esac
35910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35912   ac_status=$?
35913   grep -v '^ *+' conftest.er1 >conftest.err
35914   rm -f conftest.er1
35915   cat conftest.err >&5
35916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917   (exit $ac_status); } >/dev/null && {
35918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35919          test ! -s conftest.err
35920        }; then
35921   ac_header_preproc=yes
35922 else
35923   echo "$as_me: failed program was:" >&5
35924 sed 's/^/| /' conftest.$ac_ext >&5
35925
35926   ac_header_preproc=no
35927 fi
35928
35929 rm -f conftest.err conftest.$ac_ext
35930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35931 echo "${ECHO_T}$ac_header_preproc" >&6; }
35932
35933 # So?  What about this header?
35934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35935   yes:no: )
35936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35940     ac_header_preproc=yes
35941     ;;
35942   no:yes:* )
35943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35955     ( cat <<\_ASBOX
35956 ## --------------------------------------------- ##
35957 ## Report this to <http://www.openldap.org/its/> ##
35958 ## --------------------------------------------- ##
35959 _ASBOX
35960      ) | sed "s/^/$as_me: WARNING:     /" >&2
35961     ;;
35962 esac
35963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35966   echo $ECHO_N "(cached) $ECHO_C" >&6
35967 else
35968   eval "$as_ac_Header=\$ac_header_preproc"
35969 fi
35970 ac_res=`eval echo '${'$as_ac_Header'}'`
35971                { echo "$as_me:$LINENO: result: $ac_res" >&5
35972 echo "${ECHO_T}$ac_res" >&6; }
35973
35974 fi
35975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35976   cat >>confdefs.h <<_ACEOF
35977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35978 _ACEOF
35979
35980 fi
35981
35982 done
35983
35984
35985 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35986 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35987 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35988   echo $ECHO_N "(cached) $ECHO_C" >&6
35989 else
35990   ac_check_lib_save_LIBS=$LIBS
35991 LIBS="-lgmp  $LIBS"
35992 cat >conftest.$ac_ext <<_ACEOF
35993 /* confdefs.h.  */
35994 _ACEOF
35995 cat confdefs.h >>conftest.$ac_ext
35996 cat >>conftest.$ac_ext <<_ACEOF
35997 /* end confdefs.h.  */
35998
35999 /* Override any GCC internal prototype to avoid an error.
36000    Use char because int might match the return type of a GCC
36001    builtin and then its argument prototype would still apply.  */
36002 #ifdef __cplusplus
36003 extern "C"
36004 #endif
36005 char __gmpz_add_ui ();
36006 int
36007 main ()
36008 {
36009 return __gmpz_add_ui ();
36010   ;
36011   return 0;
36012 }
36013 _ACEOF
36014 rm -f conftest.$ac_objext conftest$ac_exeext
36015 if { (ac_try="$ac_link"
36016 case "(($ac_try" in
36017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36018   *) ac_try_echo=$ac_try;;
36019 esac
36020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36021   (eval "$ac_link") 2>conftest.er1
36022   ac_status=$?
36023   grep -v '^ *+' conftest.er1 >conftest.err
36024   rm -f conftest.er1
36025   cat conftest.err >&5
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); } && {
36028          test -z "$ac_c_werror_flag" ||
36029          test ! -s conftest.err
36030        } && test -s conftest$ac_exeext &&
36031        $as_test_x conftest$ac_exeext; then
36032   ac_cv_lib_gmp___gmpz_add_ui=yes
36033 else
36034   echo "$as_me: failed program was:" >&5
36035 sed 's/^/| /' conftest.$ac_ext >&5
36036
36037         ac_cv_lib_gmp___gmpz_add_ui=no
36038 fi
36039
36040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36041       conftest$ac_exeext conftest.$ac_ext
36042 LIBS=$ac_check_lib_save_LIBS
36043 fi
36044 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36045 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36046 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36047   cat >>confdefs.h <<_ACEOF
36048 #define HAVE_LIBGMP 1
36049 _ACEOF
36050
36051   LIBS="-lgmp $LIBS"
36052
36053 fi
36054
36055         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36056
36057 cat >>confdefs.h <<\_ACEOF
36058 #define USE_MP_GMP 1
36059 _ACEOF
36060
36061                 ol_with_mp=gmp
36062         elif test $ol_with_mp = gmp ; then
36063                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36064 echo "$as_me: error: gmp not available" >&2;}
36065    { (exit 1); exit 1; }; }
36066         fi
36067 fi
36068 if test $ol_with_mp = auto ; then
36069         ol_with_mp=no
36070 fi
36071
36072 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36073 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36074 if test "${ac_cv_func_memcmp_working+set}" = set; then
36075   echo $ECHO_N "(cached) $ECHO_C" >&6
36076 else
36077   if test "$cross_compiling" = yes; then
36078   ac_cv_func_memcmp_working=no
36079 else
36080   cat >conftest.$ac_ext <<_ACEOF
36081 /* confdefs.h.  */
36082 _ACEOF
36083 cat confdefs.h >>conftest.$ac_ext
36084 cat >>conftest.$ac_ext <<_ACEOF
36085 /* end confdefs.h.  */
36086 $ac_includes_default
36087 int
36088 main ()
36089 {
36090
36091   /* Some versions of memcmp are not 8-bit clean.  */
36092   char c0 = '\100', c1 = '\200', c2 = '\201';
36093   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36094     return 1;
36095
36096   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36097      or more and with at least one buffer not starting on a 4-byte boundary.
36098      William Lewis provided this test program.   */
36099   {
36100     char foo[21];
36101     char bar[21];
36102     int i;
36103     for (i = 0; i < 4; i++)
36104       {
36105         char *a = foo + i;
36106         char *b = bar + i;
36107         strcpy (a, "--------01111111");
36108         strcpy (b, "--------10000000");
36109         if (memcmp (a, b, 16) >= 0)
36110           return 1;
36111       }
36112     return 0;
36113   }
36114
36115   ;
36116   return 0;
36117 }
36118 _ACEOF
36119 rm -f conftest$ac_exeext
36120 if { (ac_try="$ac_link"
36121 case "(($ac_try" in
36122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36123   *) ac_try_echo=$ac_try;;
36124 esac
36125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36126   (eval "$ac_link") 2>&5
36127   ac_status=$?
36128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36130   { (case "(($ac_try" in
36131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36132   *) ac_try_echo=$ac_try;;
36133 esac
36134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36135   (eval "$ac_try") 2>&5
36136   ac_status=$?
36137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138   (exit $ac_status); }; }; then
36139   ac_cv_func_memcmp_working=yes
36140 else
36141   echo "$as_me: program exited with status $ac_status" >&5
36142 echo "$as_me: failed program was:" >&5
36143 sed 's/^/| /' conftest.$ac_ext >&5
36144
36145 ( exit $ac_status )
36146 ac_cv_func_memcmp_working=no
36147 fi
36148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36149 fi
36150
36151
36152 fi
36153 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36154 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36155 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36156   *" memcmp.$ac_objext "* ) ;;
36157   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36158  ;;
36159 esac
36160
36161
36162
36163 if test $ac_cv_func_memcmp_working = no ; then
36164
36165 cat >>confdefs.h <<\_ACEOF
36166 #define NEED_MEMCMP_REPLACEMENT 1
36167 _ACEOF
36168
36169 fi
36170
36171
36172 for ac_func in strftime
36173 do
36174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36178   echo $ECHO_N "(cached) $ECHO_C" >&6
36179 else
36180   cat >conftest.$ac_ext <<_ACEOF
36181 /* confdefs.h.  */
36182 _ACEOF
36183 cat confdefs.h >>conftest.$ac_ext
36184 cat >>conftest.$ac_ext <<_ACEOF
36185 /* end confdefs.h.  */
36186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36188 #define $ac_func innocuous_$ac_func
36189
36190 /* System header to define __stub macros and hopefully few prototypes,
36191     which can conflict with char $ac_func (); below.
36192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36193     <limits.h> exists even on freestanding compilers.  */
36194
36195 #ifdef __STDC__
36196 # include <limits.h>
36197 #else
36198 # include <assert.h>
36199 #endif
36200
36201 #undef $ac_func
36202
36203 /* Override any GCC internal prototype to avoid an error.
36204    Use char because int might match the return type of a GCC
36205    builtin and then its argument prototype would still apply.  */
36206 #ifdef __cplusplus
36207 extern "C"
36208 #endif
36209 char $ac_func ();
36210 /* The GNU C library defines this for functions which it implements
36211     to always fail with ENOSYS.  Some functions are actually named
36212     something starting with __ and the normal name is an alias.  */
36213 #if defined __stub_$ac_func || defined __stub___$ac_func
36214 choke me
36215 #endif
36216
36217 int
36218 main ()
36219 {
36220 return $ac_func ();
36221   ;
36222   return 0;
36223 }
36224 _ACEOF
36225 rm -f conftest.$ac_objext conftest$ac_exeext
36226 if { (ac_try="$ac_link"
36227 case "(($ac_try" in
36228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229   *) ac_try_echo=$ac_try;;
36230 esac
36231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36232   (eval "$ac_link") 2>conftest.er1
36233   ac_status=$?
36234   grep -v '^ *+' conftest.er1 >conftest.err
36235   rm -f conftest.er1
36236   cat conftest.err >&5
36237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238   (exit $ac_status); } && {
36239          test -z "$ac_c_werror_flag" ||
36240          test ! -s conftest.err
36241        } && test -s conftest$ac_exeext &&
36242        $as_test_x conftest$ac_exeext; then
36243   eval "$as_ac_var=yes"
36244 else
36245   echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36247
36248         eval "$as_ac_var=no"
36249 fi
36250
36251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36252       conftest$ac_exeext conftest.$ac_ext
36253 fi
36254 ac_res=`eval echo '${'$as_ac_var'}'`
36255                { echo "$as_me:$LINENO: result: $ac_res" >&5
36256 echo "${ECHO_T}$ac_res" >&6; }
36257 if test `eval echo '${'$as_ac_var'}'` = yes; then
36258   cat >>confdefs.h <<_ACEOF
36259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36260 _ACEOF
36261
36262 else
36263   # strftime is in -lintl on SCO UNIX.
36264 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36265 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36266 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36267   echo $ECHO_N "(cached) $ECHO_C" >&6
36268 else
36269   ac_check_lib_save_LIBS=$LIBS
36270 LIBS="-lintl  $LIBS"
36271 cat >conftest.$ac_ext <<_ACEOF
36272 /* confdefs.h.  */
36273 _ACEOF
36274 cat confdefs.h >>conftest.$ac_ext
36275 cat >>conftest.$ac_ext <<_ACEOF
36276 /* end confdefs.h.  */
36277
36278 /* Override any GCC internal prototype to avoid an error.
36279    Use char because int might match the return type of a GCC
36280    builtin and then its argument prototype would still apply.  */
36281 #ifdef __cplusplus
36282 extern "C"
36283 #endif
36284 char strftime ();
36285 int
36286 main ()
36287 {
36288 return strftime ();
36289   ;
36290   return 0;
36291 }
36292 _ACEOF
36293 rm -f conftest.$ac_objext conftest$ac_exeext
36294 if { (ac_try="$ac_link"
36295 case "(($ac_try" in
36296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36297   *) ac_try_echo=$ac_try;;
36298 esac
36299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36300   (eval "$ac_link") 2>conftest.er1
36301   ac_status=$?
36302   grep -v '^ *+' conftest.er1 >conftest.err
36303   rm -f conftest.er1
36304   cat conftest.err >&5
36305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306   (exit $ac_status); } && {
36307          test -z "$ac_c_werror_flag" ||
36308          test ! -s conftest.err
36309        } && test -s conftest$ac_exeext &&
36310        $as_test_x conftest$ac_exeext; then
36311   ac_cv_lib_intl_strftime=yes
36312 else
36313   echo "$as_me: failed program was:" >&5
36314 sed 's/^/| /' conftest.$ac_ext >&5
36315
36316         ac_cv_lib_intl_strftime=no
36317 fi
36318
36319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36320       conftest$ac_exeext conftest.$ac_ext
36321 LIBS=$ac_check_lib_save_LIBS
36322 fi
36323 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36324 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36325 if test $ac_cv_lib_intl_strftime = yes; then
36326   cat >>confdefs.h <<\_ACEOF
36327 #define HAVE_STRFTIME 1
36328 _ACEOF
36329
36330 LIBS="-lintl $LIBS"
36331 fi
36332
36333 fi
36334 done
36335
36336
36337 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36338 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36339 if test "${ol_cv_func_inet_aton+set}" = set; then
36340   echo $ECHO_N "(cached) $ECHO_C" >&6
36341 else
36342   cat >conftest.$ac_ext <<_ACEOF
36343 /* confdefs.h.  */
36344 _ACEOF
36345 cat confdefs.h >>conftest.$ac_ext
36346 cat >>conftest.$ac_ext <<_ACEOF
36347 /* end confdefs.h.  */
36348
36349 #ifdef HAVE_SYS_TYPES_H
36350 #       include <sys/types.h>
36351 #endif
36352 #ifdef HAVE_SYS_SOCKET_H
36353 #       include <sys/socket.h>
36354 #       ifdef HAVE_SYS_SELECT_H
36355 #               include <sys/select.h>
36356 #       endif
36357 #       include <netinet/in.h>
36358 #       ifdef HAVE_ARPA_INET_H
36359 #               include <arpa/inet.h>
36360 #       endif
36361 #endif
36362
36363 int
36364 main ()
36365 {
36366 struct in_addr in;
36367 int rc = inet_aton( "255.255.255.255", &in );
36368   ;
36369   return 0;
36370 }
36371 _ACEOF
36372 rm -f conftest.$ac_objext conftest$ac_exeext
36373 if { (ac_try="$ac_link"
36374 case "(($ac_try" in
36375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36376   *) ac_try_echo=$ac_try;;
36377 esac
36378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36379   (eval "$ac_link") 2>conftest.er1
36380   ac_status=$?
36381   grep -v '^ *+' conftest.er1 >conftest.err
36382   rm -f conftest.er1
36383   cat conftest.err >&5
36384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36385   (exit $ac_status); } && {
36386          test -z "$ac_c_werror_flag" ||
36387          test ! -s conftest.err
36388        } && test -s conftest$ac_exeext &&
36389        $as_test_x conftest$ac_exeext; then
36390   ol_cv_func_inet_aton=yes
36391 else
36392   echo "$as_me: failed program was:" >&5
36393 sed 's/^/| /' conftest.$ac_ext >&5
36394
36395         ol_cv_func_inet_aton=no
36396 fi
36397
36398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36399       conftest$ac_exeext conftest.$ac_ext
36400 fi
36401 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36402 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36403   if test $ol_cv_func_inet_aton != no; then
36404
36405 cat >>confdefs.h <<\_ACEOF
36406 #define HAVE_INET_ATON 1
36407 _ACEOF
36408
36409   fi
36410
36411
36412 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36413 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36414 if test "${ac_cv_func__spawnlp+set}" = set; then
36415   echo $ECHO_N "(cached) $ECHO_C" >&6
36416 else
36417   cat >conftest.$ac_ext <<_ACEOF
36418 /* confdefs.h.  */
36419 _ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h.  */
36423 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36425 #define _spawnlp innocuous__spawnlp
36426
36427 /* System header to define __stub macros and hopefully few prototypes,
36428     which can conflict with char _spawnlp (); below.
36429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36430     <limits.h> exists even on freestanding compilers.  */
36431
36432 #ifdef __STDC__
36433 # include <limits.h>
36434 #else
36435 # include <assert.h>
36436 #endif
36437
36438 #undef _spawnlp
36439
36440 /* Override any GCC internal prototype to avoid an error.
36441    Use char because int might match the return type of a GCC
36442    builtin and then its argument prototype would still apply.  */
36443 #ifdef __cplusplus
36444 extern "C"
36445 #endif
36446 char _spawnlp ();
36447 /* The GNU C library defines this for functions which it implements
36448     to always fail with ENOSYS.  Some functions are actually named
36449     something starting with __ and the normal name is an alias.  */
36450 #if defined __stub__spawnlp || defined __stub____spawnlp
36451 choke me
36452 #endif
36453
36454 int
36455 main ()
36456 {
36457 return _spawnlp ();
36458   ;
36459   return 0;
36460 }
36461 _ACEOF
36462 rm -f conftest.$ac_objext conftest$ac_exeext
36463 if { (ac_try="$ac_link"
36464 case "(($ac_try" in
36465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36466   *) ac_try_echo=$ac_try;;
36467 esac
36468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36469   (eval "$ac_link") 2>conftest.er1
36470   ac_status=$?
36471   grep -v '^ *+' conftest.er1 >conftest.err
36472   rm -f conftest.er1
36473   cat conftest.err >&5
36474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475   (exit $ac_status); } && {
36476          test -z "$ac_c_werror_flag" ||
36477          test ! -s conftest.err
36478        } && test -s conftest$ac_exeext &&
36479        $as_test_x conftest$ac_exeext; then
36480   ac_cv_func__spawnlp=yes
36481 else
36482   echo "$as_me: failed program was:" >&5
36483 sed 's/^/| /' conftest.$ac_ext >&5
36484
36485         ac_cv_func__spawnlp=no
36486 fi
36487
36488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36489       conftest$ac_exeext conftest.$ac_ext
36490 fi
36491 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36492 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36493 if test $ac_cv_func__spawnlp = yes; then
36494
36495 cat >>confdefs.h <<\_ACEOF
36496 #define HAVE_SPAWNLP 1
36497 _ACEOF
36498
36499 fi
36500
36501
36502 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36503 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36504 if test "${ac_cv_func__snprintf+set}" = set; then
36505   echo $ECHO_N "(cached) $ECHO_C" >&6
36506 else
36507   cat >conftest.$ac_ext <<_ACEOF
36508 /* confdefs.h.  */
36509 _ACEOF
36510 cat confdefs.h >>conftest.$ac_ext
36511 cat >>conftest.$ac_ext <<_ACEOF
36512 /* end confdefs.h.  */
36513 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36515 #define _snprintf innocuous__snprintf
36516
36517 /* System header to define __stub macros and hopefully few prototypes,
36518     which can conflict with char _snprintf (); below.
36519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36520     <limits.h> exists even on freestanding compilers.  */
36521
36522 #ifdef __STDC__
36523 # include <limits.h>
36524 #else
36525 # include <assert.h>
36526 #endif
36527
36528 #undef _snprintf
36529
36530 /* Override any GCC internal prototype to avoid an error.
36531    Use char because int might match the return type of a GCC
36532    builtin and then its argument prototype would still apply.  */
36533 #ifdef __cplusplus
36534 extern "C"
36535 #endif
36536 char _snprintf ();
36537 /* The GNU C library defines this for functions which it implements
36538     to always fail with ENOSYS.  Some functions are actually named
36539     something starting with __ and the normal name is an alias.  */
36540 #if defined __stub__snprintf || defined __stub____snprintf
36541 choke me
36542 #endif
36543
36544 int
36545 main ()
36546 {
36547 return _snprintf ();
36548   ;
36549   return 0;
36550 }
36551 _ACEOF
36552 rm -f conftest.$ac_objext conftest$ac_exeext
36553 if { (ac_try="$ac_link"
36554 case "(($ac_try" in
36555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36556   *) ac_try_echo=$ac_try;;
36557 esac
36558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36559   (eval "$ac_link") 2>conftest.er1
36560   ac_status=$?
36561   grep -v '^ *+' conftest.er1 >conftest.err
36562   rm -f conftest.er1
36563   cat conftest.err >&5
36564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565   (exit $ac_status); } && {
36566          test -z "$ac_c_werror_flag" ||
36567          test ! -s conftest.err
36568        } && test -s conftest$ac_exeext &&
36569        $as_test_x conftest$ac_exeext; then
36570   ac_cv_func__snprintf=yes
36571 else
36572   echo "$as_me: failed program was:" >&5
36573 sed 's/^/| /' conftest.$ac_ext >&5
36574
36575         ac_cv_func__snprintf=no
36576 fi
36577
36578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36579       conftest$ac_exeext conftest.$ac_ext
36580 fi
36581 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36582 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36583 if test $ac_cv_func__snprintf = yes; then
36584   ac_cv_func_snprintf=yes
36585
36586 cat >>confdefs.h <<\_ACEOF
36587 #define snprintf _snprintf
36588 _ACEOF
36589
36590
36591 fi
36592
36593
36594
36595
36596 for ac_func in vsnprintf _vsnprintf
36597 do
36598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36602   echo $ECHO_N "(cached) $ECHO_C" >&6
36603 else
36604   cat >conftest.$ac_ext <<_ACEOF
36605 /* confdefs.h.  */
36606 _ACEOF
36607 cat confdefs.h >>conftest.$ac_ext
36608 cat >>conftest.$ac_ext <<_ACEOF
36609 /* end confdefs.h.  */
36610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36612 #define $ac_func innocuous_$ac_func
36613
36614 /* System header to define __stub macros and hopefully few prototypes,
36615     which can conflict with char $ac_func (); below.
36616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36617     <limits.h> exists even on freestanding compilers.  */
36618
36619 #ifdef __STDC__
36620 # include <limits.h>
36621 #else
36622 # include <assert.h>
36623 #endif
36624
36625 #undef $ac_func
36626
36627 /* Override any GCC internal prototype to avoid an error.
36628    Use char because int might match the return type of a GCC
36629    builtin and then its argument prototype would still apply.  */
36630 #ifdef __cplusplus
36631 extern "C"
36632 #endif
36633 char $ac_func ();
36634 /* The GNU C library defines this for functions which it implements
36635     to always fail with ENOSYS.  Some functions are actually named
36636     something starting with __ and the normal name is an alias.  */
36637 #if defined __stub_$ac_func || defined __stub___$ac_func
36638 choke me
36639 #endif
36640
36641 int
36642 main ()
36643 {
36644 return $ac_func ();
36645   ;
36646   return 0;
36647 }
36648 _ACEOF
36649 rm -f conftest.$ac_objext conftest$ac_exeext
36650 if { (ac_try="$ac_link"
36651 case "(($ac_try" in
36652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36653   *) ac_try_echo=$ac_try;;
36654 esac
36655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36656   (eval "$ac_link") 2>conftest.er1
36657   ac_status=$?
36658   grep -v '^ *+' conftest.er1 >conftest.err
36659   rm -f conftest.er1
36660   cat conftest.err >&5
36661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662   (exit $ac_status); } && {
36663          test -z "$ac_c_werror_flag" ||
36664          test ! -s conftest.err
36665        } && test -s conftest$ac_exeext &&
36666        $as_test_x conftest$ac_exeext; then
36667   eval "$as_ac_var=yes"
36668 else
36669   echo "$as_me: failed program was:" >&5
36670 sed 's/^/| /' conftest.$ac_ext >&5
36671
36672         eval "$as_ac_var=no"
36673 fi
36674
36675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36676       conftest$ac_exeext conftest.$ac_ext
36677 fi
36678 ac_res=`eval echo '${'$as_ac_var'}'`
36679                { echo "$as_me:$LINENO: result: $ac_res" >&5
36680 echo "${ECHO_T}$ac_res" >&6; }
36681 if test `eval echo '${'$as_ac_var'}'` = yes; then
36682   cat >>confdefs.h <<_ACEOF
36683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36684 _ACEOF
36685
36686 fi
36687 done
36688
36689
36690 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36691         ac_cv_func_vsnprintf=yes
36692
36693 cat >>confdefs.h <<\_ACEOF
36694 #define vsnprintf _vsnprintf
36695 _ACEOF
36696
36697 fi
36698
36699
36700 for ac_func in vprintf
36701 do
36702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36706   echo $ECHO_N "(cached) $ECHO_C" >&6
36707 else
36708   cat >conftest.$ac_ext <<_ACEOF
36709 /* confdefs.h.  */
36710 _ACEOF
36711 cat confdefs.h >>conftest.$ac_ext
36712 cat >>conftest.$ac_ext <<_ACEOF
36713 /* end confdefs.h.  */
36714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36716 #define $ac_func innocuous_$ac_func
36717
36718 /* System header to define __stub macros and hopefully few prototypes,
36719     which can conflict with char $ac_func (); below.
36720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36721     <limits.h> exists even on freestanding compilers.  */
36722
36723 #ifdef __STDC__
36724 # include <limits.h>
36725 #else
36726 # include <assert.h>
36727 #endif
36728
36729 #undef $ac_func
36730
36731 /* Override any GCC internal prototype to avoid an error.
36732    Use char because int might match the return type of a GCC
36733    builtin and then its argument prototype would still apply.  */
36734 #ifdef __cplusplus
36735 extern "C"
36736 #endif
36737 char $ac_func ();
36738 /* The GNU C library defines this for functions which it implements
36739     to always fail with ENOSYS.  Some functions are actually named
36740     something starting with __ and the normal name is an alias.  */
36741 #if defined __stub_$ac_func || defined __stub___$ac_func
36742 choke me
36743 #endif
36744
36745 int
36746 main ()
36747 {
36748 return $ac_func ();
36749   ;
36750   return 0;
36751 }
36752 _ACEOF
36753 rm -f conftest.$ac_objext conftest$ac_exeext
36754 if { (ac_try="$ac_link"
36755 case "(($ac_try" in
36756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36757   *) ac_try_echo=$ac_try;;
36758 esac
36759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36760   (eval "$ac_link") 2>conftest.er1
36761   ac_status=$?
36762   grep -v '^ *+' conftest.er1 >conftest.err
36763   rm -f conftest.er1
36764   cat conftest.err >&5
36765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766   (exit $ac_status); } && {
36767          test -z "$ac_c_werror_flag" ||
36768          test ! -s conftest.err
36769        } && test -s conftest$ac_exeext &&
36770        $as_test_x conftest$ac_exeext; then
36771   eval "$as_ac_var=yes"
36772 else
36773   echo "$as_me: failed program was:" >&5
36774 sed 's/^/| /' conftest.$ac_ext >&5
36775
36776         eval "$as_ac_var=no"
36777 fi
36778
36779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36780       conftest$ac_exeext conftest.$ac_ext
36781 fi
36782 ac_res=`eval echo '${'$as_ac_var'}'`
36783                { echo "$as_me:$LINENO: result: $ac_res" >&5
36784 echo "${ECHO_T}$ac_res" >&6; }
36785 if test `eval echo '${'$as_ac_var'}'` = yes; then
36786   cat >>confdefs.h <<_ACEOF
36787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36788 _ACEOF
36789
36790 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36791 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36792 if test "${ac_cv_func__doprnt+set}" = set; then
36793   echo $ECHO_N "(cached) $ECHO_C" >&6
36794 else
36795   cat >conftest.$ac_ext <<_ACEOF
36796 /* confdefs.h.  */
36797 _ACEOF
36798 cat confdefs.h >>conftest.$ac_ext
36799 cat >>conftest.$ac_ext <<_ACEOF
36800 /* end confdefs.h.  */
36801 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36803 #define _doprnt innocuous__doprnt
36804
36805 /* System header to define __stub macros and hopefully few prototypes,
36806     which can conflict with char _doprnt (); below.
36807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36808     <limits.h> exists even on freestanding compilers.  */
36809
36810 #ifdef __STDC__
36811 # include <limits.h>
36812 #else
36813 # include <assert.h>
36814 #endif
36815
36816 #undef _doprnt
36817
36818 /* Override any GCC internal prototype to avoid an error.
36819    Use char because int might match the return type of a GCC
36820    builtin and then its argument prototype would still apply.  */
36821 #ifdef __cplusplus
36822 extern "C"
36823 #endif
36824 char _doprnt ();
36825 /* The GNU C library defines this for functions which it implements
36826     to always fail with ENOSYS.  Some functions are actually named
36827     something starting with __ and the normal name is an alias.  */
36828 #if defined __stub__doprnt || defined __stub____doprnt
36829 choke me
36830 #endif
36831
36832 int
36833 main ()
36834 {
36835 return _doprnt ();
36836   ;
36837   return 0;
36838 }
36839 _ACEOF
36840 rm -f conftest.$ac_objext conftest$ac_exeext
36841 if { (ac_try="$ac_link"
36842 case "(($ac_try" in
36843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36844   *) ac_try_echo=$ac_try;;
36845 esac
36846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36847   (eval "$ac_link") 2>conftest.er1
36848   ac_status=$?
36849   grep -v '^ *+' conftest.er1 >conftest.err
36850   rm -f conftest.er1
36851   cat conftest.err >&5
36852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853   (exit $ac_status); } && {
36854          test -z "$ac_c_werror_flag" ||
36855          test ! -s conftest.err
36856        } && test -s conftest$ac_exeext &&
36857        $as_test_x conftest$ac_exeext; then
36858   ac_cv_func__doprnt=yes
36859 else
36860   echo "$as_me: failed program was:" >&5
36861 sed 's/^/| /' conftest.$ac_ext >&5
36862
36863         ac_cv_func__doprnt=no
36864 fi
36865
36866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36867       conftest$ac_exeext conftest.$ac_ext
36868 fi
36869 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36870 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36871 if test $ac_cv_func__doprnt = yes; then
36872
36873 cat >>confdefs.h <<\_ACEOF
36874 #define HAVE_DOPRNT 1
36875 _ACEOF
36876
36877 fi
36878
36879 fi
36880 done
36881
36882
36883
36884 if test $ac_cv_func_vprintf = yes ; then
36885
36886
36887 for ac_func in snprintf vsnprintf
36888 do
36889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36893   echo $ECHO_N "(cached) $ECHO_C" >&6
36894 else
36895   cat >conftest.$ac_ext <<_ACEOF
36896 /* confdefs.h.  */
36897 _ACEOF
36898 cat confdefs.h >>conftest.$ac_ext
36899 cat >>conftest.$ac_ext <<_ACEOF
36900 /* end confdefs.h.  */
36901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36903 #define $ac_func innocuous_$ac_func
36904
36905 /* System header to define __stub macros and hopefully few prototypes,
36906     which can conflict with char $ac_func (); below.
36907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36908     <limits.h> exists even on freestanding compilers.  */
36909
36910 #ifdef __STDC__
36911 # include <limits.h>
36912 #else
36913 # include <assert.h>
36914 #endif
36915
36916 #undef $ac_func
36917
36918 /* Override any GCC internal prototype to avoid an error.
36919    Use char because int might match the return type of a GCC
36920    builtin and then its argument prototype would still apply.  */
36921 #ifdef __cplusplus
36922 extern "C"
36923 #endif
36924 char $ac_func ();
36925 /* The GNU C library defines this for functions which it implements
36926     to always fail with ENOSYS.  Some functions are actually named
36927     something starting with __ and the normal name is an alias.  */
36928 #if defined __stub_$ac_func || defined __stub___$ac_func
36929 choke me
36930 #endif
36931
36932 int
36933 main ()
36934 {
36935 return $ac_func ();
36936   ;
36937   return 0;
36938 }
36939 _ACEOF
36940 rm -f conftest.$ac_objext conftest$ac_exeext
36941 if { (ac_try="$ac_link"
36942 case "(($ac_try" in
36943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36944   *) ac_try_echo=$ac_try;;
36945 esac
36946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36947   (eval "$ac_link") 2>conftest.er1
36948   ac_status=$?
36949   grep -v '^ *+' conftest.er1 >conftest.err
36950   rm -f conftest.er1
36951   cat conftest.err >&5
36952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953   (exit $ac_status); } && {
36954          test -z "$ac_c_werror_flag" ||
36955          test ! -s conftest.err
36956        } && test -s conftest$ac_exeext &&
36957        $as_test_x conftest$ac_exeext; then
36958   eval "$as_ac_var=yes"
36959 else
36960   echo "$as_me: failed program was:" >&5
36961 sed 's/^/| /' conftest.$ac_ext >&5
36962
36963         eval "$as_ac_var=no"
36964 fi
36965
36966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36967       conftest$ac_exeext conftest.$ac_ext
36968 fi
36969 ac_res=`eval echo '${'$as_ac_var'}'`
36970                { echo "$as_me:$LINENO: result: $ac_res" >&5
36971 echo "${ECHO_T}$ac_res" >&6; }
36972 if test `eval echo '${'$as_ac_var'}'` = yes; then
36973   cat >>confdefs.h <<_ACEOF
36974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36975 _ACEOF
36976
36977 fi
36978 done
36979
36980 fi
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
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037 for ac_func in \
37038         bcopy                   \
37039         closesocket             \
37040         chroot                  \
37041         endgrent                \
37042         endpwent                \
37043         fcntl                   \
37044         flock                   \
37045         fstat                   \
37046         getdtablesize           \
37047         geteuid                 \
37048         getgrgid                \
37049         gethostname             \
37050         getpassphrase           \
37051         getpwuid                \
37052         getpwnam                \
37053         getspnam                \
37054         gettimeofday            \
37055         initgroups              \
37056         inet_ntoa_b             \
37057         ioctl                   \
37058         lockf                   \
37059         memcpy                  \
37060         memmove                 \
37061         memrchr                 \
37062         mkstemp                 \
37063         mktemp                  \
37064         pipe                    \
37065         read                    \
37066         recv                    \
37067         recvfrom                \
37068         setpwfile               \
37069         setgid                  \
37070         setegid                 \
37071         setsid                  \
37072         setuid                  \
37073         seteuid                 \
37074         signal                  \
37075         strdup                  \
37076         strpbrk                 \
37077         strrchr                 \
37078         strsep                  \
37079         strstr                  \
37080         strtol                  \
37081         strtoul                 \
37082         strtoq                  \
37083         strtouq                 \
37084         strtoll                 \
37085         strspn                  \
37086         sysconf                 \
37087         waitpid                 \
37088         wait4                   \
37089         write                   \
37090         send                    \
37091         sendmsg                 \
37092         sendto                  \
37093
37094 do
37095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37099   echo $ECHO_N "(cached) $ECHO_C" >&6
37100 else
37101   cat >conftest.$ac_ext <<_ACEOF
37102 /* confdefs.h.  */
37103 _ACEOF
37104 cat confdefs.h >>conftest.$ac_ext
37105 cat >>conftest.$ac_ext <<_ACEOF
37106 /* end confdefs.h.  */
37107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37109 #define $ac_func innocuous_$ac_func
37110
37111 /* System header to define __stub macros and hopefully few prototypes,
37112     which can conflict with char $ac_func (); below.
37113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37114     <limits.h> exists even on freestanding compilers.  */
37115
37116 #ifdef __STDC__
37117 # include <limits.h>
37118 #else
37119 # include <assert.h>
37120 #endif
37121
37122 #undef $ac_func
37123
37124 /* Override any GCC internal prototype to avoid an error.
37125    Use char because int might match the return type of a GCC
37126    builtin and then its argument prototype would still apply.  */
37127 #ifdef __cplusplus
37128 extern "C"
37129 #endif
37130 char $ac_func ();
37131 /* The GNU C library defines this for functions which it implements
37132     to always fail with ENOSYS.  Some functions are actually named
37133     something starting with __ and the normal name is an alias.  */
37134 #if defined __stub_$ac_func || defined __stub___$ac_func
37135 choke me
37136 #endif
37137
37138 int
37139 main ()
37140 {
37141 return $ac_func ();
37142   ;
37143   return 0;
37144 }
37145 _ACEOF
37146 rm -f conftest.$ac_objext conftest$ac_exeext
37147 if { (ac_try="$ac_link"
37148 case "(($ac_try" in
37149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37150   *) ac_try_echo=$ac_try;;
37151 esac
37152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37153   (eval "$ac_link") 2>conftest.er1
37154   ac_status=$?
37155   grep -v '^ *+' conftest.er1 >conftest.err
37156   rm -f conftest.er1
37157   cat conftest.err >&5
37158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159   (exit $ac_status); } && {
37160          test -z "$ac_c_werror_flag" ||
37161          test ! -s conftest.err
37162        } && test -s conftest$ac_exeext &&
37163        $as_test_x conftest$ac_exeext; then
37164   eval "$as_ac_var=yes"
37165 else
37166   echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37168
37169         eval "$as_ac_var=no"
37170 fi
37171
37172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37173       conftest$ac_exeext conftest.$ac_ext
37174 fi
37175 ac_res=`eval echo '${'$as_ac_var'}'`
37176                { echo "$as_me:$LINENO: result: $ac_res" >&5
37177 echo "${ECHO_T}$ac_res" >&6; }
37178 if test `eval echo '${'$as_ac_var'}'` = yes; then
37179   cat >>confdefs.h <<_ACEOF
37180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37181 _ACEOF
37182
37183 fi
37184 done
37185
37186
37187
37188
37189 for ac_func in getopt getpeereid
37190 do
37191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37195   echo $ECHO_N "(cached) $ECHO_C" >&6
37196 else
37197   cat >conftest.$ac_ext <<_ACEOF
37198 /* confdefs.h.  */
37199 _ACEOF
37200 cat confdefs.h >>conftest.$ac_ext
37201 cat >>conftest.$ac_ext <<_ACEOF
37202 /* end confdefs.h.  */
37203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37205 #define $ac_func innocuous_$ac_func
37206
37207 /* System header to define __stub macros and hopefully few prototypes,
37208     which can conflict with char $ac_func (); below.
37209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37210     <limits.h> exists even on freestanding compilers.  */
37211
37212 #ifdef __STDC__
37213 # include <limits.h>
37214 #else
37215 # include <assert.h>
37216 #endif
37217
37218 #undef $ac_func
37219
37220 /* Override any GCC internal prototype to avoid an error.
37221    Use char because int might match the return type of a GCC
37222    builtin and then its argument prototype would still apply.  */
37223 #ifdef __cplusplus
37224 extern "C"
37225 #endif
37226 char $ac_func ();
37227 /* The GNU C library defines this for functions which it implements
37228     to always fail with ENOSYS.  Some functions are actually named
37229     something starting with __ and the normal name is an alias.  */
37230 #if defined __stub_$ac_func || defined __stub___$ac_func
37231 choke me
37232 #endif
37233
37234 int
37235 main ()
37236 {
37237 return $ac_func ();
37238   ;
37239   return 0;
37240 }
37241 _ACEOF
37242 rm -f conftest.$ac_objext conftest$ac_exeext
37243 if { (ac_try="$ac_link"
37244 case "(($ac_try" in
37245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37246   *) ac_try_echo=$ac_try;;
37247 esac
37248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37249   (eval "$ac_link") 2>conftest.er1
37250   ac_status=$?
37251   grep -v '^ *+' conftest.er1 >conftest.err
37252   rm -f conftest.er1
37253   cat conftest.err >&5
37254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); } && {
37256          test -z "$ac_c_werror_flag" ||
37257          test ! -s conftest.err
37258        } && test -s conftest$ac_exeext &&
37259        $as_test_x conftest$ac_exeext; then
37260   eval "$as_ac_var=yes"
37261 else
37262   echo "$as_me: failed program was:" >&5
37263 sed 's/^/| /' conftest.$ac_ext >&5
37264
37265         eval "$as_ac_var=no"
37266 fi
37267
37268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37269       conftest$ac_exeext conftest.$ac_ext
37270 fi
37271 ac_res=`eval echo '${'$as_ac_var'}'`
37272                { echo "$as_me:$LINENO: result: $ac_res" >&5
37273 echo "${ECHO_T}$ac_res" >&6; }
37274 if test `eval echo '${'$as_ac_var'}'` = yes; then
37275   cat >>confdefs.h <<_ACEOF
37276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37277 _ACEOF
37278
37279 else
37280   case " $LIBOBJS " in
37281   *" $ac_func.$ac_objext "* ) ;;
37282   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37283  ;;
37284 esac
37285
37286 fi
37287 done
37288
37289
37290
37291 if test "$ac_cv_func_getopt" != yes; then
37292         LIBSRCS="$LIBSRCS getopt.c"
37293 fi
37294
37295 if test "$ac_cv_func_getpeereid" != yes; then
37296
37297 for ac_func in getpeerucred
37298 do
37299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37303   echo $ECHO_N "(cached) $ECHO_C" >&6
37304 else
37305   cat >conftest.$ac_ext <<_ACEOF
37306 /* confdefs.h.  */
37307 _ACEOF
37308 cat confdefs.h >>conftest.$ac_ext
37309 cat >>conftest.$ac_ext <<_ACEOF
37310 /* end confdefs.h.  */
37311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37313 #define $ac_func innocuous_$ac_func
37314
37315 /* System header to define __stub macros and hopefully few prototypes,
37316     which can conflict with char $ac_func (); below.
37317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37318     <limits.h> exists even on freestanding compilers.  */
37319
37320 #ifdef __STDC__
37321 # include <limits.h>
37322 #else
37323 # include <assert.h>
37324 #endif
37325
37326 #undef $ac_func
37327
37328 /* Override any GCC internal prototype to avoid an error.
37329    Use char because int might match the return type of a GCC
37330    builtin and then its argument prototype would still apply.  */
37331 #ifdef __cplusplus
37332 extern "C"
37333 #endif
37334 char $ac_func ();
37335 /* The GNU C library defines this for functions which it implements
37336     to always fail with ENOSYS.  Some functions are actually named
37337     something starting with __ and the normal name is an alias.  */
37338 #if defined __stub_$ac_func || defined __stub___$ac_func
37339 choke me
37340 #endif
37341
37342 int
37343 main ()
37344 {
37345 return $ac_func ();
37346   ;
37347   return 0;
37348 }
37349 _ACEOF
37350 rm -f conftest.$ac_objext conftest$ac_exeext
37351 if { (ac_try="$ac_link"
37352 case "(($ac_try" in
37353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37354   *) ac_try_echo=$ac_try;;
37355 esac
37356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37357   (eval "$ac_link") 2>conftest.er1
37358   ac_status=$?
37359   grep -v '^ *+' conftest.er1 >conftest.err
37360   rm -f conftest.er1
37361   cat conftest.err >&5
37362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363   (exit $ac_status); } && {
37364          test -z "$ac_c_werror_flag" ||
37365          test ! -s conftest.err
37366        } && test -s conftest$ac_exeext &&
37367        $as_test_x conftest$ac_exeext; then
37368   eval "$as_ac_var=yes"
37369 else
37370   echo "$as_me: failed program was:" >&5
37371 sed 's/^/| /' conftest.$ac_ext >&5
37372
37373         eval "$as_ac_var=no"
37374 fi
37375
37376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37377       conftest$ac_exeext conftest.$ac_ext
37378 fi
37379 ac_res=`eval echo '${'$as_ac_var'}'`
37380                { echo "$as_me:$LINENO: result: $ac_res" >&5
37381 echo "${ECHO_T}$ac_res" >&6; }
37382 if test `eval echo '${'$as_ac_var'}'` = yes; then
37383   cat >>confdefs.h <<_ACEOF
37384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37385 _ACEOF
37386
37387 fi
37388 done
37389
37390         if test "$ac_cv_func_getpeerucred" != yes ; then
37391                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37392 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37393 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37394   echo $ECHO_N "(cached) $ECHO_C" >&6
37395 else
37396   cat >conftest.$ac_ext <<_ACEOF
37397 /* confdefs.h.  */
37398 _ACEOF
37399 cat confdefs.h >>conftest.$ac_ext
37400 cat >>conftest.$ac_ext <<_ACEOF
37401 /* end confdefs.h.  */
37402 $ac_includes_default
37403 #ifdef HAVE_SYS_SOCKET_H
37404 #include <sys/socket.h>
37405 #endif
37406
37407 int
37408 main ()
37409 {
37410 static struct msghdr ac_aggr;
37411 if (ac_aggr.msg_accrightslen)
37412 return 0;
37413   ;
37414   return 0;
37415 }
37416 _ACEOF
37417 rm -f conftest.$ac_objext
37418 if { (ac_try="$ac_compile"
37419 case "(($ac_try" in
37420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37421   *) ac_try_echo=$ac_try;;
37422 esac
37423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37424   (eval "$ac_compile") 2>conftest.er1
37425   ac_status=$?
37426   grep -v '^ *+' conftest.er1 >conftest.err
37427   rm -f conftest.er1
37428   cat conftest.err >&5
37429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430   (exit $ac_status); } && {
37431          test -z "$ac_c_werror_flag" ||
37432          test ! -s conftest.err
37433        } && test -s conftest.$ac_objext; then
37434   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37435 else
37436   echo "$as_me: failed program was:" >&5
37437 sed 's/^/| /' conftest.$ac_ext >&5
37438
37439         cat >conftest.$ac_ext <<_ACEOF
37440 /* confdefs.h.  */
37441 _ACEOF
37442 cat confdefs.h >>conftest.$ac_ext
37443 cat >>conftest.$ac_ext <<_ACEOF
37444 /* end confdefs.h.  */
37445 $ac_includes_default
37446 #ifdef HAVE_SYS_SOCKET_H
37447 #include <sys/socket.h>
37448 #endif
37449
37450 int
37451 main ()
37452 {
37453 static struct msghdr ac_aggr;
37454 if (sizeof ac_aggr.msg_accrightslen)
37455 return 0;
37456   ;
37457   return 0;
37458 }
37459 _ACEOF
37460 rm -f conftest.$ac_objext
37461 if { (ac_try="$ac_compile"
37462 case "(($ac_try" in
37463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37464   *) ac_try_echo=$ac_try;;
37465 esac
37466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37467   (eval "$ac_compile") 2>conftest.er1
37468   ac_status=$?
37469   grep -v '^ *+' conftest.er1 >conftest.err
37470   rm -f conftest.er1
37471   cat conftest.err >&5
37472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473   (exit $ac_status); } && {
37474          test -z "$ac_c_werror_flag" ||
37475          test ! -s conftest.err
37476        } && test -s conftest.$ac_objext; then
37477   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37478 else
37479   echo "$as_me: failed program was:" >&5
37480 sed 's/^/| /' conftest.$ac_ext >&5
37481
37482         ac_cv_member_struct_msghdr_msg_accrightslen=no
37483 fi
37484
37485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37486 fi
37487
37488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37489 fi
37490 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37491 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37492 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37493
37494 cat >>confdefs.h <<_ACEOF
37495 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37496 _ACEOF
37497
37498
37499 fi
37500
37501                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37502                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37503 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37504 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37505   echo $ECHO_N "(cached) $ECHO_C" >&6
37506 else
37507   cat >conftest.$ac_ext <<_ACEOF
37508 /* confdefs.h.  */
37509 _ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h.  */
37513 $ac_includes_default
37514 #ifdef HAVE_SYS_SOCKET_H
37515 #include <sys/socket.h>
37516 #endif
37517
37518 int
37519 main ()
37520 {
37521 static struct msghdr ac_aggr;
37522 if (ac_aggr.msg_control)
37523 return 0;
37524   ;
37525   return 0;
37526 }
37527 _ACEOF
37528 rm -f conftest.$ac_objext
37529 if { (ac_try="$ac_compile"
37530 case "(($ac_try" in
37531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37532   *) ac_try_echo=$ac_try;;
37533 esac
37534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37535   (eval "$ac_compile") 2>conftest.er1
37536   ac_status=$?
37537   grep -v '^ *+' conftest.er1 >conftest.err
37538   rm -f conftest.er1
37539   cat conftest.err >&5
37540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541   (exit $ac_status); } && {
37542          test -z "$ac_c_werror_flag" ||
37543          test ! -s conftest.err
37544        } && test -s conftest.$ac_objext; then
37545   ac_cv_member_struct_msghdr_msg_control=yes
37546 else
37547   echo "$as_me: failed program was:" >&5
37548 sed 's/^/| /' conftest.$ac_ext >&5
37549
37550         cat >conftest.$ac_ext <<_ACEOF
37551 /* confdefs.h.  */
37552 _ACEOF
37553 cat confdefs.h >>conftest.$ac_ext
37554 cat >>conftest.$ac_ext <<_ACEOF
37555 /* end confdefs.h.  */
37556 $ac_includes_default
37557 #ifdef HAVE_SYS_SOCKET_H
37558 #include <sys/socket.h>
37559 #endif
37560
37561 int
37562 main ()
37563 {
37564 static struct msghdr ac_aggr;
37565 if (sizeof ac_aggr.msg_control)
37566 return 0;
37567   ;
37568   return 0;
37569 }
37570 _ACEOF
37571 rm -f conftest.$ac_objext
37572 if { (ac_try="$ac_compile"
37573 case "(($ac_try" in
37574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37575   *) ac_try_echo=$ac_try;;
37576 esac
37577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37578   (eval "$ac_compile") 2>conftest.er1
37579   ac_status=$?
37580   grep -v '^ *+' conftest.er1 >conftest.err
37581   rm -f conftest.er1
37582   cat conftest.err >&5
37583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584   (exit $ac_status); } && {
37585          test -z "$ac_c_werror_flag" ||
37586          test ! -s conftest.err
37587        } && test -s conftest.$ac_objext; then
37588   ac_cv_member_struct_msghdr_msg_control=yes
37589 else
37590   echo "$as_me: failed program was:" >&5
37591 sed 's/^/| /' conftest.$ac_ext >&5
37592
37593         ac_cv_member_struct_msghdr_msg_control=no
37594 fi
37595
37596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37597 fi
37598
37599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37600 fi
37601 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37602 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37603 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37604
37605 cat >>confdefs.h <<_ACEOF
37606 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37607 _ACEOF
37608
37609
37610 fi
37611
37612                 fi
37613                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37614 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37615 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37616   echo $ECHO_N "(cached) $ECHO_C" >&6
37617 else
37618   cat >conftest.$ac_ext <<_ACEOF
37619 /* confdefs.h.  */
37620 _ACEOF
37621 cat confdefs.h >>conftest.$ac_ext
37622 cat >>conftest.$ac_ext <<_ACEOF
37623 /* end confdefs.h.  */
37624 $ac_includes_default
37625 int
37626 main ()
37627 {
37628 static struct stat ac_aggr;
37629 if (ac_aggr.st_fstype)
37630 return 0;
37631   ;
37632   return 0;
37633 }
37634 _ACEOF
37635 rm -f conftest.$ac_objext
37636 if { (ac_try="$ac_compile"
37637 case "(($ac_try" in
37638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37639   *) ac_try_echo=$ac_try;;
37640 esac
37641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37642   (eval "$ac_compile") 2>conftest.er1
37643   ac_status=$?
37644   grep -v '^ *+' conftest.er1 >conftest.err
37645   rm -f conftest.er1
37646   cat conftest.err >&5
37647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648   (exit $ac_status); } && {
37649          test -z "$ac_c_werror_flag" ||
37650          test ! -s conftest.err
37651        } && test -s conftest.$ac_objext; then
37652   ac_cv_member_struct_stat_st_fstype=yes
37653 else
37654   echo "$as_me: failed program was:" >&5
37655 sed 's/^/| /' conftest.$ac_ext >&5
37656
37657         cat >conftest.$ac_ext <<_ACEOF
37658 /* confdefs.h.  */
37659 _ACEOF
37660 cat confdefs.h >>conftest.$ac_ext
37661 cat >>conftest.$ac_ext <<_ACEOF
37662 /* end confdefs.h.  */
37663 $ac_includes_default
37664 int
37665 main ()
37666 {
37667 static struct stat ac_aggr;
37668 if (sizeof ac_aggr.st_fstype)
37669 return 0;
37670   ;
37671   return 0;
37672 }
37673 _ACEOF
37674 rm -f conftest.$ac_objext
37675 if { (ac_try="$ac_compile"
37676 case "(($ac_try" in
37677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37678   *) ac_try_echo=$ac_try;;
37679 esac
37680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37681   (eval "$ac_compile") 2>conftest.er1
37682   ac_status=$?
37683   grep -v '^ *+' conftest.er1 >conftest.err
37684   rm -f conftest.er1
37685   cat conftest.err >&5
37686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687   (exit $ac_status); } && {
37688          test -z "$ac_c_werror_flag" ||
37689          test ! -s conftest.err
37690        } && test -s conftest.$ac_objext; then
37691   ac_cv_member_struct_stat_st_fstype=yes
37692 else
37693   echo "$as_me: failed program was:" >&5
37694 sed 's/^/| /' conftest.$ac_ext >&5
37695
37696         ac_cv_member_struct_stat_st_fstype=no
37697 fi
37698
37699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37700 fi
37701
37702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37703 fi
37704 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37705 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37706 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37707
37708 cat >>confdefs.h <<_ACEOF
37709 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37710 _ACEOF
37711
37712
37713 fi
37714 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37715 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37716 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37717   echo $ECHO_N "(cached) $ECHO_C" >&6
37718 else
37719   cat >conftest.$ac_ext <<_ACEOF
37720 /* confdefs.h.  */
37721 _ACEOF
37722 cat confdefs.h >>conftest.$ac_ext
37723 cat >>conftest.$ac_ext <<_ACEOF
37724 /* end confdefs.h.  */
37725 $ac_includes_default
37726 int
37727 main ()
37728 {
37729 static struct stat ac_aggr;
37730 if (ac_aggr.st_vfstype)
37731 return 0;
37732   ;
37733   return 0;
37734 }
37735 _ACEOF
37736 rm -f conftest.$ac_objext
37737 if { (ac_try="$ac_compile"
37738 case "(($ac_try" in
37739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37740   *) ac_try_echo=$ac_try;;
37741 esac
37742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37743   (eval "$ac_compile") 2>conftest.er1
37744   ac_status=$?
37745   grep -v '^ *+' conftest.er1 >conftest.err
37746   rm -f conftest.er1
37747   cat conftest.err >&5
37748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); } && {
37750          test -z "$ac_c_werror_flag" ||
37751          test ! -s conftest.err
37752        } && test -s conftest.$ac_objext; then
37753   ac_cv_member_struct_stat_st_vfstype=yes
37754 else
37755   echo "$as_me: failed program was:" >&5
37756 sed 's/^/| /' conftest.$ac_ext >&5
37757
37758         cat >conftest.$ac_ext <<_ACEOF
37759 /* confdefs.h.  */
37760 _ACEOF
37761 cat confdefs.h >>conftest.$ac_ext
37762 cat >>conftest.$ac_ext <<_ACEOF
37763 /* end confdefs.h.  */
37764 $ac_includes_default
37765 int
37766 main ()
37767 {
37768 static struct stat ac_aggr;
37769 if (sizeof ac_aggr.st_vfstype)
37770 return 0;
37771   ;
37772   return 0;
37773 }
37774 _ACEOF
37775 rm -f conftest.$ac_objext
37776 if { (ac_try="$ac_compile"
37777 case "(($ac_try" in
37778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37779   *) ac_try_echo=$ac_try;;
37780 esac
37781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37782   (eval "$ac_compile") 2>conftest.er1
37783   ac_status=$?
37784   grep -v '^ *+' conftest.er1 >conftest.err
37785   rm -f conftest.er1
37786   cat conftest.err >&5
37787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788   (exit $ac_status); } && {
37789          test -z "$ac_c_werror_flag" ||
37790          test ! -s conftest.err
37791        } && test -s conftest.$ac_objext; then
37792   ac_cv_member_struct_stat_st_vfstype=yes
37793 else
37794   echo "$as_me: failed program was:" >&5
37795 sed 's/^/| /' conftest.$ac_ext >&5
37796
37797         ac_cv_member_struct_stat_st_vfstype=no
37798 fi
37799
37800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37801 fi
37802
37803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37804 fi
37805 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37806 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37807 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37808
37809 cat >>confdefs.h <<_ACEOF
37810 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37811 _ACEOF
37812
37813
37814 fi
37815
37816                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37817                         cat >conftest.$ac_ext <<_ACEOF
37818 struct stat st; char *ptr=st.st_fstype;
37819 _ACEOF
37820 rm -f conftest.$ac_objext
37821 if { (ac_try="$ac_compile"
37822 case "(($ac_try" in
37823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37824   *) ac_try_echo=$ac_try;;
37825 esac
37826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37827   (eval "$ac_compile") 2>conftest.er1
37828   ac_status=$?
37829   grep -v '^ *+' conftest.er1 >conftest.err
37830   rm -f conftest.er1
37831   cat conftest.err >&5
37832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833   (exit $ac_status); } && {
37834          test -z "$ac_c_werror_flag" ||
37835          test ! -s conftest.err
37836        } && test -s conftest.$ac_objext; then
37837
37838 cat >>confdefs.h <<\_ACEOF
37839 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37840 _ACEOF
37841
37842 else
37843   echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37845
37846
37847 cat >>confdefs.h <<\_ACEOF
37848 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37849 _ACEOF
37850
37851 fi
37852
37853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37854                 fi
37855         fi
37856         LIBSRCS="$LIBSRCS getpeereid.c"
37857 fi
37858
37859 if test "$ac_cv_func_snprintf" != yes ||
37860    test "$ac_cv_func_vsnprintf" != yes; then
37861         if test "$ac_cv_func_snprintf" != yes; then
37862
37863 cat >>confdefs.h <<\_ACEOF
37864 #define snprintf ber_pvt_snprintf
37865 _ACEOF
37866
37867         fi
37868         if test "$ac_cv_func_vsnprintf" != yes; then
37869
37870 cat >>confdefs.h <<\_ACEOF
37871 #define vsnprintf ber_pvt_vsnprintf
37872 _ACEOF
37873
37874         fi
37875 fi
37876
37877
37878 if test "$ol_enable_slapi" != no ; then
37879
37880 for ac_header in ltdl.h
37881 do
37882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37884   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37887   echo $ECHO_N "(cached) $ECHO_C" >&6
37888 fi
37889 ac_res=`eval echo '${'$as_ac_Header'}'`
37890                { echo "$as_me:$LINENO: result: $ac_res" >&5
37891 echo "${ECHO_T}$ac_res" >&6; }
37892 else
37893   # Is the header compilable?
37894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37896 cat >conftest.$ac_ext <<_ACEOF
37897 /* confdefs.h.  */
37898 _ACEOF
37899 cat confdefs.h >>conftest.$ac_ext
37900 cat >>conftest.$ac_ext <<_ACEOF
37901 /* end confdefs.h.  */
37902 $ac_includes_default
37903 #include <$ac_header>
37904 _ACEOF
37905 rm -f conftest.$ac_objext
37906 if { (ac_try="$ac_compile"
37907 case "(($ac_try" in
37908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37909   *) ac_try_echo=$ac_try;;
37910 esac
37911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37912   (eval "$ac_compile") 2>conftest.er1
37913   ac_status=$?
37914   grep -v '^ *+' conftest.er1 >conftest.err
37915   rm -f conftest.er1
37916   cat conftest.err >&5
37917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918   (exit $ac_status); } && {
37919          test -z "$ac_c_werror_flag" ||
37920          test ! -s conftest.err
37921        } && test -s conftest.$ac_objext; then
37922   ac_header_compiler=yes
37923 else
37924   echo "$as_me: failed program was:" >&5
37925 sed 's/^/| /' conftest.$ac_ext >&5
37926
37927         ac_header_compiler=no
37928 fi
37929
37930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37932 echo "${ECHO_T}$ac_header_compiler" >&6; }
37933
37934 # Is the header present?
37935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37937 cat >conftest.$ac_ext <<_ACEOF
37938 /* confdefs.h.  */
37939 _ACEOF
37940 cat confdefs.h >>conftest.$ac_ext
37941 cat >>conftest.$ac_ext <<_ACEOF
37942 /* end confdefs.h.  */
37943 #include <$ac_header>
37944 _ACEOF
37945 if { (ac_try="$ac_cpp conftest.$ac_ext"
37946 case "(($ac_try" in
37947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37948   *) ac_try_echo=$ac_try;;
37949 esac
37950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37952   ac_status=$?
37953   grep -v '^ *+' conftest.er1 >conftest.err
37954   rm -f conftest.er1
37955   cat conftest.err >&5
37956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957   (exit $ac_status); } >/dev/null && {
37958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37959          test ! -s conftest.err
37960        }; then
37961   ac_header_preproc=yes
37962 else
37963   echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37965
37966   ac_header_preproc=no
37967 fi
37968
37969 rm -f conftest.err conftest.$ac_ext
37970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37971 echo "${ECHO_T}$ac_header_preproc" >&6; }
37972
37973 # So?  What about this header?
37974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37975   yes:no: )
37976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37980     ac_header_preproc=yes
37981     ;;
37982   no:yes:* )
37983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37995     ( cat <<\_ASBOX
37996 ## --------------------------------------------- ##
37997 ## Report this to <http://www.openldap.org/its/> ##
37998 ## --------------------------------------------- ##
37999 _ASBOX
38000      ) | sed "s/^/$as_me: WARNING:     /" >&2
38001     ;;
38002 esac
38003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38006   echo $ECHO_N "(cached) $ECHO_C" >&6
38007 else
38008   eval "$as_ac_Header=\$ac_header_preproc"
38009 fi
38010 ac_res=`eval echo '${'$as_ac_Header'}'`
38011                { echo "$as_me:$LINENO: result: $ac_res" >&5
38012 echo "${ECHO_T}$ac_res" >&6; }
38013
38014 fi
38015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38016   cat >>confdefs.h <<_ACEOF
38017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38018 _ACEOF
38019
38020 fi
38021
38022 done
38023
38024
38025         if test $ac_cv_header_ltdl_h != yes ; then
38026                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38027 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38028    { (exit 1); exit 1; }; }
38029         fi
38030         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38031 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38032 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38033   echo $ECHO_N "(cached) $ECHO_C" >&6
38034 else
38035   ac_check_lib_save_LIBS=$LIBS
38036 LIBS="-lltdl  $LIBS"
38037 cat >conftest.$ac_ext <<_ACEOF
38038 /* confdefs.h.  */
38039 _ACEOF
38040 cat confdefs.h >>conftest.$ac_ext
38041 cat >>conftest.$ac_ext <<_ACEOF
38042 /* end confdefs.h.  */
38043
38044 /* Override any GCC internal prototype to avoid an error.
38045    Use char because int might match the return type of a GCC
38046    builtin and then its argument prototype would still apply.  */
38047 #ifdef __cplusplus
38048 extern "C"
38049 #endif
38050 char lt_dlinit ();
38051 int
38052 main ()
38053 {
38054 return lt_dlinit ();
38055   ;
38056   return 0;
38057 }
38058 _ACEOF
38059 rm -f conftest.$ac_objext conftest$ac_exeext
38060 if { (ac_try="$ac_link"
38061 case "(($ac_try" in
38062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38063   *) ac_try_echo=$ac_try;;
38064 esac
38065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38066   (eval "$ac_link") 2>conftest.er1
38067   ac_status=$?
38068   grep -v '^ *+' conftest.er1 >conftest.err
38069   rm -f conftest.er1
38070   cat conftest.err >&5
38071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38072   (exit $ac_status); } && {
38073          test -z "$ac_c_werror_flag" ||
38074          test ! -s conftest.err
38075        } && test -s conftest$ac_exeext &&
38076        $as_test_x conftest$ac_exeext; then
38077   ac_cv_lib_ltdl_lt_dlinit=yes
38078 else
38079   echo "$as_me: failed program was:" >&5
38080 sed 's/^/| /' conftest.$ac_ext >&5
38081
38082         ac_cv_lib_ltdl_lt_dlinit=no
38083 fi
38084
38085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38086       conftest$ac_exeext conftest.$ac_ext
38087 LIBS=$ac_check_lib_save_LIBS
38088 fi
38089 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38090 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38091 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38092
38093                 SLAPI_LIBS=-lltdl
38094                 LIBSLAPI=libslapi.a
38095                 LIBSLAPITOOLS=../libslapi.a
38096
38097 cat >>confdefs.h <<\_ACEOF
38098 #define HAVE_LIBLTDL 1
38099 _ACEOF
38100
38101
38102 else
38103   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38104 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38105    { (exit 1); exit 1; }; }
38106 fi
38107
38108
38109
38110 cat >>confdefs.h <<\_ACEOF
38111 #define LDAP_SLAPI 1
38112 _ACEOF
38113
38114 fi
38115
38116 if test "$ol_enable_debug" != no ; then
38117         if test "$ol_enable_debug" = traditional; then
38118
38119 cat >>confdefs.h <<\_ACEOF
38120 #define OLD_DEBUG 1
38121 _ACEOF
38122
38123         fi
38124
38125 cat >>confdefs.h <<\_ACEOF
38126 #define LDAP_DEBUG 1
38127 _ACEOF
38128
38129 fi
38130 if test "$ol_enable_syslog" = yes ; then
38131
38132 cat >>confdefs.h <<\_ACEOF
38133 #define LDAP_SYSLOG 1
38134 _ACEOF
38135
38136 fi
38137 if test "$ol_enable_proctitle" != no ; then
38138
38139 cat >>confdefs.h <<\_ACEOF
38140 #define LDAP_PROCTITLE 1
38141 _ACEOF
38142
38143 fi
38144 if test "$ol_enable_referrals" != no ; then
38145
38146 cat >>confdefs.h <<\_ACEOF
38147 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38148 _ACEOF
38149
38150 fi
38151 if test "$ol_enable_local" != no; then
38152
38153 cat >>confdefs.h <<\_ACEOF
38154 #define LDAP_PF_LOCAL 1
38155 _ACEOF
38156
38157 fi
38158 if test "$ol_link_ipv6" != no; then
38159
38160 cat >>confdefs.h <<\_ACEOF
38161 #define LDAP_PF_INET6 1
38162 _ACEOF
38163
38164 fi
38165 if test "$ol_enable_cleartext" != no ; then
38166
38167 cat >>confdefs.h <<\_ACEOF
38168 #define SLAPD_CLEARTEXT 1
38169 _ACEOF
38170
38171 fi
38172 if test "$ol_enable_crypt" != no ; then
38173
38174 cat >>confdefs.h <<\_ACEOF
38175 #define SLAPD_CRYPT 1
38176 _ACEOF
38177
38178 fi
38179 if test "$ol_link_spasswd" != no ; then
38180
38181 cat >>confdefs.h <<\_ACEOF
38182 #define SLAPD_SPASSWD 1
38183 _ACEOF
38184
38185 fi
38186 if test "$ol_enable_rlookups" != no ; then
38187
38188 cat >>confdefs.h <<\_ACEOF
38189 #define SLAPD_RLOOKUPS 1
38190 _ACEOF
38191
38192 fi
38193 if test "$ol_enable_aci" != no ; then
38194         if test $ol_enable_dynacl = no ; then
38195                 ol_enable_dynacl=yes
38196                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38197 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38198         fi
38199         if test "$ol_enable_aci" = mod ; then
38200                 MFLAG=SLAPD_MOD_DYNAMIC
38201                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38202 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38203    { (exit 1); exit 1; }; }
38204         else
38205                 MFLAG=SLAPD_MOD_STATIC
38206         fi
38207         WITH_ACI_ENABLED=$ol_enable_aci
38208
38209 cat >>confdefs.h <<_ACEOF
38210 #define SLAPD_ACI_ENABLED $MFLAG
38211 _ACEOF
38212
38213 else
38214         WITH_ACI_ENABLED=no
38215 fi
38216 if test "$ol_enable_dynacl" != no ; then
38217
38218 cat >>confdefs.h <<\_ACEOF
38219 #define SLAP_DYNACL 1
38220 _ACEOF
38221
38222 fi
38223
38224 if test "$ol_link_modules" != no ; then
38225
38226 cat >>confdefs.h <<\_ACEOF
38227 #define SLAPD_MODULES 1
38228 _ACEOF
38229
38230         BUILD_SLAPD=yes
38231         SLAPD_MODULES_LDFLAGS="-dlopen self"
38232 fi
38233
38234
38235 cat >>confdefs.h <<\_ACEOF
38236 #define SLAPD_MOD_STATIC 1
38237 _ACEOF
38238
38239
38240 cat >>confdefs.h <<\_ACEOF
38241 #define SLAPD_MOD_DYNAMIC 2
38242 _ACEOF
38243
38244
38245 if test "$ol_enable_monitor" != no ; then
38246         BUILD_SLAPD=yes
38247         BUILD_MONITOR=$ol_enable_monitor
38248         if test "$ol_enable_monitor" = mod ; then
38249                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38250                 MFLAG=SLAPD_MOD_DYNAMIC
38251         else
38252                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38253                 MFLAG=SLAPD_MOD_STATIC
38254         fi
38255
38256 cat >>confdefs.h <<_ACEOF
38257 #define SLAPD_MONITOR $MFLAG
38258 _ACEOF
38259
38260 fi
38261
38262 if test "$ol_enable_bdb" != no ; then
38263         BUILD_SLAPD=yes
38264         BUILD_BDB=$ol_enable_bdb
38265         if test "$ol_enable_bdb" = mod ; then
38266                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38267                 MFLAG=SLAPD_MOD_DYNAMIC
38268         else
38269                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38270                 MFLAG=SLAPD_MOD_STATIC
38271         fi
38272
38273 cat >>confdefs.h <<_ACEOF
38274 #define SLAPD_BDB $MFLAG
38275 _ACEOF
38276
38277 fi
38278
38279 if test "$ol_enable_dnssrv" != no ; then
38280         BUILD_SLAPD=yes
38281         BUILD_DNSSRV=$ol_enable_dnssrv
38282         if test "$ol_enable_dnssrv" = mod ; then
38283                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38284                 MFLAG=SLAPD_MOD_DYNAMIC
38285         else
38286                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38287                 MFLAG=SLAPD_MOD_STATIC
38288         fi
38289
38290 cat >>confdefs.h <<_ACEOF
38291 #define SLAPD_DNSSRV $MFLAG
38292 _ACEOF
38293
38294 fi
38295
38296 if test "$ol_enable_hdb" != no ; then
38297         BUILD_SLAPD=yes
38298         BUILD_HDB=$ol_enable_hdb
38299         if test "$ol_enable_hdb" = mod ; then
38300                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38301                 MFLAG=SLAPD_MOD_DYNAMIC
38302         else
38303                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38304                 MFLAG=SLAPD_MOD_STATIC
38305         fi
38306
38307 cat >>confdefs.h <<_ACEOF
38308 #define SLAPD_HDB $MFLAG
38309 _ACEOF
38310
38311 fi
38312
38313 if test "$ol_enable_ldap" != no ; then
38314         BUILD_SLAPD=yes
38315         BUILD_LDAP=$ol_enable_ldap
38316         if test "$ol_enable_ldap" = mod ; then
38317                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38318                 MFLAG=SLAPD_MOD_DYNAMIC
38319         else
38320                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38321                 MFLAG=SLAPD_MOD_STATIC
38322         fi
38323
38324 cat >>confdefs.h <<_ACEOF
38325 #define SLAPD_LDAP $MFLAG
38326 _ACEOF
38327
38328 fi
38329
38330 if test "$ol_enable_meta" != no ; then
38331         BUILD_SLAPD=yes
38332         BUILD_META=$ol_enable_meta
38333         BUILD_REWRITE=yes
38334         if test "$ol_enable_meta" = mod ; then
38335                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38336                 MFLAG=SLAPD_MOD_DYNAMIC
38337         else
38338                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38339                 MFLAG=SLAPD_MOD_STATIC
38340         fi
38341
38342 cat >>confdefs.h <<_ACEOF
38343 #define SLAPD_META $MFLAG
38344 _ACEOF
38345
38346 fi
38347
38348 if test "$ol_enable_ndb" != no ; then
38349         BUILD_SLAPD=yes
38350         BUILD_NDB=$ol_enable_ndb
38351         if test "$ol_enable_ndb" = mod ; then
38352                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38353                 MFLAG=SLAPD_MOD_DYNAMIC
38354         else
38355                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38356                 MFLAG=SLAPD_MOD_STATIC
38357         fi
38358
38359 cat >>confdefs.h <<_ACEOF
38360 #define SLAPD_NDB $MFLAG
38361 _ACEOF
38362
38363 fi
38364
38365 if test "$ol_enable_null" != no ; then
38366         BUILD_SLAPD=yes
38367         BUILD_NULL=$ol_enable_null
38368         if test "$ol_enable_null" = mod ; then
38369                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38370                 MFLAG=SLAPD_MOD_DYNAMIC
38371         else
38372                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38373                 MFLAG=SLAPD_MOD_STATIC
38374         fi
38375
38376 cat >>confdefs.h <<_ACEOF
38377 #define SLAPD_NULL $MFLAG
38378 _ACEOF
38379
38380 fi
38381
38382 if test "$ol_enable_passwd" != no ; then
38383         BUILD_SLAPD=yes
38384         BUILD_PASSWD=$ol_enable_passwd
38385         if test "$ol_enable_passwd" = mod ; then
38386                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38387                 MFLAG=SLAPD_MOD_DYNAMIC
38388         else
38389                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38390                 MFLAG=SLAPD_MOD_STATIC
38391         fi
38392
38393 cat >>confdefs.h <<_ACEOF
38394 #define SLAPD_PASSWD $MFLAG
38395 _ACEOF
38396
38397 fi
38398
38399 if test "$ol_link_perl" != no ; then
38400         BUILD_SLAPD=yes
38401         BUILD_PERL=$ol_enable_perl
38402         if test "$ol_enable_perl" = mod ; then
38403                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38404                 MFLAG=SLAPD_MOD_DYNAMIC
38405         else
38406                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38407                 MFLAG=SLAPD_MOD_STATIC
38408         fi
38409
38410 cat >>confdefs.h <<_ACEOF
38411 #define SLAPD_PERL $MFLAG
38412 _ACEOF
38413
38414 fi
38415
38416 if test "$ol_enable_relay" != no ; then
38417         BUILD_SLAPD=yes
38418         BUILD_RELAY=$ol_enable_relay
38419         if test "$ol_enable_relay" = mod ; then
38420                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38421                 MFLAG=SLAPD_MOD_DYNAMIC
38422         else
38423                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38424                 MFLAG=SLAPD_MOD_STATIC
38425         fi
38426
38427 cat >>confdefs.h <<_ACEOF
38428 #define SLAPD_RELAY $MFLAG
38429 _ACEOF
38430
38431 fi
38432
38433 if test "$ol_enable_shell" != no ; then
38434         if test "$ol_link_threads" != no ; then
38435                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38436 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38437         fi
38438         BUILD_SLAPD=yes
38439         BUILD_SHELL=$ol_enable_shell
38440         if test "$ol_enable_shell" = mod ; then
38441                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38442                 MFLAG=SLAPD_MOD_DYNAMIC
38443         else
38444                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38445                 MFLAG=SLAPD_MOD_STATIC
38446         fi
38447
38448 cat >>confdefs.h <<_ACEOF
38449 #define SLAPD_SHELL $MFLAG
38450 _ACEOF
38451
38452 fi
38453
38454 if test "$ol_enable_sock" != no ; then
38455         BUILD_SLAPD=yes
38456         BUILD_SOCK=$ol_enable_sock
38457         if test "$ol_enable_sock" = mod ; then
38458                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38459                 MFLAG=SLAPD_MOD_DYNAMIC
38460         else
38461                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38462                 MFLAG=SLAPD_MOD_STATIC
38463         fi
38464
38465 cat >>confdefs.h <<_ACEOF
38466 #define SLAPD_SOCK $MFLAG
38467 _ACEOF
38468
38469 fi
38470
38471 if test "$ol_link_sql" != no ; then
38472         BUILD_SLAPD=yes
38473         BUILD_SQL=$ol_enable_sql
38474         if test "$ol_enable_sql" = mod; then
38475                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38476                 MFLAG=SLAPD_MOD_DYNAMIC
38477         else
38478                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38479                 MFLAG=SLAPD_MOD_STATIC
38480         fi
38481
38482 cat >>confdefs.h <<_ACEOF
38483 #define SLAPD_SQL $MFLAG
38484 _ACEOF
38485
38486 fi
38487
38488 if test "$ol_enable_accesslog" != no ; then
38489         BUILD_ACCESSLOG=$ol_enable_accesslog
38490         if test "$ol_enable_accesslog" = mod ; then
38491                 MFLAG=SLAPD_MOD_DYNAMIC
38492                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38493         else
38494                 MFLAG=SLAPD_MOD_STATIC
38495                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38496         fi
38497
38498 cat >>confdefs.h <<_ACEOF
38499 #define SLAPD_OVER_ACCESSLOG $MFLAG
38500 _ACEOF
38501
38502 fi
38503
38504 if test "$ol_enable_auditlog" != no ; then
38505         BUILD_AUDITLOG=$ol_enable_auditlog
38506         if test "$ol_enable_auditlog" = mod ; then
38507                 MFLAG=SLAPD_MOD_DYNAMIC
38508                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38509         else
38510                 MFLAG=SLAPD_MOD_STATIC
38511                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38512         fi
38513
38514 cat >>confdefs.h <<_ACEOF
38515 #define SLAPD_OVER_AUDITLOG $MFLAG
38516 _ACEOF
38517
38518 fi
38519
38520 if test "$ol_enable_collect" != no ; then
38521         BUILD_COLLECT=$ol_enable_collect
38522         if test "$ol_enable_collect" = mod ; then
38523                 MFLAG=SLAPD_MOD_DYNAMIC
38524                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38525         else
38526                 MFLAG=SLAPD_MOD_STATIC
38527                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38528         fi
38529
38530 cat >>confdefs.h <<_ACEOF
38531 #define SLAPD_OVER_COLLECT $MFLAG
38532 _ACEOF
38533
38534 fi
38535
38536 if test "$ol_enable_constraint" != no ; then
38537         BUILD_CONSTRAINT=$ol_enable_constraint
38538         if test "$ol_enable_constraint" = mod ; then
38539                 MFLAG=SLAPD_MOD_DYNAMIC
38540                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38541         else
38542                 MFLAG=SLAPD_MOD_STATIC
38543                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38544         fi
38545
38546 cat >>confdefs.h <<_ACEOF
38547 #define SLAPD_OVER_CONSTRAINT $MFLAG
38548 _ACEOF
38549
38550 fi
38551
38552 if test "$ol_enable_dds" != no ; then
38553         BUILD_DDS=$ol_enable_dds
38554         if test "$ol_enable_dds" = mod ; then
38555                 MFLAG=SLAPD_MOD_DYNAMIC
38556                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38557         else
38558                 MFLAG=SLAPD_MOD_STATIC
38559                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38560         fi
38561
38562 cat >>confdefs.h <<_ACEOF
38563 #define SLAPD_OVER_DDS $MFLAG
38564 _ACEOF
38565
38566 fi
38567
38568 if test "$ol_enable_deref" != no ; then
38569         BUILD_DDS=$ol_enable_deref
38570         if test "$ol_enable_deref" = mod ; then
38571                 MFLAG=SLAPD_MOD_DYNAMIC
38572                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38573         else
38574                 MFLAG=SLAPD_MOD_STATIC
38575                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38576         fi
38577
38578 cat >>confdefs.h <<_ACEOF
38579 #define SLAPD_OVER_DEREF $MFLAG
38580 _ACEOF
38581
38582 fi
38583
38584 if test "$ol_enable_dyngroup" != no ; then
38585         BUILD_DYNGROUP=$ol_enable_dyngroup
38586         if test "$ol_enable_dyngroup" = mod ; then
38587                 MFLAG=SLAPD_MOD_DYNAMIC
38588                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38589         else
38590                 MFLAG=SLAPD_MOD_STATIC
38591                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38592         fi
38593
38594 cat >>confdefs.h <<_ACEOF
38595 #define SLAPD_OVER_DYNGROUP $MFLAG
38596 _ACEOF
38597
38598 fi
38599
38600 if test "$ol_enable_dynlist" != no ; then
38601         BUILD_DYNLIST=$ol_enable_dynlist
38602         if test "$ol_enable_dynlist" = mod ; then
38603                 MFLAG=SLAPD_MOD_DYNAMIC
38604                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38605         else
38606                 MFLAG=SLAPD_MOD_STATIC
38607                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38608         fi
38609
38610 cat >>confdefs.h <<_ACEOF
38611 #define SLAPD_OVER_DYNLIST $MFLAG
38612 _ACEOF
38613
38614 fi
38615
38616 if test "$ol_enable_memberof" != no ; then
38617         BUILD_MEMBEROF=$ol_enable_memberof
38618         if test "$ol_enable_memberof" = mod ; then
38619                 MFLAG=SLAPD_MOD_DYNAMIC
38620                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38621         else
38622                 MFLAG=SLAPD_MOD_STATIC
38623                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38624         fi
38625
38626 cat >>confdefs.h <<_ACEOF
38627 #define SLAPD_OVER_MEMBEROF $MFLAG
38628 _ACEOF
38629
38630 fi
38631
38632 if test "$ol_enable_ppolicy" != no ; then
38633         BUILD_PPOLICY=$ol_enable_ppolicy
38634         if test "$ol_enable_ppolicy" = mod ; then
38635                 MFLAG=SLAPD_MOD_DYNAMIC
38636                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38637         else
38638                 MFLAG=SLAPD_MOD_STATIC
38639                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38640         fi
38641
38642 cat >>confdefs.h <<_ACEOF
38643 #define SLAPD_OVER_PPOLICY $MFLAG
38644 _ACEOF
38645
38646 fi
38647
38648 if test "$ol_enable_proxycache" != no ; then
38649         BUILD_PROXYCACHE=$ol_enable_proxycache
38650         if test "$ol_enable_proxycache" = mod ; then
38651                 MFLAG=SLAPD_MOD_DYNAMIC
38652                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38653         else
38654                 MFLAG=SLAPD_MOD_STATIC
38655                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38656         fi
38657
38658 cat >>confdefs.h <<_ACEOF
38659 #define SLAPD_OVER_PROXYCACHE $MFLAG
38660 _ACEOF
38661
38662 fi
38663
38664 if test "$ol_enable_refint" != no ; then
38665         BUILD_REFINT=$ol_enable_refint
38666         if test "$ol_enable_refint" = mod ; then
38667                 MFLAG=SLAPD_MOD_DYNAMIC
38668                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38669         else
38670                 MFLAG=SLAPD_MOD_STATIC
38671                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38672         fi
38673
38674 cat >>confdefs.h <<_ACEOF
38675 #define SLAPD_OVER_REFINT $MFLAG
38676 _ACEOF
38677
38678 fi
38679
38680 if test "$ol_enable_retcode" != no ; then
38681         BUILD_RETCODE=$ol_enable_retcode
38682         if test "$ol_enable_retcode" = mod ; then
38683                 MFLAG=SLAPD_MOD_DYNAMIC
38684                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38685         else
38686                 MFLAG=SLAPD_MOD_STATIC
38687                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38688         fi
38689
38690 cat >>confdefs.h <<_ACEOF
38691 #define SLAPD_OVER_RETCODE $MFLAG
38692 _ACEOF
38693
38694 fi
38695
38696 if test "$ol_enable_rwm" != no ; then
38697         BUILD_REWRITE=yes
38698         BUILD_RWM=$ol_enable_rwm
38699         if test "$ol_enable_rwm" = mod ; then
38700                 MFLAG=SLAPD_MOD_DYNAMIC
38701                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38702         else
38703                 MFLAG=SLAPD_MOD_STATIC
38704                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38705         fi
38706
38707 cat >>confdefs.h <<_ACEOF
38708 #define SLAPD_OVER_RWM $MFLAG
38709 _ACEOF
38710
38711 fi
38712
38713 if test "$ol_enable_seqmod" != no ; then
38714         BUILD_SEQMOD=$ol_enable_seqmod
38715         if test "$ol_enable_seqmod" = mod ; then
38716                 MFLAG=SLAPD_MOD_DYNAMIC
38717                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38718         else
38719                 MFLAG=SLAPD_MOD_STATIC
38720                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38721         fi
38722
38723 cat >>confdefs.h <<_ACEOF
38724 #define SLAPD_OVER_SEQMOD $MFLAG
38725 _ACEOF
38726
38727 fi
38728
38729 if test "$ol_enable_sssvlv" != no ; then
38730         BUILD_SSSVLV=$ol_enable_sssvlv
38731         if test "$ol_enable_sssvlv" = mod ; then
38732                 MFLAG=SLAPD_MOD_DYNAMIC
38733                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38734         else
38735                 MFLAG=SLAPD_MOD_STATIC
38736                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38737         fi
38738
38739 cat >>confdefs.h <<_ACEOF
38740 #define SLAPD_OVER_SSSVLV $MFLAG
38741 _ACEOF
38742
38743 fi
38744
38745 if test "$ol_enable_syncprov" != no ; then
38746         BUILD_SYNCPROV=$ol_enable_syncprov
38747         if test "$ol_enable_syncprov" = mod ; then
38748                 MFLAG=SLAPD_MOD_DYNAMIC
38749                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38750         else
38751                 MFLAG=SLAPD_MOD_STATIC
38752                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38753         fi
38754
38755 cat >>confdefs.h <<_ACEOF
38756 #define SLAPD_OVER_SYNCPROV $MFLAG
38757 _ACEOF
38758
38759 fi
38760
38761 if test "$ol_enable_translucent" != no ; then
38762         BUILD_TRANSLUCENT=$ol_enable_translucent
38763         if test "$ol_enable_translucent" = mod ; then
38764                 MFLAG=SLAPD_MOD_DYNAMIC
38765                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38766         else
38767                 MFLAG=SLAPD_MOD_STATIC
38768                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38769         fi
38770
38771 cat >>confdefs.h <<_ACEOF
38772 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38773 _ACEOF
38774
38775 fi
38776
38777 if test "$ol_enable_unique" != no ; then
38778         BUILD_UNIQUE=$ol_enable_unique
38779         if test "$ol_enable_unique" = mod ; then
38780                 MFLAG=SLAPD_MOD_DYNAMIC
38781                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38782         else
38783                 MFLAG=SLAPD_MOD_STATIC
38784                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38785         fi
38786
38787 cat >>confdefs.h <<_ACEOF
38788 #define SLAPD_OVER_UNIQUE $MFLAG
38789 _ACEOF
38790
38791 fi
38792
38793 if test "$ol_enable_valsort" != no ; then
38794         BUILD_VALSORT=$ol_enable_valsort
38795         if test "$ol_enable_valsort" = mod ; then
38796                 MFLAG=SLAPD_MOD_DYNAMIC
38797                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38798         else
38799                 MFLAG=SLAPD_MOD_STATIC
38800                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38801         fi
38802
38803 cat >>confdefs.h <<_ACEOF
38804 #define SLAPD_OVER_VALSORT $MFLAG
38805 _ACEOF
38806
38807 fi
38808
38809 if test "$ol_enable_rewrite" != no ; then
38810
38811 cat >>confdefs.h <<\_ACEOF
38812 #define ENABLE_REWRITE 1
38813 _ACEOF
38814
38815         BUILD_REWRITE=yes
38816 fi
38817
38818 if test "$ol_enable_slapi" != no ; then
38819
38820 cat >>confdefs.h <<\_ACEOF
38821 #define ENABLE_SLAPI 1
38822 _ACEOF
38823
38824         BUILD_SLAPI=yes
38825         SLAPD_SLAPI_DEPEND=libslapi.a
38826 fi
38827
38828
38829
38830 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38831         PLAT=NT
38832         SLAPD_MODULES_LDFLAGS=
38833 else
38834         PLAT=UNIX
38835 fi
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
38881
38882
38883
38884
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926 # Check whether --with-xxinstall was given.
38927 if test "${with_xxinstall+set}" = set; then
38928   withval=$with_xxinstall;
38929 fi
38930
38931
38932
38933 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"
38934
38935
38936 ac_config_commands="$ac_config_commands default"
38937
38938
38939
38940 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38941 # Let make expand exec_prefix.
38942 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38943
38944 DEFS=-DHAVE_CONFIG_H
38945
38946 ac_libobjs=
38947 ac_ltlibobjs=
38948 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38949   # 1. Remove the extension, and $U if already installed.
38950   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38951   ac_i=`echo "$ac_i" | sed "$ac_script"`
38952   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38953   #    will be set to the directory where LIBOBJS objects are built.
38954   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38955   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38956 done
38957 LIBOBJS=$ac_libobjs
38958
38959 LTLIBOBJS=$ac_ltlibobjs
38960
38961
38962 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38963   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38964 Usually this means the macro was only invoked conditionally." >&5
38965 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38966 Usually this means the macro was only invoked conditionally." >&2;}
38967    { (exit 1); exit 1; }; }
38968 fi
38969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38970   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38971 Usually this means the macro was only invoked conditionally." >&5
38972 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38973 Usually this means the macro was only invoked conditionally." >&2;}
38974    { (exit 1); exit 1; }; }
38975 fi
38976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38977   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38978 Usually this means the macro was only invoked conditionally." >&5
38979 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38980 Usually this means the macro was only invoked conditionally." >&2;}
38981    { (exit 1); exit 1; }; }
38982 fi
38983
38984 : ${CONFIG_STATUS=./config.status}
38985 ac_clean_files_save=$ac_clean_files
38986 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38987 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38988 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38989 cat >$CONFIG_STATUS <<_ACEOF
38990 #! $SHELL
38991 # Generated by $as_me.
38992 # Run this file to recreate the current configuration.
38993 # Compiler output produced by configure, useful for debugging
38994 # configure, is in config.log if it exists.
38995
38996 debug=false
38997 ac_cs_recheck=false
38998 ac_cs_silent=false
38999 SHELL=\${CONFIG_SHELL-$SHELL}
39000 _ACEOF
39001
39002 cat >>$CONFIG_STATUS <<\_ACEOF
39003 ## --------------------- ##
39004 ## M4sh Initialization.  ##
39005 ## --------------------- ##
39006
39007 # Be more Bourne compatible
39008 DUALCASE=1; export DUALCASE # for MKS sh
39009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39010   emulate sh
39011   NULLCMD=:
39012   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39013   # is contrary to our usage.  Disable this feature.
39014   alias -g '${1+"$@"}'='"$@"'
39015   setopt NO_GLOB_SUBST
39016 else
39017   case `(set -o) 2>/dev/null` in
39018   *posix*) set -o posix ;;
39019 esac
39020
39021 fi
39022
39023
39024
39025
39026 # PATH needs CR
39027 # Avoid depending upon Character Ranges.
39028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39031 as_cr_digits='0123456789'
39032 as_cr_alnum=$as_cr_Letters$as_cr_digits
39033
39034 # The user is always right.
39035 if test "${PATH_SEPARATOR+set}" != set; then
39036   echo "#! /bin/sh" >conf$$.sh
39037   echo  "exit 0"   >>conf$$.sh
39038   chmod +x conf$$.sh
39039   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39040     PATH_SEPARATOR=';'
39041   else
39042     PATH_SEPARATOR=:
39043   fi
39044   rm -f conf$$.sh
39045 fi
39046
39047 # Support unset when possible.
39048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39049   as_unset=unset
39050 else
39051   as_unset=false
39052 fi
39053
39054
39055 # IFS
39056 # We need space, tab and new line, in precisely that order.  Quoting is
39057 # there to prevent editors from complaining about space-tab.
39058 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39059 # splitting by setting IFS to empty value.)
39060 as_nl='
39061 '
39062 IFS=" ""        $as_nl"
39063
39064 # Find who we are.  Look in the path if we contain no directory separator.
39065 case $0 in
39066   *[\\/]* ) as_myself=$0 ;;
39067   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39068 for as_dir in $PATH
39069 do
39070   IFS=$as_save_IFS
39071   test -z "$as_dir" && as_dir=.
39072   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39073 done
39074 IFS=$as_save_IFS
39075
39076      ;;
39077 esac
39078 # We did not find ourselves, most probably we were run as `sh COMMAND'
39079 # in which case we are not to be found in the path.
39080 if test "x$as_myself" = x; then
39081   as_myself=$0
39082 fi
39083 if test ! -f "$as_myself"; then
39084   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39085   { (exit 1); exit 1; }
39086 fi
39087
39088 # Work around bugs in pre-3.0 UWIN ksh.
39089 for as_var in ENV MAIL MAILPATH
39090 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39091 done
39092 PS1='$ '
39093 PS2='> '
39094 PS4='+ '
39095
39096 # NLS nuisances.
39097 for as_var in \
39098   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39099   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39100   LC_TELEPHONE LC_TIME
39101 do
39102   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39103     eval $as_var=C; export $as_var
39104   else
39105     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39106   fi
39107 done
39108
39109 # Required to use basename.
39110 if expr a : '\(a\)' >/dev/null 2>&1 &&
39111    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39112   as_expr=expr
39113 else
39114   as_expr=false
39115 fi
39116
39117 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39118   as_basename=basename
39119 else
39120   as_basename=false
39121 fi
39122
39123
39124 # Name of the executable.
39125 as_me=`$as_basename -- "$0" ||
39126 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39127          X"$0" : 'X\(//\)$' \| \
39128          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39129 echo X/"$0" |
39130     sed '/^.*\/\([^/][^/]*\)\/*$/{
39131             s//\1/
39132             q
39133           }
39134           /^X\/\(\/\/\)$/{
39135             s//\1/
39136             q
39137           }
39138           /^X\/\(\/\).*/{
39139             s//\1/
39140             q
39141           }
39142           s/.*/./; q'`
39143
39144 # CDPATH.
39145 $as_unset CDPATH
39146
39147
39148
39149   as_lineno_1=$LINENO
39150   as_lineno_2=$LINENO
39151   test "x$as_lineno_1" != "x$as_lineno_2" &&
39152   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39153
39154   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39155   # uniformly replaced by the line number.  The first 'sed' inserts a
39156   # line-number line after each line using $LINENO; the second 'sed'
39157   # does the real work.  The second script uses 'N' to pair each
39158   # line-number line with the line containing $LINENO, and appends
39159   # trailing '-' during substitution so that $LINENO is not a special
39160   # case at line end.
39161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39162   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39163   # E. McMahon (1931-1989) for sed's syntax.  :-)
39164   sed -n '
39165     p
39166     /[$]LINENO/=
39167   ' <$as_myself |
39168     sed '
39169       s/[$]LINENO.*/&-/
39170       t lineno
39171       b
39172       :lineno
39173       N
39174       :loop
39175       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39176       t loop
39177       s/-\n.*//
39178     ' >$as_me.lineno &&
39179   chmod +x "$as_me.lineno" ||
39180     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39181    { (exit 1); exit 1; }; }
39182
39183   # Don't try to exec as it changes $[0], causing all sort of problems
39184   # (the dirname of $[0] is not the place where we might find the
39185   # original and so on.  Autoconf is especially sensitive to this).
39186   . "./$as_me.lineno"
39187   # Exit status is that of the last command.
39188   exit
39189 }
39190
39191
39192 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39193   as_dirname=dirname
39194 else
39195   as_dirname=false
39196 fi
39197
39198 ECHO_C= ECHO_N= ECHO_T=
39199 case `echo -n x` in
39200 -n*)
39201   case `echo 'x\c'` in
39202   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39203   *)   ECHO_C='\c';;
39204   esac;;
39205 *)
39206   ECHO_N='-n';;
39207 esac
39208
39209 if expr a : '\(a\)' >/dev/null 2>&1 &&
39210    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39211   as_expr=expr
39212 else
39213   as_expr=false
39214 fi
39215
39216 rm -f conf$$ conf$$.exe conf$$.file
39217 if test -d conf$$.dir; then
39218   rm -f conf$$.dir/conf$$.file
39219 else
39220   rm -f conf$$.dir
39221   mkdir conf$$.dir
39222 fi
39223 echo >conf$$.file
39224 if ln -s conf$$.file conf$$ 2>/dev/null; then
39225   as_ln_s='ln -s'
39226   # ... but there are two gotchas:
39227   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39228   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39229   # In both cases, we have to default to `cp -p'.
39230   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39231     as_ln_s='cp -p'
39232 elif ln conf$$.file conf$$ 2>/dev/null; then
39233   as_ln_s=ln
39234 else
39235   as_ln_s='cp -p'
39236 fi
39237 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39238 rmdir conf$$.dir 2>/dev/null
39239
39240 if mkdir -p . 2>/dev/null; then
39241   as_mkdir_p=:
39242 else
39243   test -d ./-p && rmdir ./-p
39244   as_mkdir_p=false
39245 fi
39246
39247 if test -x / >/dev/null 2>&1; then
39248   as_test_x='test -x'
39249 else
39250   if ls -dL / >/dev/null 2>&1; then
39251     as_ls_L_option=L
39252   else
39253     as_ls_L_option=
39254   fi
39255   as_test_x='
39256     eval sh -c '\''
39257       if test -d "$1"; then
39258         test -d "$1/.";
39259       else
39260         case $1 in
39261         -*)set "./$1";;
39262         esac;
39263         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39264         ???[sx]*):;;*)false;;esac;fi
39265     '\'' sh
39266   '
39267 fi
39268 as_executable_p=$as_test_x
39269
39270 # Sed expression to map a string onto a valid CPP name.
39271 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39272
39273 # Sed expression to map a string onto a valid variable name.
39274 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39275
39276
39277 exec 6>&1
39278
39279 # Save the log message, to keep $[0] and so on meaningful, and to
39280 # report actual input values of CONFIG_FILES etc. instead of their
39281 # values after options handling.
39282 ac_log="
39283 This file was extended by $as_me, which was
39284 generated by GNU Autoconf 2.61.  Invocation command line was
39285
39286   CONFIG_FILES    = $CONFIG_FILES
39287   CONFIG_HEADERS  = $CONFIG_HEADERS
39288   CONFIG_LINKS    = $CONFIG_LINKS
39289   CONFIG_COMMANDS = $CONFIG_COMMANDS
39290   $ $0 $@
39291
39292 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39293 "
39294
39295 _ACEOF
39296
39297 cat >>$CONFIG_STATUS <<_ACEOF
39298 # Files that config.status was made for.
39299 config_files="$ac_config_files"
39300 config_headers="$ac_config_headers"
39301 config_commands="$ac_config_commands"
39302
39303 _ACEOF
39304
39305 cat >>$CONFIG_STATUS <<\_ACEOF
39306 ac_cs_usage="\
39307 \`$as_me' instantiates files from templates according to the
39308 current configuration.
39309
39310 Usage: $0 [OPTIONS] [FILE]...
39311
39312   -h, --help       print this help, then exit
39313   -V, --version    print version number and configuration settings, then exit
39314   -q, --quiet      do not print progress messages
39315   -d, --debug      don't remove temporary files
39316       --recheck    update $as_me by reconfiguring in the same conditions
39317   --file=FILE[:TEMPLATE]
39318                    instantiate the configuration file FILE
39319   --header=FILE[:TEMPLATE]
39320                    instantiate the configuration header FILE
39321
39322 Configuration files:
39323 $config_files
39324
39325 Configuration headers:
39326 $config_headers
39327
39328 Configuration commands:
39329 $config_commands
39330
39331 Report bugs to <bug-autoconf@gnu.org>."
39332
39333 _ACEOF
39334 cat >>$CONFIG_STATUS <<_ACEOF
39335 ac_cs_version="\\
39336 config.status
39337 configured by $0, generated by GNU Autoconf 2.61,
39338   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39339
39340 Copyright (C) 2006 Free Software Foundation, Inc.
39341 This config.status script is free software; the Free Software Foundation
39342 gives unlimited permission to copy, distribute and modify it."
39343
39344 ac_pwd='$ac_pwd'
39345 srcdir='$srcdir'
39346 INSTALL='$INSTALL'
39347 _ACEOF
39348
39349 cat >>$CONFIG_STATUS <<\_ACEOF
39350 # If no file are specified by the user, then we need to provide default
39351 # value.  By we need to know if files were specified by the user.
39352 ac_need_defaults=:
39353 while test $# != 0
39354 do
39355   case $1 in
39356   --*=*)
39357     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39358     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39359     ac_shift=:
39360     ;;
39361   *)
39362     ac_option=$1
39363     ac_optarg=$2
39364     ac_shift=shift
39365     ;;
39366   esac
39367
39368   case $ac_option in
39369   # Handling of the options.
39370   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39371     ac_cs_recheck=: ;;
39372   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39373     echo "$ac_cs_version"; exit ;;
39374   --debug | --debu | --deb | --de | --d | -d )
39375     debug=: ;;
39376   --file | --fil | --fi | --f )
39377     $ac_shift
39378     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39379     ac_need_defaults=false;;
39380   --header | --heade | --head | --hea )
39381     $ac_shift
39382     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39383     ac_need_defaults=false;;
39384   --he | --h)
39385     # Conflict between --help and --header
39386     { echo "$as_me: error: ambiguous option: $1
39387 Try \`$0 --help' for more information." >&2
39388    { (exit 1); exit 1; }; };;
39389   --help | --hel | -h )
39390     echo "$ac_cs_usage"; exit ;;
39391   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39392   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39393     ac_cs_silent=: ;;
39394
39395   # This is an error.
39396   -*) { echo "$as_me: error: unrecognized option: $1
39397 Try \`$0 --help' for more information." >&2
39398    { (exit 1); exit 1; }; } ;;
39399
39400   *) ac_config_targets="$ac_config_targets $1"
39401      ac_need_defaults=false ;;
39402
39403   esac
39404   shift
39405 done
39406
39407 ac_configure_extra_args=
39408
39409 if $ac_cs_silent; then
39410   exec 6>/dev/null
39411   ac_configure_extra_args="$ac_configure_extra_args --silent"
39412 fi
39413
39414 _ACEOF
39415 cat >>$CONFIG_STATUS <<_ACEOF
39416 if \$ac_cs_recheck; then
39417   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39418   CONFIG_SHELL=$SHELL
39419   export CONFIG_SHELL
39420   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39421 fi
39422
39423 _ACEOF
39424 cat >>$CONFIG_STATUS <<\_ACEOF
39425 exec 5>>config.log
39426 {
39427   echo
39428   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39429 ## Running $as_me. ##
39430 _ASBOX
39431   echo "$ac_log"
39432 } >&5
39433
39434 _ACEOF
39435 cat >>$CONFIG_STATUS <<_ACEOF
39436 #
39437 # INIT-COMMANDS
39438 #
39439 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39440
39441 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39442 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39443
39444
39445 _ACEOF
39446
39447 cat >>$CONFIG_STATUS <<\_ACEOF
39448
39449 # Handling of arguments.
39450 for ac_config_target in $ac_config_targets
39451 do
39452   case $ac_config_target in
39453     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39454     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39455     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39456     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39457     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39458     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39459     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39460     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39461     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39462     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39463     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39464     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39465     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39466     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39467     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39468     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39469     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39470     "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" ;;
39471     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39472     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39473     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39474     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39475     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39476     "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" ;;
39477     "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" ;;
39478     "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" ;;
39479     "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" ;;
39480     "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" ;;
39481     "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" ;;
39482     "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" ;;
39483     "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" ;;
39484     "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" ;;
39485     "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" ;;
39486     "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" ;;
39487     "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" ;;
39488     "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" ;;
39489     "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" ;;
39490     "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" ;;
39491     "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" ;;
39492     "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" ;;
39493     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39494     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39495     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39496     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39497     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39498
39499   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39501    { (exit 1); exit 1; }; };;
39502   esac
39503 done
39504
39505
39506 # If the user did not use the arguments to specify the items to instantiate,
39507 # then the envvar interface is used.  Set only those that are not.
39508 # We use the long form for the default assignment because of an extremely
39509 # bizarre bug on SunOS 4.1.3.
39510 if $ac_need_defaults; then
39511   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39512   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39513   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39514 fi
39515
39516 # Have a temporary directory for convenience.  Make it in the build tree
39517 # simply because there is no reason against having it here, and in addition,
39518 # creating and moving files from /tmp can sometimes cause problems.
39519 # Hook for its removal unless debugging.
39520 # Note that there is a small window in which the directory will not be cleaned:
39521 # after its creation but before its name has been assigned to `$tmp'.
39522 $debug ||
39523 {
39524   tmp=
39525   trap 'exit_status=$?
39526   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39527 ' 0
39528   trap '{ (exit 1); exit 1; }' 1 2 13 15
39529 }
39530 # Create a (secure) tmp directory for tmp files.
39531
39532 {
39533   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39534   test -n "$tmp" && test -d "$tmp"
39535 }  ||
39536 {
39537   tmp=./conf$$-$RANDOM
39538   (umask 077 && mkdir "$tmp")
39539 } ||
39540 {
39541    echo "$me: cannot create a temporary directory in ." >&2
39542    { (exit 1); exit 1; }
39543 }
39544
39545 #
39546 # Set up the sed scripts for CONFIG_FILES section.
39547 #
39548
39549 # No need to generate the scripts if there are no CONFIG_FILES.
39550 # This happens for instance when ./config.status config.h
39551 if test -n "$CONFIG_FILES"; then
39552
39553 _ACEOF
39554
39555
39556
39557 ac_delim='%!_!# '
39558 for ac_last_try in false false false false false :; do
39559   cat >conf$$subs.sed <<_ACEOF
39560 SHELL!$SHELL$ac_delim
39561 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39562 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39563 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39564 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39565 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39566 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39567 exec_prefix!$exec_prefix$ac_delim
39568 prefix!$prefix$ac_delim
39569 program_transform_name!$program_transform_name$ac_delim
39570 bindir!$bindir$ac_delim
39571 sbindir!$sbindir$ac_delim
39572 libexecdir!$libexecdir$ac_delim
39573 datarootdir!$datarootdir$ac_delim
39574 datadir!$datadir$ac_delim
39575 sysconfdir!$sysconfdir$ac_delim
39576 sharedstatedir!$sharedstatedir$ac_delim
39577 localstatedir!$localstatedir$ac_delim
39578 includedir!$includedir$ac_delim
39579 oldincludedir!$oldincludedir$ac_delim
39580 docdir!$docdir$ac_delim
39581 infodir!$infodir$ac_delim
39582 htmldir!$htmldir$ac_delim
39583 dvidir!$dvidir$ac_delim
39584 pdfdir!$pdfdir$ac_delim
39585 psdir!$psdir$ac_delim
39586 libdir!$libdir$ac_delim
39587 localedir!$localedir$ac_delim
39588 mandir!$mandir$ac_delim
39589 DEFS!$DEFS$ac_delim
39590 ECHO_C!$ECHO_C$ac_delim
39591 ECHO_N!$ECHO_N$ac_delim
39592 ECHO_T!$ECHO_T$ac_delim
39593 LIBS!$LIBS$ac_delim
39594 build_alias!$build_alias$ac_delim
39595 host_alias!$host_alias$ac_delim
39596 target_alias!$target_alias$ac_delim
39597 build!$build$ac_delim
39598 build_cpu!$build_cpu$ac_delim
39599 build_vendor!$build_vendor$ac_delim
39600 build_os!$build_os$ac_delim
39601 host!$host$ac_delim
39602 host_cpu!$host_cpu$ac_delim
39603 host_vendor!$host_vendor$ac_delim
39604 host_os!$host_os$ac_delim
39605 target!$target$ac_delim
39606 target_cpu!$target_cpu$ac_delim
39607 target_vendor!$target_vendor$ac_delim
39608 target_os!$target_os$ac_delim
39609 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39610 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39611 INSTALL_DATA!$INSTALL_DATA$ac_delim
39612 CYGPATH_W!$CYGPATH_W$ac_delim
39613 PACKAGE!$PACKAGE$ac_delim
39614 VERSION!$VERSION$ac_delim
39615 ACLOCAL!$ACLOCAL$ac_delim
39616 AUTOCONF!$AUTOCONF$ac_delim
39617 AUTOMAKE!$AUTOMAKE$ac_delim
39618 AUTOHEADER!$AUTOHEADER$ac_delim
39619 MAKEINFO!$MAKEINFO$ac_delim
39620 install_sh!$install_sh$ac_delim
39621 STRIP!$STRIP$ac_delim
39622 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39623 mkdir_p!$mkdir_p$ac_delim
39624 AWK!$AWK$ac_delim
39625 SET_MAKE!$SET_MAKE$ac_delim
39626 am__leading_dot!$am__leading_dot$ac_delim
39627 AMTAR!$AMTAR$ac_delim
39628 am__tar!$am__tar$ac_delim
39629 am__untar!$am__untar$ac_delim
39630 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39631 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39632 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39633 top_builddir!$top_builddir$ac_delim
39634 ldap_subdir!$ldap_subdir$ac_delim
39635 CC!$CC$ac_delim
39636 AR!$AR$ac_delim
39637 CFLAGS!$CFLAGS$ac_delim
39638 LDFLAGS!$LDFLAGS$ac_delim
39639 CPPFLAGS!$CPPFLAGS$ac_delim
39640 ac_ct_CC!$ac_ct_CC$ac_delim
39641 EXEEXT!$EXEEXT$ac_delim
39642 OBJEXT!$OBJEXT$ac_delim
39643 DEPDIR!$DEPDIR$ac_delim
39644 am__include!$am__include$ac_delim
39645 am__quote!$am__quote$ac_delim
39646 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39647 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39648 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39649 CCDEPMODE!$CCDEPMODE$ac_delim
39650 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39651 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39652 GREP!$GREP$ac_delim
39653 EGREP!$EGREP$ac_delim
39654 LN_S!$LN_S$ac_delim
39655 ECHO!$ECHO$ac_delim
39656 RANLIB!$RANLIB$ac_delim
39657 _ACEOF
39658
39659   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39660     break
39661   elif $ac_last_try; then
39662     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39663 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39664    { (exit 1); exit 1; }; }
39665   else
39666     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39667   fi
39668 done
39669
39670 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39671 if test -n "$ac_eof"; then
39672   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39673   ac_eof=`expr $ac_eof + 1`
39674 fi
39675
39676 cat >>$CONFIG_STATUS <<_ACEOF
39677 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39679 _ACEOF
39680 sed '
39681 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39682 s/^/s,@/; s/!/@,|#_!!_#|/
39683 :n
39684 t n
39685 s/'"$ac_delim"'$/,g/; t
39686 s/$/\\/; p
39687 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39688 ' >>$CONFIG_STATUS <conf$$subs.sed
39689 rm -f conf$$subs.sed
39690 cat >>$CONFIG_STATUS <<_ACEOF
39691 CEOF$ac_eof
39692 _ACEOF
39693
39694
39695 ac_delim='%!_!# '
39696 for ac_last_try in false false false false false :; do
39697   cat >conf$$subs.sed <<_ACEOF
39698 DLLTOOL!$DLLTOOL$ac_delim
39699 AS!$AS$ac_delim
39700 OBJDUMP!$OBJDUMP$ac_delim
39701 CPP!$CPP$ac_delim
39702 LIBTOOL!$LIBTOOL$ac_delim
39703 PERLBIN!$PERLBIN$ac_delim
39704 OL_MKDEP!$OL_MKDEP$ac_delim
39705 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39706 LTSTATIC!$LTSTATIC$ac_delim
39707 MYSQL!$MYSQL$ac_delim
39708 LIBOBJS!$LIBOBJS$ac_delim
39709 LIBSRCS!$LIBSRCS$ac_delim
39710 PLAT!$PLAT$ac_delim
39711 WITH_SASL!$WITH_SASL$ac_delim
39712 WITH_TLS!$WITH_TLS$ac_delim
39713 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39714 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39715 BUILD_THREAD!$BUILD_THREAD$ac_delim
39716 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39717 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39718 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39719 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39720 BUILD_BDB!$BUILD_BDB$ac_delim
39721 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39722 BUILD_HDB!$BUILD_HDB$ac_delim
39723 BUILD_LDAP!$BUILD_LDAP$ac_delim
39724 BUILD_META!$BUILD_META$ac_delim
39725 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39726 BUILD_NDB!$BUILD_NDB$ac_delim
39727 BUILD_NULL!$BUILD_NULL$ac_delim
39728 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39729 BUILD_RELAY!$BUILD_RELAY$ac_delim
39730 BUILD_PERL!$BUILD_PERL$ac_delim
39731 BUILD_SHELL!$BUILD_SHELL$ac_delim
39732 BUILD_SOCK!$BUILD_SOCK$ac_delim
39733 BUILD_SQL!$BUILD_SQL$ac_delim
39734 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39735 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39736 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39737 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39738 BUILD_DDS!$BUILD_DDS$ac_delim
39739 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39740 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39741 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39742 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39743 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39744 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39745 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39746 BUILD_REFINT!$BUILD_REFINT$ac_delim
39747 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39748 BUILD_RWM!$BUILD_RWM$ac_delim
39749 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39750 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39751 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39752 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39753 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39754 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39755 LDAP_LIBS!$LDAP_LIBS$ac_delim
39756 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39757 BDB_LIBS!$BDB_LIBS$ac_delim
39758 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39759 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39760 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39761 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39762 WRAP_LIBS!$WRAP_LIBS$ac_delim
39763 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39764 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39765 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39766 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39767 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39768 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39769 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39770 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39771 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39772 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39773 KRB4_LIBS!$KRB4_LIBS$ac_delim
39774 KRB5_LIBS!$KRB5_LIBS$ac_delim
39775 SASL_LIBS!$SASL_LIBS$ac_delim
39776 TLS_LIBS!$TLS_LIBS$ac_delim
39777 MODULES_LIBS!$MODULES_LIBS$ac_delim
39778 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39779 LIBSLAPI!$LIBSLAPI$ac_delim
39780 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39781 AUTH_LIBS!$AUTH_LIBS$ac_delim
39782 ICU_LIBS!$ICU_LIBS$ac_delim
39783 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39784 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39785 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39786 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39787 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39788 LTLIBOBJS!$LTLIBOBJS$ac_delim
39789 _ACEOF
39790
39791   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
39792     break
39793   elif $ac_last_try; then
39794     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39795 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39796    { (exit 1); exit 1; }; }
39797   else
39798     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39799   fi
39800 done
39801
39802 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39803 if test -n "$ac_eof"; then
39804   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39805   ac_eof=`expr $ac_eof + 1`
39806 fi
39807
39808 cat >>$CONFIG_STATUS <<_ACEOF
39809 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39811 _ACEOF
39812 sed '
39813 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39814 s/^/s,@/; s/!/@,|#_!!_#|/
39815 :n
39816 t n
39817 s/'"$ac_delim"'$/,g/; t
39818 s/$/\\/; p
39819 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39820 ' >>$CONFIG_STATUS <conf$$subs.sed
39821 rm -f conf$$subs.sed
39822 cat >>$CONFIG_STATUS <<_ACEOF
39823 :end
39824 s/|#_!!_#|//g
39825 CEOF$ac_eof
39826 _ACEOF
39827
39828
39829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39831 # trailing colons and then remove the whole line if VPATH becomes empty
39832 # (actually we leave an empty line to preserve line numbers).
39833 if test "x$srcdir" = x.; then
39834   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39835 s/:*\$(srcdir):*/:/
39836 s/:*\${srcdir}:*/:/
39837 s/:*@srcdir@:*/:/
39838 s/^\([^=]*=[     ]*\):*/\1/
39839 s/:*$//
39840 s/^[^=]*=[       ]*$//
39841 }'
39842 fi
39843
39844 cat >>$CONFIG_STATUS <<\_ACEOF
39845 fi # test -n "$CONFIG_FILES"
39846
39847
39848 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39849 do
39850   case $ac_tag in
39851   :[FHLC]) ac_mode=$ac_tag; continue;;
39852   esac
39853   case $ac_mode$ac_tag in
39854   :[FHL]*:*);;
39855   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39856 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39857    { (exit 1); exit 1; }; };;
39858   :[FH]-) ac_tag=-:-;;
39859   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39860   esac
39861   ac_save_IFS=$IFS
39862   IFS=:
39863   set x $ac_tag
39864   IFS=$ac_save_IFS
39865   shift
39866   ac_file=$1
39867   shift
39868
39869   case $ac_mode in
39870   :L) ac_source=$1;;
39871   :[FH])
39872     ac_file_inputs=
39873     for ac_f
39874     do
39875       case $ac_f in
39876       -) ac_f="$tmp/stdin";;
39877       *) # Look for the file first in the build tree, then in the source tree
39878          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39879          # because $ac_f cannot contain `:'.
39880          test -f "$ac_f" ||
39881            case $ac_f in
39882            [\\/$]*) false;;
39883            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39884            esac ||
39885            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39886 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39887    { (exit 1); exit 1; }; };;
39888       esac
39889       ac_file_inputs="$ac_file_inputs $ac_f"
39890     done
39891
39892     # Let's still pretend it is `configure' which instantiates (i.e., don't
39893     # use $as_me), people would be surprised to read:
39894     #    /* config.h.  Generated by config.status.  */
39895     configure_input="Generated from "`IFS=:
39896           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39897     if test x"$ac_file" != x-; then
39898       configure_input="$ac_file.  $configure_input"
39899       { echo "$as_me:$LINENO: creating $ac_file" >&5
39900 echo "$as_me: creating $ac_file" >&6;}
39901     fi
39902
39903     case $ac_tag in
39904     *:-:* | *:-) cat >"$tmp/stdin";;
39905     esac
39906     ;;
39907   esac
39908
39909   ac_dir=`$as_dirname -- "$ac_file" ||
39910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39911          X"$ac_file" : 'X\(//\)[^/]' \| \
39912          X"$ac_file" : 'X\(//\)$' \| \
39913          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39914 echo X"$ac_file" |
39915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39916             s//\1/
39917             q
39918           }
39919           /^X\(\/\/\)[^/].*/{
39920             s//\1/
39921             q
39922           }
39923           /^X\(\/\/\)$/{
39924             s//\1/
39925             q
39926           }
39927           /^X\(\/\).*/{
39928             s//\1/
39929             q
39930           }
39931           s/.*/./; q'`
39932   { as_dir="$ac_dir"
39933   case $as_dir in #(
39934   -*) as_dir=./$as_dir;;
39935   esac
39936   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39937     as_dirs=
39938     while :; do
39939       case $as_dir in #(
39940       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39941       *) as_qdir=$as_dir;;
39942       esac
39943       as_dirs="'$as_qdir' $as_dirs"
39944       as_dir=`$as_dirname -- "$as_dir" ||
39945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39946          X"$as_dir" : 'X\(//\)[^/]' \| \
39947          X"$as_dir" : 'X\(//\)$' \| \
39948          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39949 echo X"$as_dir" |
39950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39951             s//\1/
39952             q
39953           }
39954           /^X\(\/\/\)[^/].*/{
39955             s//\1/
39956             q
39957           }
39958           /^X\(\/\/\)$/{
39959             s//\1/
39960             q
39961           }
39962           /^X\(\/\).*/{
39963             s//\1/
39964             q
39965           }
39966           s/.*/./; q'`
39967       test -d "$as_dir" && break
39968     done
39969     test -z "$as_dirs" || eval "mkdir $as_dirs"
39970   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39971 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39972    { (exit 1); exit 1; }; }; }
39973   ac_builddir=.
39974
39975 case "$ac_dir" in
39976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39977 *)
39978   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39979   # A ".." for each directory in $ac_dir_suffix.
39980   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39981   case $ac_top_builddir_sub in
39982   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39983   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39984   esac ;;
39985 esac
39986 ac_abs_top_builddir=$ac_pwd
39987 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39988 # for backward compatibility:
39989 ac_top_builddir=$ac_top_build_prefix
39990
39991 case $srcdir in
39992   .)  # We are building in place.
39993     ac_srcdir=.
39994     ac_top_srcdir=$ac_top_builddir_sub
39995     ac_abs_top_srcdir=$ac_pwd ;;
39996   [\\/]* | ?:[\\/]* )  # Absolute name.
39997     ac_srcdir=$srcdir$ac_dir_suffix;
39998     ac_top_srcdir=$srcdir
39999     ac_abs_top_srcdir=$srcdir ;;
40000   *) # Relative name.
40001     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40002     ac_top_srcdir=$ac_top_build_prefix$srcdir
40003     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40004 esac
40005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40006
40007
40008   case $ac_mode in
40009   :F)
40010   #
40011   # CONFIG_FILE
40012   #
40013
40014   case $INSTALL in
40015   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40016   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40017   esac
40018 _ACEOF
40019
40020 cat >>$CONFIG_STATUS <<\_ACEOF
40021 # If the template does not know about datarootdir, expand it.
40022 # FIXME: This hack should be removed a few years after 2.60.
40023 ac_datarootdir_hack=; ac_datarootdir_seen=
40024
40025 case `sed -n '/datarootdir/ {
40026   p
40027   q
40028 }
40029 /@datadir@/p
40030 /@docdir@/p
40031 /@infodir@/p
40032 /@localedir@/p
40033 /@mandir@/p
40034 ' $ac_file_inputs` in
40035 *datarootdir*) ac_datarootdir_seen=yes;;
40036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40037   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40038 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40039 _ACEOF
40040 cat >>$CONFIG_STATUS <<_ACEOF
40041   ac_datarootdir_hack='
40042   s&@datadir@&$datadir&g
40043   s&@docdir@&$docdir&g
40044   s&@infodir@&$infodir&g
40045   s&@localedir@&$localedir&g
40046   s&@mandir@&$mandir&g
40047     s&\\\${datarootdir}&$datarootdir&g' ;;
40048 esac
40049 _ACEOF
40050
40051 # Neutralize VPATH when `$srcdir' = `.'.
40052 # Shell code in configure.ac might set extrasub.
40053 # FIXME: do we really want to maintain this feature?
40054 cat >>$CONFIG_STATUS <<_ACEOF
40055   sed "$ac_vpsub
40056 $extrasub
40057 _ACEOF
40058 cat >>$CONFIG_STATUS <<\_ACEOF
40059 :t
40060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40061 s&@configure_input@&$configure_input&;t t
40062 s&@top_builddir@&$ac_top_builddir_sub&;t t
40063 s&@srcdir@&$ac_srcdir&;t t
40064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40065 s&@top_srcdir@&$ac_top_srcdir&;t t
40066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40067 s&@builddir@&$ac_builddir&;t t
40068 s&@abs_builddir@&$ac_abs_builddir&;t t
40069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40070 s&@INSTALL@&$ac_INSTALL&;t t
40071 $ac_datarootdir_hack
40072 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40073
40074 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40075   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40076   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40077   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40078 which seems to be undefined.  Please make sure it is defined." >&5
40079 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40080 which seems to be undefined.  Please make sure it is defined." >&2;}
40081
40082   rm -f "$tmp/stdin"
40083   case $ac_file in
40084   -) cat "$tmp/out"; rm -f "$tmp/out";;
40085   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40086   esac
40087  ;;
40088   :H)
40089   #
40090   # CONFIG_HEADER
40091   #
40092 _ACEOF
40093
40094 # Transform confdefs.h into a sed script `conftest.defines', that
40095 # substitutes the proper values into config.h.in to produce config.h.
40096 rm -f conftest.defines conftest.tail
40097 # First, append a space to every undef/define line, to ease matching.
40098 echo 's/$/ /' >conftest.defines
40099 # Then, protect against being on the right side of a sed subst, or in
40100 # an unquoted here document, in config.status.  If some macros were
40101 # called several times there might be several #defines for the same
40102 # symbol, which is useless.  But do not sort them, since the last
40103 # AC_DEFINE must be honored.
40104 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40105 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40106 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40107 # PARAMS is the parameter list in the macro definition--in most cases, it's
40108 # just an empty string.
40109 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40110 ac_dB='\\)[      (].*,\\1define\\2'
40111 ac_dC=' '
40112 ac_dD=' ,'
40113
40114 uniq confdefs.h |
40115   sed -n '
40116         t rset
40117         :rset
40118         s/^[     ]*#[    ]*define[       ][      ]*//
40119         t ok
40120         d
40121         :ok
40122         s/[\\&,]/\\&/g
40123         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40124         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40125   ' >>conftest.defines
40126
40127 # Remove the space that was appended to ease matching.
40128 # Then replace #undef with comments.  This is necessary, for
40129 # example, in the case of _POSIX_SOURCE, which is predefined and required
40130 # on some systems where configure will not decide to define it.
40131 # (The regexp can be short, since the line contains either #define or #undef.)
40132 echo 's/ $//
40133 s,^[     #]*u.*,/* & */,' >>conftest.defines
40134
40135 # Break up conftest.defines:
40136 ac_max_sed_lines=50
40137
40138 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40139 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40140 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40141 # et cetera.
40142 ac_in='$ac_file_inputs'
40143 ac_out='"$tmp/out1"'
40144 ac_nxt='"$tmp/out2"'
40145
40146 while :
40147 do
40148   # Write a here document:
40149     cat >>$CONFIG_STATUS <<_ACEOF
40150     # First, check the format of the line:
40151     cat >"\$tmp/defines.sed" <<\\CEOF
40152 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40153 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40154 b
40155 :def
40156 _ACEOF
40157   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40158   echo 'CEOF
40159     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40160   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40161   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40162   grep . conftest.tail >/dev/null || break
40163   rm -f conftest.defines
40164   mv conftest.tail conftest.defines
40165 done
40166 rm -f conftest.defines conftest.tail
40167
40168 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40169 cat >>$CONFIG_STATUS <<\_ACEOF
40170   if test x"$ac_file" != x-; then
40171     echo "/* $configure_input  */" >"$tmp/config.h"
40172     cat "$ac_result" >>"$tmp/config.h"
40173     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40174       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40175 echo "$as_me: $ac_file is unchanged" >&6;}
40176     else
40177       rm -f $ac_file
40178       mv "$tmp/config.h" $ac_file
40179     fi
40180   else
40181     echo "/* $configure_input  */"
40182     cat "$ac_result"
40183   fi
40184   rm -f "$tmp/out12"
40185 # Compute $ac_file's index in $config_headers.
40186 _am_stamp_count=1
40187 for _am_header in $config_headers :; do
40188   case $_am_header in
40189     $ac_file | $ac_file:* )
40190       break ;;
40191     * )
40192       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40193   esac
40194 done
40195 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40196 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40197          X$ac_file : 'X\(//\)[^/]' \| \
40198          X$ac_file : 'X\(//\)$' \| \
40199          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40200 echo X$ac_file |
40201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40202             s//\1/
40203             q
40204           }
40205           /^X\(\/\/\)[^/].*/{
40206             s//\1/
40207             q
40208           }
40209           /^X\(\/\/\)$/{
40210             s//\1/
40211             q
40212           }
40213           /^X\(\/\).*/{
40214             s//\1/
40215             q
40216           }
40217           s/.*/./; q'`/stamp-h$_am_stamp_count
40218  ;;
40219
40220   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40221 echo "$as_me: executing $ac_file commands" >&6;}
40222  ;;
40223   esac
40224
40225
40226   case $ac_file$ac_mode in
40227     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40228   # Strip MF so we end up with the name of the file.
40229   mf=`echo "$mf" | sed -e 's/:.*$//'`
40230   # Check whether this is an Automake generated Makefile or not.
40231   # We used to match only the files named `Makefile.in', but
40232   # some people rename them; so instead we look at the file content.
40233   # Grep'ing the first line is not enough: some people post-process
40234   # each Makefile.in and add a new line on top of each file to say so.
40235   # So let's grep whole file.
40236   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40237     dirpart=`$as_dirname -- "$mf" ||
40238 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40239          X"$mf" : 'X\(//\)[^/]' \| \
40240          X"$mf" : 'X\(//\)$' \| \
40241          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40242 echo X"$mf" |
40243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40244             s//\1/
40245             q
40246           }
40247           /^X\(\/\/\)[^/].*/{
40248             s//\1/
40249             q
40250           }
40251           /^X\(\/\/\)$/{
40252             s//\1/
40253             q
40254           }
40255           /^X\(\/\).*/{
40256             s//\1/
40257             q
40258           }
40259           s/.*/./; q'`
40260   else
40261     continue
40262   fi
40263   # Extract the definition of DEPDIR, am__include, and am__quote
40264   # from the Makefile without running `make'.
40265   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40266   test -z "$DEPDIR" && continue
40267   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40268   test -z "am__include" && continue
40269   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40270   # When using ansi2knr, U may be empty or an underscore; expand it
40271   U=`sed -n 's/^U = //p' < "$mf"`
40272   # Find all dependency output files, they are included files with
40273   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40274   # simplest approach to changing $(DEPDIR) to its actual value in the
40275   # expansion.
40276   for file in `sed -n "
40277     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40278        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40279     # Make sure the directory exists.
40280     test -f "$dirpart/$file" && continue
40281     fdir=`$as_dirname -- "$file" ||
40282 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40283          X"$file" : 'X\(//\)[^/]' \| \
40284          X"$file" : 'X\(//\)$' \| \
40285          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40286 echo X"$file" |
40287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40288             s//\1/
40289             q
40290           }
40291           /^X\(\/\/\)[^/].*/{
40292             s//\1/
40293             q
40294           }
40295           /^X\(\/\/\)$/{
40296             s//\1/
40297             q
40298           }
40299           /^X\(\/\).*/{
40300             s//\1/
40301             q
40302           }
40303           s/.*/./; q'`
40304     { as_dir=$dirpart/$fdir
40305   case $as_dir in #(
40306   -*) as_dir=./$as_dir;;
40307   esac
40308   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40309     as_dirs=
40310     while :; do
40311       case $as_dir in #(
40312       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40313       *) as_qdir=$as_dir;;
40314       esac
40315       as_dirs="'$as_qdir' $as_dirs"
40316       as_dir=`$as_dirname -- "$as_dir" ||
40317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40318          X"$as_dir" : 'X\(//\)[^/]' \| \
40319          X"$as_dir" : 'X\(//\)$' \| \
40320          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40321 echo X"$as_dir" |
40322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40323             s//\1/
40324             q
40325           }
40326           /^X\(\/\/\)[^/].*/{
40327             s//\1/
40328             q
40329           }
40330           /^X\(\/\/\)$/{
40331             s//\1/
40332             q
40333           }
40334           /^X\(\/\).*/{
40335             s//\1/
40336             q
40337           }
40338           s/.*/./; q'`
40339       test -d "$as_dir" && break
40340     done
40341     test -z "$as_dirs" || eval "mkdir $as_dirs"
40342   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40343 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40344    { (exit 1); exit 1; }; }; }
40345     # echo "creating $dirpart/$file"
40346     echo '# dummy' > "$dirpart/$file"
40347   done
40348 done
40349  ;;
40350     "default":C)
40351 chmod +x tests/run
40352 date > stamp-h
40353 BACKENDSC="servers/slapd/backends.c"
40354 echo "Making $BACKENDSC"
40355 rm -f $BACKENDSC
40356 cat > $BACKENDSC << ENDX
40357 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40358  *
40359  * Copyright 1998-2009 The OpenLDAP Foundation.
40360  * All rights reserved.
40361  *
40362  * Redistribution and use in source and binary forms, with or without
40363  * modification, are permitted only as authorized by the OpenLDAP
40364  * Public License.
40365  *
40366  * A copy of this license is available in the file LICENSE in the
40367  * top-level directory of the distribution or, alternatively, at
40368  * <http://www.OpenLDAP.org/license.html>.
40369  */
40370 /* This file is automatically generated by configure; please do not edit. */
40371
40372 #include "portable.h"
40373 #include "slap.h"
40374
40375 ENDX
40376 if test "${STATIC_BACKENDS}"; then
40377         for b in config ${STATIC_BACKENDS}; do
40378                 bb=`echo "${b}" | sed -e 's/back-//'`
40379                 cat >> $BACKENDSC << ENDX
40380 extern BI_init ${bb}_back_initialize;
40381 ENDX
40382         done
40383
40384         cat >> $BACKENDSC << ENDX
40385
40386 BackendInfo slap_binfo[] = {
40387 ENDX
40388
40389         for b in config ${STATIC_BACKENDS}; do
40390                 bb=`echo "${b}" | sed -e 's/back-//'`
40391                 echo "    Add ${bb} ..."
40392                 cat >> $BACKENDSC << ENDX
40393         { "${bb}", ${bb}_back_initialize },
40394 ENDX
40395         done
40396
40397         cat >> $BACKENDSC << ENDX
40398         { NULL, NULL },
40399 };
40400
40401 /* end of generated file */
40402 ENDX
40403 fi
40404 OVERLAYSC="servers/slapd/overlays/statover.c"
40405 echo "Making $OVERLAYSC"
40406 rm -f $OVERLAYSC
40407 cat > $OVERLAYSC << ENDX
40408 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40409  *
40410  * Copyright 1998-2009 The OpenLDAP Foundation.
40411  * All rights reserved.
40412  *
40413  * Redistribution and use in source and binary forms, with or without
40414  * modification, are permitted only as authorized by the OpenLDAP
40415  * Public License.
40416  *
40417  * A copy of this license is available in the file LICENSE in the
40418  * top-level directory of the distribution or, alternatively, at
40419  * <http://www.OpenLDAP.org/license.html>.
40420  */
40421 /* This file is automatically generated by configure; please do not edit. */
40422
40423 #include "portable.h"
40424 #include "slap.h"
40425
40426 ENDX
40427 if test "${STATIC_OVERLAYS}"; then
40428         for o in ${STATIC_OVERLAYS}; do
40429                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40430                 cat >> $OVERLAYSC << ENDX
40431 extern OV_init ${oo}_initialize;
40432 ENDX
40433         done
40434 fi
40435
40436 cat >> $OVERLAYSC << ENDX
40437
40438 OverlayInit slap_oinfo[] = {
40439 ENDX
40440
40441 if test "${STATIC_OVERLAYS}"; then
40442         for o in ${STATIC_OVERLAYS}; do
40443                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40444                 echo "    Add ${oo} ..."
40445                 cat >> $OVERLAYSC << ENDX
40446         { "${oo}", ${oo}_initialize },
40447 ENDX
40448         done
40449 fi
40450
40451         cat >> $OVERLAYSC << ENDX
40452         { NULL, NULL },
40453 };
40454
40455 /* end of generated file */
40456 ENDX
40457
40458 if test "${ol_cv_mkdep}" = no; then
40459         echo '(Do not "make depend"; we do not know how to build dependencies)'
40460 else
40461         echo 'Please run "make depend" to build dependencies'
40462 fi
40463  ;;
40464
40465   esac
40466 done # for ac_tag
40467
40468
40469 { (exit 0); exit 0; }
40470 _ACEOF
40471 chmod +x $CONFIG_STATUS
40472 ac_clean_files=$ac_clean_files_save
40473
40474
40475 # configure is writing to config.log, and then calls config.status.
40476 # config.status does its own redirection, appending to config.log.
40477 # Unfortunately, on DOS this fails, as config.log is still kept open
40478 # by configure, so config.status won't be able to write to it; its
40479 # output is simply discarded.  So we exec the FD to /dev/null,
40480 # effectively closing config.log, so it can be properly (re)opened and
40481 # appended to by config.status.  When coming back to configure, we
40482 # need to make the FD available again.
40483 if test "$no_create" != yes; then
40484   ac_cs_success=:
40485   ac_config_status_args=
40486   test "$silent" = yes &&
40487     ac_config_status_args="$ac_config_status_args --quiet"
40488   exec 5>/dev/null
40489   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40490   exec 5>>config.log
40491   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40492   # would make configure fail if this is the last instruction.
40493   $ac_cs_success || { (exit 1); exit 1; }
40494 fi
40495