]> git.sur5r.net Git - openldap/blob - configure
Regenerate with GNUtls additions
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.653 2007/05/09 16:17:10 hallvard Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
5 #
6 # Copyright 1998-2007 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 Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="OpenLDAP"
719 ac_unique_file="build/version.sh"
720 ac_default_prefix=/usr/local
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #if HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #if HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #if STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # if HAVE_STDLIB_H
735 #  include <stdlib.h>
736 # endif
737 #endif
738 #if HAVE_STRING_H
739 # if !STDC_HEADERS && HAVE_MEMORY_H
740 #  include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #if HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #if HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #if HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #if HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
756
757 ac_subst_vars='SHELL
758 PATH_SEPARATOR
759 PACKAGE_NAME
760 PACKAGE_TARNAME
761 PACKAGE_VERSION
762 PACKAGE_STRING
763 PACKAGE_BUGREPORT
764 exec_prefix
765 prefix
766 program_transform_name
767 bindir
768 sbindir
769 libexecdir
770 datarootdir
771 datadir
772 sysconfdir
773 sharedstatedir
774 localstatedir
775 includedir
776 oldincludedir
777 docdir
778 infodir
779 htmldir
780 dvidir
781 pdfdir
782 psdir
783 libdir
784 localedir
785 mandir
786 DEFS
787 ECHO_C
788 ECHO_N
789 ECHO_T
790 LIBS
791 build_alias
792 host_alias
793 target_alias
794 build
795 build_cpu
796 build_vendor
797 build_os
798 host
799 host_cpu
800 host_vendor
801 host_os
802 target
803 target_cpu
804 target_vendor
805 target_os
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 install_sh
818 STRIP
819 INSTALL_STRIP_PROGRAM
820 mkdir_p
821 AWK
822 SET_MAKE
823 am__leading_dot
824 AMTAR
825 am__tar
826 am__untar
827 OPENLDAP_LIBRELEASE
828 OPENLDAP_LIBVERSION
829 OPENLDAP_RELEASE_DATE
830 top_builddir
831 ldap_subdir
832 CC
833 AR
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
849 GREP
850 EGREP
851 LN_S
852 ECHO
853 RANLIB
854 DLLTOOL
855 AS
856 OBJDUMP
857 CPP
858 LIBTOOL
859 PERLBIN
860 OL_MKDEP
861 OL_MKDEP_FLAGS
862 LTSTATIC
863 LIBOBJS
864 LIBSRCS
865 PLAT
866 WITH_SASL
867 WITH_TLS
868 WITH_MODULES_ENABLED
869 WITH_ACI_ENABLED
870 BUILD_THREAD
871 BUILD_LIBS_DYNAMIC
872 BUILD_SLAPD
873 BUILD_SLAPI
874 SLAPD_SLAPI_DEPEND
875 BUILD_BDB
876 BUILD_DNSSRV
877 BUILD_HDB
878 BUILD_LDAP
879 BUILD_META
880 BUILD_MONITOR
881 BUILD_NULL
882 BUILD_PASSWD
883 BUILD_RELAY
884 BUILD_PERL
885 BUILD_SHELL
886 BUILD_SQL
887 BUILD_ACCESSLOG
888 BUILD_AUDITLOG
889 BUILD_CONSTRAINT
890 BUILD_DDS
891 BUILD_DENYOP
892 BUILD_DYNGROUP
893 BUILD_DYNLIST
894 BUILD_LASTMOD
895 BUILD_PPOLICY
896 BUILD_PROXYCACHE
897 BUILD_REFINT
898 BUILD_RETCODE
899 BUILD_RWM
900 BUILD_SEQMOD
901 BUILD_SYNCPROV
902 BUILD_TRANSLUCENT
903 BUILD_UNIQUE
904 BUILD_VALSORT
905 LDAP_LIBS
906 SLAPD_LIBS
907 BDB_LIBS
908 LTHREAD_LIBS
909 LUTIL_LIBS
910 WRAP_LIBS
911 SLAPD_MODULES_CPPFLAGS
912 SLAPD_MODULES_LDFLAGS
913 SLAPD_NO_STATIC
914 SLAPD_STATIC_BACKENDS
915 SLAPD_DYNAMIC_BACKENDS
916 SLAPD_STATIC_OVERLAYS
917 SLAPD_DYNAMIC_OVERLAYS
918 PERL_CPPFLAGS
919 SLAPD_PERL_LDFLAGS
920 MOD_PERL_LDFLAGS
921 KRB4_LIBS
922 KRB5_LIBS
923 SASL_LIBS
924 TLS_LIBS
925 MODULES_LIBS
926 SLAPI_LIBS
927 LIBSLAPI
928 LIBSLAPITOOLS
929 AUTH_LIBS
930 ICU_LIBS
931 SLAPD_SLP_LIBS
932 SLAPD_GMP_LIBS
933 SLAPD_SQL_LDFLAGS
934 SLAPD_SQL_LIBS
935 SLAPD_SQL_INCLUDES
936 LTLIBOBJS'
937 ac_subst_files=''
938       ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 CPPFLAGS
945 CPP'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998   # If the previous option needs an argument, assign it.
999   if test -n "$ac_prev"; then
1000     eval $ac_prev=\$ac_option
1001     ac_prev=
1002     continue
1003   fi
1004
1005   case $ac_option in
1006   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053    { (exit 1); exit 1; }; }
1054     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055     eval enable_$ac_feature=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074     eval enable_$ac_feature=\$ac_optarg ;;
1075
1076   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078   | --exec | --exe | --ex)
1079     ac_prev=exec_prefix ;;
1080   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082   | --exec=* | --exe=* | --ex=*)
1083     exec_prefix=$ac_optarg ;;
1084
1085   -gas | --gas | --ga | --g)
1086     # Obsolete; use --with-gas.
1087     with_gas=yes ;;
1088
1089   -help | --help | --hel | --he | -h)
1090     ac_init_help=long ;;
1091   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092     ac_init_help=recursive ;;
1093   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094     ac_init_help=short ;;
1095
1096   -host | --host | --hos | --ho)
1097     ac_prev=host_alias ;;
1098   -host=* | --host=* | --hos=* | --ho=*)
1099     host_alias=$ac_optarg ;;
1100
1101   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102     ac_prev=htmldir ;;
1103   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104   | --ht=*)
1105     htmldir=$ac_optarg ;;
1106
1107   -includedir | --includedir | --includedi | --included | --include \
1108   | --includ | --inclu | --incl | --inc)
1109     ac_prev=includedir ;;
1110   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111   | --includ=* | --inclu=* | --incl=* | --inc=*)
1112     includedir=$ac_optarg ;;
1113
1114   -infodir | --infodir | --infodi | --infod | --info | --inf)
1115     ac_prev=infodir ;;
1116   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117     infodir=$ac_optarg ;;
1118
1119   -libdir | --libdir | --libdi | --libd)
1120     ac_prev=libdir ;;
1121   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122     libdir=$ac_optarg ;;
1123
1124   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125   | --libexe | --libex | --libe)
1126     ac_prev=libexecdir ;;
1127   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128   | --libexe=* | --libex=* | --libe=*)
1129     libexecdir=$ac_optarg ;;
1130
1131   -localedir | --localedir | --localedi | --localed | --locale)
1132     ac_prev=localedir ;;
1133   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134     localedir=$ac_optarg ;;
1135
1136   -localstatedir | --localstatedir | --localstatedi | --localstated \
1137   | --localstate | --localstat | --localsta | --localst | --locals)
1138     ac_prev=localstatedir ;;
1139   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141     localstatedir=$ac_optarg ;;
1142
1143   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144     ac_prev=mandir ;;
1145   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146     mandir=$ac_optarg ;;
1147
1148   -nfp | --nfp | --nf)
1149     # Obsolete; use --without-fp.
1150     with_fp=no ;;
1151
1152   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153   | --no-cr | --no-c | -n)
1154     no_create=yes ;;
1155
1156   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158     no_recursion=yes ;;
1159
1160   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162   | --oldin | --oldi | --old | --ol | --o)
1163     ac_prev=oldincludedir ;;
1164   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167     oldincludedir=$ac_optarg ;;
1168
1169   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170     ac_prev=prefix ;;
1171   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172     prefix=$ac_optarg ;;
1173
1174   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175   | --program-pre | --program-pr | --program-p)
1176     ac_prev=program_prefix ;;
1177   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179     program_prefix=$ac_optarg ;;
1180
1181   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182   | --program-suf | --program-su | --program-s)
1183     ac_prev=program_suffix ;;
1184   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186     program_suffix=$ac_optarg ;;
1187
1188   -program-transform-name | --program-transform-name \
1189   | --program-transform-nam | --program-transform-na \
1190   | --program-transform-n | --program-transform- \
1191   | --program-transform | --program-transfor \
1192   | --program-transfo | --program-transf \
1193   | --program-trans | --program-tran \
1194   | --progr-tra | --program-tr | --program-t)
1195     ac_prev=program_transform_name ;;
1196   -program-transform-name=* | --program-transform-name=* \
1197   | --program-transform-nam=* | --program-transform-na=* \
1198   | --program-transform-n=* | --program-transform-=* \
1199   | --program-transform=* | --program-transfor=* \
1200   | --program-transfo=* | --program-transf=* \
1201   | --program-trans=* | --program-tran=* \
1202   | --progr-tra=* | --program-tr=* | --program-t=*)
1203     program_transform_name=$ac_optarg ;;
1204
1205   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206     ac_prev=pdfdir ;;
1207   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208     pdfdir=$ac_optarg ;;
1209
1210   -psdir | --psdir | --psdi | --psd | --ps)
1211     ac_prev=psdir ;;
1212   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213     psdir=$ac_optarg ;;
1214
1215   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216   | -silent | --silent | --silen | --sile | --sil)
1217     silent=yes ;;
1218
1219   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220     ac_prev=sbindir ;;
1221   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222   | --sbi=* | --sb=*)
1223     sbindir=$ac_optarg ;;
1224
1225   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227   | --sharedst | --shareds | --shared | --share | --shar \
1228   | --sha | --sh)
1229     ac_prev=sharedstatedir ;;
1230   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233   | --sha=* | --sh=*)
1234     sharedstatedir=$ac_optarg ;;
1235
1236   -site | --site | --sit)
1237     ac_prev=site ;;
1238   -site=* | --site=* | --sit=*)
1239     site=$ac_optarg ;;
1240
1241   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242     ac_prev=srcdir ;;
1243   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244     srcdir=$ac_optarg ;;
1245
1246   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247   | --syscon | --sysco | --sysc | --sys | --sy)
1248     ac_prev=sysconfdir ;;
1249   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251     sysconfdir=$ac_optarg ;;
1252
1253   -target | --target | --targe | --targ | --tar | --ta | --t)
1254     ac_prev=target_alias ;;
1255   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256     target_alias=$ac_optarg ;;
1257
1258   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259     verbose=yes ;;
1260
1261   -version | --version | --versio | --versi | --vers | -V)
1262     ac_init_version=: ;;
1263
1264   -with-* | --with-*)
1265     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid package name: $ac_package" >&2
1269    { (exit 1); exit 1; }; }
1270     ac_package=`echo $ac_package| sed 's/-/_/g'`
1271     eval with_$ac_package=\$ac_optarg ;;
1272
1273   -without-* | --without-*)
1274     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277       { echo "$as_me: error: invalid package name: $ac_package" >&2
1278    { (exit 1); exit 1; }; }
1279     ac_package=`echo $ac_package | sed 's/-/_/g'`
1280     eval with_$ac_package=no ;;
1281
1282   --x)
1283     # Obsolete; use --with-x.
1284     with_x=yes ;;
1285
1286   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287   | --x-incl | --x-inc | --x-in | --x-i)
1288     ac_prev=x_includes ;;
1289   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291     x_includes=$ac_optarg ;;
1292
1293   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295     ac_prev=x_libraries ;;
1296   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298     x_libraries=$ac_optarg ;;
1299
1300   -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302    { (exit 1); exit 1; }; }
1303     ;;
1304
1305   *=*)
1306     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310    { (exit 1); exit 1; }; }
1311     eval $ac_envvar=\$ac_optarg
1312     export $ac_envvar ;;
1313
1314   *)
1315     # FIXME: should be removed in autoconf 3.0.
1316     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320     ;;
1321
1322   esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327   { echo "$as_me: error: missing argument to $ac_option" >&2
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 # Be sure to have absolute directory names.
1332 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333                 datadir sysconfdir sharedstatedir localstatedir includedir \
1334                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335                 libdir localedir mandir
1336 do
1337   eval ac_val=\$$ac_var
1338   case $ac_val in
1339     [\\/$]* | ?:[\\/]* )  continue;;
1340     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341   esac
1342   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343    { (exit 1); exit 1; }; }
1344 done
1345
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1352
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355   if test "x$build_alias" = x; then
1356     cross_compiling=maybe
1357     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358     If a cross compiler is detected then cross compile mode will be used." >&2
1359   elif test "x$build_alias" != "x$host_alias"; then
1360     cross_compiling=yes
1361   fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373   { echo "$as_me: error: Working directory cannot be determined" >&2
1374    { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376   { echo "$as_me: error: pwd does not report name of working directory" >&2
1377    { (exit 1); exit 1; }; }
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382   ac_srcdir_defaulted=yes
1383   # Try the directory containing this script, then the parent directory.
1384   ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386          X"$0" : 'X\(//\)[^/]' \| \
1387          X"$0" : 'X\(//\)$' \| \
1388          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 echo X"$0" |
1390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391             s//\1/
1392             q
1393           }
1394           /^X\(\/\/\)[^/].*/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)$/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\).*/{
1403             s//\1/
1404             q
1405           }
1406           s/.*/./; q'`
1407   srcdir=$ac_confdir
1408   if test ! -r "$srcdir/$ac_unique_file"; then
1409     srcdir=..
1410   fi
1411 else
1412   ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417    { (exit 1); exit 1; }; }
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422    { (exit 1); exit 1; }; }
1423         pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426   srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_env_${ac_var}_value=\$${ac_var}
1437   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445   # Omit some internal or obsolete options to make the list less imposing.
1446   # This message is too long to be a string in the A/UX 3.1 sh.
1447   cat <<_ACEOF
1448 \`configure' configures this package to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE.  See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458   -h, --help              display this help and exit
1459       --help=short        display options specific to this package
1460       --help=recursive    display the short help of all the included packages
1461   -V, --version           display version information and exit
1462   -q, --quiet, --silent   do not print \`checking...' messages
1463       --cache-file=FILE   cache test results in FILE [disabled]
1464   -C, --config-cache      alias for \`--cache-file=config.cache'
1465   -n, --no-create         do not create output files
1466       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469   --prefix=PREFIX         install architecture-independent files in PREFIX
1470                           [$ac_default_prefix]
1471   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1472                           [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482   --bindir=DIR           user executables [EPREFIX/bin]
1483   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1484   --libexecdir=DIR       program executables [EPREFIX/libexec]
1485   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1486   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1487   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1488   --libdir=DIR           object code libraries [EPREFIX/lib]
1489   --includedir=DIR       C header files [PREFIX/include]
1490   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1491   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1492   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1493   --infodir=DIR          info documentation [DATAROOTDIR/info]
1494   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1495   --mandir=DIR           man documentation [DATAROOTDIR/man]
1496   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1497   --htmldir=DIR          html documentation [DOCDIR]
1498   --dvidir=DIR           dvi documentation [DOCDIR]
1499   --pdfdir=DIR           pdf documentation [DOCDIR]
1500   --psdir=DIR            ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 Program names:
1506   --program-prefix=PREFIX            prepend PREFIX to installed program names
1507   --program-suffix=SUFFIX            append SUFFIX to installed program names
1508   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1509
1510 System types:
1511   --build=BUILD     configure for building on BUILD [guessed]
1512   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1513   --target=TARGET   configure for building compilers for TARGET [HOST]
1514 _ACEOF
1515 fi
1516
1517 if test -n "$ac_init_help"; then
1518
1519   cat <<\_ACEOF
1520
1521 Optional Features:
1522   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1523   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1524   --enable-debug          enable debugging no|yes|traditional [yes]
1525   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1526   --enable-syslog         enable syslog support [auto]
1527   --enable-proctitle      enable proctitle support [yes]
1528   --enable-ipv6           enable IPv6 support [auto]
1529   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1530
1531 SLAPD (Standalone LDAP Daemon) Options:
1532   --enable-slapd          enable building slapd [yes]
1533     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1534     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1535     --enable-cleartext    enable cleartext passwords [yes]
1536     --enable-crypt        enable crypt(3) passwords [no]
1537     --enable-lmpasswd     enable LAN Manager passwords [no]
1538     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1539     --enable-modules      enable dynamic module support [no]
1540     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1541     --enable-rlookups     enable reverse lookups of client hostnames [no]
1542     --enable-slapi        enable SLAPI support (experimental) [no]
1543     --enable-slp          enable SLPv2 support [no]
1544     --enable-wrappers     enable tcp wrapper support [no]
1545
1546 SLAPD Backend Options:
1547     --enable-backends     enable all available backends no|yes|mod
1548     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1549     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1550     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1551     --enable-ldap         enable ldap backend no|yes|mod [no]
1552     --enable-meta         enable metadirectory backend no|yes|mod [no]
1553     --enable-monitor      enable monitor backend no|yes|mod [yes]
1554     --enable-null         enable null backend no|yes|mod [no]
1555     --enable-passwd       enable passwd backend no|yes|mod [no]
1556     --enable-perl         enable perl backend no|yes|mod [no]
1557     --enable-relay        enable relay backend no|yes|mod [yes]
1558     --enable-shell        enable shell backend no|yes|mod [no]
1559     --enable-sql          enable sql backend no|yes|mod [no]
1560
1561 SLAPD Overlay Options:
1562     --enable-overlays     enable all available overlays no|yes|mod
1563     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1564     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1565     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1566     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1567     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1568     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1569     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1570     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1571     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1572     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1573     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1574     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1575     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1576     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1577     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1578     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1579
1580 Library Generation & Linking Options
1581   --enable-static[=PKGS]  build static libraries [default=yes]
1582   --enable-shared[=PKGS]  build shared libraries [default=yes]
1583   --enable-fast-install[=PKGS]
1584                           optimize for fast installation [default=yes]
1585   --disable-dependency-tracking  speeds up one-time build
1586   --enable-dependency-tracking   do not reject slow dependency extractors
1587   --disable-libtool-lock  avoid locking (might break parallel builds)
1588
1589 Optional Packages:
1590   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1591   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1592   --with-subdir=DIR       change default subdirectory used for installs
1593   --with-cyrus-sasl       with Cyrus SASL support [auto]
1594   --with-fetch            with fetch(3) URL support [auto]
1595   --with-threads          with threads [auto]
1596   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1597   --with-yielding-select  with implicitly yielding select [auto]
1598   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1599   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1600   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1601   --with-pic              try to use only PIC/non-PIC objects [default=use
1602                           both]
1603   --with-tags[=TAGS]      include additional configurations [automatic]
1604
1605 See INSTALL file for further details.
1606
1607 Some influential environment variables:
1608   CC          C compiler command
1609   CFLAGS      C compiler flags
1610   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1611               nonstandard directory <lib dir>
1612   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613               you have headers in a nonstandard directory <include dir>
1614   CPP         C preprocessor
1615
1616 Use these variables to override the choices made by `configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1618
1619 _ACEOF
1620 ac_status=$?
1621 fi
1622
1623 if test "$ac_init_help" = "recursive"; then
1624   # If there are subdirs, report their specific --help.
1625   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626     test -d "$ac_dir" || continue
1627     ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1633   # A ".." for each directory in $ac_dir_suffix.
1634   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635   case $ac_top_builddir_sub in
1636   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638   esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646   .)  # We are building in place.
1647     ac_srcdir=.
1648     ac_top_srcdir=$ac_top_builddir_sub
1649     ac_abs_top_srcdir=$ac_pwd ;;
1650   [\\/]* | ?:[\\/]* )  # Absolute name.
1651     ac_srcdir=$srcdir$ac_dir_suffix;
1652     ac_top_srcdir=$srcdir
1653     ac_abs_top_srcdir=$srcdir ;;
1654   *) # Relative name.
1655     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656     ac_top_srcdir=$ac_top_build_prefix$srcdir
1657     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661     cd "$ac_dir" || { ac_status=$?; continue; }
1662     # Check for guested configure.
1663     if test -f "$ac_srcdir/configure.gnu"; then
1664       echo &&
1665       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666     elif test -f "$ac_srcdir/configure"; then
1667       echo &&
1668       $SHELL "$ac_srcdir/configure" --help=recursive
1669     else
1670       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671     fi || ac_status=$?
1672     cd "$ac_pwd" || { ac_status=$?; break; }
1673   done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678   cat <<\_ACEOF
1679 configure
1680 generated by GNU Autoconf 2.60
1681
1682 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1683 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1686
1687 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1688 Restrictions apply, see COPYRIGHT and LICENSE files.
1689 _ACEOF
1690   exit
1691 fi
1692 cat >config.log <<_ACEOF
1693 This file contains any messages produced by compilers while
1694 running configure, to aid debugging if configure makes a mistake.
1695
1696 It was created by $as_me, which was
1697 generated by GNU Autoconf 2.60.  Invocation command line was
1698
1699   $ $0 $@
1700
1701 _ACEOF
1702 exec 5>>config.log
1703 {
1704 cat <<_ASUNAME
1705 ## --------- ##
1706 ## Platform. ##
1707 ## --------- ##
1708
1709 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1710 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1711 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1712 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1713 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1714
1715 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1716 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1717
1718 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1719 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1720 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1721 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1722 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1723 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1724 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1725
1726 _ASUNAME
1727
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
1731   IFS=$as_save_IFS
1732   test -z "$as_dir" && as_dir=.
1733   echo "PATH: $as_dir"
1734 done
1735 IFS=$as_save_IFS
1736
1737 } >&5
1738
1739 cat >&5 <<_ACEOF
1740
1741
1742 ## ----------- ##
1743 ## Core tests. ##
1744 ## ----------- ##
1745
1746 _ACEOF
1747
1748
1749 # Keep a trace of the command line.
1750 # Strip out --no-create and --no-recursion so they do not pile up.
1751 # Strip out --silent because we don't want to record it for future runs.
1752 # Also quote any args containing shell meta-characters.
1753 # Make two passes to allow for proper duplicate-argument suppression.
1754 ac_configure_args=
1755 ac_configure_args0=
1756 ac_configure_args1=
1757 ac_must_keep_next=false
1758 for ac_pass in 1 2
1759 do
1760   for ac_arg
1761   do
1762     case $ac_arg in
1763     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1764     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1765     | -silent | --silent | --silen | --sile | --sil)
1766       continue ;;
1767     *\'*)
1768       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1769     esac
1770     case $ac_pass in
1771     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1772     2)
1773       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1774       if test $ac_must_keep_next = true; then
1775         ac_must_keep_next=false # Got value, back to normal.
1776       else
1777         case $ac_arg in
1778           *=* | --config-cache | -C | -disable-* | --disable-* \
1779           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1780           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1781           | -with-* | --with-* | -without-* | --without-* | --x)
1782             case "$ac_configure_args0 " in
1783               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1784             esac
1785             ;;
1786           -* ) ac_must_keep_next=true ;;
1787         esac
1788       fi
1789       ac_configure_args="$ac_configure_args '$ac_arg'"
1790       ;;
1791     esac
1792   done
1793 done
1794 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1795 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1796
1797 # When interrupted or exit'd, cleanup temporary files, and complete
1798 # config.log.  We remove comments because anyway the quotes in there
1799 # would cause problems or look ugly.
1800 # WARNING: Use '\'' to represent an apostrophe within the trap.
1801 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1802 trap 'exit_status=$?
1803   # Save into config.log some information that might help in debugging.
1804   {
1805     echo
1806
1807     cat <<\_ASBOX
1808 ## ---------------- ##
1809 ## Cache variables. ##
1810 ## ---------------- ##
1811 _ASBOX
1812     echo
1813     # The following way of writing the cache mishandles newlines in values,
1814 (
1815   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1816     eval ac_val=\$$ac_var
1817     case $ac_val in #(
1818     *${as_nl}*)
1819       case $ac_var in #(
1820       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1821 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1822       esac
1823       case $ac_var in #(
1824       _ | IFS | as_nl) ;; #(
1825       *) $as_unset $ac_var ;;
1826       esac ;;
1827     esac
1828   done
1829   (set) 2>&1 |
1830     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1831     *${as_nl}ac_space=\ *)
1832       sed -n \
1833         "s/'\''/'\''\\\\'\'''\''/g;
1834           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1835       ;; #(
1836     *)
1837       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1838       ;;
1839     esac |
1840     sort
1841 )
1842     echo
1843
1844     cat <<\_ASBOX
1845 ## ----------------- ##
1846 ## Output variables. ##
1847 ## ----------------- ##
1848 _ASBOX
1849     echo
1850     for ac_var in $ac_subst_vars
1851     do
1852       eval ac_val=\$$ac_var
1853       case $ac_val in
1854       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855       esac
1856       echo "$ac_var='\''$ac_val'\''"
1857     done | sort
1858     echo
1859
1860     if test -n "$ac_subst_files"; then
1861       cat <<\_ASBOX
1862 ## ------------------- ##
1863 ## File substitutions. ##
1864 ## ------------------- ##
1865 _ASBOX
1866       echo
1867       for ac_var in $ac_subst_files
1868       do
1869         eval ac_val=\$$ac_var
1870         case $ac_val in
1871         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872         esac
1873         echo "$ac_var='\''$ac_val'\''"
1874       done | sort
1875       echo
1876     fi
1877
1878     if test -s confdefs.h; then
1879       cat <<\_ASBOX
1880 ## ----------- ##
1881 ## confdefs.h. ##
1882 ## ----------- ##
1883 _ASBOX
1884       echo
1885       cat confdefs.h
1886       echo
1887     fi
1888     test "$ac_signal" != 0 &&
1889       echo "$as_me: caught signal $ac_signal"
1890     echo "$as_me: exit $exit_status"
1891   } >&5
1892   rm -f core *.core core.conftest.* &&
1893     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1894     exit $exit_status
1895 ' 0
1896 for ac_signal in 1 2 13 15; do
1897   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1898 done
1899 ac_signal=0
1900
1901 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1902 rm -f -r conftest* confdefs.h
1903
1904 # Predefined preprocessor variables.
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_NAME "$PACKAGE_NAME"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_STRING "$PACKAGE_STRING"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1928 _ACEOF
1929
1930
1931 # Let the site file select an alternate cache file if it wants to.
1932 # Prefer explicitly selected file to automatically selected ones.
1933 if test -n "$CONFIG_SITE"; then
1934   set x "$CONFIG_SITE"
1935 elif test "x$prefix" != xNONE; then
1936   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1937 else
1938   set x "$ac_default_prefix/share/config.site" \
1939         "$ac_default_prefix/etc/config.site"
1940 fi
1941 shift
1942 for ac_site_file
1943 do
1944   if test -r "$ac_site_file"; then
1945     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1946 echo "$as_me: loading site script $ac_site_file" >&6;}
1947     sed 's/^/| /' "$ac_site_file" >&5
1948     . "$ac_site_file"
1949   fi
1950 done
1951
1952
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958   eval ac_new_set=\$ac_env_${ac_var}_set
1959   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960   eval ac_new_val=\$ac_env_${ac_var}_value
1961   case $ac_old_set,$ac_new_set in
1962     set,)
1963       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965       ac_cache_corrupted=: ;;
1966     ,set)
1967       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969       ac_cache_corrupted=: ;;
1970     ,);;
1971     *)
1972       if test "x$ac_old_val" != "x$ac_new_val"; then
1973         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1976 echo "$as_me:   former value:  $ac_old_val" >&2;}
1977         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1978 echo "$as_me:   current value: $ac_new_val" >&2;}
1979         ac_cache_corrupted=:
1980       fi;;
1981   esac
1982   # Pass precious variables to config.status.
1983   if test "$ac_new_set" = set; then
1984     case $ac_new_val in
1985     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986     *) ac_arg=$ac_var=$ac_new_val ;;
1987     esac
1988     case " $ac_configure_args " in
1989       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1990       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991     esac
1992   fi
1993 done
1994 if $ac_cache_corrupted; then
1995   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018 ac_ext=c
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049 ac_aux_dir=
2050 for ac_dir in build "$srcdir"/build; do
2051   if test -f "$ac_dir/install-sh"; then
2052     ac_aux_dir=$ac_dir
2053     ac_install_sh="$ac_aux_dir/install-sh -c"
2054     break
2055   elif test -f "$ac_dir/install.sh"; then
2056     ac_aux_dir=$ac_dir
2057     ac_install_sh="$ac_aux_dir/install.sh -c"
2058     break
2059   elif test -f "$ac_dir/shtool"; then
2060     ac_aux_dir=$ac_dir
2061     ac_install_sh="$ac_aux_dir/shtool install -c"
2062     break
2063   fi
2064 done
2065 if test -z "$ac_aux_dir"; then
2066   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2067 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 # These three variables are undocumented and unsupported,
2072 # and are intended to be withdrawn in a future Autoconf release.
2073 # They can cause serious problems if a builder's source tree is in a directory
2074 # whose full name contains unusual characters.
2075 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2076 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2077 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2078
2079
2080 eval `$ac_aux_dir/version.sh`
2081 if test -z "$OL_STRING"; then
2082         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2083 echo "$as_me: error: could not determine version" >&2;}
2084    { (exit 1); exit 1; }; }
2085 fi
2086
2087 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2088         ac_cv_shtool="$ac_aux_dir/shtool"
2089 else
2090         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2091 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2092    { (exit 1); exit 1; }; }
2093 fi
2094
2095 SHTOOL="$ac_cv_shtool"
2096
2097 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2098 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2099
2100 OPENLDAP_CVS=""
2101 if test -d $ac_aux_dir/CVS; then
2102         OPENLDAP_CVS="(from CVS sources) "
2103 fi
2104
2105 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2106
2107 # Make sure we can run config.sub.
2108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2109   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2110 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2111    { (exit 1); exit 1; }; }
2112
2113 { echo "$as_me:$LINENO: checking build system type" >&5
2114 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_build+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   ac_build_alias=$build_alias
2119 test "x$ac_build_alias" = x &&
2120   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2121 test "x$ac_build_alias" = x &&
2122   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2123 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2124    { (exit 1); exit 1; }; }
2125 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2126   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2128    { (exit 1); exit 1; }; }
2129
2130 fi
2131 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2132 echo "${ECHO_T}$ac_cv_build" >&6; }
2133 case $ac_cv_build in
2134 *-*-*) ;;
2135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2136 echo "$as_me: error: invalid value of canonical build" >&2;}
2137    { (exit 1); exit 1; }; };;
2138 esac
2139 build=$ac_cv_build
2140 ac_save_IFS=$IFS; IFS='-'
2141 set x $ac_cv_build
2142 shift
2143 build_cpu=$1
2144 build_vendor=$2
2145 shift; shift
2146 # Remember, the first character of IFS is used to create $*,
2147 # except with old shells:
2148 build_os=$*
2149 IFS=$ac_save_IFS
2150 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2151
2152
2153 { echo "$as_me:$LINENO: checking host system type" >&5
2154 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2155 if test "${ac_cv_host+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test "x$host_alias" = x; then
2159   ac_cv_host=$ac_cv_build
2160 else
2161   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2162     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165 fi
2166
2167 fi
2168 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169 echo "${ECHO_T}$ac_cv_host" >&6; }
2170 case $ac_cv_host in
2171 *-*-*) ;;
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2173 echo "$as_me: error: invalid value of canonical host" >&2;}
2174    { (exit 1); exit 1; }; };;
2175 esac
2176 host=$ac_cv_host
2177 ac_save_IFS=$IFS; IFS='-'
2178 set x $ac_cv_host
2179 shift
2180 host_cpu=$1
2181 host_vendor=$2
2182 shift; shift
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2185 host_os=$*
2186 IFS=$ac_save_IFS
2187 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2188
2189
2190 { echo "$as_me:$LINENO: checking target system type" >&5
2191 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_target+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test "x$target_alias" = x; then
2196   ac_cv_target=$ac_cv_host
2197 else
2198   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2199     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2201    { (exit 1); exit 1; }; }
2202 fi
2203
2204 fi
2205 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2206 echo "${ECHO_T}$ac_cv_target" >&6; }
2207 case $ac_cv_target in
2208 *-*-*) ;;
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2210 echo "$as_me: error: invalid value of canonical target" >&2;}
2211    { (exit 1); exit 1; }; };;
2212 esac
2213 target=$ac_cv_target
2214 ac_save_IFS=$IFS; IFS='-'
2215 set x $ac_cv_target
2216 shift
2217 target_cpu=$1
2218 target_vendor=$2
2219 shift; shift
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2222 target_os=$*
2223 IFS=$ac_save_IFS
2224 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2225
2226
2227 # The aliases save the names the user supplied, while $host etc.
2228 # will get canonicalized.
2229 test -n "$target_alias" &&
2230   test "$program_prefix$program_suffix$program_transform_name" = \
2231     NONENONEs,x,x, &&
2232   program_prefix=${target_alias}-
2233
2234 am__api_version="1.9"
2235 # Find a good install program.  We prefer a C program (faster),
2236 # so one script is as good as another.  But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2241 # AIX /bin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2249 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2250 if test -z "$INSTALL"; then
2251 if test "${ac_cv_path_install+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259   # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in
2261   ./ | .// | /cC/* | \
2262   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2264   /usr/ucb/* ) ;;
2265   *)
2266     # OSF1 and SCO ODT 3.0 have their own names for install.
2267     # Don't use installbsd from OSF since it installs stuff as root
2268     # by default.
2269     for ac_prog in ginstall scoinst install; do
2270       for ac_exec_ext in '' $ac_executable_extensions; do
2271         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272           if test $ac_prog = install &&
2273             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274             # AIX install.  It has an incompatible calling convention.
2275             :
2276           elif test $ac_prog = install &&
2277             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278             # program-specific install script used by HP pwplus--don't use.
2279             :
2280           else
2281             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2282             break 3
2283           fi
2284         fi
2285       done
2286     done
2287     ;;
2288 esac
2289 done
2290 IFS=$as_save_IFS
2291
2292
2293 fi
2294   if test "${ac_cv_path_install+set}" = set; then
2295     INSTALL=$ac_cv_path_install
2296   else
2297     # As a last resort, use the slow shell script.  Don't cache a
2298     # value for INSTALL within a source directory, because that will
2299     # break other packages using the cache if that directory is
2300     # removed, or if the value is a relative name.
2301     INSTALL=$ac_install_sh
2302   fi
2303 fi
2304 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2305 echo "${ECHO_T}$INSTALL" >&6; }
2306
2307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308 # It thinks the first close brace ends the variable substitution.
2309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310
2311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312
2313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314
2315 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2316 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2317 # Just in case
2318 sleep 1
2319 echo timestamp > conftest.file
2320 # Do `set' in a subshell so we don't clobber the current shell's
2321 # arguments.  Must try -L first in case configure is actually a
2322 # symlink; some systems play weird games with the mod time of symlinks
2323 # (eg FreeBSD returns the mod time of the symlink's containing
2324 # directory).
2325 if (
2326    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2327    if test "$*" = "X"; then
2328       # -L didn't work.
2329       set X `ls -t $srcdir/configure conftest.file`
2330    fi
2331    rm -f conftest.file
2332    if test "$*" != "X $srcdir/configure conftest.file" \
2333       && test "$*" != "X conftest.file $srcdir/configure"; then
2334
2335       # If neither matched, then we have a broken ls.  This can happen
2336       # if, for instance, CONFIG_SHELL is bash and it inherits a
2337       # broken ls alias from the environment.  This has actually
2338       # happened.  Such a system could not be considered "sane".
2339       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2340 alias in your environment" >&5
2341 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2342 alias in your environment" >&2;}
2343    { (exit 1); exit 1; }; }
2344    fi
2345
2346    test "$2" = conftest.file
2347    )
2348 then
2349    # Ok.
2350    :
2351 else
2352    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2353 Check your system clock" >&5
2354 echo "$as_me: error: newly created file is older than distributed files!
2355 Check your system clock" >&2;}
2356    { (exit 1); exit 1; }; }
2357 fi
2358 { echo "$as_me:$LINENO: result: yes" >&5
2359 echo "${ECHO_T}yes" >&6; }
2360 test "$program_prefix" != NONE &&
2361   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2362 # Use a double $ so make ignores it.
2363 test "$program_suffix" != NONE &&
2364   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2365 # Double any \ or $.  echo might interpret backslashes.
2366 # By default was `s,x,x', remove it if useless.
2367 cat <<\_ACEOF >conftest.sed
2368 s/[\\$]/&&/g;s/;s,x,x,$//
2369 _ACEOF
2370 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2371 rm -f conftest.sed
2372
2373 # expand $ac_aux_dir to an absolute path
2374 am_aux_dir=`cd $ac_aux_dir && pwd`
2375
2376 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2377 # Use eval to expand $SHELL
2378 if eval "$MISSING --run true"; then
2379   am_missing_run="$MISSING --run "
2380 else
2381   am_missing_run=
2382   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2383 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2384 fi
2385
2386 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2387   # We used to keeping the `.' as first argument, in order to
2388   # allow $(mkdir_p) to be used without argument.  As in
2389   #   $(mkdir_p) $(somedir)
2390   # where $(somedir) is conditionally defined.  However this is wrong
2391   # for two reasons:
2392   #  1. if the package is installed by a user who cannot write `.'
2393   #     make install will fail,
2394   #  2. the above comment should most certainly read
2395   #     $(mkdir_p) $(DESTDIR)$(somedir)
2396   #     so it does not work when $(somedir) is undefined and
2397   #     $(DESTDIR) is not.
2398   #  To support the latter case, we have to write
2399   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2400   #  so the `.' trick is pointless.
2401   mkdir_p='mkdir -p --'
2402 else
2403   # On NextStep and OpenStep, the `mkdir' command does not
2404   # recognize any option.  It will interpret all options as
2405   # directories to create, and then abort because `.' already
2406   # exists.
2407   for d in ./-p ./--version;
2408   do
2409     test -d $d && rmdir $d
2410   done
2411   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2412   if test -f "$ac_aux_dir/mkinstalldirs"; then
2413     mkdir_p='$(mkinstalldirs)'
2414   else
2415     mkdir_p='$(install_sh) -d'
2416   fi
2417 fi
2418
2419 for ac_prog in gawk mawk nawk awk
2420 do
2421   # Extract the first word of "$ac_prog", so it can be a program name with args.
2422 set dummy $ac_prog; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_AWK+set}" = set; then
2426   echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428   if test -n "$AWK"; then
2429   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434   IFS=$as_save_IFS
2435   test -z "$as_dir" && as_dir=.
2436   for ac_exec_ext in '' $ac_executable_extensions; do
2437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2438     ac_cv_prog_AWK="$ac_prog"
2439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440     break 2
2441   fi
2442 done
2443 done
2444 IFS=$as_save_IFS
2445
2446 fi
2447 fi
2448 AWK=$ac_cv_prog_AWK
2449 if test -n "$AWK"; then
2450   { echo "$as_me:$LINENO: result: $AWK" >&5
2451 echo "${ECHO_T}$AWK" >&6; }
2452 else
2453   { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2455 fi
2456
2457
2458   test -n "$AWK" && break
2459 done
2460
2461 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2462 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2463 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   cat >conftest.make <<\_ACEOF
2468 SHELL = /bin/sh
2469 all:
2470         @echo '@@@%%%=$(MAKE)=@@@%%%'
2471 _ACEOF
2472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2474   *@@@%%%=?*=@@@%%%*)
2475     eval ac_cv_prog_make_${ac_make}_set=yes;;
2476   *)
2477     eval ac_cv_prog_make_${ac_make}_set=no;;
2478 esac
2479 rm -f conftest.make
2480 fi
2481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2482   { echo "$as_me:$LINENO: result: yes" >&5
2483 echo "${ECHO_T}yes" >&6; }
2484   SET_MAKE=
2485 else
2486   { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2488   SET_MAKE="MAKE=${MAKE-make}"
2489 fi
2490
2491 rm -rf .tst 2>/dev/null
2492 mkdir .tst 2>/dev/null
2493 if test -d .tst; then
2494   am__leading_dot=.
2495 else
2496   am__leading_dot=_
2497 fi
2498 rmdir .tst 2>/dev/null
2499
2500 # test to see if srcdir already configured
2501 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2502    test -f $srcdir/config.status; then
2503   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2504 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2505    { (exit 1); exit 1; }; }
2506 fi
2507
2508 # test whether we have cygpath
2509 if test -z "$CYGPATH_W"; then
2510   if (cygpath --version) >/dev/null 2>/dev/null; then
2511     CYGPATH_W='cygpath -w'
2512   else
2513     CYGPATH_W=echo
2514   fi
2515 fi
2516
2517
2518 # Define the identity of the package.
2519  PACKAGE=$OL_PACKAGE
2520  VERSION=$OL_VERSION
2521
2522
2523 # Some tools Automake needs.
2524
2525 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2526
2527
2528 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2529
2530
2531 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2532
2533
2534 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2535
2536
2537 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2538
2539 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2540
2541 # Installed binaries are usually stripped using `strip' when the user
2542 # run `make install-strip'.  However `strip' might not be the right
2543 # tool to use in cross-compilation environments, therefore Automake
2544 # will honor the `STRIP' environment variable to overrule this program.
2545 if test "$cross_compiling" != no; then
2546   if test -n "$ac_tool_prefix"; then
2547   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}strip; ac_word=$2
2549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2551 if test "${ac_cv_prog_STRIP+set}" = set; then
2552   echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554   if test -n "$STRIP"; then
2555   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560   IFS=$as_save_IFS
2561   test -z "$as_dir" && as_dir=.
2562   for ac_exec_ext in '' $ac_executable_extensions; do
2563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566     break 2
2567   fi
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 STRIP=$ac_cv_prog_STRIP
2575 if test -n "$STRIP"; then
2576   { echo "$as_me:$LINENO: result: $STRIP" >&5
2577 echo "${ECHO_T}$STRIP" >&6; }
2578 else
2579   { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$ac_cv_prog_STRIP"; then
2586   ac_ct_STRIP=$STRIP
2587   # Extract the first word of "strip", so it can be a program name with args.
2588 set dummy strip; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   if test -n "$ac_ct_STRIP"; then
2595   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602   for ac_exec_ext in '' $ac_executable_extensions; do
2603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604     ac_cv_prog_ac_ct_STRIP="strip"
2605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606     break 2
2607   fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2615 if test -n "$ac_ct_STRIP"; then
2616   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2617 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2618 else
2619   { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623   if test "x$ac_ct_STRIP" = x; then
2624     STRIP=":"
2625   else
2626     case $cross_compiling:$ac_tool_warned in
2627 yes:)
2628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet.  If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&5
2631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2632 whose name does not start with the host triplet.  If you think this
2633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2634 ac_tool_warned=yes ;;
2635 esac
2636     STRIP=$ac_ct_STRIP
2637   fi
2638 else
2639   STRIP="$ac_cv_prog_STRIP"
2640 fi
2641
2642 fi
2643 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2644
2645 # We need awk for the "check" target.  The system "awk" is bad on
2646 # some platforms.
2647 # Always define AMTAR for backward compatibility.
2648
2649 AMTAR=${AMTAR-"${am_missing_run}tar"}
2650
2651 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2652
2653
2654
2655
2656
2657 cat >>confdefs.h <<_ACEOF
2658 #define OPENLDAP_PACKAGE "$PACKAGE"
2659 _ACEOF
2660
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define OPENLDAP_VERSION "$VERSION"
2664 _ACEOF
2665
2666
2667
2668 cat >>confdefs.h <<_ACEOF
2669 #define LDAP_VENDOR_VERSION $OL_API_INC
2670 _ACEOF
2671
2672
2673 cat >>confdefs.h <<_ACEOF
2674 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2675 _ACEOF
2676
2677
2678 cat >>confdefs.h <<_ACEOF
2679 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2680 _ACEOF
2681
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2685 _ACEOF
2686
2687
2688 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2689
2690 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2691
2692 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2693
2694
2695
2696
2697
2698
2699
2700 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2701
2702 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2703
2704 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2705
2706
2707 { echo "$as_me:$LINENO: checking configure arguments" >&5
2708 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2709
2710
2711 top_builddir=`pwd`
2712
2713 ldap_subdir="/openldap"
2714
2715
2716 # Check whether --with-subdir was given.
2717 if test "${with_subdir+set}" = set; then
2718   withval=$with_subdir; case "$withval" in
2719         no) ldap_subdir=""
2720                 ;;
2721         yes)
2722                 ;;
2723         /*|\\*)
2724                 ldap_subdir="$withval"
2725                 ;;
2726         *)
2727                 ldap_subdir="/$withval"
2728                 ;;
2729 esac
2730
2731 fi
2732
2733
2734 # OpenLDAP --enable-debug
2735
2736         # Check whether --enable-debug was given.
2737 if test "${enable_debug+set}" = set; then
2738   enableval=$enable_debug;
2739         ol_arg=invalid
2740         for ol_val in no yes traditional ; do
2741                 if test "$enableval" = "$ol_val" ; then
2742                         ol_arg="$ol_val"
2743                 fi
2744         done
2745         if test "$ol_arg" = "invalid" ; then
2746                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2747 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2748    { (exit 1); exit 1; }; }
2749         fi
2750         ol_enable_debug="$ol_arg"
2751
2752 else
2753         ol_enable_debug=yes
2754 fi
2755
2756 # end --enable-debug
2757 # OpenLDAP --enable-dynamic
2758
2759         # Check whether --enable-dynamic was given.
2760 if test "${enable_dynamic+set}" = set; then
2761   enableval=$enable_dynamic;
2762         ol_arg=invalid
2763         for ol_val in auto yes no ; do
2764                 if test "$enableval" = "$ol_val" ; then
2765                         ol_arg="$ol_val"
2766                 fi
2767         done
2768         if test "$ol_arg" = "invalid" ; then
2769                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2771    { (exit 1); exit 1; }; }
2772         fi
2773         ol_enable_dynamic="$ol_arg"
2774
2775 else
2776         ol_enable_dynamic=no
2777 fi
2778
2779 # end --enable-dynamic
2780 # OpenLDAP --enable-syslog
2781
2782         # Check whether --enable-syslog was given.
2783 if test "${enable_syslog+set}" = set; then
2784   enableval=$enable_syslog;
2785         ol_arg=invalid
2786         for ol_val in auto yes no ; do
2787                 if test "$enableval" = "$ol_val" ; then
2788                         ol_arg="$ol_val"
2789                 fi
2790         done
2791         if test "$ol_arg" = "invalid" ; then
2792                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2793 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2794    { (exit 1); exit 1; }; }
2795         fi
2796         ol_enable_syslog="$ol_arg"
2797
2798 else
2799         ol_enable_syslog=auto
2800 fi
2801
2802 # end --enable-syslog
2803 # OpenLDAP --enable-proctitle
2804
2805         # Check whether --enable-proctitle was given.
2806 if test "${enable_proctitle+set}" = set; then
2807   enableval=$enable_proctitle;
2808         ol_arg=invalid
2809         for ol_val in auto yes no ; do
2810                 if test "$enableval" = "$ol_val" ; then
2811                         ol_arg="$ol_val"
2812                 fi
2813         done
2814         if test "$ol_arg" = "invalid" ; then
2815                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2817    { (exit 1); exit 1; }; }
2818         fi
2819         ol_enable_proctitle="$ol_arg"
2820
2821 else
2822         ol_enable_proctitle=yes
2823 fi
2824
2825 # end --enable-proctitle
2826 ol_enable_referrals=${ol_enable_referrals-no}
2827 # OpenLDAP --enable-ipv6
2828
2829         # Check whether --enable-ipv6 was given.
2830 if test "${enable_ipv6+set}" = set; then
2831   enableval=$enable_ipv6;
2832         ol_arg=invalid
2833         for ol_val in auto yes no ; do
2834                 if test "$enableval" = "$ol_val" ; then
2835                         ol_arg="$ol_val"
2836                 fi
2837         done
2838         if test "$ol_arg" = "invalid" ; then
2839                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2840 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2841    { (exit 1); exit 1; }; }
2842         fi
2843         ol_enable_ipv6="$ol_arg"
2844
2845 else
2846         ol_enable_ipv6=auto
2847 fi
2848
2849 # end --enable-ipv6
2850 # OpenLDAP --enable-local
2851
2852         # Check whether --enable-local was given.
2853 if test "${enable_local+set}" = set; then
2854   enableval=$enable_local;
2855         ol_arg=invalid
2856         for ol_val in auto yes no ; do
2857                 if test "$enableval" = "$ol_val" ; then
2858                         ol_arg="$ol_val"
2859                 fi
2860         done
2861         if test "$ol_arg" = "invalid" ; then
2862                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2864    { (exit 1); exit 1; }; }
2865         fi
2866         ol_enable_local="$ol_arg"
2867
2868 else
2869         ol_enable_local=auto
2870 fi
2871
2872 # end --enable-local
2873
2874 # OpenLDAP --with-cyrus_sasl
2875
2876 # Check whether --with-cyrus_sasl was given.
2877 if test "${with_cyrus_sasl+set}" = set; then
2878   withval=$with_cyrus_sasl;
2879         ol_arg=invalid
2880         for ol_val in auto yes no  ; do
2881                 if test "$withval" = "$ol_val" ; then
2882                         ol_arg="$ol_val"
2883                 fi
2884         done
2885         if test "$ol_arg" = "invalid" ; then
2886                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2887 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2888    { (exit 1); exit 1; }; }
2889         fi
2890         ol_with_cyrus_sasl="$ol_arg"
2891
2892 else
2893         ol_with_cyrus_sasl="auto"
2894 fi
2895 # end --with-cyrus_sasl
2896
2897 # OpenLDAP --with-fetch
2898
2899 # Check whether --with-fetch was given.
2900 if test "${with_fetch+set}" = set; then
2901   withval=$with_fetch;
2902         ol_arg=invalid
2903         for ol_val in auto yes no  ; do
2904                 if test "$withval" = "$ol_val" ; then
2905                         ol_arg="$ol_val"
2906                 fi
2907         done
2908         if test "$ol_arg" = "invalid" ; then
2909                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2910 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2911    { (exit 1); exit 1; }; }
2912         fi
2913         ol_with_fetch="$ol_arg"
2914
2915 else
2916         ol_with_fetch="auto"
2917 fi
2918 # end --with-fetch
2919
2920 # OpenLDAP --with-threads
2921
2922 # Check whether --with-threads was given.
2923 if test "${with_threads+set}" = set; then
2924   withval=$with_threads;
2925         ol_arg=invalid
2926         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2927                 if test "$withval" = "$ol_val" ; then
2928                         ol_arg="$ol_val"
2929                 fi
2930         done
2931         if test "$ol_arg" = "invalid" ; then
2932                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2933 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2934    { (exit 1); exit 1; }; }
2935         fi
2936         ol_with_threads="$ol_arg"
2937
2938 else
2939         ol_with_threads="auto"
2940 fi
2941 # end --with-threads
2942
2943 # OpenLDAP --with-tls
2944
2945 # Check whether --with-tls was given.
2946 if test "${with_tls+set}" = set; then
2947   withval=$with_tls;
2948         ol_arg=invalid
2949         for ol_val in auto openssl gnutls yes no  ; do
2950                 if test "$withval" = "$ol_val" ; then
2951                         ol_arg="$ol_val"
2952                 fi
2953         done
2954         if test "$ol_arg" = "invalid" ; then
2955                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2956 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2957    { (exit 1); exit 1; }; }
2958         fi
2959         ol_with_tls="$ol_arg"
2960
2961 else
2962         ol_with_tls="auto"
2963 fi
2964 # end --with-tls
2965
2966 # OpenLDAP --with-yielding_select
2967
2968 # Check whether --with-yielding_select was given.
2969 if test "${with_yielding_select+set}" = set; then
2970   withval=$with_yielding_select;
2971         ol_arg=invalid
2972         for ol_val in auto yes no manual  ; do
2973                 if test "$withval" = "$ol_val" ; then
2974                         ol_arg="$ol_val"
2975                 fi
2976         done
2977         if test "$ol_arg" = "invalid" ; then
2978                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2979 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2980    { (exit 1); exit 1; }; }
2981         fi
2982         ol_with_yielding_select="$ol_arg"
2983
2984 else
2985         ol_with_yielding_select="auto"
2986 fi
2987 # end --with-yielding_select
2988
2989 # OpenLDAP --with-mp
2990
2991 # Check whether --with-mp was given.
2992 if test "${with_mp+set}" = set; then
2993   withval=$with_mp;
2994         ol_arg=invalid
2995         for ol_val in auto longlong long bignum gmp yes no ; do
2996                 if test "$withval" = "$ol_val" ; then
2997                         ol_arg="$ol_val"
2998                 fi
2999         done
3000         if test "$ol_arg" = "invalid" ; then
3001                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3002 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3003    { (exit 1); exit 1; }; }
3004         fi
3005         ol_with_mp="$ol_arg"
3006
3007 else
3008         ol_with_mp="auto"
3009 fi
3010 # end --with-mp
3011
3012 # OpenLDAP --with-odbc
3013
3014 # Check whether --with-odbc was given.
3015 if test "${with_odbc+set}" = set; then
3016   withval=$with_odbc;
3017         ol_arg=invalid
3018         for ol_val in auto iodbc unixodbc  ; do
3019                 if test "$withval" = "$ol_val" ; then
3020                         ol_arg="$ol_val"
3021                 fi
3022         done
3023         if test "$ol_arg" = "invalid" ; then
3024                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3025 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3026    { (exit 1); exit 1; }; }
3027         fi
3028         ol_with_odbc="$ol_arg"
3029
3030 else
3031         ol_with_odbc="auto"
3032 fi
3033 # end --with-odbc
3034
3035
3036
3037 # Check whether --enable-xxslapdoptions was given.
3038 if test "${enable_xxslapdoptions+set}" = set; then
3039   enableval=$enable_xxslapdoptions;
3040 fi
3041
3042 # OpenLDAP --enable-slapd
3043
3044         # Check whether --enable-slapd was given.
3045 if test "${enable_slapd+set}" = set; then
3046   enableval=$enable_slapd;
3047         ol_arg=invalid
3048         for ol_val in auto yes no ; do
3049                 if test "$enableval" = "$ol_val" ; then
3050                         ol_arg="$ol_val"
3051                 fi
3052         done
3053         if test "$ol_arg" = "invalid" ; then
3054                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3055 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3056    { (exit 1); exit 1; }; }
3057         fi
3058         ol_enable_slapd="$ol_arg"
3059
3060 else
3061         ol_enable_slapd=yes
3062 fi
3063
3064 # end --enable-slapd
3065 # OpenLDAP --enable-dynacl
3066
3067         # Check whether --enable-dynacl was given.
3068 if test "${enable_dynacl+set}" = set; then
3069   enableval=$enable_dynacl;
3070         ol_arg=invalid
3071         for ol_val in auto yes no ; do
3072                 if test "$enableval" = "$ol_val" ; then
3073                         ol_arg="$ol_val"
3074                 fi
3075         done
3076         if test "$ol_arg" = "invalid" ; then
3077                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3078 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3079    { (exit 1); exit 1; }; }
3080         fi
3081         ol_enable_dynacl="$ol_arg"
3082
3083 else
3084         ol_enable_dynacl=no
3085 fi
3086
3087 # end --enable-dynacl
3088 # OpenLDAP --enable-aci
3089
3090         # Check whether --enable-aci was given.
3091 if test "${enable_aci+set}" = set; then
3092   enableval=$enable_aci;
3093         ol_arg=invalid
3094         for ol_val in no yes mod ; do
3095                 if test "$enableval" = "$ol_val" ; then
3096                         ol_arg="$ol_val"
3097                 fi
3098         done
3099         if test "$ol_arg" = "invalid" ; then
3100                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3101 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3102    { (exit 1); exit 1; }; }
3103         fi
3104         ol_enable_aci="$ol_arg"
3105
3106 else
3107         ol_enable_aci=no
3108 fi
3109
3110 # end --enable-aci
3111 # OpenLDAP --enable-cleartext
3112
3113         # Check whether --enable-cleartext was given.
3114 if test "${enable_cleartext+set}" = set; then
3115   enableval=$enable_cleartext;
3116         ol_arg=invalid
3117         for ol_val in auto yes no ; do
3118                 if test "$enableval" = "$ol_val" ; then
3119                         ol_arg="$ol_val"
3120                 fi
3121         done
3122         if test "$ol_arg" = "invalid" ; then
3123                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3124 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3125    { (exit 1); exit 1; }; }
3126         fi
3127         ol_enable_cleartext="$ol_arg"
3128
3129 else
3130         ol_enable_cleartext=yes
3131 fi
3132
3133 # end --enable-cleartext
3134 # OpenLDAP --enable-crypt
3135
3136         # Check whether --enable-crypt was given.
3137 if test "${enable_crypt+set}" = set; then
3138   enableval=$enable_crypt;
3139         ol_arg=invalid
3140         for ol_val in auto yes no ; do
3141                 if test "$enableval" = "$ol_val" ; then
3142                         ol_arg="$ol_val"
3143                 fi
3144         done
3145         if test "$ol_arg" = "invalid" ; then
3146                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3147 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3148    { (exit 1); exit 1; }; }
3149         fi
3150         ol_enable_crypt="$ol_arg"
3151
3152 else
3153         ol_enable_crypt=no
3154 fi
3155
3156 # end --enable-crypt
3157 # OpenLDAP --enable-lmpasswd
3158
3159         # Check whether --enable-lmpasswd was given.
3160 if test "${enable_lmpasswd+set}" = set; then
3161   enableval=$enable_lmpasswd;
3162         ol_arg=invalid
3163         for ol_val in auto yes no ; do
3164                 if test "$enableval" = "$ol_val" ; then
3165                         ol_arg="$ol_val"
3166                 fi
3167         done
3168         if test "$ol_arg" = "invalid" ; then
3169                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3170 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3171    { (exit 1); exit 1; }; }
3172         fi
3173         ol_enable_lmpasswd="$ol_arg"
3174
3175 else
3176         ol_enable_lmpasswd=no
3177 fi
3178
3179 # end --enable-lmpasswd
3180 # OpenLDAP --enable-spasswd
3181
3182         # Check whether --enable-spasswd was given.
3183 if test "${enable_spasswd+set}" = set; then
3184   enableval=$enable_spasswd;
3185         ol_arg=invalid
3186         for ol_val in auto yes no ; do
3187                 if test "$enableval" = "$ol_val" ; then
3188                         ol_arg="$ol_val"
3189                 fi
3190         done
3191         if test "$ol_arg" = "invalid" ; then
3192                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3193 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3194    { (exit 1); exit 1; }; }
3195         fi
3196         ol_enable_spasswd="$ol_arg"
3197
3198 else
3199         ol_enable_spasswd=no
3200 fi
3201
3202 # end --enable-spasswd
3203 # OpenLDAP --enable-modules
3204
3205         # Check whether --enable-modules was given.
3206 if test "${enable_modules+set}" = set; then
3207   enableval=$enable_modules;
3208         ol_arg=invalid
3209         for ol_val in auto yes no ; do
3210                 if test "$enableval" = "$ol_val" ; then
3211                         ol_arg="$ol_val"
3212                 fi
3213         done
3214         if test "$ol_arg" = "invalid" ; then
3215                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3216 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3217    { (exit 1); exit 1; }; }
3218         fi
3219         ol_enable_modules="$ol_arg"
3220
3221 else
3222         ol_enable_modules=no
3223 fi
3224
3225 # end --enable-modules
3226 # OpenLDAP --enable-rewrite
3227
3228         # Check whether --enable-rewrite was given.
3229 if test "${enable_rewrite+set}" = set; then
3230   enableval=$enable_rewrite;
3231         ol_arg=invalid
3232         for ol_val in auto yes no ; do
3233                 if test "$enableval" = "$ol_val" ; then
3234                         ol_arg="$ol_val"
3235                 fi
3236         done
3237         if test "$ol_arg" = "invalid" ; then
3238                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3239 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3240    { (exit 1); exit 1; }; }
3241         fi
3242         ol_enable_rewrite="$ol_arg"
3243
3244 else
3245         ol_enable_rewrite=auto
3246 fi
3247
3248 # end --enable-rewrite
3249 # OpenLDAP --enable-rlookups
3250
3251         # Check whether --enable-rlookups was given.
3252 if test "${enable_rlookups+set}" = set; then
3253   enableval=$enable_rlookups;
3254         ol_arg=invalid
3255         for ol_val in auto yes no ; do
3256                 if test "$enableval" = "$ol_val" ; then
3257                         ol_arg="$ol_val"
3258                 fi
3259         done
3260         if test "$ol_arg" = "invalid" ; then
3261                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3262 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3263    { (exit 1); exit 1; }; }
3264         fi
3265         ol_enable_rlookups="$ol_arg"
3266
3267 else
3268         ol_enable_rlookups=no
3269 fi
3270
3271 # end --enable-rlookups
3272 # OpenLDAP --enable-slapi
3273
3274         # Check whether --enable-slapi was given.
3275 if test "${enable_slapi+set}" = set; then
3276   enableval=$enable_slapi;
3277         ol_arg=invalid
3278         for ol_val in auto yes no ; do
3279                 if test "$enableval" = "$ol_val" ; then
3280                         ol_arg="$ol_val"
3281                 fi
3282         done
3283         if test "$ol_arg" = "invalid" ; then
3284                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3285 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3286    { (exit 1); exit 1; }; }
3287         fi
3288         ol_enable_slapi="$ol_arg"
3289
3290 else
3291         ol_enable_slapi=no
3292 fi
3293
3294 # end --enable-slapi
3295 # OpenLDAP --enable-slp
3296
3297         # Check whether --enable-slp was given.
3298 if test "${enable_slp+set}" = set; then
3299   enableval=$enable_slp;
3300         ol_arg=invalid
3301         for ol_val in auto yes no ; do
3302                 if test "$enableval" = "$ol_val" ; then
3303                         ol_arg="$ol_val"
3304                 fi
3305         done
3306         if test "$ol_arg" = "invalid" ; then
3307                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3309    { (exit 1); exit 1; }; }
3310         fi
3311         ol_enable_slp="$ol_arg"
3312
3313 else
3314         ol_enable_slp=no
3315 fi
3316
3317 # end --enable-slp
3318 # OpenLDAP --enable-wrappers
3319
3320         # Check whether --enable-wrappers was given.
3321 if test "${enable_wrappers+set}" = set; then
3322   enableval=$enable_wrappers;
3323         ol_arg=invalid
3324         for ol_val in auto yes no ; do
3325                 if test "$enableval" = "$ol_val" ; then
3326                         ol_arg="$ol_val"
3327                 fi
3328         done
3329         if test "$ol_arg" = "invalid" ; then
3330                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3331 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3332    { (exit 1); exit 1; }; }
3333         fi
3334         ol_enable_wrappers="$ol_arg"
3335
3336 else
3337         ol_enable_wrappers=no
3338 fi
3339
3340 # end --enable-wrappers
3341
3342 Backends="bdb \
3343         dnssrv \
3344         hdb \
3345         ldap \
3346         meta \
3347         monitor \
3348         null \
3349         passwd \
3350         perl \
3351         relay \
3352         shell \
3353         sql"
3354
3355 # Check whether --enable-xxslapbackends was given.
3356 if test "${enable_xxslapbackends+set}" = set; then
3357   enableval=$enable_xxslapbackends;
3358 fi
3359
3360
3361 # OpenLDAP --enable-backends
3362
3363         # Check whether --enable-backends was given.
3364 if test "${enable_backends+set}" = set; then
3365   enableval=$enable_backends;
3366         ol_arg=invalid
3367         for ol_val in no yes mod ; do
3368                 if test "$enableval" = "$ol_val" ; then
3369                         ol_arg="$ol_val"
3370                 fi
3371         done
3372         if test "$ol_arg" = "invalid" ; then
3373                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3375    { (exit 1); exit 1; }; }
3376         fi
3377         ol_enable_backends="$ol_arg"
3378
3379 fi
3380
3381 # end --enable-backends
3382 # OpenLDAP --enable-bdb
3383
3384         # Check whether --enable-bdb was given.
3385 if test "${enable_bdb+set}" = set; then
3386   enableval=$enable_bdb;
3387         ol_arg=invalid
3388         for ol_val in no yes mod ; do
3389                 if test "$enableval" = "$ol_val" ; then
3390                         ol_arg="$ol_val"
3391                 fi
3392         done
3393         if test "$ol_arg" = "invalid" ; then
3394                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3396    { (exit 1); exit 1; }; }
3397         fi
3398         ol_enable_bdb="$ol_arg"
3399
3400 else
3401         ol_enable_bdb=${ol_enable_backends:-yes}
3402 fi
3403
3404 # end --enable-bdb
3405 # OpenLDAP --enable-dnssrv
3406
3407         # Check whether --enable-dnssrv was given.
3408 if test "${enable_dnssrv+set}" = set; then
3409   enableval=$enable_dnssrv;
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_dnssrv="$ol_arg"
3422
3423 else
3424         ol_enable_dnssrv=${ol_enable_backends:-no}
3425 fi
3426
3427 # end --enable-dnssrv
3428 # OpenLDAP --enable-hdb
3429
3430         # Check whether --enable-hdb was given.
3431 if test "${enable_hdb+set}" = set; then
3432   enableval=$enable_hdb;
3433         ol_arg=invalid
3434         for ol_val in no yes mod ; do
3435                 if test "$enableval" = "$ol_val" ; then
3436                         ol_arg="$ol_val"
3437                 fi
3438         done
3439         if test "$ol_arg" = "invalid" ; then
3440                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3442    { (exit 1); exit 1; }; }
3443         fi
3444         ol_enable_hdb="$ol_arg"
3445
3446 else
3447         ol_enable_hdb=${ol_enable_backends:-yes}
3448 fi
3449
3450 # end --enable-hdb
3451 # OpenLDAP --enable-ldap
3452
3453         # Check whether --enable-ldap was given.
3454 if test "${enable_ldap+set}" = set; then
3455   enableval=$enable_ldap;
3456         ol_arg=invalid
3457         for ol_val in no yes mod ; do
3458                 if test "$enableval" = "$ol_val" ; then
3459                         ol_arg="$ol_val"
3460                 fi
3461         done
3462         if test "$ol_arg" = "invalid" ; then
3463                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3465    { (exit 1); exit 1; }; }
3466         fi
3467         ol_enable_ldap="$ol_arg"
3468
3469 else
3470         ol_enable_ldap=${ol_enable_backends:-no}
3471 fi
3472
3473 # end --enable-ldap
3474 # OpenLDAP --enable-meta
3475
3476         # Check whether --enable-meta was given.
3477 if test "${enable_meta+set}" = set; then
3478   enableval=$enable_meta;
3479         ol_arg=invalid
3480         for ol_val in no yes mod ; do
3481                 if test "$enableval" = "$ol_val" ; then
3482                         ol_arg="$ol_val"
3483                 fi
3484         done
3485         if test "$ol_arg" = "invalid" ; then
3486                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3488    { (exit 1); exit 1; }; }
3489         fi
3490         ol_enable_meta="$ol_arg"
3491
3492 else
3493         ol_enable_meta=${ol_enable_backends:-no}
3494 fi
3495
3496 # end --enable-meta
3497 # OpenLDAP --enable-monitor
3498
3499         # Check whether --enable-monitor was given.
3500 if test "${enable_monitor+set}" = set; then
3501   enableval=$enable_monitor;
3502         ol_arg=invalid
3503         for ol_val in no yes mod ; do
3504                 if test "$enableval" = "$ol_val" ; then
3505                         ol_arg="$ol_val"
3506                 fi
3507         done
3508         if test "$ol_arg" = "invalid" ; then
3509                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3510 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3511    { (exit 1); exit 1; }; }
3512         fi
3513         ol_enable_monitor="$ol_arg"
3514
3515 else
3516         ol_enable_monitor=${ol_enable_backends:-yes}
3517 fi
3518
3519 # end --enable-monitor
3520 # OpenLDAP --enable-null
3521
3522         # Check whether --enable-null was given.
3523 if test "${enable_null+set}" = set; then
3524   enableval=$enable_null;
3525         ol_arg=invalid
3526         for ol_val in no yes mod ; do
3527                 if test "$enableval" = "$ol_val" ; then
3528                         ol_arg="$ol_val"
3529                 fi
3530         done
3531         if test "$ol_arg" = "invalid" ; then
3532                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3533 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3534    { (exit 1); exit 1; }; }
3535         fi
3536         ol_enable_null="$ol_arg"
3537
3538 else
3539         ol_enable_null=${ol_enable_backends:-no}
3540 fi
3541
3542 # end --enable-null
3543 # OpenLDAP --enable-passwd
3544
3545         # Check whether --enable-passwd was given.
3546 if test "${enable_passwd+set}" = set; then
3547   enableval=$enable_passwd;
3548         ol_arg=invalid
3549         for ol_val in no yes mod ; do
3550                 if test "$enableval" = "$ol_val" ; then
3551                         ol_arg="$ol_val"
3552                 fi
3553         done
3554         if test "$ol_arg" = "invalid" ; then
3555                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3556 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3557    { (exit 1); exit 1; }; }
3558         fi
3559         ol_enable_passwd="$ol_arg"
3560
3561 else
3562         ol_enable_passwd=${ol_enable_backends:-no}
3563 fi
3564
3565 # end --enable-passwd
3566 # OpenLDAP --enable-perl
3567
3568         # Check whether --enable-perl was given.
3569 if test "${enable_perl+set}" = set; then
3570   enableval=$enable_perl;
3571         ol_arg=invalid
3572         for ol_val in no yes mod ; do
3573                 if test "$enableval" = "$ol_val" ; then
3574                         ol_arg="$ol_val"
3575                 fi
3576         done
3577         if test "$ol_arg" = "invalid" ; then
3578                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3579 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3580    { (exit 1); exit 1; }; }
3581         fi
3582         ol_enable_perl="$ol_arg"
3583
3584 else
3585         ol_enable_perl=${ol_enable_backends:-no}
3586 fi
3587
3588 # end --enable-perl
3589 # OpenLDAP --enable-relay
3590
3591         # Check whether --enable-relay was given.
3592 if test "${enable_relay+set}" = set; then
3593   enableval=$enable_relay;
3594         ol_arg=invalid
3595         for ol_val in no yes mod ; do
3596                 if test "$enableval" = "$ol_val" ; then
3597                         ol_arg="$ol_val"
3598                 fi
3599         done
3600         if test "$ol_arg" = "invalid" ; then
3601                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3602 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3603    { (exit 1); exit 1; }; }
3604         fi
3605         ol_enable_relay="$ol_arg"
3606
3607 else
3608         ol_enable_relay=${ol_enable_backends:-yes}
3609 fi
3610
3611 # end --enable-relay
3612 # OpenLDAP --enable-shell
3613
3614         # Check whether --enable-shell was given.
3615 if test "${enable_shell+set}" = set; then
3616   enableval=$enable_shell;
3617         ol_arg=invalid
3618         for ol_val in no yes mod ; do
3619                 if test "$enableval" = "$ol_val" ; then
3620                         ol_arg="$ol_val"
3621                 fi
3622         done
3623         if test "$ol_arg" = "invalid" ; then
3624                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3625 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3626    { (exit 1); exit 1; }; }
3627         fi
3628         ol_enable_shell="$ol_arg"
3629
3630 else
3631         ol_enable_shell=${ol_enable_backends:-no}
3632 fi
3633
3634 # end --enable-shell
3635 # OpenLDAP --enable-sql
3636
3637         # Check whether --enable-sql was given.
3638 if test "${enable_sql+set}" = set; then
3639   enableval=$enable_sql;
3640         ol_arg=invalid
3641         for ol_val in no yes mod ; do
3642                 if test "$enableval" = "$ol_val" ; then
3643                         ol_arg="$ol_val"
3644                 fi
3645         done
3646         if test "$ol_arg" = "invalid" ; then
3647                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3648 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3649    { (exit 1); exit 1; }; }
3650         fi
3651         ol_enable_sql="$ol_arg"
3652
3653 else
3654         ol_enable_sql=${ol_enable_backends:-no}
3655 fi
3656
3657 # end --enable-sql
3658
3659 Overlays="accesslog \
3660         auditlog \
3661         constraint \
3662         dds \
3663         dyngroup \
3664         dynlist \
3665         ppolicy \
3666         proxycache \
3667         refint \
3668         retcode \
3669         rwm \
3670         seqmod \
3671         syncprov \
3672         translucent \
3673         unique \
3674         valsort"
3675
3676 # Check whether --enable-xxslapoverlays was given.
3677 if test "${enable_xxslapoverlays+set}" = set; then
3678   enableval=$enable_xxslapoverlays;
3679 fi
3680
3681
3682 # OpenLDAP --enable-overlays
3683
3684         # Check whether --enable-overlays was given.
3685 if test "${enable_overlays+set}" = set; then
3686   enableval=$enable_overlays;
3687         ol_arg=invalid
3688         for ol_val in no yes mod ; do
3689                 if test "$enableval" = "$ol_val" ; then
3690                         ol_arg="$ol_val"
3691                 fi
3692         done
3693         if test "$ol_arg" = "invalid" ; then
3694                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3695 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3696    { (exit 1); exit 1; }; }
3697         fi
3698         ol_enable_overlays="$ol_arg"
3699
3700 fi
3701
3702 # end --enable-overlays
3703 # OpenLDAP --enable-accesslog
3704
3705         # Check whether --enable-accesslog was given.
3706 if test "${enable_accesslog+set}" = set; then
3707   enableval=$enable_accesslog;
3708         ol_arg=invalid
3709         for ol_val in no yes mod ; do
3710                 if test "$enableval" = "$ol_val" ; then
3711                         ol_arg="$ol_val"
3712                 fi
3713         done
3714         if test "$ol_arg" = "invalid" ; then
3715                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3716 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3717    { (exit 1); exit 1; }; }
3718         fi
3719         ol_enable_accesslog="$ol_arg"
3720
3721 else
3722         ol_enable_accesslog=${ol_enable_overlays:-no}
3723 fi
3724
3725 # end --enable-accesslog
3726
3727 # OpenLDAP --enable-auditlog
3728
3729         # Check whether --enable-auditlog was given.
3730 if test "${enable_auditlog+set}" = set; then
3731   enableval=$enable_auditlog;
3732         ol_arg=invalid
3733         for ol_val in no yes mod ; do
3734                 if test "$enableval" = "$ol_val" ; then
3735                         ol_arg="$ol_val"
3736                 fi
3737         done
3738         if test "$ol_arg" = "invalid" ; then
3739                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3740 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3741    { (exit 1); exit 1; }; }
3742         fi
3743         ol_enable_auditlog="$ol_arg"
3744
3745 else
3746         ol_enable_auditlog=${ol_enable_overlays:-no}
3747 fi
3748
3749 # end --enable-auditlog
3750
3751 # OpenLDAP --enable-constraint
3752
3753         # Check whether --enable-constraint was given.
3754 if test "${enable_constraint+set}" = set; then
3755   enableval=$enable_constraint;
3756         ol_arg=invalid
3757         for ol_val in no yes mod ; do
3758                 if test "$enableval" = "$ol_val" ; then
3759                         ol_arg="$ol_val"
3760                 fi
3761         done
3762         if test "$ol_arg" = "invalid" ; then
3763                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3764 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3765    { (exit 1); exit 1; }; }
3766         fi
3767         ol_enable_constraint="$ol_arg"
3768
3769 else
3770         ol_enable_constraint=${ol_enable_overlays:-no}
3771 fi
3772
3773 # end --enable-constraint
3774
3775 # OpenLDAP --enable-dds
3776
3777         # Check whether --enable-dds was given.
3778 if test "${enable_dds+set}" = set; then
3779   enableval=$enable_dds;
3780         ol_arg=invalid
3781         for ol_val in no yes mod ; do
3782                 if test "$enableval" = "$ol_val" ; then
3783                         ol_arg="$ol_val"
3784                 fi
3785         done
3786         if test "$ol_arg" = "invalid" ; then
3787                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3788 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3789    { (exit 1); exit 1; }; }
3790         fi
3791         ol_enable_dds="$ol_arg"
3792
3793 else
3794         ol_enable_dds=${ol_enable_overlays:-no}
3795 fi
3796
3797 # end --enable-dds
3798
3799 # OpenLDAP --enable-dyngroup
3800
3801         # Check whether --enable-dyngroup was given.
3802 if test "${enable_dyngroup+set}" = set; then
3803   enableval=$enable_dyngroup;
3804         ol_arg=invalid
3805         for ol_val in no yes mod ; do
3806                 if test "$enableval" = "$ol_val" ; then
3807                         ol_arg="$ol_val"
3808                 fi
3809         done
3810         if test "$ol_arg" = "invalid" ; then
3811                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3812 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3813    { (exit 1); exit 1; }; }
3814         fi
3815         ol_enable_dyngroup="$ol_arg"
3816
3817 else
3818         ol_enable_dyngroup=${ol_enable_overlays:-no}
3819 fi
3820
3821 # end --enable-dyngroup
3822
3823 # OpenLDAP --enable-dynlist
3824
3825         # Check whether --enable-dynlist was given.
3826 if test "${enable_dynlist+set}" = set; then
3827   enableval=$enable_dynlist;
3828         ol_arg=invalid
3829         for ol_val in no yes mod ; do
3830                 if test "$enableval" = "$ol_val" ; then
3831                         ol_arg="$ol_val"
3832                 fi
3833         done
3834         if test "$ol_arg" = "invalid" ; then
3835                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3836 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3837    { (exit 1); exit 1; }; }
3838         fi
3839         ol_enable_dynlist="$ol_arg"
3840
3841 else
3842         ol_enable_dynlist=${ol_enable_overlays:-no}
3843 fi
3844
3845 # end --enable-dynlist
3846
3847 # OpenLDAP --enable-ppolicy
3848
3849         # Check whether --enable-ppolicy was given.
3850 if test "${enable_ppolicy+set}" = set; then
3851   enableval=$enable_ppolicy;
3852         ol_arg=invalid
3853         for ol_val in no yes mod ; do
3854                 if test "$enableval" = "$ol_val" ; then
3855                         ol_arg="$ol_val"
3856                 fi
3857         done
3858         if test "$ol_arg" = "invalid" ; then
3859                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3860 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3861    { (exit 1); exit 1; }; }
3862         fi
3863         ol_enable_ppolicy="$ol_arg"
3864
3865 else
3866         ol_enable_ppolicy=${ol_enable_overlays:-no}
3867 fi
3868
3869 # end --enable-ppolicy
3870
3871 # OpenLDAP --enable-proxycache
3872
3873         # Check whether --enable-proxycache was given.
3874 if test "${enable_proxycache+set}" = set; then
3875   enableval=$enable_proxycache;
3876         ol_arg=invalid
3877         for ol_val in no yes mod ; do
3878                 if test "$enableval" = "$ol_val" ; then
3879                         ol_arg="$ol_val"
3880                 fi
3881         done
3882         if test "$ol_arg" = "invalid" ; then
3883                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3884 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3885    { (exit 1); exit 1; }; }
3886         fi
3887         ol_enable_proxycache="$ol_arg"
3888
3889 else
3890         ol_enable_proxycache=${ol_enable_overlays:-no}
3891 fi
3892
3893 # end --enable-proxycache
3894
3895 # OpenLDAP --enable-refint
3896
3897         # Check whether --enable-refint was given.
3898 if test "${enable_refint+set}" = set; then
3899   enableval=$enable_refint;
3900         ol_arg=invalid
3901         for ol_val in no yes mod ; do
3902                 if test "$enableval" = "$ol_val" ; then
3903                         ol_arg="$ol_val"
3904                 fi
3905         done
3906         if test "$ol_arg" = "invalid" ; then
3907                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3908 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3909    { (exit 1); exit 1; }; }
3910         fi
3911         ol_enable_refint="$ol_arg"
3912
3913 else
3914         ol_enable_refint=${ol_enable_overlays:-no}
3915 fi
3916
3917 # end --enable-refint
3918
3919 # OpenLDAP --enable-retcode
3920
3921         # Check whether --enable-retcode was given.
3922 if test "${enable_retcode+set}" = set; then
3923   enableval=$enable_retcode;
3924         ol_arg=invalid
3925         for ol_val in no yes mod ; do
3926                 if test "$enableval" = "$ol_val" ; then
3927                         ol_arg="$ol_val"
3928                 fi
3929         done
3930         if test "$ol_arg" = "invalid" ; then
3931                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3932 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3933    { (exit 1); exit 1; }; }
3934         fi
3935         ol_enable_retcode="$ol_arg"
3936
3937 else
3938         ol_enable_retcode=${ol_enable_overlays:-no}
3939 fi
3940
3941 # end --enable-retcode
3942
3943 # OpenLDAP --enable-rwm
3944
3945         # Check whether --enable-rwm was given.
3946 if test "${enable_rwm+set}" = set; then
3947   enableval=$enable_rwm;
3948         ol_arg=invalid
3949         for ol_val in no yes mod ; do
3950                 if test "$enableval" = "$ol_val" ; then
3951                         ol_arg="$ol_val"
3952                 fi
3953         done
3954         if test "$ol_arg" = "invalid" ; then
3955                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3956 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3957    { (exit 1); exit 1; }; }
3958         fi
3959         ol_enable_rwm="$ol_arg"
3960
3961 else
3962         ol_enable_rwm=${ol_enable_overlays:-no}
3963 fi
3964
3965 # end --enable-rwm
3966
3967 # OpenLDAP --enable-seqmod
3968
3969         # Check whether --enable-seqmod was given.
3970 if test "${enable_seqmod+set}" = set; then
3971   enableval=$enable_seqmod;
3972         ol_arg=invalid
3973         for ol_val in no yes mod ; do
3974                 if test "$enableval" = "$ol_val" ; then
3975                         ol_arg="$ol_val"
3976                 fi
3977         done
3978         if test "$ol_arg" = "invalid" ; then
3979                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3980 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3981    { (exit 1); exit 1; }; }
3982         fi
3983         ol_enable_seqmod="$ol_arg"
3984
3985 else
3986         ol_enable_seqmod=${ol_enable_overlays:-yes}
3987 fi
3988
3989 # end --enable-seqmod
3990
3991 # OpenLDAP --enable-syncprov
3992
3993         # Check whether --enable-syncprov was given.
3994 if test "${enable_syncprov+set}" = set; then
3995   enableval=$enable_syncprov;
3996         ol_arg=invalid
3997         for ol_val in no yes mod ; do
3998                 if test "$enableval" = "$ol_val" ; then
3999                         ol_arg="$ol_val"
4000                 fi
4001         done
4002         if test "$ol_arg" = "invalid" ; then
4003                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4004 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4005    { (exit 1); exit 1; }; }
4006         fi
4007         ol_enable_syncprov="$ol_arg"
4008
4009 else
4010         ol_enable_syncprov=${ol_enable_overlays:-yes}
4011 fi
4012
4013 # end --enable-syncprov
4014
4015 # OpenLDAP --enable-translucent
4016
4017         # Check whether --enable-translucent was given.
4018 if test "${enable_translucent+set}" = set; then
4019   enableval=$enable_translucent;
4020         ol_arg=invalid
4021         for ol_val in no yes mod ; do
4022                 if test "$enableval" = "$ol_val" ; then
4023                         ol_arg="$ol_val"
4024                 fi
4025         done
4026         if test "$ol_arg" = "invalid" ; then
4027                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4028 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4029    { (exit 1); exit 1; }; }
4030         fi
4031         ol_enable_translucent="$ol_arg"
4032
4033 else
4034         ol_enable_translucent=${ol_enable_overlays:-no}
4035 fi
4036
4037 # end --enable-translucent
4038
4039 # OpenLDAP --enable-unique
4040
4041         # Check whether --enable-unique was given.
4042 if test "${enable_unique+set}" = set; then
4043   enableval=$enable_unique;
4044         ol_arg=invalid
4045         for ol_val in no yes mod ; do
4046                 if test "$enableval" = "$ol_val" ; then
4047                         ol_arg="$ol_val"
4048                 fi
4049         done
4050         if test "$ol_arg" = "invalid" ; then
4051                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4052 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4053    { (exit 1); exit 1; }; }
4054         fi
4055         ol_enable_unique="$ol_arg"
4056
4057 else
4058         ol_enable_unique=${ol_enable_overlays:-no}
4059 fi
4060
4061 # end --enable-unique
4062
4063 # OpenLDAP --enable-valsort
4064
4065         # Check whether --enable-valsort was given.
4066 if test "${enable_valsort+set}" = set; then
4067   enableval=$enable_valsort;
4068         ol_arg=invalid
4069         for ol_val in no yes mod ; do
4070                 if test "$enableval" = "$ol_val" ; then
4071                         ol_arg="$ol_val"
4072                 fi
4073         done
4074         if test "$ol_arg" = "invalid" ; then
4075                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4076 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4077    { (exit 1); exit 1; }; }
4078         fi
4079         ol_enable_valsort="$ol_arg"
4080
4081 else
4082         ol_enable_valsort=${ol_enable_overlays:-no}
4083 fi
4084
4085 # end --enable-valsort
4086
4087
4088 # Check whether --enable-xxliboptions was given.
4089 if test "${enable_xxliboptions+set}" = set; then
4090   enableval=$enable_xxliboptions;
4091 fi
4092
4093 # Check whether --enable-static was given.
4094 if test "${enable_static+set}" = set; then
4095   enableval=$enable_static; p=${PACKAGE-default}
4096     case $enableval in
4097     yes) enable_static=yes ;;
4098     no) enable_static=no ;;
4099     *)
4100      enable_static=no
4101       # Look at the argument we got.  We use all the common list separators.
4102       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4103       for pkg in $enableval; do
4104         IFS="$lt_save_ifs"
4105         if test "X$pkg" = "X$p"; then
4106           enable_static=yes
4107         fi
4108       done
4109       IFS="$lt_save_ifs"
4110       ;;
4111     esac
4112 else
4113   enable_static=yes
4114 fi
4115
4116
4117 # Check whether --enable-shared was given.
4118 if test "${enable_shared+set}" = set; then
4119   enableval=$enable_shared; p=${PACKAGE-default}
4120     case $enableval in
4121     yes) enable_shared=yes ;;
4122     no) enable_shared=no ;;
4123     *)
4124       enable_shared=no
4125       # Look at the argument we got.  We use all the common list separators.
4126       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4127       for pkg in $enableval; do
4128         IFS="$lt_save_ifs"
4129         if test "X$pkg" = "X$p"; then
4130           enable_shared=yes
4131         fi
4132       done
4133       IFS="$lt_save_ifs"
4134       ;;
4135     esac
4136 else
4137   enable_shared=yes
4138 fi
4139
4140
4141
4142
4143 # validate options
4144 if test $ol_enable_slapd = no ; then
4145                 if test $ol_enable_slapi = yes ; then
4146                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4147 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4148         fi
4149         case "$ol_enable_backends" in yes | mod)
4150                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4151 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4152         esac
4153         for i in $Backends; do
4154                 eval "ol_tmp=\$ol_enable_$i"
4155                 if test $ol_tmp != no ; then
4156                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4157 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4158                         eval "ol_enable_$i=no"
4159                 fi
4160         done
4161         if test $ol_enable_modules = yes ; then
4162                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4163 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4164         fi
4165         if test $ol_enable_wrappers = yes ; then
4166                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4167 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4168         fi
4169         if test $ol_enable_rlookups = yes ; then
4170                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4171 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4172         fi
4173         if test $ol_enable_dynacl = yes ; then
4174                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4175 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4176         fi
4177         if test $ol_enable_aci != no ; then
4178                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4179 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4180         fi
4181         if test $ol_enable_rewrite = yes ; then
4182                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4183 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4184         fi
4185                 case "$ol_enable_overlays" in yes | mod)
4186                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4187 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4188         esac
4189         for i in $Overlays; do
4190                 eval "ol_tmp=\$ol_enable_$i"
4191                 if test $ol_tmp != no ; then
4192                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4193 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4194                         eval "ol_enable_$i=no"
4195                 fi
4196         done
4197
4198         # force settings to no
4199         ol_enable_slapi=no
4200
4201         ol_enable_backends=
4202         ol_enable_overlays=
4203         ol_enable_modules=no
4204         ol_enable_rlookups=no
4205         ol_enable_dynacl=no
4206         ol_enable_aci=no
4207         ol_enable_wrappers=no
4208
4209         ol_enable_rewrite=no
4210
4211 elif test $ol_enable_modules != yes &&
4212         test $ol_enable_bdb = no &&
4213         test $ol_enable_dnssrv = no &&
4214         test $ol_enable_hdb = no &&
4215         test $ol_enable_ldap = no &&
4216         test $ol_enable_meta = no &&
4217         test $ol_enable_monitor = no &&
4218         test $ol_enable_null = no &&
4219         test $ol_enable_passwd = no &&
4220         test $ol_enable_perl = no &&
4221         test $ol_enable_relay = no &&
4222         test $ol_enable_shell = no &&
4223         test $ol_enable_sql = no ; then
4224
4225         if test $ol_enable_slapd = yes ; then
4226                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4227 echo "$as_me: error: slapd requires a backend" >&2;}
4228    { (exit 1); exit 1; }; }
4229         else
4230                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4231 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4232                 ol_enable_slapd=no
4233         fi
4234 fi
4235
4236 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4237         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4238 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4239    { (exit 1); exit 1; }; }
4240 fi
4241
4242 if test $ol_enable_lmpasswd = yes ; then
4243         if test $ol_with_tls = no ; then
4244                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4245 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4246    { (exit 1); exit 1; }; }
4247         fi
4248 fi
4249
4250 if test $ol_enable_spasswd = yes ; then
4251         if test $ol_with_cyrus_sasl = no ; then
4252                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4253 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4254    { (exit 1); exit 1; }; }
4255         fi
4256         ol_with_cyrus_sasl=yes
4257 fi
4258
4259 { echo "$as_me:$LINENO: result: done" >&5
4260 echo "${ECHO_T}done" >&6; }
4261
4262 LDAP_LIBS=
4263 BDB_LIBS=
4264 LTHREAD_LIBS=
4265 LUTIL_LIBS=
4266
4267 SLAPD_LIBS=
4268
4269 BUILD_SLAPD=no
4270
4271 BUILD_THREAD=no
4272
4273 BUILD_SLAPI=no
4274 SLAPD_SLAPI_DEPEND=
4275
4276 BUILD_BDB=no
4277 BUILD_DNSSRV=no
4278 BUILD_HDB=no
4279 BUILD_LDAP=no
4280 BUILD_META=no
4281 BUILD_MONITOR=no
4282 BUILD_NULL=no
4283 BUILD_PASSWD=no
4284 BUILD_PERL=no
4285 BUILD_RELAY=no
4286 BUILD_SHELL=no
4287 BUILD_SQL=no
4288
4289 BUILD_ACCESSLOG=no
4290 BUILD_AUDITLOG=no
4291 BUILD_CONSTRAINT=no
4292 BUILD_DDS=no
4293 BUILD_DENYOP=no
4294 BUILD_DYNGROUP=no
4295 BUILD_DYNLIST=no
4296 BUILD_LASTMOD=no
4297 BUILD_PPOLICY=no
4298 BUILD_PROXYCACHE=no
4299 BUILD_REFINT=no
4300 BUILD_RETCODE=no
4301 BUILD_RWM=no
4302 BUILD_SEQMOD=no
4303 BUILD_SYNCPROV=no
4304 BUILD_TRANSLUCENT=no
4305 BUILD_UNIQUE=no
4306 BUILD_VALSORT=no
4307
4308 SLAPD_STATIC_OVERLAYS=
4309 SLAPD_DYNAMIC_OVERLAYS=
4310
4311 SLAPD_MODULES_LDFLAGS=
4312 SLAPD_MODULES_CPPFLAGS=
4313
4314 SLAPD_STATIC_BACKENDS=back-ldif
4315 SLAPD_DYNAMIC_BACKENDS=
4316
4317 SLAPD_PERL_LDFLAGS=
4318 MOD_PERL_LDFLAGS=
4319 PERL_CPPFLAGS=
4320
4321 SLAPD_SQL_LDFLAGS=
4322 SLAPD_SQL_LIBS=
4323 SLAPD_SQL_INCLUDES=
4324
4325 KRB4_LIBS=
4326 KRB5_LIBS=
4327 SASL_LIBS=
4328 TLS_LIBS=
4329 MODULES_LIBS=
4330 SLAPI_LIBS=
4331 LIBSLAPI=
4332 LIBSLAPITOOLS=
4333 AUTH_LIBS=
4334 ICU_LIBS=
4335
4336 SLAPD_SLP_LIBS=
4337 SLAPD_GMP_LIBS=
4338
4339
4340
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_MKVERSION 1
4343 _ACEOF
4344
4345
4346
4347
4348 ol_aix_threads=no
4349 case "$target" in
4350 *-*-aix*)       if test -z "$CC" ; then
4351                 case "$ol_with_threads" in
4352                 auto | yes |  posix) ol_aix_threads=yes ;;
4353                 esac
4354         fi
4355 ;;
4356 esac
4357
4358 if test $ol_aix_threads = yes ; then
4359         if test -z "${CC}" ; then
4360                 for ac_prog in cc_r xlc_r cc
4361 do
4362   # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_CC+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   if test -n "$CC"; then
4370   ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377   for ac_exec_ext in '' $ac_executable_extensions; do
4378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4379     ac_cv_prog_CC="$ac_prog"
4380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 CC=$ac_cv_prog_CC
4390 if test -n "$CC"; then
4391   { echo "$as_me:$LINENO: result: $CC" >&5
4392 echo "${ECHO_T}$CC" >&6; }
4393 else
4394   { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4396 fi
4397
4398
4399   test -n "$CC" && break
4400 done
4401
4402
4403                 if test "$CC" = cc ; then
4404                                                 if test $ol_with_threads != auto ; then
4405                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4406 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4407    { (exit 1); exit 1; }; }
4408                         else
4409                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4410 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4411                         fi
4412                         ol_with_threads=no
4413                 fi
4414         fi
4415
4416         case ${CC} in cc_r | xlc_r)
4417                 ol_with_threads=posix
4418                 ol_cv_pthread_create=yes
4419                 ;;
4420         esac
4421 fi
4422
4423 if test -z "${CC}"; then
4424         for ac_prog in cc gcc
4425 do
4426   # Extract the first word of "$ac_prog", so it can be a program name with args.
4427 set dummy $ac_prog; ac_word=$2
4428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430 if test "${ac_cv_prog_CC+set}" = set; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   if test -n "$CC"; then
4434   ac_cv_prog_CC="$CC" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441   for ac_exec_ext in '' $ac_executable_extensions; do
4442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4443     ac_cv_prog_CC="$ac_prog"
4444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 CC=$ac_cv_prog_CC
4454 if test -n "$CC"; then
4455   { echo "$as_me:$LINENO: result: $CC" >&5
4456 echo "${ECHO_T}$CC" >&6; }
4457 else
4458   { echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; }
4460 fi
4461
4462
4463   test -n "$CC" && break
4464 done
4465 test -n "$CC" || CC="missing"
4466
4467
4468         if test "${CC}" = "missing" ; then
4469                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4470 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4471    { (exit 1); exit 1; }; }
4472         fi
4473 fi
4474
4475 if test -z "${AR}"; then
4476         for ac_prog in ar gar
4477 do
4478   # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_AR+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   if test -n "$AR"; then
4486   ac_cv_prog_AR="$AR" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     ac_cv_prog_AR="$ac_prog"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503 fi
4504 fi
4505 AR=$ac_cv_prog_AR
4506 if test -n "$AR"; then
4507   { echo "$as_me:$LINENO: result: $AR" >&5
4508 echo "${ECHO_T}$AR" >&6; }
4509 else
4510   { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4512 fi
4513
4514
4515   test -n "$AR" && break
4516 done
4517 test -n "$AR" || AR="missing"
4518
4519
4520         if test "${AR}" = "missing" ; then
4521                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4522 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4523    { (exit 1); exit 1; }; }
4524         fi
4525 fi
4526
4527
4528
4529
4530
4531 # Check whether --enable-fast-install was given.
4532 if test "${enable_fast_install+set}" = set; then
4533   enableval=$enable_fast_install; p=${PACKAGE-default}
4534     case $enableval in
4535     yes) enable_fast_install=yes ;;
4536     no) enable_fast_install=no ;;
4537     *)
4538       enable_fast_install=no
4539       # Look at the argument we got.  We use all the common list separators.
4540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4541       for pkg in $enableval; do
4542         IFS="$lt_save_ifs"
4543         if test "X$pkg" = "X$p"; then
4544           enable_fast_install=yes
4545         fi
4546       done
4547       IFS="$lt_save_ifs"
4548       ;;
4549     esac
4550 else
4551   enable_fast_install=yes
4552 fi
4553
4554
4555 DEPDIR="${am__leading_dot}deps"
4556
4557 ac_config_commands="$ac_config_commands depfiles"
4558
4559
4560 am_make=${MAKE-make}
4561 cat > confinc << 'END'
4562 am__doit:
4563         @echo done
4564 .PHONY: am__doit
4565 END
4566 # If we don't find an include directive, just comment out the code.
4567 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4568 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4569 am__include="#"
4570 am__quote=
4571 _am_result=none
4572 # First try GNU make style include.
4573 echo "include confinc" > confmf
4574 # We grep out `Entering directory' and `Leaving directory'
4575 # messages which can occur if `w' ends up in MAKEFLAGS.
4576 # In particular we don't look at `^make:' because GNU make might
4577 # be invoked under some other name (usually "gmake"), in which
4578 # case it prints its new name instead of `make'.
4579 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4580    am__include=include
4581    am__quote=
4582    _am_result=GNU
4583 fi
4584 # Now try BSD make style include.
4585 if test "$am__include" = "#"; then
4586    echo '.include "confinc"' > confmf
4587    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4588       am__include=.include
4589       am__quote="\""
4590       _am_result=BSD
4591    fi
4592 fi
4593
4594
4595 { echo "$as_me:$LINENO: result: $_am_result" >&5
4596 echo "${ECHO_T}$_am_result" >&6; }
4597 rm -f confinc confmf
4598
4599 # Check whether --enable-dependency-tracking was given.
4600 if test "${enable_dependency_tracking+set}" = set; then
4601   enableval=$enable_dependency_tracking;
4602 fi
4603
4604 if test "x$enable_dependency_tracking" != xno; then
4605   am_depcomp="$ac_aux_dir/depcomp"
4606   AMDEPBACKSLASH='\'
4607 fi
4608
4609
4610 if test "x$enable_dependency_tracking" != xno; then
4611   AMDEP_TRUE=
4612   AMDEP_FALSE='#'
4613 else
4614   AMDEP_TRUE='#'
4615   AMDEP_FALSE=
4616 fi
4617
4618
4619
4620 ac_ext=c
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625 if test -n "$ac_tool_prefix"; then
4626   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -n "$CC"; then
4634   ac_cv_prog_CC="$CC" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4643     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649 IFS=$as_save_IFS
4650
4651 fi
4652 fi
4653 CC=$ac_cv_prog_CC
4654 if test -n "$CC"; then
4655   { echo "$as_me:$LINENO: result: $CC" >&5
4656 echo "${ECHO_T}$CC" >&6; }
4657 else
4658   { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4660 fi
4661
4662
4663 fi
4664 if test -z "$ac_cv_prog_CC"; then
4665   ac_ct_CC=$CC
4666   # Extract the first word of "gcc", so it can be a program name with args.
4667 set dummy gcc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   if test -n "$ac_ct_CC"; then
4674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_prog_ac_ct_CC="gcc"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4694 if test -n "$ac_ct_CC"; then
4695   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4696 echo "${ECHO_T}$ac_ct_CC" >&6; }
4697 else
4698   { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700 fi
4701
4702   if test "x$ac_ct_CC" = x; then
4703     CC=""
4704   else
4705     case $cross_compiling:$ac_tool_warned in
4706 yes:)
4707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4708 whose name does not start with the host triplet.  If you think this
4709 configuration is useful to you, please write to autoconf@gnu.org." >&5
4710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4711 whose name does not start with the host triplet.  If you think this
4712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715     CC=$ac_ct_CC
4716   fi
4717 else
4718   CC="$ac_cv_prog_CC"
4719 fi
4720
4721 if test -z "$CC"; then
4722           if test -n "$ac_tool_prefix"; then
4723     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}cc; ac_word=$2
4725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730   if test -n "$CC"; then
4731   ac_cv_prog_CC="$CC" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     ac_cv_prog_CC="${ac_tool_prefix}cc"
4741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742     break 2
4743   fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 CC=$ac_cv_prog_CC
4751 if test -n "$CC"; then
4752   { echo "$as_me:$LINENO: result: $CC" >&5
4753 echo "${ECHO_T}$CC" >&6; }
4754 else
4755   { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4757 fi
4758
4759
4760   fi
4761 fi
4762 if test -z "$CC"; then
4763   # Extract the first word of "cc", so it can be a program name with args.
4764 set dummy cc; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_prog_CC+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   if test -n "$CC"; then
4771   ac_cv_prog_CC="$CC" # Let the user override the test.
4772 else
4773   ac_prog_rejected=no
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779   for ac_exec_ext in '' $ac_executable_extensions; do
4780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4781     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4782        ac_prog_rejected=yes
4783        continue
4784      fi
4785     ac_cv_prog_CC="cc"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793 if test $ac_prog_rejected = yes; then
4794   # We found a bogon in the path, so make sure we never use it.
4795   set dummy $ac_cv_prog_CC
4796   shift
4797   if test $# != 0; then
4798     # We chose a different compiler from the bogus one.
4799     # However, it has the same basename, so the bogon will be chosen
4800     # first if we set CC to just the basename; use the full file name.
4801     shift
4802     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4803   fi
4804 fi
4805 fi
4806 fi
4807 CC=$ac_cv_prog_CC
4808 if test -n "$CC"; then
4809   { echo "$as_me:$LINENO: result: $CC" >&5
4810 echo "${ECHO_T}$CC" >&6; }
4811 else
4812   { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 fi
4815
4816
4817 fi
4818 if test -z "$CC"; then
4819   if test -n "$ac_tool_prefix"; then
4820   for ac_prog in cl.exe
4821   do
4822     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_CC+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test -n "$CC"; then
4830   ac_cv_prog_CC="$CC" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 CC=$ac_cv_prog_CC
4850 if test -n "$CC"; then
4851   { echo "$as_me:$LINENO: result: $CC" >&5
4852 echo "${ECHO_T}$CC" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859     test -n "$CC" && break
4860   done
4861 fi
4862 if test -z "$CC"; then
4863   ac_ct_CC=$CC
4864   for ac_prog in cl.exe
4865 do
4866   # Extract the first word of "$ac_prog", so it can be a program name with args.
4867 set dummy $ac_prog; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   if test -n "$ac_ct_CC"; then
4874   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_prog_ac_ct_CC="$ac_prog"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4896 echo "${ECHO_T}$ac_ct_CC" >&6; }
4897 else
4898   { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4900 fi
4901
4902
4903   test -n "$ac_ct_CC" && break
4904 done
4905
4906   if test "x$ac_ct_CC" = x; then
4907     CC=""
4908   else
4909     case $cross_compiling:$ac_tool_warned in
4910 yes:)
4911 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4912 whose name does not start with the host triplet.  If you think this
4913 configuration is useful to you, please write to autoconf@gnu.org." >&5
4914 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4915 whose name does not start with the host triplet.  If you think this
4916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4917 ac_tool_warned=yes ;;
4918 esac
4919     CC=$ac_ct_CC
4920   fi
4921 fi
4922
4923 fi
4924
4925
4926 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4927 See \`config.log' for more details." >&5
4928 echo "$as_me: error: no acceptable C compiler found in \$PATH
4929 See \`config.log' for more details." >&2;}
4930    { (exit 1); exit 1; }; }
4931
4932 # Provide some information about the compiler.
4933 echo "$as_me:$LINENO: checking for C compiler version" >&5
4934 ac_compiler=`set X $ac_compile; echo $2`
4935 { (ac_try="$ac_compiler --version >&5"
4936 case "(($ac_try" in
4937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938   *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941   (eval "$ac_compiler --version >&5") 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }
4945 { (ac_try="$ac_compiler -v >&5"
4946 case "(($ac_try" in
4947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948   *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951   (eval "$ac_compiler -v >&5") 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }
4955 { (ac_try="$ac_compiler -V >&5"
4956 case "(($ac_try" in
4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958   *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961   (eval "$ac_compiler -V >&5") 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }
4965
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972
4973 int
4974 main ()
4975 {
4976
4977   ;
4978   return 0;
4979 }
4980 _ACEOF
4981 ac_clean_files_save=$ac_clean_files
4982 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4983 # Try to create an executable without -o first, disregard a.out.
4984 # It will help us diagnose broken compilers, and finding out an intuition
4985 # of exeext.
4986 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4987 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4989 #
4990 # List of possible output files, starting from the most likely.
4991 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4992 # only as a last resort.  b.out is created by i960 compilers.
4993 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4994 #
4995 # The IRIX 6 linker writes into existing files which may not be
4996 # executable, retaining their permissions.  Remove them first so a
4997 # subsequent execution test works.
4998 ac_rmfiles=
4999 for ac_file in $ac_files
5000 do
5001   case $ac_file in
5002     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5003     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5004   esac
5005 done
5006 rm -f $ac_rmfiles
5007
5008 if { (ac_try="$ac_link_default"
5009 case "(($ac_try" in
5010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011   *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014   (eval "$ac_link_default") 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); }; then
5018   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5019 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5020 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5021 # so that the user can short-circuit this test for compilers unknown to
5022 # Autoconf.
5023 for ac_file in $ac_files
5024 do
5025   test -f "$ac_file" || continue
5026   case $ac_file in
5027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5028         ;;
5029     [ab].out )
5030         # We found the default executable, but exeext='' is most
5031         # certainly right.
5032         break;;
5033     *.* )
5034         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5035         then :; else
5036            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5037         fi
5038         # We set ac_cv_exeext here because the later test for it is not
5039         # safe: cross compilers may not add the suffix if given an `-o'
5040         # argument, so we may need to know it at that point already.
5041         # Even if this section looks crufty: it has the advantage of
5042         # actually working.
5043         break;;
5044     * )
5045         break;;
5046   esac
5047 done
5048 test "$ac_cv_exeext" = no && ac_cv_exeext=
5049
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5055 See \`config.log' for more details." >&5
5056 echo "$as_me: error: C compiler cannot create executables
5057 See \`config.log' for more details." >&2;}
5058    { (exit 77); exit 77; }; }
5059 fi
5060
5061 ac_exeext=$ac_cv_exeext
5062 { echo "$as_me:$LINENO: result: $ac_file" >&5
5063 echo "${ECHO_T}$ac_file" >&6; }
5064
5065 # Check that the compiler produces executables we can run.  If not, either
5066 # the compiler is broken, or we cross compile.
5067 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5068 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5069 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5070 # If not cross compiling, check that we can run a simple program.
5071 if test "$cross_compiling" != yes; then
5072   if { ac_try='./$ac_file'
5073   { (case "(($ac_try" in
5074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075   *) ac_try_echo=$ac_try;;
5076 esac
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078   (eval "$ac_try") 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; }; then
5082     cross_compiling=no
5083   else
5084     if test "$cross_compiling" = maybe; then
5085         cross_compiling=yes
5086     else
5087         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5088 If you meant to cross compile, use \`--host'.
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: cannot run C compiled programs.
5091 If you meant to cross compile, use \`--host'.
5092 See \`config.log' for more details." >&2;}
5093    { (exit 1); exit 1; }; }
5094     fi
5095   fi
5096 fi
5097 { echo "$as_me:$LINENO: result: yes" >&5
5098 echo "${ECHO_T}yes" >&6; }
5099
5100 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5101 ac_clean_files=$ac_clean_files_save
5102 # Check that the compiler produces executables we can run.  If not, either
5103 # the compiler is broken, or we cross compile.
5104 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5105 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5106 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5107 echo "${ECHO_T}$cross_compiling" >&6; }
5108
5109 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5110 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5111 if { (ac_try="$ac_link"
5112 case "(($ac_try" in
5113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114   *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117   (eval "$ac_link") 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; then
5121   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5122 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5123 # work properly (i.e., refer to `conftest.exe'), while it won't with
5124 # `rm'.
5125 for ac_file in conftest.exe conftest conftest.*; do
5126   test -f "$ac_file" || continue
5127   case $ac_file in
5128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5129     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5130           break;;
5131     * ) break;;
5132   esac
5133 done
5134 else
5135   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5136 See \`config.log' for more details." >&5
5137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5138 See \`config.log' for more details." >&2;}
5139    { (exit 1); exit 1; }; }
5140 fi
5141
5142 rm -f conftest$ac_cv_exeext
5143 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5144 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5145
5146 rm -f conftest.$ac_ext
5147 EXEEXT=$ac_cv_exeext
5148 ac_exeext=$EXEEXT
5149 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5151 if test "${ac_cv_objext+set}" = set; then
5152   echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154   cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160
5161 int
5162 main ()
5163 {
5164
5165   ;
5166   return 0;
5167 }
5168 _ACEOF
5169 rm -f conftest.o conftest.obj
5170 if { (ac_try="$ac_compile"
5171 case "(($ac_try" in
5172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173   *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176   (eval "$ac_compile") 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; then
5180   for ac_file in conftest.o conftest.obj conftest.*; do
5181   test -f "$ac_file" || continue;
5182   case $ac_file in
5183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5184     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5185        break;;
5186   esac
5187 done
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5193 See \`config.log' for more details." >&5
5194 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5195 See \`config.log' for more details." >&2;}
5196    { (exit 1); exit 1; }; }
5197 fi
5198
5199 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5200 fi
5201 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5202 echo "${ECHO_T}$ac_cv_objext" >&6; }
5203 OBJEXT=$ac_cv_objext
5204 ac_objext=$OBJEXT
5205 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5206 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5207 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216
5217 int
5218 main ()
5219 {
5220 #ifndef __GNUC__
5221        choke me
5222 #endif
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compile") 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5243   { (case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248   (eval "$ac_try") 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; } &&
5252          { ac_try='test -s conftest.$ac_objext'
5253   { (case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258   (eval "$ac_try") 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }; }; then
5262   ac_compiler_gnu=yes
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267         ac_compiler_gnu=no
5268 fi
5269
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5272
5273 fi
5274 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5275 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5276 GCC=`test $ac_compiler_gnu = yes && echo yes`
5277 ac_test_CFLAGS=${CFLAGS+set}
5278 ac_save_CFLAGS=$CFLAGS
5279 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5280 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_cc_g+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   ac_save_c_werror_flag=$ac_c_werror_flag
5285    ac_c_werror_flag=yes
5286    ac_cv_prog_cc_g=no
5287    CFLAGS="-g"
5288    cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294
5295 int
5296 main ()
5297 {
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (ac_try="$ac_compile"
5305 case "(($ac_try" in
5306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307   *) ac_try_echo=$ac_try;;
5308 esac
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310   (eval "$ac_compile") 2>conftest.er1
5311   ac_status=$?
5312   grep -v '^ *+' conftest.er1 >conftest.err
5313   rm -f conftest.er1
5314   cat conftest.err >&5
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5318   { (case "(($ac_try" in
5319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320   *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323   (eval "$ac_try") 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; } &&
5327          { ac_try='test -s conftest.$ac_objext'
5328   { (case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_try") 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; }; then
5337   ac_cv_prog_cc_g=yes
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342         CFLAGS=""
5343       cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h.  */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349
5350 int
5351 main ()
5352 {
5353
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5360 case "(($ac_try" in
5361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362   *) ac_try_echo=$ac_try;;
5363 esac
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365   (eval "$ac_compile") 2>conftest.er1
5366   ac_status=$?
5367   grep -v '^ *+' conftest.er1 >conftest.err
5368   rm -f conftest.er1
5369   cat conftest.err >&5
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); } &&
5372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5373   { (case "(($ac_try" in
5374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375   *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378   (eval "$ac_try") 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); }; } &&
5382          { ac_try='test -s conftest.$ac_objext'
5383   { (case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388   (eval "$ac_try") 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; }; then
5392   :
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397         ac_c_werror_flag=$ac_save_c_werror_flag
5398          CFLAGS="-g"
5399          cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405
5406 int
5407 main ()
5408 {
5409
5410   ;
5411   return 0;
5412 }
5413 _ACEOF
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5416 case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421   (eval "$ac_compile") 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429   { (case "(($ac_try" in
5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431   *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434   (eval "$ac_try") 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; } &&
5438          { ac_try='test -s conftest.$ac_objext'
5439   { (case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444   (eval "$ac_try") 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }; }; then
5448   ac_cv_prog_cc_g=yes
5449 else
5450   echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453
5454 fi
5455
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 fi
5458
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463    ac_c_werror_flag=$ac_save_c_werror_flag
5464 fi
5465 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5467 if test "$ac_test_CFLAGS" = set; then
5468   CFLAGS=$ac_save_CFLAGS
5469 elif test $ac_cv_prog_cc_g = yes; then
5470   if test "$GCC" = yes; then
5471     CFLAGS="-g -O2"
5472   else
5473     CFLAGS="-g"
5474   fi
5475 else
5476   if test "$GCC" = yes; then
5477     CFLAGS="-O2"
5478   else
5479     CFLAGS=
5480   fi
5481 fi
5482 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5483 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5484 if test "${ac_cv_prog_cc_c89+set}" = set; then
5485   echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487   ac_cv_prog_cc_c89=no
5488 ac_save_CC=$CC
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495 #include <stdarg.h>
5496 #include <stdio.h>
5497 #include <sys/types.h>
5498 #include <sys/stat.h>
5499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5500 struct buf { int x; };
5501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5502 static char *e (p, i)
5503      char **p;
5504      int i;
5505 {
5506   return p[i];
5507 }
5508 static char *f (char * (*g) (char **, int), char **p, ...)
5509 {
5510   char *s;
5511   va_list v;
5512   va_start (v,p);
5513   s = g (p, va_arg (v,int));
5514   va_end (v);
5515   return s;
5516 }
5517
5518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5519    function prototypes and stuff, but not '\xHH' hex character constants.
5520    These don't provoke an error unfortunately, instead are silently treated
5521    as 'x'.  The following induces an error, until -std is added to get
5522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5523    array size at least.  It's necessary to write '\x00'==0 to get something
5524    that's true only with -std.  */
5525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5526
5527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5528    inside strings and character constants.  */
5529 #define FOO(x) 'x'
5530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5531
5532 int test (int i, double x);
5533 struct s1 {int (*f) (int a);};
5534 struct s2 {int (*f) (double a);};
5535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5536 int argc;
5537 char **argv;
5538 int
5539 main ()
5540 {
5541 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5547         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5548 do
5549   CC="$ac_save_CC $ac_arg"
5550   rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5552 case "(($ac_try" in
5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554   *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557   (eval "$ac_compile") 2>conftest.er1
5558   ac_status=$?
5559   grep -v '^ *+' conftest.er1 >conftest.err
5560   rm -f conftest.er1
5561   cat conftest.err >&5
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } &&
5564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5565   { (case "(($ac_try" in
5566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567   *) ac_try_echo=$ac_try;;
5568 esac
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570   (eval "$ac_try") 2>&5
5571   ac_status=$?
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); }; } &&
5574          { ac_try='test -s conftest.$ac_objext'
5575   { (case "(($ac_try" in
5576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577   *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580   (eval "$ac_try") 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   ac_cv_prog_cc_c89=$ac_arg
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589
5590 fi
5591
5592 rm -f core conftest.err conftest.$ac_objext
5593   test "x$ac_cv_prog_cc_c89" != "xno" && break
5594 done
5595 rm -f conftest.$ac_ext
5596 CC=$ac_save_CC
5597
5598 fi
5599 # AC_CACHE_VAL
5600 case "x$ac_cv_prog_cc_c89" in
5601   x)
5602     { echo "$as_me:$LINENO: result: none needed" >&5
5603 echo "${ECHO_T}none needed" >&6; } ;;
5604   xno)
5605     { echo "$as_me:$LINENO: result: unsupported" >&5
5606 echo "${ECHO_T}unsupported" >&6; } ;;
5607   *)
5608     CC="$CC $ac_cv_prog_cc_c89"
5609     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5610 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5611 esac
5612
5613
5614 ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619
5620 depcc="$CC"   am_compiler_list=
5621
5622 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5623 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5624 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5628   # We make a subdir and do the tests there.  Otherwise we can end up
5629   # making bogus files that we don't know about and never remove.  For
5630   # instance it was reported that on HP-UX the gcc test will end up
5631   # making a dummy file named `D' -- because `-MD' means `put the output
5632   # in D'.
5633   mkdir conftest.dir
5634   # Copy depcomp to subdir because otherwise we won't find it if we're
5635   # using a relative directory.
5636   cp "$am_depcomp" conftest.dir
5637   cd conftest.dir
5638   # We will build objects and dependencies in a subdirectory because
5639   # it helps to detect inapplicable dependency modes.  For instance
5640   # both Tru64's cc and ICC support -MD to output dependencies as a
5641   # side effect of compilation, but ICC will put the dependencies in
5642   # the current directory while Tru64 will put them in the object
5643   # directory.
5644   mkdir sub
5645
5646   am_cv_CC_dependencies_compiler_type=none
5647   if test "$am_compiler_list" = ""; then
5648      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5649   fi
5650   for depmode in $am_compiler_list; do
5651     # Setup a source with many dependencies, because some compilers
5652     # like to wrap large dependency lists on column 80 (with \), and
5653     # we should not choose a depcomp mode which is confused by this.
5654     #
5655     # We need to recreate these files for each test, as the compiler may
5656     # overwrite some of them when testing with obscure command lines.
5657     # This happens at least with the AIX C compiler.
5658     : > sub/conftest.c
5659     for i in 1 2 3 4 5 6; do
5660       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5661       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5662       # Solaris 8's {/usr,}/bin/sh.
5663       touch sub/conftst$i.h
5664     done
5665     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5666
5667     case $depmode in
5668     nosideeffect)
5669       # after this tag, mechanisms are not by side-effect, so they'll
5670       # only be used when explicitly requested
5671       if test "x$enable_dependency_tracking" = xyes; then
5672         continue
5673       else
5674         break
5675       fi
5676       ;;
5677     none) break ;;
5678     esac
5679     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5680     # mode.  It turns out that the SunPro C++ compiler does not properly
5681     # handle `-M -o', and we need to detect this.
5682     if depmode=$depmode \
5683        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5684        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5685        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5686          >/dev/null 2>conftest.err &&
5687        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5688        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5689        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5690       # icc doesn't choke on unknown options, it will just issue warnings
5691       # or remarks (even with -Werror).  So we grep stderr for any message
5692       # that says an option was ignored or not supported.
5693       # When given -MP, icc 7.0 and 7.1 complain thusly:
5694       #   icc: Command line warning: ignoring option '-M'; no argument required
5695       # The diagnosis changed in icc 8.0:
5696       #   icc: Command line remark: option '-MP' not supported
5697       if (grep 'ignoring option' conftest.err ||
5698           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5699         am_cv_CC_dependencies_compiler_type=$depmode
5700         break
5701       fi
5702     fi
5703   done
5704
5705   cd ..
5706   rm -rf conftest.dir
5707 else
5708   am_cv_CC_dependencies_compiler_type=none
5709 fi
5710
5711 fi
5712 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5713 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5714 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5715
5716
5717
5718 if
5719   test "x$enable_dependency_tracking" != xno \
5720   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5721   am__fastdepCC_TRUE=
5722   am__fastdepCC_FALSE='#'
5723 else
5724   am__fastdepCC_TRUE='#'
5725   am__fastdepCC_FALSE=
5726 fi
5727
5728
5729 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5730 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5731 if test "${lt_cv_path_SED+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   # Loop through the user's path and test for sed and gsed.
5735 # Then use that list of sed's as ones to test for truncation.
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741   for lt_ac_prog in sed gsed; do
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5744         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5745       fi
5746     done
5747   done
5748 done
5749 lt_ac_max=0
5750 lt_ac_count=0
5751 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5752 # along with /bin/sed that truncates output.
5753 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5754   test ! -f $lt_ac_sed && continue
5755   cat /dev/null > conftest.in
5756   lt_ac_count=0
5757   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5758   # Check for GNU sed and select it if it is found.
5759   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5760     lt_cv_path_SED=$lt_ac_sed
5761     break
5762   fi
5763   while true; do
5764     cat conftest.in conftest.in >conftest.tmp
5765     mv conftest.tmp conftest.in
5766     cp conftest.in conftest.nl
5767     echo >>conftest.nl
5768     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5769     cmp -s conftest.out conftest.nl || break
5770     # 10000 chars as input seems more than enough
5771     test $lt_ac_count -gt 10 && break
5772     lt_ac_count=`expr $lt_ac_count + 1`
5773     if test $lt_ac_count -gt $lt_ac_max; then
5774       lt_ac_max=$lt_ac_count
5775       lt_cv_path_SED=$lt_ac_sed
5776     fi
5777   done
5778 done
5779
5780 fi
5781
5782 SED=$lt_cv_path_SED
5783 { echo "$as_me:$LINENO: result: $SED" >&5
5784 echo "${ECHO_T}$SED" >&6; }
5785
5786 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5787 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_GREP+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   # Extract the first word of "grep ggrep" to use in msg output
5792 if test -z "$GREP"; then
5793 set dummy grep ggrep; ac_prog_name=$2
5794 if test "${ac_cv_path_GREP+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   ac_path_GREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_prog in grep ggrep; do
5805   for ac_exec_ext in '' $ac_executable_extensions; do
5806     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5807     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5808     # Check for GNU ac_path_GREP and select it if it is found.
5809   # Check for GNU $ac_path_GREP
5810 case `"$ac_path_GREP" --version 2>&1` in
5811 *GNU*)
5812   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5813 *)
5814   ac_count=0
5815   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5816   while :
5817   do
5818     cat "conftest.in" "conftest.in" >"conftest.tmp"
5819     mv "conftest.tmp" "conftest.in"
5820     cp "conftest.in" "conftest.nl"
5821     echo 'GREP' >> "conftest.nl"
5822     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824     ac_count=`expr $ac_count + 1`
5825     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5826       # Best one so far, save it but keep looking for a better one
5827       ac_cv_path_GREP="$ac_path_GREP"
5828       ac_path_GREP_max=$ac_count
5829     fi
5830     # 10*(2^10) chars as input seems more than enough
5831     test $ac_count -gt 10 && break
5832   done
5833   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834 esac
5835
5836
5837     $ac_path_GREP_found && break 3
5838   done
5839 done
5840
5841 done
5842 IFS=$as_save_IFS
5843
5844
5845 fi
5846
5847 GREP="$ac_cv_path_GREP"
5848 if test -z "$GREP"; then
5849   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5850 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5851    { (exit 1); exit 1; }; }
5852 fi
5853
5854 else
5855   ac_cv_path_GREP=$GREP
5856 fi
5857
5858
5859 fi
5860 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5861 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5862  GREP="$ac_cv_path_GREP"
5863
5864
5865 { echo "$as_me:$LINENO: checking for egrep" >&5
5866 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5867 if test "${ac_cv_path_EGREP+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5871    then ac_cv_path_EGREP="$GREP -E"
5872    else
5873      # Extract the first word of "egrep" to use in msg output
5874 if test -z "$EGREP"; then
5875 set dummy egrep; ac_prog_name=$2
5876 if test "${ac_cv_path_EGREP+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   ac_path_EGREP_found=false
5880 # Loop through the user's path and test for each of PROGNAME-LIST
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_prog in egrep; do
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5889     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5890     # Check for GNU ac_path_EGREP and select it if it is found.
5891   # Check for GNU $ac_path_EGREP
5892 case `"$ac_path_EGREP" --version 2>&1` in
5893 *GNU*)
5894   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5895 *)
5896   ac_count=0
5897   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5898   while :
5899   do
5900     cat "conftest.in" "conftest.in" >"conftest.tmp"
5901     mv "conftest.tmp" "conftest.in"
5902     cp "conftest.in" "conftest.nl"
5903     echo 'EGREP' >> "conftest.nl"
5904     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5905     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5906     ac_count=`expr $ac_count + 1`
5907     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5908       # Best one so far, save it but keep looking for a better one
5909       ac_cv_path_EGREP="$ac_path_EGREP"
5910       ac_path_EGREP_max=$ac_count
5911     fi
5912     # 10*(2^10) chars as input seems more than enough
5913     test $ac_count -gt 10 && break
5914   done
5915   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5916 esac
5917
5918
5919     $ac_path_EGREP_found && break 3
5920   done
5921 done
5922
5923 done
5924 IFS=$as_save_IFS
5925
5926
5927 fi
5928
5929 EGREP="$ac_cv_path_EGREP"
5930 if test -z "$EGREP"; then
5931   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5933    { (exit 1); exit 1; }; }
5934 fi
5935
5936 else
5937   ac_cv_path_EGREP=$EGREP
5938 fi
5939
5940
5941    fi
5942 fi
5943 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5944 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5945  EGREP="$ac_cv_path_EGREP"
5946
5947
5948
5949 # Check whether --with-gnu-ld was given.
5950 if test "${with_gnu_ld+set}" = set; then
5951   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5952 else
5953   with_gnu_ld=no
5954 fi
5955
5956 ac_prog=ld
5957 if test "$GCC" = yes; then
5958   # Check if gcc -print-prog-name=ld gives a path.
5959   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5960 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5961   case $host in
5962   *-*-mingw*)
5963     # gcc leaves a trailing carriage return which upsets mingw
5964     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5965   *)
5966     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5967   esac
5968   case $ac_prog in
5969     # Accept absolute paths.
5970     [\\/]* | ?:[\\/]*)
5971       re_direlt='/[^/][^/]*/\.\./'
5972       # Canonicalize the pathname of ld
5973       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5974       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5975         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5976       done
5977       test -z "$LD" && LD="$ac_prog"
5978       ;;
5979   "")
5980     # If it fails, then pretend we aren't using GCC.
5981     ac_prog=ld
5982     ;;
5983   *)
5984     # If it is relative, then search for the first ld in PATH.
5985     with_gnu_ld=unknown
5986     ;;
5987   esac
5988 elif test "$with_gnu_ld" = yes; then
5989   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5990 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5991 else
5992   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5993 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5994 fi
5995 if test "${lt_cv_path_LD+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   if test -z "$LD"; then
5999   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000   for ac_dir in $PATH; do
6001     IFS="$lt_save_ifs"
6002     test -z "$ac_dir" && ac_dir=.
6003     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6004       lt_cv_path_LD="$ac_dir/$ac_prog"
6005       # Check to see if the program is GNU ld.  I'd rather use --version,
6006       # but apparently some variants of GNU ld only accept -v.
6007       # Break only if it was the GNU/non-GNU ld that we prefer.
6008       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6009       *GNU* | *'with BFD'*)
6010         test "$with_gnu_ld" != no && break
6011         ;;
6012       *)
6013         test "$with_gnu_ld" != yes && break
6014         ;;
6015       esac
6016     fi
6017   done
6018   IFS="$lt_save_ifs"
6019 else
6020   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6021 fi
6022 fi
6023
6024 LD="$lt_cv_path_LD"
6025 if test -n "$LD"; then
6026   { echo "$as_me:$LINENO: result: $LD" >&5
6027 echo "${ECHO_T}$LD" >&6; }
6028 else
6029   { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6031 fi
6032 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6033 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6034    { (exit 1); exit 1; }; }
6035 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6036 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6037 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6041 case `$LD -v 2>&1 </dev/null` in
6042 *GNU* | *'with BFD'*)
6043   lt_cv_prog_gnu_ld=yes
6044   ;;
6045 *)
6046   lt_cv_prog_gnu_ld=no
6047   ;;
6048 esac
6049 fi
6050 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6051 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6052 with_gnu_ld=$lt_cv_prog_gnu_ld
6053
6054
6055 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6056 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6057 if test "${lt_cv_ld_reload_flag+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   lt_cv_ld_reload_flag='-r'
6061 fi
6062 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6063 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6064 reload_flag=$lt_cv_ld_reload_flag
6065 case $reload_flag in
6066 "" | " "*) ;;
6067 *) reload_flag=" $reload_flag" ;;
6068 esac
6069 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6070 case $host_os in
6071   darwin*)
6072     if test "$GCC" = yes; then
6073       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6074     else
6075       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6076     fi
6077     ;;
6078 esac
6079
6080 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6081 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6082 if test "${lt_cv_path_NM+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   if test -n "$NM"; then
6086   # Let the user override the test.
6087   lt_cv_path_NM="$NM"
6088 else
6089   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6090   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6091     IFS="$lt_save_ifs"
6092     test -z "$ac_dir" && ac_dir=.
6093     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6094     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6095       # Check to see if the nm accepts a BSD-compat flag.
6096       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6097       #   nm: unknown option "B" ignored
6098       # Tru64's nm complains that /dev/null is an invalid object file
6099       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6100       */dev/null* | *'Invalid file or object type'*)
6101         lt_cv_path_NM="$tmp_nm -B"
6102         break
6103         ;;
6104       *)
6105         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6106         */dev/null*)
6107           lt_cv_path_NM="$tmp_nm -p"
6108           break
6109           ;;
6110         *)
6111           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6112           continue # so that we can try to find one that supports BSD flags
6113           ;;
6114         esac
6115       esac
6116     fi
6117   done
6118   IFS="$lt_save_ifs"
6119   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6120 fi
6121 fi
6122 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6123 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6124 NM="$lt_cv_path_NM"
6125
6126 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6127 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6128 LN_S=$as_ln_s
6129 if test "$LN_S" = "ln -s"; then
6130   { echo "$as_me:$LINENO: result: yes" >&5
6131 echo "${ECHO_T}yes" >&6; }
6132 else
6133   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6134 echo "${ECHO_T}no, using $LN_S" >&6; }
6135 fi
6136
6137 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6138 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6139 if test "${lt_cv_deplibs_check_method+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   lt_cv_file_magic_cmd='$MAGIC_CMD'
6143 lt_cv_file_magic_test_file=
6144 lt_cv_deplibs_check_method='unknown'
6145 # Need to set the preceding variable on all platforms that support
6146 # interlibrary dependencies.
6147 # 'none' -- dependencies not supported.
6148 # `unknown' -- same as none, but documents that we really don't know.
6149 # 'pass_all' -- all dependencies passed with no checks.
6150 # 'test_compile' -- check by making test program.
6151 # 'file_magic [[regex]]' -- check by looking for files in library path
6152 # which responds to the $file_magic_cmd with a given extended regex.
6153 # If you have `file' or equivalent on your system and you're not sure
6154 # whether `pass_all' will *always* work, you probably want this one.
6155
6156 case $host_os in
6157 aix4* | aix5*)
6158   lt_cv_deplibs_check_method=pass_all
6159   ;;
6160
6161 beos*)
6162   lt_cv_deplibs_check_method=pass_all
6163   ;;
6164
6165 bsdi[45]*)
6166   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6167   lt_cv_file_magic_cmd='/usr/bin/file -L'
6168   lt_cv_file_magic_test_file=/shlib/libc.so
6169   ;;
6170
6171 cygwin*)
6172   # func_win32_libid is a shell function defined in ltmain.sh
6173   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6174   lt_cv_file_magic_cmd='func_win32_libid'
6175   ;;
6176
6177 mingw* | pw32*)
6178   # Base MSYS/MinGW do not provide the 'file' command needed by
6179   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6180   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6181   lt_cv_file_magic_cmd='$OBJDUMP -f'
6182   ;;
6183
6184 darwin* | rhapsody*)
6185   lt_cv_deplibs_check_method=pass_all
6186   ;;
6187
6188 freebsd* | kfreebsd*-gnu | dragonfly*)
6189   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6190     case $host_cpu in
6191     i*86 )
6192       # Not sure whether the presence of OpenBSD here was a mistake.
6193       # Let's accept both of them until this is cleared up.
6194       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6195       lt_cv_file_magic_cmd=/usr/bin/file
6196       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6197       ;;
6198     esac
6199   else
6200     lt_cv_deplibs_check_method=pass_all
6201   fi
6202   ;;
6203
6204 gnu*)
6205   lt_cv_deplibs_check_method=pass_all
6206   ;;
6207
6208 hpux10.20* | hpux11*)
6209   lt_cv_file_magic_cmd=/usr/bin/file
6210   case $host_cpu in
6211   ia64*)
6212     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6213     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6214     ;;
6215   hppa*64*)
6216     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]'
6217     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6218     ;;
6219   *)
6220     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6221     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6222     ;;
6223   esac
6224   ;;
6225
6226 irix5* | irix6* | nonstopux*)
6227   case $LD in
6228   *-32|*"-32 ") libmagic=32-bit;;
6229   *-n32|*"-n32 ") libmagic=N32;;
6230   *-64|*"-64 ") libmagic=64-bit;;
6231   *) libmagic=never-match;;
6232   esac
6233   lt_cv_deplibs_check_method=pass_all
6234   ;;
6235
6236 # This must be Linux ELF.
6237 linux*)
6238   lt_cv_deplibs_check_method=pass_all
6239   ;;
6240
6241 netbsd*)
6242   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6243     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6244   else
6245     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6246   fi
6247   ;;
6248
6249 newos6*)
6250   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6251   lt_cv_file_magic_cmd=/usr/bin/file
6252   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6253   ;;
6254
6255 nto-qnx*)
6256   lt_cv_deplibs_check_method=unknown
6257   ;;
6258
6259 openbsd*)
6260   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6261     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6262   else
6263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6264   fi
6265   ;;
6266
6267 osf3* | osf4* | osf5*)
6268   lt_cv_deplibs_check_method=pass_all
6269   ;;
6270
6271 sco3.2v5*)
6272   lt_cv_deplibs_check_method=pass_all
6273   ;;
6274
6275 solaris*)
6276   lt_cv_deplibs_check_method=pass_all
6277   ;;
6278
6279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6280   case $host_vendor in
6281   motorola)
6282     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]'
6283     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6284     ;;
6285   ncr)
6286     lt_cv_deplibs_check_method=pass_all
6287     ;;
6288   sequent)
6289     lt_cv_file_magic_cmd='/bin/file'
6290     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6291     ;;
6292   sni)
6293     lt_cv_file_magic_cmd='/bin/file'
6294     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6295     lt_cv_file_magic_test_file=/lib/libc.so
6296     ;;
6297   siemens)
6298     lt_cv_deplibs_check_method=pass_all
6299     ;;
6300   esac
6301   ;;
6302
6303 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306 esac
6307
6308 fi
6309 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6310 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6311 file_magic_cmd=$lt_cv_file_magic_cmd
6312 deplibs_check_method=$lt_cv_deplibs_check_method
6313 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6314
6315
6316
6317
6318 # If no C compiler was specified, use CC.
6319 LTCC=${LTCC-"$CC"}
6320
6321 # Allow CC to be a program name with arguments.
6322 compiler=$CC
6323
6324
6325 # Check whether --enable-libtool-lock was given.
6326 if test "${enable_libtool_lock+set}" = set; then
6327   enableval=$enable_libtool_lock;
6328 fi
6329
6330 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6331
6332 # Some flags need to be propagated to the compiler or linker for good
6333 # libtool support.
6334 case $host in
6335 ia64-*-hpux*)
6336   # Find out which ABI we are using.
6337   echo 'int i;' > conftest.$ac_ext
6338   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339   (eval $ac_compile) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; then
6343     case `/usr/bin/file conftest.$ac_objext` in
6344     *ELF-32*)
6345       HPUX_IA64_MODE="32"
6346       ;;
6347     *ELF-64*)
6348       HPUX_IA64_MODE="64"
6349       ;;
6350     esac
6351   fi
6352   rm -rf conftest*
6353   ;;
6354 *-*-irix6*)
6355   # Find out which ABI we are using.
6356   echo '#line 6356 "configure"' > conftest.$ac_ext
6357   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358   (eval $ac_compile) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; then
6362    if test "$lt_cv_prog_gnu_ld" = yes; then
6363     case `/usr/bin/file conftest.$ac_objext` in
6364     *32-bit*)
6365       LD="${LD-ld} -melf32bsmip"
6366       ;;
6367     *N32*)
6368       LD="${LD-ld} -melf32bmipn32"
6369       ;;
6370     *64-bit*)
6371       LD="${LD-ld} -melf64bmip"
6372       ;;
6373     esac
6374    else
6375     case `/usr/bin/file conftest.$ac_objext` in
6376     *32-bit*)
6377       LD="${LD-ld} -32"
6378       ;;
6379     *N32*)
6380       LD="${LD-ld} -n32"
6381       ;;
6382     *64-bit*)
6383       LD="${LD-ld} -64"
6384       ;;
6385     esac
6386    fi
6387   fi
6388   rm -rf conftest*
6389   ;;
6390
6391 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6392   # Find out which ABI we are using.
6393   echo 'int i;' > conftest.$ac_ext
6394   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395   (eval $ac_compile) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; then
6399     case `/usr/bin/file conftest.o` in
6400     *32-bit*)
6401       case $host in
6402         x86_64-*linux*)
6403           LD="${LD-ld} -m elf_i386"
6404           ;;
6405         ppc64-*linux*|powerpc64-*linux*)
6406           LD="${LD-ld} -m elf32ppclinux"
6407           ;;
6408         s390x-*linux*)
6409           LD="${LD-ld} -m elf_s390"
6410           ;;
6411         sparc64-*linux*)
6412           LD="${LD-ld} -m elf32_sparc"
6413           ;;
6414       esac
6415       ;;
6416     *64-bit*)
6417       case $host in
6418         x86_64-*linux*)
6419           LD="${LD-ld} -m elf_x86_64"
6420           ;;
6421         ppc*-*linux*|powerpc*-*linux*)
6422           LD="${LD-ld} -m elf64ppc"
6423           ;;
6424         s390*-*linux*)
6425           LD="${LD-ld} -m elf64_s390"
6426           ;;
6427         sparc*-*linux*)
6428           LD="${LD-ld} -m elf64_sparc"
6429           ;;
6430       esac
6431       ;;
6432     esac
6433   fi
6434   rm -rf conftest*
6435   ;;
6436
6437 *-*-sco3.2v5*)
6438   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6439   SAVE_CFLAGS="$CFLAGS"
6440   CFLAGS="$CFLAGS -belf"
6441   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6442 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6443 if test "${lt_cv_cc_needs_belf+set}" = set; then
6444   echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446   ac_ext=c
6447 ac_cpp='$CPP $CPPFLAGS'
6448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6451
6452      cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458
6459 int
6460 main ()
6461 {
6462
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (ac_try="$ac_link"
6469 case "(($ac_try" in
6470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471   *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474   (eval "$ac_link") 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6482   { (case "(($ac_try" in
6483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484   *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487   (eval "$ac_try") 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); }; } &&
6491          { ac_try='test -s conftest$ac_exeext'
6492   { (case "(($ac_try" in
6493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494   *) ac_try_echo=$ac_try;;
6495 esac
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497   (eval "$ac_try") 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   lt_cv_cc_needs_belf=yes
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506         lt_cv_cc_needs_belf=no
6507 fi
6508
6509 rm -f core conftest.err conftest.$ac_objext \
6510       conftest$ac_exeext conftest.$ac_ext
6511      ac_ext=c
6512 ac_cpp='$CPP $CPPFLAGS'
6513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516
6517 fi
6518 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6519 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6520   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6521     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6522     CFLAGS="$SAVE_CFLAGS"
6523   fi
6524   ;;
6525 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6526   if test -n "$ac_tool_prefix"; then
6527   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6528 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   if test -n "$DLLTOOL"; then
6535   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542   for ac_exec_ext in '' $ac_executable_extensions; do
6543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 DLLTOOL=$ac_cv_prog_DLLTOOL
6555 if test -n "$DLLTOOL"; then
6556   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6557 echo "${ECHO_T}$DLLTOOL" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6561 fi
6562
6563
6564 fi
6565 if test -z "$ac_cv_prog_DLLTOOL"; then
6566   ac_ct_DLLTOOL=$DLLTOOL
6567   # Extract the first word of "dlltool", so it can be a program name with args.
6568 set dummy dlltool; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   if test -n "$ac_ct_DLLTOOL"; then
6575   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582   for ac_exec_ext in '' $ac_executable_extensions; do
6583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6584     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6595 if test -n "$ac_ct_DLLTOOL"; then
6596   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6597 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603   if test "x$ac_ct_DLLTOOL" = x; then
6604     DLLTOOL="false"
6605   else
6606     case $cross_compiling:$ac_tool_warned in
6607 yes:)
6608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6609 whose name does not start with the host triplet.  If you think this
6610 configuration is useful to you, please write to autoconf@gnu.org." >&5
6611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet.  If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616     DLLTOOL=$ac_ct_DLLTOOL
6617   fi
6618 else
6619   DLLTOOL="$ac_cv_prog_DLLTOOL"
6620 fi
6621
6622   if test -n "$ac_tool_prefix"; then
6623   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}as; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_prog_AS+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   if test -n "$AS"; then
6631   ac_cv_prog_AS="$AS" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638   for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_prog_AS="${ac_tool_prefix}as"
6641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 AS=$ac_cv_prog_AS
6651 if test -n "$AS"; then
6652   { echo "$as_me:$LINENO: result: $AS" >&5
6653 echo "${ECHO_T}$AS" >&6; }
6654 else
6655   { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$ac_cv_prog_AS"; then
6662   ac_ct_AS=$AS
6663   # Extract the first word of "as", so it can be a program name with args.
6664 set dummy as; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   if test -n "$ac_ct_AS"; then
6671   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_prog_ac_ct_AS="as"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6691 if test -n "$ac_ct_AS"; then
6692   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6693 echo "${ECHO_T}$ac_ct_AS" >&6; }
6694 else
6695   { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6697 fi
6698
6699   if test "x$ac_ct_AS" = x; then
6700     AS="false"
6701   else
6702     case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&5
6707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet.  If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712     AS=$ac_ct_AS
6713   fi
6714 else
6715   AS="$ac_cv_prog_AS"
6716 fi
6717
6718   if test -n "$ac_tool_prefix"; then
6719   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$OBJDUMP"; then
6727   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 OBJDUMP=$ac_cv_prog_OBJDUMP
6747 if test -n "$OBJDUMP"; then
6748   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6749 echo "${ECHO_T}$OBJDUMP" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_OBJDUMP"; then
6758   ac_ct_OBJDUMP=$OBJDUMP
6759   # Extract the first word of "objdump", so it can be a program name with args.
6760 set dummy objdump; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$ac_ct_OBJDUMP"; then
6767   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6787 if test -n "$ac_ct_OBJDUMP"; then
6788   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6789 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795   if test "x$ac_ct_OBJDUMP" = x; then
6796     OBJDUMP="false"
6797   else
6798     case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet.  If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     OBJDUMP=$ac_ct_OBJDUMP
6809   fi
6810 else
6811   OBJDUMP="$ac_cv_prog_OBJDUMP"
6812 fi
6813
6814   ;;
6815
6816 esac
6817
6818 need_locks="$enable_libtool_lock"
6819
6820
6821 ac_ext=c
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6827 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6828 # On Suns, sometimes $CPP names a directory.
6829 if test -n "$CPP" && test -d "$CPP"; then
6830   CPP=
6831 fi
6832 if test -z "$CPP"; then
6833   if test "${ac_cv_prog_CPP+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836       # Double quotes because CPP needs to be expanded
6837     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6838     do
6839       ac_preproc_ok=false
6840 for ac_c_preproc_warn_flag in '' yes
6841 do
6842   # Use a header file that comes with gcc, so configuring glibc
6843   # with a fresh cross-compiler works.
6844   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6845   # <limits.h> exists even on freestanding compilers.
6846   # On the NeXT, cc -E runs the code through the compiler's parser,
6847   # not just through cpp. "Syntax error" is here to catch this case.
6848   cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h.  */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h.  */
6854 #ifdef __STDC__
6855 # include <limits.h>
6856 #else
6857 # include <assert.h>
6858 #endif
6859                      Syntax error
6860 _ACEOF
6861 if { (ac_try="$ac_cpp conftest.$ac_ext"
6862 case "(($ac_try" in
6863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864   *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6868   ac_status=$?
6869   grep -v '^ *+' conftest.er1 >conftest.err
6870   rm -f conftest.er1
6871   cat conftest.err >&5
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); } >/dev/null; then
6874   if test -s conftest.err; then
6875     ac_cpp_err=$ac_c_preproc_warn_flag
6876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6877   else
6878     ac_cpp_err=
6879   fi
6880 else
6881   ac_cpp_err=yes
6882 fi
6883 if test -z "$ac_cpp_err"; then
6884   :
6885 else
6886   echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889   # Broken: fails on valid input.
6890 continue
6891 fi
6892
6893 rm -f conftest.err conftest.$ac_ext
6894
6895   # OK, works on sane cases.  Now check whether nonexistent headers
6896   # can be detected and how.
6897   cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903 #include <ac_nonexistent.h>
6904 _ACEOF
6905 if { (ac_try="$ac_cpp conftest.$ac_ext"
6906 case "(($ac_try" in
6907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908   *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } >/dev/null; then
6918   if test -s conftest.err; then
6919     ac_cpp_err=$ac_c_preproc_warn_flag
6920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6921   else
6922     ac_cpp_err=
6923   fi
6924 else
6925   ac_cpp_err=yes
6926 fi
6927 if test -z "$ac_cpp_err"; then
6928   # Broken: success on invalid input.
6929 continue
6930 else
6931   echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6933
6934   # Passes both tests.
6935 ac_preproc_ok=:
6936 break
6937 fi
6938
6939 rm -f conftest.err conftest.$ac_ext
6940
6941 done
6942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6943 rm -f conftest.err conftest.$ac_ext
6944 if $ac_preproc_ok; then
6945   break
6946 fi
6947
6948     done
6949     ac_cv_prog_CPP=$CPP
6950
6951 fi
6952   CPP=$ac_cv_prog_CPP
6953 else
6954   ac_cv_prog_CPP=$CPP
6955 fi
6956 { echo "$as_me:$LINENO: result: $CPP" >&5
6957 echo "${ECHO_T}$CPP" >&6; }
6958 ac_preproc_ok=false
6959 for ac_c_preproc_warn_flag in '' yes
6960 do
6961   # Use a header file that comes with gcc, so configuring glibc
6962   # with a fresh cross-compiler works.
6963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6964   # <limits.h> exists even on freestanding compilers.
6965   # On the NeXT, cc -E runs the code through the compiler's parser,
6966   # not just through cpp. "Syntax error" is here to catch this case.
6967   cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 #ifdef __STDC__
6974 # include <limits.h>
6975 #else
6976 # include <assert.h>
6977 #endif
6978                      Syntax error
6979 _ACEOF
6980 if { (ac_try="$ac_cpp conftest.$ac_ext"
6981 case "(($ac_try" in
6982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983   *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6987   ac_status=$?
6988   grep -v '^ *+' conftest.er1 >conftest.err
6989   rm -f conftest.er1
6990   cat conftest.err >&5
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } >/dev/null; then
6993   if test -s conftest.err; then
6994     ac_cpp_err=$ac_c_preproc_warn_flag
6995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6996   else
6997     ac_cpp_err=
6998   fi
6999 else
7000   ac_cpp_err=yes
7001 fi
7002 if test -z "$ac_cpp_err"; then
7003   :
7004 else
7005   echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7007
7008   # Broken: fails on valid input.
7009 continue
7010 fi
7011
7012 rm -f conftest.err conftest.$ac_ext
7013
7014   # OK, works on sane cases.  Now check whether nonexistent headers
7015   # can be detected and how.
7016   cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h.  */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h.  */
7022 #include <ac_nonexistent.h>
7023 _ACEOF
7024 if { (ac_try="$ac_cpp conftest.$ac_ext"
7025 case "(($ac_try" in
7026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027   *) ac_try_echo=$ac_try;;
7028 esac
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7031   ac_status=$?
7032   grep -v '^ *+' conftest.er1 >conftest.err
7033   rm -f conftest.er1
7034   cat conftest.err >&5
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); } >/dev/null; then
7037   if test -s conftest.err; then
7038     ac_cpp_err=$ac_c_preproc_warn_flag
7039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7040   else
7041     ac_cpp_err=
7042   fi
7043 else
7044   ac_cpp_err=yes
7045 fi
7046 if test -z "$ac_cpp_err"; then
7047   # Broken: success on invalid input.
7048 continue
7049 else
7050   echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053   # Passes both tests.
7054 ac_preproc_ok=:
7055 break
7056 fi
7057
7058 rm -f conftest.err conftest.$ac_ext
7059
7060 done
7061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7062 rm -f conftest.err conftest.$ac_ext
7063 if $ac_preproc_ok; then
7064   :
7065 else
7066   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7067 See \`config.log' for more details." >&5
7068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7069 See \`config.log' for more details." >&2;}
7070    { (exit 1); exit 1; }; }
7071 fi
7072
7073 ac_ext=c
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078
7079
7080 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7082 if test "${ac_cv_header_stdc+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #include <stdlib.h>
7092 #include <stdarg.h>
7093 #include <string.h>
7094 #include <float.h>
7095
7096 int
7097 main ()
7098 {
7099
7100   ;
7101   return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7106 case "(($ac_try" in
7107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108   *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111   (eval "$ac_compile") 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } &&
7118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7119   { (case "(($ac_try" in
7120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121   *) ac_try_echo=$ac_try;;
7122 esac
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124   (eval "$ac_try") 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; } &&
7128          { ac_try='test -s conftest.$ac_objext'
7129   { (case "(($ac_try" in
7130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131   *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134   (eval "$ac_try") 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; }; then
7138   ac_cv_header_stdc=yes
7139 else
7140   echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143         ac_cv_header_stdc=no
7144 fi
7145
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147
7148 if test $ac_cv_header_stdc = yes; then
7149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7150   cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156 #include <string.h>
7157
7158 _ACEOF
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160   $EGREP "memchr" >/dev/null 2>&1; then
7161   :
7162 else
7163   ac_cv_header_stdc=no
7164 fi
7165 rm -f conftest*
7166
7167 fi
7168
7169 if test $ac_cv_header_stdc = yes; then
7170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7171   cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <stdlib.h>
7178
7179 _ACEOF
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181   $EGREP "free" >/dev/null 2>&1; then
7182   :
7183 else
7184   ac_cv_header_stdc=no
7185 fi
7186 rm -f conftest*
7187
7188 fi
7189
7190 if test $ac_cv_header_stdc = yes; then
7191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7192   if test "$cross_compiling" = yes; then
7193   :
7194 else
7195   cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h.  */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h.  */
7201 #include <ctype.h>
7202 #include <stdlib.h>
7203 #if ((' ' & 0x0FF) == 0x020)
7204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7206 #else
7207 # define ISLOWER(c) \
7208                    (('a' <= (c) && (c) <= 'i') \
7209                      || ('j' <= (c) && (c) <= 'r') \
7210                      || ('s' <= (c) && (c) <= 'z'))
7211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7212 #endif
7213
7214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7215 int
7216 main ()
7217 {
7218   int i;
7219   for (i = 0; i < 256; i++)
7220     if (XOR (islower (i), ISLOWER (i))
7221         || toupper (i) != TOUPPER (i))
7222       return 2;
7223   return 0;
7224 }
7225 _ACEOF
7226 rm -f conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7228 case "(($ac_try" in
7229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230   *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233   (eval "$ac_link") 2>&5
7234   ac_status=$?
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7237   { (case "(($ac_try" in
7238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239   *) ac_try_echo=$ac_try;;
7240 esac
7241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7242   (eval "$ac_try") 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; }; then
7246   :
7247 else
7248   echo "$as_me: program exited with status $ac_status" >&5
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ( exit $ac_status )
7253 ac_cv_header_stdc=no
7254 fi
7255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7256 fi
7257
7258
7259 fi
7260 fi
7261 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7262 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7263 if test $ac_cv_header_stdc = yes; then
7264
7265 cat >>confdefs.h <<\_ACEOF
7266 #define STDC_HEADERS 1
7267 _ACEOF
7268
7269 fi
7270
7271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7282                   inttypes.h stdint.h unistd.h
7283 do
7284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290   cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 $ac_includes_default
7297
7298 #include <$ac_header>
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7302 case "(($ac_try" in
7303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304   *) ac_try_echo=$ac_try;;
7305 esac
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307   (eval "$ac_compile") 2>conftest.er1
7308   ac_status=$?
7309   grep -v '^ *+' conftest.er1 >conftest.err
7310   rm -f conftest.er1
7311   cat conftest.err >&5
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } &&
7314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7315   { (case "(($ac_try" in
7316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317   *) ac_try_echo=$ac_try;;
7318 esac
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320   (eval "$ac_try") 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); }; } &&
7324          { ac_try='test -s conftest.$ac_objext'
7325   { (case "(($ac_try" in
7326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327   *) ac_try_echo=$ac_try;;
7328 esac
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330   (eval "$ac_try") 2>&5
7331   ac_status=$?
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }; }; then
7334   eval "$as_ac_Header=yes"
7335 else
7336   echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7338
7339         eval "$as_ac_Header=no"
7340 fi
7341
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 fi
7344 ac_res=`eval echo '${'$as_ac_Header'}'`
7345                { echo "$as_me:$LINENO: result: $ac_res" >&5
7346 echo "${ECHO_T}$ac_res" >&6; }
7347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7348   cat >>confdefs.h <<_ACEOF
7349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7350 _ACEOF
7351
7352 fi
7353
7354 done
7355
7356
7357
7358 for ac_header in dlfcn.h
7359 do
7360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7362   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 fi
7367 ac_res=`eval echo '${'$as_ac_Header'}'`
7368                { echo "$as_me:$LINENO: result: $ac_res" >&5
7369 echo "${ECHO_T}$ac_res" >&6; }
7370 else
7371   # Is the header compilable?
7372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 $ac_includes_default
7381 #include <$ac_header>
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387   *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390   (eval "$ac_compile") 2>conftest.er1
7391   ac_status=$?
7392   grep -v '^ *+' conftest.er1 >conftest.err
7393   rm -f conftest.er1
7394   cat conftest.err >&5
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } &&
7397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7398   { (case "(($ac_try" in
7399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400   *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403   (eval "$ac_try") 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); }; } &&
7407          { ac_try='test -s conftest.$ac_objext'
7408   { (case "(($ac_try" in
7409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410   *) ac_try_echo=$ac_try;;
7411 esac
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413   (eval "$ac_try") 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   ac_header_compiler=yes
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422         ac_header_compiler=no
7423 fi
7424
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7427 echo "${ECHO_T}$ac_header_compiler" >&6; }
7428
7429 # Is the header present?
7430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h.  */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h.  */
7438 #include <$ac_header>
7439 _ACEOF
7440 if { (ac_try="$ac_cpp conftest.$ac_ext"
7441 case "(($ac_try" in
7442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443   *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } >/dev/null; then
7453   if test -s conftest.err; then
7454     ac_cpp_err=$ac_c_preproc_warn_flag
7455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7456   else
7457     ac_cpp_err=
7458   fi
7459 else
7460   ac_cpp_err=yes
7461 fi
7462 if test -z "$ac_cpp_err"; then
7463   ac_header_preproc=yes
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468   ac_header_preproc=no
7469 fi
7470
7471 rm -f conftest.err conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7473 echo "${ECHO_T}$ac_header_preproc" >&6; }
7474
7475 # So?  What about this header?
7476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7477   yes:no: )
7478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7482     ac_header_preproc=yes
7483     ;;
7484   no:yes:* )
7485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7497     ( cat <<\_ASBOX
7498 ## --------------------------------------------- ##
7499 ## Report this to <http://www.openldap.org/its/> ##
7500 ## --------------------------------------------- ##
7501 _ASBOX
7502      ) | sed "s/^/$as_me: WARNING:     /" >&2
7503     ;;
7504 esac
7505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   eval "$as_ac_Header=\$ac_header_preproc"
7511 fi
7512 ac_res=`eval echo '${'$as_ac_Header'}'`
7513                { echo "$as_me:$LINENO: result: $ac_res" >&5
7514 echo "${ECHO_T}$ac_res" >&6; }
7515
7516 fi
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518   cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 _ACEOF
7521
7522 fi
7523
7524 done
7525
7526
7527 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7528
7529 # find the maximum length of command line arguments
7530 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7531 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7532 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535     i=0
7536   teststring="ABCD"
7537
7538   case $build_os in
7539   msdosdjgpp*)
7540     # On DJGPP, this test can blow up pretty badly due to problems in libc
7541     # (any single argument exceeding 2000 bytes causes a buffer overrun
7542     # during glob expansion).  Even if it were fixed, the result of this
7543     # check would be larger than it should be.
7544     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7545     ;;
7546
7547   gnu*)
7548     # Under GNU Hurd, this test is not required because there is
7549     # no limit to the length of command line arguments.
7550     # Libtool will interpret -1 as no limit whatsoever
7551     lt_cv_sys_max_cmd_len=-1;
7552     ;;
7553
7554   cygwin* | mingw*)
7555     # On Win9x/ME, this test blows up -- it succeeds, but takes
7556     # about 5 minutes as the teststring grows exponentially.
7557     # Worse, since 9x/ME are not pre-emptively multitasking,
7558     # you end up with a "frozen" computer, even though with patience
7559     # the test eventually succeeds (with a max line length of 256k).
7560     # Instead, let's just punt: use the minimum linelength reported by
7561     # all of the supported platforms: 8192 (on NT/2K/XP).
7562     lt_cv_sys_max_cmd_len=8192;
7563     ;;
7564
7565   amigaos*)
7566     # On AmigaOS with pdksh, this test takes hours, literally.
7567     # So we just punt and use a minimum line length of 8192.
7568     lt_cv_sys_max_cmd_len=8192;
7569     ;;
7570
7571   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7572     # This has been around since 386BSD, at least.  Likely further.
7573     if test -x /sbin/sysctl; then
7574       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7575     elif test -x /usr/sbin/sysctl; then
7576       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7577     else
7578       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7579     fi
7580     # And add a safety zone
7581     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7582     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7583     ;;
7584   osf*)
7585     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7586     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7587     # nice to cause kernel panics so lets avoid the loop below.
7588     # First set a reasonable default.
7589     lt_cv_sys_max_cmd_len=16384
7590     #
7591     if test -x /sbin/sysconfig; then
7592       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7593         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7594       esac
7595     fi
7596     ;;
7597   *)
7598     # If test is not a shell built-in, we'll probably end up computing a
7599     # maximum length that is only half of the actual maximum length, but
7600     # we can't tell.
7601     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7602     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7603                = "XX$teststring") >/dev/null 2>&1 &&
7604             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7605             lt_cv_sys_max_cmd_len=$new_result &&
7606             test $i != 17 # 1/2 MB should be enough
7607     do
7608       i=`expr $i + 1`
7609       teststring=$teststring$teststring
7610     done
7611     teststring=
7612     # Add a significant safety factor because C++ compilers can tack on massive
7613     # amounts of additional arguments before passing them to the linker.
7614     # It appears as though 1/2 is a usable value.
7615     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7616     ;;
7617   esac
7618
7619 fi
7620
7621 if test -n $lt_cv_sys_max_cmd_len ; then
7622   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7623 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7624 else
7625   { echo "$as_me:$LINENO: result: none" >&5
7626 echo "${ECHO_T}none" >&6; }
7627 fi
7628
7629
7630
7631
7632 # Check for command to grab the raw symbol name followed by C symbol from nm.
7633 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7634 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7635 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638
7639 # These are sane defaults that work on at least a few old systems.
7640 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7641
7642 # Character class describing NM global symbol codes.
7643 symcode='[BCDEGRST]'
7644
7645 # Regexp to match symbols that can be accessed directly from C.
7646 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7647
7648 # Transform an extracted symbol line into a proper C declaration
7649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7650
7651 # Transform an extracted symbol line into symbol name and symbol address
7652 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'"
7653
7654 # Define system-specific variables.
7655 case $host_os in
7656 aix*)
7657   symcode='[BCDT]'
7658   ;;
7659 cygwin* | mingw* | pw32*)
7660   symcode='[ABCDGISTW]'
7661   ;;
7662 hpux*) # Its linker distinguishes data from code symbols
7663   if test "$host_cpu" = ia64; then
7664     symcode='[ABCDEGRST]'
7665   fi
7666   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7667   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'"
7668   ;;
7669 linux*)
7670   if test "$host_cpu" = ia64; then
7671     symcode='[ABCDGIRSTW]'
7672     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7673     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'"
7674   fi
7675   ;;
7676 irix* | nonstopux*)
7677   symcode='[BCDEGRST]'
7678   ;;
7679 osf*)
7680   symcode='[BCDEGQRST]'
7681   ;;
7682 solaris* | sysv5*)
7683   symcode='[BDRT]'
7684   ;;
7685 sysv4)
7686   symcode='[DFNSTU]'
7687   ;;
7688 esac
7689
7690 # Handle CRLF in mingw tool chain
7691 opt_cr=
7692 case $build_os in
7693 mingw*)
7694   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7695   ;;
7696 esac
7697
7698 # If we're using GNU nm, then use its standard symbol codes.
7699 case `$NM -V 2>&1` in
7700 *GNU* | *'with BFD'*)
7701   symcode='[ABCDGIRSTW]' ;;
7702 esac
7703
7704 # Try without a prefix undercore, then with it.
7705 for ac_symprfx in "" "_"; do
7706
7707   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7708   symxfrm="\\1 $ac_symprfx\\2 \\2"
7709
7710   # Write the raw and C identifiers.
7711   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7712
7713   # Check to see that the pipe works correctly.
7714   pipe_works=no
7715
7716   rm -f conftest*
7717   cat > conftest.$ac_ext <<EOF
7718 #ifdef __cplusplus
7719 extern "C" {
7720 #endif
7721 char nm_test_var;
7722 void nm_test_func(){}
7723 #ifdef __cplusplus
7724 }
7725 #endif
7726 int main(){nm_test_var='a';nm_test_func();return(0);}
7727 EOF
7728
7729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730   (eval $ac_compile) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; then
7734     # Now try to grab the symbols.
7735     nlist=conftest.nm
7736     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7737   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } && test -s "$nlist"; then
7741       # Try sorting and uniquifying the output.
7742       if sort "$nlist" | uniq > "$nlist"T; then
7743         mv -f "$nlist"T "$nlist"
7744       else
7745         rm -f "$nlist"T
7746       fi
7747
7748       # Make sure that we snagged all the symbols we need.
7749       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7750         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7751           cat <<EOF > conftest.$ac_ext
7752 #ifdef __cplusplus
7753 extern "C" {
7754 #endif
7755
7756 EOF
7757           # Now generate the symbol file.
7758           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7759
7760           cat <<EOF >> conftest.$ac_ext
7761 #if defined (__STDC__) && __STDC__
7762 # define lt_ptr_t void *
7763 #else
7764 # define lt_ptr_t char *
7765 # define const
7766 #endif
7767
7768 /* The mapping between symbol names and symbols. */
7769 const struct {
7770   const char *name;
7771   lt_ptr_t address;
7772 }
7773 lt_preloaded_symbols[] =
7774 {
7775 EOF
7776           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7777           cat <<\EOF >> conftest.$ac_ext
7778   {0, (lt_ptr_t) 0}
7779 };
7780
7781 #ifdef __cplusplus
7782 }
7783 #endif
7784 EOF
7785           # Now try linking the two files.
7786           mv conftest.$ac_objext conftstm.$ac_objext
7787           lt_save_LIBS="$LIBS"
7788           lt_save_CFLAGS="$CFLAGS"
7789           LIBS="conftstm.$ac_objext"
7790           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7791           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792   (eval $ac_link) 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7796             pipe_works=yes
7797           fi
7798           LIBS="$lt_save_LIBS"
7799           CFLAGS="$lt_save_CFLAGS"
7800         else
7801           echo "cannot find nm_test_func in $nlist" >&5
7802         fi
7803       else
7804         echo "cannot find nm_test_var in $nlist" >&5
7805       fi
7806     else
7807       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7808     fi
7809   else
7810     echo "$progname: failed program was:" >&5
7811     cat conftest.$ac_ext >&5
7812   fi
7813   rm -f conftest* conftst*
7814
7815   # Do not use the global_symbol_pipe unless it works.
7816   if test "$pipe_works" = yes; then
7817     break
7818   else
7819     lt_cv_sys_global_symbol_pipe=
7820   fi
7821 done
7822
7823 fi
7824
7825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7826   lt_cv_sys_global_symbol_to_cdecl=
7827 fi
7828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7829   { echo "$as_me:$LINENO: result: failed" >&5
7830 echo "${ECHO_T}failed" >&6; }
7831 else
7832   { echo "$as_me:$LINENO: result: ok" >&5
7833 echo "${ECHO_T}ok" >&6; }
7834 fi
7835
7836 { echo "$as_me:$LINENO: checking for objdir" >&5
7837 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7838 if test "${lt_cv_objdir+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   rm -f .libs 2>/dev/null
7842 mkdir .libs 2>/dev/null
7843 if test -d .libs; then
7844   lt_cv_objdir=.libs
7845 else
7846   # MS-DOS does not allow filenames that begin with a dot.
7847   lt_cv_objdir=_libs
7848 fi
7849 rmdir .libs 2>/dev/null
7850 fi
7851 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7852 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7853 objdir=$lt_cv_objdir
7854
7855
7856
7857
7858
7859 case $host_os in
7860 aix3*)
7861   # AIX sometimes has problems with the GCC collect2 program.  For some
7862   # reason, if we set the COLLECT_NAMES environment variable, the problems
7863   # vanish in a puff of smoke.
7864   if test "X${COLLECT_NAMES+set}" != Xset; then
7865     COLLECT_NAMES=
7866     export COLLECT_NAMES
7867   fi
7868   ;;
7869 esac
7870
7871 # Sed substitution that helps us do robust quoting.  It backslashifies
7872 # metacharacters that are still active within double-quoted strings.
7873 Xsed='sed -e 1s/^X//'
7874 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7875
7876 # Same as above, but do not quote variable references.
7877 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7878
7879 # Sed substitution to delay expansion of an escaped shell variable in a
7880 # double_quote_subst'ed string.
7881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7882
7883 # Sed substitution to avoid accidental globbing in evaled expressions
7884 no_glob_subst='s/\*/\\\*/g'
7885
7886 # Constants:
7887 rm="rm -f"
7888
7889 # Global variables:
7890 default_ofile=libtool
7891 can_build_shared=yes
7892
7893 # All known linkers require a `.a' archive for static linking (except MSVC,
7894 # which needs '.lib').
7895 libext=a
7896 ltmain="$ac_aux_dir/ltmain.sh"
7897 ofile="$default_ofile"
7898 with_gnu_ld="$lt_cv_prog_gnu_ld"
7899
7900 if test -n "$ac_tool_prefix"; then
7901   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}ar; ac_word=$2
7903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7905 if test "${ac_cv_prog_AR+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   if test -n "$AR"; then
7909   ac_cv_prog_AR="$AR" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916   for ac_exec_ext in '' $ac_executable_extensions; do
7917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7918     ac_cv_prog_AR="${ac_tool_prefix}ar"
7919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 AR=$ac_cv_prog_AR
7929 if test -n "$AR"; then
7930   { echo "$as_me:$LINENO: result: $AR" >&5
7931 echo "${ECHO_T}$AR" >&6; }
7932 else
7933   { echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6; }
7935 fi
7936
7937
7938 fi
7939 if test -z "$ac_cv_prog_AR"; then
7940   ac_ct_AR=$AR
7941   # Extract the first word of "ar", so it can be a program name with args.
7942 set dummy ar; ac_word=$2
7943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7945 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   if test -n "$ac_ct_AR"; then
7949   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954   IFS=$as_save_IFS
7955   test -z "$as_dir" && as_dir=.
7956   for ac_exec_ext in '' $ac_executable_extensions; do
7957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7958     ac_cv_prog_ac_ct_AR="ar"
7959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7960     break 2
7961   fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7969 if test -n "$ac_ct_AR"; then
7970   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7971 echo "${ECHO_T}$ac_ct_AR" >&6; }
7972 else
7973   { echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6; }
7975 fi
7976
7977   if test "x$ac_ct_AR" = x; then
7978     AR="false"
7979   else
7980     case $cross_compiling:$ac_tool_warned in
7981 yes:)
7982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7983 whose name does not start with the host triplet.  If you think this
7984 configuration is useful to you, please write to autoconf@gnu.org." >&5
7985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7986 whose name does not start with the host triplet.  If you think this
7987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7988 ac_tool_warned=yes ;;
7989 esac
7990     AR=$ac_ct_AR
7991   fi
7992 else
7993   AR="$ac_cv_prog_AR"
7994 fi
7995
7996 if test -n "$ac_tool_prefix"; then
7997   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8001 if test "${ac_cv_prog_RANLIB+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   if test -n "$RANLIB"; then
8005   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010   IFS=$as_save_IFS
8011   test -z "$as_dir" && as_dir=.
8012   for ac_exec_ext in '' $ac_executable_extensions; do
8013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8014     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016     break 2
8017   fi
8018 done
8019 done
8020 IFS=$as_save_IFS
8021
8022 fi
8023 fi
8024 RANLIB=$ac_cv_prog_RANLIB
8025 if test -n "$RANLIB"; then
8026   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8027 echo "${ECHO_T}$RANLIB" >&6; }
8028 else
8029   { echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6; }
8031 fi
8032
8033
8034 fi
8035 if test -z "$ac_cv_prog_RANLIB"; then
8036   ac_ct_RANLIB=$RANLIB
8037   # Extract the first word of "ranlib", so it can be a program name with args.
8038 set dummy ranlib; ac_word=$2
8039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   if test -n "$ac_ct_RANLIB"; then
8045   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050   IFS=$as_save_IFS
8051   test -z "$as_dir" && as_dir=.
8052   for ac_exec_ext in '' $ac_executable_extensions; do
8053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8054     ac_cv_prog_ac_ct_RANLIB="ranlib"
8055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056     break 2
8057   fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8065 if test -n "$ac_ct_RANLIB"; then
8066   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8067 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8068 else
8069   { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8071 fi
8072
8073   if test "x$ac_ct_RANLIB" = x; then
8074     RANLIB=":"
8075   else
8076     case $cross_compiling:$ac_tool_warned in
8077 yes:)
8078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8079 whose name does not start with the host triplet.  If you think this
8080 configuration is useful to you, please write to autoconf@gnu.org." >&5
8081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8082 whose name does not start with the host triplet.  If you think this
8083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8084 ac_tool_warned=yes ;;
8085 esac
8086     RANLIB=$ac_ct_RANLIB
8087   fi
8088 else
8089   RANLIB="$ac_cv_prog_RANLIB"
8090 fi
8091
8092 if test -n "$ac_tool_prefix"; then
8093   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8094 set dummy ${ac_tool_prefix}strip; ac_word=$2
8095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8097 if test "${ac_cv_prog_STRIP+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   if test -n "$STRIP"; then
8101   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108   for ac_exec_ext in '' $ac_executable_extensions; do
8109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8110     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115 done
8116 IFS=$as_save_IFS
8117
8118 fi
8119 fi
8120 STRIP=$ac_cv_prog_STRIP
8121 if test -n "$STRIP"; then
8122   { echo "$as_me:$LINENO: result: $STRIP" >&5
8123 echo "${ECHO_T}$STRIP" >&6; }
8124 else
8125   { echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6; }
8127 fi
8128
8129
8130 fi
8131 if test -z "$ac_cv_prog_STRIP"; then
8132   ac_ct_STRIP=$STRIP
8133   # Extract the first word of "strip", so it can be a program name with args.
8134 set dummy strip; ac_word=$2
8135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   if test -n "$ac_ct_STRIP"; then
8141   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146   IFS=$as_save_IFS
8147   test -z "$as_dir" && as_dir=.
8148   for ac_exec_ext in '' $ac_executable_extensions; do
8149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8150     ac_cv_prog_ac_ct_STRIP="strip"
8151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152     break 2
8153   fi
8154 done
8155 done
8156 IFS=$as_save_IFS
8157
8158 fi
8159 fi
8160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8161 if test -n "$ac_ct_STRIP"; then
8162   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8163 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8164 else
8165   { echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6; }
8167 fi
8168
8169   if test "x$ac_ct_STRIP" = x; then
8170     STRIP=":"
8171   else
8172     case $cross_compiling:$ac_tool_warned in
8173 yes:)
8174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8175 whose name does not start with the host triplet.  If you think this
8176 configuration is useful to you, please write to autoconf@gnu.org." >&5
8177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8178 whose name does not start with the host triplet.  If you think this
8179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8180 ac_tool_warned=yes ;;
8181 esac
8182     STRIP=$ac_ct_STRIP
8183   fi
8184 else
8185   STRIP="$ac_cv_prog_STRIP"
8186 fi
8187
8188
8189 old_CC="$CC"
8190 old_CFLAGS="$CFLAGS"
8191
8192 # Set sane defaults for various variables
8193 test -z "$AR" && AR=ar
8194 test -z "$AR_FLAGS" && AR_FLAGS=cru
8195 test -z "$AS" && AS=as
8196 test -z "$CC" && CC=cc
8197 test -z "$LTCC" && LTCC=$CC
8198 test -z "$DLLTOOL" && DLLTOOL=dlltool
8199 test -z "$LD" && LD=ld
8200 test -z "$LN_S" && LN_S="ln -s"
8201 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8202 test -z "$NM" && NM=nm
8203 test -z "$SED" && SED=sed
8204 test -z "$OBJDUMP" && OBJDUMP=objdump
8205 test -z "$RANLIB" && RANLIB=:
8206 test -z "$STRIP" && STRIP=:
8207 test -z "$ac_objext" && ac_objext=o
8208
8209 # Determine commands to create old-style static archives.
8210 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8211 old_postinstall_cmds='chmod 644 $oldlib'
8212 old_postuninstall_cmds=
8213
8214 if test -n "$RANLIB"; then
8215   case $host_os in
8216   openbsd*)
8217     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8218     ;;
8219   *)
8220     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8221     ;;
8222   esac
8223   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8224 fi
8225
8226 for cc_temp in $compiler""; do
8227   case $cc_temp in
8228     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8229     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8230     \-*) ;;
8231     *) break;;
8232   esac
8233 done
8234 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8235
8236
8237 # Only perform the check for file, if the check method requires it
8238 case $deplibs_check_method in
8239 file_magic*)
8240   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8241     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8242 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8243 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8244   echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246   case $MAGIC_CMD in
8247 [\\/*] |  ?:[\\/]*)
8248   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249   ;;
8250 *)
8251   lt_save_MAGIC_CMD="$MAGIC_CMD"
8252   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254   for ac_dir in $ac_dummy; do
8255     IFS="$lt_save_ifs"
8256     test -z "$ac_dir" && ac_dir=.
8257     if test -f $ac_dir/${ac_tool_prefix}file; then
8258       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8259       if test -n "$file_magic_test_file"; then
8260         case $deplibs_check_method in
8261         "file_magic "*)
8262           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265             $EGREP "$file_magic_regex" > /dev/null; then
8266             :
8267           else
8268             cat <<EOF 1>&2
8269
8270 *** Warning: the command libtool uses to detect shared libraries,
8271 *** $file_magic_cmd, produces output that libtool cannot recognize.
8272 *** The result is that libtool may fail to recognize shared libraries
8273 *** as such.  This will affect the creation of libtool libraries that
8274 *** depend on shared libraries, but programs linked with such libtool
8275 *** libraries will work regardless of this problem.  Nevertheless, you
8276 *** may want to report the problem to your system manager and/or to
8277 *** bug-libtool@gnu.org
8278
8279 EOF
8280           fi ;;
8281         esac
8282       fi
8283       break
8284     fi
8285   done
8286   IFS="$lt_save_ifs"
8287   MAGIC_CMD="$lt_save_MAGIC_CMD"
8288   ;;
8289 esac
8290 fi
8291
8292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293 if test -n "$MAGIC_CMD"; then
8294   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8295 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8296 else
8297   { echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6; }
8299 fi
8300
8301 if test -z "$lt_cv_path_MAGIC_CMD"; then
8302   if test -n "$ac_tool_prefix"; then
8303     { echo "$as_me:$LINENO: checking for file" >&5
8304 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8305 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   case $MAGIC_CMD in
8309 [\\/*] |  ?:[\\/]*)
8310   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8311   ;;
8312 *)
8313   lt_save_MAGIC_CMD="$MAGIC_CMD"
8314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8315   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8316   for ac_dir in $ac_dummy; do
8317     IFS="$lt_save_ifs"
8318     test -z "$ac_dir" && ac_dir=.
8319     if test -f $ac_dir/file; then
8320       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8321       if test -n "$file_magic_test_file"; then
8322         case $deplibs_check_method in
8323         "file_magic "*)
8324           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8325           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8327             $EGREP "$file_magic_regex" > /dev/null; then
8328             :
8329           else
8330             cat <<EOF 1>&2
8331
8332 *** Warning: the command libtool uses to detect shared libraries,
8333 *** $file_magic_cmd, produces output that libtool cannot recognize.
8334 *** The result is that libtool may fail to recognize shared libraries
8335 *** as such.  This will affect the creation of libtool libraries that
8336 *** depend on shared libraries, but programs linked with such libtool
8337 *** libraries will work regardless of this problem.  Nevertheless, you
8338 *** may want to report the problem to your system manager and/or to
8339 *** bug-libtool@gnu.org
8340
8341 EOF
8342           fi ;;
8343         esac
8344       fi
8345       break
8346     fi
8347   done
8348   IFS="$lt_save_ifs"
8349   MAGIC_CMD="$lt_save_MAGIC_CMD"
8350   ;;
8351 esac
8352 fi
8353
8354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355 if test -n "$MAGIC_CMD"; then
8356   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8357 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8358 else
8359   { echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6; }
8361 fi
8362
8363   else
8364     MAGIC_CMD=:
8365   fi
8366 fi
8367
8368   fi
8369   ;;
8370 esac
8371
8372 enable_dlopen=yes
8373 enable_win32_dll=yes
8374
8375 # Check whether --enable-libtool-lock was given.
8376 if test "${enable_libtool_lock+set}" = set; then
8377   enableval=$enable_libtool_lock;
8378 fi
8379
8380 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8381
8382
8383 # Check whether --with-pic was given.
8384 if test "${with_pic+set}" = set; then
8385   withval=$with_pic; pic_mode="$withval"
8386 else
8387   pic_mode=default
8388 fi
8389
8390 test -z "$pic_mode" && pic_mode=default
8391
8392 # Use C for the default configuration in the libtool script
8393 tagname=
8394 lt_save_CC="$CC"
8395 ac_ext=c
8396 ac_cpp='$CPP $CPPFLAGS'
8397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8400
8401
8402 # Source file extension for C test sources.
8403 ac_ext=c
8404
8405 # Object file extension for compiled C test sources.
8406 objext=o
8407 objext=$objext
8408
8409 # Code to be used in simple compile tests
8410 lt_simple_compile_test_code="int some_variable = 0;\n"
8411
8412 # Code to be used in simple link tests
8413 lt_simple_link_test_code='int main(){return(0);}\n'
8414
8415
8416 # If no C compiler was specified, use CC.
8417 LTCC=${LTCC-"$CC"}
8418
8419 # Allow CC to be a program name with arguments.
8420 compiler=$CC
8421
8422
8423 # save warnings/boilerplate of simple test code
8424 ac_outfile=conftest.$ac_objext
8425 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8427 _lt_compiler_boilerplate=`cat conftest.err`
8428 $rm conftest*
8429
8430 ac_outfile=conftest.$ac_objext
8431 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8433 _lt_linker_boilerplate=`cat conftest.err`
8434 $rm conftest*
8435
8436
8437 #
8438 # Check for any special shared library compilation flags.
8439 #
8440 lt_prog_cc_shlib=
8441 if test "$GCC" = no; then
8442   case $host_os in
8443   sco3.2v5*)
8444     lt_prog_cc_shlib='-belf'
8445     ;;
8446   esac
8447 fi
8448 if test -n "$lt_prog_cc_shlib"; then
8449   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8450 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8451   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8452   else
8453     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8454 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8455     lt_cv_prog_cc_can_build_shared=no
8456   fi
8457 fi
8458
8459
8460 #
8461 # Check to make sure the static flag actually works.
8462 #
8463 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8464 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8465 if test "${lt_prog_compiler_static_works+set}" = set; then
8466   echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468   lt_prog_compiler_static_works=no
8469    save_LDFLAGS="$LDFLAGS"
8470    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8471    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8472    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8473      # The linker can only warn and ignore the option if not recognized
8474      # So say no if there are warnings
8475      if test -s conftest.err; then
8476        # Append any errors to the config.log.
8477        cat conftest.err 1>&5
8478        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8479        $SED '/^$/d' conftest.err >conftest.er2
8480        if diff conftest.exp conftest.er2 >/dev/null; then
8481          lt_prog_compiler_static_works=yes
8482        fi
8483      else
8484        lt_prog_compiler_static_works=yes
8485      fi
8486    fi
8487    $rm conftest*
8488    LDFLAGS="$save_LDFLAGS"
8489
8490 fi
8491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8492 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8493
8494 if test x"$lt_prog_compiler_static_works" = xyes; then
8495     :
8496 else
8497     lt_prog_compiler_static=
8498 fi
8499
8500
8501
8502
8503 lt_prog_compiler_no_builtin_flag=
8504
8505 if test "$GCC" = yes; then
8506   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8507
8508
8509 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8510 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8511 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8512   echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514   lt_cv_prog_compiler_rtti_exceptions=no
8515   ac_outfile=conftest.$ac_objext
8516    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8517    lt_compiler_flag="-fno-rtti -fno-exceptions"
8518    # Insert the option either (1) after the last *FLAGS variable, or
8519    # (2) before a word containing "conftest.", or (3) at the end.
8520    # Note that $ac_compile itself does not contain backslashes and begins
8521    # with a dollar sign (not a hyphen), so the echo should work correctly.
8522    # The option is referenced via a variable to avoid confusing sed.
8523    lt_compile=`echo "$ac_compile" | $SED \
8524    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526    -e 's:$: $lt_compiler_flag:'`
8527    (eval echo "\"\$as_me:8527: $lt_compile\"" >&5)
8528    (eval "$lt_compile" 2>conftest.err)
8529    ac_status=$?
8530    cat conftest.err >&5
8531    echo "$as_me:8531: \$? = $ac_status" >&5
8532    if (exit $ac_status) && test -s "$ac_outfile"; then
8533      # The compiler can only warn and ignore the option if not recognized
8534      # So say no if there are warnings other than the usual output.
8535      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8536      $SED '/^$/d' conftest.err >conftest.er2
8537      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8538        lt_cv_prog_compiler_rtti_exceptions=yes
8539      fi
8540    fi
8541    $rm conftest*
8542
8543 fi
8544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8545 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8546
8547 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8548     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8549 else
8550     :
8551 fi
8552
8553 fi
8554
8555 lt_prog_compiler_wl=
8556 lt_prog_compiler_pic=
8557 lt_prog_compiler_static=
8558
8559 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8560 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8561
8562   if test "$GCC" = yes; then
8563     lt_prog_compiler_wl='-Wl,'
8564     lt_prog_compiler_static='-static'
8565
8566     case $host_os in
8567       aix*)
8568       # All AIX code is PIC.
8569       if test "$host_cpu" = ia64; then
8570         # AIX 5 now supports IA64 processor
8571         lt_prog_compiler_static='-Bstatic'
8572       fi
8573       ;;
8574
8575     amigaos*)
8576       # FIXME: we need at least 68020 code to build shared libraries, but
8577       # adding the `-m68020' flag to GCC prevents building anything better,
8578       # like `-m68040'.
8579       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8580       ;;
8581
8582     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8583       # PIC is the default for these OSes.
8584       ;;
8585
8586     mingw* | pw32* | os2*)
8587       # This hack is so that the source file can tell whether it is being
8588       # built for inclusion in a dll (and should export symbols for example).
8589       lt_prog_compiler_pic='-DDLL_EXPORT'
8590       ;;
8591
8592     darwin* | rhapsody*)
8593       # PIC is the default on this platform
8594       # Common symbols not allowed in MH_DYLIB files
8595       lt_prog_compiler_pic='-fno-common'
8596       ;;
8597
8598     msdosdjgpp*)
8599       # Just because we use GCC doesn't mean we suddenly get shared libraries
8600       # on systems that don't support them.
8601       lt_prog_compiler_can_build_shared=no
8602       enable_shared=no
8603       ;;
8604
8605     sysv4*MP*)
8606       if test -d /usr/nec; then
8607         lt_prog_compiler_pic=-Kconform_pic
8608       fi
8609       ;;
8610
8611     hpux*)
8612       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8613       # not for PA HP-UX.
8614       case $host_cpu in
8615       hppa*64*|ia64*)
8616         # +Z the default
8617         ;;
8618       *)
8619         lt_prog_compiler_pic='-fPIC'
8620         ;;
8621       esac
8622       ;;
8623
8624     *)
8625       lt_prog_compiler_pic='-fPIC'
8626       ;;
8627     esac
8628   else
8629     # PORTME Check for flag to pass linker flags through the system compiler.
8630     case $host_os in
8631     aix*)
8632       lt_prog_compiler_wl='-Wl,'
8633       if test "$host_cpu" = ia64; then
8634         # AIX 5 now supports IA64 processor
8635         lt_prog_compiler_static='-Bstatic'
8636       else
8637         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8638       fi
8639       ;;
8640       darwin*)
8641         # PIC is the default on this platform
8642         # Common symbols not allowed in MH_DYLIB files
8643        case $cc_basename in
8644          xlc*)
8645          lt_prog_compiler_pic='-qnocommon'
8646          lt_prog_compiler_wl='-Wl,'
8647          ;;
8648        esac
8649        ;;
8650
8651     mingw* | pw32* | os2*)
8652       # This hack is so that the source file can tell whether it is being
8653       # built for inclusion in a dll (and should export symbols for example).
8654       lt_prog_compiler_pic='-DDLL_EXPORT'
8655       ;;
8656
8657     hpux9* | hpux10* | hpux11*)
8658       lt_prog_compiler_wl='-Wl,'
8659       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8660       # not for PA HP-UX.
8661       case $host_cpu in
8662       hppa*64*|ia64*)
8663         # +Z the default
8664         ;;
8665       *)
8666         lt_prog_compiler_pic='+Z'
8667         ;;
8668       esac
8669       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8670       lt_prog_compiler_static='${wl}-a ${wl}archive'
8671       ;;
8672
8673     irix5* | irix6* | nonstopux*)
8674       lt_prog_compiler_wl='-Wl,'
8675       # PIC (with -KPIC) is the default.
8676       lt_prog_compiler_static='-non_shared'
8677       ;;
8678
8679     newsos6)
8680       lt_prog_compiler_pic='-KPIC'
8681       lt_prog_compiler_static='-Bstatic'
8682       ;;
8683
8684     linux*)
8685       case $cc_basename in
8686       icc* | ecc*)
8687         lt_prog_compiler_wl='-Wl,'
8688         lt_prog_compiler_pic='-KPIC'
8689         lt_prog_compiler_static='-static'
8690         ;;
8691       pgcc* | pgf77* | pgf90* | pgf95*)
8692         # Portland Group compilers (*not* the Pentium gcc compiler,
8693         # which looks to be a dead project)
8694         lt_prog_compiler_wl='-Wl,'
8695         lt_prog_compiler_pic='-fpic'
8696         lt_prog_compiler_static='-Bstatic'
8697         ;;
8698       ccc*)
8699         lt_prog_compiler_wl='-Wl,'
8700         # All Alpha code is PIC.
8701         lt_prog_compiler_static='-non_shared'
8702         ;;
8703       esac
8704       ;;
8705
8706     osf3* | osf4* | osf5*)
8707       lt_prog_compiler_wl='-Wl,'
8708       # All OSF/1 code is PIC.
8709       lt_prog_compiler_static='-non_shared'
8710       ;;
8711
8712     sco3.2v5*)
8713       lt_prog_compiler_pic='-Kpic'
8714       lt_prog_compiler_static='-dn'
8715       ;;
8716
8717     solaris*)
8718       lt_prog_compiler_pic='-KPIC'
8719       lt_prog_compiler_static='-Bstatic'
8720       case $cc_basename in
8721       f77* | f90* | f95*)
8722         lt_prog_compiler_wl='-Qoption ld ';;
8723       *)
8724         lt_prog_compiler_wl='-Wl,';;
8725       esac
8726       ;;
8727
8728     sunos4*)
8729       lt_prog_compiler_wl='-Qoption ld '
8730       lt_prog_compiler_pic='-PIC'
8731       lt_prog_compiler_static='-Bstatic'
8732       ;;
8733
8734     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8735       lt_prog_compiler_wl='-Wl,'
8736       lt_prog_compiler_pic='-KPIC'
8737       lt_prog_compiler_static='-Bstatic'
8738       ;;
8739
8740     sysv4*MP*)
8741       if test -d /usr/nec ;then
8742         lt_prog_compiler_pic='-Kconform_pic'
8743         lt_prog_compiler_static='-Bstatic'
8744       fi
8745       ;;
8746
8747     unicos*)
8748       lt_prog_compiler_wl='-Wl,'
8749       lt_prog_compiler_can_build_shared=no
8750       ;;
8751
8752     uts4*)
8753       lt_prog_compiler_pic='-pic'
8754       lt_prog_compiler_static='-Bstatic'
8755       ;;
8756
8757     *)
8758       lt_prog_compiler_can_build_shared=no
8759       ;;
8760     esac
8761   fi
8762
8763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8764 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8765
8766 #
8767 # Check to make sure the PIC flag actually works.
8768 #
8769 if test -n "$lt_prog_compiler_pic"; then
8770
8771 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8773 if test "${lt_prog_compiler_pic_works+set}" = set; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   lt_prog_compiler_pic_works=no
8777   ac_outfile=conftest.$ac_objext
8778    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8779    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8780    # Insert the option either (1) after the last *FLAGS variable, or
8781    # (2) before a word containing "conftest.", or (3) at the end.
8782    # Note that $ac_compile itself does not contain backslashes and begins
8783    # with a dollar sign (not a hyphen), so the echo should work correctly.
8784    # The option is referenced via a variable to avoid confusing sed.
8785    lt_compile=`echo "$ac_compile" | $SED \
8786    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8788    -e 's:$: $lt_compiler_flag:'`
8789    (eval echo "\"\$as_me:8789: $lt_compile\"" >&5)
8790    (eval "$lt_compile" 2>conftest.err)
8791    ac_status=$?
8792    cat conftest.err >&5
8793    echo "$as_me:8793: \$? = $ac_status" >&5
8794    if (exit $ac_status) && test -s "$ac_outfile"; then
8795      # The compiler can only warn and ignore the option if not recognized
8796      # So say no if there are warnings other than the usual output.
8797      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8798      $SED '/^$/d' conftest.err >conftest.er2
8799      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8800        lt_prog_compiler_pic_works=yes
8801      fi
8802    fi
8803    $rm conftest*
8804
8805 fi
8806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8807 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8808
8809 if test x"$lt_prog_compiler_pic_works" = xyes; then
8810     case $lt_prog_compiler_pic in
8811      "" | " "*) ;;
8812      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8813      esac
8814 else
8815     lt_prog_compiler_pic=
8816      lt_prog_compiler_can_build_shared=no
8817 fi
8818
8819 fi
8820 case $host_os in
8821   # For platforms which do not support PIC, -DPIC is meaningless:
8822   *djgpp*)
8823     lt_prog_compiler_pic=
8824     ;;
8825   *)
8826     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8827     ;;
8828 esac
8829
8830 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8833   echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835   lt_cv_prog_compiler_c_o=no
8836    $rm -r conftest 2>/dev/null
8837    mkdir conftest
8838    cd conftest
8839    mkdir out
8840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8841
8842    lt_compiler_flag="-o out/conftest2.$ac_objext"
8843    # Insert the option either (1) after the last *FLAGS variable, or
8844    # (2) before a word containing "conftest.", or (3) at the end.
8845    # Note that $ac_compile itself does not contain backslashes and begins
8846    # with a dollar sign (not a hyphen), so the echo should work correctly.
8847    lt_compile=`echo "$ac_compile" | $SED \
8848    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850    -e 's:$: $lt_compiler_flag:'`
8851    (eval echo "\"\$as_me:8851: $lt_compile\"" >&5)
8852    (eval "$lt_compile" 2>out/conftest.err)
8853    ac_status=$?
8854    cat out/conftest.err >&5
8855    echo "$as_me:8855: \$? = $ac_status" >&5
8856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8857    then
8858      # The compiler can only warn and ignore the option if not recognized
8859      # So say no if there are warnings
8860      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8861      $SED '/^$/d' out/conftest.err >out/conftest.er2
8862      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8863        lt_cv_prog_compiler_c_o=yes
8864      fi
8865    fi
8866    chmod u+w . 2>&5
8867    $rm conftest*
8868    # SGI C++ compiler will create directory out/ii_files/ for
8869    # template instantiation
8870    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8871    $rm out/* && rmdir out
8872    cd ..
8873    rmdir conftest
8874    $rm conftest*
8875
8876 fi
8877 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8879
8880
8881 hard_links="nottested"
8882 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8883   # do not overwrite the value of need_locks provided by the user
8884   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8886   hard_links=yes
8887   $rm conftest*
8888   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8889   touch conftest.a
8890   ln conftest.a conftest.b 2>&5 || hard_links=no
8891   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8892   { echo "$as_me:$LINENO: result: $hard_links" >&5
8893 echo "${ECHO_T}$hard_links" >&6; }
8894   if test "$hard_links" = no; then
8895     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8897     need_locks=warn
8898   fi
8899 else
8900   need_locks=no
8901 fi
8902
8903 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8905
8906   runpath_var=
8907   allow_undefined_flag=
8908   enable_shared_with_static_runtimes=no
8909   archive_cmds=
8910   archive_expsym_cmds=
8911   old_archive_From_new_cmds=
8912   old_archive_from_expsyms_cmds=
8913   export_dynamic_flag_spec=
8914   whole_archive_flag_spec=
8915   thread_safe_flag_spec=
8916   hardcode_libdir_flag_spec=
8917   hardcode_libdir_flag_spec_ld=
8918   hardcode_libdir_separator=
8919   hardcode_direct=no
8920   hardcode_minus_L=no
8921   hardcode_shlibpath_var=unsupported
8922   link_all_deplibs=unknown
8923   hardcode_automatic=no
8924   module_cmds=
8925   module_expsym_cmds=
8926   always_export_symbols=no
8927   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8928   # include_expsyms should be a list of space-separated symbols to be *always*
8929   # included in the symbol list
8930   include_expsyms=
8931   # exclude_expsyms can be an extended regexp of symbols to exclude
8932   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8933   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8934   # as well as any symbol that contains `d'.
8935   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8936   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8937   # platforms (ab)use it in PIC code, but their linkers get confused if
8938   # the symbol is explicitly referenced.  Since portable code cannot
8939   # rely on this symbol name, it's probably fine to never include it in
8940   # preloaded symbol tables.
8941   extract_expsyms_cmds=
8942   # Just being paranoid about ensuring that cc_basename is set.
8943   for cc_temp in $compiler""; do
8944   case $cc_temp in
8945     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8946     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8947     \-*) ;;
8948     *) break;;
8949   esac
8950 done
8951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8952
8953   case $host_os in
8954   cygwin* | mingw* | pw32*)
8955     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8956     # When not using gcc, we currently assume that we are using
8957     # Microsoft Visual C++.
8958     if test "$GCC" != yes; then
8959       with_gnu_ld=no
8960     fi
8961     ;;
8962   openbsd*)
8963     with_gnu_ld=no
8964     ;;
8965   esac
8966
8967   ld_shlibs=yes
8968   if test "$with_gnu_ld" = yes; then
8969     # If archive_cmds runs LD, not CC, wlarc should be empty
8970     wlarc='${wl}'
8971
8972     # Set some defaults for GNU ld with shared library support. These
8973     # are reset later if shared libraries are not supported. Putting them
8974     # here allows them to be overridden if necessary.
8975     runpath_var=LD_RUN_PATH
8976     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8977     export_dynamic_flag_spec='${wl}--export-dynamic'
8978     # ancient GNU ld didn't support --whole-archive et. al.
8979     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8980         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8981       else
8982         whole_archive_flag_spec=
8983     fi
8984     supports_anon_versioning=no
8985     case `$LD -v 2>/dev/null` in
8986       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8987       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8988       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8989       *\ 2.11.*) ;; # other 2.11 versions
8990       *) supports_anon_versioning=yes ;;
8991     esac
8992
8993     # See if GNU ld supports shared libraries.
8994     case $host_os in
8995     aix3* | aix4* | aix5*)
8996       # On AIX/PPC, the GNU linker is very broken
8997       if test "$host_cpu" != ia64; then
8998         ld_shlibs=no
8999         cat <<EOF 1>&2
9000
9001 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9002 *** to be unable to reliably create shared libraries on AIX.
9003 *** Therefore, libtool is disabling shared libraries support.  If you
9004 *** really care for shared libraries, you may want to modify your PATH
9005 *** so that a non-GNU linker is found, and then restart.
9006
9007 EOF
9008       fi
9009       ;;
9010
9011     amigaos*)
9012       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)'
9013       hardcode_libdir_flag_spec='-L$libdir'
9014       hardcode_minus_L=yes
9015
9016       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9017       # that the semantics of dynamic libraries on AmigaOS, at least up
9018       # to version 4, is to share data among multiple programs linked
9019       # with the same dynamic library.  Since this doesn't match the
9020       # behavior of shared libraries on other platforms, we can't use
9021       # them.
9022       ld_shlibs=no
9023       ;;
9024
9025     beos*)
9026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9027         allow_undefined_flag=unsupported
9028         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9029         # support --undefined.  This deserves some investigation.  FIXME
9030         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031       else
9032         ld_shlibs=no
9033       fi
9034       ;;
9035
9036     cygwin* | mingw* | pw32*)
9037       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9038       # as there is no search path for DLLs.
9039       hardcode_libdir_flag_spec='-L$libdir'
9040       allow_undefined_flag=unsupported
9041       always_export_symbols=no
9042       enable_shared_with_static_runtimes=yes
9043       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9044
9045       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9046         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9047         # If the export-symbols file already is a .def file (1st line
9048         # is EXPORTS), use it as is; otherwise, prepend...
9049         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9050           cp $export_symbols $output_objdir/$soname.def;
9051         else
9052           echo EXPORTS > $output_objdir/$soname.def;
9053           cat $export_symbols >> $output_objdir/$soname.def;
9054         fi~
9055         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9056       else
9057         ld_shlibs=no
9058       fi
9059       ;;
9060
9061     linux*)
9062       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9063         tmp_addflag=
9064         case $cc_basename,$host_cpu in
9065         pgcc*)                          # Portland Group C compiler
9066           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'
9067           tmp_addflag=' $pic_flag'
9068           ;;
9069         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9070           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'
9071           tmp_addflag=' $pic_flag -Mnomain' ;;
9072         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9073           tmp_addflag=' -i_dynamic' ;;
9074         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9075           tmp_addflag=' -i_dynamic -nofor_main' ;;
9076         ifc* | ifort*)                  # Intel Fortran compiler
9077           tmp_addflag=' -nofor_main' ;;
9078         esac
9079         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080
9081         if test $supports_anon_versioning = yes; then
9082           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9083   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9084   $echo "local: *; };" >> $output_objdir/$libname.ver~
9085           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9086         fi
9087       else
9088         ld_shlibs=no
9089       fi
9090       ;;
9091
9092     netbsd*)
9093       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9094         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9095         wlarc=
9096       else
9097         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9099       fi
9100       ;;
9101
9102     solaris* | sysv5*)
9103       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9104         ld_shlibs=no
9105         cat <<EOF 1>&2
9106
9107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9108 *** create shared libraries on Solaris systems.  Therefore, libtool
9109 *** is disabling shared libraries support.  We urge you to upgrade GNU
9110 *** binutils to release 2.9.1 or newer.  Another option is to modify
9111 *** your PATH or compiler configuration so that the native linker is
9112 *** used, and then restart.
9113
9114 EOF
9115       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9116         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9118       else
9119         ld_shlibs=no
9120       fi
9121       ;;
9122
9123     sunos4*)
9124       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9125       wlarc=
9126       hardcode_direct=yes
9127       hardcode_shlibpath_var=no
9128       ;;
9129
9130     *)
9131       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9132         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9134       else
9135         ld_shlibs=no
9136       fi
9137       ;;
9138     esac
9139
9140     if test "$ld_shlibs" = no; then
9141       runpath_var=
9142       hardcode_libdir_flag_spec=
9143       export_dynamic_flag_spec=
9144       whole_archive_flag_spec=
9145     fi
9146   else
9147     # PORTME fill in a description of your system's linker (not GNU ld)
9148     case $host_os in
9149     aix3*)
9150       allow_undefined_flag=unsupported
9151       always_export_symbols=yes
9152       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'
9153       # Note: this linker hardcodes the directories in LIBPATH if there
9154       # are no directories specified by -L.
9155       hardcode_minus_L=yes
9156       if test "$GCC" = yes && test -z "$link_static_flag"; then
9157         # Neither direct hardcoding nor static linking is supported with a
9158         # broken collect2.
9159         hardcode_direct=unsupported
9160       fi
9161       ;;
9162
9163     aix4* | aix5*)
9164       if test "$host_cpu" = ia64; then
9165         # On IA64, the linker does run time linking by default, so we don't
9166         # have to do anything special.
9167         aix_use_runtimelinking=no
9168         exp_sym_flag='-Bexport'
9169         no_entry_flag=""
9170       else
9171         # If we're using GNU nm, then we don't want the "-C" option.
9172         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9173         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9174           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'
9175         else
9176           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'
9177         fi
9178         aix_use_runtimelinking=no
9179
9180         # Test if we are trying to use run time linking or normal
9181         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9182         # need to do runtime linking.
9183         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9184           for ld_flag in $LDFLAGS; do
9185           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9186             aix_use_runtimelinking=yes
9187             break
9188           fi
9189           done
9190         esac
9191
9192         exp_sym_flag='-bexport'
9193         no_entry_flag='-bnoentry'
9194       fi
9195
9196       # When large executables or shared objects are built, AIX ld can
9197       # have problems creating the table of contents.  If linking a library
9198       # or program results in "error TOC overflow" add -mminimal-toc to
9199       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9200       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9201
9202       archive_cmds=''
9203       hardcode_direct=yes
9204       hardcode_libdir_separator=':'
9205       link_all_deplibs=yes
9206
9207       if test "$GCC" = yes; then
9208         case $host_os in aix4.[012]|aix4.[012].*)
9209         # We only want to do this on AIX 4.2 and lower, the check
9210         # below for broken collect2 doesn't work under 4.3+
9211           collect2name=`${CC} -print-prog-name=collect2`
9212           if test -f "$collect2name" && \
9213            strings "$collect2name" | grep resolve_lib_name >/dev/null
9214           then
9215           # We have reworked collect2
9216           hardcode_direct=yes
9217           else
9218           # We have old collect2
9219           hardcode_direct=unsupported
9220           # It fails to find uninstalled libraries when the uninstalled
9221           # path is not listed in the libpath.  Setting hardcode_minus_L
9222           # to unsupported forces relinking
9223           hardcode_minus_L=yes
9224           hardcode_libdir_flag_spec='-L$libdir'
9225           hardcode_libdir_separator=
9226           fi
9227         esac
9228         shared_flag='-shared'
9229         if test "$aix_use_runtimelinking" = yes; then
9230           shared_flag="$shared_flag "'${wl}-G'
9231         fi
9232       else
9233         # not using gcc
9234         if test "$host_cpu" = ia64; then
9235         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9236         # chokes on -Wl,-G. The following line is correct:
9237           shared_flag='-G'
9238         else
9239         if test "$aix_use_runtimelinking" = yes; then
9240             shared_flag='${wl}-G'
9241           else
9242             shared_flag='${wl}-bM:SRE'
9243         fi
9244         fi
9245       fi
9246
9247       # It seems that -bexpall does not export symbols beginning with
9248       # underscore (_), so it is better to generate a list of symbols to export.
9249       always_export_symbols=yes
9250       if test "$aix_use_runtimelinking" = yes; then
9251         # Warning - without using the other runtime loading flags (-brtl),
9252         # -berok will link without error, but may produce a broken library.
9253         allow_undefined_flag='-berok'
9254        # Determine the default libpath from the value encoded in an empty executable.
9255        cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261
9262 int
9263 main ()
9264 {
9265
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9272 case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277   (eval "$ac_link") 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285   { (case "(($ac_try" in
9286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287   *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290   (eval "$ac_try") 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; } &&
9294          { ac_try='test -s conftest$ac_exeext'
9295   { (case "(($ac_try" in
9296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297   *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300   (eval "$ac_try") 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304
9305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9306 }'`
9307 # Check for a 64-bit object if we didn't find anything.
9308 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; }
9309 }'`; fi
9310 else
9311   echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9313
9314
9315 fi
9316
9317 rm -f core conftest.err conftest.$ac_objext \
9318       conftest$ac_exeext conftest.$ac_ext
9319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9320
9321        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9322         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"
9323        else
9324         if test "$host_cpu" = ia64; then
9325           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9326           allow_undefined_flag="-z nodefs"
9327           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"
9328         else
9329          # Determine the default libpath from the value encoded in an empty executable.
9330          cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h.  */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h.  */
9336
9337 int
9338 main ()
9339 {
9340
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9347 case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_link") 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9360   { (case "(($ac_try" in
9361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362   *) ac_try_echo=$ac_try;;
9363 esac
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365   (eval "$ac_try") 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; } &&
9369          { ac_try='test -s conftest$ac_exeext'
9370   { (case "(($ac_try" in
9371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372   *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375   (eval "$ac_try") 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; }; then
9379
9380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9381 }'`
9382 # Check for a 64-bit object if we didn't find anything.
9383 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; }
9384 }'`; fi
9385 else
9386   echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9388
9389
9390 fi
9391
9392 rm -f core conftest.err conftest.$ac_objext \
9393       conftest$ac_exeext conftest.$ac_ext
9394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9395
9396          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9397           # Warning - without using the other run time loading flags,
9398           # -berok will link without error, but may produce a broken library.
9399           no_undefined_flag=' ${wl}-bernotok'
9400           allow_undefined_flag=' ${wl}-berok'
9401           # -bexpall does not export symbols beginning with underscore (_)
9402           always_export_symbols=yes
9403           # Exported symbols can be pulled into shared objects from archives
9404           whole_archive_flag_spec=' '
9405           archive_cmds_need_lc=yes
9406           # This is similar to how AIX traditionally builds its shared libraries.
9407           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'
9408         fi
9409       fi
9410       ;;
9411
9412     amigaos*)
9413       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)'
9414       hardcode_libdir_flag_spec='-L$libdir'
9415       hardcode_minus_L=yes
9416       # see comment about different semantics on the GNU ld section
9417       ld_shlibs=no
9418       ;;
9419
9420     bsdi[45]*)
9421       export_dynamic_flag_spec=-rdynamic
9422       ;;
9423
9424     cygwin* | mingw* | pw32*)
9425       # When not using gcc, we currently assume that we are using
9426       # Microsoft Visual C++.
9427       # hardcode_libdir_flag_spec is actually meaningless, as there is
9428       # no search path for DLLs.
9429       hardcode_libdir_flag_spec=' '
9430       allow_undefined_flag=unsupported
9431       # Tell ltmain to make .lib files, not .a files.
9432       libext=lib
9433       # Tell ltmain to make .dll files, not .so files.
9434       shrext_cmds=".dll"
9435       # FIXME: Setting linknames here is a bad hack.
9436       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9437       # The linker will automatically build a .lib file if we build a DLL.
9438       old_archive_From_new_cmds='true'
9439       # FIXME: Should let the user specify the lib program.
9440       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9441       fix_srcfile_path='`cygpath -w "$srcfile"`'
9442       enable_shared_with_static_runtimes=yes
9443       ;;
9444
9445     darwin* | rhapsody*)
9446       case $host_os in
9447         rhapsody* | darwin1.[012])
9448          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9449          ;;
9450        *) # Darwin 1.3 on
9451          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9452            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9453          else
9454            case ${MACOSX_DEPLOYMENT_TARGET} in
9455              10.[012])
9456                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9457                ;;
9458              10.*)
9459                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9460                ;;
9461            esac
9462          fi
9463          ;;
9464       esac
9465       archive_cmds_need_lc=no
9466       hardcode_direct=no
9467       hardcode_automatic=yes
9468       hardcode_shlibpath_var=unsupported
9469       whole_archive_flag_spec=''
9470       link_all_deplibs=yes
9471     if test "$GCC" = yes ; then
9472         output_verbose_link_cmd='echo'
9473         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9474       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9475       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9476       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}'
9477       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}'
9478     else
9479       case $cc_basename in
9480         xlc*)
9481          output_verbose_link_cmd='echo'
9482          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9483          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9484           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9485          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}'
9486           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}'
9487           ;;
9488        *)
9489          ld_shlibs=no
9490           ;;
9491       esac
9492     fi
9493       ;;
9494
9495     dgux*)
9496       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497       hardcode_libdir_flag_spec='-L$libdir'
9498       hardcode_shlibpath_var=no
9499       ;;
9500
9501     freebsd1*)
9502       ld_shlibs=no
9503       ;;
9504
9505     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9506     # support.  Future versions do this automatically, but an explicit c++rt0.o
9507     # does not break anything, and helps significantly (at the cost of a little
9508     # extra space).
9509     freebsd2.2*)
9510       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9511       hardcode_libdir_flag_spec='-R$libdir'
9512       hardcode_direct=yes
9513       hardcode_shlibpath_var=no
9514       ;;
9515
9516     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9517     freebsd2*)
9518       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519       hardcode_direct=yes
9520       hardcode_minus_L=yes
9521       hardcode_shlibpath_var=no
9522       ;;
9523
9524     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9525     freebsd* | kfreebsd*-gnu | dragonfly*)
9526       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9527       hardcode_libdir_flag_spec='-R$libdir'
9528       hardcode_direct=yes
9529       hardcode_shlibpath_var=no
9530       ;;
9531
9532     hpux9*)
9533       if test "$GCC" = yes; then
9534         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'
9535       else
9536         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'
9537       fi
9538       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9539       hardcode_libdir_separator=:
9540       hardcode_direct=yes
9541
9542       # hardcode_minus_L: Not really in the search PATH,
9543       # but as the default location of the library.
9544       hardcode_minus_L=yes
9545       export_dynamic_flag_spec='${wl}-E'
9546       ;;
9547
9548     hpux10* | hpux11*)
9549       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9550         case $host_cpu in
9551         hppa*64*|ia64*)
9552           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9553           ;;
9554         *)
9555           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9556           ;;
9557         esac
9558       else
9559         case $host_cpu in
9560         hppa*64*|ia64*)
9561           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9562           ;;
9563         *)
9564           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9565           ;;
9566         esac
9567       fi
9568       if test "$with_gnu_ld" = no; then
9569         case $host_cpu in
9570         hppa*64*)
9571           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572           hardcode_libdir_flag_spec_ld='+b $libdir'
9573           hardcode_libdir_separator=:
9574           hardcode_direct=no
9575           hardcode_shlibpath_var=no
9576           ;;
9577         ia64*)
9578           hardcode_libdir_flag_spec='-L$libdir'
9579           hardcode_direct=no
9580           hardcode_shlibpath_var=no
9581
9582           # hardcode_minus_L: Not really in the search PATH,
9583           # but as the default location of the library.
9584           hardcode_minus_L=yes
9585           ;;
9586         *)
9587           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588           hardcode_libdir_separator=:
9589           hardcode_direct=yes
9590           export_dynamic_flag_spec='${wl}-E'
9591
9592           # hardcode_minus_L: Not really in the search PATH,
9593           # but as the default location of the library.
9594           hardcode_minus_L=yes
9595           ;;
9596         esac
9597       fi
9598       ;;
9599
9600     irix5* | irix6* | nonstopux*)
9601       if test "$GCC" = yes; then
9602         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'
9603       else
9604         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'
9605         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9606       fi
9607       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608       hardcode_libdir_separator=:
9609       link_all_deplibs=yes
9610       ;;
9611
9612     netbsd*)
9613       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9614         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9615       else
9616         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9617       fi
9618       hardcode_libdir_flag_spec='-R$libdir'
9619       hardcode_direct=yes
9620       hardcode_shlibpath_var=no
9621       ;;
9622
9623     newsos6)
9624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625       hardcode_direct=yes
9626       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627       hardcode_libdir_separator=:
9628       hardcode_shlibpath_var=no
9629       ;;
9630
9631     openbsd*)
9632       hardcode_direct=yes
9633       hardcode_shlibpath_var=no
9634       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9635         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9636         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9637         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9638         export_dynamic_flag_spec='${wl}-E'
9639       else
9640        case $host_os in
9641          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9642            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9643            hardcode_libdir_flag_spec='-R$libdir'
9644            ;;
9645          *)
9646            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9647            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648            ;;
9649        esac
9650       fi
9651       ;;
9652
9653     os2*)
9654       hardcode_libdir_flag_spec='-L$libdir'
9655       hardcode_minus_L=yes
9656       allow_undefined_flag=unsupported
9657       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'
9658       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9659       ;;
9660
9661     osf3*)
9662       if test "$GCC" = yes; then
9663         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9664         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'
9665       else
9666         allow_undefined_flag=' -expect_unresolved \*'
9667         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'
9668       fi
9669       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9670       hardcode_libdir_separator=:
9671       ;;
9672
9673     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9674       if test "$GCC" = yes; then
9675         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9676         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'
9677         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678       else
9679         allow_undefined_flag=' -expect_unresolved \*'
9680         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'
9681         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9682         $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'
9683
9684         # Both c and cxx compiler support -rpath directly
9685         hardcode_libdir_flag_spec='-rpath $libdir'
9686       fi
9687       hardcode_libdir_separator=:
9688       ;;
9689
9690     sco3.2v5*)
9691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692       hardcode_shlibpath_var=no
9693       export_dynamic_flag_spec='${wl}-Bexport'
9694       runpath_var=LD_RUN_PATH
9695       hardcode_runpath_var=yes
9696       ;;
9697
9698     solaris*)
9699       no_undefined_flag=' -z text'
9700       if test "$GCC" = yes; then
9701         wlarc='${wl}'
9702         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9704           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9705       else
9706         wlarc=''
9707         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9709         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9710       fi
9711       hardcode_libdir_flag_spec='-R$libdir'
9712       hardcode_shlibpath_var=no
9713       case $host_os in
9714       solaris2.[0-5] | solaris2.[0-5].*) ;;
9715       *)
9716         # The compiler driver will combine linker options so we
9717         # cannot just pass the convience library names through
9718         # without $wl, iff we do not link with $LD.
9719         # Luckily, gcc supports the same syntax we need for Sun Studio.
9720         # Supported since Solaris 2.6 (maybe 2.5.1?)
9721         case $wlarc in
9722         '')
9723           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9724         *)
9725           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' ;;
9726         esac ;;
9727       esac
9728       link_all_deplibs=yes
9729       ;;
9730
9731     sunos4*)
9732       if test "x$host_vendor" = xsequent; then
9733         # Use $CC to link under sequent, because it throws in some extra .o
9734         # files that make .init and .fini sections work.
9735         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736       else
9737         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9738       fi
9739       hardcode_libdir_flag_spec='-L$libdir'
9740       hardcode_direct=yes
9741       hardcode_minus_L=yes
9742       hardcode_shlibpath_var=no
9743       ;;
9744
9745     sysv4)
9746       case $host_vendor in
9747         sni)
9748           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749           hardcode_direct=yes # is this really true???
9750         ;;
9751         siemens)
9752           ## LD is ld it makes a PLAMLIB
9753           ## CC just makes a GrossModule.
9754           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9755           reload_cmds='$CC -r -o $output$reload_objs'
9756           hardcode_direct=no
9757         ;;
9758         motorola)
9759           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9761         ;;
9762       esac
9763       runpath_var='LD_RUN_PATH'
9764       hardcode_shlibpath_var=no
9765       ;;
9766
9767     sysv4.3*)
9768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769       hardcode_shlibpath_var=no
9770       export_dynamic_flag_spec='-Bexport'
9771       ;;
9772
9773     sysv4*MP*)
9774       if test -d /usr/nec; then
9775         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776         hardcode_shlibpath_var=no
9777         runpath_var=LD_RUN_PATH
9778         hardcode_runpath_var=yes
9779         ld_shlibs=yes
9780       fi
9781       ;;
9782
9783     sysv4.2uw2*)
9784       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9785       hardcode_direct=yes
9786       hardcode_minus_L=no
9787       hardcode_shlibpath_var=no
9788       hardcode_runpath_var=yes
9789       runpath_var=LD_RUN_PATH
9790       ;;
9791
9792    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9793       no_undefined_flag='${wl}-z ${wl}text'
9794       if test "$GCC" = yes; then
9795         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9796       else
9797         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798       fi
9799       runpath_var='LD_RUN_PATH'
9800       hardcode_shlibpath_var=no
9801       ;;
9802
9803     sysv5*)
9804       no_undefined_flag=' -z text'
9805       # $CC -shared without GNU ld will not create a library from C++
9806       # object files and a static libstdc++, better avoid it by now
9807       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9809                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9810       hardcode_libdir_flag_spec=
9811       hardcode_shlibpath_var=no
9812       runpath_var='LD_RUN_PATH'
9813       ;;
9814
9815     uts4*)
9816       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817       hardcode_libdir_flag_spec='-L$libdir'
9818       hardcode_shlibpath_var=no
9819       ;;
9820
9821     *)
9822       ld_shlibs=no
9823       ;;
9824     esac
9825   fi
9826
9827 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9828 echo "${ECHO_T}$ld_shlibs" >&6; }
9829 test "$ld_shlibs" = no && can_build_shared=no
9830
9831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832 if test "$GCC" = yes; then
9833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834 fi
9835
9836 #
9837 # Do we need to explicitly link libc?
9838 #
9839 case "x$archive_cmds_need_lc" in
9840 x|xyes)
9841   # Assume -lc should be added
9842   archive_cmds_need_lc=yes
9843
9844   if test "$enable_shared" = yes && test "$GCC" = yes; then
9845     case $archive_cmds in
9846     *'~'*)
9847       # FIXME: we may have to deal with multi-command sequences.
9848       ;;
9849     '$CC '*)
9850       # Test whether the compiler implicitly links with -lc since on some
9851       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9852       # to ld, don't add -lc before -lgcc.
9853       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9855       $rm conftest*
9856       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9857
9858       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859   (eval $ac_compile) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } 2>conftest.err; then
9863         soname=conftest
9864         lib=conftest
9865         libobjs=conftest.$ac_objext
9866         deplibs=
9867         wl=$lt_prog_compiler_wl
9868         compiler_flags=-v
9869         linker_flags=-v
9870         verstring=
9871         output_objdir=.
9872         libname=conftest
9873         lt_save_allow_undefined_flag=$allow_undefined_flag
9874         allow_undefined_flag=
9875         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9876   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }
9880         then
9881           archive_cmds_need_lc=no
9882         else
9883           archive_cmds_need_lc=yes
9884         fi
9885         allow_undefined_flag=$lt_save_allow_undefined_flag
9886       else
9887         cat conftest.err 1>&5
9888       fi
9889       $rm conftest*
9890       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9891 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9892       ;;
9893     esac
9894   fi
9895   ;;
9896 esac
9897
9898 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9900 library_names_spec=
9901 libname_spec='lib$name'
9902 soname_spec=
9903 shrext_cmds=".so"
9904 postinstall_cmds=
9905 postuninstall_cmds=
9906 finish_cmds=
9907 finish_eval=
9908 shlibpath_var=
9909 shlibpath_overrides_runpath=unknown
9910 version_type=none
9911 dynamic_linker="$host_os ld.so"
9912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9913 if test "$GCC" = yes; then
9914   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9915   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9916     # if the path contains ";" then we assume it to be the separator
9917     # otherwise default to the standard path separator (i.e. ":") - it is
9918     # assumed that no part of a normal pathname contains ";" but that should
9919     # okay in the real world where ";" in dirpaths is itself problematic.
9920     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9921   else
9922     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9923   fi
9924 else
9925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9926 fi
9927 need_lib_prefix=unknown
9928 hardcode_into_libs=no
9929
9930 # when you set need_version to no, make sure it does not cause -set_version
9931 # flags to be left without arguments
9932 need_version=unknown
9933
9934 case $host_os in
9935 aix3*)
9936   version_type=linux
9937   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9938   shlibpath_var=LIBPATH
9939
9940   # AIX 3 has no versioning support, so we append a major version to the name.
9941   soname_spec='${libname}${release}${shared_ext}$major'
9942   ;;
9943
9944 aix4* | aix5*)
9945   version_type=linux
9946   need_lib_prefix=no
9947   need_version=no
9948   hardcode_into_libs=yes
9949   if test "$host_cpu" = ia64; then
9950     # AIX 5 supports IA64
9951     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9952     shlibpath_var=LD_LIBRARY_PATH
9953   else
9954     # With GCC up to 2.95.x, collect2 would create an import file
9955     # for dependence libraries.  The import file would start with
9956     # the line `#! .'.  This would cause the generated library to
9957     # depend on `.', always an invalid library.  This was fixed in
9958     # development snapshots of GCC prior to 3.0.
9959     case $host_os in
9960       aix4 | aix4.[01] | aix4.[01].*)
9961       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9962            echo ' yes '
9963            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9964         :
9965       else
9966         can_build_shared=no
9967       fi
9968       ;;
9969     esac
9970     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9971     # soname into executable. Probably we can add versioning support to
9972     # collect2, so additional links can be useful in future.
9973     if test "$aix_use_runtimelinking" = yes; then
9974       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9975       # instead of lib<name>.a to let people know that these are not
9976       # typical AIX shared libraries.
9977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978     else
9979       # We preserve .a as extension for shared libraries through AIX4.2
9980       # and later when we are not doing run time linking.
9981       library_names_spec='${libname}${release}.a $libname.a'
9982       soname_spec='${libname}${release}${shared_ext}$major'
9983     fi
9984     shlibpath_var=LIBPATH
9985   fi
9986   ;;
9987
9988 amigaos*)
9989   library_names_spec='$libname.ixlibrary $libname.a'
9990   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9991   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'
9992   ;;
9993
9994 beos*)
9995   library_names_spec='${libname}${shared_ext}'
9996   dynamic_linker="$host_os ld.so"
9997   shlibpath_var=LIBRARY_PATH
9998   ;;
9999
10000 bsdi[45]*)
10001   version_type=linux
10002   need_version=no
10003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004   soname_spec='${libname}${release}${shared_ext}$major'
10005   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10006   shlibpath_var=LD_LIBRARY_PATH
10007   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10008   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10009   # the default ld.so.conf also contains /usr/contrib/lib and
10010   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10011   # libtool to hard-code these into programs
10012   ;;
10013
10014 cygwin* | mingw* | pw32*)
10015   version_type=windows
10016   shrext_cmds=".dll"
10017   need_version=no
10018   need_lib_prefix=no
10019
10020   case $GCC,$host_os in
10021   yes,cygwin* | yes,mingw* | yes,pw32*)
10022     library_names_spec='$libname.dll.a'
10023     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10024     postinstall_cmds='base_file=`basename \${file}`~
10025       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10026       dldir=$destdir/`dirname \$dlpath`~
10027       test -d \$dldir || mkdir -p \$dldir~
10028       $install_prog $dir/$dlname \$dldir/$dlname~
10029       chmod a+x \$dldir/$dlname'
10030     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10031       dlpath=$dir/\$dldll~
10032        $rm \$dlpath'
10033     shlibpath_overrides_runpath=yes
10034
10035     case $host_os in
10036     cygwin*)
10037       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10038       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10039       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10040       ;;
10041     mingw*)
10042       # MinGW DLLs use traditional 'lib' prefix
10043       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10045       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10046         # It is most probably a Windows format PATH printed by
10047         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10048         # path with ; separators, and with drive letters. We can handle the
10049         # drive letters (cygwin fileutils understands them), so leave them,
10050         # especially as we might pass files found there to a mingw objdump,
10051         # which wouldn't understand a cygwinified path. Ahh.
10052         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10053       else
10054         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10055       fi
10056       ;;
10057     pw32*)
10058       # pw32 DLLs use 'pw' prefix rather than 'lib'
10059       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10060       ;;
10061     esac
10062     ;;
10063
10064   *)
10065     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10066     ;;
10067   esac
10068   dynamic_linker='Win32 ld.exe'
10069   # FIXME: first we should search . and the directory the executable is in
10070   shlibpath_var=PATH
10071   ;;
10072
10073 darwin* | rhapsody*)
10074   dynamic_linker="$host_os dyld"
10075   version_type=darwin
10076   need_lib_prefix=no
10077   need_version=no
10078   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10079   soname_spec='${libname}${release}${major}$shared_ext'
10080   shlibpath_overrides_runpath=yes
10081   shlibpath_var=DYLD_LIBRARY_PATH
10082   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10083   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10084   if test "$GCC" = yes; then
10085     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"`
10086   else
10087     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10088   fi
10089   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10090   ;;
10091
10092 dgux*)
10093   version_type=linux
10094   need_lib_prefix=no
10095   need_version=no
10096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10097   soname_spec='${libname}${release}${shared_ext}$major'
10098   shlibpath_var=LD_LIBRARY_PATH
10099   ;;
10100
10101 freebsd1*)
10102   dynamic_linker=no
10103   ;;
10104
10105 kfreebsd*-gnu)
10106   version_type=linux
10107   need_lib_prefix=no
10108   need_version=no
10109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10110   soname_spec='${libname}${release}${shared_ext}$major'
10111   shlibpath_var=LD_LIBRARY_PATH
10112   shlibpath_overrides_runpath=no
10113   hardcode_into_libs=yes
10114   dynamic_linker='GNU ld.so'
10115   ;;
10116
10117 freebsd* | dragonfly*)
10118   # DragonFly does not have aout.  When/if they implement a new
10119   # versioning mechanism, adjust this.
10120   if test -x /usr/bin/objformat; then
10121     objformat=`/usr/bin/objformat`
10122   else
10123     case $host_os in
10124     freebsd[123]*) objformat=aout ;;
10125     *) objformat=elf ;;
10126     esac
10127   fi
10128   version_type=freebsd-$objformat
10129   case $version_type in
10130     freebsd-elf*)
10131       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10132       need_version=no
10133       need_lib_prefix=no
10134       ;;
10135     freebsd-*)
10136       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10137       need_version=yes
10138       ;;
10139   esac
10140   shlibpath_var=LD_LIBRARY_PATH
10141   case $host_os in
10142   freebsd2*)
10143     shlibpath_overrides_runpath=yes
10144     ;;
10145   freebsd3.[01]* | freebsdelf3.[01]*)
10146     shlibpath_overrides_runpath=yes
10147     hardcode_into_libs=yes
10148     ;;
10149   *) # from 3.2 on
10150     shlibpath_overrides_runpath=no
10151     hardcode_into_libs=yes
10152     ;;
10153   esac
10154   ;;
10155
10156 gnu*)
10157   version_type=linux
10158   need_lib_prefix=no
10159   need_version=no
10160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10161   soname_spec='${libname}${release}${shared_ext}$major'
10162   shlibpath_var=LD_LIBRARY_PATH
10163   hardcode_into_libs=yes
10164   ;;
10165
10166 hpux9* | hpux10* | hpux11*)
10167   # Give a soname corresponding to the major version so that dld.sl refuses to
10168   # link against other versions.
10169   version_type=sunos
10170   need_lib_prefix=no
10171   need_version=no
10172   case $host_cpu in
10173   ia64*)
10174     shrext_cmds='.so'
10175     hardcode_into_libs=yes
10176     dynamic_linker="$host_os dld.so"
10177     shlibpath_var=LD_LIBRARY_PATH
10178     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180     soname_spec='${libname}${release}${shared_ext}$major'
10181     if test "X$HPUX_IA64_MODE" = X32; then
10182       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10183     else
10184       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10185     fi
10186     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10187     ;;
10188    hppa*64*)
10189      shrext_cmds='.sl'
10190      hardcode_into_libs=yes
10191      dynamic_linker="$host_os dld.sl"
10192      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10193      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10194      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195      soname_spec='${libname}${release}${shared_ext}$major'
10196      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10197      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10198      ;;
10199    *)
10200     shrext_cmds='.sl'
10201     dynamic_linker="$host_os dld.sl"
10202     shlibpath_var=SHLIB_PATH
10203     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205     soname_spec='${libname}${release}${shared_ext}$major'
10206     ;;
10207   esac
10208   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10209   postinstall_cmds='chmod 555 $lib'
10210   ;;
10211
10212 irix5* | irix6* | nonstopux*)
10213   case $host_os in
10214     nonstopux*) version_type=nonstopux ;;
10215     *)
10216         if test "$lt_cv_prog_gnu_ld" = yes; then
10217                 version_type=linux
10218         else
10219                 version_type=irix
10220         fi ;;
10221   esac
10222   need_lib_prefix=no
10223   need_version=no
10224   soname_spec='${libname}${release}${shared_ext}$major'
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10226   case $host_os in
10227   irix5* | nonstopux*)
10228     libsuff= shlibsuff=
10229     ;;
10230   *)
10231     case $LD in # libtool.m4 will add one of these switches to LD
10232     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10233       libsuff= shlibsuff= libmagic=32-bit;;
10234     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10235       libsuff=32 shlibsuff=N32 libmagic=N32;;
10236     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10237       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10238     *) libsuff= shlibsuff= libmagic=never-match;;
10239     esac
10240     ;;
10241   esac
10242   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10243   shlibpath_overrides_runpath=no
10244   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10245   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10246   hardcode_into_libs=yes
10247   ;;
10248
10249 # No shared lib support for Linux oldld, aout, or coff.
10250 linux*oldld* | linux*aout* | linux*coff*)
10251   dynamic_linker=no
10252   ;;
10253
10254 # This must be Linux ELF.
10255 linux*)
10256   version_type=linux
10257   need_lib_prefix=no
10258   need_version=no
10259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260   soname_spec='${libname}${release}${shared_ext}$major'
10261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10262   shlibpath_var=LD_LIBRARY_PATH
10263   shlibpath_overrides_runpath=no
10264   # This implies no fast_install, which is unacceptable.
10265   # Some rework will be needed to allow for fast_install
10266   # before this can be enabled.
10267   hardcode_into_libs=yes
10268
10269   # Append ld.so.conf contents to the search path
10270   if test -f /etc/ld.so.conf; then
10271     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' ' '`
10272     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10273   fi
10274
10275   # We used to test for /lib/ld.so.1 and disable shared libraries on
10276   # powerpc, because MkLinux only supported shared libraries with the
10277   # GNU dynamic linker.  Since this was broken with cross compilers,
10278   # most powerpc-linux boxes support dynamic linking these days and
10279   # people can always --disable-shared, the test was removed, and we
10280   # assume the GNU/Linux dynamic linker is in use.
10281   dynamic_linker='GNU/Linux ld.so'
10282   ;;
10283
10284 knetbsd*-gnu)
10285   version_type=linux
10286   need_lib_prefix=no
10287   need_version=no
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   shlibpath_overrides_runpath=no
10292   hardcode_into_libs=yes
10293   dynamic_linker='GNU ld.so'
10294   ;;
10295
10296 netbsd*)
10297   version_type=sunos
10298   need_lib_prefix=no
10299   need_version=no
10300   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10302     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10303     dynamic_linker='NetBSD (a.out) ld.so'
10304   else
10305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10306     soname_spec='${libname}${release}${shared_ext}$major'
10307     dynamic_linker='NetBSD ld.elf_so'
10308   fi
10309   shlibpath_var=LD_LIBRARY_PATH
10310   shlibpath_overrides_runpath=yes
10311   hardcode_into_libs=yes
10312   ;;
10313
10314 newsos6)
10315   version_type=linux
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317   shlibpath_var=LD_LIBRARY_PATH
10318   shlibpath_overrides_runpath=yes
10319   ;;
10320
10321 nto-qnx*)
10322   version_type=linux
10323   need_lib_prefix=no
10324   need_version=no
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326   soname_spec='${libname}${release}${shared_ext}$major'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   shlibpath_overrides_runpath=yes
10329   ;;
10330
10331 openbsd*)
10332   version_type=sunos
10333   need_lib_prefix=no
10334   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10335   case $host_os in
10336     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10337     *)                         need_version=no  ;;
10338   esac
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10340   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10343     case $host_os in
10344       openbsd2.[89] | openbsd2.[89].*)
10345         shlibpath_overrides_runpath=no
10346         ;;
10347       *)
10348         shlibpath_overrides_runpath=yes
10349         ;;
10350       esac
10351   else
10352     shlibpath_overrides_runpath=yes
10353   fi
10354   ;;
10355
10356 os2*)
10357   libname_spec='$name'
10358   shrext_cmds=".dll"
10359   need_lib_prefix=no
10360   library_names_spec='$libname${shared_ext} $libname.a'
10361   dynamic_linker='OS/2 ld.exe'
10362   shlibpath_var=LIBPATH
10363   ;;
10364
10365 osf3* | osf4* | osf5*)
10366   version_type=osf
10367   need_lib_prefix=no
10368   need_version=no
10369   soname_spec='${libname}${release}${shared_ext}$major'
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371   shlibpath_var=LD_LIBRARY_PATH
10372   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10373   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10374   ;;
10375
10376 sco3.2v5*)
10377   version_type=osf
10378   soname_spec='${libname}${release}${shared_ext}$major'
10379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   ;;
10382
10383 solaris*)
10384   version_type=linux
10385   need_lib_prefix=no
10386   need_version=no
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   shlibpath_overrides_runpath=yes
10391   hardcode_into_libs=yes
10392   # ldd complains unless libraries are executable
10393   postinstall_cmds='chmod +x $lib'
10394   ;;
10395
10396 sunos4*)
10397   version_type=sunos
10398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10399   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10400   shlibpath_var=LD_LIBRARY_PATH
10401   shlibpath_overrides_runpath=yes
10402   if test "$with_gnu_ld" = yes; then
10403     need_lib_prefix=no
10404   fi
10405   need_version=yes
10406   ;;
10407
10408 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10409   version_type=linux
10410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411   soname_spec='${libname}${release}${shared_ext}$major'
10412   shlibpath_var=LD_LIBRARY_PATH
10413   case $host_vendor in
10414     sni)
10415       shlibpath_overrides_runpath=no
10416       need_lib_prefix=no
10417       export_dynamic_flag_spec='${wl}-Blargedynsym'
10418       runpath_var=LD_RUN_PATH
10419       ;;
10420     siemens)
10421       need_lib_prefix=no
10422       ;;
10423     motorola)
10424       need_lib_prefix=no
10425       need_version=no
10426       shlibpath_overrides_runpath=no
10427       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10428       ;;
10429   esac
10430   ;;
10431
10432 sysv4*MP*)
10433   if test -d /usr/nec ;then
10434     version_type=linux
10435     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10436     soname_spec='$libname${shared_ext}.$major'
10437     shlibpath_var=LD_LIBRARY_PATH
10438   fi
10439   ;;
10440
10441 uts4*)
10442   version_type=linux
10443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444   soname_spec='${libname}${release}${shared_ext}$major'
10445   shlibpath_var=LD_LIBRARY_PATH
10446   ;;
10447
10448 *)
10449   dynamic_linker=no
10450   ;;
10451 esac
10452 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10453 echo "${ECHO_T}$dynamic_linker" >&6; }
10454 test "$dynamic_linker" = no && can_build_shared=no
10455
10456 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10457 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10458 hardcode_action=
10459 if test -n "$hardcode_libdir_flag_spec" || \
10460    test -n "$runpath_var" || \
10461    test "X$hardcode_automatic" = "Xyes" ; then
10462
10463   # We can hardcode non-existant directories.
10464   if test "$hardcode_direct" != no &&
10465      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10466      # have to relink, otherwise we might link with an installed library
10467      # when we should be linking with a yet-to-be-installed one
10468      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10469      test "$hardcode_minus_L" != no; then
10470     # Linking always hardcodes the temporary library directory.
10471     hardcode_action=relink
10472   else
10473     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10474     hardcode_action=immediate
10475   fi
10476 else
10477   # We cannot hardcode anything, or else we can only hardcode existing
10478   # directories.
10479   hardcode_action=unsupported
10480 fi
10481 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10482 echo "${ECHO_T}$hardcode_action" >&6; }
10483
10484 if test "$hardcode_action" = relink; then
10485   # Fast installation is not supported
10486   enable_fast_install=no
10487 elif test "$shlibpath_overrides_runpath" = yes ||
10488      test "$enable_shared" = no; then
10489   # Fast installation is not necessary
10490   enable_fast_install=needless
10491 fi
10492
10493 striplib=
10494 old_striplib=
10495 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10496 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10497 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10498   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10499   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10500   { echo "$as_me:$LINENO: result: yes" >&5
10501 echo "${ECHO_T}yes" >&6; }
10502 else
10503 # FIXME - insert some real tests, host_os isn't really good enough
10504   case $host_os in
10505    darwin*)
10506        if test -n "$STRIP" ; then
10507          striplib="$STRIP -x"
10508          { echo "$as_me:$LINENO: result: yes" >&5
10509 echo "${ECHO_T}yes" >&6; }
10510        else
10511   { echo "$as_me:$LINENO: result: no" >&5
10512 echo "${ECHO_T}no" >&6; }
10513 fi
10514        ;;
10515    *)
10516   { echo "$as_me:$LINENO: result: no" >&5
10517 echo "${ECHO_T}no" >&6; }
10518     ;;
10519   esac
10520 fi
10521
10522 if test "x$enable_dlopen" != xyes; then
10523   enable_dlopen=unknown
10524   enable_dlopen_self=unknown
10525   enable_dlopen_self_static=unknown
10526 else
10527   lt_cv_dlopen=no
10528   lt_cv_dlopen_libs=
10529
10530   case $host_os in
10531   beos*)
10532     lt_cv_dlopen="load_add_on"
10533     lt_cv_dlopen_libs=
10534     lt_cv_dlopen_self=yes
10535     ;;
10536
10537   mingw* | pw32*)
10538     lt_cv_dlopen="LoadLibrary"
10539     lt_cv_dlopen_libs=
10540    ;;
10541
10542   cygwin*)
10543     lt_cv_dlopen="dlopen"
10544     lt_cv_dlopen_libs=
10545    ;;
10546
10547   darwin*)
10548   # if libdl is installed we need to link against it
10549     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10550 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10551 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10552   echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554   ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-ldl  $LIBS"
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562
10563 /* Override any GCC internal prototype to avoid an error.
10564    Use char because int might match the return type of a GCC
10565    builtin and then its argument prototype would still apply.  */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 char dlopen ();
10570 int
10571 main ()
10572 {
10573 return dlopen ();
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585   (eval "$ac_link") 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } &&
10592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10593   { (case "(($ac_try" in
10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595   *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598   (eval "$ac_try") 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); }; } &&
10602          { ac_try='test -s conftest$ac_exeext'
10603   { (case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_try") 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); }; }; then
10612   ac_cv_lib_dl_dlopen=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617         ac_cv_lib_dl_dlopen=no
10618 fi
10619
10620 rm -f core conftest.err conftest.$ac_objext \
10621       conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10623 fi
10624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10626 if test $ac_cv_lib_dl_dlopen = yes; then
10627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10628 else
10629
10630     lt_cv_dlopen="dyld"
10631     lt_cv_dlopen_libs=
10632     lt_cv_dlopen_self=yes
10633
10634 fi
10635
10636    ;;
10637
10638   *)
10639     { echo "$as_me:$LINENO: checking for shl_load" >&5
10640 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10641 if test "${ac_cv_func_shl_load+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h.  */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h.  */
10650 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10652 #define shl_load innocuous_shl_load
10653
10654 /* System header to define __stub macros and hopefully few prototypes,
10655     which can conflict with char shl_load (); below.
10656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657     <limits.h> exists even on freestanding compilers.  */
10658
10659 #ifdef __STDC__
10660 # include <limits.h>
10661 #else
10662 # include <assert.h>
10663 #endif
10664
10665 #undef shl_load
10666
10667 /* Override any GCC internal prototype to avoid an error.
10668    Use char because int might match the return type of a GCC
10669    builtin and then its argument prototype would still apply.  */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char shl_load ();
10674 /* The GNU C library defines this for functions which it implements
10675     to always fail with ENOSYS.  Some functions are actually named
10676     something starting with __ and the normal name is an alias.  */
10677 #if defined __stub_shl_load || defined __stub___shl_load
10678 choke me
10679 #endif
10680
10681 int
10682 main ()
10683 {
10684 return shl_load ();
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693   *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696   (eval "$ac_link") 2>conftest.er1
10697   ac_status=$?
10698   grep -v '^ *+' conftest.er1 >conftest.err
10699   rm -f conftest.er1
10700   cat conftest.err >&5
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704   { (case "(($ac_try" in
10705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706   *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709   (eval "$ac_try") 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; } &&
10713          { ac_try='test -s conftest$ac_exeext'
10714   { (case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_try") 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }; }; then
10723   ac_cv_func_shl_load=yes
10724 else
10725   echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728         ac_cv_func_shl_load=no
10729 fi
10730
10731 rm -f core conftest.err conftest.$ac_objext \
10732       conftest$ac_exeext conftest.$ac_ext
10733 fi
10734 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10735 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10736 if test $ac_cv_func_shl_load = yes; then
10737   lt_cv_dlopen="shl_load"
10738 else
10739   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10742   echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744   ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-ldld  $LIBS"
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752
10753 /* Override any GCC internal prototype to avoid an error.
10754    Use char because int might match the return type of a GCC
10755    builtin and then its argument prototype would still apply.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char shl_load ();
10760 int
10761 main ()
10762 {
10763 return shl_load ();
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 rm -f conftest.$ac_objext conftest$ac_exeext
10769 if { (ac_try="$ac_link"
10770 case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_link") 2>conftest.er1
10776   ac_status=$?
10777   grep -v '^ *+' conftest.er1 >conftest.err
10778   rm -f conftest.er1
10779   cat conftest.err >&5
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } &&
10782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783   { (case "(($ac_try" in
10784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785   *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788   (eval "$ac_try") 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; } &&
10792          { ac_try='test -s conftest$ac_exeext'
10793   { (case "(($ac_try" in
10794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795   *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798   (eval "$ac_try") 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; }; then
10802   ac_cv_lib_dld_shl_load=yes
10803 else
10804   echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807         ac_cv_lib_dld_shl_load=no
10808 fi
10809
10810 rm -f core conftest.err conftest.$ac_objext \
10811       conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10813 fi
10814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10816 if test $ac_cv_lib_dld_shl_load = yes; then
10817   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10818 else
10819   { echo "$as_me:$LINENO: checking for dlopen" >&5
10820 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10821 if test "${ac_cv_func_dlopen+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10832 #define dlopen innocuous_dlopen
10833
10834 /* System header to define __stub macros and hopefully few prototypes,
10835     which can conflict with char dlopen (); below.
10836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10837     <limits.h> exists even on freestanding compilers.  */
10838
10839 #ifdef __STDC__
10840 # include <limits.h>
10841 #else
10842 # include <assert.h>
10843 #endif
10844
10845 #undef dlopen
10846
10847 /* Override any GCC internal prototype to avoid an error.
10848    Use char because int might match the return type of a GCC
10849    builtin and then its argument prototype would still apply.  */
10850 #ifdef __cplusplus
10851 extern "C"
10852 #endif
10853 char dlopen ();
10854 /* The GNU C library defines this for functions which it implements
10855     to always fail with ENOSYS.  Some functions are actually named
10856     something starting with __ and the normal name is an alias.  */
10857 #if defined __stub_dlopen || defined __stub___dlopen
10858 choke me
10859 #endif
10860
10861 int
10862 main ()
10863 {
10864 return dlopen ();
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873   *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876   (eval "$ac_link") 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884   { (case "(($ac_try" in
10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886   *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889   (eval "$ac_try") 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); }; } &&
10893          { ac_try='test -s conftest$ac_exeext'
10894   { (case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_try") 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; }; then
10903   ac_cv_func_dlopen=yes
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908         ac_cv_func_dlopen=no
10909 fi
10910
10911 rm -f core conftest.err conftest.$ac_objext \
10912       conftest$ac_exeext conftest.$ac_ext
10913 fi
10914 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10915 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10916 if test $ac_cv_func_dlopen = yes; then
10917   lt_cv_dlopen="dlopen"
10918 else
10919   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924   ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-ldl  $LIBS"
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932
10933 /* Override any GCC internal prototype to avoid an error.
10934    Use char because int might match the return type of a GCC
10935    builtin and then its argument prototype would still apply.  */
10936 #ifdef __cplusplus
10937 extern "C"
10938 #endif
10939 char dlopen ();
10940 int
10941 main ()
10942 {
10943 return dlopen ();
10944   ;
10945   return 0;
10946 }
10947 _ACEOF
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_link") 2>conftest.er1
10956   ac_status=$?
10957   grep -v '^ *+' conftest.er1 >conftest.err
10958   rm -f conftest.er1
10959   cat conftest.err >&5
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } &&
10962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10963   { (case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_try") 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; } &&
10972          { ac_try='test -s conftest$ac_exeext'
10973   { (case "(($ac_try" in
10974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975   *) ac_try_echo=$ac_try;;
10976 esac
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978   (eval "$ac_try") 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); }; }; then
10982   ac_cv_lib_dl_dlopen=yes
10983 else
10984   echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987         ac_cv_lib_dl_dlopen=no
10988 fi
10989
10990 rm -f core conftest.err conftest.$ac_objext \
10991       conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10996 if test $ac_cv_lib_dl_dlopen = yes; then
10997   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10998 else
10999   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11000 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-lsvld  $LIBS"
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012
11013 /* Override any GCC internal prototype to avoid an error.
11014    Use char because int might match the return type of a GCC
11015    builtin and then its argument prototype would still apply.  */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 char dlopen ();
11020 int
11021 main ()
11022 {
11023 return dlopen ();
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_link") 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043   { (case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_try") 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; } &&
11052          { ac_try='test -s conftest$ac_exeext'
11053   { (case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_try") 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062   ac_cv_lib_svld_dlopen=yes
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067         ac_cv_lib_svld_dlopen=no
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext \
11071       conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11073 fi
11074 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11075 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11076 if test $ac_cv_lib_svld_dlopen = yes; then
11077   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11078 else
11079   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11080 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11081 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11082   echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084   ac_check_lib_save_LIBS=$LIBS
11085 LIBS="-ldld  $LIBS"
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h.  */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h.  */
11092
11093 /* Override any GCC internal prototype to avoid an error.
11094    Use char because int might match the return type of a GCC
11095    builtin and then its argument prototype would still apply.  */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 char dld_link ();
11100 int
11101 main ()
11102 {
11103 return dld_link ();
11104   ;
11105   return 0;
11106 }
11107 _ACEOF
11108 rm -f conftest.$ac_objext conftest$ac_exeext
11109 if { (ac_try="$ac_link"
11110 case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_link") 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123   { (case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128   (eval "$ac_try") 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); }; } &&
11132          { ac_try='test -s conftest$ac_exeext'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_cv_lib_dld_dld_link=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147         ac_cv_lib_dld_dld_link=no
11148 fi
11149
11150 rm -f core conftest.err conftest.$ac_objext \
11151       conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11153 fi
11154 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11155 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11156 if test $ac_cv_lib_dld_dld_link = yes; then
11157   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11158 fi
11159
11160
11161 fi
11162
11163
11164 fi
11165
11166
11167 fi
11168
11169
11170 fi
11171
11172
11173 fi
11174
11175     ;;
11176   esac
11177
11178   if test "x$lt_cv_dlopen" != xno; then
11179     enable_dlopen=yes
11180   else
11181     enable_dlopen=no
11182   fi
11183
11184   case $lt_cv_dlopen in
11185   dlopen)
11186     save_CPPFLAGS="$CPPFLAGS"
11187     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11188
11189     save_LDFLAGS="$LDFLAGS"
11190     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11191
11192     save_LIBS="$LIBS"
11193     LIBS="$lt_cv_dlopen_libs $LIBS"
11194
11195     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11196 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11197 if test "${lt_cv_dlopen_self+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200           if test "$cross_compiling" = yes; then :
11201   lt_cv_dlopen_self=cross
11202 else
11203   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11204   lt_status=$lt_dlunknown
11205   cat > conftest.$ac_ext <<EOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208
11209 #if HAVE_DLFCN_H
11210 #include <dlfcn.h>
11211 #endif
11212
11213 #include <stdio.h>
11214
11215 #ifdef RTLD_GLOBAL
11216 #  define LT_DLGLOBAL           RTLD_GLOBAL
11217 #else
11218 #  ifdef DL_GLOBAL
11219 #    define LT_DLGLOBAL         DL_GLOBAL
11220 #  else
11221 #    define LT_DLGLOBAL         0
11222 #  endif
11223 #endif
11224
11225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11226    find out it does not work in some platform. */
11227 #ifndef LT_DLLAZY_OR_NOW
11228 #  ifdef RTLD_LAZY
11229 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11230 #  else
11231 #    ifdef DL_LAZY
11232 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11233 #    else
11234 #      ifdef RTLD_NOW
11235 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11236 #      else
11237 #        ifdef DL_NOW
11238 #          define LT_DLLAZY_OR_NOW      DL_NOW
11239 #        else
11240 #          define LT_DLLAZY_OR_NOW      0
11241 #        endif
11242 #      endif
11243 #    endif
11244 #  endif
11245 #endif
11246
11247 #ifdef __cplusplus
11248 extern "C" void exit (int);
11249 #endif
11250
11251 void fnord() { int i=42;}
11252 int main ()
11253 {
11254   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11255   int status = $lt_dlunknown;
11256
11257   if (self)
11258     {
11259       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11260       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11261       /* dlclose (self); */
11262     }
11263
11264     exit (status);
11265 }
11266 EOF
11267   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268   (eval $ac_link) 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11272     (./conftest; exit; ) >&5 2>/dev/null
11273     lt_status=$?
11274     case x$lt_status in
11275       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11276       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11277       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11278     esac
11279   else :
11280     # compilation failed
11281     lt_cv_dlopen_self=no
11282   fi
11283 fi
11284 rm -fr conftest*
11285
11286
11287 fi
11288 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11289 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11290
11291     if test "x$lt_cv_dlopen_self" = xyes; then
11292       LDFLAGS="$LDFLAGS $link_static_flag"
11293       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11294 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11295 if test "${lt_cv_dlopen_self_static+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298           if test "$cross_compiling" = yes; then :
11299   lt_cv_dlopen_self_static=cross
11300 else
11301   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11302   lt_status=$lt_dlunknown
11303   cat > conftest.$ac_ext <<EOF
11304 #line 11304 "configure"
11305 #include "confdefs.h"
11306
11307 #if HAVE_DLFCN_H
11308 #include <dlfcn.h>
11309 #endif
11310
11311 #include <stdio.h>
11312
11313 #ifdef RTLD_GLOBAL
11314 #  define LT_DLGLOBAL           RTLD_GLOBAL
11315 #else
11316 #  ifdef DL_GLOBAL
11317 #    define LT_DLGLOBAL         DL_GLOBAL
11318 #  else
11319 #    define LT_DLGLOBAL         0
11320 #  endif
11321 #endif
11322
11323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11324    find out it does not work in some platform. */
11325 #ifndef LT_DLLAZY_OR_NOW
11326 #  ifdef RTLD_LAZY
11327 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11328 #  else
11329 #    ifdef DL_LAZY
11330 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11331 #    else
11332 #      ifdef RTLD_NOW
11333 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11334 #      else
11335 #        ifdef DL_NOW
11336 #          define LT_DLLAZY_OR_NOW      DL_NOW
11337 #        else
11338 #          define LT_DLLAZY_OR_NOW      0
11339 #        endif
11340 #      endif
11341 #    endif
11342 #  endif
11343 #endif
11344
11345 #ifdef __cplusplus
11346 extern "C" void exit (int);
11347 #endif
11348
11349 void fnord() { int i=42;}
11350 int main ()
11351 {
11352   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11353   int status = $lt_dlunknown;
11354
11355   if (self)
11356     {
11357       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11358       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359       /* dlclose (self); */
11360     }
11361
11362     exit (status);
11363 }
11364 EOF
11365   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366   (eval $ac_link) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11370     (./conftest; exit; ) >&5 2>/dev/null
11371     lt_status=$?
11372     case x$lt_status in
11373       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11374       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11375       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11376     esac
11377   else :
11378     # compilation failed
11379     lt_cv_dlopen_self_static=no
11380   fi
11381 fi
11382 rm -fr conftest*
11383
11384
11385 fi
11386 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11387 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11388     fi
11389
11390     CPPFLAGS="$save_CPPFLAGS"
11391     LDFLAGS="$save_LDFLAGS"
11392     LIBS="$save_LIBS"
11393     ;;
11394   esac
11395
11396   case $lt_cv_dlopen_self in
11397   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11398   *) enable_dlopen_self=unknown ;;
11399   esac
11400
11401   case $lt_cv_dlopen_self_static in
11402   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11403   *) enable_dlopen_self_static=unknown ;;
11404   esac
11405 fi
11406
11407
11408 # Report which librarie types wil actually be built
11409 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11411 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11412 echo "${ECHO_T}$can_build_shared" >&6; }
11413
11414 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11416 test "$can_build_shared" = "no" && enable_shared=no
11417
11418 # On AIX, shared libraries and static libraries use the same namespace, and
11419 # are all built from PIC.
11420 case $host_os in
11421 aix3*)
11422   test "$enable_shared" = yes && enable_static=no
11423   if test -n "$RANLIB"; then
11424     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11425     postinstall_cmds='$RANLIB $lib'
11426   fi
11427   ;;
11428
11429 aix4* | aix5*)
11430   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11431     test "$enable_shared" = yes && enable_static=no
11432   fi
11433     ;;
11434 esac
11435 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11436 echo "${ECHO_T}$enable_shared" >&6; }
11437
11438 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11439 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11440 # Make sure either enable_shared or enable_static is yes.
11441 test "$enable_shared" = yes || enable_static=yes
11442 { echo "$as_me:$LINENO: result: $enable_static" >&5
11443 echo "${ECHO_T}$enable_static" >&6; }
11444
11445 # The else clause should only fire when bootstrapping the
11446 # libtool distribution, otherwise you forgot to ship ltmain.sh
11447 # with your package, and you will get complaints that there are
11448 # no rules to generate ltmain.sh.
11449 if test -f "$ltmain"; then
11450   # See if we are running on zsh, and set the options which allow our commands through
11451   # without removal of \ escapes.
11452   if test -n "${ZSH_VERSION+set}" ; then
11453     setopt NO_GLOB_SUBST
11454   fi
11455   # Now quote all the things that may contain metacharacters while being
11456   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11457   # variables and quote the copies for generation of the libtool script.
11458   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11459     SED SHELL STRIP \
11460     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11461     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11462     deplibs_check_method reload_flag reload_cmds need_locks \
11463     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11464     lt_cv_sys_global_symbol_to_c_name_address \
11465     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11466     old_postinstall_cmds old_postuninstall_cmds \
11467     compiler \
11468     CC \
11469     LD \
11470     lt_prog_compiler_wl \
11471     lt_prog_compiler_pic \
11472     lt_prog_compiler_static \
11473     lt_prog_compiler_no_builtin_flag \
11474     export_dynamic_flag_spec \
11475     thread_safe_flag_spec \
11476     whole_archive_flag_spec \
11477     enable_shared_with_static_runtimes \
11478     old_archive_cmds \
11479     old_archive_from_new_cmds \
11480     predep_objects \
11481     postdep_objects \
11482     predeps \
11483     postdeps \
11484     compiler_lib_search_path \
11485     archive_cmds \
11486     archive_expsym_cmds \
11487     postinstall_cmds \
11488     postuninstall_cmds \
11489     old_archive_from_expsyms_cmds \
11490     allow_undefined_flag \
11491     no_undefined_flag \
11492     export_symbols_cmds \
11493     hardcode_libdir_flag_spec \
11494     hardcode_libdir_flag_spec_ld \
11495     hardcode_libdir_separator \
11496     hardcode_automatic \
11497     module_cmds \
11498     module_expsym_cmds \
11499     lt_cv_prog_compiler_c_o \
11500     exclude_expsyms \
11501     include_expsyms; do
11502
11503     case $var in
11504     old_archive_cmds | \
11505     old_archive_from_new_cmds | \
11506     archive_cmds | \
11507     archive_expsym_cmds | \
11508     module_cmds | \
11509     module_expsym_cmds | \
11510     old_archive_from_expsyms_cmds | \
11511     export_symbols_cmds | \
11512     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11513     postinstall_cmds | postuninstall_cmds | \
11514     old_postinstall_cmds | old_postuninstall_cmds | \
11515     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11516       # Double-quote double-evaled strings.
11517       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11518       ;;
11519     *)
11520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11521       ;;
11522     esac
11523   done
11524
11525   case $lt_echo in
11526   *'\$0 --fallback-echo"')
11527     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11528     ;;
11529   esac
11530
11531 cfgfile="${ofile}T"
11532   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11533   $rm -f "$cfgfile"
11534   { echo "$as_me:$LINENO: creating $ofile" >&5
11535 echo "$as_me: creating $ofile" >&6;}
11536
11537   cat <<__EOF__ >> "$cfgfile"
11538 #! $SHELL
11539
11540 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11541 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11542 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11543 #
11544 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11545 # Free Software Foundation, Inc.
11546 #
11547 # This file is part of GNU Libtool:
11548 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11549 #
11550 # This program is free software; you can redistribute it and/or modify
11551 # it under the terms of the GNU General Public License as published by
11552 # the Free Software Foundation; either version 2 of the License, or
11553 # (at your option) any later version.
11554 #
11555 # This program is distributed in the hope that it will be useful, but
11556 # WITHOUT ANY WARRANTY; without even the implied warranty of
11557 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11558 # General Public License for more details.
11559 #
11560 # You should have received a copy of the GNU General Public License
11561 # along with this program; if not, write to the Free Software
11562 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11563 #
11564 # As a special exception to the GNU General Public License, if you
11565 # distribute this file as part of a program that contains a
11566 # configuration script generated by Autoconf, you may include it under
11567 # the same distribution terms that you use for the rest of that program.
11568
11569 # A sed program that does not truncate output.
11570 SED=$lt_SED
11571
11572 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11573 Xsed="$SED -e 1s/^X//"
11574
11575 # The HP-UX ksh and POSIX shell print the target directory to stdout
11576 # if CDPATH is set.
11577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11578
11579 # The names of the tagged configurations supported by this script.
11580 available_tags=
11581
11582 # ### BEGIN LIBTOOL CONFIG
11583
11584 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11585
11586 # Shell to use when invoking shell scripts.
11587 SHELL=$lt_SHELL
11588
11589 # Whether or not to build shared libraries.
11590 build_libtool_libs=$enable_shared
11591
11592 # Whether or not to build static libraries.
11593 build_old_libs=$enable_static
11594
11595 # Whether or not to add -lc for building shared libraries.
11596 build_libtool_need_lc=$archive_cmds_need_lc
11597
11598 # Whether or not to disallow shared libs when runtime libs are static
11599 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11600
11601 # Whether or not to optimize for fast installation.
11602 fast_install=$enable_fast_install
11603
11604 # The host system.
11605 host_alias=$host_alias
11606 host=$host
11607 host_os=$host_os
11608
11609 # The build system.
11610 build_alias=$build_alias
11611 build=$build
11612 build_os=$build_os
11613
11614 # An echo program that does not interpret backslashes.
11615 echo=$lt_echo
11616
11617 # The archiver.
11618 AR=$lt_AR
11619 AR_FLAGS=$lt_AR_FLAGS
11620
11621 # A C compiler.
11622 LTCC=$lt_LTCC
11623
11624 # A language-specific compiler.
11625 CC=$lt_compiler
11626
11627 # Is the compiler the GNU C compiler?
11628 with_gcc=$GCC
11629
11630 # An ERE matcher.
11631 EGREP=$lt_EGREP
11632
11633 # The linker used to build libraries.
11634 LD=$lt_LD
11635
11636 # Whether we need hard or soft links.
11637 LN_S=$lt_LN_S
11638
11639 # A BSD-compatible nm program.
11640 NM=$lt_NM
11641
11642 # A symbol stripping program
11643 STRIP=$lt_STRIP
11644
11645 # Used to examine libraries when file_magic_cmd begins "file"
11646 MAGIC_CMD=$MAGIC_CMD
11647
11648 # Used on cygwin: DLL creation program.
11649 DLLTOOL="$DLLTOOL"
11650
11651 # Used on cygwin: object dumper.
11652 OBJDUMP="$OBJDUMP"
11653
11654 # Used on cygwin: assembler.
11655 AS="$AS"
11656
11657 # The name of the directory that contains temporary libtool files.
11658 objdir=$objdir
11659
11660 # How to create reloadable object files.
11661 reload_flag=$lt_reload_flag
11662 reload_cmds=$lt_reload_cmds
11663
11664 # How to pass a linker flag through the compiler.
11665 wl=$lt_lt_prog_compiler_wl
11666
11667 # Object file suffix (normally "o").
11668 objext="$ac_objext"
11669
11670 # Old archive suffix (normally "a").
11671 libext="$libext"
11672
11673 # Shared library suffix (normally ".so").
11674 shrext_cmds='$shrext_cmds'
11675
11676 # Executable file suffix (normally "").
11677 exeext="$exeext"
11678
11679 # Additional compiler flags for building library objects.
11680 pic_flag=$lt_lt_prog_compiler_pic
11681 pic_mode=$pic_mode
11682
11683 # What is the maximum length of a command?
11684 max_cmd_len=$lt_cv_sys_max_cmd_len
11685
11686 # Does compiler simultaneously support -c and -o options?
11687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11688
11689 # Must we lock files when doing compilation?
11690 need_locks=$lt_need_locks
11691
11692 # Do we need the lib prefix for modules?
11693 need_lib_prefix=$need_lib_prefix
11694
11695 # Do we need a version for libraries?
11696 need_version=$need_version
11697
11698 # Whether dlopen is supported.
11699 dlopen_support=$enable_dlopen
11700
11701 # Whether dlopen of programs is supported.
11702 dlopen_self=$enable_dlopen_self
11703
11704 # Whether dlopen of statically linked programs is supported.
11705 dlopen_self_static=$enable_dlopen_self_static
11706
11707 # Compiler flag to prevent dynamic linking.
11708 link_static_flag=$lt_lt_prog_compiler_static
11709
11710 # Compiler flag to turn off builtin functions.
11711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11712
11713 # Compiler flag to allow reflexive dlopens.
11714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11715
11716 # Compiler flag to generate shared objects directly from archives.
11717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11718
11719 # Compiler flag to generate thread-safe objects.
11720 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11721
11722 # Library versioning type.
11723 version_type=$version_type
11724
11725 # Format of library name prefix.
11726 libname_spec=$lt_libname_spec
11727
11728 # List of archive names.  First name is the real one, the rest are links.
11729 # The last name is the one that the linker finds with -lNAME.
11730 library_names_spec=$lt_library_names_spec
11731
11732 # The coded name of the library, if different from the real name.
11733 soname_spec=$lt_soname_spec
11734
11735 # Commands used to build and install an old-style archive.
11736 RANLIB=$lt_RANLIB
11737 old_archive_cmds=$lt_old_archive_cmds
11738 old_postinstall_cmds=$lt_old_postinstall_cmds
11739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11740
11741 # Create an old-style archive from a shared archive.
11742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11743
11744 # Create a temporary old-style archive to link instead of a shared archive.
11745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11746
11747 # Commands used to build and install a shared archive.
11748 archive_cmds=$lt_archive_cmds
11749 archive_expsym_cmds=$lt_archive_expsym_cmds
11750 postinstall_cmds=$lt_postinstall_cmds
11751 postuninstall_cmds=$lt_postuninstall_cmds
11752
11753 # Commands used to build a loadable module (assumed same as above if empty)
11754 module_cmds=$lt_module_cmds
11755 module_expsym_cmds=$lt_module_expsym_cmds
11756
11757 # Commands to strip libraries.
11758 old_striplib=$lt_old_striplib
11759 striplib=$lt_striplib
11760
11761 # Dependencies to place before the objects being linked to create a
11762 # shared library.
11763 predep_objects=$lt_predep_objects
11764
11765 # Dependencies to place after the objects being linked to create a
11766 # shared library.
11767 postdep_objects=$lt_postdep_objects
11768
11769 # Dependencies to place before the objects being linked to create a
11770 # shared library.
11771 predeps=$lt_predeps
11772
11773 # Dependencies to place after the objects being linked to create a
11774 # shared library.
11775 postdeps=$lt_postdeps
11776
11777 # The library search path used internally by the compiler when linking
11778 # a shared library.
11779 compiler_lib_search_path=$lt_compiler_lib_search_path
11780
11781 # Method to check whether dependent libraries are shared objects.
11782 deplibs_check_method=$lt_deplibs_check_method
11783
11784 # Command to use when deplibs_check_method == file_magic.
11785 file_magic_cmd=$lt_file_magic_cmd
11786
11787 # Flag that allows shared libraries with undefined symbols to be built.
11788 allow_undefined_flag=$lt_allow_undefined_flag
11789
11790 # Flag that forces no undefined symbols.
11791 no_undefined_flag=$lt_no_undefined_flag
11792
11793 # Commands used to finish a libtool library installation in a directory.
11794 finish_cmds=$lt_finish_cmds
11795
11796 # Same as above, but a single script fragment to be evaled but not shown.
11797 finish_eval=$lt_finish_eval
11798
11799 # Take the output of nm and produce a listing of raw symbols and C names.
11800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11801
11802 # Transform the output of nm in a proper C declaration
11803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11804
11805 # Transform the output of nm in a C name address pair
11806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11807
11808 # This is the shared library runtime path variable.
11809 runpath_var=$runpath_var
11810
11811 # This is the shared library path variable.
11812 shlibpath_var=$shlibpath_var
11813
11814 # Is shlibpath searched before the hard-coded library search path?
11815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11816
11817 # How to hardcode a shared library path into an executable.
11818 hardcode_action=$hardcode_action
11819
11820 # Whether we should hardcode library paths into libraries.
11821 hardcode_into_libs=$hardcode_into_libs
11822
11823 # Flag to hardcode \$libdir into a binary during linking.
11824 # This must work even if \$libdir does not exist.
11825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11826
11827 # If ld is used when linking, flag to hardcode \$libdir into
11828 # a binary during linking. This must work even if \$libdir does
11829 # not exist.
11830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11831
11832 # Whether we need a single -rpath flag with a separated argument.
11833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11834
11835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11836 # resulting binary.
11837 hardcode_direct=$hardcode_direct
11838
11839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11840 # resulting binary.
11841 hardcode_minus_L=$hardcode_minus_L
11842
11843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11844 # the resulting binary.
11845 hardcode_shlibpath_var=$hardcode_shlibpath_var
11846
11847 # Set to yes if building a shared library automatically hardcodes DIR into the library
11848 # and all subsequent libraries and executables linked against it.
11849 hardcode_automatic=$hardcode_automatic
11850
11851 # Variables whose values should be saved in libtool wrapper scripts and
11852 # restored at relink time.
11853 variables_saved_for_relink="$variables_saved_for_relink"
11854
11855 # Whether libtool must link a program against all its dependency libraries.
11856 link_all_deplibs=$link_all_deplibs
11857
11858 # Compile-time system search path for libraries
11859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11860
11861 # Run-time system search path for libraries
11862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11863
11864 # Fix the shell variable \$srcfile for the compiler.
11865 fix_srcfile_path="$fix_srcfile_path"
11866
11867 # Set to yes if exported symbols are required.
11868 always_export_symbols=$always_export_symbols
11869
11870 # The commands to list exported symbols.
11871 export_symbols_cmds=$lt_export_symbols_cmds
11872
11873 # The commands to extract the exported symbol list from a shared archive.
11874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11875
11876 # Symbols that should not be listed in the preloaded symbols.
11877 exclude_expsyms=$lt_exclude_expsyms
11878
11879 # Symbols that must always be exported.
11880 include_expsyms=$lt_include_expsyms
11881
11882 # ### END LIBTOOL CONFIG
11883
11884 __EOF__
11885
11886
11887   case $host_os in
11888   aix3*)
11889     cat <<\EOF >> "$cfgfile"
11890
11891 # AIX sometimes has problems with the GCC collect2 program.  For some
11892 # reason, if we set the COLLECT_NAMES environment variable, the problems
11893 # vanish in a puff of smoke.
11894 if test "X${COLLECT_NAMES+set}" != Xset; then
11895   COLLECT_NAMES=
11896   export COLLECT_NAMES
11897 fi
11898 EOF
11899     ;;
11900   esac
11901
11902   # We use sed instead of cat because bash on DJGPP gets confused if
11903   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11904   # text mode, it properly converts lines to CR/LF.  This bash problem
11905   # is reportedly fixed, but why not run on old versions too?
11906   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11907
11908   mv -f "$cfgfile" "$ofile" || \
11909     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11910   chmod +x "$ofile"
11911
11912 else
11913   # If there is no Makefile yet, we rely on a make rule to execute
11914   # `config.status --recheck' to rerun these tests and create the
11915   # libtool script then.
11916   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11917   if test -f "$ltmain_in"; then
11918     test -f Makefile && make "$ltmain"
11919   fi
11920 fi
11921
11922
11923 ac_ext=c
11924 ac_cpp='$CPP $CPPFLAGS'
11925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11928
11929 CC="$lt_save_CC"
11930
11931
11932 # Check whether --with-tags was given.
11933 if test "${with_tags+set}" = set; then
11934   withval=$with_tags; tagnames="$withval"
11935 fi
11936
11937
11938 if test -f "$ltmain" && test -n "$tagnames"; then
11939   if test ! -f "${ofile}"; then
11940     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11941 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11942   fi
11943
11944   if test -z "$LTCC"; then
11945     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11946     if test -z "$LTCC"; then
11947       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11948 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11949     else
11950       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11951 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11952     fi
11953   fi
11954
11955   # Extract list of available tagged configurations in $ofile.
11956   # Note that this assumes the entire list is on one line.
11957   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11958
11959   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11960   for tagname in $tagnames; do
11961     IFS="$lt_save_ifs"
11962     # Check whether tagname contains only valid characters
11963     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11964     "") ;;
11965     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11966 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11967    { (exit 1); exit 1; }; }
11968         ;;
11969     esac
11970
11971     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11972     then
11973       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11974 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11975    { (exit 1); exit 1; }; }
11976     fi
11977
11978     # Update the list of available tags.
11979     if test -n "$tagname"; then
11980       echo appending configuration tag \"$tagname\" to $ofile
11981
11982       case $tagname in
11983       CXX)
11984         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11985             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11986             (test "X$CXX" != "Xg++"))) ; then
11987           :
11988         else
11989           tagname=""
11990         fi
11991         ;;
11992
11993       F77)
11994         if test -n "$F77" && test "X$F77" != "Xno"; then
11995           :
11996         else
11997           tagname=""
11998         fi
11999         ;;
12000
12001       GCJ)
12002         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12003           :
12004         else
12005           tagname=""
12006         fi
12007         ;;
12008
12009       RC)
12010
12011
12012 # Source file extension for RC test sources.
12013 ac_ext=rc
12014
12015 # Object file extension for compiled RC test sources.
12016 objext=o
12017 objext_RC=$objext
12018
12019 # Code to be used in simple compile tests
12020 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12021
12022 # Code to be used in simple link tests
12023 lt_simple_link_test_code="$lt_simple_compile_test_code"
12024
12025 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12026
12027 # If no C compiler was specified, use CC.
12028 LTCC=${LTCC-"$CC"}
12029
12030 # Allow CC to be a program name with arguments.
12031 compiler=$CC
12032
12033
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12039 $rm conftest*
12040
12041 ac_outfile=conftest.$ac_objext
12042 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12045 $rm conftest*
12046
12047
12048 # Allow CC to be a program name with arguments.
12049 lt_save_CC="$CC"
12050 CC=${RC-"windres"}
12051 compiler=$CC
12052 compiler_RC=$CC
12053 for cc_temp in $compiler""; do
12054   case $cc_temp in
12055     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12056     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12057     \-*) ;;
12058     *) break;;
12059   esac
12060 done
12061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12062
12063 lt_cv_prog_compiler_c_o_RC=yes
12064
12065 # The else clause should only fire when bootstrapping the
12066 # libtool distribution, otherwise you forgot to ship ltmain.sh
12067 # with your package, and you will get complaints that there are
12068 # no rules to generate ltmain.sh.
12069 if test -f "$ltmain"; then
12070   # See if we are running on zsh, and set the options which allow our commands through
12071   # without removal of \ escapes.
12072   if test -n "${ZSH_VERSION+set}" ; then
12073     setopt NO_GLOB_SUBST
12074   fi
12075   # Now quote all the things that may contain metacharacters while being
12076   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12077   # variables and quote the copies for generation of the libtool script.
12078   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12079     SED SHELL STRIP \
12080     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12081     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12082     deplibs_check_method reload_flag reload_cmds need_locks \
12083     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12084     lt_cv_sys_global_symbol_to_c_name_address \
12085     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12086     old_postinstall_cmds old_postuninstall_cmds \
12087     compiler_RC \
12088     CC_RC \
12089     LD_RC \
12090     lt_prog_compiler_wl_RC \
12091     lt_prog_compiler_pic_RC \
12092     lt_prog_compiler_static_RC \
12093     lt_prog_compiler_no_builtin_flag_RC \
12094     export_dynamic_flag_spec_RC \
12095     thread_safe_flag_spec_RC \
12096     whole_archive_flag_spec_RC \
12097     enable_shared_with_static_runtimes_RC \
12098     old_archive_cmds_RC \
12099     old_archive_from_new_cmds_RC \
12100     predep_objects_RC \
12101     postdep_objects_RC \
12102     predeps_RC \
12103     postdeps_RC \
12104     compiler_lib_search_path_RC \
12105     archive_cmds_RC \
12106     archive_expsym_cmds_RC \
12107     postinstall_cmds_RC \
12108     postuninstall_cmds_RC \
12109     old_archive_from_expsyms_cmds_RC \
12110     allow_undefined_flag_RC \
12111     no_undefined_flag_RC \
12112     export_symbols_cmds_RC \
12113     hardcode_libdir_flag_spec_RC \
12114     hardcode_libdir_flag_spec_ld_RC \
12115     hardcode_libdir_separator_RC \
12116     hardcode_automatic_RC \
12117     module_cmds_RC \
12118     module_expsym_cmds_RC \
12119     lt_cv_prog_compiler_c_o_RC \
12120     exclude_expsyms_RC \
12121     include_expsyms_RC; do
12122
12123     case $var in
12124     old_archive_cmds_RC | \
12125     old_archive_from_new_cmds_RC | \
12126     archive_cmds_RC | \
12127     archive_expsym_cmds_RC | \
12128     module_cmds_RC | \
12129     module_expsym_cmds_RC | \
12130     old_archive_from_expsyms_cmds_RC | \
12131     export_symbols_cmds_RC | \
12132     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12133     postinstall_cmds | postuninstall_cmds | \
12134     old_postinstall_cmds | old_postuninstall_cmds | \
12135     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12136       # Double-quote double-evaled strings.
12137       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12138       ;;
12139     *)
12140       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12141       ;;
12142     esac
12143   done
12144
12145   case $lt_echo in
12146   *'\$0 --fallback-echo"')
12147     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12148     ;;
12149   esac
12150
12151 cfgfile="$ofile"
12152
12153   cat <<__EOF__ >> "$cfgfile"
12154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12155
12156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12157
12158 # Shell to use when invoking shell scripts.
12159 SHELL=$lt_SHELL
12160
12161 # Whether or not to build shared libraries.
12162 build_libtool_libs=$enable_shared
12163
12164 # Whether or not to build static libraries.
12165 build_old_libs=$enable_static
12166
12167 # Whether or not to add -lc for building shared libraries.
12168 build_libtool_need_lc=$archive_cmds_need_lc_RC
12169
12170 # Whether or not to disallow shared libs when runtime libs are static
12171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12172
12173 # Whether or not to optimize for fast installation.
12174 fast_install=$enable_fast_install
12175
12176 # The host system.
12177 host_alias=$host_alias
12178 host=$host
12179 host_os=$host_os
12180
12181 # The build system.
12182 build_alias=$build_alias
12183 build=$build
12184 build_os=$build_os
12185
12186 # An echo program that does not interpret backslashes.
12187 echo=$lt_echo
12188
12189 # The archiver.
12190 AR=$lt_AR
12191 AR_FLAGS=$lt_AR_FLAGS
12192
12193 # A C compiler.
12194 LTCC=$lt_LTCC
12195
12196 # A language-specific compiler.
12197 CC=$lt_compiler_RC
12198
12199 # Is the compiler the GNU C compiler?
12200 with_gcc=$GCC_RC
12201
12202 # An ERE matcher.
12203 EGREP=$lt_EGREP
12204
12205 # The linker used to build libraries.
12206 LD=$lt_LD_RC
12207
12208 # Whether we need hard or soft links.
12209 LN_S=$lt_LN_S
12210
12211 # A BSD-compatible nm program.
12212 NM=$lt_NM
12213
12214 # A symbol stripping program
12215 STRIP=$lt_STRIP
12216
12217 # Used to examine libraries when file_magic_cmd begins "file"
12218 MAGIC_CMD=$MAGIC_CMD
12219
12220 # Used on cygwin: DLL creation program.
12221 DLLTOOL="$DLLTOOL"
12222
12223 # Used on cygwin: object dumper.
12224 OBJDUMP="$OBJDUMP"
12225
12226 # Used on cygwin: assembler.
12227 AS="$AS"
12228
12229 # The name of the directory that contains temporary libtool files.
12230 objdir=$objdir
12231
12232 # How to create reloadable object files.
12233 reload_flag=$lt_reload_flag
12234 reload_cmds=$lt_reload_cmds
12235
12236 # How to pass a linker flag through the compiler.
12237 wl=$lt_lt_prog_compiler_wl_RC
12238
12239 # Object file suffix (normally "o").
12240 objext="$ac_objext"
12241
12242 # Old archive suffix (normally "a").
12243 libext="$libext"
12244
12245 # Shared library suffix (normally ".so").
12246 shrext_cmds='$shrext_cmds'
12247
12248 # Executable file suffix (normally "").
12249 exeext="$exeext"
12250
12251 # Additional compiler flags for building library objects.
12252 pic_flag=$lt_lt_prog_compiler_pic_RC
12253 pic_mode=$pic_mode
12254
12255 # What is the maximum length of a command?
12256 max_cmd_len=$lt_cv_sys_max_cmd_len
12257
12258 # Does compiler simultaneously support -c and -o options?
12259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12260
12261 # Must we lock files when doing compilation?
12262 need_locks=$lt_need_locks
12263
12264 # Do we need the lib prefix for modules?
12265 need_lib_prefix=$need_lib_prefix
12266
12267 # Do we need a version for libraries?
12268 need_version=$need_version
12269
12270 # Whether dlopen is supported.
12271 dlopen_support=$enable_dlopen
12272
12273 # Whether dlopen of programs is supported.
12274 dlopen_self=$enable_dlopen_self
12275
12276 # Whether dlopen of statically linked programs is supported.
12277 dlopen_self_static=$enable_dlopen_self_static
12278
12279 # Compiler flag to prevent dynamic linking.
12280 link_static_flag=$lt_lt_prog_compiler_static_RC
12281
12282 # Compiler flag to turn off builtin functions.
12283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12284
12285 # Compiler flag to allow reflexive dlopens.
12286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12287
12288 # Compiler flag to generate shared objects directly from archives.
12289 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12290
12291 # Compiler flag to generate thread-safe objects.
12292 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12293
12294 # Library versioning type.
12295 version_type=$version_type
12296
12297 # Format of library name prefix.
12298 libname_spec=$lt_libname_spec
12299
12300 # List of archive names.  First name is the real one, the rest are links.
12301 # The last name is the one that the linker finds with -lNAME.
12302 library_names_spec=$lt_library_names_spec
12303
12304 # The coded name of the library, if different from the real name.
12305 soname_spec=$lt_soname_spec
12306
12307 # Commands used to build and install an old-style archive.
12308 RANLIB=$lt_RANLIB
12309 old_archive_cmds=$lt_old_archive_cmds_RC
12310 old_postinstall_cmds=$lt_old_postinstall_cmds
12311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12312
12313 # Create an old-style archive from a shared archive.
12314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12315
12316 # Create a temporary old-style archive to link instead of a shared archive.
12317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12318
12319 # Commands used to build and install a shared archive.
12320 archive_cmds=$lt_archive_cmds_RC
12321 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12322 postinstall_cmds=$lt_postinstall_cmds
12323 postuninstall_cmds=$lt_postuninstall_cmds
12324
12325 # Commands used to build a loadable module (assumed same as above if empty)
12326 module_cmds=$lt_module_cmds_RC
12327 module_expsym_cmds=$lt_module_expsym_cmds_RC
12328
12329 # Commands to strip libraries.
12330 old_striplib=$lt_old_striplib
12331 striplib=$lt_striplib
12332
12333 # Dependencies to place before the objects being linked to create a
12334 # shared library.
12335 predep_objects=$lt_predep_objects_RC
12336
12337 # Dependencies to place after the objects being linked to create a
12338 # shared library.
12339 postdep_objects=$lt_postdep_objects_RC
12340
12341 # Dependencies to place before the objects being linked to create a
12342 # shared library.
12343 predeps=$lt_predeps_RC
12344
12345 # Dependencies to place after the objects being linked to create a
12346 # shared library.
12347 postdeps=$lt_postdeps_RC
12348
12349 # The library search path used internally by the compiler when linking
12350 # a shared library.
12351 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12352
12353 # Method to check whether dependent libraries are shared objects.
12354 deplibs_check_method=$lt_deplibs_check_method
12355
12356 # Command to use when deplibs_check_method == file_magic.
12357 file_magic_cmd=$lt_file_magic_cmd
12358
12359 # Flag that allows shared libraries with undefined symbols to be built.
12360 allow_undefined_flag=$lt_allow_undefined_flag_RC
12361
12362 # Flag that forces no undefined symbols.
12363 no_undefined_flag=$lt_no_undefined_flag_RC
12364
12365 # Commands used to finish a libtool library installation in a directory.
12366 finish_cmds=$lt_finish_cmds
12367
12368 # Same as above, but a single script fragment to be evaled but not shown.
12369 finish_eval=$lt_finish_eval
12370
12371 # Take the output of nm and produce a listing of raw symbols and C names.
12372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12373
12374 # Transform the output of nm in a proper C declaration
12375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12376
12377 # Transform the output of nm in a C name address pair
12378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12379
12380 # This is the shared library runtime path variable.
12381 runpath_var=$runpath_var
12382
12383 # This is the shared library path variable.
12384 shlibpath_var=$shlibpath_var
12385
12386 # Is shlibpath searched before the hard-coded library search path?
12387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12388
12389 # How to hardcode a shared library path into an executable.
12390 hardcode_action=$hardcode_action_RC
12391
12392 # Whether we should hardcode library paths into libraries.
12393 hardcode_into_libs=$hardcode_into_libs
12394
12395 # Flag to hardcode \$libdir into a binary during linking.
12396 # This must work even if \$libdir does not exist.
12397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12398
12399 # If ld is used when linking, flag to hardcode \$libdir into
12400 # a binary during linking. This must work even if \$libdir does
12401 # not exist.
12402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12403
12404 # Whether we need a single -rpath flag with a separated argument.
12405 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12406
12407 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12408 # resulting binary.
12409 hardcode_direct=$hardcode_direct_RC
12410
12411 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12412 # resulting binary.
12413 hardcode_minus_L=$hardcode_minus_L_RC
12414
12415 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12416 # the resulting binary.
12417 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12418
12419 # Set to yes if building a shared library automatically hardcodes DIR into the library
12420 # and all subsequent libraries and executables linked against it.
12421 hardcode_automatic=$hardcode_automatic_RC
12422
12423 # Variables whose values should be saved in libtool wrapper scripts and
12424 # restored at relink time.
12425 variables_saved_for_relink="$variables_saved_for_relink"
12426
12427 # Whether libtool must link a program against all its dependency libraries.
12428 link_all_deplibs=$link_all_deplibs_RC
12429
12430 # Compile-time system search path for libraries
12431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12432
12433 # Run-time system search path for libraries
12434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12435
12436 # Fix the shell variable \$srcfile for the compiler.
12437 fix_srcfile_path="$fix_srcfile_path_RC"
12438
12439 # Set to yes if exported symbols are required.
12440 always_export_symbols=$always_export_symbols_RC
12441
12442 # The commands to list exported symbols.
12443 export_symbols_cmds=$lt_export_symbols_cmds_RC
12444
12445 # The commands to extract the exported symbol list from a shared archive.
12446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12447
12448 # Symbols that should not be listed in the preloaded symbols.
12449 exclude_expsyms=$lt_exclude_expsyms_RC
12450
12451 # Symbols that must always be exported.
12452 include_expsyms=$lt_include_expsyms_RC
12453
12454 # ### END LIBTOOL TAG CONFIG: $tagname
12455
12456 __EOF__
12457
12458
12459 else
12460   # If there is no Makefile yet, we rely on a make rule to execute
12461   # `config.status --recheck' to rerun these tests and create the
12462   # libtool script then.
12463   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12464   if test -f "$ltmain_in"; then
12465     test -f Makefile && make "$ltmain"
12466   fi
12467 fi
12468
12469
12470 ac_ext=c
12471 ac_cpp='$CPP $CPPFLAGS'
12472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12475
12476 CC="$lt_save_CC"
12477
12478         ;;
12479
12480       *)
12481         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12482 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12483    { (exit 1); exit 1; }; }
12484         ;;
12485       esac
12486
12487       # Append the new tag name to the list of available tags.
12488       if test -n "$tagname" ; then
12489       available_tags="$available_tags $tagname"
12490     fi
12491     fi
12492   done
12493   IFS="$lt_save_ifs"
12494
12495   # Now substitute the updated list of available tags.
12496   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12497     mv "${ofile}T" "$ofile"
12498     chmod +x "$ofile"
12499   else
12500     rm -f "${ofile}T"
12501     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12502 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12503    { (exit 1); exit 1; }; }
12504   fi
12505 fi
12506
12507
12508
12509 # This can be used to rebuild libtool when needed
12510 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12511
12512 # Always use our own libtool.
12513 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12514
12515 # Prevent multiple expansion
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526 ol_link_perl=no
12527 if test $ol_enable_perl != no ; then
12528         # Extract the first word of "perl", so it can be a program name with args.
12529 set dummy perl; ac_word=$2
12530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12532 if test "${ac_cv_path_PERLBIN+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   case $PERLBIN in
12536   [\\/]* | ?:[\\/]*)
12537   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12538   ;;
12539   *)
12540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12542 do
12543   IFS=$as_save_IFS
12544   test -z "$as_dir" && as_dir=.
12545   for ac_exec_ext in '' $ac_executable_extensions; do
12546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12547     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12549     break 2
12550   fi
12551 done
12552 done
12553 IFS=$as_save_IFS
12554
12555   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12556   ;;
12557 esac
12558 fi
12559 PERLBIN=$ac_cv_path_PERLBIN
12560 if test -n "$PERLBIN"; then
12561   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12562 echo "${ECHO_T}$PERLBIN" >&6; }
12563 else
12564   { echo "$as_me:$LINENO: result: no" >&5
12565 echo "${ECHO_T}no" >&6; }
12566 fi
12567
12568
12569
12570         if test "no$PERLBIN" = "no" ; then
12571                 if test $ol_enable_perl = yes ; then
12572                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12573 echo "$as_me: error: could not locate perl" >&2;}
12574    { (exit 1); exit 1; }; }
12575                 fi
12576
12577         else
12578                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12579                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12580
12581                 if test x"$ol_enable_perl" = "xyes" ; then
12582                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12583                 else
12584                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12585                 fi
12586                                 ol_link_perl=yes
12587         fi
12588 fi
12589
12590 ac_ext=c
12591 ac_cpp='$CPP $CPPFLAGS'
12592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12595 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12596 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12597 # On Suns, sometimes $CPP names a directory.
12598 if test -n "$CPP" && test -d "$CPP"; then
12599   CPP=
12600 fi
12601 if test -z "$CPP"; then
12602   if test "${ac_cv_prog_CPP+set}" = set; then
12603   echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605       # Double quotes because CPP needs to be expanded
12606     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12607     do
12608       ac_preproc_ok=false
12609 for ac_c_preproc_warn_flag in '' yes
12610 do
12611   # Use a header file that comes with gcc, so configuring glibc
12612   # with a fresh cross-compiler works.
12613   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12614   # <limits.h> exists even on freestanding compilers.
12615   # On the NeXT, cc -E runs the code through the compiler's parser,
12616   # not just through cpp. "Syntax error" is here to catch this case.
12617   cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623 #ifdef __STDC__
12624 # include <limits.h>
12625 #else
12626 # include <assert.h>
12627 #endif
12628                      Syntax error
12629 _ACEOF
12630 if { (ac_try="$ac_cpp conftest.$ac_ext"
12631 case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12637   ac_status=$?
12638   grep -v '^ *+' conftest.er1 >conftest.err
12639   rm -f conftest.er1
12640   cat conftest.err >&5
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); } >/dev/null; then
12643   if test -s conftest.err; then
12644     ac_cpp_err=$ac_c_preproc_warn_flag
12645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12646   else
12647     ac_cpp_err=
12648   fi
12649 else
12650   ac_cpp_err=yes
12651 fi
12652 if test -z "$ac_cpp_err"; then
12653   :
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658   # Broken: fails on valid input.
12659 continue
12660 fi
12661
12662 rm -f conftest.err conftest.$ac_ext
12663
12664   # OK, works on sane cases.  Now check whether nonexistent headers
12665   # can be detected and how.
12666   cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672 #include <ac_nonexistent.h>
12673 _ACEOF
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } >/dev/null; then
12687   if test -s conftest.err; then
12688     ac_cpp_err=$ac_c_preproc_warn_flag
12689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12690   else
12691     ac_cpp_err=
12692   fi
12693 else
12694   ac_cpp_err=yes
12695 fi
12696 if test -z "$ac_cpp_err"; then
12697   # Broken: success on invalid input.
12698 continue
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703   # Passes both tests.
12704 ac_preproc_ok=:
12705 break
12706 fi
12707
12708 rm -f conftest.err conftest.$ac_ext
12709
12710 done
12711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12712 rm -f conftest.err conftest.$ac_ext
12713 if $ac_preproc_ok; then
12714   break
12715 fi
12716
12717     done
12718     ac_cv_prog_CPP=$CPP
12719
12720 fi
12721   CPP=$ac_cv_prog_CPP
12722 else
12723   ac_cv_prog_CPP=$CPP
12724 fi
12725 { echo "$as_me:$LINENO: result: $CPP" >&5
12726 echo "${ECHO_T}$CPP" >&6; }
12727 ac_preproc_ok=false
12728 for ac_c_preproc_warn_flag in '' yes
12729 do
12730   # Use a header file that comes with gcc, so configuring glibc
12731   # with a fresh cross-compiler works.
12732   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12733   # <limits.h> exists even on freestanding compilers.
12734   # On the NeXT, cc -E runs the code through the compiler's parser,
12735   # not just through cpp. "Syntax error" is here to catch this case.
12736   cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742 #ifdef __STDC__
12743 # include <limits.h>
12744 #else
12745 # include <assert.h>
12746 #endif
12747                      Syntax error
12748 _ACEOF
12749 if { (ac_try="$ac_cpp conftest.$ac_ext"
12750 case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } >/dev/null; then
12762   if test -s conftest.err; then
12763     ac_cpp_err=$ac_c_preproc_warn_flag
12764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12765   else
12766     ac_cpp_err=
12767   fi
12768 else
12769   ac_cpp_err=yes
12770 fi
12771 if test -z "$ac_cpp_err"; then
12772   :
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777   # Broken: fails on valid input.
12778 continue
12779 fi
12780
12781 rm -f conftest.err conftest.$ac_ext
12782
12783   # OK, works on sane cases.  Now check whether nonexistent headers
12784   # can be detected and how.
12785   cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 #include <ac_nonexistent.h>
12792 _ACEOF
12793 if { (ac_try="$ac_cpp conftest.$ac_ext"
12794 case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12800   ac_status=$?
12801   grep -v '^ *+' conftest.er1 >conftest.err
12802   rm -f conftest.er1
12803   cat conftest.err >&5
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } >/dev/null; then
12806   if test -s conftest.err; then
12807     ac_cpp_err=$ac_c_preproc_warn_flag
12808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12809   else
12810     ac_cpp_err=
12811   fi
12812 else
12813   ac_cpp_err=yes
12814 fi
12815 if test -z "$ac_cpp_err"; then
12816   # Broken: success on invalid input.
12817 continue
12818 else
12819   echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822   # Passes both tests.
12823 ac_preproc_ok=:
12824 break
12825 fi
12826
12827 rm -f conftest.err conftest.$ac_ext
12828
12829 done
12830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12831 rm -f conftest.err conftest.$ac_ext
12832 if $ac_preproc_ok; then
12833   :
12834 else
12835   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12836 See \`config.log' for more details." >&5
12837 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12838 See \`config.log' for more details." >&2;}
12839    { (exit 1); exit 1; }; }
12840 fi
12841
12842 ac_ext=c
12843 ac_cpp='$CPP $CPPFLAGS'
12844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12847
12848
12849 case $host_os in
12850   *mingw32* ) ac_cv_mingw32=yes ;;
12851   *cygwin* ) ac_cv_cygwin=yes ;;
12852 esac
12853
12854
12855
12856
12857 cat >>confdefs.h <<_ACEOF
12858 #define EXEEXT "${EXEEXT}"
12859 _ACEOF
12860
12861
12862 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12863 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12864 if test "${ac_cv_lib_be_be_app+set}" = set; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-lbe -lroot -lnet $LIBS"
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875
12876 /* Override any GCC internal prototype to avoid an error.
12877    Use char because int might match the return type of a GCC
12878    builtin and then its argument prototype would still apply.  */
12879 #ifdef __cplusplus
12880 extern "C"
12881 #endif
12882 char be_app ();
12883 int
12884 main ()
12885 {
12886 return be_app ();
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895   *) ac_try_echo=$ac_try;;
12896 esac
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898   (eval "$ac_link") 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } &&
12905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906   { (case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_try") 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; } &&
12915          { ac_try='test -s conftest$ac_exeext'
12916   { (case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921   (eval "$ac_try") 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_cv_lib_be_be_app=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930         ac_cv_lib_be_be_app=no
12931 fi
12932
12933 rm -f core conftest.err conftest.$ac_objext \
12934       conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12936 fi
12937 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12938 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12939 if test $ac_cv_lib_be_be_app = yes; then
12940   LIBS="$LIBS -lbe -lroot -lnet"
12941 else
12942   :
12943 fi
12944
12945
12946 ac_ext=c
12947 ac_cpp='$CPP $CPPFLAGS'
12948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12951 if test -n "$ac_tool_prefix"; then
12952   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12956 if test "${ac_cv_prog_CC+set}" = set; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959   if test -n "$CC"; then
12960   ac_cv_prog_CC="$CC" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12964 do
12965   IFS=$as_save_IFS
12966   test -z "$as_dir" && as_dir=.
12967   for ac_exec_ext in '' $ac_executable_extensions; do
12968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12969     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12971     break 2
12972   fi
12973 done
12974 done
12975 IFS=$as_save_IFS
12976
12977 fi
12978 fi
12979 CC=$ac_cv_prog_CC
12980 if test -n "$CC"; then
12981   { echo "$as_me:$LINENO: result: $CC" >&5
12982 echo "${ECHO_T}$CC" >&6; }
12983 else
12984   { echo "$as_me:$LINENO: result: no" >&5
12985 echo "${ECHO_T}no" >&6; }
12986 fi
12987
12988
12989 fi
12990 if test -z "$ac_cv_prog_CC"; then
12991   ac_ct_CC=$CC
12992   # Extract the first word of "gcc", so it can be a program name with args.
12993 set dummy gcc; ac_word=$2
12994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999   if test -n "$ac_ct_CC"; then
13000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13001 else
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13004 do
13005   IFS=$as_save_IFS
13006   test -z "$as_dir" && as_dir=.
13007   for ac_exec_ext in '' $ac_executable_extensions; do
13008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13009     ac_cv_prog_ac_ct_CC="gcc"
13010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13011     break 2
13012   fi
13013 done
13014 done
13015 IFS=$as_save_IFS
13016
13017 fi
13018 fi
13019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13020 if test -n "$ac_ct_CC"; then
13021   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13022 echo "${ECHO_T}$ac_ct_CC" >&6; }
13023 else
13024   { echo "$as_me:$LINENO: result: no" >&5
13025 echo "${ECHO_T}no" >&6; }
13026 fi
13027
13028   if test "x$ac_ct_CC" = x; then
13029     CC=""
13030   else
13031     case $cross_compiling:$ac_tool_warned in
13032 yes:)
13033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13034 whose name does not start with the host triplet.  If you think this
13035 configuration is useful to you, please write to autoconf@gnu.org." >&5
13036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13037 whose name does not start with the host triplet.  If you think this
13038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13039 ac_tool_warned=yes ;;
13040 esac
13041     CC=$ac_ct_CC
13042   fi
13043 else
13044   CC="$ac_cv_prog_CC"
13045 fi
13046
13047 if test -z "$CC"; then
13048           if test -n "$ac_tool_prefix"; then
13049     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13050 set dummy ${ac_tool_prefix}cc; ac_word=$2
13051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13053 if test "${ac_cv_prog_CC+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   if test -n "$CC"; then
13057   ac_cv_prog_CC="$CC" # Let the user override the test.
13058 else
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13061 do
13062   IFS=$as_save_IFS
13063   test -z "$as_dir" && as_dir=.
13064   for ac_exec_ext in '' $ac_executable_extensions; do
13065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13066     ac_cv_prog_CC="${ac_tool_prefix}cc"
13067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13068     break 2
13069   fi
13070 done
13071 done
13072 IFS=$as_save_IFS
13073
13074 fi
13075 fi
13076 CC=$ac_cv_prog_CC
13077 if test -n "$CC"; then
13078   { echo "$as_me:$LINENO: result: $CC" >&5
13079 echo "${ECHO_T}$CC" >&6; }
13080 else
13081   { echo "$as_me:$LINENO: result: no" >&5
13082 echo "${ECHO_T}no" >&6; }
13083 fi
13084
13085
13086   fi
13087 fi
13088 if test -z "$CC"; then
13089   # Extract the first word of "cc", so it can be a program name with args.
13090 set dummy cc; ac_word=$2
13091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13093 if test "${ac_cv_prog_CC+set}" = set; then
13094   echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096   if test -n "$CC"; then
13097   ac_cv_prog_CC="$CC" # Let the user override the test.
13098 else
13099   ac_prog_rejected=no
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13102 do
13103   IFS=$as_save_IFS
13104   test -z "$as_dir" && as_dir=.
13105   for ac_exec_ext in '' $ac_executable_extensions; do
13106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13107     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13108        ac_prog_rejected=yes
13109        continue
13110      fi
13111     ac_cv_prog_CC="cc"
13112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13113     break 2
13114   fi
13115 done
13116 done
13117 IFS=$as_save_IFS
13118
13119 if test $ac_prog_rejected = yes; then
13120   # We found a bogon in the path, so make sure we never use it.
13121   set dummy $ac_cv_prog_CC
13122   shift
13123   if test $# != 0; then
13124     # We chose a different compiler from the bogus one.
13125     # However, it has the same basename, so the bogon will be chosen
13126     # first if we set CC to just the basename; use the full file name.
13127     shift
13128     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13129   fi
13130 fi
13131 fi
13132 fi
13133 CC=$ac_cv_prog_CC
13134 if test -n "$CC"; then
13135   { echo "$as_me:$LINENO: result: $CC" >&5
13136 echo "${ECHO_T}$CC" >&6; }
13137 else
13138   { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13140 fi
13141
13142
13143 fi
13144 if test -z "$CC"; then
13145   if test -n "$ac_tool_prefix"; then
13146   for ac_prog in cl.exe
13147   do
13148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13152 if test "${ac_cv_prog_CC+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   if test -n "$CC"; then
13156   ac_cv_prog_CC="$CC" # Let the user override the test.
13157 else
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13160 do
13161   IFS=$as_save_IFS
13162   test -z "$as_dir" && as_dir=.
13163   for ac_exec_ext in '' $ac_executable_extensions; do
13164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13165     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13167     break 2
13168   fi
13169 done
13170 done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 CC=$ac_cv_prog_CC
13176 if test -n "$CC"; then
13177   { echo "$as_me:$LINENO: result: $CC" >&5
13178 echo "${ECHO_T}$CC" >&6; }
13179 else
13180   { echo "$as_me:$LINENO: result: no" >&5
13181 echo "${ECHO_T}no" >&6; }
13182 fi
13183
13184
13185     test -n "$CC" && break
13186   done
13187 fi
13188 if test -z "$CC"; then
13189   ac_ct_CC=$CC
13190   for ac_prog in cl.exe
13191 do
13192   # Extract the first word of "$ac_prog", so it can be a program name with args.
13193 set dummy $ac_prog; ac_word=$2
13194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   if test -n "$ac_ct_CC"; then
13200   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205   IFS=$as_save_IFS
13206   test -z "$as_dir" && as_dir=.
13207   for ac_exec_ext in '' $ac_executable_extensions; do
13208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13209     ac_cv_prog_ac_ct_CC="$ac_prog"
13210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13211     break 2
13212   fi
13213 done
13214 done
13215 IFS=$as_save_IFS
13216
13217 fi
13218 fi
13219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13220 if test -n "$ac_ct_CC"; then
13221   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13222 echo "${ECHO_T}$ac_ct_CC" >&6; }
13223 else
13224   { echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6; }
13226 fi
13227
13228
13229   test -n "$ac_ct_CC" && break
13230 done
13231
13232   if test "x$ac_ct_CC" = x; then
13233     CC=""
13234   else
13235     case $cross_compiling:$ac_tool_warned in
13236 yes:)
13237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13238 whose name does not start with the host triplet.  If you think this
13239 configuration is useful to you, please write to autoconf@gnu.org." >&5
13240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13241 whose name does not start with the host triplet.  If you think this
13242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13243 ac_tool_warned=yes ;;
13244 esac
13245     CC=$ac_ct_CC
13246   fi
13247 fi
13248
13249 fi
13250
13251
13252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13253 See \`config.log' for more details." >&5
13254 echo "$as_me: error: no acceptable C compiler found in \$PATH
13255 See \`config.log' for more details." >&2;}
13256    { (exit 1); exit 1; }; }
13257
13258 # Provide some information about the compiler.
13259 echo "$as_me:$LINENO: checking for C compiler version" >&5
13260 ac_compiler=`set X $ac_compile; echo $2`
13261 { (ac_try="$ac_compiler --version >&5"
13262 case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267   (eval "$ac_compiler --version >&5") 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }
13271 { (ac_try="$ac_compiler -v >&5"
13272 case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_compiler -v >&5") 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }
13281 { (ac_try="$ac_compiler -V >&5"
13282 case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_compiler -V >&5") 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }
13291
13292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303
13304 int
13305 main ()
13306 {
13307 #ifndef __GNUC__
13308        choke me
13309 #endif
13310
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322   (eval "$ac_compile") 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } &&
13329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13330   { (case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_try") 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); }; } &&
13339          { ac_try='test -s conftest.$ac_objext'
13340   { (case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_try") 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); }; }; then
13349   ac_compiler_gnu=yes
13350 else
13351   echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354         ac_compiler_gnu=no
13355 fi
13356
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13359
13360 fi
13361 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13362 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13363 GCC=`test $ac_compiler_gnu = yes && echo yes`
13364 ac_test_CFLAGS=${CFLAGS+set}
13365 ac_save_CFLAGS=$CFLAGS
13366 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13367 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13368 if test "${ac_cv_prog_cc_g+set}" = set; then
13369   echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371   ac_save_c_werror_flag=$ac_c_werror_flag
13372    ac_c_werror_flag=yes
13373    ac_cv_prog_cc_g=no
13374    CFLAGS="-g"
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
13382 int
13383 main ()
13384 {
13385
13386   ;
13387   return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext
13391 if { (ac_try="$ac_compile"
13392 case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_compile") 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } &&
13404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13405   { (case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_try") 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; } &&
13414          { ac_try='test -s conftest.$ac_objext'
13415   { (case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_try") 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; }; then
13424   ac_cv_prog_cc_g=yes
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429         CFLAGS=""
13430       cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436
13437 int
13438 main ()
13439 {
13440
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_compile") 2>conftest.er1
13453   ac_status=$?
13454   grep -v '^ *+' conftest.er1 >conftest.err
13455   rm -f conftest.er1
13456   cat conftest.err >&5
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } &&
13459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13460   { (case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_try") 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; } &&
13469          { ac_try='test -s conftest.$ac_objext'
13470   { (case "(($ac_try" in
13471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472   *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475   (eval "$ac_try") 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   :
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484         ac_c_werror_flag=$ac_save_c_werror_flag
13485          CFLAGS="-g"
13486          cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492
13493 int
13494 main ()
13495 {
13496
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (ac_try="$ac_compile"
13503 case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_compile") 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516   { (case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_try") 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (case "(($ac_try" in
13527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528   *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531   (eval "$ac_try") 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   ac_cv_prog_cc_g=yes
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 fi
13548
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550    ac_c_werror_flag=$ac_save_c_werror_flag
13551 fi
13552 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13553 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13554 if test "$ac_test_CFLAGS" = set; then
13555   CFLAGS=$ac_save_CFLAGS
13556 elif test $ac_cv_prog_cc_g = yes; then
13557   if test "$GCC" = yes; then
13558     CFLAGS="-g -O2"
13559   else
13560     CFLAGS="-g"
13561   fi
13562 else
13563   if test "$GCC" = yes; then
13564     CFLAGS="-O2"
13565   else
13566     CFLAGS=
13567   fi
13568 fi
13569 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13570 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13571 if test "${ac_cv_prog_cc_c89+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   ac_cv_prog_cc_c89=no
13575 ac_save_CC=$CC
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 #include <stdarg.h>
13583 #include <stdio.h>
13584 #include <sys/types.h>
13585 #include <sys/stat.h>
13586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13587 struct buf { int x; };
13588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13589 static char *e (p, i)
13590      char **p;
13591      int i;
13592 {
13593   return p[i];
13594 }
13595 static char *f (char * (*g) (char **, int), char **p, ...)
13596 {
13597   char *s;
13598   va_list v;
13599   va_start (v,p);
13600   s = g (p, va_arg (v,int));
13601   va_end (v);
13602   return s;
13603 }
13604
13605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13606    function prototypes and stuff, but not '\xHH' hex character constants.
13607    These don't provoke an error unfortunately, instead are silently treated
13608    as 'x'.  The following induces an error, until -std is added to get
13609    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13610    array size at least.  It's necessary to write '\x00'==0 to get something
13611    that's true only with -std.  */
13612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13613
13614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13615    inside strings and character constants.  */
13616 #define FOO(x) 'x'
13617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13618
13619 int test (int i, double x);
13620 struct s1 {int (*f) (int a);};
13621 struct s2 {int (*f) (double a);};
13622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13623 int argc;
13624 char **argv;
13625 int
13626 main ()
13627 {
13628 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13634         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13635 do
13636   CC="$ac_save_CC $ac_arg"
13637   rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } &&
13651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652   { (case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_try") 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; } &&
13661          { ac_try='test -s conftest.$ac_objext'
13662   { (case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_try") 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   ac_cv_prog_cc_c89=$ac_arg
13672 else
13673   echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676
13677 fi
13678
13679 rm -f core conftest.err conftest.$ac_objext
13680   test "x$ac_cv_prog_cc_c89" != "xno" && break
13681 done
13682 rm -f conftest.$ac_ext
13683 CC=$ac_save_CC
13684
13685 fi
13686 # AC_CACHE_VAL
13687 case "x$ac_cv_prog_cc_c89" in
13688   x)
13689     { echo "$as_me:$LINENO: result: none needed" >&5
13690 echo "${ECHO_T}none needed" >&6; } ;;
13691   xno)
13692     { echo "$as_me:$LINENO: result: unsupported" >&5
13693 echo "${ECHO_T}unsupported" >&6; } ;;
13694   *)
13695     CC="$CC $ac_cv_prog_cc_c89"
13696     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13697 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13698 esac
13699
13700
13701 ac_ext=c
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13706
13707 depcc="$CC"   am_compiler_list=
13708
13709 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13715   # We make a subdir and do the tests there.  Otherwise we can end up
13716   # making bogus files that we don't know about and never remove.  For
13717   # instance it was reported that on HP-UX the gcc test will end up
13718   # making a dummy file named `D' -- because `-MD' means `put the output
13719   # in D'.
13720   mkdir conftest.dir
13721   # Copy depcomp to subdir because otherwise we won't find it if we're
13722   # using a relative directory.
13723   cp "$am_depcomp" conftest.dir
13724   cd conftest.dir
13725   # We will build objects and dependencies in a subdirectory because
13726   # it helps to detect inapplicable dependency modes.  For instance
13727   # both Tru64's cc and ICC support -MD to output dependencies as a
13728   # side effect of compilation, but ICC will put the dependencies in
13729   # the current directory while Tru64 will put them in the object
13730   # directory.
13731   mkdir sub
13732
13733   am_cv_CC_dependencies_compiler_type=none
13734   if test "$am_compiler_list" = ""; then
13735      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13736   fi
13737   for depmode in $am_compiler_list; do
13738     # Setup a source with many dependencies, because some compilers
13739     # like to wrap large dependency lists on column 80 (with \), and
13740     # we should not choose a depcomp mode which is confused by this.
13741     #
13742     # We need to recreate these files for each test, as the compiler may
13743     # overwrite some of them when testing with obscure command lines.
13744     # This happens at least with the AIX C compiler.
13745     : > sub/conftest.c
13746     for i in 1 2 3 4 5 6; do
13747       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13748       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13749       # Solaris 8's {/usr,}/bin/sh.
13750       touch sub/conftst$i.h
13751     done
13752     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13753
13754     case $depmode in
13755     nosideeffect)
13756       # after this tag, mechanisms are not by side-effect, so they'll
13757       # only be used when explicitly requested
13758       if test "x$enable_dependency_tracking" = xyes; then
13759         continue
13760       else
13761         break
13762       fi
13763       ;;
13764     none) break ;;
13765     esac
13766     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13767     # mode.  It turns out that the SunPro C++ compiler does not properly
13768     # handle `-M -o', and we need to detect this.
13769     if depmode=$depmode \
13770        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13771        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13772        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13773          >/dev/null 2>conftest.err &&
13774        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13775        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13776        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13777       # icc doesn't choke on unknown options, it will just issue warnings
13778       # or remarks (even with -Werror).  So we grep stderr for any message
13779       # that says an option was ignored or not supported.
13780       # When given -MP, icc 7.0 and 7.1 complain thusly:
13781       #   icc: Command line warning: ignoring option '-M'; no argument required
13782       # The diagnosis changed in icc 8.0:
13783       #   icc: Command line remark: option '-MP' not supported
13784       if (grep 'ignoring option' conftest.err ||
13785           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13786         am_cv_CC_dependencies_compiler_type=$depmode
13787         break
13788       fi
13789     fi
13790   done
13791
13792   cd ..
13793   rm -rf conftest.dir
13794 else
13795   am_cv_CC_dependencies_compiler_type=none
13796 fi
13797
13798 fi
13799 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13801 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13802
13803
13804
13805 if
13806   test "x$enable_dependency_tracking" != xno \
13807   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13808   am__fastdepCC_TRUE=
13809   am__fastdepCC_FALSE='#'
13810 else
13811   am__fastdepCC_TRUE='#'
13812   am__fastdepCC_FALSE=
13813 fi
13814
13815
13816 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13817         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13818 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13819    { (exit 1); exit 1; }; }
13820 fi
13821
13822 # test for make depend flag
13823 OL_MKDEP=
13824 OL_MKDEP_FLAGS=
13825 if test -z "${MKDEP}"; then
13826         OL_MKDEP="${CC-cc}"
13827         if test -z "${MKDEP_FLAGS}"; then
13828                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13829 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13830 if test "${ol_cv_mkdep+set}" = set; then
13831   echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833
13834                         ol_cv_mkdep=no
13835                         for flag in "-M" "-xM"; do
13836                                 cat > conftest.c <<EOF
13837  noCode;
13838 EOF
13839                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; } \
13845                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13846                                 then
13847                                         if test ! -f conftest."${ac_object}" ; then
13848                                                 ol_cv_mkdep=$flag
13849                                                 OL_MKDEP_FLAGS="$flag"
13850                                                 break
13851                                         fi
13852                                 fi
13853                         done
13854                         rm -f conftest*
13855
13856 fi
13857 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13858 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13859         else
13860                 cc_cv_mkdep=yes
13861                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13862         fi
13863 else
13864         cc_cv_mkdep=yes
13865         OL_MKDEP="${MKDEP}"
13866         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13867 fi
13868
13869
13870
13871 if test "${ol_cv_mkdep}" = no ; then
13872         # this will soon become an error
13873         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13874 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13875 fi
13876
13877 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13878 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13879 if test "${ac_cv_lib_s_afopen+set}" = set; then
13880   echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882   ac_check_lib_save_LIBS=$LIBS
13883 LIBS="-ls  $LIBS"
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890
13891 /* Override any GCC internal prototype to avoid an error.
13892    Use char because int might match the return type of a GCC
13893    builtin and then its argument prototype would still apply.  */
13894 #ifdef __cplusplus
13895 extern "C"
13896 #endif
13897 char afopen ();
13898 int
13899 main ()
13900 {
13901 return afopen ();
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (ac_try="$ac_link"
13908 case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_link") 2>conftest.er1
13914   ac_status=$?
13915   grep -v '^ *+' conftest.er1 >conftest.err
13916   rm -f conftest.er1
13917   cat conftest.err >&5
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } &&
13920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13921   { (case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_try") 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; } &&
13930          { ac_try='test -s conftest$ac_exeext'
13931   { (case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_try") 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; }; then
13940   ac_cv_lib_s_afopen=yes
13941 else
13942   echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945         ac_cv_lib_s_afopen=no
13946 fi
13947
13948 rm -f core conftest.err conftest.$ac_objext \
13949       conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13951 fi
13952 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13953 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13954 if test $ac_cv_lib_s_afopen = yes; then
13955
13956         AUTH_LIBS=-ls
13957
13958 cat >>confdefs.h <<\_ACEOF
13959 #define HAVE_AIX_SECURITY 1
13960 _ACEOF
13961
13962
13963 fi
13964
13965
13966 case "$target" in
13967 *-ibm-openedition)
13968         ac_cv_func_getopt=no
13969
13970 cat >>confdefs.h <<\_ACEOF
13971 #define BOTH_STRINGS_H 1
13972 _ACEOF
13973
13974         ;;
13975 esac
13976
13977 ol_link_modules=no
13978 WITH_MODULES_ENABLED=no
13979 if test $ol_enable_modules != no ; then
13980
13981 for ac_header in ltdl.h
13982 do
13983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13985   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 fi
13990 ac_res=`eval echo '${'$as_ac_Header'}'`
13991                { echo "$as_me:$LINENO: result: $ac_res" >&5
13992 echo "${ECHO_T}$ac_res" >&6; }
13993 else
13994   # Is the header compilable?
13995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h.  */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h.  */
14003 $ac_includes_default
14004 #include <$ac_header>
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013   (eval "$ac_compile") 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } &&
14020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021   { (case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_try") 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; } &&
14030          { ac_try='test -s conftest.$ac_objext'
14031   { (case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_try") 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_header_compiler=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045         ac_header_compiler=no
14046 fi
14047
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050 echo "${ECHO_T}$ac_header_compiler" >&6; }
14051
14052 # Is the header present?
14053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14055 cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061 #include <$ac_header>
14062 _ACEOF
14063 if { (ac_try="$ac_cpp conftest.$ac_ext"
14064 case "(($ac_try" in
14065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066   *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14070   ac_status=$?
14071   grep -v '^ *+' conftest.er1 >conftest.err
14072   rm -f conftest.er1
14073   cat conftest.err >&5
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } >/dev/null; then
14076   if test -s conftest.err; then
14077     ac_cpp_err=$ac_c_preproc_warn_flag
14078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14079   else
14080     ac_cpp_err=
14081   fi
14082 else
14083   ac_cpp_err=yes
14084 fi
14085 if test -z "$ac_cpp_err"; then
14086   ac_header_preproc=yes
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091   ac_header_preproc=no
14092 fi
14093
14094 rm -f conftest.err conftest.$ac_ext
14095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14096 echo "${ECHO_T}$ac_header_preproc" >&6; }
14097
14098 # So?  What about this header?
14099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14100   yes:no: )
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14105     ac_header_preproc=yes
14106     ;;
14107   no:yes:* )
14108     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14110     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14111 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14112     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14114     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14115 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14118     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14120     ( cat <<\_ASBOX
14121 ## --------------------------------------------- ##
14122 ## Report this to <http://www.openldap.org/its/> ##
14123 ## --------------------------------------------- ##
14124 _ASBOX
14125      ) | sed "s/^/$as_me: WARNING:     /" >&2
14126     ;;
14127 esac
14128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   eval "$as_ac_Header=\$ac_header_preproc"
14134 fi
14135 ac_res=`eval echo '${'$as_ac_Header'}'`
14136                { echo "$as_me:$LINENO: result: $ac_res" >&5
14137 echo "${ECHO_T}$ac_res" >&6; }
14138
14139 fi
14140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14141   cat >>confdefs.h <<_ACEOF
14142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14143 _ACEOF
14144
14145 fi
14146
14147 done
14148
14149
14150         if test $ac_cv_header_ltdl_h = no ; then
14151                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
14152 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
14153    { (exit 1); exit 1; }; }
14154         fi
14155
14156         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
14157 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
14159   echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161   ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lltdl  $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h.  */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h.  */
14169
14170 /* Override any GCC internal prototype to avoid an error.
14171    Use char because int might match the return type of a GCC
14172    builtin and then its argument prototype would still apply.  */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char lt_dlinit ();
14177 int
14178 main ()
14179 {
14180 return lt_dlinit ();
14181   ;
14182   return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189   *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192   (eval "$ac_link") 2>conftest.er1
14193   ac_status=$?
14194   grep -v '^ *+' conftest.er1 >conftest.err
14195   rm -f conftest.er1
14196   cat conftest.err >&5
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); } &&
14199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14200   { (case "(($ac_try" in
14201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202   *) ac_try_echo=$ac_try;;
14203 esac
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205   (eval "$ac_try") 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; } &&
14209          { ac_try='test -s conftest$ac_exeext'
14210   { (case "(($ac_try" in
14211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212   *) ac_try_echo=$ac_try;;
14213 esac
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215   (eval "$ac_try") 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219   ac_cv_lib_ltdl_lt_dlinit=yes
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224         ac_cv_lib_ltdl_lt_dlinit=no
14225 fi
14226
14227 rm -f core conftest.err conftest.$ac_objext \
14228       conftest$ac_exeext conftest.$ac_ext
14229 LIBS=$ac_check_lib_save_LIBS
14230 fi
14231 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14232 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14233 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
14234
14235                 MODULES_LIBS=-lltdl
14236
14237 cat >>confdefs.h <<\_ACEOF
14238 #define HAVE_LIBLTDL 1
14239 _ACEOF
14240
14241
14242 fi
14243
14244
14245         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14246                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
14247 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
14248    { (exit 1); exit 1; }; }
14249         fi
14250         ol_link_modules=yes
14251         WITH_MODULES_ENABLED=yes
14252
14253 else
14254         for i in $Backends; do
14255                 eval "ol_tmp=\$ol_enable_$i"
14256                 if test $ol_tmp = mod ; then
14257                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
14258 echo "$as_me: WARNING: building static $i backend" >&2;}
14259                         eval "ol_enable_$i=yes"
14260                 fi
14261         done
14262         for i in $Overlays; do
14263                 eval "ol_tmp=\$ol_enable_$i"
14264                 if test $ol_tmp = mod ; then
14265                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
14266 echo "$as_me: WARNING: building static $i overlay" >&2;}
14267                         eval "ol_enable_$i=yes"
14268                 fi
14269         done
14270 fi
14271
14272 # test for EBCDIC
14273 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14274 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14275 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278
14279         cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285
14286 #if !('M' == 0xd4)
14287 #include <__ASCII__/generate_error.h>
14288 #endif
14289
14290 _ACEOF
14291 if { (ac_try="$ac_cpp conftest.$ac_ext"
14292 case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14298   ac_status=$?
14299   grep -v '^ *+' conftest.er1 >conftest.err
14300   rm -f conftest.er1
14301   cat conftest.err >&5
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } >/dev/null; then
14304   if test -s conftest.err; then
14305     ac_cpp_err=$ac_c_preproc_warn_flag
14306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14307   else
14308     ac_cpp_err=
14309   fi
14310 else
14311   ac_cpp_err=yes
14312 fi
14313 if test -z "$ac_cpp_err"; then
14314   ol_cv_cpp_ebcdic=yes
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319   ol_cv_cpp_ebcdic=no
14320 fi
14321
14322 rm -f conftest.err conftest.$ac_ext
14323 fi
14324 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14325 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14326 if test $ol_cv_cpp_ebcdic = yes ; then
14327
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_EBCDIC 1
14330 _ACEOF
14331
14332 fi
14333
14334 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14335 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14336 if test "${ol_cv_header_stdc+set}" = set; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339   cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <stdlib.h>
14346 #include <stdarg.h>
14347 #include <string.h>
14348 #include <float.h>
14349 _ACEOF
14350 if { (ac_try="$ac_cpp conftest.$ac_ext"
14351 case "(($ac_try" in
14352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353   *) ac_try_echo=$ac_try;;
14354 esac
14355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } >/dev/null; then
14363   if test -s conftest.err; then
14364     ac_cpp_err=$ac_c_preproc_warn_flag
14365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14366   else
14367     ac_cpp_err=
14368   fi
14369 else
14370   ac_cpp_err=yes
14371 fi
14372 if test -z "$ac_cpp_err"; then
14373   ol_cv_header_stdc=yes
14374 else
14375   echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14377
14378   ol_cv_header_stdc=no
14379 fi
14380
14381 rm -f conftest.err conftest.$ac_ext
14382
14383 if test $ol_cv_header_stdc = yes; then
14384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14385 cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h.  */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h.  */
14391 #include <string.h>
14392
14393 _ACEOF
14394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14395   $EGREP "memchr" >/dev/null 2>&1; then
14396   :
14397 else
14398   ol_cv_header_stdc=no
14399 fi
14400 rm -f conftest*
14401
14402 fi
14403
14404 if test $ol_cv_header_stdc = yes; then
14405   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14406 cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 #include <stdlib.h>
14413
14414 _ACEOF
14415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14416   $EGREP "free" >/dev/null 2>&1; then
14417   :
14418 else
14419   ol_cv_header_stdc=no
14420 fi
14421 rm -f conftest*
14422
14423 fi
14424
14425 if test $ol_cv_header_stdc = yes; then
14426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14427 if test "$cross_compiling" = yes; then
14428   :
14429 else
14430   cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h.  */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h.  */
14436 #include <ctype.h>
14437 #ifndef HAVE_EBCDIC
14438 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14439 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14440 #else
14441 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14442                 || ('j' <= (c) && (c) <= 'r') \
14443                 || ('s' <= (c) && (c) <= 'z'))
14444 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14445 #endif
14446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14447 int main () { int i; for (i = 0; i < 256; i++)
14448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14449 exit (0); }
14450
14451 _ACEOF
14452 rm -f conftest$ac_exeext
14453 if { (ac_try="$ac_link"
14454 case "(($ac_try" in
14455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456   *) ac_try_echo=$ac_try;;
14457 esac
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459   (eval "$ac_link") 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14463   { (case "(($ac_try" in
14464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465   *) ac_try_echo=$ac_try;;
14466 esac
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468   (eval "$ac_try") 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; }; then
14472   :
14473 else
14474   echo "$as_me: program exited with status $ac_status" >&5
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ( exit $ac_status )
14479 ol_cv_header_stdc=no
14480 fi
14481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14482 fi
14483
14484
14485 fi
14486 fi
14487 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14488 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14489 if test $ol_cv_header_stdc = yes; then
14490   cat >>confdefs.h <<\_ACEOF
14491 #define STDC_HEADERS 1
14492 _ACEOF
14493
14494 fi
14495 ac_cv_header_stdc=disable
14496
14497
14498 if test $ol_cv_header_stdc != yes; then
14499         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14500 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14501 fi
14502
14503
14504
14505
14506
14507
14508 ac_header_dirent=no
14509 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14510   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14511 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14512 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 #include <sys/types.h>
14523 #include <$ac_hdr>
14524
14525 int
14526 main ()
14527 {
14528 if ((DIR *) 0)
14529 return 0;
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext
14535 if { (ac_try="$ac_compile"
14536 case "(($ac_try" in
14537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538   *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541   (eval "$ac_compile") 2>conftest.er1
14542   ac_status=$?
14543   grep -v '^ *+' conftest.er1 >conftest.err
14544   rm -f conftest.er1
14545   cat conftest.err >&5
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); } &&
14548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549   { (case "(($ac_try" in
14550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551   *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554   (eval "$ac_try") 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; } &&
14558          { ac_try='test -s conftest.$ac_objext'
14559   { (case "(($ac_try" in
14560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561   *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564   (eval "$ac_try") 2>&5
14565   ac_status=$?
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); }; }; then
14568   eval "$as_ac_Header=yes"
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573         eval "$as_ac_Header=no"
14574 fi
14575
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 ac_res=`eval echo '${'$as_ac_Header'}'`
14579                { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14582   cat >>confdefs.h <<_ACEOF
14583 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14584 _ACEOF
14585
14586 ac_header_dirent=$ac_hdr; break
14587 fi
14588
14589 done
14590 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14591 if test $ac_header_dirent = dirent.h; then
14592   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14593 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14594 if test "${ac_cv_search_opendir+set}" = set; then
14595   echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597   ac_func_search_save_LIBS=$LIBS
14598 cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604
14605 /* Override any GCC internal prototype to avoid an error.
14606    Use char because int might match the return type of a GCC
14607    builtin and then its argument prototype would still apply.  */
14608 #ifdef __cplusplus
14609 extern "C"
14610 #endif
14611 char opendir ();
14612 int
14613 main ()
14614 {
14615 return opendir ();
14616   ;
14617   return 0;
14618 }
14619 _ACEOF
14620 for ac_lib in '' dir; do
14621   if test -z "$ac_lib"; then
14622     ac_res="none required"
14623   else
14624     ac_res=-l$ac_lib
14625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14626   fi
14627   rm -f conftest.$ac_objext conftest$ac_exeext
14628 if { (ac_try="$ac_link"
14629 case "(($ac_try" in
14630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631   *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634   (eval "$ac_link") 2>conftest.er1
14635   ac_status=$?
14636   grep -v '^ *+' conftest.er1 >conftest.err
14637   rm -f conftest.er1
14638   cat conftest.err >&5
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } &&
14641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14642   { (case "(($ac_try" in
14643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644   *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647   (eval "$ac_try") 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; } &&
14651          { ac_try='test -s conftest$ac_exeext'
14652   { (case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657   (eval "$ac_try") 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; }; then
14661   ac_cv_search_opendir=$ac_res
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666
14667 fi
14668
14669 rm -f core conftest.err conftest.$ac_objext \
14670       conftest$ac_exeext
14671   if test "${ac_cv_search_opendir+set}" = set; then
14672   break
14673 fi
14674 done
14675 if test "${ac_cv_search_opendir+set}" = set; then
14676   :
14677 else
14678   ac_cv_search_opendir=no
14679 fi
14680 rm conftest.$ac_ext
14681 LIBS=$ac_func_search_save_LIBS
14682 fi
14683 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14684 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14685 ac_res=$ac_cv_search_opendir
14686 if test "$ac_res" != no; then
14687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14688
14689 fi
14690
14691 else
14692   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14693 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14694 if test "${ac_cv_search_opendir+set}" = set; then
14695   echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14697   ac_func_search_save_LIBS=$LIBS
14698 cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h.  */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h.  */
14704
14705 /* Override any GCC internal prototype to avoid an error.
14706    Use char because int might match the return type of a GCC
14707    builtin and then its argument prototype would still apply.  */
14708 #ifdef __cplusplus
14709 extern "C"
14710 #endif
14711 char opendir ();
14712 int
14713 main ()
14714 {
14715 return opendir ();
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 for ac_lib in '' x; do
14721   if test -z "$ac_lib"; then
14722     ac_res="none required"
14723   else
14724     ac_res=-l$ac_lib
14725     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14726   fi
14727   rm -f conftest.$ac_objext conftest$ac_exeext
14728 if { (ac_try="$ac_link"
14729 case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734   (eval "$ac_link") 2>conftest.er1
14735   ac_status=$?
14736   grep -v '^ *+' conftest.er1 >conftest.err
14737   rm -f conftest.er1
14738   cat conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } &&
14741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742   { (case "(($ac_try" in
14743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744   *) ac_try_echo=$ac_try;;
14745 esac
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747   (eval "$ac_try") 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; } &&
14751          { ac_try='test -s conftest$ac_exeext'
14752   { (case "(($ac_try" in
14753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754   *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757   (eval "$ac_try") 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   ac_cv_search_opendir=$ac_res
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766
14767 fi
14768
14769 rm -f core conftest.err conftest.$ac_objext \
14770       conftest$ac_exeext
14771   if test "${ac_cv_search_opendir+set}" = set; then
14772   break
14773 fi
14774 done
14775 if test "${ac_cv_search_opendir+set}" = set; then
14776   :
14777 else
14778   ac_cv_search_opendir=no
14779 fi
14780 rm conftest.$ac_ext
14781 LIBS=$ac_func_search_save_LIBS
14782 fi
14783 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14784 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14785 ac_res=$ac_cv_search_opendir
14786 if test "$ac_res" != no; then
14787   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14788
14789 fi
14790
14791 fi
14792
14793 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14794 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14795 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798   cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h.  */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h.  */
14804 #include <sys/types.h>
14805 #include <sys/wait.h>
14806 #ifndef WEXITSTATUS
14807 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14808 #endif
14809 #ifndef WIFEXITED
14810 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14811 #endif
14812
14813 int
14814 main ()
14815 {
14816   int s;
14817   wait (&s);
14818   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (ac_try="$ac_compile"
14825 case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_compile") 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14838   { (case "(($ac_try" in
14839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840   *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843   (eval "$ac_try") 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; } &&
14847          { ac_try='test -s conftest.$ac_objext'
14848   { (case "(($ac_try" in
14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850   *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853   (eval "$ac_try") 2>&5
14854   ac_status=$?
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); }; }; then
14857   ac_cv_header_sys_wait_h=yes
14858 else
14859   echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862         ac_cv_header_sys_wait_h=no
14863 fi
14864
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 fi
14867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14868 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14869 if test $ac_cv_header_sys_wait_h = yes; then
14870
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_SYS_WAIT_H 1
14873 _ACEOF
14874
14875 fi
14876
14877 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14878 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14879 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 #include <sys/types.h>
14889 #include <termios.h>
14890 #ifdef TIOCGWINSZ
14891   yes
14892 #endif
14893
14894 _ACEOF
14895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14896   $EGREP "yes" >/dev/null 2>&1; then
14897   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14898 else
14899   ac_cv_sys_tiocgwinsz_in_termios_h=no
14900 fi
14901 rm -f conftest*
14902
14903 fi
14904 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14905 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14906
14907 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14908   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14909 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14910 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14911   echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913   cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919 #include <sys/types.h>
14920 #include <sys/ioctl.h>
14921 #ifdef TIOCGWINSZ
14922   yes
14923 #endif
14924
14925 _ACEOF
14926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14927   $EGREP "yes" >/dev/null 2>&1; then
14928   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14929 else
14930   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14931 fi
14932 rm -f conftest*
14933
14934 fi
14935 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14936 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14937
14938   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14939
14940 cat >>confdefs.h <<\_ACEOF
14941 #define GWINSZ_IN_SYS_IOCTL 1
14942 _ACEOF
14943
14944   fi
14945 fi
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995 for ac_header in \
14996         arpa/inet.h             \
14997         arpa/nameser.h  \
14998         assert.h                \
14999         bits/types.h    \
15000         conio.h                 \
15001         crypt.h                 \
15002         direct.h                \
15003         errno.h                 \
15004         fcntl.h                 \
15005         filio.h                 \
15006         getopt.h                \
15007         grp.h                   \
15008         io.h                    \
15009         libutil.h               \
15010         limits.h                \
15011         locale.h                \
15012         malloc.h                \
15013         memory.h                \
15014         psap.h                  \
15015         pwd.h                   \
15016         process.h               \
15017         sgtty.h                 \
15018         shadow.h                \
15019         stddef.h                \
15020         string.h                \
15021         strings.h               \
15022         sysexits.h              \
15023         sys/file.h              \
15024         sys/filio.h             \
15025         sys/fstyp.h             \
15026         sys/errno.h             \
15027         sys/ioctl.h             \
15028         sys/param.h             \
15029         sys/privgrp.h   \
15030         sys/resource.h  \
15031         sys/select.h    \
15032         sys/socket.h    \
15033         sys/stat.h              \
15034         sys/syslog.h    \
15035         sys/time.h              \
15036         sys/types.h             \
15037         sys/uio.h               \
15038         sys/vmount.h    \
15039         syslog.h                \
15040         termios.h               \
15041         unistd.h                \
15042         utime.h                 \
15043
15044 do
15045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15047   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 fi
15052 ac_res=`eval echo '${'$as_ac_Header'}'`
15053                { echo "$as_me:$LINENO: result: $ac_res" >&5
15054 echo "${ECHO_T}$ac_res" >&6; }
15055 else
15056   # Is the header compilable?
15057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h.  */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h.  */
15065 $ac_includes_default
15066 #include <$ac_header>
15067 _ACEOF
15068 rm -f conftest.$ac_objext
15069 if { (ac_try="$ac_compile"
15070 case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_compile") 2>conftest.er1
15076   ac_status=$?
15077   grep -v '^ *+' conftest.er1 >conftest.err
15078   rm -f conftest.er1
15079   cat conftest.err >&5
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } &&
15082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15083   { (case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088   (eval "$ac_try") 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest.$ac_objext'
15093   { (case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_try") 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   ac_header_compiler=yes
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107         ac_header_compiler=no
15108 fi
15109
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15112 echo "${ECHO_T}$ac_header_compiler" >&6; }
15113
15114 # Is the header present?
15115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15117 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 #include <$ac_header>
15124 _ACEOF
15125 if { (ac_try="$ac_cpp conftest.$ac_ext"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } >/dev/null; then
15138   if test -s conftest.err; then
15139     ac_cpp_err=$ac_c_preproc_warn_flag
15140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15141   else
15142     ac_cpp_err=
15143   fi
15144 else
15145   ac_cpp_err=yes
15146 fi
15147 if test -z "$ac_cpp_err"; then
15148   ac_header_preproc=yes
15149 else
15150   echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153   ac_header_preproc=no
15154 fi
15155
15156 rm -f conftest.err conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15158 echo "${ECHO_T}$ac_header_preproc" >&6; }
15159
15160 # So?  What about this header?
15161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15162   yes:no: )
15163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15167     ac_header_preproc=yes
15168     ;;
15169   no:yes:* )
15170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15182     ( cat <<\_ASBOX
15183 ## --------------------------------------------- ##
15184 ## Report this to <http://www.openldap.org/its/> ##
15185 ## --------------------------------------------- ##
15186 _ASBOX
15187      ) | sed "s/^/$as_me: WARNING:     /" >&2
15188     ;;
15189 esac
15190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193   echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195   eval "$as_ac_Header=\$ac_header_preproc"
15196 fi
15197 ac_res=`eval echo '${'$as_ac_Header'}'`
15198                { echo "$as_me:$LINENO: result: $ac_res" >&5
15199 echo "${ECHO_T}$ac_res" >&6; }
15200
15201 fi
15202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15203   cat >>confdefs.h <<_ACEOF
15204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15205 _ACEOF
15206
15207 fi
15208
15209 done
15210
15211
15212 if test "$ac_cv_mingw32" = yes ; then
15213
15214
15215 for ac_header in winsock.h winsock2.h
15216 do
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 fi
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225                { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15227 else
15228   # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h.  */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h.  */
15237 $ac_includes_default
15238 #include <$ac_header>
15239 _ACEOF
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244   *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247   (eval "$ac_compile") 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; } &&
15264          { ac_try='test -s conftest.$ac_objext'
15265   { (case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_try") 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   ac_header_compiler=yes
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279         ac_header_compiler=no
15280 fi
15281
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15285
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 #include <$ac_header>
15296 _ACEOF
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304   ac_status=$?
15305   grep -v '^ *+' conftest.er1 >conftest.err
15306   rm -f conftest.er1
15307   cat conftest.err >&5
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } >/dev/null; then
15310   if test -s conftest.err; then
15311     ac_cpp_err=$ac_c_preproc_warn_flag
15312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313   else
15314     ac_cpp_err=
15315   fi
15316 else
15317   ac_cpp_err=yes
15318 fi
15319 if test -z "$ac_cpp_err"; then
15320   ac_header_preproc=yes
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325   ac_header_preproc=no
15326 fi
15327
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15331
15332 # So?  What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334   yes:no: )
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339     ac_header_preproc=yes
15340     ;;
15341   no:yes:* )
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354     ( cat <<\_ASBOX
15355 ## --------------------------------------------- ##
15356 ## Report this to <http://www.openldap.org/its/> ##
15357 ## --------------------------------------------- ##
15358 _ASBOX
15359      ) | sed "s/^/$as_me: WARNING:     /" >&2
15360     ;;
15361 esac
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   eval "$as_ac_Header=\$ac_header_preproc"
15368 fi
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370                { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15372
15373 fi
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375   cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 _ACEOF
15378
15379 fi
15380
15381 done
15382
15383 fi
15384
15385
15386 for ac_header in resolv.h
15387 do
15388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392   echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394   cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 $ac_includes_default
15401 #include <netinet/in.h>
15402
15403
15404 #include <$ac_header>
15405 _ACEOF
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413   (eval "$ac_compile") 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } &&
15420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421   { (case "(($ac_try" in
15422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423   *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426   (eval "$ac_try") 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_try") 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   eval "$as_ac_Header=yes"
15441 else
15442   echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445         eval "$as_ac_Header=no"
15446 fi
15447
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 fi
15450 ac_res=`eval echo '${'$as_ac_Header'}'`
15451                { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454   cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15456 _ACEOF
15457
15458 fi
15459
15460 done
15461
15462
15463
15464 for ac_header in netinet/tcp.h
15465 do
15466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h.  */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h.  */
15478 $ac_includes_default
15479 #include <netinet/in.h>
15480
15481
15482 #include <$ac_header>
15483 _ACEOF
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491   (eval "$ac_compile") 2>conftest.er1
15492   ac_status=$?
15493   grep -v '^ *+' conftest.er1 >conftest.err
15494   rm -f conftest.er1
15495   cat conftest.err >&5
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); } &&
15498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; } &&
15508          { ac_try='test -s conftest.$ac_objext'
15509   { (case "(($ac_try" in
15510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511   *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514   (eval "$ac_try") 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   eval "$as_ac_Header=yes"
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523         eval "$as_ac_Header=no"
15524 fi
15525
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 fi
15528 ac_res=`eval echo '${'$as_ac_Header'}'`
15529                { echo "$as_me:$LINENO: result: $ac_res" >&5
15530 echo "${ECHO_T}$ac_res" >&6; }
15531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15532   cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15534 _ACEOF
15535
15536 fi
15537
15538 done
15539
15540
15541
15542 for ac_header in sys/ucred.h
15543 do
15544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15548   echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550   cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h.  */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h.  */
15556 $ac_includes_default
15557 #ifdef HAVE_SYS_PARAM_H
15558 #include <sys/param.h>
15559 #endif
15560
15561
15562 #include <$ac_header>
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571   (eval "$ac_compile") 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } &&
15578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15579   { (case "(($ac_try" in
15580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581   *) ac_try_echo=$ac_try;;
15582 esac
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584   (eval "$ac_try") 2>&5
15585   ac_status=$?
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); }; } &&
15588          { ac_try='test -s conftest.$ac_objext'
15589   { (case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_try") 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   eval "$as_ac_Header=yes"
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603         eval "$as_ac_Header=no"
15604 fi
15605
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 fi
15608 ac_res=`eval echo '${'$as_ac_Header'}'`
15609                { echo "$as_me:$LINENO: result: $ac_res" >&5
15610 echo "${ECHO_T}$ac_res" >&6; }
15611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15612   cat >>confdefs.h <<_ACEOF
15613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15614 _ACEOF
15615
15616 fi
15617
15618 done
15619
15620
15621
15622
15623
15624 for ac_func in sigaction sigset
15625 do
15626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15640 #define $ac_func innocuous_$ac_func
15641
15642 /* System header to define __stub macros and hopefully few prototypes,
15643     which can conflict with char $ac_func (); below.
15644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15645     <limits.h> exists even on freestanding compilers.  */
15646
15647 #ifdef __STDC__
15648 # include <limits.h>
15649 #else
15650 # include <assert.h>
15651 #endif
15652
15653 #undef $ac_func
15654
15655 /* Override any GCC internal prototype to avoid an error.
15656    Use char because int might match the return type of a GCC
15657    builtin and then its argument prototype would still apply.  */
15658 #ifdef __cplusplus
15659 extern "C"
15660 #endif
15661 char $ac_func ();
15662 /* The GNU C library defines this for functions which it implements
15663     to always fail with ENOSYS.  Some functions are actually named
15664     something starting with __ and the normal name is an alias.  */
15665 #if defined __stub_$ac_func || defined __stub___$ac_func
15666 choke me
15667 #endif
15668
15669 int
15670 main ()
15671 {
15672 return $ac_func ();
15673   ;
15674   return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (ac_try="$ac_link"
15679 case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_link") 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } &&
15691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15692   { (case "(($ac_try" in
15693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694   *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697   (eval "$ac_try") 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; } &&
15701          { ac_try='test -s conftest$ac_exeext'
15702   { (case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707   (eval "$ac_try") 2>&5
15708   ac_status=$?
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); }; }; then
15711   eval "$as_ac_var=yes"
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716         eval "$as_ac_var=no"
15717 fi
15718
15719 rm -f core conftest.err conftest.$ac_objext \
15720       conftest$ac_exeext conftest.$ac_ext
15721 fi
15722 ac_res=`eval echo '${'$as_ac_var'}'`
15723                { echo "$as_me:$LINENO: result: $ac_res" >&5
15724 echo "${ECHO_T}$ac_res" >&6; }
15725 if test `eval echo '${'$as_ac_var'}'` = yes; then
15726   cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15728 _ACEOF
15729
15730 fi
15731 done
15732
15733
15734 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15735
15736 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15737 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15738 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15739   echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741   ac_check_lib_save_LIBS=$LIBS
15742 LIBS="-lV3  $LIBS"
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h.  */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h.  */
15749
15750 /* Override any GCC internal prototype to avoid an error.
15751    Use char because int might match the return type of a GCC
15752    builtin and then its argument prototype would still apply.  */
15753 #ifdef __cplusplus
15754 extern "C"
15755 #endif
15756 char sigset ();
15757 int
15758 main ()
15759 {
15760 return sigset ();
15761   ;
15762   return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_link") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780   { (case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_try") 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; } &&
15789          { ac_try='test -s conftest$ac_exeext'
15790   { (case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_try") 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799   ac_cv_lib_V3_sigset=yes
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         ac_cv_lib_V3_sigset=no
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext \
15808       conftest$ac_exeext conftest.$ac_ext
15809 LIBS=$ac_check_lib_save_LIBS
15810 fi
15811 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15812 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15813 if test $ac_cv_lib_V3_sigset = yes; then
15814   cat >>confdefs.h <<_ACEOF
15815 #define HAVE_LIBV3 1
15816 _ACEOF
15817
15818   LIBS="-lV3 $LIBS"
15819
15820 fi
15821
15822 fi
15823
15824 if test "$ac_cv_header_winsock_h" = yes; then
15825 { echo "$as_me:$LINENO: checking for winsock" >&5
15826 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15827 if test "${ol_cv_winsock+set}" = set; then
15828   echo $ECHO_N "(cached) $ECHO_C" >&6
15829 else
15830   save_LIBS="$LIBS"
15831 for curlib in ws2_32 wsock32; do
15832         LIBS="$LIBS -l$curlib"
15833         cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839 #include <winsock.h>
15840
15841 int
15842 main ()
15843 {
15844
15845                         socket(0,0,0);
15846                         select(0,NULL,NULL,NULL,NULL);
15847                         closesocket(0);
15848                         gethostname(NULL,0);
15849
15850   ;
15851   return 0;
15852 }
15853 _ACEOF
15854 rm -f conftest.$ac_objext conftest$ac_exeext
15855 if { (ac_try="$ac_link"
15856 case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_link") 2>conftest.er1
15862   ac_status=$?
15863   grep -v '^ *+' conftest.er1 >conftest.err
15864   rm -f conftest.er1
15865   cat conftest.err >&5
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } &&
15868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15869   { (case "(($ac_try" in
15870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871   *) ac_try_echo=$ac_try;;
15872 esac
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874   (eval "$ac_try") 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); }; } &&
15878          { ac_try='test -s conftest$ac_exeext'
15879   { (case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884   (eval "$ac_try") 2>&5
15885   ac_status=$?
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; }; then
15888   ol_cv_winsock=yes
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893         ol_cv_winsock=no
15894 fi
15895
15896 rm -f core conftest.err conftest.$ac_objext \
15897       conftest$ac_exeext conftest.$ac_ext
15898
15899         if test $ol_cv_winsock = yes; then
15900
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_WINSOCK 1
15903 _ACEOF
15904
15905                 ac_cv_func_socket=yes
15906                 ac_cv_func_select=yes
15907                 ac_cv_func_closesocket=yes
15908                 ac_cv_func_gethostname=yes
15909                 if test $curlib = ws2_32; then
15910                         ol_cv_winsock=winsock2
15911
15912 cat >>confdefs.h <<\_ACEOF
15913 #define HAVE_WINSOCK2 1
15914 _ACEOF
15915
15916                 fi
15917                 break
15918         fi
15919         LIBS="$save_LIBS"
15920 done
15921 fi
15922 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15923 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15924 fi
15925
15926
15927 { echo "$as_me:$LINENO: checking for socket" >&5
15928 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15929 if test "${ac_cv_func_socket+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h.  */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h.  */
15938 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15940 #define socket innocuous_socket
15941
15942 /* System header to define __stub macros and hopefully few prototypes,
15943     which can conflict with char socket (); below.
15944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15945     <limits.h> exists even on freestanding compilers.  */
15946
15947 #ifdef __STDC__
15948 # include <limits.h>
15949 #else
15950 # include <assert.h>
15951 #endif
15952
15953 #undef socket
15954
15955 /* Override any GCC internal prototype to avoid an error.
15956    Use char because int might match the return type of a GCC
15957    builtin and then its argument prototype would still apply.  */
15958 #ifdef __cplusplus
15959 extern "C"
15960 #endif
15961 char socket ();
15962 /* The GNU C library defines this for functions which it implements
15963     to always fail with ENOSYS.  Some functions are actually named
15964     something starting with __ and the normal name is an alias.  */
15965 #if defined __stub_socket || defined __stub___socket
15966 choke me
15967 #endif
15968
15969 int
15970 main ()
15971 {
15972 return socket ();
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext conftest$ac_exeext
15978 if { (ac_try="$ac_link"
15979 case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_link") 2>conftest.er1
15985   ac_status=$?
15986   grep -v '^ *+' conftest.er1 >conftest.err
15987   rm -f conftest.er1
15988   cat conftest.err >&5
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } &&
15991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992   { (case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_try") 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; } &&
16001          { ac_try='test -s conftest$ac_exeext'
16002   { (case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_try") 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011   ac_cv_func_socket=yes
16012 else
16013   echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16015
16016         ac_cv_func_socket=no
16017 fi
16018
16019 rm -f core conftest.err conftest.$ac_objext \
16020       conftest$ac_exeext conftest.$ac_ext
16021 fi
16022 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16023 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
16024 if test $ac_cv_func_socket = yes; then
16025   :
16026 else
16027
16028
16029 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
16030 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
16031 if test "${ac_cv_lib_socket_main+set}" = set; then
16032   echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034   ac_check_lib_save_LIBS=$LIBS
16035 LIBS="-lsocket  $LIBS"
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042
16043
16044 int
16045 main ()
16046 {
16047 return main ();
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (ac_try="$ac_link"
16054 case "(($ac_try" in
16055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056   *) ac_try_echo=$ac_try;;
16057 esac
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059   (eval "$ac_link") 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } &&
16066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067   { (case "(($ac_try" in
16068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069   *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072   (eval "$ac_try") 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; } &&
16076          { ac_try='test -s conftest$ac_exeext'
16077   { (case "(($ac_try" in
16078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079   *) ac_try_echo=$ac_try;;
16080 esac
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082   (eval "$ac_try") 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; }; then
16086   ac_cv_lib_socket_main=yes
16087 else
16088   echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091         ac_cv_lib_socket_main=no
16092 fi
16093
16094 rm -f core conftest.err conftest.$ac_objext \
16095       conftest$ac_exeext conftest.$ac_ext
16096 LIBS=$ac_check_lib_save_LIBS
16097 fi
16098 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
16099 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
16100 if test $ac_cv_lib_socket_main = yes; then
16101   cat >>confdefs.h <<_ACEOF
16102 #define HAVE_LIBSOCKET 1
16103 _ACEOF
16104
16105   LIBS="-lsocket $LIBS"
16106
16107 fi
16108
16109
16110 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
16111 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
16112 if test "${ac_cv_lib_net_main+set}" = set; then
16113   echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115   ac_check_lib_save_LIBS=$LIBS
16116 LIBS="-lnet  $LIBS"
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123
16124
16125 int
16126 main ()
16127 {
16128 return main ();
16129   ;
16130   return 0;
16131 }
16132 _ACEOF
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137   *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140   (eval "$ac_link") 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148   { (case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_try") 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; } &&
16157          { ac_try='test -s conftest$ac_exeext'
16158   { (case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163   (eval "$ac_try") 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); }; }; then
16167   ac_cv_lib_net_main=yes
16168 else
16169   echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172         ac_cv_lib_net_main=no
16173 fi
16174
16175 rm -f core conftest.err conftest.$ac_objext \
16176       conftest$ac_exeext conftest.$ac_ext
16177 LIBS=$ac_check_lib_save_LIBS
16178 fi
16179 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
16180 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
16181 if test $ac_cv_lib_net_main = yes; then
16182   cat >>confdefs.h <<_ACEOF
16183 #define HAVE_LIBNET 1
16184 _ACEOF
16185
16186   LIBS="-lnet $LIBS"
16187
16188 fi
16189
16190
16191 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
16192 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
16193 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
16194   echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196   ac_check_lib_save_LIBS=$LIBS
16197 LIBS="-lnsl_s  $LIBS"
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204
16205
16206 int
16207 main ()
16208 {
16209 return main ();
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (ac_try="$ac_link"
16216 case "(($ac_try" in
16217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218   *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221   (eval "$ac_link") 2>conftest.er1
16222   ac_status=$?
16223   grep -v '^ *+' conftest.er1 >conftest.err
16224   rm -f conftest.er1
16225   cat conftest.err >&5
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } &&
16228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16229   { (case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_try") 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; } &&
16238          { ac_try='test -s conftest$ac_exeext'
16239   { (case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_try") 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   ac_cv_lib_nsl_s_main=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253         ac_cv_lib_nsl_s_main=no
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext \
16257       conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16259 fi
16260 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
16261 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
16262 if test $ac_cv_lib_nsl_s_main = yes; then
16263   cat >>confdefs.h <<_ACEOF
16264 #define HAVE_LIBNSL_S 1
16265 _ACEOF
16266
16267   LIBS="-lnsl_s $LIBS"
16268
16269 fi
16270
16271
16272 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
16273 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
16274 if test "${ac_cv_lib_nsl_main+set}" = set; then
16275   echo $ECHO_N "(cached) $ECHO_C" >&6
16276 else
16277   ac_check_lib_save_LIBS=$LIBS
16278 LIBS="-lnsl  $LIBS"
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285
16286
16287 int
16288 main ()
16289 {
16290 return main ();
16291   ;
16292   return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_link") 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } &&
16309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310   { (case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_try") 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; } &&
16319          { ac_try='test -s conftest$ac_exeext'
16320   { (case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325   (eval "$ac_try") 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; }; then
16329   ac_cv_lib_nsl_main=yes
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334         ac_cv_lib_nsl_main=no
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext \
16338       conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16340 fi
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
16342 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
16343 if test $ac_cv_lib_nsl_main = yes; then
16344   cat >>confdefs.h <<_ACEOF
16345 #define HAVE_LIBNSL 1
16346 _ACEOF
16347
16348   LIBS="-lnsl $LIBS"
16349
16350 fi
16351
16352
16353 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16354 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16355 if test "${ac_cv_lib_inet_socket+set}" = set; then
16356   echo $ECHO_N "(cached) $ECHO_C" >&6
16357 else
16358   ac_check_lib_save_LIBS=$LIBS
16359 LIBS="-linet  $LIBS"
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h.  */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h.  */
16366
16367 /* Override any GCC internal prototype to avoid an error.
16368    Use char because int might match the return type of a GCC
16369    builtin and then its argument prototype would still apply.  */
16370 #ifdef __cplusplus
16371 extern "C"
16372 #endif
16373 char socket ();
16374 int
16375 main ()
16376 {
16377 return socket ();
16378   ;
16379   return 0;
16380 }
16381 _ACEOF
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386   *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389   (eval "$ac_link") 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } &&
16396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16397   { (case "(($ac_try" in
16398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399   *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402   (eval "$ac_try") 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; } &&
16406          { ac_try='test -s conftest$ac_exeext'
16407   { (case "(($ac_try" in
16408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409   *) ac_try_echo=$ac_try;;
16410 esac
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412   (eval "$ac_try") 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); }; }; then
16416   ac_cv_lib_inet_socket=yes
16417 else
16418   echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16420
16421         ac_cv_lib_inet_socket=no
16422 fi
16423
16424 rm -f core conftest.err conftest.$ac_objext \
16425       conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16427 fi
16428 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16429 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16430 if test $ac_cv_lib_inet_socket = yes; then
16431   cat >>confdefs.h <<_ACEOF
16432 #define HAVE_LIBINET 1
16433 _ACEOF
16434
16435   LIBS="-linet $LIBS"
16436
16437 fi
16438
16439
16440 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
16441 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
16442 if test "${ac_cv_lib_gen_main+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   ac_check_lib_save_LIBS=$LIBS
16446 LIBS="-lgen  $LIBS"
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453
16454
16455 int
16456 main ()
16457 {
16458 return main ();
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (ac_try="$ac_link"
16465 case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470   (eval "$ac_link") 2>conftest.er1
16471   ac_status=$?
16472   grep -v '^ *+' conftest.er1 >conftest.err
16473   rm -f conftest.er1
16474   cat conftest.err >&5
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); } &&
16477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16478   { (case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483   (eval "$ac_try") 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; } &&
16487          { ac_try='test -s conftest$ac_exeext'
16488   { (case "(($ac_try" in
16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490   *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493   (eval "$ac_try") 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); }; }; then
16497   ac_cv_lib_gen_main=yes
16498 else
16499   echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16501
16502         ac_cv_lib_gen_main=no
16503 fi
16504
16505 rm -f core conftest.err conftest.$ac_objext \
16506       conftest$ac_exeext conftest.$ac_ext
16507 LIBS=$ac_check_lib_save_LIBS
16508 fi
16509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
16510 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
16511 if test $ac_cv_lib_gen_main = yes; then
16512   cat >>confdefs.h <<_ACEOF
16513 #define HAVE_LIBGEN 1
16514 _ACEOF
16515
16516   LIBS="-lgen $LIBS"
16517
16518 fi
16519
16520
16521 fi
16522
16523
16524 { echo "$as_me:$LINENO: checking for select" >&5
16525 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
16526 if test "${ac_cv_func_select+set}" = set; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535 /* Define select to an innocuous variant, in case <limits.h> declares select.
16536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16537 #define select innocuous_select
16538
16539 /* System header to define __stub macros and hopefully few prototypes,
16540     which can conflict with char select (); below.
16541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16542     <limits.h> exists even on freestanding compilers.  */
16543
16544 #ifdef __STDC__
16545 # include <limits.h>
16546 #else
16547 # include <assert.h>
16548 #endif
16549
16550 #undef select
16551
16552 /* Override any GCC internal prototype to avoid an error.
16553    Use char because int might match the return type of a GCC
16554    builtin and then its argument prototype would still apply.  */
16555 #ifdef __cplusplus
16556 extern "C"
16557 #endif
16558 char select ();
16559 /* The GNU C library defines this for functions which it implements
16560     to always fail with ENOSYS.  Some functions are actually named
16561     something starting with __ and the normal name is an alias.  */
16562 #if defined __stub_select || defined __stub___select
16563 choke me
16564 #endif
16565
16566 int
16567 main ()
16568 {
16569 return select ();
16570   ;
16571   return 0;
16572 }
16573 _ACEOF
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (ac_try="$ac_link"
16576 case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_link") 2>conftest.er1
16582   ac_status=$?
16583   grep -v '^ *+' conftest.er1 >conftest.err
16584   rm -f conftest.er1
16585   cat conftest.err >&5
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); } &&
16588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589   { (case "(($ac_try" in
16590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591   *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594   (eval "$ac_try") 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); }; } &&
16598          { ac_try='test -s conftest$ac_exeext'
16599   { (case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_try") 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; }; then
16608   ac_cv_func_select=yes
16609 else
16610   echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613         ac_cv_func_select=no
16614 fi
16615
16616 rm -f core conftest.err conftest.$ac_objext \
16617       conftest$ac_exeext conftest.$ac_ext
16618 fi
16619 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16620 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16621 if test $ac_cv_func_select = yes; then
16622   :
16623 else
16624   { { echo "$as_me:$LINENO: error: select() required." >&5
16625 echo "$as_me: error: select() required." >&2;}
16626    { (exit 1); exit 1; }; }
16627 fi
16628
16629
16630 if test "${ac_cv_header_winsock_h}" != yes; then
16631
16632
16633 for ac_header in sys/select.h sys/socket.h
16634 do
16635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16637   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 fi
16642 ac_res=`eval echo '${'$as_ac_Header'}'`
16643                { echo "$as_me:$LINENO: result: $ac_res" >&5
16644 echo "${ECHO_T}$ac_res" >&6; }
16645 else
16646   # Is the header compilable?
16647 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16649 cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 $ac_includes_default
16656 #include <$ac_header>
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (ac_try="$ac_compile"
16660 case "(($ac_try" in
16661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662   *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665   (eval "$ac_compile") 2>conftest.er1
16666   ac_status=$?
16667   grep -v '^ *+' conftest.er1 >conftest.err
16668   rm -f conftest.er1
16669   cat conftest.err >&5
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } &&
16672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16673   { (case "(($ac_try" in
16674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675   *) ac_try_echo=$ac_try;;
16676 esac
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678   (eval "$ac_try") 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; } &&
16682          { ac_try='test -s conftest.$ac_objext'
16683   { (case "(($ac_try" in
16684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685   *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688   (eval "$ac_try") 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }; }; then
16692   ac_header_compiler=yes
16693 else
16694   echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697         ac_header_compiler=no
16698 fi
16699
16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16702 echo "${ECHO_T}$ac_header_compiler" >&6; }
16703
16704 # Is the header present?
16705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16707 cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713 #include <$ac_header>
16714 _ACEOF
16715 if { (ac_try="$ac_cpp conftest.$ac_ext"
16716 case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16722   ac_status=$?
16723   grep -v '^ *+' conftest.er1 >conftest.err
16724   rm -f conftest.er1
16725   cat conftest.err >&5
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } >/dev/null; then
16728   if test -s conftest.err; then
16729     ac_cpp_err=$ac_c_preproc_warn_flag
16730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16731   else
16732     ac_cpp_err=
16733   fi
16734 else
16735   ac_cpp_err=yes
16736 fi
16737 if test -z "$ac_cpp_err"; then
16738   ac_header_preproc=yes
16739 else
16740   echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743   ac_header_preproc=no
16744 fi
16745
16746 rm -f conftest.err conftest.$ac_ext
16747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16748 echo "${ECHO_T}$ac_header_preproc" >&6; }
16749
16750 # So?  What about this header?
16751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16752   yes:no: )
16753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16757     ac_header_preproc=yes
16758     ;;
16759   no:yes:* )
16760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16762     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16763 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16764     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16766     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16767 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16770     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16772     ( cat <<\_ASBOX
16773 ## --------------------------------------------- ##
16774 ## Report this to <http://www.openldap.org/its/> ##
16775 ## --------------------------------------------- ##
16776 _ASBOX
16777      ) | sed "s/^/$as_me: WARNING:     /" >&2
16778     ;;
16779 esac
16780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   eval "$as_ac_Header=\$ac_header_preproc"
16786 fi
16787 ac_res=`eval echo '${'$as_ac_Header'}'`
16788                { echo "$as_me:$LINENO: result: $ac_res" >&5
16789 echo "${ECHO_T}$ac_res" >&6; }
16790
16791 fi
16792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16793   cat >>confdefs.h <<_ACEOF
16794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16795 _ACEOF
16796
16797 fi
16798
16799 done
16800
16801 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16802 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16803 if test "${ac_cv_func_select_args+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16807  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16808   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16809    cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 $ac_includes_default
16816 #if HAVE_SYS_SELECT_H
16817 # include <sys/select.h>
16818 #endif
16819 #if HAVE_SYS_SOCKET_H
16820 # include <sys/socket.h>
16821 #endif
16822
16823 int
16824 main ()
16825 {
16826 extern int select ($ac_arg1,
16827                                             $ac_arg234, $ac_arg234, $ac_arg234,
16828                                             $ac_arg5);
16829   ;
16830   return 0;
16831 }
16832 _ACEOF
16833 rm -f conftest.$ac_objext
16834 if { (ac_try="$ac_compile"
16835 case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_compile") 2>conftest.er1
16841   ac_status=$?
16842   grep -v '^ *+' conftest.er1 >conftest.err
16843   rm -f conftest.er1
16844   cat conftest.err >&5
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); } &&
16847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16848   { (case "(($ac_try" in
16849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850   *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853   (eval "$ac_try") 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; } &&
16857          { ac_try='test -s conftest.$ac_objext'
16858   { (case "(($ac_try" in
16859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860   *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863   (eval "$ac_try") 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); }; }; then
16867   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16868 else
16869   echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16871
16872
16873 fi
16874
16875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16876   done
16877  done
16878 done
16879 # Provide a safe default value.
16880 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16881
16882 fi
16883 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16884 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16885 ac_save_IFS=$IFS; IFS=','
16886 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16887 IFS=$ac_save_IFS
16888 shift
16889
16890 cat >>confdefs.h <<_ACEOF
16891 #define SELECT_TYPE_ARG1 $1
16892 _ACEOF
16893
16894
16895 cat >>confdefs.h <<_ACEOF
16896 #define SELECT_TYPE_ARG234 ($2)
16897 _ACEOF
16898
16899
16900 cat >>confdefs.h <<_ACEOF
16901 #define SELECT_TYPE_ARG5 ($3)
16902 _ACEOF
16903
16904 rm -f conftest*
16905
16906 fi
16907
16908
16909
16910 for ac_func in poll
16911 do
16912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918   cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16926 #define $ac_func innocuous_$ac_func
16927
16928 /* System header to define __stub macros and hopefully few prototypes,
16929     which can conflict with char $ac_func (); below.
16930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931     <limits.h> exists even on freestanding compilers.  */
16932
16933 #ifdef __STDC__
16934 # include <limits.h>
16935 #else
16936 # include <assert.h>
16937 #endif
16938
16939 #undef $ac_func
16940
16941 /* Override any GCC internal prototype to avoid an error.
16942    Use char because int might match the return type of a GCC
16943    builtin and then its argument prototype would still apply.  */
16944 #ifdef __cplusplus
16945 extern "C"
16946 #endif
16947 char $ac_func ();
16948 /* The GNU C library defines this for functions which it implements
16949     to always fail with ENOSYS.  Some functions are actually named
16950     something starting with __ and the normal name is an alias.  */
16951 #if defined __stub_$ac_func || defined __stub___$ac_func
16952 choke me
16953 #endif
16954
16955 int
16956 main ()
16957 {
16958 return $ac_func ();
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967   *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970   (eval "$ac_link") 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } &&
16977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16978   { (case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983   (eval "$ac_try") 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); }; } &&
16987          { ac_try='test -s conftest$ac_exeext'
16988   { (case "(($ac_try" in
16989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990   *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993   (eval "$ac_try") 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; }; then
16997   eval "$as_ac_var=yes"
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002         eval "$as_ac_var=no"
17003 fi
17004
17005 rm -f core conftest.err conftest.$ac_objext \
17006       conftest$ac_exeext conftest.$ac_ext
17007 fi
17008 ac_res=`eval echo '${'$as_ac_var'}'`
17009                { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 if test `eval echo '${'$as_ac_var'}'` = yes; then
17012   cat >>confdefs.h <<_ACEOF
17013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17014 _ACEOF
17015
17016 fi
17017 done
17018
17019 if test $ac_cv_func_poll = yes; then
17020
17021
17022 for ac_header in poll.h sys/poll.h
17023 do
17024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029   echo $ECHO_N "(cached) $ECHO_C" >&6
17030 fi
17031 ac_res=`eval echo '${'$as_ac_Header'}'`
17032                { echo "$as_me:$LINENO: result: $ac_res" >&5
17033 echo "${ECHO_T}$ac_res" >&6; }
17034 else
17035   # Is the header compilable?
17036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h.  */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h.  */
17044 $ac_includes_default
17045 #include <$ac_header>
17046 _ACEOF
17047 rm -f conftest.$ac_objext
17048 if { (ac_try="$ac_compile"
17049 case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_compile") 2>conftest.er1
17055   ac_status=$?
17056   grep -v '^ *+' conftest.er1 >conftest.err
17057   rm -f conftest.er1
17058   cat conftest.err >&5
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); } &&
17061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17062   { (case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_try") 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; } &&
17071          { ac_try='test -s conftest.$ac_objext'
17072   { (case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077   (eval "$ac_try") 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; }; then
17081   ac_header_compiler=yes
17082 else
17083   echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086         ac_header_compiler=no
17087 fi
17088
17089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17091 echo "${ECHO_T}$ac_header_compiler" >&6; }
17092
17093 # Is the header present?
17094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102 #include <$ac_header>
17103 _ACEOF
17104 if { (ac_try="$ac_cpp conftest.$ac_ext"
17105 case "(($ac_try" in
17106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107   *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17111   ac_status=$?
17112   grep -v '^ *+' conftest.er1 >conftest.err
17113   rm -f conftest.er1
17114   cat conftest.err >&5
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); } >/dev/null; then
17117   if test -s conftest.err; then
17118     ac_cpp_err=$ac_c_preproc_warn_flag
17119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17120   else
17121     ac_cpp_err=
17122   fi
17123 else
17124   ac_cpp_err=yes
17125 fi
17126 if test -z "$ac_cpp_err"; then
17127   ac_header_preproc=yes
17128 else
17129   echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17131
17132   ac_header_preproc=no
17133 fi
17134
17135 rm -f conftest.err conftest.$ac_ext
17136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17137 echo "${ECHO_T}$ac_header_preproc" >&6; }
17138
17139 # So?  What about this header?
17140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17141   yes:no: )
17142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17146     ac_header_preproc=yes
17147     ;;
17148   no:yes:* )
17149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17161     ( cat <<\_ASBOX
17162 ## --------------------------------------------- ##
17163 ## Report this to <http://www.openldap.org/its/> ##
17164 ## --------------------------------------------- ##
17165 _ASBOX
17166      ) | sed "s/^/$as_me: WARNING:     /" >&2
17167     ;;
17168 esac
17169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17172   echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174   eval "$as_ac_Header=\$ac_header_preproc"
17175 fi
17176 ac_res=`eval echo '${'$as_ac_Header'}'`
17177                { echo "$as_me:$LINENO: result: $ac_res" >&5
17178 echo "${ECHO_T}$ac_res" >&6; }
17179
17180 fi
17181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17182   cat >>confdefs.h <<_ACEOF
17183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17184 _ACEOF
17185
17186 fi
17187
17188 done
17189
17190 fi
17191
17192
17193 for ac_header in sys/epoll.h
17194 do
17195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17197   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 fi
17202 ac_res=`eval echo '${'$as_ac_Header'}'`
17203                { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17205 else
17206   # Is the header compilable?
17207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17209 cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h.  */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h.  */
17215 $ac_includes_default
17216 #include <$ac_header>
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_compile") 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } &&
17232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; } &&
17242          { ac_try='test -s conftest.$ac_objext'
17243   { (case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_try") 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252   ac_header_compiler=yes
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257         ac_header_compiler=no
17258 fi
17259
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17262 echo "${ECHO_T}$ac_header_compiler" >&6; }
17263
17264 # Is the header present?
17265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17267 cat >conftest.$ac_ext <<_ACEOF
17268 /* confdefs.h.  */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h.  */
17273 #include <$ac_header>
17274 _ACEOF
17275 if { (ac_try="$ac_cpp conftest.$ac_ext"
17276 case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17282   ac_status=$?
17283   grep -v '^ *+' conftest.er1 >conftest.err
17284   rm -f conftest.er1
17285   cat conftest.err >&5
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); } >/dev/null; then
17288   if test -s conftest.err; then
17289     ac_cpp_err=$ac_c_preproc_warn_flag
17290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17291   else
17292     ac_cpp_err=
17293   fi
17294 else
17295   ac_cpp_err=yes
17296 fi
17297 if test -z "$ac_cpp_err"; then
17298   ac_header_preproc=yes
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303   ac_header_preproc=no
17304 fi
17305
17306 rm -f conftest.err conftest.$ac_ext
17307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17308 echo "${ECHO_T}$ac_header_preproc" >&6; }
17309
17310 # So?  What about this header?
17311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17312   yes:no: )
17313     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17317     ac_header_preproc=yes
17318     ;;
17319   no:yes:* )
17320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17322     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17323 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17324     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17326     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17327 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17330     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17332     ( cat <<\_ASBOX
17333 ## --------------------------------------------- ##
17334 ## Report this to <http://www.openldap.org/its/> ##
17335 ## --------------------------------------------- ##
17336 _ASBOX
17337      ) | sed "s/^/$as_me: WARNING:     /" >&2
17338     ;;
17339 esac
17340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17343   echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345   eval "$as_ac_Header=\$ac_header_preproc"
17346 fi
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348                { echo "$as_me:$LINENO: result: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17350
17351 fi
17352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17353   cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17355 _ACEOF
17356
17357 fi
17358
17359 done
17360
17361 if test "${ac_cv_header_sys_epoll_h}" = yes; then
17362         { echo "$as_me:$LINENO: checking for epoll system call" >&5
17363 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
17364         if test "$cross_compiling" = yes; then
17365   { echo "$as_me:$LINENO: result: no" >&5
17366 echo "${ECHO_T}no" >&6; }
17367 else
17368   cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374 int main(int argc, char **argv)
17375 {
17376         int epfd = epoll_create(256);
17377         exit (epfd == -1 ? 1 : 0);
17378 }
17379 _ACEOF
17380 rm -f conftest$ac_exeext
17381 if { (ac_try="$ac_link"
17382 case "(($ac_try" in
17383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384   *) ac_try_echo=$ac_try;;
17385 esac
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387   (eval "$ac_link") 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17391   { (case "(($ac_try" in
17392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393   *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396   (eval "$ac_try") 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400   { echo "$as_me:$LINENO: result: yes" >&5
17401 echo "${ECHO_T}yes" >&6; }
17402
17403 cat >>confdefs.h <<\_ACEOF
17404 #define HAVE_EPOLL 1
17405 _ACEOF
17406
17407 else
17408   echo "$as_me: program exited with status $ac_status" >&5
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 ( exit $ac_status )
17413 { echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6; }
17415 fi
17416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17417 fi
17418
17419
17420 fi
17421
17422
17423 for ac_header in sys/devpoll.h
17424 do
17425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17427   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 fi
17432 ac_res=`eval echo '${'$as_ac_Header'}'`
17433                { echo "$as_me:$LINENO: result: $ac_res" >&5
17434 echo "${ECHO_T}$ac_res" >&6; }
17435 else
17436   # Is the header compilable?
17437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445 $ac_includes_default
17446 #include <$ac_header>
17447 _ACEOF
17448 rm -f conftest.$ac_objext
17449 if { (ac_try="$ac_compile"
17450 case "(($ac_try" in
17451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452   *) ac_try_echo=$ac_try;;
17453 esac
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455   (eval "$ac_compile") 2>conftest.er1
17456   ac_status=$?
17457   grep -v '^ *+' conftest.er1 >conftest.err
17458   rm -f conftest.er1
17459   cat conftest.err >&5
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); } &&
17462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17463   { (case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_try") 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); }; } &&
17472          { ac_try='test -s conftest.$ac_objext'
17473   { (case "(($ac_try" in
17474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475   *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478   (eval "$ac_try") 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; }; then
17482   ac_header_compiler=yes
17483 else
17484   echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487         ac_header_compiler=no
17488 fi
17489
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17492 echo "${ECHO_T}$ac_header_compiler" >&6; }
17493
17494 # Is the header present?
17495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 #include <$ac_header>
17504 _ACEOF
17505 if { (ac_try="$ac_cpp conftest.$ac_ext"
17506 case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17512   ac_status=$?
17513   grep -v '^ *+' conftest.er1 >conftest.err
17514   rm -f conftest.er1
17515   cat conftest.err >&5
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); } >/dev/null; then
17518   if test -s conftest.err; then
17519     ac_cpp_err=$ac_c_preproc_warn_flag
17520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17521   else
17522     ac_cpp_err=
17523   fi
17524 else
17525   ac_cpp_err=yes
17526 fi
17527 if test -z "$ac_cpp_err"; then
17528   ac_header_preproc=yes
17529 else
17530   echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533   ac_header_preproc=no
17534 fi
17535
17536 rm -f conftest.err conftest.$ac_ext
17537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17538 echo "${ECHO_T}$ac_header_preproc" >&6; }
17539
17540 # So?  What about this header?
17541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17542   yes:no: )
17543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17547     ac_header_preproc=yes
17548     ;;
17549   no:yes:* )
17550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17562     ( cat <<\_ASBOX
17563 ## --------------------------------------------- ##
17564 ## Report this to <http://www.openldap.org/its/> ##
17565 ## --------------------------------------------- ##
17566 _ASBOX
17567      ) | sed "s/^/$as_me: WARNING:     /" >&2
17568     ;;
17569 esac
17570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17573   echo $ECHO_N "(cached) $ECHO_C" >&6
17574 else
17575   eval "$as_ac_Header=\$ac_header_preproc"
17576 fi
17577 ac_res=`eval echo '${'$as_ac_Header'}'`
17578                { echo "$as_me:$LINENO: result: $ac_res" >&5
17579 echo "${ECHO_T}$ac_res" >&6; }
17580
17581 fi
17582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17583   cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17585 _ACEOF
17586
17587 fi
17588
17589 done
17590
17591 if test "${ac_cv_header_sys_devpoll_h}" = yes \
17592                 -a "${ac_cv_header_poll_h}" = yes ; \
17593 then
17594         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
17595 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17596         if test "$cross_compiling" = yes; then
17597   { echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6; }
17599 else
17600   cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606 int main(int argc, char **argv)
17607 {
17608         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17609         exit (devpollfd == -1 ? 1 : 0);
17610 }
17611 _ACEOF
17612 rm -f conftest$ac_exeext
17613 if { (ac_try="$ac_link"
17614 case "(($ac_try" in
17615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616   *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619   (eval "$ac_link") 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17623   { (case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_try") 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; }; then
17632   { echo "$as_me:$LINENO: result: yes" >&5
17633 echo "${ECHO_T}yes" >&6; }
17634
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_DEVPOLL 1
17637 _ACEOF
17638
17639 else
17640   echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ( exit $ac_status )
17645 { echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6; }
17647 fi
17648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17649 fi
17650
17651
17652 fi
17653
17654 # strerror checks
17655 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17656 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17657 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17658   echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660
17661         cat >conftest.$ac_ext <<_ACEOF
17662 /* confdefs.h.  */
17663 _ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h.  */
17667
17668 #include <stdio.h>
17669 #include <sys/types.h>
17670 #include <errno.h>
17671 #ifdef _WIN32
17672 #include <stdlib.h>
17673 #endif
17674 int
17675 main ()
17676 {
17677 char *c = (char *) *sys_errlist
17678   ;
17679   return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest.$ac_objext
17683 if { (ac_try="$ac_compile"
17684 case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_compile") 2>conftest.er1
17690   ac_status=$?
17691   grep -v '^ *+' conftest.er1 >conftest.err
17692   rm -f conftest.er1
17693   cat conftest.err >&5
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } &&
17696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17697   { (case "(($ac_try" in
17698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699   *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702   (eval "$ac_try") 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; } &&
17706          { ac_try='test -s conftest.$ac_objext'
17707   { (case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712   (eval "$ac_try") 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; }; then
17716   ol_cv_dcl_sys_errlist=yes
17717         ol_cv_have_sys_errlist=yes
17718 else
17719   echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17721
17722         ol_cv_dcl_sys_errlist=no
17723 fi
17724
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726 fi
17727 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17728 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17729 #
17730 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17731 if test $ol_cv_dcl_sys_errlist = no ; then
17732
17733 cat >>confdefs.h <<\_ACEOF
17734 #define DECL_SYS_ERRLIST 1
17735 _ACEOF
17736
17737
17738         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17739 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17740 if test "${ol_cv_have_sys_errlist+set}" = set; then
17741   echo $ECHO_N "(cached) $ECHO_C" >&6
17742 else
17743
17744                 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h.  */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h.  */
17750 #include <errno.h>
17751 int
17752 main ()
17753 {
17754 char *c = (char *) *sys_errlist
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (ac_try="$ac_link"
17761 case "(($ac_try" in
17762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763   *) ac_try_echo=$ac_try;;
17764 esac
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766   (eval "$ac_link") 2>conftest.er1
17767   ac_status=$?
17768   grep -v '^ *+' conftest.er1 >conftest.err
17769   rm -f conftest.er1
17770   cat conftest.err >&5
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); } &&
17773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17774   { (case "(($ac_try" in
17775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776   *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779   (eval "$ac_try") 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; } &&
17783          { ac_try='test -s conftest$ac_exeext'
17784   { (case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789   (eval "$ac_try") 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; }; then
17793   ol_cv_have_sys_errlist=yes
17794 else
17795   echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798         ol_cv_have_sys_errlist=no
17799 fi
17800
17801 rm -f core conftest.err conftest.$ac_objext \
17802       conftest$ac_exeext conftest.$ac_ext
17803 fi
17804 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17805 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17806 fi
17807 if test $ol_cv_have_sys_errlist = yes ; then
17808
17809 cat >>confdefs.h <<\_ACEOF
17810 #define HAVE_SYS_ERRLIST 1
17811 _ACEOF
17812
17813 fi
17814
17815
17816 for ac_func in strerror strerror_r
17817 do
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822   echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824   cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17832 #define $ac_func innocuous_$ac_func
17833
17834 /* System header to define __stub macros and hopefully few prototypes,
17835     which can conflict with char $ac_func (); below.
17836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837     <limits.h> exists even on freestanding compilers.  */
17838
17839 #ifdef __STDC__
17840 # include <limits.h>
17841 #else
17842 # include <assert.h>
17843 #endif
17844
17845 #undef $ac_func
17846
17847 /* Override any GCC internal prototype to avoid an error.
17848    Use char because int might match the return type of a GCC
17849    builtin and then its argument prototype would still apply.  */
17850 #ifdef __cplusplus
17851 extern "C"
17852 #endif
17853 char $ac_func ();
17854 /* The GNU C library defines this for functions which it implements
17855     to always fail with ENOSYS.  Some functions are actually named
17856     something starting with __ and the normal name is an alias.  */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17858 choke me
17859 #endif
17860
17861 int
17862 main ()
17863 {
17864 return $ac_func ();
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873   *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876   (eval "$ac_link") 2>conftest.er1
17877   ac_status=$?
17878   grep -v '^ *+' conftest.er1 >conftest.err
17879   rm -f conftest.er1
17880   cat conftest.err >&5
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); } &&
17883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17884   { (case "(($ac_try" in
17885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886   *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889   (eval "$ac_try") 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; } &&
17893          { ac_try='test -s conftest$ac_exeext'
17894   { (case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_try") 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; }; then
17903   eval "$as_ac_var=yes"
17904 else
17905   echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908         eval "$as_ac_var=no"
17909 fi
17910
17911 rm -f core conftest.err conftest.$ac_objext \
17912       conftest$ac_exeext conftest.$ac_ext
17913 fi
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915                { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918   cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17920 _ACEOF
17921
17922 fi
17923 done
17924
17925 ol_cv_func_strerror_r=no
17926 if test "${ac_cv_func_strerror_r}" = yes ; then
17927         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17928 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17929 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17930   echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932
17933         cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h.  */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h.  */
17939 #include <string.h>
17940 _ACEOF
17941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17942   $EGREP "strerror_r" >/dev/null 2>&1; then
17943   ol_decl_strerror_r=yes
17944 else
17945   ol_decl_strerror_r=no
17946 fi
17947 rm -f conftest*
17948
17949         if test $ol_decl_strerror_r = yes ; then
17950                 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h.  */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h.  */
17956 #include <string.h>
17957 int
17958 main ()
17959 {
17960    /* from autoconf 2.59 */
17961                                 char buf[100];
17962                                 char x = *strerror_r (0, buf, sizeof buf);
17963                                 char *p = strerror_r (0, buf, sizeof buf);
17964
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext
17970 if { (ac_try="$ac_compile"
17971 case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976   (eval "$ac_compile") 2>conftest.er1
17977   ac_status=$?
17978   grep -v '^ *+' conftest.er1 >conftest.err
17979   rm -f conftest.er1
17980   cat conftest.err >&5
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); } &&
17983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984   { (case "(($ac_try" in
17985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986   *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989   (eval "$ac_try") 2>&5
17990   ac_status=$?
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); }; } &&
17993          { ac_try='test -s conftest.$ac_objext'
17994   { (case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_try") 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; }; then
18003   ol_cv_nonposix_strerror_r=yes
18004 else
18005   echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18007
18008         ol_cv_nonposix_strerror_r=no
18009 fi
18010
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012         else
18013                 if test "$cross_compiling" = yes; then
18014   ol_cv_nonposix_strerror=no
18015 else
18016   cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022
18023                         main() {
18024                                 char buf[100];
18025                                 buf[0] = 0;
18026                                 strerror_r( 1, buf, sizeof buf );
18027                                 exit( buf[0] == 0 );
18028                         }
18029
18030 _ACEOF
18031 rm -f conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038   (eval "$ac_link") 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18042   { (case "(($ac_try" in
18043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044   *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047   (eval "$ac_try") 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); }; }; then
18051   ol_cv_nonposix_strerror_r=yes
18052 else
18053   echo "$as_me: program exited with status $ac_status" >&5
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057 ( exit $ac_status )
18058 ol_cv_nonposix_strerror=no
18059 fi
18060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18061 fi
18062
18063
18064         fi
18065
18066 fi
18067 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
18068 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
18069 if test $ol_cv_nonposix_strerror_r = yes ; then
18070
18071 cat >>confdefs.h <<\_ACEOF
18072 #define HAVE_NONPOSIX_STRERROR_R 1
18073 _ACEOF
18074
18075 fi
18076
18077 elif test "${ac_cv_func_strerror}" = no ; then
18078         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
18079 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
18080 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
18081   echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083
18084         cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h.  */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h.  */
18090
18091 #include <stdio.h>
18092 #include <sys/types.h>
18093 #include <errno.h>
18094 #ifdef _WIN32
18095 #include <stdlib.h>
18096 #endif
18097 int
18098 main ()
18099 {
18100 char *c = (char *) *sys_errlist
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (ac_try="$ac_compile"
18107 case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_compile") 2>conftest.er1
18113   ac_status=$?
18114   grep -v '^ *+' conftest.er1 >conftest.err
18115   rm -f conftest.er1
18116   cat conftest.err >&5
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } &&
18119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120   { (case "(($ac_try" in
18121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122   *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125   (eval "$ac_try") 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; } &&
18129          { ac_try='test -s conftest.$ac_objext'
18130   { (case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_try") 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; }; then
18139   ol_cv_dcl_sys_errlist=yes
18140         ol_cv_have_sys_errlist=yes
18141 else
18142   echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18144
18145         ol_cv_dcl_sys_errlist=no
18146 fi
18147
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 fi
18150 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
18151 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
18152 #
18153 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
18154 if test $ol_cv_dcl_sys_errlist = no ; then
18155
18156 cat >>confdefs.h <<\_ACEOF
18157 #define DECL_SYS_ERRLIST 1
18158 _ACEOF
18159
18160
18161         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
18162 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
18163 if test "${ol_cv_have_sys_errlist+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166
18167                 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173 #include <errno.h>
18174 int
18175 main ()
18176 {
18177 char *c = (char *) *sys_errlist
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186   *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189   (eval "$ac_link") 2>conftest.er1
18190   ac_status=$?
18191   grep -v '^ *+' conftest.er1 >conftest.err
18192   rm -f conftest.er1
18193   cat conftest.err >&5
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); } &&
18196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197   { (case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202   (eval "$ac_try") 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; } &&
18206          { ac_try='test -s conftest$ac_exeext'
18207   { (case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212   (eval "$ac_try") 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; }; then
18216   ol_cv_have_sys_errlist=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221         ol_cv_have_sys_errlist=no
18222 fi
18223
18224 rm -f core conftest.err conftest.$ac_objext \
18225       conftest$ac_exeext conftest.$ac_ext
18226 fi
18227 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
18228 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
18229 fi
18230 if test $ol_cv_have_sys_errlist = yes ; then
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE_SYS_ERRLIST 1
18234 _ACEOF
18235
18236 fi
18237
18238 fi
18239
18240
18241
18242 for ac_header in regex.h
18243 do
18244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18248   echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250   cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256 $ac_includes_default
18257 #ifdef HAVE_SYS_TYPES_H
18258 #include <sys/types.h>
18259 #endif
18260
18261
18262 #include <$ac_header>
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (ac_try="$ac_compile"
18266 case "(($ac_try" in
18267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268   *) ac_try_echo=$ac_try;;
18269 esac
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271   (eval "$ac_compile") 2>conftest.er1
18272   ac_status=$?
18273   grep -v '^ *+' conftest.er1 >conftest.err
18274   rm -f conftest.er1
18275   cat conftest.err >&5
18276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); } &&
18278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279   { (case "(($ac_try" in
18280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281   *) ac_try_echo=$ac_try;;
18282 esac
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284   (eval "$ac_try") 2>&5
18285   ac_status=$?
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); }; } &&
18288          { ac_try='test -s conftest.$ac_objext'
18289   { (case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294   (eval "$ac_try") 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; }; then
18298   eval "$as_ac_Header=yes"
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303         eval "$as_ac_Header=no"
18304 fi
18305
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18307 fi
18308 ac_res=`eval echo '${'$as_ac_Header'}'`
18309                { echo "$as_me:$LINENO: result: $ac_res" >&5
18310 echo "${ECHO_T}$ac_res" >&6; }
18311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18312   cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18314 _ACEOF
18315
18316 fi
18317
18318 done
18319
18320
18321 if test "$ac_cv_header_regex_h" != yes ; then
18322         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
18323 echo "$as_me: error: POSIX regex.h required." >&2;}
18324    { (exit 1); exit 1; }; }
18325 fi
18326 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
18327 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
18328 if test "${ac_cv_search_regfree+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   ac_func_search_save_LIBS=$LIBS
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338
18339 /* Override any GCC internal prototype to avoid an error.
18340    Use char because int might match the return type of a GCC
18341    builtin and then its argument prototype would still apply.  */
18342 #ifdef __cplusplus
18343 extern "C"
18344 #endif
18345 char regfree ();
18346 int
18347 main ()
18348 {
18349 return regfree ();
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 for ac_lib in '' regex gnuregex; do
18355   if test -z "$ac_lib"; then
18356     ac_res="none required"
18357   else
18358     ac_res=-l$ac_lib
18359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18360   fi
18361   rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_link") 2>conftest.er1
18369   ac_status=$?
18370   grep -v '^ *+' conftest.er1 >conftest.err
18371   rm -f conftest.er1
18372   cat conftest.err >&5
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } &&
18375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18376   { (case "(($ac_try" in
18377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378   *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381   (eval "$ac_try") 2>&5
18382   ac_status=$?
18383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384   (exit $ac_status); }; } &&
18385          { ac_try='test -s conftest$ac_exeext'
18386   { (case "(($ac_try" in
18387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388   *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391   (eval "$ac_try") 2>&5
18392   ac_status=$?
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   (exit $ac_status); }; }; then
18395   ac_cv_search_regfree=$ac_res
18396 else
18397   echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400
18401 fi
18402
18403 rm -f core conftest.err conftest.$ac_objext \
18404       conftest$ac_exeext
18405   if test "${ac_cv_search_regfree+set}" = set; then
18406   break
18407 fi
18408 done
18409 if test "${ac_cv_search_regfree+set}" = set; then
18410   :
18411 else
18412   ac_cv_search_regfree=no
18413 fi
18414 rm conftest.$ac_ext
18415 LIBS=$ac_func_search_save_LIBS
18416 fi
18417 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
18418 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
18419 ac_res=$ac_cv_search_regfree
18420 if test "$ac_res" != no; then
18421   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18422   :
18423 else
18424   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
18425 echo "$as_me: error: POSIX regex required." >&2;}
18426    { (exit 1); exit 1; }; }
18427 fi
18428
18429
18430
18431 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
18432 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
18433 if test "${ol_cv_c_posix_regex+set}" = set; then
18434   echo $ECHO_N "(cached) $ECHO_C" >&6
18435 else
18436
18437         if test "$cross_compiling" = yes; then
18438   ol_cv_c_posix_regex=cross
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446
18447 #include <sys/types.h>
18448 #include <regex.h>
18449 static char *pattern, *string;
18450 main()
18451 {
18452         int rc;
18453         regex_t re;
18454
18455         pattern = "^A";
18456
18457         if(regcomp(&re, pattern, 0)) {
18458                 return -1;
18459         }
18460
18461         string = "ALL MATCH";
18462
18463         rc = regexec(&re, string, 0, (void*)0, 0);
18464
18465         regfree(&re);
18466
18467         return rc;
18468 }
18469 _ACEOF
18470 rm -f conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474   *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477   (eval "$ac_link") 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18481   { (case "(($ac_try" in
18482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483   *) ac_try_echo=$ac_try;;
18484 esac
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486   (eval "$ac_try") 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; }; then
18490   ol_cv_c_posix_regex=yes
18491 else
18492   echo "$as_me: program exited with status $ac_status" >&5
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18495
18496 ( exit $ac_status )
18497 ol_cv_c_posix_regex=no
18498 fi
18499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18500 fi
18501
18502
18503 fi
18504 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
18505 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
18506
18507 if test "$ol_cv_c_posix_regex" = no ; then
18508         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
18509 echo "$as_me: error: broken POSIX regex!" >&2;}
18510    { (exit 1); exit 1; }; }
18511 fi
18512
18513
18514 have_uuid=no
18515
18516 for ac_header in sys/uuid.h
18517 do
18518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18520   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18523   echo $ECHO_N "(cached) $ECHO_C" >&6
18524 fi
18525 ac_res=`eval echo '${'$as_ac_Header'}'`
18526                { echo "$as_me:$LINENO: result: $ac_res" >&5
18527 echo "${ECHO_T}$ac_res" >&6; }
18528 else
18529   # Is the header compilable?
18530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h.  */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h.  */
18538 $ac_includes_default
18539 #include <$ac_header>
18540 _ACEOF
18541 rm -f conftest.$ac_objext
18542 if { (ac_try="$ac_compile"
18543 case "(($ac_try" in
18544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545   *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548   (eval "$ac_compile") 2>conftest.er1
18549   ac_status=$?
18550   grep -v '^ *+' conftest.er1 >conftest.err
18551   rm -f conftest.er1
18552   cat conftest.err >&5
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); } &&
18555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18556   { (case "(($ac_try" in
18557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558   *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561   (eval "$ac_try") 2>&5
18562   ac_status=$?
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); }; } &&
18565          { ac_try='test -s conftest.$ac_objext'
18566   { (case "(($ac_try" in
18567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568   *) ac_try_echo=$ac_try;;
18569 esac
18570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18571   (eval "$ac_try") 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; }; then
18575   ac_header_compiler=yes
18576 else
18577   echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18579
18580         ac_header_compiler=no
18581 fi
18582
18583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18585 echo "${ECHO_T}$ac_header_compiler" >&6; }
18586
18587 # Is the header present?
18588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596 #include <$ac_header>
18597 _ACEOF
18598 if { (ac_try="$ac_cpp conftest.$ac_ext"
18599 case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18605   ac_status=$?
18606   grep -v '^ *+' conftest.er1 >conftest.err
18607   rm -f conftest.er1
18608   cat conftest.err >&5
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); } >/dev/null; then
18611   if test -s conftest.err; then
18612     ac_cpp_err=$ac_c_preproc_warn_flag
18613     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18614   else
18615     ac_cpp_err=
18616   fi
18617 else
18618   ac_cpp_err=yes
18619 fi
18620 if test -z "$ac_cpp_err"; then
18621   ac_header_preproc=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626   ac_header_preproc=no
18627 fi
18628
18629 rm -f conftest.err conftest.$ac_ext
18630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18631 echo "${ECHO_T}$ac_header_preproc" >&6; }
18632
18633 # So?  What about this header?
18634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18635   yes:no: )
18636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18640     ac_header_preproc=yes
18641     ;;
18642   no:yes:* )
18643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18645     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18646 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18647     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18649     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18650 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18653     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18655     ( cat <<\_ASBOX
18656 ## --------------------------------------------- ##
18657 ## Report this to <http://www.openldap.org/its/> ##
18658 ## --------------------------------------------- ##
18659 _ASBOX
18660      ) | sed "s/^/$as_me: WARNING:     /" >&2
18661     ;;
18662 esac
18663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668   eval "$as_ac_Header=\$ac_header_preproc"
18669 fi
18670 ac_res=`eval echo '${'$as_ac_Header'}'`
18671                { echo "$as_me:$LINENO: result: $ac_res" >&5
18672 echo "${ECHO_T}$ac_res" >&6; }
18673
18674 fi
18675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18676   cat >>confdefs.h <<_ACEOF
18677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18678 _ACEOF
18679
18680 fi
18681
18682 done
18683
18684 if test $ac_cv_header_sys_uuid_h = yes ; then
18685         save_LIBS="$LIBS"
18686         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
18687 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
18688 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691   ac_func_search_save_LIBS=$LIBS
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698
18699 /* Override any GCC internal prototype to avoid an error.
18700    Use char because int might match the return type of a GCC
18701    builtin and then its argument prototype would still apply.  */
18702 #ifdef __cplusplus
18703 extern "C"
18704 #endif
18705 char uuid_to_str ();
18706 int
18707 main ()
18708 {
18709 return uuid_to_str ();
18710   ;
18711   return 0;
18712 }
18713 _ACEOF
18714 for ac_lib in '' uuid; do
18715   if test -z "$ac_lib"; then
18716     ac_res="none required"
18717   else
18718     ac_res=-l$ac_lib
18719     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18720   fi
18721   rm -f conftest.$ac_objext conftest$ac_exeext
18722 if { (ac_try="$ac_link"
18723 case "(($ac_try" in
18724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725   *) ac_try_echo=$ac_try;;
18726 esac
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728   (eval "$ac_link") 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } &&
18735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18736   { (case "(($ac_try" in
18737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738   *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741   (eval "$ac_try") 2>&5
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); }; } &&
18745          { ac_try='test -s conftest$ac_exeext'
18746   { (case "(($ac_try" in
18747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748   *) ac_try_echo=$ac_try;;
18749 esac
18750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751   (eval "$ac_try") 2>&5
18752   ac_status=$?
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); }; }; then
18755   ac_cv_search_uuid_to_str=$ac_res
18756 else
18757   echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18759
18760
18761 fi
18762
18763 rm -f core conftest.err conftest.$ac_objext \
18764       conftest$ac_exeext
18765   if test "${ac_cv_search_uuid_to_str+set}" = set; then
18766   break
18767 fi
18768 done
18769 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18770   :
18771 else
18772   ac_cv_search_uuid_to_str=no
18773 fi
18774 rm conftest.$ac_ext
18775 LIBS=$ac_func_search_save_LIBS
18776 fi
18777 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18778 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18779 ac_res=$ac_cv_search_uuid_to_str
18780 if test "$ac_res" != no; then
18781   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18782   have_uuid=yes
18783 else
18784   :
18785 fi
18786
18787         LIBS="$save_LIBS"
18788
18789         if test have_uuid = yes ; then
18790
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE_UUID_TO_STR 1
18793 _ACEOF
18794
18795
18796                 test "$ac_cv_search_uuid_to_str" = "none required" || \
18797                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18798         fi
18799 fi
18800
18801 if test $have_uuid = no ; then
18802
18803 for ac_header in uuid/uuid.h
18804 do
18805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18807   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18810   echo $ECHO_N "(cached) $ECHO_C" >&6
18811 fi
18812 ac_res=`eval echo '${'$as_ac_Header'}'`
18813                { echo "$as_me:$LINENO: result: $ac_res" >&5
18814 echo "${ECHO_T}$ac_res" >&6; }
18815 else
18816   # Is the header compilable?
18817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18819 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h.  */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h.  */
18825 $ac_includes_default
18826 #include <$ac_header>
18827 _ACEOF
18828 rm -f conftest.$ac_objext
18829 if { (ac_try="$ac_compile"
18830 case "(($ac_try" in
18831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832   *) ac_try_echo=$ac_try;;
18833 esac
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835   (eval "$ac_compile") 2>conftest.er1
18836   ac_status=$?
18837   grep -v '^ *+' conftest.er1 >conftest.err
18838   rm -f conftest.er1
18839   cat conftest.err >&5
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); } &&
18842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18843   { (case "(($ac_try" in
18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845   *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848   (eval "$ac_try") 2>&5
18849   ac_status=$?
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); }; } &&
18852          { ac_try='test -s conftest.$ac_objext'
18853   { (case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858   (eval "$ac_try") 2>&5
18859   ac_status=$?
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; }; then
18862   ac_header_compiler=yes
18863 else
18864   echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18866
18867         ac_header_compiler=no
18868 fi
18869
18870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18872 echo "${ECHO_T}$ac_header_compiler" >&6; }
18873
18874 # Is the header present?
18875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h.  */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h.  */
18883 #include <$ac_header>
18884 _ACEOF
18885 if { (ac_try="$ac_cpp conftest.$ac_ext"
18886 case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18892   ac_status=$?
18893   grep -v '^ *+' conftest.er1 >conftest.err
18894   rm -f conftest.er1
18895   cat conftest.err >&5
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); } >/dev/null; then
18898   if test -s conftest.err; then
18899     ac_cpp_err=$ac_c_preproc_warn_flag
18900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18901   else
18902     ac_cpp_err=
18903   fi
18904 else
18905   ac_cpp_err=yes
18906 fi
18907 if test -z "$ac_cpp_err"; then
18908   ac_header_preproc=yes
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913   ac_header_preproc=no
18914 fi
18915
18916 rm -f conftest.err conftest.$ac_ext
18917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18918 echo "${ECHO_T}$ac_header_preproc" >&6; }
18919
18920 # So?  What about this header?
18921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18922   yes:no: )
18923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18927     ac_header_preproc=yes
18928     ;;
18929   no:yes:* )
18930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18932     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18933 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18934     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18936     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18937 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18940     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18942     ( cat <<\_ASBOX
18943 ## --------------------------------------------- ##
18944 ## Report this to <http://www.openldap.org/its/> ##
18945 ## --------------------------------------------- ##
18946 _ASBOX
18947      ) | sed "s/^/$as_me: WARNING:     /" >&2
18948     ;;
18949 esac
18950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   eval "$as_ac_Header=\$ac_header_preproc"
18956 fi
18957 ac_res=`eval echo '${'$as_ac_Header'}'`
18958                { echo "$as_me:$LINENO: result: $ac_res" >&5
18959 echo "${ECHO_T}$ac_res" >&6; }
18960
18961 fi
18962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18963   cat >>confdefs.h <<_ACEOF
18964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18965 _ACEOF
18966
18967 fi
18968
18969 done
18970
18971         if test $ac_cv_header_uuid_uuid_h = yes ; then
18972                 save_LIBS="$LIBS"
18973                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18974 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18975 if test "${ac_cv_search_uuid_generate+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   ac_func_search_save_LIBS=$LIBS
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985
18986 /* Override any GCC internal prototype to avoid an error.
18987    Use char because int might match the return type of a GCC
18988    builtin and then its argument prototype would still apply.  */
18989 #ifdef __cplusplus
18990 extern "C"
18991 #endif
18992 char uuid_generate ();
18993 int
18994 main ()
18995 {
18996 return uuid_generate ();
18997   ;
18998   return 0;
18999 }
19000 _ACEOF
19001 for ac_lib in '' uuid; do
19002   if test -z "$ac_lib"; then
19003     ac_res="none required"
19004   else
19005     ac_res=-l$ac_lib
19006     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19007   fi
19008   rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (ac_try="$ac_link"
19010 case "(($ac_try" in
19011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012   *) ac_try_echo=$ac_try;;
19013 esac
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015   (eval "$ac_link") 2>conftest.er1
19016   ac_status=$?
19017   grep -v '^ *+' conftest.er1 >conftest.err
19018   rm -f conftest.er1
19019   cat conftest.err >&5
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } &&
19022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023   { (case "(($ac_try" in
19024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025   *) ac_try_echo=$ac_try;;
19026 esac
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028   (eval "$ac_try") 2>&5
19029   ac_status=$?
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); }; } &&
19032          { ac_try='test -s conftest$ac_exeext'
19033   { (case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_try") 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; }; then
19042   ac_cv_search_uuid_generate=$ac_res
19043 else
19044   echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047
19048 fi
19049
19050 rm -f core conftest.err conftest.$ac_objext \
19051       conftest$ac_exeext
19052   if test "${ac_cv_search_uuid_generate+set}" = set; then
19053   break
19054 fi
19055 done
19056 if test "${ac_cv_search_uuid_generate+set}" = set; then
19057   :
19058 else
19059   ac_cv_search_uuid_generate=no
19060 fi
19061 rm conftest.$ac_ext
19062 LIBS=$ac_func_search_save_LIBS
19063 fi
19064 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
19065 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
19066 ac_res=$ac_cv_search_uuid_generate
19067 if test "$ac_res" != no; then
19068   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19069   have_uuid=yes
19070 else
19071   :
19072 fi
19073
19074                 LIBS="$save_LIBS"
19075
19076                 if test have_uuid = yes ; then
19077
19078 cat >>confdefs.h <<\_ACEOF
19079 #define HAVE_UUID_GENERATE 1
19080 _ACEOF
19081
19082
19083                         test "$ac_cv_search_uuid_generate" = "none required" || \
19084                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
19085                 fi
19086         fi
19087 fi
19088
19089 if test $have_uuid = no ; then
19090         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
19091 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
19092         save_LIBS="$LIBS"
19093         LIBS="$LIBS -lrpcrt4"
19094         cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101                 int __stdcall UuidCreate(void *);
19102                 int __stdcall UuidToStringA(void *,void **);
19103
19104 int
19105 main ()
19106 {
19107
19108                 UuidCreate(0);
19109                 UuidToStringA(0,0);
19110
19111   ;
19112   return 0;
19113 }
19114 _ACEOF
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (ac_try="$ac_link"
19117 case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122   (eval "$ac_link") 2>conftest.er1
19123   ac_status=$?
19124   grep -v '^ *+' conftest.er1 >conftest.err
19125   rm -f conftest.er1
19126   cat conftest.err >&5
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); } &&
19129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19130   { (case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135   (eval "$ac_try") 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; } &&
19139          { ac_try='test -s conftest$ac_exeext'
19140   { (case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145   (eval "$ac_try") 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; }; then
19149   need_rpcrt=yes
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154         need_rpcrt=no
19155 fi
19156
19157 rm -f core conftest.err conftest.$ac_objext \
19158       conftest$ac_exeext conftest.$ac_ext
19159         if test $need_rpcrt = yes; then
19160                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
19161         fi
19162         LIBS="$save_LIBS"
19163         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
19164 echo "${ECHO_T}$need_rpcrt" >&6; }
19165 fi
19166
19167 ol_cv_lib_resolver=no
19168 if test $ol_cv_lib_resolver = no ; then
19169         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
19170 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
19171 if test "${ol_cv_resolver_none+set}" = set; then
19172   echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174
19175         ol_RESOLVER_LIB=
19176         ol_LIBS=$LIBS
19177         LIBS="$ol_RESOLVER_LIB $LIBS"
19178
19179         cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185
19186 #ifdef HAVE_SYS_TYPES_H
19187 #       include <sys/types.h>
19188 #endif
19189 #include <netinet/in.h>
19190 #ifdef HAVE_ARPA_NAMESER_H
19191 #       include <arpa/nameser.h>
19192 #endif
19193 #ifdef HAVE_RESOLV_H
19194 #       include <resolv.h>
19195 #endif
19196
19197 int
19198 main ()
19199 {
19200 {
19201         int len, status;
19202         char *request = NULL;
19203         unsigned char reply[64*1024];
19204         unsigned char host[64*1024];
19205         unsigned char *p;
19206
19207 #ifdef NS_HFIXEDSZ
19208         /* Bind 8/9 interface */
19209         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
19210 #else
19211         /* Bind 4 interface */
19212 # ifndef T_SRV
19213 #  define T_SRV 33
19214 # endif
19215         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
19216 #endif
19217         p = reply;
19218 #ifdef NS_HFIXEDSZ
19219         /* Bind 8/9 interface */
19220         p += NS_HFIXEDSZ;
19221 #elif defined(HFIXEDSZ)
19222         /* Bind 4 interface w/ HFIXEDSZ */
19223         p += HFIXEDSZ;
19224 #else
19225         /* Bind 4 interface w/o HFIXEDSZ */
19226         p += sizeof(HEADER);
19227 #endif
19228         status = dn_expand( reply, reply+len, p, host, sizeof(host));
19229 }
19230   ;
19231   return 0;
19232 }
19233 _ACEOF
19234 rm -f conftest.$ac_objext conftest$ac_exeext
19235 if { (ac_try="$ac_link"
19236 case "(($ac_try" in
19237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238   *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241   (eval "$ac_link") 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } &&
19248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249   { (case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254   (eval "$ac_try") 2>&5
19255   ac_status=$?
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); }; } &&
19258          { ac_try='test -s conftest$ac_exeext'
19259   { (case "(($ac_try" in
19260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261   *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264   (eval "$ac_try") 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; }; then
19268   ol_cv_resolver_none=yes
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273         ol_cv_resolver_none=no
19274 fi
19275
19276 rm -f core conftest.err conftest.$ac_objext \
19277       conftest$ac_exeext conftest.$ac_ext
19278
19279         LIBS="$ol_LIBS"
19280
19281 fi
19282 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
19283 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
19284
19285         if test $ol_cv_resolver_none = yes ; then
19286                 ol_cv_lib_resolver=yes
19287         fi
19288 fi
19289
19290 if test $ol_cv_lib_resolver = no ; then
19291         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
19292 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
19293 if test "${ol_cv_resolver_resolv+set}" = set; then
19294   echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296
19297         ol_RESOLVER_LIB=-lresolv
19298         ol_LIBS=$LIBS
19299         LIBS="$ol_RESOLVER_LIB $LIBS"
19300
19301         cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307
19308 #ifdef HAVE_SYS_TYPES_H
19309 #       include <sys/types.h>
19310 #endif
19311 #include <netinet/in.h>
19312 #ifdef HAVE_ARPA_NAMESER_H
19313 #       include <arpa/nameser.h>
19314 #endif
19315 #ifdef HAVE_RESOLV_H
19316 #       include <resolv.h>
19317 #endif
19318
19319 int
19320 main ()
19321 {
19322 {
19323         int len, status;
19324         char *request = NULL;
19325         unsigned char reply[64*1024];
19326         unsigned char host[64*1024];
19327         unsigned char *p;
19328
19329 #ifdef NS_HFIXEDSZ
19330         /* Bind 8/9 interface */
19331         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
19332 #else
19333         /* Bind 4 interface */
19334 # ifndef T_SRV
19335 #  define T_SRV 33
19336 # endif
19337         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
19338 #endif
19339         p = reply;
19340 #ifdef NS_HFIXEDSZ
19341         /* Bind 8/9 interface */
19342         p += NS_HFIXEDSZ;
19343 #elif defined(HFIXEDSZ)
19344         /* Bind 4 interface w/ HFIXEDSZ */
19345         p += HFIXEDSZ;
19346 #else
19347         /* Bind 4 interface w/o HFIXEDSZ */
19348         p += sizeof(HEADER);
19349 #endif
19350         status = dn_expand( reply, reply+len, p, host, sizeof(host));
19351 }
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363   (eval "$ac_link") 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } &&
19370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19371   { (case "(($ac_try" in
19372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373   *) ac_try_echo=$ac_try;;
19374 esac
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376   (eval "$ac_try") 2>&5
19377   ac_status=$?
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); }; } &&
19380          { ac_try='test -s conftest$ac_exeext'
19381   { (case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386   (eval "$ac_try") 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ol_cv_resolver_resolv=yes
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395         ol_cv_resolver_resolv=no
19396 fi
19397
19398 rm -f core conftest.err conftest.$ac_objext \
19399       conftest$ac_exeext conftest.$ac_ext
19400
19401         LIBS="$ol_LIBS"
19402
19403 fi
19404 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
19405 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
19406
19407         if test $ol_cv_resolver_resolv = yes ; then
19408                 ol_cv_lib_resolver=-lresolv
19409         fi
19410 fi
19411
19412 if test $ol_cv_lib_resolver = no ; then
19413         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
19414 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
19415 if test "${ol_cv_resolver_bind+set}" = set; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418
19419         ol_RESOLVER_LIB=-lbind
19420         ol_LIBS=$LIBS
19421         LIBS="$ol_RESOLVER_LIB $LIBS"
19422
19423         cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429
19430 #ifdef HAVE_SYS_TYPES_H
19431 #       include <sys/types.h>
19432 #endif
19433 #include <netinet/in.h>
19434 #ifdef HAVE_ARPA_NAMESER_H
19435 #       include <arpa/nameser.h>
19436 #endif
19437 #ifdef HAVE_RESOLV_H
19438 #       include <resolv.h>
19439 #endif
19440
19441 int
19442 main ()
19443 {
19444 {
19445         int len, status;
19446         char *request = NULL;
19447         unsigned char reply[64*1024];
19448         unsigned char host[64*1024];
19449         unsigned char *p;
19450
19451 #ifdef NS_HFIXEDSZ
19452         /* Bind 8/9 interface */
19453         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
19454 #else
19455         /* Bind 4 interface */
19456 # ifndef T_SRV
19457 #  define T_SRV 33
19458 # endif
19459         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
19460 #endif
19461         p = reply;
19462 #ifdef NS_HFIXEDSZ
19463         /* Bind 8/9 interface */
19464         p += NS_HFIXEDSZ;
19465 #elif defined(HFIXEDSZ)
19466         /* Bind 4 interface w/ HFIXEDSZ */
19467         p += HFIXEDSZ;
19468 #else
19469         /* Bind 4 interface w/o HFIXEDSZ */
19470         p += sizeof(HEADER);
19471 #endif
19472         status = dn_expand( reply, reply+len, p, host, sizeof(host));
19473 }
19474   ;
19475   return 0;
19476 }
19477 _ACEOF
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482   *) ac_try_echo=$ac_try;;
19483 esac
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485   (eval "$ac_link") 2>conftest.er1
19486   ac_status=$?
19487   grep -v '^ *+' conftest.er1 >conftest.err
19488   rm -f conftest.er1
19489   cat conftest.err >&5
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); } &&
19492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19493   { (case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_try") 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; } &&
19502          { ac_try='test -s conftest$ac_exeext'
19503   { (case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_try") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; }; then
19512   ol_cv_resolver_bind=yes
19513 else
19514   echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517         ol_cv_resolver_bind=no
19518 fi
19519
19520 rm -f core conftest.err conftest.$ac_objext \
19521       conftest$ac_exeext conftest.$ac_ext
19522
19523         LIBS="$ol_LIBS"
19524
19525 fi
19526 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
19527 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
19528
19529         if test $ol_cv_resolver_bind = yes ; then
19530                 ol_cv_lib_resolver=-lbind
19531         fi
19532 fi
19533
19534
19535
19536 ol_link_dnssrv=no
19537 if test "$ol_cv_lib_resolver" != no ; then
19538
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_RES_QUERY 1
19541 _ACEOF
19542
19543
19544         if test "$ol_enable_dnssrv" != no ; then
19545                 ol_link_dnssrv=yes
19546         fi
19547
19548         if test "$ol_cv_lib_resolver" != yes ; then
19549                 LIBS="$ol_cv_lib_resolver $LIBS"
19550         fi
19551 fi
19552
19553 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
19554         if test "$ol_link_dnssrv" = no ; then
19555                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
19556 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
19557    { (exit 1); exit 1; }; }
19558         fi
19559 else
19560         ol_enable_dnssrv=no
19561 fi
19562
19563
19564 for ac_func in hstrerror
19565 do
19566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19570   echo $ECHO_N "(cached) $ECHO_C" >&6
19571 else
19572   cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19580 #define $ac_func innocuous_$ac_func
19581
19582 /* System header to define __stub macros and hopefully few prototypes,
19583     which can conflict with char $ac_func (); below.
19584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19585     <limits.h> exists even on freestanding compilers.  */
19586
19587 #ifdef __STDC__
19588 # include <limits.h>
19589 #else
19590 # include <assert.h>
19591 #endif
19592
19593 #undef $ac_func
19594
19595 /* Override any GCC internal prototype to avoid an error.
19596    Use char because int might match the return type of a GCC
19597    builtin and then its argument prototype would still apply.  */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 char $ac_func ();
19602 /* The GNU C library defines this for functions which it implements
19603     to always fail with ENOSYS.  Some functions are actually named
19604     something starting with __ and the normal name is an alias.  */
19605 #if defined __stub_$ac_func || defined __stub___$ac_func
19606 choke me
19607 #endif
19608
19609 int
19610 main ()
19611 {
19612 return $ac_func ();
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621   *) ac_try_echo=$ac_try;;
19622 esac
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624   (eval "$ac_link") 2>conftest.er1
19625   ac_status=$?
19626   grep -v '^ *+' conftest.er1 >conftest.err
19627   rm -f conftest.er1
19628   cat conftest.err >&5
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); } &&
19631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19632   { (case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_try") 2>&5
19638   ac_status=$?
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); }; } &&
19641          { ac_try='test -s conftest$ac_exeext'
19642   { (case "(($ac_try" in
19643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644   *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647   (eval "$ac_try") 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   eval "$as_ac_var=yes"
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656         eval "$as_ac_var=no"
19657 fi
19658
19659 rm -f core conftest.err conftest.$ac_objext \
19660       conftest$ac_exeext conftest.$ac_ext
19661 fi
19662 ac_res=`eval echo '${'$as_ac_var'}'`
19663                { echo "$as_me:$LINENO: result: $ac_res" >&5
19664 echo "${ECHO_T}$ac_res" >&6; }
19665 if test `eval echo '${'$as_ac_var'}'` = yes; then
19666   cat >>confdefs.h <<_ACEOF
19667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19668 _ACEOF
19669
19670 fi
19671 done
19672
19673
19674
19675
19676
19677
19678 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
19679 do
19680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19694 #define $ac_func innocuous_$ac_func
19695
19696 /* System header to define __stub macros and hopefully few prototypes,
19697     which can conflict with char $ac_func (); below.
19698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699     <limits.h> exists even on freestanding compilers.  */
19700
19701 #ifdef __STDC__
19702 # include <limits.h>
19703 #else
19704 # include <assert.h>
19705 #endif
19706
19707 #undef $ac_func
19708
19709 /* Override any GCC internal prototype to avoid an error.
19710    Use char because int might match the return type of a GCC
19711    builtin and then its argument prototype would still apply.  */
19712 #ifdef __cplusplus
19713 extern "C"
19714 #endif
19715 char $ac_func ();
19716 /* The GNU C library defines this for functions which it implements
19717     to always fail with ENOSYS.  Some functions are actually named
19718     something starting with __ and the normal name is an alias.  */
19719 #if defined __stub_$ac_func || defined __stub___$ac_func
19720 choke me
19721 #endif
19722
19723 int
19724 main ()
19725 {
19726 return $ac_func ();
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_link") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } &&
19745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19746   { (case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_try") 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; } &&
19755          { ac_try='test -s conftest$ac_exeext'
19756   { (case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_try") 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; }; then
19765   eval "$as_ac_var=yes"
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770         eval "$as_ac_var=no"
19771 fi
19772
19773 rm -f core conftest.err conftest.$ac_objext \
19774       conftest$ac_exeext conftest.$ac_ext
19775 fi
19776 ac_res=`eval echo '${'$as_ac_var'}'`
19777                { echo "$as_me:$LINENO: result: $ac_res" >&5
19778 echo "${ECHO_T}$ac_res" >&6; }
19779 if test `eval echo '${'$as_ac_var'}'` = yes; then
19780   cat >>confdefs.h <<_ACEOF
19781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19782 _ACEOF
19783
19784 fi
19785 done
19786
19787
19788 ol_link_ipv6=no
19789 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19790         if test $ol_enable_ipv6 = yes ; then
19791                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19792 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19793    { (exit 1); exit 1; }; }
19794         fi
19795 elif test $ol_enable_ipv6 != no ; then
19796         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19797 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19798 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801
19802                 cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h.  */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h.  */
19808
19809 #                       include <netinet/in.h>
19810 #                       ifdef INET6_ADDRSTRLEN
19811                                 __has_inet6_addrstrlen__;
19812 #                       endif
19813
19814 _ACEOF
19815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19816   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19817   ol_cv_inet6_addrstrlen=yes
19818 else
19819   ol_cv_inet6_addrstrlen=no
19820 fi
19821 rm -f conftest*
19822
19823 fi
19824 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19825 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19826
19827
19828         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19829 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19830 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833
19834                 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840
19841 #include <sys/types.h>
19842 #include <sys/socket.h>
19843
19844 int
19845 main ()
19846 {
19847
19848                         struct sockaddr_storage ss;
19849
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_compile") 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } &&
19868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19869   { (case "(($ac_try" in
19870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871   *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874   (eval "$ac_try") 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_try") 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ol_cv_struct_sockaddr_storage=yes
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893         ol_cv_struct_sockaddr_storage=no
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 fi
19898 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19899 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19900
19901         if test $ol_cv_inet6_addrstrlen = yes &&
19902            test $ol_cv_struct_sockaddr_storage = yes ; then
19903                 ol_link_ipv6=yes
19904         elif test $ol_enable_ipv6 = yes &&
19905              test $ol_cv_inet6_addrstrlen = no ; then
19906                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19907 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19908    { (exit 1); exit 1; }; }
19909         elif test $ol_enable_ipv6 = yes &&
19910              test $ol_cv_struct_sockaddr_storage = no ; then
19911                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19912 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19913    { (exit 1); exit 1; }; }
19914         fi
19915 fi
19916
19917 if test $ol_enable_local != no ; then
19918
19919 for ac_header in sys/un.h
19920 do
19921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19926   echo $ECHO_N "(cached) $ECHO_C" >&6
19927 fi
19928 ac_res=`eval echo '${'$as_ac_Header'}'`
19929                { echo "$as_me:$LINENO: result: $ac_res" >&5
19930 echo "${ECHO_T}$ac_res" >&6; }
19931 else
19932   # Is the header compilable?
19933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941 $ac_includes_default
19942 #include <$ac_header>
19943 _ACEOF
19944 rm -f conftest.$ac_objext
19945 if { (ac_try="$ac_compile"
19946 case "(($ac_try" in
19947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948   *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951   (eval "$ac_compile") 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } &&
19958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19959   { (case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_try") 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; } &&
19968          { ac_try='test -s conftest.$ac_objext'
19969   { (case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_try") 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; }; then
19978   ac_header_compiler=yes
19979 else
19980   echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983         ac_header_compiler=no
19984 fi
19985
19986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19988 echo "${ECHO_T}$ac_header_compiler" >&6; }
19989
19990 # Is the header present?
19991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 #include <$ac_header>
20000 _ACEOF
20001 if { (ac_try="$ac_cpp conftest.$ac_ext"
20002 case "(($ac_try" in
20003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004   *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } >/dev/null; then
20014   if test -s conftest.err; then
20015     ac_cpp_err=$ac_c_preproc_warn_flag
20016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20017   else
20018     ac_cpp_err=
20019   fi
20020 else
20021   ac_cpp_err=yes
20022 fi
20023 if test -z "$ac_cpp_err"; then
20024   ac_header_preproc=yes
20025 else
20026   echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20028
20029   ac_header_preproc=no
20030 fi
20031
20032 rm -f conftest.err conftest.$ac_ext
20033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20034 echo "${ECHO_T}$ac_header_preproc" >&6; }
20035
20036 # So?  What about this header?
20037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20038   yes:no: )
20039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20043     ac_header_preproc=yes
20044     ;;
20045   no:yes:* )
20046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20058     ( cat <<\_ASBOX
20059 ## --------------------------------------------- ##
20060 ## Report this to <http://www.openldap.org/its/> ##
20061 ## --------------------------------------------- ##
20062 _ASBOX
20063      ) | sed "s/^/$as_me: WARNING:     /" >&2
20064     ;;
20065 esac
20066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20069   echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071   eval "$as_ac_Header=\$ac_header_preproc"
20072 fi
20073 ac_res=`eval echo '${'$as_ac_Header'}'`
20074                { echo "$as_me:$LINENO: result: $ac_res" >&5
20075 echo "${ECHO_T}$ac_res" >&6; }
20076
20077 fi
20078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20079   cat >>confdefs.h <<_ACEOF
20080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20081 _ACEOF
20082
20083 fi
20084
20085 done
20086
20087
20088         if test $ol_enable_local = auto ; then
20089                 ol_enable_local=$ac_cv_header_sys_un_h
20090         elif test $ac_cv_header_sys_un_h = no ; then
20091                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
20092 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
20093    { (exit 1); exit 1; }; }
20094         fi
20095 fi
20096
20097
20098 if test $ol_with_tls = yes ; then
20099         ol_with_tls=auto
20100 fi
20101
20102 ol_link_tls=no
20103 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
20104
20105 for ac_header in openssl/ssl.h
20106 do
20107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20112   echo $ECHO_N "(cached) $ECHO_C" >&6
20113 fi
20114 ac_res=`eval echo '${'$as_ac_Header'}'`
20115                { echo "$as_me:$LINENO: result: $ac_res" >&5
20116 echo "${ECHO_T}$ac_res" >&6; }
20117 else
20118   # Is the header compilable?
20119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20121 cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h.  */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h.  */
20127 $ac_includes_default
20128 #include <$ac_header>
20129 _ACEOF
20130 rm -f conftest.$ac_objext
20131 if { (ac_try="$ac_compile"
20132 case "(($ac_try" in
20133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134   *) ac_try_echo=$ac_try;;
20135 esac
20136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137   (eval "$ac_compile") 2>conftest.er1
20138   ac_status=$?
20139   grep -v '^ *+' conftest.er1 >conftest.err
20140   rm -f conftest.er1
20141   cat conftest.err >&5
20142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); } &&
20144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20145   { (case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_try") 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; } &&
20154          { ac_try='test -s conftest.$ac_objext'
20155   { (case "(($ac_try" in
20156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157   *) ac_try_echo=$ac_try;;
20158 esac
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160   (eval "$ac_try") 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; }; then
20164   ac_header_compiler=yes
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169         ac_header_compiler=no
20170 fi
20171
20172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20174 echo "${ECHO_T}$ac_header_compiler" >&6; }
20175
20176 # Is the header present?
20177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185 #include <$ac_header>
20186 _ACEOF
20187 if { (ac_try="$ac_cpp conftest.$ac_ext"
20188 case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20194   ac_status=$?
20195   grep -v '^ *+' conftest.er1 >conftest.err
20196   rm -f conftest.er1
20197   cat conftest.err >&5
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); } >/dev/null; then
20200   if test -s conftest.err; then
20201     ac_cpp_err=$ac_c_preproc_warn_flag
20202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20203   else
20204     ac_cpp_err=
20205   fi
20206 else
20207   ac_cpp_err=yes
20208 fi
20209 if test -z "$ac_cpp_err"; then
20210   ac_header_preproc=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215   ac_header_preproc=no
20216 fi
20217
20218 rm -f conftest.err conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6; }
20221
20222 # So?  What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20224   yes:no: )
20225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20229     ac_header_preproc=yes
20230     ;;
20231   no:yes:* )
20232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20244     ( cat <<\_ASBOX
20245 ## --------------------------------------------- ##
20246 ## Report this to <http://www.openldap.org/its/> ##
20247 ## --------------------------------------------- ##
20248 _ASBOX
20249      ) | sed "s/^/$as_me: WARNING:     /" >&2
20250     ;;
20251 esac
20252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20255   echo $ECHO_N "(cached) $ECHO_C" >&6
20256 else
20257   eval "$as_ac_Header=\$ac_header_preproc"
20258 fi
20259 ac_res=`eval echo '${'$as_ac_Header'}'`
20260                { echo "$as_me:$LINENO: result: $ac_res" >&5
20261 echo "${ECHO_T}$ac_res" >&6; }
20262
20263 fi
20264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20265   cat >>confdefs.h <<_ACEOF
20266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20267 _ACEOF
20268
20269 fi
20270
20271 done
20272
20273
20274         if test $ac_cv_header_openssl_ssl_h = yes ; then
20275                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
20276 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
20277 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
20278   echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280   ac_check_lib_save_LIBS=$LIBS
20281 LIBS="-lssl -lcrypto $LIBS"
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288
20289 /* Override any GCC internal prototype to avoid an error.
20290    Use char because int might match the return type of a GCC
20291    builtin and then its argument prototype would still apply.  */
20292 #ifdef __cplusplus
20293 extern "C"
20294 #endif
20295 char SSL_library_init ();
20296 int
20297 main ()
20298 {
20299 return SSL_library_init ();
20300   ;
20301   return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest.$ac_objext conftest$ac_exeext
20305 if { (ac_try="$ac_link"
20306 case "(($ac_try" in
20307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308   *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311   (eval "$ac_link") 2>conftest.er1
20312   ac_status=$?
20313   grep -v '^ *+' conftest.er1 >conftest.err
20314   rm -f conftest.er1
20315   cat conftest.err >&5
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); } &&
20318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20319   { (case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_try") 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; } &&
20328          { ac_try='test -s conftest$ac_exeext'
20329   { (case "(($ac_try" in
20330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331   *) ac_try_echo=$ac_try;;
20332 esac
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334   (eval "$ac_try") 2>&5
20335   ac_status=$?
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); }; }; then
20338   ac_cv_lib_ssl_SSL_library_init=yes
20339 else
20340   echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343         ac_cv_lib_ssl_SSL_library_init=no
20344 fi
20345
20346 rm -f core conftest.err conftest.$ac_objext \
20347       conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20349 fi
20350 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
20351 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
20352 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
20353   have_openssl=yes
20354                         need_rsaref=no
20355 else
20356   have_openssl=no
20357 fi
20358
20359
20360                 if test $have_openssl = no ; then
20361                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
20362 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
20363 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   ac_check_lib_save_LIBS=$LIBS
20367 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374
20375 /* Override any GCC internal prototype to avoid an error.
20376    Use char because int might match the return type of a GCC
20377    builtin and then its argument prototype would still apply.  */
20378 #ifdef __cplusplus
20379 extern "C"
20380 #endif
20381 char ssl3_accept ();
20382 int
20383 main ()
20384 {
20385 return ssl3_accept ();
20386   ;
20387   return 0;
20388 }
20389 _ACEOF
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (ac_try="$ac_link"
20392 case "(($ac_try" in
20393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394   *) ac_try_echo=$ac_try;;
20395 esac
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397   (eval "$ac_link") 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20405   { (case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_try") 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; } &&
20414          { ac_try='test -s conftest$ac_exeext'
20415   { (case "(($ac_try" in
20416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417   *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420   (eval "$ac_try") 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_cv_lib_ssl_ssl3_accept=yes
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429         ac_cv_lib_ssl_ssl3_accept=no
20430 fi
20431
20432 rm -f core conftest.err conftest.$ac_objext \
20433       conftest$ac_exeext conftest.$ac_ext
20434 LIBS=$ac_check_lib_save_LIBS
20435 fi
20436 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
20437 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
20438 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
20439   have_openssl=yes
20440                                 need_rsaref=yes
20441 else
20442   have_openssl=no
20443 fi
20444
20445                 fi
20446
20447                 if test $have_openssl = yes ; then
20448                         ol_with_tls=openssl
20449                         ol_link_tls=yes
20450
20451
20452 cat >>confdefs.h <<\_ACEOF
20453 #define HAVE_OPENSSL 1
20454 _ACEOF
20455
20456
20457                         if test $need_rsaref = yes; then
20458
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_RSAREF 1
20461 _ACEOF
20462
20463
20464                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
20465                         else
20466                                 TLS_LIBS="-lssl -lcrypto"
20467                         fi
20468
20469                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
20470 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
20471 if test "${ol_cv_ssl_crl_compat+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474
20475                 cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481
20482 #ifdef HAVE_OPENSSL_SSL_H
20483 #include <openssl/ssl.h>
20484 #endif
20485
20486 /* Require 0.9.7d+ */
20487 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
20488         char *__ssl_compat = "0.9.7d";
20489 #endif
20490
20491 _ACEOF
20492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20493   $EGREP "__ssl_compat" >/dev/null 2>&1; then
20494   ol_cv_ssl_crl_compat=yes
20495 else
20496   ol_cv_ssl_crl_compat=no
20497 fi
20498 rm -f conftest*
20499
20500 fi
20501 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
20502 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
20503
20504                         if test $ol_cv_ssl_crl_compat = yes ; then
20505
20506 cat >>confdefs.h <<\_ACEOF
20507 #define HAVE_OPENSSL_CRL 1
20508 _ACEOF
20509
20510                         fi
20511                 fi
20512         fi
20513 fi
20514
20515 if test $ol_link_tls = no ; then
20516         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
20517
20518 for ac_header in gnutls/gnutls.h
20519 do
20520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 fi
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528                { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20530 else
20531   # Is the header compilable?
20532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20534 cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 $ac_includes_default
20541 #include <$ac_header>
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_compile") 2>conftest.er1
20551   ac_status=$?
20552   grep -v '^ *+' conftest.er1 >conftest.err
20553   rm -f conftest.er1
20554   cat conftest.err >&5
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); } &&
20557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20558   { (case "(($ac_try" in
20559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560   *) ac_try_echo=$ac_try;;
20561 esac
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563   (eval "$ac_try") 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; } &&
20567          { ac_try='test -s conftest.$ac_objext'
20568   { (case "(($ac_try" in
20569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570   *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573   (eval "$ac_try") 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; }; then
20577   ac_header_compiler=yes
20578 else
20579   echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582         ac_header_compiler=no
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20587 echo "${ECHO_T}$ac_header_compiler" >&6; }
20588
20589 # Is the header present?
20590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 #include <$ac_header>
20599 _ACEOF
20600 if { (ac_try="$ac_cpp conftest.$ac_ext"
20601 case "(($ac_try" in
20602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603   *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20607   ac_status=$?
20608   grep -v '^ *+' conftest.er1 >conftest.err
20609   rm -f conftest.er1
20610   cat conftest.err >&5
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } >/dev/null; then
20613   if test -s conftest.err; then
20614     ac_cpp_err=$ac_c_preproc_warn_flag
20615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20616   else
20617     ac_cpp_err=
20618   fi
20619 else
20620   ac_cpp_err=yes
20621 fi
20622 if test -z "$ac_cpp_err"; then
20623   ac_header_preproc=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628   ac_header_preproc=no
20629 fi
20630
20631 rm -f conftest.err conftest.$ac_ext
20632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20633 echo "${ECHO_T}$ac_header_preproc" >&6; }
20634
20635 # So?  What about this header?
20636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20637   yes:no: )
20638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20642     ac_header_preproc=yes
20643     ;;
20644   no:yes:* )
20645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20657     ( cat <<\_ASBOX
20658 ## --------------------------------------------- ##
20659 ## Report this to <http://www.openldap.org/its/> ##
20660 ## --------------------------------------------- ##
20661 _ASBOX
20662      ) | sed "s/^/$as_me: WARNING:     /" >&2
20663     ;;
20664 esac
20665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20668   echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670   eval "$as_ac_Header=\$ac_header_preproc"
20671 fi
20672 ac_res=`eval echo '${'$as_ac_Header'}'`
20673                { echo "$as_me:$LINENO: result: $ac_res" >&5
20674 echo "${ECHO_T}$ac_res" >&6; }
20675
20676 fi
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678   cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20680 _ACEOF
20681
20682 fi
20683
20684 done
20685
20686
20687                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20688                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20689 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
20690 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20691   echo $ECHO_N "(cached) $ECHO_C" >&6
20692 else
20693   ac_check_lib_save_LIBS=$LIBS
20694 LIBS="-lgnutls  $LIBS"
20695 cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701
20702 /* Override any GCC internal prototype to avoid an error.
20703    Use char because int might match the return type of a GCC
20704    builtin and then its argument prototype would still apply.  */
20705 #ifdef __cplusplus
20706 extern "C"
20707 #endif
20708 char gnutls_init ();
20709 int
20710 main ()
20711 {
20712 return gnutls_init ();
20713   ;
20714   return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest.$ac_objext conftest$ac_exeext
20718 if { (ac_try="$ac_link"
20719 case "(($ac_try" in
20720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721   *) ac_try_echo=$ac_try;;
20722 esac
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724   (eval "$ac_link") 2>conftest.er1
20725   ac_status=$?
20726   grep -v '^ *+' conftest.er1 >conftest.err
20727   rm -f conftest.er1
20728   cat conftest.err >&5
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); } &&
20731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732   { (case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_try") 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; } &&
20741          { ac_try='test -s conftest$ac_exeext'
20742   { (case "(($ac_try" in
20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744   *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747   (eval "$ac_try") 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; }; then
20751   ac_cv_lib_gnutls_gnutls_init=yes
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756         ac_cv_lib_gnutls_gnutls_init=no
20757 fi
20758
20759 rm -f core conftest.err conftest.$ac_objext \
20760       conftest$ac_exeext conftest.$ac_ext
20761 LIBS=$ac_check_lib_save_LIBS
20762 fi
20763 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20764 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
20765 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20766   have_gnutls=yes
20767 else
20768   have_gnutls=no
20769 fi
20770
20771
20772                         if test $have_gnutls = yes ; then
20773                                 ol_with_tls=gnutls
20774                                 ol_link_tls=yes
20775
20776
20777 cat >>confdefs.h <<\_ACEOF
20778 #define HAVE_GNUTLS 1
20779 _ACEOF
20780
20781                         fi
20782                 fi
20783         fi
20784 fi
20785
20786 WITH_TLS=no
20787 if test $ol_link_tls = yes ; then
20788
20789 cat >>confdefs.h <<\_ACEOF
20790 #define HAVE_TLS 1
20791 _ACEOF
20792
20793         WITH_TLS=yes
20794 elif test $ol_with_tls = auto ; then
20795         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20796 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20797         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20798 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20799 elif test $ol_with_tls != no ; then
20800         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20801 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20802    { (exit 1); exit 1; }; }
20803 else
20804         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20805 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20806 fi
20807
20808 if test $ol_enable_lmpasswd != no; then
20809         if test $ol_link_tls != yes ; then
20810                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20811 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20812    { (exit 1); exit 1; }; }
20813         fi
20814
20815
20816 cat >>confdefs.h <<\_ACEOF
20817 #define SLAPD_LMHASH 1
20818 _ACEOF
20819
20820 fi
20821
20822 ol_link_threads=no
20823
20824 case $ol_with_threads in auto | yes | nt)
20825
20826
20827         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20828 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20829 if test "${ac_cv_func__beginthread+set}" = set; then
20830   echo $ECHO_N "(cached) $ECHO_C" >&6
20831 else
20832   cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20840 #define _beginthread innocuous__beginthread
20841
20842 /* System header to define __stub macros and hopefully few prototypes,
20843     which can conflict with char _beginthread (); below.
20844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20845     <limits.h> exists even on freestanding compilers.  */
20846
20847 #ifdef __STDC__
20848 # include <limits.h>
20849 #else
20850 # include <assert.h>
20851 #endif
20852
20853 #undef _beginthread
20854
20855 /* Override any GCC internal prototype to avoid an error.
20856    Use char because int might match the return type of a GCC
20857    builtin and then its argument prototype would still apply.  */
20858 #ifdef __cplusplus
20859 extern "C"
20860 #endif
20861 char _beginthread ();
20862 /* The GNU C library defines this for functions which it implements
20863     to always fail with ENOSYS.  Some functions are actually named
20864     something starting with __ and the normal name is an alias.  */
20865 #if defined __stub__beginthread || defined __stub____beginthread
20866 choke me
20867 #endif
20868
20869 int
20870 main ()
20871 {
20872 return _beginthread ();
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (ac_try="$ac_link"
20879 case "(($ac_try" in
20880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881   *) ac_try_echo=$ac_try;;
20882 esac
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884   (eval "$ac_link") 2>conftest.er1
20885   ac_status=$?
20886   grep -v '^ *+' conftest.er1 >conftest.err
20887   rm -f conftest.er1
20888   cat conftest.err >&5
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); } &&
20891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20892   { (case "(($ac_try" in
20893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894   *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897   (eval "$ac_try") 2>&5
20898   ac_status=$?
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); }; } &&
20901          { ac_try='test -s conftest$ac_exeext'
20902   { (case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_try") 2>&5
20908   ac_status=$?
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); }; }; then
20911   ac_cv_func__beginthread=yes
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916         ac_cv_func__beginthread=no
20917 fi
20918
20919 rm -f core conftest.err conftest.$ac_objext \
20920       conftest$ac_exeext conftest.$ac_ext
20921 fi
20922 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20923 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20924
20925
20926         if test $ac_cv_func__beginthread = yes ; then
20927
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_NT_THREADS 1
20930 _ACEOF
20931
20932                 ol_cv_nt_threads=yes
20933         fi
20934
20935
20936         if test "$ol_cv_nt_threads" = yes ; then
20937                 ol_link_threads=nt
20938                 ol_with_threads=found
20939                 ol_with_yielding_select=yes
20940
20941
20942 cat >>confdefs.h <<\_ACEOF
20943 #define HAVE_NT_SERVICE_MANAGER 1
20944 _ACEOF
20945
20946
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_NT_EVENT_LOG 1
20949 _ACEOF
20950
20951         fi
20952
20953         if test $ol_with_threads = nt ; then
20954                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20955 echo "$as_me: error: could not locate NT Threads" >&2;}
20956    { (exit 1); exit 1; }; }
20957         fi
20958         ;;
20959 esac
20960
20961 case $ol_with_threads in auto | yes | posix)
20962
20963
20964 for ac_header in pthread.h
20965 do
20966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20968   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20971   echo $ECHO_N "(cached) $ECHO_C" >&6
20972 fi
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974                { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20976 else
20977   # Is the header compilable?
20978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20980 cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986 $ac_includes_default
20987 #include <$ac_header>
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_compile") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } &&
21003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21004   { (case "(($ac_try" in
21005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006   *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009   (eval "$ac_try") 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); }; } &&
21013          { ac_try='test -s conftest.$ac_objext'
21014   { (case "(($ac_try" in
21015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016   *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019   (eval "$ac_try") 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; }; then
21023   ac_header_compiler=yes
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028         ac_header_compiler=no
21029 fi
21030
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21033 echo "${ECHO_T}$ac_header_compiler" >&6; }
21034
21035 # Is the header present?
21036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h.  */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h.  */
21044 #include <$ac_header>
21045 _ACEOF
21046 if { (ac_try="$ac_cpp conftest.$ac_ext"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } >/dev/null; then
21059   if test -s conftest.err; then
21060     ac_cpp_err=$ac_c_preproc_warn_flag
21061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21062   else
21063     ac_cpp_err=
21064   fi
21065 else
21066   ac_cpp_err=yes
21067 fi
21068 if test -z "$ac_cpp_err"; then
21069   ac_header_preproc=yes
21070 else
21071   echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074   ac_header_preproc=no
21075 fi
21076
21077 rm -f conftest.err conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21079 echo "${ECHO_T}$ac_header_preproc" >&6; }
21080
21081 # So?  What about this header?
21082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21083   yes:no: )
21084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21088     ac_header_preproc=yes
21089     ;;
21090   no:yes:* )
21091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21103     ( cat <<\_ASBOX
21104 ## --------------------------------------------- ##
21105 ## Report this to <http://www.openldap.org/its/> ##
21106 ## --------------------------------------------- ##
21107 _ASBOX
21108      ) | sed "s/^/$as_me: WARNING:     /" >&2
21109     ;;
21110 esac
21111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21114   echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21116   eval "$as_ac_Header=\$ac_header_preproc"
21117 fi
21118 ac_res=`eval echo '${'$as_ac_Header'}'`
21119                { echo "$as_me:$LINENO: result: $ac_res" >&5
21120 echo "${ECHO_T}$ac_res" >&6; }
21121
21122 fi
21123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21124   cat >>confdefs.h <<_ACEOF
21125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21126 _ACEOF
21127
21128 fi
21129
21130 done
21131
21132
21133         if test $ac_cv_header_pthread_h = yes ; then
21134                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
21135 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
21136 if test "${ol_cv_pthread_version+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139
21140         cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146
21147 #               include <pthread.h>
21148
21149 int
21150 main ()
21151 {
21152
21153                 int i = PTHREAD_CREATE_JOINABLE;
21154
21155   ;
21156   return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163   *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166   (eval "$ac_compile") 2>conftest.er1
21167   ac_status=$?
21168   grep -v '^ *+' conftest.er1 >conftest.err
21169   rm -f conftest.er1
21170   cat conftest.err >&5
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } &&
21173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21174   { (case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179   (eval "$ac_try") 2>&5
21180   ac_status=$?
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); }; } &&
21183          { ac_try='test -s conftest.$ac_objext'
21184   { (case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_try") 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; }; then
21193
21194         cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200 #include <pthread.h>
21201
21202 _ACEOF
21203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21204   $EGREP "pthread_detach" >/dev/null 2>&1; then
21205   ol_cv_pthread_version=10
21206 else
21207   ol_cv_pthread_version=8
21208 fi
21209 rm -f conftest*
21210
21211 else
21212   echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215
21216         cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h.  */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h.  */
21222
21223 #               include <pthread.h>
21224 #               ifdef PTHREAD_CREATE_UNDETACHED
21225                 draft7
21226 #               endif
21227
21228 _ACEOF
21229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21230   $EGREP "draft7" >/dev/null 2>&1; then
21231   ol_cv_pthread_version=7
21232 else
21233
21234         cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <pthread.h>
21241
21242 _ACEOF
21243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21244   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
21245   ol_cv_pthread_version=6
21246 else
21247
21248         cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254
21255 #               include <pthread.h>
21256 #ifdef          PTHREAD_MUTEX_INITIALIZER
21257                 draft5
21258 #endif
21259
21260 _ACEOF
21261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21262   $EGREP "draft5" >/dev/null 2>&1; then
21263   ol_cv_pthread_version=5
21264 else
21265   ol_cv_pthread_version=4
21266 fi
21267 rm -f conftest*
21268
21269 fi
21270 rm -f conftest*
21271
21272 fi
21273 rm -f conftest*
21274
21275 fi
21276
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278
21279 fi
21280 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
21281 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
21282
21283
21284                 if test $ol_cv_pthread_version != 0 ; then
21285
21286 cat >>confdefs.h <<_ACEOF
21287 #define HAVE_PTHREADS $ol_cv_pthread_version
21288 _ACEOF
21289
21290                 else
21291                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
21292 echo "$as_me: error: unknown pthread version" >&2;}
21293    { (exit 1); exit 1; }; }
21294                 fi
21295
21296                 # consider threads found
21297                 ol_with_threads=found
21298
21299
21300         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
21301 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
21302 if test "${ol_cv_header_linux_threads+set}" = set; then
21303   echo $ECHO_N "(cached) $ECHO_C" >&6
21304 else
21305   cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311 #include <pthread.h>
21312 _ACEOF
21313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21314   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
21315   ol_cv_header_linux_threads=yes
21316 else
21317   ol_cv_header_linux_threads=no
21318 fi
21319 rm -f conftest*
21320
21321
21322 fi
21323 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
21324 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
21325         if test $ol_cv_header_linux_threads = yes; then
21326
21327 cat >>confdefs.h <<\_ACEOF
21328 #define HAVE_LINUX_THREADS 1
21329 _ACEOF
21330
21331         fi
21332
21333
21334         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
21335 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
21336 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
21337   echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339   cat >conftest.$ac_ext <<_ACEOF
21340 /* confdefs.h.  */
21341 _ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h.  */
21345 #include <pthread.h>
21346 #ifdef _POSIX_THREAD_IS_GNU_PTH
21347         __gnu_pth__;
21348 #endif
21349
21350 _ACEOF
21351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21352   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
21353   ol_cv_header_gnu_pth_pthread_h=yes
21354 else
21355   ol_cv_header_gnu_pth_pthread_h=no
21356 fi
21357 rm -f conftest*
21358
21359
21360 fi
21361 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
21362 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
21363
21364
21365                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
21366
21367 for ac_header in sched.h
21368 do
21369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21371   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21374   echo $ECHO_N "(cached) $ECHO_C" >&6
21375 fi
21376 ac_res=`eval echo '${'$as_ac_Header'}'`
21377                { echo "$as_me:$LINENO: result: $ac_res" >&5
21378 echo "${ECHO_T}$ac_res" >&6; }
21379 else
21380   # Is the header compilable?
21381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21383 cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389 $ac_includes_default
21390 #include <$ac_header>
21391 _ACEOF
21392 rm -f conftest.$ac_objext
21393 if { (ac_try="$ac_compile"
21394 case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_compile") 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } &&
21406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21407   { (case "(($ac_try" in
21408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409   *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412   (eval "$ac_try") 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; } &&
21416          { ac_try='test -s conftest.$ac_objext'
21417   { (case "(($ac_try" in
21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419   *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422   (eval "$ac_try") 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; }; then
21426   ac_header_compiler=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         ac_header_compiler=no
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436 echo "${ECHO_T}$ac_header_compiler" >&6; }
21437
21438 # Is the header present?
21439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 #include <$ac_header>
21448 _ACEOF
21449 if { (ac_try="$ac_cpp conftest.$ac_ext"
21450 case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } >/dev/null; then
21462   if test -s conftest.err; then
21463     ac_cpp_err=$ac_c_preproc_warn_flag
21464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21465   else
21466     ac_cpp_err=
21467   fi
21468 else
21469   ac_cpp_err=yes
21470 fi
21471 if test -z "$ac_cpp_err"; then
21472   ac_header_preproc=yes
21473 else
21474   echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477   ac_header_preproc=no
21478 fi
21479
21480 rm -f conftest.err conftest.$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21482 echo "${ECHO_T}$ac_header_preproc" >&6; }
21483
21484 # So?  What about this header?
21485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21486   yes:no: )
21487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21491     ac_header_preproc=yes
21492     ;;
21493   no:yes:* )
21494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21506     ( cat <<\_ASBOX
21507 ## --------------------------------------------- ##
21508 ## Report this to <http://www.openldap.org/its/> ##
21509 ## --------------------------------------------- ##
21510 _ASBOX
21511      ) | sed "s/^/$as_me: WARNING:     /" >&2
21512     ;;
21513 esac
21514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21517   echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519   eval "$as_ac_Header=\$ac_header_preproc"
21520 fi
21521 ac_res=`eval echo '${'$as_ac_Header'}'`
21522                { echo "$as_me:$LINENO: result: $ac_res" >&5
21523 echo "${ECHO_T}$ac_res" >&6; }
21524
21525 fi
21526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21527   cat >>confdefs.h <<_ACEOF
21528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21529 _ACEOF
21530
21531 fi
21532
21533 done
21534
21535                 fi
21536
21537
21538                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
21539 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
21540 if test "${ol_cv_pthread_create+set}" = set; then
21541   echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543
21544                         if test "$cross_compiling" = yes; then
21545   cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551
21552 /* pthread test headers */
21553 #include <pthread.h>
21554 #if HAVE_PTHREADS < 7
21555 #include <errno.h>
21556 #endif
21557 #ifndef NULL
21558 #define NULL (void*)0
21559 #endif
21560
21561 static void *task(p)
21562         void *p;
21563 {
21564         return (void *) (p == NULL);
21565 }
21566
21567 int
21568 main ()
21569 {
21570
21571         /* pthread test function */
21572 #ifndef PTHREAD_CREATE_DETACHED
21573 #define PTHREAD_CREATE_DETACHED 1
21574 #endif
21575         pthread_t t;
21576         int status;
21577         int detach = PTHREAD_CREATE_DETACHED;
21578
21579 #if HAVE_PTHREADS > 4
21580         /* Final pthreads */
21581         pthread_attr_t attr;
21582
21583         status = pthread_attr_init(&attr);
21584         if( status ) return status;
21585
21586 #if HAVE_PTHREADS < 7
21587         status = pthread_attr_setdetachstate(&attr, &detach);
21588         if( status < 0 ) status = errno;
21589 #else
21590         status = pthread_attr_setdetachstate(&attr, detach);
21591 #endif
21592         if( status ) return status;
21593         status = pthread_create( &t, &attr, task, NULL );
21594 #if HAVE_PTHREADS < 7
21595         if( status < 0 ) status = errno;
21596 #endif
21597         if( status ) return status;
21598 #else
21599         /* Draft 4 pthreads */
21600         status = pthread_create( &t, pthread_attr_default, task, NULL );
21601         if( status ) return errno;
21602
21603         /* give thread a chance to complete */
21604         /* it should remain joinable and hence detachable */
21605         sleep( 1 );
21606
21607         status = pthread_detach( &t );
21608         if( status ) return errno;
21609 #endif
21610
21611 #ifdef HAVE_LINUX_THREADS
21612         pthread_kill_other_threads_np();
21613 #endif
21614
21615         return 0;
21616
21617   ;
21618   return 0;
21619 }
21620 _ACEOF
21621 rm -f conftest.$ac_objext conftest$ac_exeext
21622 if { (ac_try="$ac_link"
21623 case "(($ac_try" in
21624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625   *) ac_try_echo=$ac_try;;
21626 esac
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628   (eval "$ac_link") 2>conftest.er1
21629   ac_status=$?
21630   grep -v '^ *+' conftest.er1 >conftest.err
21631   rm -f conftest.er1
21632   cat conftest.err >&5
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } &&
21635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21636   { (case "(($ac_try" in
21637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638   *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641   (eval "$ac_try") 2>&5
21642   ac_status=$?
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); }; } &&
21645          { ac_try='test -s conftest$ac_exeext'
21646   { (case "(($ac_try" in
21647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648   *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651   (eval "$ac_try") 2>&5
21652   ac_status=$?
21653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654   (exit $ac_status); }; }; then
21655   ol_cv_pthread_create=yes
21656 else
21657   echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21659
21660         ol_cv_pthread_create=no
21661 fi
21662
21663 rm -f core conftest.err conftest.$ac_objext \
21664       conftest$ac_exeext conftest.$ac_ext
21665 else
21666   cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h.  */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h.  */
21672
21673 /* pthread test headers */
21674 #include <pthread.h>
21675 #if HAVE_PTHREADS < 7
21676 #include <errno.h>
21677 #endif
21678 #ifndef NULL
21679 #define NULL (void*)0
21680 #endif
21681
21682 static void *task(p)
21683         void *p;
21684 {
21685         return (void *) (p == NULL);
21686 }
21687
21688
21689 int main(argc, argv)
21690         int argc;
21691         char **argv;
21692 {
21693
21694         /* pthread test function */
21695 #ifndef PTHREAD_CREATE_DETACHED
21696 #define PTHREAD_CREATE_DETACHED 1
21697 #endif
21698         pthread_t t;
21699         int status;
21700         int detach = PTHREAD_CREATE_DETACHED;
21701
21702 #if HAVE_PTHREADS > 4
21703         /* Final pthreads */
21704         pthread_attr_t attr;
21705
21706         status = pthread_attr_init(&attr);
21707         if( status ) return status;
21708
21709 #if HAVE_PTHREADS < 7
21710         status = pthread_attr_setdetachstate(&attr, &detach);
21711         if( status < 0 ) status = errno;
21712 #else
21713         status = pthread_attr_setdetachstate(&attr, detach);
21714 #endif
21715         if( status ) return status;
21716         status = pthread_create( &t, &attr, task, NULL );
21717 #if HAVE_PTHREADS < 7
21718         if( status < 0 ) status = errno;
21719 #endif
21720         if( status ) return status;
21721 #else
21722         /* Draft 4 pthreads */
21723         status = pthread_create( &t, pthread_attr_default, task, NULL );
21724         if( status ) return errno;
21725
21726         /* give thread a chance to complete */
21727         /* it should remain joinable and hence detachable */
21728         sleep( 1 );
21729
21730         status = pthread_detach( &t );
21731         if( status ) return errno;
21732 #endif
21733
21734 #ifdef HAVE_LINUX_THREADS
21735         pthread_kill_other_threads_np();
21736 #endif
21737
21738         return 0;
21739
21740 }
21741
21742 _ACEOF
21743 rm -f conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747   *) ac_try_echo=$ac_try;;
21748 esac
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750   (eval "$ac_link") 2>&5
21751   ac_status=$?
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21754   { (case "(($ac_try" in
21755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756   *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759   (eval "$ac_try") 2>&5
21760   ac_status=$?
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); }; }; then
21763   ol_cv_pthread_create=yes
21764 else
21765   echo "$as_me: program exited with status $ac_status" >&5
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769 ( exit $ac_status )
21770 ol_cv_pthread_create=no
21771 fi
21772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21773 fi
21774
21775
21776 fi
21777 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21778 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21779
21780                 if test $ol_cv_pthread_create != no ; then
21781                         ol_link_threads=posix
21782                         ol_link_pthreads=""
21783                 fi
21784
21785                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21786 if test "$ol_link_threads" = no ; then
21787         # try -kthread
21788         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21789 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21790 if test "${ol_cv_pthread_kthread+set}" = set; then
21791   echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793
21794                 # save the flags
21795                 ol_LIBS="$LIBS"
21796                 LIBS="-kthread $LIBS"
21797
21798                 if test "$cross_compiling" = yes; then
21799   cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h.  */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h.  */
21805
21806 /* pthread test headers */
21807 #include <pthread.h>
21808 #if HAVE_PTHREADS < 7
21809 #include <errno.h>
21810 #endif
21811 #ifndef NULL
21812 #define NULL (void*)0
21813 #endif
21814
21815 static void *task(p)
21816         void *p;
21817 {
21818         return (void *) (p == NULL);
21819 }
21820
21821 int
21822 main ()
21823 {
21824
21825         /* pthread test function */
21826 #ifndef PTHREAD_CREATE_DETACHED
21827 #define PTHREAD_CREATE_DETACHED 1
21828 #endif
21829         pthread_t t;
21830         int status;
21831         int detach = PTHREAD_CREATE_DETACHED;
21832
21833 #if HAVE_PTHREADS > 4
21834         /* Final pthreads */
21835         pthread_attr_t attr;
21836
21837         status = pthread_attr_init(&attr);
21838         if( status ) return status;
21839
21840 #if HAVE_PTHREADS < 7
21841         status = pthread_attr_setdetachstate(&attr, &detach);
21842         if( status < 0 ) status = errno;
21843 #else
21844         status = pthread_attr_setdetachstate(&attr, detach);
21845 #endif
21846         if( status ) return status;
21847         status = pthread_create( &t, &attr, task, NULL );
21848 #if HAVE_PTHREADS < 7
21849         if( status < 0 ) status = errno;
21850 #endif
21851         if( status ) return status;
21852 #else
21853         /* Draft 4 pthreads */
21854         status = pthread_create( &t, pthread_attr_default, task, NULL );
21855         if( status ) return errno;
21856
21857         /* give thread a chance to complete */
21858         /* it should remain joinable and hence detachable */
21859         sleep( 1 );
21860
21861         status = pthread_detach( &t );
21862         if( status ) return errno;
21863 #endif
21864
21865 #ifdef HAVE_LINUX_THREADS
21866         pthread_kill_other_threads_np();
21867 #endif
21868
21869         return 0;
21870
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest.$ac_objext conftest$ac_exeext
21876 if { (ac_try="$ac_link"
21877 case "(($ac_try" in
21878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879   *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882   (eval "$ac_link") 2>conftest.er1
21883   ac_status=$?
21884   grep -v '^ *+' conftest.er1 >conftest.err
21885   rm -f conftest.er1
21886   cat conftest.err >&5
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); } &&
21889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21890   { (case "(($ac_try" in
21891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892   *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895   (eval "$ac_try") 2>&5
21896   ac_status=$?
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); }; } &&
21899          { ac_try='test -s conftest$ac_exeext'
21900   { (case "(($ac_try" in
21901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902   *) ac_try_echo=$ac_try;;
21903 esac
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905   (eval "$ac_try") 2>&5
21906   ac_status=$?
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); }; }; then
21909   ol_cv_pthread_kthread=yes
21910 else
21911   echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914         ol_cv_pthread_kthread=no
21915 fi
21916
21917 rm -f core conftest.err conftest.$ac_objext \
21918       conftest$ac_exeext conftest.$ac_ext
21919 else
21920   cat >conftest.$ac_ext <<_ACEOF
21921 /* confdefs.h.  */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h.  */
21926
21927 /* pthread test headers */
21928 #include <pthread.h>
21929 #if HAVE_PTHREADS < 7
21930 #include <errno.h>
21931 #endif
21932 #ifndef NULL
21933 #define NULL (void*)0
21934 #endif
21935
21936 static void *task(p)
21937         void *p;
21938 {
21939         return (void *) (p == NULL);
21940 }
21941
21942
21943 int main(argc, argv)
21944         int argc;
21945         char **argv;
21946 {
21947
21948         /* pthread test function */
21949 #ifndef PTHREAD_CREATE_DETACHED
21950 #define PTHREAD_CREATE_DETACHED 1
21951 #endif
21952         pthread_t t;
21953         int status;
21954         int detach = PTHREAD_CREATE_DETACHED;
21955
21956 #if HAVE_PTHREADS > 4
21957         /* Final pthreads */
21958         pthread_attr_t attr;
21959
21960         status = pthread_attr_init(&attr);
21961         if( status ) return status;
21962
21963 #if HAVE_PTHREADS < 7
21964         status = pthread_attr_setdetachstate(&attr, &detach);
21965         if( status < 0 ) status = errno;
21966 #else
21967         status = pthread_attr_setdetachstate(&attr, detach);
21968 #endif
21969         if( status ) return status;
21970         status = pthread_create( &t, &attr, task, NULL );
21971 #if HAVE_PTHREADS < 7
21972         if( status < 0 ) status = errno;
21973 #endif
21974         if( status ) return status;
21975 #else
21976         /* Draft 4 pthreads */
21977         status = pthread_create( &t, pthread_attr_default, task, NULL );
21978         if( status ) return errno;
21979
21980         /* give thread a chance to complete */
21981         /* it should remain joinable and hence detachable */
21982         sleep( 1 );
21983
21984         status = pthread_detach( &t );
21985         if( status ) return errno;
21986 #endif
21987
21988 #ifdef HAVE_LINUX_THREADS
21989         pthread_kill_other_threads_np();
21990 #endif
21991
21992         return 0;
21993
21994 }
21995
21996 _ACEOF
21997 rm -f conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001   *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004   (eval "$ac_link") 2>&5
22005   ac_status=$?
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22008   { (case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013   (eval "$ac_try") 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); }; }; then
22017   ol_cv_pthread_kthread=yes
22018 else
22019   echo "$as_me: program exited with status $ac_status" >&5
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023 ( exit $ac_status )
22024 ol_cv_pthread_kthread=no
22025 fi
22026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22027 fi
22028
22029
22030
22031                 # restore the LIBS
22032                 LIBS="$ol_LIBS"
22033
22034 fi
22035 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
22036 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
22037
22038         if test $ol_cv_pthread_kthread = yes ; then
22039                 ol_link_pthreads="-kthread"
22040                 ol_link_threads=posix
22041         fi
22042 fi
22043
22044                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
22045 if test "$ol_link_threads" = no ; then
22046         # try -pthread
22047         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
22048 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
22049 if test "${ol_cv_pthread_pthread+set}" = set; then
22050   echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052
22053                 # save the flags
22054                 ol_LIBS="$LIBS"
22055                 LIBS="-pthread $LIBS"
22056
22057                 if test "$cross_compiling" = yes; then
22058   cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h.  */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h.  */
22064
22065 /* pthread test headers */
22066 #include <pthread.h>
22067 #if HAVE_PTHREADS < 7
22068 #include <errno.h>
22069 #endif
22070 #ifndef NULL
22071 #define NULL (void*)0
22072 #endif
22073
22074 static void *task(p)
22075         void *p;
22076 {
22077         return (void *) (p == NULL);
22078 }
22079
22080 int
22081 main ()
22082 {
22083
22084         /* pthread test function */
22085 #ifndef PTHREAD_CREATE_DETACHED
22086 #define PTHREAD_CREATE_DETACHED 1
22087 #endif
22088         pthread_t t;
22089         int status;
22090         int detach = PTHREAD_CREATE_DETACHED;
22091
22092 #if HAVE_PTHREADS > 4
22093         /* Final pthreads */
22094         pthread_attr_t attr;
22095
22096         status = pthread_attr_init(&attr);
22097         if( status ) return status;
22098
22099 #if HAVE_PTHREADS < 7
22100         status = pthread_attr_setdetachstate(&attr, &detach);
22101         if( status < 0 ) status = errno;
22102 #else
22103         status = pthread_attr_setdetachstate(&attr, detach);
22104 #endif
22105         if( status ) return status;
22106         status = pthread_create( &t, &attr, task, NULL );
22107 #if HAVE_PTHREADS < 7
22108         if( status < 0 ) status = errno;
22109 #endif
22110         if( status ) return status;
22111 #else
22112         /* Draft 4 pthreads */
22113         status = pthread_create( &t, pthread_attr_default, task, NULL );
22114         if( status ) return errno;
22115
22116         /* give thread a chance to complete */
22117         /* it should remain joinable and hence detachable */
22118         sleep( 1 );
22119
22120         status = pthread_detach( &t );
22121         if( status ) return errno;
22122 #endif
22123
22124 #ifdef HAVE_LINUX_THREADS
22125         pthread_kill_other_threads_np();
22126 #endif
22127
22128         return 0;
22129
22130   ;
22131   return 0;
22132 }
22133 _ACEOF
22134 rm -f conftest.$ac_objext conftest$ac_exeext
22135 if { (ac_try="$ac_link"
22136 case "(($ac_try" in
22137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138   *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141   (eval "$ac_link") 2>conftest.er1
22142   ac_status=$?
22143   grep -v '^ *+' conftest.er1 >conftest.err
22144   rm -f conftest.er1
22145   cat conftest.err >&5
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); } &&
22148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22149   { (case "(($ac_try" in
22150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151   *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154   (eval "$ac_try") 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); }; } &&
22158          { ac_try='test -s conftest$ac_exeext'
22159   { (case "(($ac_try" in
22160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161   *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164   (eval "$ac_try") 2>&5
22165   ac_status=$?
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); }; }; then
22168   ol_cv_pthread_pthread=yes
22169 else
22170   echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173         ol_cv_pthread_pthread=no
22174 fi
22175
22176 rm -f core conftest.err conftest.$ac_objext \
22177       conftest$ac_exeext conftest.$ac_ext
22178 else
22179   cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185
22186 /* pthread test headers */
22187 #include <pthread.h>
22188 #if HAVE_PTHREADS < 7
22189 #include <errno.h>
22190 #endif
22191 #ifndef NULL
22192 #define NULL (void*)0
22193 #endif
22194
22195 static void *task(p)
22196         void *p;
22197 {
22198         return (void *) (p == NULL);
22199 }
22200
22201
22202 int main(argc, argv)
22203         int argc;
22204         char **argv;
22205 {
22206
22207         /* pthread test function */
22208 #ifndef PTHREAD_CREATE_DETACHED
22209 #define PTHREAD_CREATE_DETACHED 1
22210 #endif
22211         pthread_t t;
22212         int status;
22213         int detach = PTHREAD_CREATE_DETACHED;
22214
22215 #if HAVE_PTHREADS > 4
22216         /* Final pthreads */
22217         pthread_attr_t attr;
22218
22219         status = pthread_attr_init(&attr);
22220         if( status ) return status;
22221
22222 #if HAVE_PTHREADS < 7
22223         status = pthread_attr_setdetachstate(&attr, &detach);
22224         if( status < 0 ) status = errno;
22225 #else
22226         status = pthread_attr_setdetachstate(&attr, detach);
22227 #endif
22228         if( status ) return status;
22229         status = pthread_create( &t, &attr, task, NULL );
22230 #if HAVE_PTHREADS < 7
22231         if( status < 0 ) status = errno;
22232 #endif
22233         if( status ) return status;
22234 #else
22235         /* Draft 4 pthreads */
22236         status = pthread_create( &t, pthread_attr_default, task, NULL );
22237         if( status ) return errno;
22238
22239         /* give thread a chance to complete */
22240         /* it should remain joinable and hence detachable */
22241         sleep( 1 );
22242
22243         status = pthread_detach( &t );
22244         if( status ) return errno;
22245 #endif
22246
22247 #ifdef HAVE_LINUX_THREADS
22248         pthread_kill_other_threads_np();
22249 #endif
22250
22251         return 0;
22252
22253 }
22254
22255 _ACEOF
22256 rm -f conftest$ac_exeext
22257 if { (ac_try="$ac_link"
22258 case "(($ac_try" in
22259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260   *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263   (eval "$ac_link") 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22267   { (case "(($ac_try" in
22268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269   *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272   (eval "$ac_try") 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; }; then
22276   ol_cv_pthread_pthread=yes
22277 else
22278   echo "$as_me: program exited with status $ac_status" >&5
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282 ( exit $ac_status )
22283 ol_cv_pthread_pthread=no
22284 fi
22285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22286 fi
22287
22288
22289
22290                 # restore the LIBS
22291                 LIBS="$ol_LIBS"
22292
22293 fi
22294 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
22295 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
22296
22297         if test $ol_cv_pthread_pthread = yes ; then
22298                 ol_link_pthreads="-pthread"
22299                 ol_link_threads=posix
22300         fi
22301 fi
22302
22303                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
22304 if test "$ol_link_threads" = no ; then
22305         # try -pthreads
22306         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
22307 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
22308 if test "${ol_cv_pthread_pthreads+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311
22312                 # save the flags
22313                 ol_LIBS="$LIBS"
22314                 LIBS="-pthreads $LIBS"
22315
22316                 if test "$cross_compiling" = yes; then
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323
22324 /* pthread test headers */
22325 #include <pthread.h>
22326 #if HAVE_PTHREADS < 7
22327 #include <errno.h>
22328 #endif
22329 #ifndef NULL
22330 #define NULL (void*)0
22331 #endif
22332
22333 static void *task(p)
22334         void *p;
22335 {
22336         return (void *) (p == NULL);
22337 }
22338
22339 int
22340 main ()
22341 {
22342
22343         /* pthread test function */
22344 #ifndef PTHREAD_CREATE_DETACHED
22345 #define PTHREAD_CREATE_DETACHED 1
22346 #endif
22347         pthread_t t;
22348         int status;
22349         int detach = PTHREAD_CREATE_DETACHED;
22350
22351 #if HAVE_PTHREADS > 4
22352         /* Final pthreads */
22353         pthread_attr_t attr;
22354
22355         status = pthread_attr_init(&attr);
22356         if( status ) return status;
22357
22358 #if HAVE_PTHREADS < 7
22359         status = pthread_attr_setdetachstate(&attr, &detach);
22360         if( status < 0 ) status = errno;
22361 #else
22362         status = pthread_attr_setdetachstate(&attr, detach);
22363 #endif
22364         if( status ) return status;
22365         status = pthread_create( &t, &attr, task, NULL );
22366 #if HAVE_PTHREADS < 7
22367         if( status < 0 ) status = errno;
22368 #endif
22369         if( status ) return status;
22370 #else
22371         /* Draft 4 pthreads */
22372         status = pthread_create( &t, pthread_attr_default, task, NULL );
22373         if( status ) return errno;
22374
22375         /* give thread a chance to complete */
22376         /* it should remain joinable and hence detachable */
22377         sleep( 1 );
22378
22379         status = pthread_detach( &t );
22380         if( status ) return errno;
22381 #endif
22382
22383 #ifdef HAVE_LINUX_THREADS
22384         pthread_kill_other_threads_np();
22385 #endif
22386
22387         return 0;
22388
22389   ;
22390   return 0;
22391 }
22392 _ACEOF
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397   *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400   (eval "$ac_link") 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } &&
22407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22408   { (case "(($ac_try" in
22409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410   *) ac_try_echo=$ac_try;;
22411 esac
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413   (eval "$ac_try") 2>&5
22414   ac_status=$?
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); }; } &&
22417          { ac_try='test -s conftest$ac_exeext'
22418   { (case "(($ac_try" in
22419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420   *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423   (eval "$ac_try") 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); }; }; then
22427   ol_cv_pthread_pthreads=yes
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432         ol_cv_pthread_pthreads=no
22433 fi
22434
22435 rm -f core conftest.err conftest.$ac_objext \
22436       conftest$ac_exeext conftest.$ac_ext
22437 else
22438   cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444
22445 /* pthread test headers */
22446 #include <pthread.h>
22447 #if HAVE_PTHREADS < 7
22448 #include <errno.h>
22449 #endif
22450 #ifndef NULL
22451 #define NULL (void*)0
22452 #endif
22453
22454 static void *task(p)
22455         void *p;
22456 {
22457         return (void *) (p == NULL);
22458 }
22459
22460
22461 int main(argc, argv)
22462         int argc;
22463         char **argv;
22464 {
22465
22466         /* pthread test function */
22467 #ifndef PTHREAD_CREATE_DETACHED
22468 #define PTHREAD_CREATE_DETACHED 1
22469 #endif
22470         pthread_t t;
22471         int status;
22472         int detach = PTHREAD_CREATE_DETACHED;
22473
22474 #if HAVE_PTHREADS > 4
22475         /* Final pthreads */
22476         pthread_attr_t attr;
22477
22478         status = pthread_attr_init(&attr);
22479         if( status ) return status;
22480
22481 #if HAVE_PTHREADS < 7
22482         status = pthread_attr_setdetachstate(&attr, &detach);
22483         if( status < 0 ) status = errno;
22484 #else
22485         status = pthread_attr_setdetachstate(&attr, detach);
22486 #endif
22487         if( status ) return status;
22488         status = pthread_create( &t, &attr, task, NULL );
22489 #if HAVE_PTHREADS < 7
22490         if( status < 0 ) status = errno;
22491 #endif
22492         if( status ) return status;
22493 #else
22494         /* Draft 4 pthreads */
22495         status = pthread_create( &t, pthread_attr_default, task, NULL );
22496         if( status ) return errno;
22497
22498         /* give thread a chance to complete */
22499         /* it should remain joinable and hence detachable */
22500         sleep( 1 );
22501
22502         status = pthread_detach( &t );
22503         if( status ) return errno;
22504 #endif
22505
22506 #ifdef HAVE_LINUX_THREADS
22507         pthread_kill_other_threads_np();
22508 #endif
22509
22510         return 0;
22511
22512 }
22513
22514 _ACEOF
22515 rm -f conftest$ac_exeext
22516 if { (ac_try="$ac_link"
22517 case "(($ac_try" in
22518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519   *) ac_try_echo=$ac_try;;
22520 esac
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522   (eval "$ac_link") 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22526   { (case "(($ac_try" in
22527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528   *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531   (eval "$ac_try") 2>&5
22532   ac_status=$?
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); }; }; then
22535   ol_cv_pthread_pthreads=yes
22536 else
22537   echo "$as_me: program exited with status $ac_status" >&5
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 ( exit $ac_status )
22542 ol_cv_pthread_pthreads=no
22543 fi
22544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22545 fi
22546
22547
22548
22549                 # restore the LIBS
22550                 LIBS="$ol_LIBS"
22551
22552 fi
22553 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
22554 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
22555
22556         if test $ol_cv_pthread_pthreads = yes ; then
22557                 ol_link_pthreads="-pthreads"
22558                 ol_link_threads=posix
22559         fi
22560 fi
22561
22562                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
22563 if test "$ol_link_threads" = no ; then
22564         # try -mthreads
22565         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
22566 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
22567 if test "${ol_cv_pthread_mthreads+set}" = set; then
22568   echo $ECHO_N "(cached) $ECHO_C" >&6
22569 else
22570
22571                 # save the flags
22572                 ol_LIBS="$LIBS"
22573                 LIBS="-mthreads $LIBS"
22574
22575                 if test "$cross_compiling" = yes; then
22576   cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582
22583 /* pthread test headers */
22584 #include <pthread.h>
22585 #if HAVE_PTHREADS < 7
22586 #include <errno.h>
22587 #endif
22588 #ifndef NULL
22589 #define NULL (void*)0
22590 #endif
22591
22592 static void *task(p)
22593         void *p;
22594 {
22595         return (void *) (p == NULL);
22596 }
22597
22598 int
22599 main ()
22600 {
22601
22602         /* pthread test function */
22603 #ifndef PTHREAD_CREATE_DETACHED
22604 #define PTHREAD_CREATE_DETACHED 1
22605 #endif
22606         pthread_t t;
22607         int status;
22608         int detach = PTHREAD_CREATE_DETACHED;
22609
22610 #if HAVE_PTHREADS > 4
22611         /* Final pthreads */
22612         pthread_attr_t attr;
22613
22614         status = pthread_attr_init(&attr);
22615         if( status ) return status;
22616
22617 #if HAVE_PTHREADS < 7
22618         status = pthread_attr_setdetachstate(&attr, &detach);
22619         if( status < 0 ) status = errno;
22620 #else
22621         status = pthread_attr_setdetachstate(&attr, detach);
22622 #endif
22623         if( status ) return status;
22624         status = pthread_create( &t, &attr, task, NULL );
22625 #if HAVE_PTHREADS < 7
22626         if( status < 0 ) status = errno;
22627 #endif
22628         if( status ) return status;
22629 #else
22630         /* Draft 4 pthreads */
22631         status = pthread_create( &t, pthread_attr_default, task, NULL );
22632         if( status ) return errno;
22633
22634         /* give thread a chance to complete */
22635         /* it should remain joinable and hence detachable */
22636         sleep( 1 );
22637
22638         status = pthread_detach( &t );
22639         if( status ) return errno;
22640 #endif
22641
22642 #ifdef HAVE_LINUX_THREADS
22643         pthread_kill_other_threads_np();
22644 #endif
22645
22646         return 0;
22647
22648   ;
22649   return 0;
22650 }
22651 _ACEOF
22652 rm -f conftest.$ac_objext conftest$ac_exeext
22653 if { (ac_try="$ac_link"
22654 case "(($ac_try" in
22655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656   *) ac_try_echo=$ac_try;;
22657 esac
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659   (eval "$ac_link") 2>conftest.er1
22660   ac_status=$?
22661   grep -v '^ *+' conftest.er1 >conftest.err
22662   rm -f conftest.er1
22663   cat conftest.err >&5
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } &&
22666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22667   { (case "(($ac_try" in
22668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669   *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672   (eval "$ac_try") 2>&5
22673   ac_status=$?
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); }; } &&
22676          { ac_try='test -s conftest$ac_exeext'
22677   { (case "(($ac_try" in
22678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679   *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682   (eval "$ac_try") 2>&5
22683   ac_status=$?
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); }; }; then
22686   ol_cv_pthread_mthreads=yes
22687 else
22688   echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22690
22691         ol_cv_pthread_mthreads=no
22692 fi
22693
22694 rm -f core conftest.err conftest.$ac_objext \
22695       conftest$ac_exeext conftest.$ac_ext
22696 else
22697   cat >conftest.$ac_ext <<_ACEOF
22698 /* confdefs.h.  */
22699 _ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h.  */
22703
22704 /* pthread test headers */
22705 #include <pthread.h>
22706 #if HAVE_PTHREADS < 7
22707 #include <errno.h>
22708 #endif
22709 #ifndef NULL
22710 #define NULL (void*)0
22711 #endif
22712
22713 static void *task(p)
22714         void *p;
22715 {
22716         return (void *) (p == NULL);
22717 }
22718
22719
22720 int main(argc, argv)
22721         int argc;
22722         char **argv;
22723 {
22724
22725         /* pthread test function */
22726 #ifndef PTHREAD_CREATE_DETACHED
22727 #define PTHREAD_CREATE_DETACHED 1
22728 #endif
22729         pthread_t t;
22730         int status;
22731         int detach = PTHREAD_CREATE_DETACHED;
22732
22733 #if HAVE_PTHREADS > 4
22734         /* Final pthreads */
22735         pthread_attr_t attr;
22736
22737         status = pthread_attr_init(&attr);
22738         if( status ) return status;
22739
22740 #if HAVE_PTHREADS < 7
22741         status = pthread_attr_setdetachstate(&attr, &detach);
22742         if( status < 0 ) status = errno;
22743 #else
22744         status = pthread_attr_setdetachstate(&attr, detach);
22745 #endif
22746         if( status ) return status;
22747         status = pthread_create( &t, &attr, task, NULL );
22748 #if HAVE_PTHREADS < 7
22749         if( status < 0 ) status = errno;
22750 #endif
22751         if( status ) return status;
22752 #else
22753         /* Draft 4 pthreads */
22754         status = pthread_create( &t, pthread_attr_default, task, NULL );
22755         if( status ) return errno;
22756
22757         /* give thread a chance to complete */
22758         /* it should remain joinable and hence detachable */
22759         sleep( 1 );
22760
22761         status = pthread_detach( &t );
22762         if( status ) return errno;
22763 #endif
22764
22765 #ifdef HAVE_LINUX_THREADS
22766         pthread_kill_other_threads_np();
22767 #endif
22768
22769         return 0;
22770
22771 }
22772
22773 _ACEOF
22774 rm -f conftest$ac_exeext
22775 if { (ac_try="$ac_link"
22776 case "(($ac_try" in
22777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778   *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781   (eval "$ac_link") 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22785   { (case "(($ac_try" in
22786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787   *) ac_try_echo=$ac_try;;
22788 esac
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790   (eval "$ac_try") 2>&5
22791   ac_status=$?
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); }; }; then
22794   ol_cv_pthread_mthreads=yes
22795 else
22796   echo "$as_me: program exited with status $ac_status" >&5
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.$ac_ext >&5
22799
22800 ( exit $ac_status )
22801 ol_cv_pthread_mthreads=no
22802 fi
22803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22804 fi
22805
22806
22807
22808                 # restore the LIBS
22809                 LIBS="$ol_LIBS"
22810
22811 fi
22812 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22813 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22814
22815         if test $ol_cv_pthread_mthreads = yes ; then
22816                 ol_link_pthreads="-mthreads"
22817                 ol_link_threads=posix
22818         fi
22819 fi
22820
22821                 # Pthread try link: -thread (ol_cv_pthread_thread)
22822 if test "$ol_link_threads" = no ; then
22823         # try -thread
22824         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22825 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22826 if test "${ol_cv_pthread_thread+set}" = set; then
22827   echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829
22830                 # save the flags
22831                 ol_LIBS="$LIBS"
22832                 LIBS="-thread $LIBS"
22833
22834                 if test "$cross_compiling" = yes; then
22835   cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841
22842 /* pthread test headers */
22843 #include <pthread.h>
22844 #if HAVE_PTHREADS < 7
22845 #include <errno.h>
22846 #endif
22847 #ifndef NULL
22848 #define NULL (void*)0
22849 #endif
22850
22851 static void *task(p)
22852         void *p;
22853 {
22854         return (void *) (p == NULL);
22855 }
22856
22857 int
22858 main ()
22859 {
22860
22861         /* pthread test function */
22862 #ifndef PTHREAD_CREATE_DETACHED
22863 #define PTHREAD_CREATE_DETACHED 1
22864 #endif
22865         pthread_t t;
22866         int status;
22867         int detach = PTHREAD_CREATE_DETACHED;
22868
22869 #if HAVE_PTHREADS > 4
22870         /* Final pthreads */
22871         pthread_attr_t attr;
22872
22873         status = pthread_attr_init(&attr);
22874         if( status ) return status;
22875
22876 #if HAVE_PTHREADS < 7
22877         status = pthread_attr_setdetachstate(&attr, &detach);
22878         if( status < 0 ) status = errno;
22879 #else
22880         status = pthread_attr_setdetachstate(&attr, detach);
22881 #endif
22882         if( status ) return status;
22883         status = pthread_create( &t, &attr, task, NULL );
22884 #if HAVE_PTHREADS < 7
22885         if( status < 0 ) status = errno;
22886 #endif
22887         if( status ) return status;
22888 #else
22889         /* Draft 4 pthreads */
22890         status = pthread_create( &t, pthread_attr_default, task, NULL );
22891         if( status ) return errno;
22892
22893         /* give thread a chance to complete */
22894         /* it should remain joinable and hence detachable */
22895         sleep( 1 );
22896
22897         status = pthread_detach( &t );
22898         if( status ) return errno;
22899 #endif
22900
22901 #ifdef HAVE_LINUX_THREADS
22902         pthread_kill_other_threads_np();
22903 #endif
22904
22905         return 0;
22906
22907   ;
22908   return 0;
22909 }
22910 _ACEOF
22911 rm -f conftest.$ac_objext conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915   *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918   (eval "$ac_link") 2>conftest.er1
22919   ac_status=$?
22920   grep -v '^ *+' conftest.er1 >conftest.err
22921   rm -f conftest.er1
22922   cat conftest.err >&5
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); } &&
22925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22926   { (case "(($ac_try" in
22927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928   *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931   (eval "$ac_try") 2>&5
22932   ac_status=$?
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); }; } &&
22935          { ac_try='test -s conftest$ac_exeext'
22936   { (case "(($ac_try" in
22937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938   *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941   (eval "$ac_try") 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); }; }; then
22945   ol_cv_pthread_thread=yes
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950         ol_cv_pthread_thread=no
22951 fi
22952
22953 rm -f core conftest.err conftest.$ac_objext \
22954       conftest$ac_exeext conftest.$ac_ext
22955 else
22956   cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h.  */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h.  */
22962
22963 /* pthread test headers */
22964 #include <pthread.h>
22965 #if HAVE_PTHREADS < 7
22966 #include <errno.h>
22967 #endif
22968 #ifndef NULL
22969 #define NULL (void*)0
22970 #endif
22971
22972 static void *task(p)
22973         void *p;
22974 {
22975         return (void *) (p == NULL);
22976 }
22977
22978
22979 int main(argc, argv)
22980         int argc;
22981         char **argv;
22982 {
22983
22984         /* pthread test function */
22985 #ifndef PTHREAD_CREATE_DETACHED
22986 #define PTHREAD_CREATE_DETACHED 1
22987 #endif
22988         pthread_t t;
22989         int status;
22990         int detach = PTHREAD_CREATE_DETACHED;
22991
22992 #if HAVE_PTHREADS > 4
22993         /* Final pthreads */
22994         pthread_attr_t attr;
22995
22996         status = pthread_attr_init(&attr);
22997         if( status ) return status;
22998
22999 #if HAVE_PTHREADS < 7
23000         status = pthread_attr_setdetachstate(&attr, &detach);
23001         if( status < 0 ) status = errno;
23002 #else
23003         status = pthread_attr_setdetachstate(&attr, detach);
23004 #endif
23005         if( status ) return status;
23006         status = pthread_create( &t, &attr, task, NULL );
23007 #if HAVE_PTHREADS < 7
23008         if( status < 0 ) status = errno;
23009 #endif
23010         if( status ) return status;
23011 #else
23012         /* Draft 4 pthreads */
23013         status = pthread_create( &t, pthread_attr_default, task, NULL );
23014         if( status ) return errno;
23015
23016         /* give thread a chance to complete */
23017         /* it should remain joinable and hence detachable */
23018         sleep( 1 );
23019
23020         status = pthread_detach( &t );
23021         if( status ) return errno;
23022 #endif
23023
23024 #ifdef HAVE_LINUX_THREADS
23025         pthread_kill_other_threads_np();
23026 #endif
23027
23028         return 0;
23029
23030 }
23031
23032 _ACEOF
23033 rm -f conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_link") 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23044   { (case "(($ac_try" in
23045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046   *) ac_try_echo=$ac_try;;
23047 esac
23048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049   (eval "$ac_try") 2>&5
23050   ac_status=$?
23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); }; }; then
23053   ol_cv_pthread_thread=yes
23054 else
23055   echo "$as_me: program exited with status $ac_status" >&5
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23058
23059 ( exit $ac_status )
23060 ol_cv_pthread_thread=no
23061 fi
23062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23063 fi
23064
23065
23066
23067                 # restore the LIBS
23068                 LIBS="$ol_LIBS"
23069
23070 fi
23071 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
23072 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
23073
23074         if test $ol_cv_pthread_thread = yes ; then
23075                 ol_link_pthreads="-thread"
23076                 ol_link_threads=posix
23077         fi
23078 fi
23079
23080
23081                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
23082 if test "$ol_link_threads" = no ; then
23083         # try -lpthread -lmach -lexc -lc_r
23084         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
23085 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
23086 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
23087   echo $ECHO_N "(cached) $ECHO_C" >&6
23088 else
23089
23090                 # save the flags
23091                 ol_LIBS="$LIBS"
23092                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
23093
23094                 if test "$cross_compiling" = yes; then
23095   cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101
23102 /* pthread test headers */
23103 #include <pthread.h>
23104 #if HAVE_PTHREADS < 7
23105 #include <errno.h>
23106 #endif
23107 #ifndef NULL
23108 #define NULL (void*)0
23109 #endif
23110
23111 static void *task(p)
23112         void *p;
23113 {
23114         return (void *) (p == NULL);
23115 }
23116
23117 int
23118 main ()
23119 {
23120
23121         /* pthread test function */
23122 #ifndef PTHREAD_CREATE_DETACHED
23123 #define PTHREAD_CREATE_DETACHED 1
23124 #endif
23125         pthread_t t;
23126         int status;
23127         int detach = PTHREAD_CREATE_DETACHED;
23128
23129 #if HAVE_PTHREADS > 4
23130         /* Final pthreads */
23131         pthread_attr_t attr;
23132
23133         status = pthread_attr_init(&attr);
23134         if( status ) return status;
23135
23136 #if HAVE_PTHREADS < 7
23137         status = pthread_attr_setdetachstate(&attr, &detach);
23138         if( status < 0 ) status = errno;
23139 #else
23140         status = pthread_attr_setdetachstate(&attr, detach);
23141 #endif
23142         if( status ) return status;
23143         status = pthread_create( &t, &attr, task, NULL );
23144 #if HAVE_PTHREADS < 7
23145         if( status < 0 ) status = errno;
23146 #endif
23147         if( status ) return status;
23148 #else
23149         /* Draft 4 pthreads */
23150         status = pthread_create( &t, pthread_attr_default, task, NULL );
23151         if( status ) return errno;
23152
23153         /* give thread a chance to complete */
23154         /* it should remain joinable and hence detachable */
23155         sleep( 1 );
23156
23157         status = pthread_detach( &t );
23158         if( status ) return errno;
23159 #endif
23160
23161 #ifdef HAVE_LINUX_THREADS
23162         pthread_kill_other_threads_np();
23163 #endif
23164
23165         return 0;
23166
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext conftest$ac_exeext
23172 if { (ac_try="$ac_link"
23173 case "(($ac_try" in
23174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175   *) ac_try_echo=$ac_try;;
23176 esac
23177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23178   (eval "$ac_link") 2>conftest.er1
23179   ac_status=$?
23180   grep -v '^ *+' conftest.er1 >conftest.err
23181   rm -f conftest.er1
23182   cat conftest.err >&5
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); } &&
23185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23186   { (case "(($ac_try" in
23187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188   *) ac_try_echo=$ac_try;;
23189 esac
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191   (eval "$ac_try") 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; } &&
23195          { ac_try='test -s conftest$ac_exeext'
23196   { (case "(($ac_try" in
23197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198   *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201   (eval "$ac_try") 2>&5
23202   ac_status=$?
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); }; }; then
23205   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
23206 else
23207   echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23209
23210         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
23211 fi
23212
23213 rm -f core conftest.err conftest.$ac_objext \
23214       conftest$ac_exeext conftest.$ac_ext
23215 else
23216   cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h.  */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h.  */
23222
23223 /* pthread test headers */
23224 #include <pthread.h>
23225 #if HAVE_PTHREADS < 7
23226 #include <errno.h>
23227 #endif
23228 #ifndef NULL
23229 #define NULL (void*)0
23230 #endif
23231
23232 static void *task(p)
23233         void *p;
23234 {
23235         return (void *) (p == NULL);
23236 }
23237
23238
23239 int main(argc, argv)
23240         int argc;
23241         char **argv;
23242 {
23243
23244         /* pthread test function */
23245 #ifndef PTHREAD_CREATE_DETACHED
23246 #define PTHREAD_CREATE_DETACHED 1
23247 #endif
23248         pthread_t t;
23249         int status;
23250         int detach = PTHREAD_CREATE_DETACHED;
23251
23252 #if HAVE_PTHREADS > 4
23253         /* Final pthreads */
23254         pthread_attr_t attr;
23255
23256         status = pthread_attr_init(&attr);
23257         if( status ) return status;
23258
23259 #if HAVE_PTHREADS < 7
23260         status = pthread_attr_setdetachstate(&attr, &detach);
23261         if( status < 0 ) status = errno;
23262 #else
23263         status = pthread_attr_setdetachstate(&attr, detach);
23264 #endif
23265         if( status ) return status;
23266         status = pthread_create( &t, &attr, task, NULL );
23267 #if HAVE_PTHREADS < 7
23268         if( status < 0 ) status = errno;
23269 #endif
23270         if( status ) return status;
23271 #else
23272         /* Draft 4 pthreads */
23273         status = pthread_create( &t, pthread_attr_default, task, NULL );
23274         if( status ) return errno;
23275
23276         /* give thread a chance to complete */
23277         /* it should remain joinable and hence detachable */
23278         sleep( 1 );
23279
23280         status = pthread_detach( &t );
23281         if( status ) return errno;
23282 #endif
23283
23284 #ifdef HAVE_LINUX_THREADS
23285         pthread_kill_other_threads_np();
23286 #endif
23287
23288         return 0;
23289
23290 }
23291
23292 _ACEOF
23293 rm -f conftest$ac_exeext
23294 if { (ac_try="$ac_link"
23295 case "(($ac_try" in
23296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297   *) ac_try_echo=$ac_try;;
23298 esac
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300   (eval "$ac_link") 2>&5
23301   ac_status=$?
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23304   { (case "(($ac_try" in
23305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306   *) ac_try_echo=$ac_try;;
23307 esac
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309   (eval "$ac_try") 2>&5
23310   ac_status=$?
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); }; }; then
23313   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
23314 else
23315   echo "$as_me: program exited with status $ac_status" >&5
23316 echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23318
23319 ( exit $ac_status )
23320 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
23321 fi
23322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23323 fi
23324
23325
23326
23327                 # restore the LIBS
23328                 LIBS="$ol_LIBS"
23329
23330 fi
23331 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
23332 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
23333
23334         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
23335                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
23336                 ol_link_threads=posix
23337         fi
23338 fi
23339
23340                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
23341 if test "$ol_link_threads" = no ; then
23342         # try -lpthread -lmach -lexc
23343         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
23344 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
23345 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
23346   echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348
23349                 # save the flags
23350                 ol_LIBS="$LIBS"
23351                 LIBS="-lpthread -lmach -lexc $LIBS"
23352
23353                 if test "$cross_compiling" = yes; then
23354   cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h.  */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h.  */
23360
23361 /* pthread test headers */
23362 #include <pthread.h>
23363 #if HAVE_PTHREADS < 7
23364 #include <errno.h>
23365 #endif
23366 #ifndef NULL
23367 #define NULL (void*)0
23368 #endif
23369
23370 static void *task(p)
23371         void *p;
23372 {
23373         return (void *) (p == NULL);
23374 }
23375
23376 int
23377 main ()
23378 {
23379
23380         /* pthread test function */
23381 #ifndef PTHREAD_CREATE_DETACHED
23382 #define PTHREAD_CREATE_DETACHED 1
23383 #endif
23384         pthread_t t;
23385         int status;
23386         int detach = PTHREAD_CREATE_DETACHED;
23387
23388 #if HAVE_PTHREADS > 4
23389         /* Final pthreads */
23390         pthread_attr_t attr;
23391
23392         status = pthread_attr_init(&attr);
23393         if( status ) return status;
23394
23395 #if HAVE_PTHREADS < 7
23396         status = pthread_attr_setdetachstate(&attr, &detach);
23397         if( status < 0 ) status = errno;
23398 #else
23399         status = pthread_attr_setdetachstate(&attr, detach);
23400 #endif
23401         if( status ) return status;
23402         status = pthread_create( &t, &attr, task, NULL );
23403 #if HAVE_PTHREADS < 7
23404         if( status < 0 ) status = errno;
23405 #endif
23406         if( status ) return status;
23407 #else
23408         /* Draft 4 pthreads */
23409         status = pthread_create( &t, pthread_attr_default, task, NULL );
23410         if( status ) return errno;
23411
23412         /* give thread a chance to complete */
23413         /* it should remain joinable and hence detachable */
23414         sleep( 1 );
23415
23416         status = pthread_detach( &t );
23417         if( status ) return errno;
23418 #endif
23419
23420 #ifdef HAVE_LINUX_THREADS
23421         pthread_kill_other_threads_np();
23422 #endif
23423
23424         return 0;
23425
23426   ;
23427   return 0;
23428 }
23429 _ACEOF
23430 rm -f conftest.$ac_objext conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434   *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437   (eval "$ac_link") 2>conftest.er1
23438   ac_status=$?
23439   grep -v '^ *+' conftest.er1 >conftest.err
23440   rm -f conftest.er1
23441   cat conftest.err >&5
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); } &&
23444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23445   { (case "(($ac_try" in
23446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447   *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450   (eval "$ac_try") 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; } &&
23454          { ac_try='test -s conftest$ac_exeext'
23455   { (case "(($ac_try" in
23456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457   *) ac_try_echo=$ac_try;;
23458 esac
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460   (eval "$ac_try") 2>&5
23461   ac_status=$?
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); }; }; then
23464   ol_cv_pthread_lpthread_lmach_lexc=yes
23465 else
23466   echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469         ol_cv_pthread_lpthread_lmach_lexc=no
23470 fi
23471
23472 rm -f core conftest.err conftest.$ac_objext \
23473       conftest$ac_exeext conftest.$ac_ext
23474 else
23475   cat >conftest.$ac_ext <<_ACEOF
23476 /* confdefs.h.  */
23477 _ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h.  */
23481
23482 /* pthread test headers */
23483 #include <pthread.h>
23484 #if HAVE_PTHREADS < 7
23485 #include <errno.h>
23486 #endif
23487 #ifndef NULL
23488 #define NULL (void*)0
23489 #endif
23490
23491 static void *task(p)
23492         void *p;
23493 {
23494         return (void *) (p == NULL);
23495 }
23496
23497
23498 int main(argc, argv)
23499         int argc;
23500         char **argv;
23501 {
23502
23503         /* pthread test function */
23504 #ifndef PTHREAD_CREATE_DETACHED
23505 #define PTHREAD_CREATE_DETACHED 1
23506 #endif
23507         pthread_t t;
23508         int status;
23509         int detach = PTHREAD_CREATE_DETACHED;
23510
23511 #if HAVE_PTHREADS > 4
23512         /* Final pthreads */
23513         pthread_attr_t attr;
23514
23515         status = pthread_attr_init(&attr);
23516         if( status ) return status;
23517
23518 #if HAVE_PTHREADS < 7
23519         status = pthread_attr_setdetachstate(&attr, &detach);
23520         if( status < 0 ) status = errno;
23521 #else
23522         status = pthread_attr_setdetachstate(&attr, detach);
23523 #endif
23524         if( status ) return status;
23525         status = pthread_create( &t, &attr, task, NULL );
23526 #if HAVE_PTHREADS < 7
23527         if( status < 0 ) status = errno;
23528 #endif
23529         if( status ) return status;
23530 #else
23531         /* Draft 4 pthreads */
23532         status = pthread_create( &t, pthread_attr_default, task, NULL );
23533         if( status ) return errno;
23534
23535         /* give thread a chance to complete */
23536         /* it should remain joinable and hence detachable */
23537         sleep( 1 );
23538
23539         status = pthread_detach( &t );
23540         if( status ) return errno;
23541 #endif
23542
23543 #ifdef HAVE_LINUX_THREADS
23544         pthread_kill_other_threads_np();
23545 #endif
23546
23547         return 0;
23548
23549 }
23550
23551 _ACEOF
23552 rm -f conftest$ac_exeext
23553 if { (ac_try="$ac_link"
23554 case "(($ac_try" in
23555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556   *) ac_try_echo=$ac_try;;
23557 esac
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559   (eval "$ac_link") 2>&5
23560   ac_status=$?
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23563   { (case "(($ac_try" in
23564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565   *) ac_try_echo=$ac_try;;
23566 esac
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568   (eval "$ac_try") 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; }; then
23572   ol_cv_pthread_lpthread_lmach_lexc=yes
23573 else
23574   echo "$as_me: program exited with status $ac_status" >&5
23575 echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23577
23578 ( exit $ac_status )
23579 ol_cv_pthread_lpthread_lmach_lexc=no
23580 fi
23581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23582 fi
23583
23584
23585
23586                 # restore the LIBS
23587                 LIBS="$ol_LIBS"
23588
23589 fi
23590 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
23591 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
23592
23593         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
23594                 ol_link_pthreads="-lpthread -lmach -lexc"
23595                 ol_link_threads=posix
23596         fi
23597 fi
23598
23599
23600                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
23601 if test "$ol_link_threads" = no ; then
23602         # try -lpthread -Wl,-woff,85
23603         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
23604 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
23605 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
23606   echo $ECHO_N "(cached) $ECHO_C" >&6
23607 else
23608
23609                 # save the flags
23610                 ol_LIBS="$LIBS"
23611                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
23612
23613                 if test "$cross_compiling" = yes; then
23614   cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h.  */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h.  */
23620
23621 /* pthread test headers */
23622 #include <pthread.h>
23623 #if HAVE_PTHREADS < 7
23624 #include <errno.h>
23625 #endif
23626 #ifndef NULL
23627 #define NULL (void*)0
23628 #endif
23629
23630 static void *task(p)
23631         void *p;
23632 {
23633         return (void *) (p == NULL);
23634 }
23635
23636 int
23637 main ()
23638 {
23639
23640         /* pthread test function */
23641 #ifndef PTHREAD_CREATE_DETACHED
23642 #define PTHREAD_CREATE_DETACHED 1
23643 #endif
23644         pthread_t t;
23645         int status;
23646         int detach = PTHREAD_CREATE_DETACHED;
23647
23648 #if HAVE_PTHREADS > 4
23649         /* Final pthreads */
23650         pthread_attr_t attr;
23651
23652         status = pthread_attr_init(&attr);
23653         if( status ) return status;
23654
23655 #if HAVE_PTHREADS < 7
23656         status = pthread_attr_setdetachstate(&attr, &detach);
23657         if( status < 0 ) status = errno;
23658 #else
23659         status = pthread_attr_setdetachstate(&attr, detach);
23660 #endif
23661         if( status ) return status;
23662         status = pthread_create( &t, &attr, task, NULL );
23663 #if HAVE_PTHREADS < 7
23664         if( status < 0 ) status = errno;
23665 #endif
23666         if( status ) return status;
23667 #else
23668         /* Draft 4 pthreads */
23669         status = pthread_create( &t, pthread_attr_default, task, NULL );
23670         if( status ) return errno;
23671
23672         /* give thread a chance to complete */
23673         /* it should remain joinable and hence detachable */
23674         sleep( 1 );
23675
23676         status = pthread_detach( &t );
23677         if( status ) return errno;
23678 #endif
23679
23680 #ifdef HAVE_LINUX_THREADS
23681         pthread_kill_other_threads_np();
23682 #endif
23683
23684         return 0;
23685
23686   ;
23687   return 0;
23688 }
23689 _ACEOF
23690 rm -f conftest.$ac_objext conftest$ac_exeext
23691 if { (ac_try="$ac_link"
23692 case "(($ac_try" in
23693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694   *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697   (eval "$ac_link") 2>conftest.er1
23698   ac_status=$?
23699   grep -v '^ *+' conftest.er1 >conftest.err
23700   rm -f conftest.er1
23701   cat conftest.err >&5
23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703   (exit $ac_status); } &&
23704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23705   { (case "(($ac_try" in
23706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707   *) ac_try_echo=$ac_try;;
23708 esac
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710   (eval "$ac_try") 2>&5
23711   ac_status=$?
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); }; } &&
23714          { ac_try='test -s conftest$ac_exeext'
23715   { (case "(($ac_try" in
23716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717   *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720   (eval "$ac_try") 2>&5
23721   ac_status=$?
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); }; }; then
23724   ol_cv_pthread_lib_lpthread_woff=yes
23725 else
23726   echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23728
23729         ol_cv_pthread_lib_lpthread_woff=no
23730 fi
23731
23732 rm -f core conftest.err conftest.$ac_objext \
23733       conftest$ac_exeext conftest.$ac_ext
23734 else
23735   cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h.  */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h.  */
23741
23742 /* pthread test headers */
23743 #include <pthread.h>
23744 #if HAVE_PTHREADS < 7
23745 #include <errno.h>
23746 #endif
23747 #ifndef NULL
23748 #define NULL (void*)0
23749 #endif
23750
23751 static void *task(p)
23752         void *p;
23753 {
23754         return (void *) (p == NULL);
23755 }
23756
23757
23758 int main(argc, argv)
23759         int argc;
23760         char **argv;
23761 {
23762
23763         /* pthread test function */
23764 #ifndef PTHREAD_CREATE_DETACHED
23765 #define PTHREAD_CREATE_DETACHED 1
23766 #endif
23767         pthread_t t;
23768         int status;
23769         int detach = PTHREAD_CREATE_DETACHED;
23770
23771 #if HAVE_PTHREADS > 4
23772         /* Final pthreads */
23773         pthread_attr_t attr;
23774
23775         status = pthread_attr_init(&attr);
23776         if( status ) return status;
23777
23778 #if HAVE_PTHREADS < 7
23779         status = pthread_attr_setdetachstate(&attr, &detach);
23780         if( status < 0 ) status = errno;
23781 #else
23782         status = pthread_attr_setdetachstate(&attr, detach);
23783 #endif
23784         if( status ) return status;
23785         status = pthread_create( &t, &attr, task, NULL );
23786 #if HAVE_PTHREADS < 7
23787         if( status < 0 ) status = errno;
23788 #endif
23789         if( status ) return status;
23790 #else
23791         /* Draft 4 pthreads */
23792         status = pthread_create( &t, pthread_attr_default, task, NULL );
23793         if( status ) return errno;
23794
23795         /* give thread a chance to complete */
23796         /* it should remain joinable and hence detachable */
23797         sleep( 1 );
23798
23799         status = pthread_detach( &t );
23800         if( status ) return errno;
23801 #endif
23802
23803 #ifdef HAVE_LINUX_THREADS
23804         pthread_kill_other_threads_np();
23805 #endif
23806
23807         return 0;
23808
23809 }
23810
23811 _ACEOF
23812 rm -f conftest$ac_exeext
23813 if { (ac_try="$ac_link"
23814 case "(($ac_try" in
23815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816   *) ac_try_echo=$ac_try;;
23817 esac
23818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819   (eval "$ac_link") 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23823   { (case "(($ac_try" in
23824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825   *) ac_try_echo=$ac_try;;
23826 esac
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828   (eval "$ac_try") 2>&5
23829   ac_status=$?
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); }; }; then
23832   ol_cv_pthread_lib_lpthread_woff=yes
23833 else
23834   echo "$as_me: program exited with status $ac_status" >&5
23835 echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23837
23838 ( exit $ac_status )
23839 ol_cv_pthread_lib_lpthread_woff=no
23840 fi
23841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23842 fi
23843
23844
23845
23846                 # restore the LIBS
23847                 LIBS="$ol_LIBS"
23848
23849 fi
23850 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23851 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23852
23853         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23854                 ol_link_pthreads="-lpthread -Wl,-woff,85"
23855                 ol_link_threads=posix
23856         fi
23857 fi
23858
23859
23860                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23861 if test "$ol_link_threads" = no ; then
23862         # try -lpthread
23863         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23864 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23865 if test "${ol_cv_pthread_lpthread+set}" = set; then
23866   echo $ECHO_N "(cached) $ECHO_C" >&6
23867 else
23868
23869                 # save the flags
23870                 ol_LIBS="$LIBS"
23871                 LIBS="-lpthread $LIBS"
23872
23873                 if test "$cross_compiling" = yes; then
23874   cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h.  */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h.  */
23880
23881 /* pthread test headers */
23882 #include <pthread.h>
23883 #if HAVE_PTHREADS < 7
23884 #include <errno.h>
23885 #endif
23886 #ifndef NULL
23887 #define NULL (void*)0
23888 #endif
23889
23890 static void *task(p)
23891         void *p;
23892 {
23893         return (void *) (p == NULL);
23894 }
23895
23896 int
23897 main ()
23898 {
23899
23900         /* pthread test function */
23901 #ifndef PTHREAD_CREATE_DETACHED
23902 #define PTHREAD_CREATE_DETACHED 1
23903 #endif
23904         pthread_t t;
23905         int status;
23906         int detach = PTHREAD_CREATE_DETACHED;
23907
23908 #if HAVE_PTHREADS > 4
23909         /* Final pthreads */
23910         pthread_attr_t attr;
23911
23912         status = pthread_attr_init(&attr);
23913         if( status ) return status;
23914
23915 #if HAVE_PTHREADS < 7
23916         status = pthread_attr_setdetachstate(&attr, &detach);
23917         if( status < 0 ) status = errno;
23918 #else
23919         status = pthread_attr_setdetachstate(&attr, detach);
23920 #endif
23921         if( status ) return status;
23922         status = pthread_create( &t, &attr, task, NULL );
23923 #if HAVE_PTHREADS < 7
23924         if( status < 0 ) status = errno;
23925 #endif
23926         if( status ) return status;
23927 #else
23928         /* Draft 4 pthreads */
23929         status = pthread_create( &t, pthread_attr_default, task, NULL );
23930         if( status ) return errno;
23931
23932         /* give thread a chance to complete */
23933         /* it should remain joinable and hence detachable */
23934         sleep( 1 );
23935
23936         status = pthread_detach( &t );
23937         if( status ) return errno;
23938 #endif
23939
23940 #ifdef HAVE_LINUX_THREADS
23941         pthread_kill_other_threads_np();
23942 #endif
23943
23944         return 0;
23945
23946   ;
23947   return 0;
23948 }
23949 _ACEOF
23950 rm -f conftest.$ac_objext conftest$ac_exeext
23951 if { (ac_try="$ac_link"
23952 case "(($ac_try" in
23953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954   *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957   (eval "$ac_link") 2>conftest.er1
23958   ac_status=$?
23959   grep -v '^ *+' conftest.er1 >conftest.err
23960   rm -f conftest.er1
23961   cat conftest.err >&5
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } &&
23964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23965   { (case "(($ac_try" in
23966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967   *) ac_try_echo=$ac_try;;
23968 esac
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970   (eval "$ac_try") 2>&5
23971   ac_status=$?
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); }; } &&
23974          { ac_try='test -s conftest$ac_exeext'
23975   { (case "(($ac_try" in
23976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23977   *) ac_try_echo=$ac_try;;
23978 esac
23979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23980   (eval "$ac_try") 2>&5
23981   ac_status=$?
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); }; }; then
23984   ol_cv_pthread_lpthread=yes
23985 else
23986   echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23988
23989         ol_cv_pthread_lpthread=no
23990 fi
23991
23992 rm -f core conftest.err conftest.$ac_objext \
23993       conftest$ac_exeext conftest.$ac_ext
23994 else
23995   cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001
24002 /* pthread test headers */
24003 #include <pthread.h>
24004 #if HAVE_PTHREADS < 7
24005 #include <errno.h>
24006 #endif
24007 #ifndef NULL
24008 #define NULL (void*)0
24009 #endif
24010
24011 static void *task(p)
24012         void *p;
24013 {
24014         return (void *) (p == NULL);
24015 }
24016
24017
24018 int main(argc, argv)
24019         int argc;
24020         char **argv;
24021 {
24022
24023         /* pthread test function */
24024 #ifndef PTHREAD_CREATE_DETACHED
24025 #define PTHREAD_CREATE_DETACHED 1
24026 #endif
24027         pthread_t t;
24028         int status;
24029         int detach = PTHREAD_CREATE_DETACHED;
24030
24031 #if HAVE_PTHREADS > 4
24032         /* Final pthreads */
24033         pthread_attr_t attr;
24034
24035         status = pthread_attr_init(&attr);
24036         if( status ) return status;
24037
24038 #if HAVE_PTHREADS < 7
24039         status = pthread_attr_setdetachstate(&attr, &detach);
24040         if( status < 0 ) status = errno;
24041 #else
24042         status = pthread_attr_setdetachstate(&attr, detach);
24043 #endif
24044         if( status ) return status;
24045         status = pthread_create( &t, &attr, task, NULL );
24046 #if HAVE_PTHREADS < 7
24047         if( status < 0 ) status = errno;
24048 #endif
24049         if( status ) return status;
24050 #else
24051         /* Draft 4 pthreads */
24052         status = pthread_create( &t, pthread_attr_default, task, NULL );
24053         if( status ) return errno;
24054
24055         /* give thread a chance to complete */
24056         /* it should remain joinable and hence detachable */
24057         sleep( 1 );
24058
24059         status = pthread_detach( &t );
24060         if( status ) return errno;
24061 #endif
24062
24063 #ifdef HAVE_LINUX_THREADS
24064         pthread_kill_other_threads_np();
24065 #endif
24066
24067         return 0;
24068
24069 }
24070
24071 _ACEOF
24072 rm -f conftest$ac_exeext
24073 if { (ac_try="$ac_link"
24074 case "(($ac_try" in
24075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076   *) ac_try_echo=$ac_try;;
24077 esac
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079   (eval "$ac_link") 2>&5
24080   ac_status=$?
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24083   { (case "(($ac_try" in
24084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085   *) ac_try_echo=$ac_try;;
24086 esac
24087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24088   (eval "$ac_try") 2>&5
24089   ac_status=$?
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); }; }; then
24092   ol_cv_pthread_lpthread=yes
24093 else
24094   echo "$as_me: program exited with status $ac_status" >&5
24095 echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24097
24098 ( exit $ac_status )
24099 ol_cv_pthread_lpthread=no
24100 fi
24101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24102 fi
24103
24104
24105
24106                 # restore the LIBS
24107                 LIBS="$ol_LIBS"
24108
24109 fi
24110 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
24111 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
24112
24113         if test $ol_cv_pthread_lpthread = yes ; then
24114                 ol_link_pthreads="-lpthread"
24115                 ol_link_threads=posix
24116         fi
24117 fi
24118
24119                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
24120 if test "$ol_link_threads" = no ; then
24121         # try -lc_r
24122         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
24123 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
24124 if test "${ol_cv_pthread_lc_r+set}" = set; then
24125   echo $ECHO_N "(cached) $ECHO_C" >&6
24126 else
24127
24128                 # save the flags
24129                 ol_LIBS="$LIBS"
24130                 LIBS="-lc_r $LIBS"
24131
24132                 if test "$cross_compiling" = yes; then
24133   cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h.  */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h.  */
24139
24140 /* pthread test headers */
24141 #include <pthread.h>
24142 #if HAVE_PTHREADS < 7
24143 #include <errno.h>
24144 #endif
24145 #ifndef NULL
24146 #define NULL (void*)0
24147 #endif
24148
24149 static void *task(p)
24150         void *p;
24151 {
24152         return (void *) (p == NULL);
24153 }
24154
24155 int
24156 main ()
24157 {
24158
24159         /* pthread test function */
24160 #ifndef PTHREAD_CREATE_DETACHED
24161 #define PTHREAD_CREATE_DETACHED 1
24162 #endif
24163         pthread_t t;
24164         int status;
24165         int detach = PTHREAD_CREATE_DETACHED;
24166
24167 #if HAVE_PTHREADS > 4
24168         /* Final pthreads */
24169         pthread_attr_t attr;
24170
24171         status = pthread_attr_init(&attr);
24172         if( status ) return status;
24173
24174 #if HAVE_PTHREADS < 7
24175         status = pthread_attr_setdetachstate(&attr, &detach);
24176         if( status < 0 ) status = errno;
24177 #else
24178         status = pthread_attr_setdetachstate(&attr, detach);
24179 #endif
24180         if( status ) return status;
24181         status = pthread_create( &t, &attr, task, NULL );
24182 #if HAVE_PTHREADS < 7
24183         if( status < 0 ) status = errno;
24184 #endif
24185         if( status ) return status;
24186 #else
24187         /* Draft 4 pthreads */
24188         status = pthread_create( &t, pthread_attr_default, task, NULL );
24189         if( status ) return errno;
24190
24191         /* give thread a chance to complete */
24192         /* it should remain joinable and hence detachable */
24193         sleep( 1 );
24194
24195         status = pthread_detach( &t );
24196         if( status ) return errno;
24197 #endif
24198
24199 #ifdef HAVE_LINUX_THREADS
24200         pthread_kill_other_threads_np();
24201 #endif
24202
24203         return 0;
24204
24205   ;
24206   return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest.$ac_objext conftest$ac_exeext
24210 if { (ac_try="$ac_link"
24211 case "(($ac_try" in
24212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213   *) ac_try_echo=$ac_try;;
24214 esac
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216   (eval "$ac_link") 2>conftest.er1
24217   ac_status=$?
24218   grep -v '^ *+' conftest.er1 >conftest.err
24219   rm -f conftest.er1
24220   cat conftest.err >&5
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); } &&
24223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24224   { (case "(($ac_try" in
24225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226   *) ac_try_echo=$ac_try;;
24227 esac
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229   (eval "$ac_try") 2>&5
24230   ac_status=$?
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); }; } &&
24233          { ac_try='test -s conftest$ac_exeext'
24234   { (case "(($ac_try" in
24235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236   *) ac_try_echo=$ac_try;;
24237 esac
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239   (eval "$ac_try") 2>&5
24240   ac_status=$?
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); }; }; then
24243   ol_cv_pthread_lc_r=yes
24244 else
24245   echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24247
24248         ol_cv_pthread_lc_r=no
24249 fi
24250
24251 rm -f core conftest.err conftest.$ac_objext \
24252       conftest$ac_exeext conftest.$ac_ext
24253 else
24254   cat >conftest.$ac_ext <<_ACEOF
24255 /* confdefs.h.  */
24256 _ACEOF
24257 cat confdefs.h >>conftest.$ac_ext
24258 cat >>conftest.$ac_ext <<_ACEOF
24259 /* end confdefs.h.  */
24260
24261 /* pthread test headers */
24262 #include <pthread.h>
24263 #if HAVE_PTHREADS < 7
24264 #include <errno.h>
24265 #endif
24266 #ifndef NULL
24267 #define NULL (void*)0
24268 #endif
24269
24270 static void *task(p)
24271         void *p;
24272 {
24273         return (void *) (p == NULL);
24274 }
24275
24276
24277 int main(argc, argv)
24278         int argc;
24279         char **argv;
24280 {
24281
24282         /* pthread test function */
24283 #ifndef PTHREAD_CREATE_DETACHED
24284 #define PTHREAD_CREATE_DETACHED 1
24285 #endif
24286         pthread_t t;
24287         int status;
24288         int detach = PTHREAD_CREATE_DETACHED;
24289
24290 #if HAVE_PTHREADS > 4
24291         /* Final pthreads */
24292         pthread_attr_t attr;
24293
24294         status = pthread_attr_init(&attr);
24295         if( status ) return status;
24296
24297 #if HAVE_PTHREADS < 7
24298         status = pthread_attr_setdetachstate(&attr, &detach);
24299         if( status < 0 ) status = errno;
24300 #else
24301         status = pthread_attr_setdetachstate(&attr, detach);
24302 #endif
24303         if( status ) return status;
24304         status = pthread_create( &t, &attr, task, NULL );
24305 #if HAVE_PTHREADS < 7
24306         if( status < 0 ) status = errno;
24307 #endif
24308         if( status ) return status;
24309 #else
24310         /* Draft 4 pthreads */
24311         status = pthread_create( &t, pthread_attr_default, task, NULL );
24312         if( status ) return errno;
24313
24314         /* give thread a chance to complete */
24315         /* it should remain joinable and hence detachable */
24316         sleep( 1 );
24317
24318         status = pthread_detach( &t );
24319         if( status ) return errno;
24320 #endif
24321
24322 #ifdef HAVE_LINUX_THREADS
24323         pthread_kill_other_threads_np();
24324 #endif
24325
24326         return 0;
24327
24328 }
24329
24330 _ACEOF
24331 rm -f conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335   *) ac_try_echo=$ac_try;;
24336 esac
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338   (eval "$ac_link") 2>&5
24339   ac_status=$?
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24342   { (case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347   (eval "$ac_try") 2>&5
24348   ac_status=$?
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); }; }; then
24351   ol_cv_pthread_lc_r=yes
24352 else
24353   echo "$as_me: program exited with status $ac_status" >&5
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24356
24357 ( exit $ac_status )
24358 ol_cv_pthread_lc_r=no
24359 fi
24360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24361 fi
24362
24363
24364
24365                 # restore the LIBS
24366                 LIBS="$ol_LIBS"
24367
24368 fi
24369 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
24370 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
24371
24372         if test $ol_cv_pthread_lc_r = yes ; then
24373                 ol_link_pthreads="-lc_r"
24374                 ol_link_threads=posix
24375         fi
24376 fi
24377
24378
24379                 # Pthread try link: -threads (ol_cv_pthread_threads)
24380 if test "$ol_link_threads" = no ; then
24381         # try -threads
24382         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
24383 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
24384 if test "${ol_cv_pthread_threads+set}" = set; then
24385   echo $ECHO_N "(cached) $ECHO_C" >&6
24386 else
24387
24388                 # save the flags
24389                 ol_LIBS="$LIBS"
24390                 LIBS="-threads $LIBS"
24391
24392                 if test "$cross_compiling" = yes; then
24393   cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h.  */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h.  */
24399
24400 /* pthread test headers */
24401 #include <pthread.h>
24402 #if HAVE_PTHREADS < 7
24403 #include <errno.h>
24404 #endif
24405 #ifndef NULL
24406 #define NULL (void*)0
24407 #endif
24408
24409 static void *task(p)
24410         void *p;
24411 {
24412         return (void *) (p == NULL);
24413 }
24414
24415 int
24416 main ()
24417 {
24418
24419         /* pthread test function */
24420 #ifndef PTHREAD_CREATE_DETACHED
24421 #define PTHREAD_CREATE_DETACHED 1
24422 #endif
24423         pthread_t t;
24424         int status;
24425         int detach = PTHREAD_CREATE_DETACHED;
24426
24427 #if HAVE_PTHREADS > 4
24428         /* Final pthreads */
24429         pthread_attr_t attr;
24430
24431         status = pthread_attr_init(&attr);
24432         if( status ) return status;
24433
24434 #if HAVE_PTHREADS < 7
24435         status = pthread_attr_setdetachstate(&attr, &detach);
24436         if( status < 0 ) status = errno;
24437 #else
24438         status = pthread_attr_setdetachstate(&attr, detach);
24439 #endif
24440         if( status ) return status;
24441         status = pthread_create( &t, &attr, task, NULL );
24442 #if HAVE_PTHREADS < 7
24443         if( status < 0 ) status = errno;
24444 #endif
24445         if( status ) return status;
24446 #else
24447         /* Draft 4 pthreads */
24448         status = pthread_create( &t, pthread_attr_default, task, NULL );
24449         if( status ) return errno;
24450
24451         /* give thread a chance to complete */
24452         /* it should remain joinable and hence detachable */
24453         sleep( 1 );
24454
24455         status = pthread_detach( &t );
24456         if( status ) return errno;
24457 #endif
24458
24459 #ifdef HAVE_LINUX_THREADS
24460         pthread_kill_other_threads_np();
24461 #endif
24462
24463         return 0;
24464
24465   ;
24466   return 0;
24467 }
24468 _ACEOF
24469 rm -f conftest.$ac_objext conftest$ac_exeext
24470 if { (ac_try="$ac_link"
24471 case "(($ac_try" in
24472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473   *) ac_try_echo=$ac_try;;
24474 esac
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476   (eval "$ac_link") 2>conftest.er1
24477   ac_status=$?
24478   grep -v '^ *+' conftest.er1 >conftest.err
24479   rm -f conftest.er1
24480   cat conftest.err >&5
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); } &&
24483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24484   { (case "(($ac_try" in
24485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486   *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489   (eval "$ac_try") 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; } &&
24493          { ac_try='test -s conftest$ac_exeext'
24494   { (case "(($ac_try" in
24495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496   *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499   (eval "$ac_try") 2>&5
24500   ac_status=$?
24501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502   (exit $ac_status); }; }; then
24503   ol_cv_pthread_threads=yes
24504 else
24505   echo "$as_me: failed program was:" >&5
24506 sed 's/^/| /' conftest.$ac_ext >&5
24507
24508         ol_cv_pthread_threads=no
24509 fi
24510
24511 rm -f core conftest.err conftest.$ac_objext \
24512       conftest$ac_exeext conftest.$ac_ext
24513 else
24514   cat >conftest.$ac_ext <<_ACEOF
24515 /* confdefs.h.  */
24516 _ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h.  */
24520
24521 /* pthread test headers */
24522 #include <pthread.h>
24523 #if HAVE_PTHREADS < 7
24524 #include <errno.h>
24525 #endif
24526 #ifndef NULL
24527 #define NULL (void*)0
24528 #endif
24529
24530 static void *task(p)
24531         void *p;
24532 {
24533         return (void *) (p == NULL);
24534 }
24535
24536
24537 int main(argc, argv)
24538         int argc;
24539         char **argv;
24540 {
24541
24542         /* pthread test function */
24543 #ifndef PTHREAD_CREATE_DETACHED
24544 #define PTHREAD_CREATE_DETACHED 1
24545 #endif
24546         pthread_t t;
24547         int status;
24548         int detach = PTHREAD_CREATE_DETACHED;
24549
24550 #if HAVE_PTHREADS > 4
24551         /* Final pthreads */
24552         pthread_attr_t attr;
24553
24554         status = pthread_attr_init(&attr);
24555         if( status ) return status;
24556
24557 #if HAVE_PTHREADS < 7
24558         status = pthread_attr_setdetachstate(&attr, &detach);
24559         if( status < 0 ) status = errno;
24560 #else
24561         status = pthread_attr_setdetachstate(&attr, detach);
24562 #endif
24563         if( status ) return status;
24564         status = pthread_create( &t, &attr, task, NULL );
24565 #if HAVE_PTHREADS < 7
24566         if( status < 0 ) status = errno;
24567 #endif
24568         if( status ) return status;
24569 #else
24570         /* Draft 4 pthreads */
24571         status = pthread_create( &t, pthread_attr_default, task, NULL );
24572         if( status ) return errno;
24573
24574         /* give thread a chance to complete */
24575         /* it should remain joinable and hence detachable */
24576         sleep( 1 );
24577
24578         status = pthread_detach( &t );
24579         if( status ) return errno;
24580 #endif
24581
24582 #ifdef HAVE_LINUX_THREADS
24583         pthread_kill_other_threads_np();
24584 #endif
24585
24586         return 0;
24587
24588 }
24589
24590 _ACEOF
24591 rm -f conftest$ac_exeext
24592 if { (ac_try="$ac_link"
24593 case "(($ac_try" in
24594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595   *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598   (eval "$ac_link") 2>&5
24599   ac_status=$?
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24602   { (case "(($ac_try" in
24603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604   *) ac_try_echo=$ac_try;;
24605 esac
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607   (eval "$ac_try") 2>&5
24608   ac_status=$?
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); }; }; then
24611   ol_cv_pthread_threads=yes
24612 else
24613   echo "$as_me: program exited with status $ac_status" >&5
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ( exit $ac_status )
24618 ol_cv_pthread_threads=no
24619 fi
24620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24621 fi
24622
24623
24624
24625                 # restore the LIBS
24626                 LIBS="$ol_LIBS"
24627
24628 fi
24629 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
24630 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
24631
24632         if test $ol_cv_pthread_threads = yes ; then
24633                 ol_link_pthreads="-threads"
24634                 ol_link_threads=posix
24635         fi
24636 fi
24637
24638
24639                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
24640 if test "$ol_link_threads" = no ; then
24641         # try -lpthreads -lmach -lexc -lc_r
24642         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
24643 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
24644 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
24645   echo $ECHO_N "(cached) $ECHO_C" >&6
24646 else
24647
24648                 # save the flags
24649                 ol_LIBS="$LIBS"
24650                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
24651
24652                 if test "$cross_compiling" = yes; then
24653   cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659
24660 /* pthread test headers */
24661 #include <pthread.h>
24662 #if HAVE_PTHREADS < 7
24663 #include <errno.h>
24664 #endif
24665 #ifndef NULL
24666 #define NULL (void*)0
24667 #endif
24668
24669 static void *task(p)
24670         void *p;
24671 {
24672         return (void *) (p == NULL);
24673 }
24674
24675 int
24676 main ()
24677 {
24678
24679         /* pthread test function */
24680 #ifndef PTHREAD_CREATE_DETACHED
24681 #define PTHREAD_CREATE_DETACHED 1
24682 #endif
24683         pthread_t t;
24684         int status;
24685         int detach = PTHREAD_CREATE_DETACHED;
24686
24687 #if HAVE_PTHREADS > 4
24688         /* Final pthreads */
24689         pthread_attr_t attr;
24690
24691         status = pthread_attr_init(&attr);
24692         if( status ) return status;
24693
24694 #if HAVE_PTHREADS < 7
24695         status = pthread_attr_setdetachstate(&attr, &detach);
24696         if( status < 0 ) status = errno;
24697 #else
24698         status = pthread_attr_setdetachstate(&attr, detach);
24699 #endif
24700         if( status ) return status;
24701         status = pthread_create( &t, &attr, task, NULL );
24702 #if HAVE_PTHREADS < 7
24703         if( status < 0 ) status = errno;
24704 #endif
24705         if( status ) return status;
24706 #else
24707         /* Draft 4 pthreads */
24708         status = pthread_create( &t, pthread_attr_default, task, NULL );
24709         if( status ) return errno;
24710
24711         /* give thread a chance to complete */
24712         /* it should remain joinable and hence detachable */
24713         sleep( 1 );
24714
24715         status = pthread_detach( &t );
24716         if( status ) return errno;
24717 #endif
24718
24719 #ifdef HAVE_LINUX_THREADS
24720         pthread_kill_other_threads_np();
24721 #endif
24722
24723         return 0;
24724
24725   ;
24726   return 0;
24727 }
24728 _ACEOF
24729 rm -f conftest.$ac_objext conftest$ac_exeext
24730 if { (ac_try="$ac_link"
24731 case "(($ac_try" in
24732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733   *) ac_try_echo=$ac_try;;
24734 esac
24735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24736   (eval "$ac_link") 2>conftest.er1
24737   ac_status=$?
24738   grep -v '^ *+' conftest.er1 >conftest.err
24739   rm -f conftest.er1
24740   cat conftest.err >&5
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); } &&
24743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24744   { (case "(($ac_try" in
24745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746   *) ac_try_echo=$ac_try;;
24747 esac
24748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749   (eval "$ac_try") 2>&5
24750   ac_status=$?
24751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752   (exit $ac_status); }; } &&
24753          { ac_try='test -s conftest$ac_exeext'
24754   { (case "(($ac_try" in
24755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756   *) ac_try_echo=$ac_try;;
24757 esac
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759   (eval "$ac_try") 2>&5
24760   ac_status=$?
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); }; }; then
24763   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24764 else
24765   echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24767
24768         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24769 fi
24770
24771 rm -f core conftest.err conftest.$ac_objext \
24772       conftest$ac_exeext conftest.$ac_ext
24773 else
24774   cat >conftest.$ac_ext <<_ACEOF
24775 /* confdefs.h.  */
24776 _ACEOF
24777 cat confdefs.h >>conftest.$ac_ext
24778 cat >>conftest.$ac_ext <<_ACEOF
24779 /* end confdefs.h.  */
24780
24781 /* pthread test headers */
24782 #include <pthread.h>
24783 #if HAVE_PTHREADS < 7
24784 #include <errno.h>
24785 #endif
24786 #ifndef NULL
24787 #define NULL (void*)0
24788 #endif
24789
24790 static void *task(p)
24791         void *p;
24792 {
24793         return (void *) (p == NULL);
24794 }
24795
24796
24797 int main(argc, argv)
24798         int argc;
24799         char **argv;
24800 {
24801
24802         /* pthread test function */
24803 #ifndef PTHREAD_CREATE_DETACHED
24804 #define PTHREAD_CREATE_DETACHED 1
24805 #endif
24806         pthread_t t;
24807         int status;
24808         int detach = PTHREAD_CREATE_DETACHED;
24809
24810 #if HAVE_PTHREADS > 4
24811         /* Final pthreads */
24812         pthread_attr_t attr;
24813
24814         status = pthread_attr_init(&attr);
24815         if( status ) return status;
24816
24817 #if HAVE_PTHREADS < 7
24818         status = pthread_attr_setdetachstate(&attr, &detach);
24819         if( status < 0 ) status = errno;
24820 #else
24821         status = pthread_attr_setdetachstate(&attr, detach);
24822 #endif
24823         if( status ) return status;
24824         status = pthread_create( &t, &attr, task, NULL );
24825 #if HAVE_PTHREADS < 7
24826         if( status < 0 ) status = errno;
24827 #endif
24828         if( status ) return status;
24829 #else
24830         /* Draft 4 pthreads */
24831         status = pthread_create( &t, pthread_attr_default, task, NULL );
24832         if( status ) return errno;
24833
24834         /* give thread a chance to complete */
24835         /* it should remain joinable and hence detachable */
24836         sleep( 1 );
24837
24838         status = pthread_detach( &t );
24839         if( status ) return errno;
24840 #endif
24841
24842 #ifdef HAVE_LINUX_THREADS
24843         pthread_kill_other_threads_np();
24844 #endif
24845
24846         return 0;
24847
24848 }
24849
24850 _ACEOF
24851 rm -f conftest$ac_exeext
24852 if { (ac_try="$ac_link"
24853 case "(($ac_try" in
24854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855   *) ac_try_echo=$ac_try;;
24856 esac
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858   (eval "$ac_link") 2>&5
24859   ac_status=$?
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24862   { (case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_try") 2>&5
24868   ac_status=$?
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); }; }; then
24871   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24872 else
24873   echo "$as_me: program exited with status $ac_status" >&5
24874 echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24876
24877 ( exit $ac_status )
24878 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24879 fi
24880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24881 fi
24882
24883
24884
24885                 # restore the LIBS
24886                 LIBS="$ol_LIBS"
24887
24888 fi
24889 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
24890 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24891
24892         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24893                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24894                 ol_link_threads=posix
24895         fi
24896 fi
24897
24898                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24899 if test "$ol_link_threads" = no ; then
24900         # try -lpthreads -lmach -lexc
24901         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24902 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24903 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24904   echo $ECHO_N "(cached) $ECHO_C" >&6
24905 else
24906
24907                 # save the flags
24908                 ol_LIBS="$LIBS"
24909                 LIBS="-lpthreads -lmach -lexc $LIBS"
24910
24911                 if test "$cross_compiling" = yes; then
24912   cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918
24919 /* pthread test headers */
24920 #include <pthread.h>
24921 #if HAVE_PTHREADS < 7
24922 #include <errno.h>
24923 #endif
24924 #ifndef NULL
24925 #define NULL (void*)0
24926 #endif
24927
24928 static void *task(p)
24929         void *p;
24930 {
24931         return (void *) (p == NULL);
24932 }
24933
24934 int
24935 main ()
24936 {
24937
24938         /* pthread test function */
24939 #ifndef PTHREAD_CREATE_DETACHED
24940 #define PTHREAD_CREATE_DETACHED 1
24941 #endif
24942         pthread_t t;
24943         int status;
24944         int detach = PTHREAD_CREATE_DETACHED;
24945
24946 #if HAVE_PTHREADS > 4
24947         /* Final pthreads */
24948         pthread_attr_t attr;
24949
24950         status = pthread_attr_init(&attr);
24951         if( status ) return status;
24952
24953 #if HAVE_PTHREADS < 7
24954         status = pthread_attr_setdetachstate(&attr, &detach);
24955         if( status < 0 ) status = errno;
24956 #else
24957         status = pthread_attr_setdetachstate(&attr, detach);
24958 #endif
24959         if( status ) return status;
24960         status = pthread_create( &t, &attr, task, NULL );
24961 #if HAVE_PTHREADS < 7
24962         if( status < 0 ) status = errno;
24963 #endif
24964         if( status ) return status;
24965 #else
24966         /* Draft 4 pthreads */
24967         status = pthread_create( &t, pthread_attr_default, task, NULL );
24968         if( status ) return errno;
24969
24970         /* give thread a chance to complete */
24971         /* it should remain joinable and hence detachable */
24972         sleep( 1 );
24973
24974         status = pthread_detach( &t );
24975         if( status ) return errno;
24976 #endif
24977
24978 #ifdef HAVE_LINUX_THREADS
24979         pthread_kill_other_threads_np();
24980 #endif
24981
24982         return 0;
24983
24984   ;
24985   return 0;
24986 }
24987 _ACEOF
24988 rm -f conftest.$ac_objext conftest$ac_exeext
24989 if { (ac_try="$ac_link"
24990 case "(($ac_try" in
24991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24992   *) ac_try_echo=$ac_try;;
24993 esac
24994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24995   (eval "$ac_link") 2>conftest.er1
24996   ac_status=$?
24997   grep -v '^ *+' conftest.er1 >conftest.err
24998   rm -f conftest.er1
24999   cat conftest.err >&5
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); } &&
25002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25003   { (case "(($ac_try" in
25004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005   *) ac_try_echo=$ac_try;;
25006 esac
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008   (eval "$ac_try") 2>&5
25009   ac_status=$?
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); }; } &&
25012          { ac_try='test -s conftest$ac_exeext'
25013   { (case "(($ac_try" in
25014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015   *) ac_try_echo=$ac_try;;
25016 esac
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018   (eval "$ac_try") 2>&5
25019   ac_status=$?
25020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); }; }; then
25022   ol_cv_pthread_lpthreads_lmach_lexc=yes
25023 else
25024   echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25026
25027         ol_cv_pthread_lpthreads_lmach_lexc=no
25028 fi
25029
25030 rm -f core conftest.err conftest.$ac_objext \
25031       conftest$ac_exeext conftest.$ac_ext
25032 else
25033   cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h.  */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h.  */
25039
25040 /* pthread test headers */
25041 #include <pthread.h>
25042 #if HAVE_PTHREADS < 7
25043 #include <errno.h>
25044 #endif
25045 #ifndef NULL
25046 #define NULL (void*)0
25047 #endif
25048
25049 static void *task(p)
25050         void *p;
25051 {
25052         return (void *) (p == NULL);
25053 }
25054
25055
25056 int main(argc, argv)
25057         int argc;
25058         char **argv;
25059 {
25060
25061         /* pthread test function */
25062 #ifndef PTHREAD_CREATE_DETACHED
25063 #define PTHREAD_CREATE_DETACHED 1
25064 #endif
25065         pthread_t t;
25066         int status;
25067         int detach = PTHREAD_CREATE_DETACHED;
25068
25069 #if HAVE_PTHREADS > 4
25070         /* Final pthreads */
25071         pthread_attr_t attr;
25072
25073         status = pthread_attr_init(&attr);
25074         if( status ) return status;
25075
25076 #if HAVE_PTHREADS < 7
25077         status = pthread_attr_setdetachstate(&attr, &detach);
25078         if( status < 0 ) status = errno;
25079 #else
25080         status = pthread_attr_setdetachstate(&attr, detach);
25081 #endif
25082         if( status ) return status;
25083         status = pthread_create( &t, &attr, task, NULL );
25084 #if HAVE_PTHREADS < 7
25085         if( status < 0 ) status = errno;
25086 #endif
25087         if( status ) return status;
25088 #else
25089         /* Draft 4 pthreads */
25090         status = pthread_create( &t, pthread_attr_default, task, NULL );
25091         if( status ) return errno;
25092
25093         /* give thread a chance to complete */
25094         /* it should remain joinable and hence detachable */
25095         sleep( 1 );
25096
25097         status = pthread_detach( &t );
25098         if( status ) return errno;
25099 #endif
25100
25101 #ifdef HAVE_LINUX_THREADS
25102         pthread_kill_other_threads_np();
25103 #endif
25104
25105         return 0;
25106
25107 }
25108
25109 _ACEOF
25110 rm -f conftest$ac_exeext
25111 if { (ac_try="$ac_link"
25112 case "(($ac_try" in
25113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114   *) ac_try_echo=$ac_try;;
25115 esac
25116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25117   (eval "$ac_link") 2>&5
25118   ac_status=$?
25119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25121   { (case "(($ac_try" in
25122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123   *) ac_try_echo=$ac_try;;
25124 esac
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126   (eval "$ac_try") 2>&5
25127   ac_status=$?
25128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); }; }; then
25130   ol_cv_pthread_lpthreads_lmach_lexc=yes
25131 else
25132   echo "$as_me: program exited with status $ac_status" >&5
25133 echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25135
25136 ( exit $ac_status )
25137 ol_cv_pthread_lpthreads_lmach_lexc=no
25138 fi
25139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25140 fi
25141
25142
25143
25144                 # restore the LIBS
25145                 LIBS="$ol_LIBS"
25146
25147 fi
25148 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
25149 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
25150
25151         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
25152                 ol_link_pthreads="-lpthreads -lmach -lexc"
25153                 ol_link_threads=posix
25154         fi
25155 fi
25156
25157                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
25158 if test "$ol_link_threads" = no ; then
25159         # try -lpthreads -lexc
25160         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
25161 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
25162 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
25163   echo $ECHO_N "(cached) $ECHO_C" >&6
25164 else
25165
25166                 # save the flags
25167                 ol_LIBS="$LIBS"
25168                 LIBS="-lpthreads -lexc $LIBS"
25169
25170                 if test "$cross_compiling" = yes; then
25171   cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h.  */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h.  */
25177
25178 /* pthread test headers */
25179 #include <pthread.h>
25180 #if HAVE_PTHREADS < 7
25181 #include <errno.h>
25182 #endif
25183 #ifndef NULL
25184 #define NULL (void*)0
25185 #endif
25186
25187 static void *task(p)
25188         void *p;
25189 {
25190         return (void *) (p == NULL);
25191 }
25192
25193 int
25194 main ()
25195 {
25196
25197         /* pthread test function */
25198 #ifndef PTHREAD_CREATE_DETACHED
25199 #define PTHREAD_CREATE_DETACHED 1
25200 #endif
25201         pthread_t t;
25202         int status;
25203         int detach = PTHREAD_CREATE_DETACHED;
25204
25205 #if HAVE_PTHREADS > 4
25206         /* Final pthreads */
25207         pthread_attr_t attr;
25208
25209         status = pthread_attr_init(&attr);
25210         if( status ) return status;
25211
25212 #if HAVE_PTHREADS < 7
25213         status = pthread_attr_setdetachstate(&attr, &detach);
25214         if( status < 0 ) status = errno;
25215 #else
25216         status = pthread_attr_setdetachstate(&attr, detach);
25217 #endif
25218         if( status ) return status;
25219         status = pthread_create( &t, &attr, task, NULL );
25220 #if HAVE_PTHREADS < 7
25221         if( status < 0 ) status = errno;
25222 #endif
25223         if( status ) return status;
25224 #else
25225         /* Draft 4 pthreads */
25226         status = pthread_create( &t, pthread_attr_default, task, NULL );
25227         if( status ) return errno;
25228
25229         /* give thread a chance to complete */
25230         /* it should remain joinable and hence detachable */
25231         sleep( 1 );
25232
25233         status = pthread_detach( &t );
25234         if( status ) return errno;
25235 #endif
25236
25237 #ifdef HAVE_LINUX_THREADS
25238         pthread_kill_other_threads_np();
25239 #endif
25240
25241         return 0;
25242
25243   ;
25244   return 0;
25245 }
25246 _ACEOF
25247 rm -f conftest.$ac_objext conftest$ac_exeext
25248 if { (ac_try="$ac_link"
25249 case "(($ac_try" in
25250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251   *) ac_try_echo=$ac_try;;
25252 esac
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254   (eval "$ac_link") 2>conftest.er1
25255   ac_status=$?
25256   grep -v '^ *+' conftest.er1 >conftest.err
25257   rm -f conftest.er1
25258   cat conftest.err >&5
25259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); } &&
25261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25262   { (case "(($ac_try" in
25263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25264   *) ac_try_echo=$ac_try;;
25265 esac
25266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25267   (eval "$ac_try") 2>&5
25268   ac_status=$?
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); }; } &&
25271          { ac_try='test -s conftest$ac_exeext'
25272   { (case "(($ac_try" in
25273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274   *) ac_try_echo=$ac_try;;
25275 esac
25276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25277   (eval "$ac_try") 2>&5
25278   ac_status=$?
25279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280   (exit $ac_status); }; }; then
25281   ol_cv_pthread_lpthreads_lexc=yes
25282 else
25283   echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286         ol_cv_pthread_lpthreads_lexc=no
25287 fi
25288
25289 rm -f core conftest.err conftest.$ac_objext \
25290       conftest$ac_exeext conftest.$ac_ext
25291 else
25292   cat >conftest.$ac_ext <<_ACEOF
25293 /* confdefs.h.  */
25294 _ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h.  */
25298
25299 /* pthread test headers */
25300 #include <pthread.h>
25301 #if HAVE_PTHREADS < 7
25302 #include <errno.h>
25303 #endif
25304 #ifndef NULL
25305 #define NULL (void*)0
25306 #endif
25307
25308 static void *task(p)
25309         void *p;
25310 {
25311         return (void *) (p == NULL);
25312 }
25313
25314
25315 int main(argc, argv)
25316         int argc;
25317         char **argv;
25318 {
25319
25320         /* pthread test function */
25321 #ifndef PTHREAD_CREATE_DETACHED
25322 #define PTHREAD_CREATE_DETACHED 1
25323 #endif
25324         pthread_t t;
25325         int status;
25326         int detach = PTHREAD_CREATE_DETACHED;
25327
25328 #if HAVE_PTHREADS > 4
25329         /* Final pthreads */
25330         pthread_attr_t attr;
25331
25332         status = pthread_attr_init(&attr);
25333         if( status ) return status;
25334
25335 #if HAVE_PTHREADS < 7
25336         status = pthread_attr_setdetachstate(&attr, &detach);
25337         if( status < 0 ) status = errno;
25338 #else
25339         status = pthread_attr_setdetachstate(&attr, detach);
25340 #endif
25341         if( status ) return status;
25342         status = pthread_create( &t, &attr, task, NULL );
25343 #if HAVE_PTHREADS < 7
25344         if( status < 0 ) status = errno;
25345 #endif
25346         if( status ) return status;
25347 #else
25348         /* Draft 4 pthreads */
25349         status = pthread_create( &t, pthread_attr_default, task, NULL );
25350         if( status ) return errno;
25351
25352         /* give thread a chance to complete */
25353         /* it should remain joinable and hence detachable */
25354         sleep( 1 );
25355
25356         status = pthread_detach( &t );
25357         if( status ) return errno;
25358 #endif
25359
25360 #ifdef HAVE_LINUX_THREADS
25361         pthread_kill_other_threads_np();
25362 #endif
25363
25364         return 0;
25365
25366 }
25367
25368 _ACEOF
25369 rm -f conftest$ac_exeext
25370 if { (ac_try="$ac_link"
25371 case "(($ac_try" in
25372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373   *) ac_try_echo=$ac_try;;
25374 esac
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376   (eval "$ac_link") 2>&5
25377   ac_status=$?
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25380   { (case "(($ac_try" in
25381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382   *) ac_try_echo=$ac_try;;
25383 esac
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385   (eval "$ac_try") 2>&5
25386   ac_status=$?
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); }; }; then
25389   ol_cv_pthread_lpthreads_lexc=yes
25390 else
25391   echo "$as_me: program exited with status $ac_status" >&5
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25394
25395 ( exit $ac_status )
25396 ol_cv_pthread_lpthreads_lexc=no
25397 fi
25398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25399 fi
25400
25401
25402
25403                 # restore the LIBS
25404                 LIBS="$ol_LIBS"
25405
25406 fi
25407 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
25408 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
25409
25410         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
25411                 ol_link_pthreads="-lpthreads -lexc"
25412                 ol_link_threads=posix
25413         fi
25414 fi
25415
25416
25417                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
25418 if test "$ol_link_threads" = no ; then
25419         # try -lpthreads
25420         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
25421 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
25422 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
25423   echo $ECHO_N "(cached) $ECHO_C" >&6
25424 else
25425
25426                 # save the flags
25427                 ol_LIBS="$LIBS"
25428                 LIBS="-lpthreads $LIBS"
25429
25430                 if test "$cross_compiling" = yes; then
25431   cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h.  */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h.  */
25437
25438 /* pthread test headers */
25439 #include <pthread.h>
25440 #if HAVE_PTHREADS < 7
25441 #include <errno.h>
25442 #endif
25443 #ifndef NULL
25444 #define NULL (void*)0
25445 #endif
25446
25447 static void *task(p)
25448         void *p;
25449 {
25450         return (void *) (p == NULL);
25451 }
25452
25453 int
25454 main ()
25455 {
25456
25457         /* pthread test function */
25458 #ifndef PTHREAD_CREATE_DETACHED
25459 #define PTHREAD_CREATE_DETACHED 1
25460 #endif
25461         pthread_t t;
25462         int status;
25463         int detach = PTHREAD_CREATE_DETACHED;
25464
25465 #if HAVE_PTHREADS > 4
25466         /* Final pthreads */
25467         pthread_attr_t attr;
25468
25469         status = pthread_attr_init(&attr);
25470         if( status ) return status;
25471
25472 #if HAVE_PTHREADS < 7
25473         status = pthread_attr_setdetachstate(&attr, &detach);
25474         if( status < 0 ) status = errno;
25475 #else
25476         status = pthread_attr_setdetachstate(&attr, detach);
25477 #endif
25478         if( status ) return status;
25479         status = pthread_create( &t, &attr, task, NULL );
25480 #if HAVE_PTHREADS < 7
25481         if( status < 0 ) status = errno;
25482 #endif
25483         if( status ) return status;
25484 #else
25485         /* Draft 4 pthreads */
25486         status = pthread_create( &t, pthread_attr_default, task, NULL );
25487         if( status ) return errno;
25488
25489         /* give thread a chance to complete */
25490         /* it should remain joinable and hence detachable */
25491         sleep( 1 );
25492
25493         status = pthread_detach( &t );
25494         if( status ) return errno;
25495 #endif
25496
25497 #ifdef HAVE_LINUX_THREADS
25498         pthread_kill_other_threads_np();
25499 #endif
25500
25501         return 0;
25502
25503   ;
25504   return 0;
25505 }
25506 _ACEOF
25507 rm -f conftest.$ac_objext conftest$ac_exeext
25508 if { (ac_try="$ac_link"
25509 case "(($ac_try" in
25510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511   *) ac_try_echo=$ac_try;;
25512 esac
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514   (eval "$ac_link") 2>conftest.er1
25515   ac_status=$?
25516   grep -v '^ *+' conftest.er1 >conftest.err
25517   rm -f conftest.er1
25518   cat conftest.err >&5
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); } &&
25521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25522   { (case "(($ac_try" in
25523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524   *) ac_try_echo=$ac_try;;
25525 esac
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527   (eval "$ac_try") 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); }; } &&
25531          { ac_try='test -s conftest$ac_exeext'
25532   { (case "(($ac_try" in
25533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534   *) ac_try_echo=$ac_try;;
25535 esac
25536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25537   (eval "$ac_try") 2>&5
25538   ac_status=$?
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); }; }; then
25541   ol_cv_pthread_lib_lpthreads=yes
25542 else
25543   echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546         ol_cv_pthread_lib_lpthreads=no
25547 fi
25548
25549 rm -f core conftest.err conftest.$ac_objext \
25550       conftest$ac_exeext conftest.$ac_ext
25551 else
25552   cat >conftest.$ac_ext <<_ACEOF
25553 /* confdefs.h.  */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h.  */
25558
25559 /* pthread test headers */
25560 #include <pthread.h>
25561 #if HAVE_PTHREADS < 7
25562 #include <errno.h>
25563 #endif
25564 #ifndef NULL
25565 #define NULL (void*)0
25566 #endif
25567
25568 static void *task(p)
25569         void *p;
25570 {
25571         return (void *) (p == NULL);
25572 }
25573
25574
25575 int main(argc, argv)
25576         int argc;
25577         char **argv;
25578 {
25579
25580         /* pthread test function */
25581 #ifndef PTHREAD_CREATE_DETACHED
25582 #define PTHREAD_CREATE_DETACHED 1
25583 #endif
25584         pthread_t t;
25585         int status;
25586         int detach = PTHREAD_CREATE_DETACHED;
25587
25588 #if HAVE_PTHREADS > 4
25589         /* Final pthreads */
25590         pthread_attr_t attr;
25591
25592         status = pthread_attr_init(&attr);
25593         if( status ) return status;
25594
25595 #if HAVE_PTHREADS < 7
25596         status = pthread_attr_setdetachstate(&attr, &detach);
25597         if( status < 0 ) status = errno;
25598 #else
25599         status = pthread_attr_setdetachstate(&attr, detach);
25600 #endif
25601         if( status ) return status;
25602         status = pthread_create( &t, &attr, task, NULL );
25603 #if HAVE_PTHREADS < 7
25604         if( status < 0 ) status = errno;
25605 #endif
25606         if( status ) return status;
25607 #else
25608         /* Draft 4 pthreads */
25609         status = pthread_create( &t, pthread_attr_default, task, NULL );
25610         if( status ) return errno;
25611
25612         /* give thread a chance to complete */
25613         /* it should remain joinable and hence detachable */
25614         sleep( 1 );
25615
25616         status = pthread_detach( &t );
25617         if( status ) return errno;
25618 #endif
25619
25620 #ifdef HAVE_LINUX_THREADS
25621         pthread_kill_other_threads_np();
25622 #endif
25623
25624         return 0;
25625
25626 }
25627
25628 _ACEOF
25629 rm -f conftest$ac_exeext
25630 if { (ac_try="$ac_link"
25631 case "(($ac_try" in
25632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633   *) ac_try_echo=$ac_try;;
25634 esac
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636   (eval "$ac_link") 2>&5
25637   ac_status=$?
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25640   { (case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_try") 2>&5
25646   ac_status=$?
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); }; }; then
25649   ol_cv_pthread_lib_lpthreads=yes
25650 else
25651   echo "$as_me: program exited with status $ac_status" >&5
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655 ( exit $ac_status )
25656 ol_cv_pthread_lib_lpthreads=no
25657 fi
25658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25659 fi
25660
25661
25662
25663                 # restore the LIBS
25664                 LIBS="$ol_LIBS"
25665
25666 fi
25667 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
25668 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
25669
25670         if test $ol_cv_pthread_lib_lpthreads = yes ; then
25671                 ol_link_pthreads="-lpthreads"
25672                 ol_link_threads=posix
25673         fi
25674 fi
25675
25676
25677                 if test $ol_link_threads != no ; then
25678                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
25679
25680                                                 save_CPPFLAGS="$CPPFLAGS"
25681                         save_LIBS="$LIBS"
25682                         LIBS="$LTHREAD_LIBS $LIBS"
25683
25684
25685
25686
25687 for ac_func in sched_yield pthread_yield thr_yield
25688 do
25689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25693   echo $ECHO_N "(cached) $ECHO_C" >&6
25694 else
25695   cat >conftest.$ac_ext <<_ACEOF
25696 /* confdefs.h.  */
25697 _ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h.  */
25701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25703 #define $ac_func innocuous_$ac_func
25704
25705 /* System header to define __stub macros and hopefully few prototypes,
25706     which can conflict with char $ac_func (); below.
25707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25708     <limits.h> exists even on freestanding compilers.  */
25709
25710 #ifdef __STDC__
25711 # include <limits.h>
25712 #else
25713 # include <assert.h>
25714 #endif
25715
25716 #undef $ac_func
25717
25718 /* Override any GCC internal prototype to avoid an error.
25719    Use char because int might match the return type of a GCC
25720    builtin and then its argument prototype would still apply.  */
25721 #ifdef __cplusplus
25722 extern "C"
25723 #endif
25724 char $ac_func ();
25725 /* The GNU C library defines this for functions which it implements
25726     to always fail with ENOSYS.  Some functions are actually named
25727     something starting with __ and the normal name is an alias.  */
25728 #if defined __stub_$ac_func || defined __stub___$ac_func
25729 choke me
25730 #endif
25731
25732 int
25733 main ()
25734 {
25735 return $ac_func ();
25736   ;
25737   return 0;
25738 }
25739 _ACEOF
25740 rm -f conftest.$ac_objext conftest$ac_exeext
25741 if { (ac_try="$ac_link"
25742 case "(($ac_try" in
25743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744   *) ac_try_echo=$ac_try;;
25745 esac
25746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25747   (eval "$ac_link") 2>conftest.er1
25748   ac_status=$?
25749   grep -v '^ *+' conftest.er1 >conftest.err
25750   rm -f conftest.er1
25751   cat conftest.err >&5
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); } &&
25754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25755   { (case "(($ac_try" in
25756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757   *) ac_try_echo=$ac_try;;
25758 esac
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760   (eval "$ac_try") 2>&5
25761   ac_status=$?
25762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763   (exit $ac_status); }; } &&
25764          { ac_try='test -s conftest$ac_exeext'
25765   { (case "(($ac_try" in
25766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25767   *) ac_try_echo=$ac_try;;
25768 esac
25769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25770   (eval "$ac_try") 2>&5
25771   ac_status=$?
25772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); }; }; then
25774   eval "$as_ac_var=yes"
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779         eval "$as_ac_var=no"
25780 fi
25781
25782 rm -f core conftest.err conftest.$ac_objext \
25783       conftest$ac_exeext conftest.$ac_ext
25784 fi
25785 ac_res=`eval echo '${'$as_ac_var'}'`
25786                { echo "$as_me:$LINENO: result: $ac_res" >&5
25787 echo "${ECHO_T}$ac_res" >&6; }
25788 if test `eval echo '${'$as_ac_var'}'` = yes; then
25789   cat >>confdefs.h <<_ACEOF
25790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25791 _ACEOF
25792
25793 fi
25794 done
25795
25796
25797                         if test $ac_cv_func_sched_yield = no &&
25798                            test $ac_cv_func_pthread_yield = no &&
25799                            test $ac_cv_func_thr_yield = no ; then
25800                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
25801 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
25802 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
25803   echo $ECHO_N "(cached) $ECHO_C" >&6
25804 else
25805   ac_check_lib_save_LIBS=$LIBS
25806 LIBS="-lrt  $LIBS"
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813
25814 /* Override any GCC internal prototype to avoid an error.
25815    Use char because int might match the return type of a GCC
25816    builtin and then its argument prototype would still apply.  */
25817 #ifdef __cplusplus
25818 extern "C"
25819 #endif
25820 char sched_yield ();
25821 int
25822 main ()
25823 {
25824 return sched_yield ();
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (ac_try="$ac_link"
25831 case "(($ac_try" in
25832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833   *) ac_try_echo=$ac_try;;
25834 esac
25835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25836   (eval "$ac_link") 2>conftest.er1
25837   ac_status=$?
25838   grep -v '^ *+' conftest.er1 >conftest.err
25839   rm -f conftest.er1
25840   cat conftest.err >&5
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); } &&
25843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25844   { (case "(($ac_try" in
25845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846   *) ac_try_echo=$ac_try;;
25847 esac
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849   (eval "$ac_try") 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); }; } &&
25853          { ac_try='test -s conftest$ac_exeext'
25854   { (case "(($ac_try" in
25855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856   *) ac_try_echo=$ac_try;;
25857 esac
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859   (eval "$ac_try") 2>&5
25860   ac_status=$?
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); }; }; then
25863   ac_cv_lib_rt_sched_yield=yes
25864 else
25865   echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868         ac_cv_lib_rt_sched_yield=no
25869 fi
25870
25871 rm -f core conftest.err conftest.$ac_objext \
25872       conftest$ac_exeext conftest.$ac_ext
25873 LIBS=$ac_check_lib_save_LIBS
25874 fi
25875 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
25876 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
25877 if test $ac_cv_lib_rt_sched_yield = yes; then
25878   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
25879
25880 cat >>confdefs.h <<\_ACEOF
25881 #define HAVE_SCHED_YIELD 1
25882 _ACEOF
25883
25884                                         ac_cv_func_sched_yield=yes
25885 else
25886   ac_cv_func_sched_yield=no
25887 fi
25888
25889                         fi
25890                         if test $ac_cv_func_sched_yield = no &&
25891                            test $ac_cv_func_pthread_yield = no &&
25892                            test "$ac_cv_func_thr_yield" = no ; then
25893                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
25894 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
25895                         fi
25896
25897
25898 for ac_func in pthread_kill
25899 do
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25914 #define $ac_func innocuous_$ac_func
25915
25916 /* System header to define __stub macros and hopefully few prototypes,
25917     which can conflict with char $ac_func (); below.
25918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919     <limits.h> exists even on freestanding compilers.  */
25920
25921 #ifdef __STDC__
25922 # include <limits.h>
25923 #else
25924 # include <assert.h>
25925 #endif
25926
25927 #undef $ac_func
25928
25929 /* Override any GCC internal prototype to avoid an error.
25930    Use char because int might match the return type of a GCC
25931    builtin and then its argument prototype would still apply.  */
25932 #ifdef __cplusplus
25933 extern "C"
25934 #endif
25935 char $ac_func ();
25936 /* The GNU C library defines this for functions which it implements
25937     to always fail with ENOSYS.  Some functions are actually named
25938     something starting with __ and the normal name is an alias.  */
25939 #if defined __stub_$ac_func || defined __stub___$ac_func
25940 choke me
25941 #endif
25942
25943 int
25944 main ()
25945 {
25946 return $ac_func ();
25947   ;
25948   return 0;
25949 }
25950 _ACEOF
25951 rm -f conftest.$ac_objext conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958   (eval "$ac_link") 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } &&
25965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25966   { (case "(($ac_try" in
25967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968   *) ac_try_echo=$ac_try;;
25969 esac
25970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25971   (eval "$ac_try") 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; } &&
25975          { ac_try='test -s conftest$ac_exeext'
25976   { (case "(($ac_try" in
25977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978   *) ac_try_echo=$ac_try;;
25979 esac
25980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25981   (eval "$ac_try") 2>&5
25982   ac_status=$?
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); }; }; then
25985   eval "$as_ac_var=yes"
25986 else
25987   echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25989
25990         eval "$as_ac_var=no"
25991 fi
25992
25993 rm -f core conftest.err conftest.$ac_objext \
25994       conftest$ac_exeext conftest.$ac_ext
25995 fi
25996 ac_res=`eval echo '${'$as_ac_var'}'`
25997                { echo "$as_me:$LINENO: result: $ac_res" >&5
25998 echo "${ECHO_T}$ac_res" >&6; }
25999 if test `eval echo '${'$as_ac_var'}'` = yes; then
26000   cat >>confdefs.h <<_ACEOF
26001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26002 _ACEOF
26003
26004 fi
26005 done
26006
26007
26008                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26009 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
26010 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013
26014                                                                 cat >conftest.$ac_ext <<_ACEOF
26015 /* confdefs.h.  */
26016 _ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h.  */
26020
26021 #include <pthread.h>
26022 pthread_rwlock_t rwlock;
26023
26024 int
26025 main ()
26026 {
26027 pthread_rwlock_destroy(&rwlock);
26028   ;
26029   return 0;
26030 }
26031 _ACEOF
26032 rm -f conftest.$ac_objext conftest$ac_exeext
26033 if { (ac_try="$ac_link"
26034 case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039   (eval "$ac_link") 2>conftest.er1
26040   ac_status=$?
26041   grep -v '^ *+' conftest.er1 >conftest.err
26042   rm -f conftest.er1
26043   cat conftest.err >&5
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } &&
26046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26047   { (case "(($ac_try" in
26048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049   *) ac_try_echo=$ac_try;;
26050 esac
26051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26052   (eval "$ac_try") 2>&5
26053   ac_status=$?
26054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055   (exit $ac_status); }; } &&
26056          { ac_try='test -s conftest$ac_exeext'
26057   { (case "(($ac_try" in
26058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059   *) ac_try_echo=$ac_try;;
26060 esac
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062   (eval "$ac_try") 2>&5
26063   ac_status=$?
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); }; }; then
26066   ol_cv_func_pthread_rwlock_destroy=yes
26067 else
26068   echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26070
26071         ol_cv_func_pthread_rwlock_destroy=no
26072 fi
26073
26074 rm -f core conftest.err conftest.$ac_objext \
26075       conftest$ac_exeext conftest.$ac_ext
26076
26077 fi
26078 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26079 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
26080                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26081
26082 cat >>confdefs.h <<\_ACEOF
26083 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
26084 _ACEOF
26085
26086                         fi
26087
26088                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
26089 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
26090 if test "${ol_cv_func_pthread_detach+set}" = set; then
26091   echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093
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 #include <pthread.h>
26102 #ifndef NULL
26103 #define NULL (void*)0
26104 #endif
26105
26106 int
26107 main ()
26108 {
26109 pthread_detach(NULL);
26110   ;
26111   return 0;
26112 }
26113 _ACEOF
26114 rm -f conftest.$ac_objext conftest$ac_exeext
26115 if { (ac_try="$ac_link"
26116 case "(($ac_try" in
26117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118   *) ac_try_echo=$ac_try;;
26119 esac
26120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26121   (eval "$ac_link") 2>conftest.er1
26122   ac_status=$?
26123   grep -v '^ *+' conftest.er1 >conftest.err
26124   rm -f conftest.er1
26125   cat conftest.err >&5
26126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127   (exit $ac_status); } &&
26128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26129   { (case "(($ac_try" in
26130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131   *) ac_try_echo=$ac_try;;
26132 esac
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134   (eval "$ac_try") 2>&5
26135   ac_status=$?
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); }; } &&
26138          { ac_try='test -s conftest$ac_exeext'
26139   { (case "(($ac_try" in
26140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141   *) ac_try_echo=$ac_try;;
26142 esac
26143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26144   (eval "$ac_try") 2>&5
26145   ac_status=$?
26146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147   (exit $ac_status); }; }; then
26148   ol_cv_func_pthread_detach=yes
26149 else
26150   echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26152
26153         ol_cv_func_pthread_detach=no
26154 fi
26155
26156 rm -f core conftest.err conftest.$ac_objext \
26157       conftest$ac_exeext conftest.$ac_ext
26158
26159 fi
26160 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
26161 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
26162
26163                         if test $ol_cv_func_pthread_detach = no ; then
26164                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
26165 echo "$as_me: error: could not locate pthread_detach()" >&2;}
26166    { (exit 1); exit 1; }; }
26167                         fi
26168
26169
26170 cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_PTHREAD_DETACH 1
26172 _ACEOF
26173
26174
26175
26176
26177
26178
26179 for ac_func in \
26180                                 pthread_setconcurrency \
26181                                 pthread_getconcurrency \
26182                                 thr_setconcurrency \
26183                                 thr_getconcurrency \
26184
26185 do
26186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26190   echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192   cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h.  */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h.  */
26198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26200 #define $ac_func innocuous_$ac_func
26201
26202 /* System header to define __stub macros and hopefully few prototypes,
26203     which can conflict with char $ac_func (); below.
26204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26205     <limits.h> exists even on freestanding compilers.  */
26206
26207 #ifdef __STDC__
26208 # include <limits.h>
26209 #else
26210 # include <assert.h>
26211 #endif
26212
26213 #undef $ac_func
26214
26215 /* Override any GCC internal prototype to avoid an error.
26216    Use char because int might match the return type of a GCC
26217    builtin and then its argument prototype would still apply.  */
26218 #ifdef __cplusplus
26219 extern "C"
26220 #endif
26221 char $ac_func ();
26222 /* The GNU C library defines this for functions which it implements
26223     to always fail with ENOSYS.  Some functions are actually named
26224     something starting with __ and the normal name is an alias.  */
26225 #if defined __stub_$ac_func || defined __stub___$ac_func
26226 choke me
26227 #endif
26228
26229 int
26230 main ()
26231 {
26232 return $ac_func ();
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 rm -f conftest.$ac_objext conftest$ac_exeext
26238 if { (ac_try="$ac_link"
26239 case "(($ac_try" in
26240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241   *) ac_try_echo=$ac_try;;
26242 esac
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244   (eval "$ac_link") 2>conftest.er1
26245   ac_status=$?
26246   grep -v '^ *+' conftest.er1 >conftest.err
26247   rm -f conftest.er1
26248   cat conftest.err >&5
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); } &&
26251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26252   { (case "(($ac_try" in
26253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254   *) ac_try_echo=$ac_try;;
26255 esac
26256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257   (eval "$ac_try") 2>&5
26258   ac_status=$?
26259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); }; } &&
26261          { ac_try='test -s conftest$ac_exeext'
26262   { (case "(($ac_try" in
26263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26264   *) ac_try_echo=$ac_try;;
26265 esac
26266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26267   (eval "$ac_try") 2>&5
26268   ac_status=$?
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); }; }; then
26271   eval "$as_ac_var=yes"
26272 else
26273   echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26275
26276         eval "$as_ac_var=no"
26277 fi
26278
26279 rm -f core conftest.err conftest.$ac_objext \
26280       conftest$ac_exeext conftest.$ac_ext
26281 fi
26282 ac_res=`eval echo '${'$as_ac_var'}'`
26283                { echo "$as_me:$LINENO: result: $ac_res" >&5
26284 echo "${ECHO_T}$ac_res" >&6; }
26285 if test `eval echo '${'$as_ac_var'}'` = yes; then
26286   cat >>confdefs.h <<_ACEOF
26287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26288 _ACEOF
26289
26290 fi
26291 done
26292
26293
26294
26295
26296 for ac_func in pthread_kill_other_threads_np
26297 do
26298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26302   echo $ECHO_N "(cached) $ECHO_C" >&6
26303 else
26304   cat >conftest.$ac_ext <<_ACEOF
26305 /* confdefs.h.  */
26306 _ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h.  */
26310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26312 #define $ac_func innocuous_$ac_func
26313
26314 /* System header to define __stub macros and hopefully few prototypes,
26315     which can conflict with char $ac_func (); below.
26316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26317     <limits.h> exists even on freestanding compilers.  */
26318
26319 #ifdef __STDC__
26320 # include <limits.h>
26321 #else
26322 # include <assert.h>
26323 #endif
26324
26325 #undef $ac_func
26326
26327 /* Override any GCC internal prototype to avoid an error.
26328    Use char because int might match the return type of a GCC
26329    builtin and then its argument prototype would still apply.  */
26330 #ifdef __cplusplus
26331 extern "C"
26332 #endif
26333 char $ac_func ();
26334 /* The GNU C library defines this for functions which it implements
26335     to always fail with ENOSYS.  Some functions are actually named
26336     something starting with __ and the normal name is an alias.  */
26337 #if defined __stub_$ac_func || defined __stub___$ac_func
26338 choke me
26339 #endif
26340
26341 int
26342 main ()
26343 {
26344 return $ac_func ();
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 rm -f conftest.$ac_objext conftest$ac_exeext
26350 if { (ac_try="$ac_link"
26351 case "(($ac_try" in
26352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353   *) ac_try_echo=$ac_try;;
26354 esac
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26356   (eval "$ac_link") 2>conftest.er1
26357   ac_status=$?
26358   grep -v '^ *+' conftest.er1 >conftest.err
26359   rm -f conftest.er1
26360   cat conftest.err >&5
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); } &&
26363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26364   { (case "(($ac_try" in
26365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366   *) ac_try_echo=$ac_try;;
26367 esac
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369   (eval "$ac_try") 2>&5
26370   ac_status=$?
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); }; } &&
26373          { ac_try='test -s conftest$ac_exeext'
26374   { (case "(($ac_try" in
26375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376   *) ac_try_echo=$ac_try;;
26377 esac
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379   (eval "$ac_try") 2>&5
26380   ac_status=$?
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); }; }; then
26383   eval "$as_ac_var=yes"
26384 else
26385   echo "$as_me: failed program was:" >&5
26386 sed 's/^/| /' conftest.$ac_ext >&5
26387
26388         eval "$as_ac_var=no"
26389 fi
26390
26391 rm -f core conftest.err conftest.$ac_objext \
26392       conftest$ac_exeext conftest.$ac_ext
26393 fi
26394 ac_res=`eval echo '${'$as_ac_var'}'`
26395                { echo "$as_me:$LINENO: result: $ac_res" >&5
26396 echo "${ECHO_T}$ac_res" >&6; }
26397 if test `eval echo '${'$as_ac_var'}'` = yes; then
26398   cat >>confdefs.h <<_ACEOF
26399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26400 _ACEOF
26401
26402 fi
26403 done
26404
26405         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
26406 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
26407 if test "${ol_cv_sys_linux_threads+set}" = set; then
26408   echo $ECHO_N "(cached) $ECHO_C" >&6
26409 else
26410   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26411 fi
26412 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
26413 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
26414
26415
26416
26417
26418         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
26419 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
26420 if test "${ol_cv_linux_threads+set}" = set; then
26421   echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423
26424                 if test $ol_cv_header_linux_threads = yes &&
26425                    test $ol_cv_sys_linux_threads = yes; then
26426                         ol_cv_linux_threads=yes
26427                 elif test $ol_cv_header_linux_threads = no &&
26428                      test $ol_cv_sys_linux_threads = no; then
26429                         ol_cv_linux_threads=no
26430                 else
26431                         ol_cv_linux_threads=error
26432                 fi
26433
26434 fi
26435 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
26436 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
26437
26438
26439                         if test $ol_cv_linux_threads = error; then
26440                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
26441 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
26442    { (exit 1); exit 1; }; };
26443                         fi
26444
26445                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
26446 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
26447 if test "${ol_cv_pthread_create_works+set}" = set; then
26448   echo $ECHO_N "(cached) $ECHO_C" >&6
26449 else
26450
26451                         if test "$cross_compiling" = yes; then
26452                                 ol_cv_pthread_create_works=yes
26453 else
26454   cat >conftest.$ac_ext <<_ACEOF
26455 /* confdefs.h.  */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h.  */
26460
26461 /* pthread test headers */
26462 #include <pthread.h>
26463 #if HAVE_PTHREADS < 7
26464 #include <errno.h>
26465 #endif
26466 #ifndef NULL
26467 #define NULL (void*)0
26468 #endif
26469
26470 static void *task(p)
26471         void *p;
26472 {
26473         return (void *) (p == NULL);
26474 }
26475
26476
26477 int main(argc, argv)
26478         int argc;
26479         char **argv;
26480 {
26481
26482         /* pthread test function */
26483 #ifndef PTHREAD_CREATE_DETACHED
26484 #define PTHREAD_CREATE_DETACHED 1
26485 #endif
26486         pthread_t t;
26487         int status;
26488         int detach = PTHREAD_CREATE_DETACHED;
26489
26490 #if HAVE_PTHREADS > 4
26491         /* Final pthreads */
26492         pthread_attr_t attr;
26493
26494         status = pthread_attr_init(&attr);
26495         if( status ) return status;
26496
26497 #if HAVE_PTHREADS < 7
26498         status = pthread_attr_setdetachstate(&attr, &detach);
26499         if( status < 0 ) status = errno;
26500 #else
26501         status = pthread_attr_setdetachstate(&attr, detach);
26502 #endif
26503         if( status ) return status;
26504         status = pthread_create( &t, &attr, task, NULL );
26505 #if HAVE_PTHREADS < 7
26506         if( status < 0 ) status = errno;
26507 #endif
26508         if( status ) return status;
26509 #else
26510         /* Draft 4 pthreads */
26511         status = pthread_create( &t, pthread_attr_default, task, NULL );
26512         if( status ) return errno;
26513
26514         /* give thread a chance to complete */
26515         /* it should remain joinable and hence detachable */
26516         sleep( 1 );
26517
26518         status = pthread_detach( &t );
26519         if( status ) return errno;
26520 #endif
26521
26522 #ifdef HAVE_LINUX_THREADS
26523         pthread_kill_other_threads_np();
26524 #endif
26525
26526         return 0;
26527
26528 }
26529
26530 _ACEOF
26531 rm -f conftest$ac_exeext
26532 if { (ac_try="$ac_link"
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_link") 2>&5
26539   ac_status=$?
26540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26542   { (case "(($ac_try" in
26543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544   *) ac_try_echo=$ac_try;;
26545 esac
26546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26547   (eval "$ac_try") 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; }; then
26551   ol_cv_pthread_create_works=yes
26552 else
26553   echo "$as_me: program exited with status $ac_status" >&5
26554 echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26556
26557 ( exit $ac_status )
26558 ol_cv_pthread_create_works=no
26559 fi
26560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26561 fi
26562
26563
26564 fi
26565 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
26566 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
26567
26568                         if test $ol_cv_pthread_create_works = no ; then
26569                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
26570 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
26571    { (exit 1); exit 1; }; }
26572                         fi
26573
26574                         ol_replace_broken_yield=no
26575
26576                         if test $ol_replace_broken_yield = yes ; then
26577
26578 cat >>confdefs.h <<\_ACEOF
26579 #define REPLACE_BROKEN_YIELD 1
26580 _ACEOF
26581
26582                         fi
26583
26584                                                 if test $ol_with_yielding_select = auto ; then
26585                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
26586 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
26587 if test "${ol_cv_pthread_select_yields+set}" = set; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590
26591                                 if test "$cross_compiling" = yes; then
26592   ol_cv_pthread_select_yields=cross
26593 else
26594   cat >conftest.$ac_ext <<_ACEOF
26595 /* confdefs.h.  */
26596 _ACEOF
26597 cat confdefs.h >>conftest.$ac_ext
26598 cat >>conftest.$ac_ext <<_ACEOF
26599 /* end confdefs.h.  */
26600
26601 #include <sys/types.h>
26602 #include <sys/time.h>
26603 #include <unistd.h>
26604 #include <pthread.h>
26605 #ifndef NULL
26606 #define NULL (void*) 0
26607 #endif
26608
26609 static int fildes[2];
26610
26611 static void *task(p)
26612         void *p;
26613 {
26614         int i;
26615         struct timeval tv;
26616
26617         fd_set rfds;
26618
26619         tv.tv_sec=10;
26620         tv.tv_usec=0;
26621
26622         FD_ZERO(&rfds);
26623         FD_SET(fildes[0], &rfds);
26624
26625         /* we're not interested in any fds */
26626         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26627
26628         if(i < 0) {
26629                 perror("select");
26630                 exit(10);
26631         }
26632
26633         exit(0); /* if we exit here, the select blocked the whole process */
26634 }
26635
26636 int main(argc, argv)
26637         int argc;
26638         char **argv;
26639 {
26640         pthread_t t;
26641
26642         /* create a pipe to select */
26643         if(pipe(&fildes[0])) {
26644                 perror("select");
26645                 exit(1);
26646         }
26647
26648 #ifdef HAVE_PTHREAD_SETCONCURRENCY
26649         (void) pthread_setconcurrency(2);
26650 #else
26651 #ifdef HAVE_THR_SETCONCURRENCY
26652         /* Set Solaris LWP concurrency to 2 */
26653         thr_setconcurrency(2);
26654 #endif
26655 #endif
26656
26657 #if HAVE_PTHREADS < 6
26658         pthread_create(&t, pthread_attr_default, task, NULL);
26659 #else
26660         pthread_create(&t, NULL, task, NULL);
26661 #endif
26662
26663         /* make sure task runs first */
26664 #ifdef HAVE_THR_YIELD
26665         thr_yield();
26666 #elif defined( HAVE_SCHED_YIELD )
26667         sched_yield();
26668 #elif defined( HAVE_PTHREAD_YIELD )
26669         pthread_yield();
26670 #endif
26671
26672         exit(2);
26673 }
26674 _ACEOF
26675 rm -f conftest$ac_exeext
26676 if { (ac_try="$ac_link"
26677 case "(($ac_try" in
26678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679   *) ac_try_echo=$ac_try;;
26680 esac
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682   (eval "$ac_link") 2>&5
26683   ac_status=$?
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26686   { (case "(($ac_try" in
26687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688   *) ac_try_echo=$ac_try;;
26689 esac
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691   (eval "$ac_try") 2>&5
26692   ac_status=$?
26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); }; }; then
26695   ol_cv_pthread_select_yields=no
26696 else
26697   echo "$as_me: program exited with status $ac_status" >&5
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ( exit $ac_status )
26702 ol_cv_pthread_select_yields=yes
26703 fi
26704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26705 fi
26706
26707
26708 fi
26709 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
26710 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
26711
26712                                 if test $ol_cv_pthread_select_yields = cross ; then
26713                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
26714 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
26715    { (exit 1); exit 1; }; }
26716                                 fi
26717
26718                                 if test $ol_cv_pthread_select_yields = yes ; then
26719                                         ol_with_yielding_select=yes
26720                                 fi
26721                         fi
26722
26723                                                 CPPFLAGS="$save_CPPFLAGS"
26724                         LIBS="$save_LIBS"
26725                 else
26726                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
26727 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
26728    { (exit 1); exit 1; }; }
26729                 fi
26730         fi
26731
26732         if test $ol_with_threads = posix ; then
26733                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
26734 echo "$as_me: error: could not locate POSIX Threads" >&2;}
26735    { (exit 1); exit 1; }; }
26736         fi
26737         ;;
26738 esac
26739
26740 case $ol_with_threads in auto | yes | mach)
26741
26742
26743
26744 for ac_header in mach/cthreads.h cthreads.h
26745 do
26746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26748   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26751   echo $ECHO_N "(cached) $ECHO_C" >&6
26752 fi
26753 ac_res=`eval echo '${'$as_ac_Header'}'`
26754                { echo "$as_me:$LINENO: result: $ac_res" >&5
26755 echo "${ECHO_T}$ac_res" >&6; }
26756 else
26757   # Is the header compilable?
26758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26760 cat >conftest.$ac_ext <<_ACEOF
26761 /* confdefs.h.  */
26762 _ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h.  */
26766 $ac_includes_default
26767 #include <$ac_header>
26768 _ACEOF
26769 rm -f conftest.$ac_objext
26770 if { (ac_try="$ac_compile"
26771 case "(($ac_try" in
26772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773   *) ac_try_echo=$ac_try;;
26774 esac
26775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776   (eval "$ac_compile") 2>conftest.er1
26777   ac_status=$?
26778   grep -v '^ *+' conftest.er1 >conftest.err
26779   rm -f conftest.er1
26780   cat conftest.err >&5
26781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782   (exit $ac_status); } &&
26783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26784   { (case "(($ac_try" in
26785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26786   *) ac_try_echo=$ac_try;;
26787 esac
26788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26789   (eval "$ac_try") 2>&5
26790   ac_status=$?
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); }; } &&
26793          { ac_try='test -s conftest.$ac_objext'
26794   { (case "(($ac_try" in
26795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796   *) ac_try_echo=$ac_try;;
26797 esac
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799   (eval "$ac_try") 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; }; then
26803   ac_header_compiler=yes
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808         ac_header_compiler=no
26809 fi
26810
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26813 echo "${ECHO_T}$ac_header_compiler" >&6; }
26814
26815 # Is the header present?
26816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26818 cat >conftest.$ac_ext <<_ACEOF
26819 /* confdefs.h.  */
26820 _ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h.  */
26824 #include <$ac_header>
26825 _ACEOF
26826 if { (ac_try="$ac_cpp conftest.$ac_ext"
26827 case "(($ac_try" in
26828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829   *) ac_try_echo=$ac_try;;
26830 esac
26831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26833   ac_status=$?
26834   grep -v '^ *+' conftest.er1 >conftest.err
26835   rm -f conftest.er1
26836   cat conftest.err >&5
26837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); } >/dev/null; then
26839   if test -s conftest.err; then
26840     ac_cpp_err=$ac_c_preproc_warn_flag
26841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26842   else
26843     ac_cpp_err=
26844   fi
26845 else
26846   ac_cpp_err=yes
26847 fi
26848 if test -z "$ac_cpp_err"; then
26849   ac_header_preproc=yes
26850 else
26851   echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26853
26854   ac_header_preproc=no
26855 fi
26856
26857 rm -f conftest.err conftest.$ac_ext
26858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26859 echo "${ECHO_T}$ac_header_preproc" >&6; }
26860
26861 # So?  What about this header?
26862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26863   yes:no: )
26864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26868     ac_header_preproc=yes
26869     ;;
26870   no:yes:* )
26871     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26873     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26874 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26875     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26877     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26878 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26881     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26883     ( cat <<\_ASBOX
26884 ## --------------------------------------------- ##
26885 ## Report this to <http://www.openldap.org/its/> ##
26886 ## --------------------------------------------- ##
26887 _ASBOX
26888      ) | sed "s/^/$as_me: WARNING:     /" >&2
26889     ;;
26890 esac
26891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26894   echo $ECHO_N "(cached) $ECHO_C" >&6
26895 else
26896   eval "$as_ac_Header=\$ac_header_preproc"
26897 fi
26898 ac_res=`eval echo '${'$as_ac_Header'}'`
26899                { echo "$as_me:$LINENO: result: $ac_res" >&5
26900 echo "${ECHO_T}$ac_res" >&6; }
26901
26902 fi
26903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26904   cat >>confdefs.h <<_ACEOF
26905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26906 _ACEOF
26907
26908 fi
26909
26910 done
26911
26912         if test $ac_cv_header_mach_cthreads_h = yes ; then
26913                 ol_with_threads=found
26914
26915                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26916 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26917 if test "${ac_cv_func_cthread_fork+set}" = set; then
26918   echo $ECHO_N "(cached) $ECHO_C" >&6
26919 else
26920   cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h.  */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h.  */
26926 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26928 #define cthread_fork innocuous_cthread_fork
26929
26930 /* System header to define __stub macros and hopefully few prototypes,
26931     which can conflict with char cthread_fork (); below.
26932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26933     <limits.h> exists even on freestanding compilers.  */
26934
26935 #ifdef __STDC__
26936 # include <limits.h>
26937 #else
26938 # include <assert.h>
26939 #endif
26940
26941 #undef cthread_fork
26942
26943 /* Override any GCC internal prototype to avoid an error.
26944    Use char because int might match the return type of a GCC
26945    builtin and then its argument prototype would still apply.  */
26946 #ifdef __cplusplus
26947 extern "C"
26948 #endif
26949 char cthread_fork ();
26950 /* The GNU C library defines this for functions which it implements
26951     to always fail with ENOSYS.  Some functions are actually named
26952     something starting with __ and the normal name is an alias.  */
26953 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26954 choke me
26955 #endif
26956
26957 int
26958 main ()
26959 {
26960 return cthread_fork ();
26961   ;
26962   return 0;
26963 }
26964 _ACEOF
26965 rm -f conftest.$ac_objext conftest$ac_exeext
26966 if { (ac_try="$ac_link"
26967 case "(($ac_try" in
26968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969   *) ac_try_echo=$ac_try;;
26970 esac
26971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972   (eval "$ac_link") 2>conftest.er1
26973   ac_status=$?
26974   grep -v '^ *+' conftest.er1 >conftest.err
26975   rm -f conftest.er1
26976   cat conftest.err >&5
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); } &&
26979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26980   { (case "(($ac_try" in
26981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982   *) ac_try_echo=$ac_try;;
26983 esac
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985   (eval "$ac_try") 2>&5
26986   ac_status=$?
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); }; } &&
26989          { ac_try='test -s conftest$ac_exeext'
26990   { (case "(($ac_try" in
26991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992   *) ac_try_echo=$ac_try;;
26993 esac
26994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26995   (eval "$ac_try") 2>&5
26996   ac_status=$?
26997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998   (exit $ac_status); }; }; then
26999   ac_cv_func_cthread_fork=yes
27000 else
27001   echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27003
27004         ac_cv_func_cthread_fork=no
27005 fi
27006
27007 rm -f core conftest.err conftest.$ac_objext \
27008       conftest$ac_exeext conftest.$ac_ext
27009 fi
27010 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
27011 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
27012 if test $ac_cv_func_cthread_fork = yes; then
27013   ol_link_threads=yes
27014 fi
27015
27016
27017                 if test $ol_link_threads = no ; then
27018                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
27019 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
27020 if test "${ol_cv_cthread_all_load+set}" = set; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27023
27024                                                                 save_LIBS="$LIBS"
27025                                 LIBS="-all_load $LIBS"
27026                                 cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27032 #include <mach/cthreads.h>
27033 int
27034 main ()
27035 {
27036
27037                                         cthread_fork((void *)0, (void *)0);
27038
27039   ;
27040   return 0;
27041 }
27042 _ACEOF
27043 rm -f conftest.$ac_objext conftest$ac_exeext
27044 if { (ac_try="$ac_link"
27045 case "(($ac_try" in
27046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047   *) ac_try_echo=$ac_try;;
27048 esac
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050   (eval "$ac_link") 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27058   { (case "(($ac_try" in
27059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060   *) ac_try_echo=$ac_try;;
27061 esac
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063   (eval "$ac_try") 2>&5
27064   ac_status=$?
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); }; } &&
27067          { ac_try='test -s conftest$ac_exeext'
27068   { (case "(($ac_try" in
27069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070   *) ac_try_echo=$ac_try;;
27071 esac
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073   (eval "$ac_try") 2>&5
27074   ac_status=$?
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); }; }; then
27077   ol_cv_cthread_all_load=yes
27078 else
27079   echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082         ol_cv_cthread_all_load=no
27083 fi
27084
27085 rm -f core conftest.err conftest.$ac_objext \
27086       conftest$ac_exeext conftest.$ac_ext
27087                                                                 LIBS="$save_LIBS"
27088
27089 fi
27090 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
27091 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
27092
27093                         if test $ol_cv_cthread_all_load = yes ; then
27094                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
27095                                 ol_link_threads=mach
27096                                 ol_with_threads=found
27097                         fi
27098                 fi
27099
27100         elif test $ac_cv_header_cthreads_h = yes ; then
27101
27102                 ol_with_threads=found
27103
27104                                 save_LIBS="$LIBS"
27105                 LIBS="$LIBS -lthreads"
27106                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
27107 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
27108 if test "${ac_cv_func_cthread_fork+set}" = set; then
27109   echo $ECHO_N "(cached) $ECHO_C" >&6
27110 else
27111   cat >conftest.$ac_ext <<_ACEOF
27112 /* confdefs.h.  */
27113 _ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h.  */
27117 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
27118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27119 #define cthread_fork innocuous_cthread_fork
27120
27121 /* System header to define __stub macros and hopefully few prototypes,
27122     which can conflict with char cthread_fork (); below.
27123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27124     <limits.h> exists even on freestanding compilers.  */
27125
27126 #ifdef __STDC__
27127 # include <limits.h>
27128 #else
27129 # include <assert.h>
27130 #endif
27131
27132 #undef cthread_fork
27133
27134 /* Override any GCC internal prototype to avoid an error.
27135    Use char because int might match the return type of a GCC
27136    builtin and then its argument prototype would still apply.  */
27137 #ifdef __cplusplus
27138 extern "C"
27139 #endif
27140 char cthread_fork ();
27141 /* The GNU C library defines this for functions which it implements
27142     to always fail with ENOSYS.  Some functions are actually named
27143     something starting with __ and the normal name is an alias.  */
27144 #if defined __stub_cthread_fork || defined __stub___cthread_fork
27145 choke me
27146 #endif
27147
27148 int
27149 main ()
27150 {
27151 return cthread_fork ();
27152   ;
27153   return 0;
27154 }
27155 _ACEOF
27156 rm -f conftest.$ac_objext conftest$ac_exeext
27157 if { (ac_try="$ac_link"
27158 case "(($ac_try" in
27159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160   *) ac_try_echo=$ac_try;;
27161 esac
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163   (eval "$ac_link") 2>conftest.er1
27164   ac_status=$?
27165   grep -v '^ *+' conftest.er1 >conftest.err
27166   rm -f conftest.er1
27167   cat conftest.err >&5
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); } &&
27170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27171   { (case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176   (eval "$ac_try") 2>&5
27177   ac_status=$?
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); }; } &&
27180          { ac_try='test -s conftest$ac_exeext'
27181   { (case "(($ac_try" in
27182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183   *) ac_try_echo=$ac_try;;
27184 esac
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186   (eval "$ac_try") 2>&5
27187   ac_status=$?
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); }; }; then
27190   ac_cv_func_cthread_fork=yes
27191 else
27192   echo "$as_me: failed program was:" >&5
27193 sed 's/^/| /' conftest.$ac_ext >&5
27194
27195         ac_cv_func_cthread_fork=no
27196 fi
27197
27198 rm -f core conftest.err conftest.$ac_objext \
27199       conftest$ac_exeext conftest.$ac_ext
27200 fi
27201 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
27202 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
27203 if test $ac_cv_func_cthread_fork = yes; then
27204   ol_link_threads=yes
27205 fi
27206
27207                 LIBS="$save_LIBS"
27208
27209                 if test $ol_link_threads = yes ; then
27210                         LTHREAD_LIBS="-lthreads"
27211                         ol_link_threads=mach
27212                         ol_with_threads=found
27213                 else
27214                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
27215 echo "$as_me: error: could not link with Mach CThreads" >&2;}
27216    { (exit 1); exit 1; }; }
27217                 fi
27218
27219         elif test $ol_with_threads = mach ; then
27220                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
27221 echo "$as_me: error: could not locate Mach CThreads" >&2;}
27222    { (exit 1); exit 1; }; }
27223         fi
27224
27225         if test $ol_link_threads = mach ; then
27226
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_MACH_CTHREADS 1
27229 _ACEOF
27230
27231         elif test $ol_with_threads = found ; then
27232                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
27233 echo "$as_me: error: could not link with Mach CThreads" >&2;}
27234    { (exit 1); exit 1; }; }
27235         fi
27236         ;;
27237 esac
27238
27239 case $ol_with_threads in auto | yes | pth)
27240
27241
27242 for ac_header in pth.h
27243 do
27244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27246   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27249   echo $ECHO_N "(cached) $ECHO_C" >&6
27250 fi
27251 ac_res=`eval echo '${'$as_ac_Header'}'`
27252                { echo "$as_me:$LINENO: result: $ac_res" >&5
27253 echo "${ECHO_T}$ac_res" >&6; }
27254 else
27255   # Is the header compilable?
27256 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27258 cat >conftest.$ac_ext <<_ACEOF
27259 /* confdefs.h.  */
27260 _ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h.  */
27264 $ac_includes_default
27265 #include <$ac_header>
27266 _ACEOF
27267 rm -f conftest.$ac_objext
27268 if { (ac_try="$ac_compile"
27269 case "(($ac_try" in
27270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271   *) ac_try_echo=$ac_try;;
27272 esac
27273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274   (eval "$ac_compile") 2>conftest.er1
27275   ac_status=$?
27276   grep -v '^ *+' conftest.er1 >conftest.err
27277   rm -f conftest.er1
27278   cat conftest.err >&5
27279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280   (exit $ac_status); } &&
27281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27282   { (case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_try") 2>&5
27288   ac_status=$?
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); }; } &&
27291          { ac_try='test -s conftest.$ac_objext'
27292   { (case "(($ac_try" in
27293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294   *) ac_try_echo=$ac_try;;
27295 esac
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297   (eval "$ac_try") 2>&5
27298   ac_status=$?
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); }; }; then
27301   ac_header_compiler=yes
27302 else
27303   echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27305
27306         ac_header_compiler=no
27307 fi
27308
27309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27311 echo "${ECHO_T}$ac_header_compiler" >&6; }
27312
27313 # Is the header present?
27314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27316 cat >conftest.$ac_ext <<_ACEOF
27317 /* confdefs.h.  */
27318 _ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h.  */
27322 #include <$ac_header>
27323 _ACEOF
27324 if { (ac_try="$ac_cpp conftest.$ac_ext"
27325 case "(($ac_try" in
27326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327   *) ac_try_echo=$ac_try;;
27328 esac
27329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27331   ac_status=$?
27332   grep -v '^ *+' conftest.er1 >conftest.err
27333   rm -f conftest.er1
27334   cat conftest.err >&5
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); } >/dev/null; then
27337   if test -s conftest.err; then
27338     ac_cpp_err=$ac_c_preproc_warn_flag
27339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27340   else
27341     ac_cpp_err=
27342   fi
27343 else
27344   ac_cpp_err=yes
27345 fi
27346 if test -z "$ac_cpp_err"; then
27347   ac_header_preproc=yes
27348 else
27349   echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27351
27352   ac_header_preproc=no
27353 fi
27354
27355 rm -f conftest.err conftest.$ac_ext
27356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27357 echo "${ECHO_T}$ac_header_preproc" >&6; }
27358
27359 # So?  What about this header?
27360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27361   yes:no: )
27362     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27366     ac_header_preproc=yes
27367     ;;
27368   no:yes:* )
27369     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27371     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27372 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27373     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27375     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27376 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27379     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27381     ( cat <<\_ASBOX
27382 ## --------------------------------------------- ##
27383 ## Report this to <http://www.openldap.org/its/> ##
27384 ## --------------------------------------------- ##
27385 _ASBOX
27386      ) | sed "s/^/$as_me: WARNING:     /" >&2
27387     ;;
27388 esac
27389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   eval "$as_ac_Header=\$ac_header_preproc"
27395 fi
27396 ac_res=`eval echo '${'$as_ac_Header'}'`
27397                { echo "$as_me:$LINENO: result: $ac_res" >&5
27398 echo "${ECHO_T}$ac_res" >&6; }
27399
27400 fi
27401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27402   cat >>confdefs.h <<_ACEOF
27403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27404 _ACEOF
27405
27406 fi
27407
27408 done
27409
27410
27411         if test $ac_cv_header_pth_h = yes ; then
27412                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
27413 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
27414 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
27415   echo $ECHO_N "(cached) $ECHO_C" >&6
27416 else
27417   ac_check_lib_save_LIBS=$LIBS
27418 LIBS="-lpth  $LIBS"
27419 cat >conftest.$ac_ext <<_ACEOF
27420 /* confdefs.h.  */
27421 _ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h.  */
27425
27426 /* Override any GCC internal prototype to avoid an error.
27427    Use char because int might match the return type of a GCC
27428    builtin and then its argument prototype would still apply.  */
27429 #ifdef __cplusplus
27430 extern "C"
27431 #endif
27432 char pth_version ();
27433 int
27434 main ()
27435 {
27436 return pth_version ();
27437   ;
27438   return 0;
27439 }
27440 _ACEOF
27441 rm -f conftest.$ac_objext conftest$ac_exeext
27442 if { (ac_try="$ac_link"
27443 case "(($ac_try" in
27444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445   *) ac_try_echo=$ac_try;;
27446 esac
27447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448   (eval "$ac_link") 2>conftest.er1
27449   ac_status=$?
27450   grep -v '^ *+' conftest.er1 >conftest.err
27451   rm -f conftest.er1
27452   cat conftest.err >&5
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); } &&
27455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27456   { (case "(($ac_try" in
27457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458   *) ac_try_echo=$ac_try;;
27459 esac
27460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461   (eval "$ac_try") 2>&5
27462   ac_status=$?
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); }; } &&
27465          { ac_try='test -s conftest$ac_exeext'
27466   { (case "(($ac_try" in
27467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468   *) ac_try_echo=$ac_try;;
27469 esac
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471   (eval "$ac_try") 2>&5
27472   ac_status=$?
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); }; }; then
27475   ac_cv_lib_pth_pth_version=yes
27476 else
27477   echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27479
27480         ac_cv_lib_pth_pth_version=no
27481 fi
27482
27483 rm -f core conftest.err conftest.$ac_objext \
27484       conftest$ac_exeext conftest.$ac_ext
27485 LIBS=$ac_check_lib_save_LIBS
27486 fi
27487 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
27488 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
27489 if test $ac_cv_lib_pth_pth_version = yes; then
27490   have_pth=yes
27491 else
27492   have_pth=no
27493 fi
27494
27495
27496                 if test $have_pth = yes ; then
27497
27498 cat >>confdefs.h <<\_ACEOF
27499 #define HAVE_GNU_PTH 1
27500 _ACEOF
27501
27502                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
27503                         ol_link_threads=pth
27504                         ol_with_threads=found
27505
27506                         if test $ol_with_yielding_select = auto ; then
27507                                 ol_with_yielding_select=yes
27508                         fi
27509                 fi
27510         fi
27511         ;;
27512 esac
27513
27514 case $ol_with_threads in auto | yes | lwp)
27515
27516
27517
27518 for ac_header in thread.h synch.h
27519 do
27520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27525   echo $ECHO_N "(cached) $ECHO_C" >&6
27526 fi
27527 ac_res=`eval echo '${'$as_ac_Header'}'`
27528                { echo "$as_me:$LINENO: result: $ac_res" >&5
27529 echo "${ECHO_T}$ac_res" >&6; }
27530 else
27531   # Is the header compilable?
27532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27534 cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h.  */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h.  */
27540 $ac_includes_default
27541 #include <$ac_header>
27542 _ACEOF
27543 rm -f conftest.$ac_objext
27544 if { (ac_try="$ac_compile"
27545 case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550   (eval "$ac_compile") 2>conftest.er1
27551   ac_status=$?
27552   grep -v '^ *+' conftest.er1 >conftest.err
27553   rm -f conftest.er1
27554   cat conftest.err >&5
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); } &&
27557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27558   { (case "(($ac_try" in
27559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560   *) ac_try_echo=$ac_try;;
27561 esac
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563   (eval "$ac_try") 2>&5
27564   ac_status=$?
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); }; } &&
27567          { ac_try='test -s conftest.$ac_objext'
27568   { (case "(($ac_try" in
27569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570   *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573   (eval "$ac_try") 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; }; then
27577   ac_header_compiler=yes
27578 else
27579   echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582         ac_header_compiler=no
27583 fi
27584
27585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27587 echo "${ECHO_T}$ac_header_compiler" >&6; }
27588
27589 # Is the header present?
27590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27592 cat >conftest.$ac_ext <<_ACEOF
27593 /* confdefs.h.  */
27594 _ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h.  */
27598 #include <$ac_header>
27599 _ACEOF
27600 if { (ac_try="$ac_cpp conftest.$ac_ext"
27601 case "(($ac_try" in
27602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603   *) ac_try_echo=$ac_try;;
27604 esac
27605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27607   ac_status=$?
27608   grep -v '^ *+' conftest.er1 >conftest.err
27609   rm -f conftest.er1
27610   cat conftest.err >&5
27611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612   (exit $ac_status); } >/dev/null; then
27613   if test -s conftest.err; then
27614     ac_cpp_err=$ac_c_preproc_warn_flag
27615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27616   else
27617     ac_cpp_err=
27618   fi
27619 else
27620   ac_cpp_err=yes
27621 fi
27622 if test -z "$ac_cpp_err"; then
27623   ac_header_preproc=yes
27624 else
27625   echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27627
27628   ac_header_preproc=no
27629 fi
27630
27631 rm -f conftest.err conftest.$ac_ext
27632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27633 echo "${ECHO_T}$ac_header_preproc" >&6; }
27634
27635 # So?  What about this header?
27636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27637   yes:no: )
27638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27642     ac_header_preproc=yes
27643     ;;
27644   no:yes:* )
27645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27657     ( cat <<\_ASBOX
27658 ## --------------------------------------------- ##
27659 ## Report this to <http://www.openldap.org/its/> ##
27660 ## --------------------------------------------- ##
27661 _ASBOX
27662      ) | sed "s/^/$as_me: WARNING:     /" >&2
27663     ;;
27664 esac
27665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27668   echo $ECHO_N "(cached) $ECHO_C" >&6
27669 else
27670   eval "$as_ac_Header=\$ac_header_preproc"
27671 fi
27672 ac_res=`eval echo '${'$as_ac_Header'}'`
27673                { echo "$as_me:$LINENO: result: $ac_res" >&5
27674 echo "${ECHO_T}$ac_res" >&6; }
27675
27676 fi
27677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27678   cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27680 _ACEOF
27681
27682 fi
27683
27684 done
27685
27686         if test $ac_cv_header_thread_h = yes &&
27687            test $ac_cv_header_synch_h = yes ; then
27688                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
27689 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
27690 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
27691   echo $ECHO_N "(cached) $ECHO_C" >&6
27692 else
27693   ac_check_lib_save_LIBS=$LIBS
27694 LIBS="-lthread  $LIBS"
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h.  */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h.  */
27701
27702 /* Override any GCC internal prototype to avoid an error.
27703    Use char because int might match the return type of a GCC
27704    builtin and then its argument prototype would still apply.  */
27705 #ifdef __cplusplus
27706 extern "C"
27707 #endif
27708 char thr_create ();
27709 int
27710 main ()
27711 {
27712 return thr_create ();
27713   ;
27714   return 0;
27715 }
27716 _ACEOF
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (ac_try="$ac_link"
27719 case "(($ac_try" in
27720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721   *) ac_try_echo=$ac_try;;
27722 esac
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724   (eval "$ac_link") 2>conftest.er1
27725   ac_status=$?
27726   grep -v '^ *+' conftest.er1 >conftest.err
27727   rm -f conftest.er1
27728   cat conftest.err >&5
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); } &&
27731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27732   { (case "(($ac_try" in
27733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734   *) ac_try_echo=$ac_try;;
27735 esac
27736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737   (eval "$ac_try") 2>&5
27738   ac_status=$?
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); }; } &&
27741          { ac_try='test -s conftest$ac_exeext'
27742   { (case "(($ac_try" in
27743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744   *) ac_try_echo=$ac_try;;
27745 esac
27746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747   (eval "$ac_try") 2>&5
27748   ac_status=$?
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); }; }; then
27751   ac_cv_lib_thread_thr_create=yes
27752 else
27753   echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27755
27756         ac_cv_lib_thread_thr_create=no
27757 fi
27758
27759 rm -f core conftest.err conftest.$ac_objext \
27760       conftest$ac_exeext conftest.$ac_ext
27761 LIBS=$ac_check_lib_save_LIBS
27762 fi
27763 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
27764 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
27765 if test $ac_cv_lib_thread_thr_create = yes; then
27766   have_thr=yes
27767 else
27768   have_thr=no
27769 fi
27770
27771
27772                 if test $have_thr = yes ; then
27773
27774 cat >>confdefs.h <<\_ACEOF
27775 #define HAVE_THR 1
27776 _ACEOF
27777
27778                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27779                         ol_link_threads=thr
27780
27781                         if test $ol_with_yielding_select = auto ; then
27782                                 ol_with_yielding_select=yes
27783                         fi
27784
27785
27786
27787 for ac_func in \
27788                                 thr_setconcurrency \
27789                                 thr_getconcurrency \
27790
27791 do
27792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27796   echo $ECHO_N "(cached) $ECHO_C" >&6
27797 else
27798   cat >conftest.$ac_ext <<_ACEOF
27799 /* confdefs.h.  */
27800 _ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h.  */
27804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27806 #define $ac_func innocuous_$ac_func
27807
27808 /* System header to define __stub macros and hopefully few prototypes,
27809     which can conflict with char $ac_func (); below.
27810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811     <limits.h> exists even on freestanding compilers.  */
27812
27813 #ifdef __STDC__
27814 # include <limits.h>
27815 #else
27816 # include <assert.h>
27817 #endif
27818
27819 #undef $ac_func
27820
27821 /* Override any GCC internal prototype to avoid an error.
27822    Use char because int might match the return type of a GCC
27823    builtin and then its argument prototype would still apply.  */
27824 #ifdef __cplusplus
27825 extern "C"
27826 #endif
27827 char $ac_func ();
27828 /* The GNU C library defines this for functions which it implements
27829     to always fail with ENOSYS.  Some functions are actually named
27830     something starting with __ and the normal name is an alias.  */
27831 #if defined __stub_$ac_func || defined __stub___$ac_func
27832 choke me
27833 #endif
27834
27835 int
27836 main ()
27837 {
27838 return $ac_func ();
27839   ;
27840   return 0;
27841 }
27842 _ACEOF
27843 rm -f conftest.$ac_objext conftest$ac_exeext
27844 if { (ac_try="$ac_link"
27845 case "(($ac_try" in
27846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847   *) ac_try_echo=$ac_try;;
27848 esac
27849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850   (eval "$ac_link") 2>conftest.er1
27851   ac_status=$?
27852   grep -v '^ *+' conftest.er1 >conftest.err
27853   rm -f conftest.er1
27854   cat conftest.err >&5
27855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856   (exit $ac_status); } &&
27857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27858   { (case "(($ac_try" in
27859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860   *) ac_try_echo=$ac_try;;
27861 esac
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863   (eval "$ac_try") 2>&5
27864   ac_status=$?
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); }; } &&
27867          { ac_try='test -s conftest$ac_exeext'
27868   { (case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_try") 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; }; then
27877   eval "$as_ac_var=yes"
27878 else
27879   echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27881
27882         eval "$as_ac_var=no"
27883 fi
27884
27885 rm -f core conftest.err conftest.$ac_objext \
27886       conftest$ac_exeext conftest.$ac_ext
27887 fi
27888 ac_res=`eval echo '${'$as_ac_var'}'`
27889                { echo "$as_me:$LINENO: result: $ac_res" >&5
27890 echo "${ECHO_T}$ac_res" >&6; }
27891 if test `eval echo '${'$as_ac_var'}'` = yes; then
27892   cat >>confdefs.h <<_ACEOF
27893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27894 _ACEOF
27895
27896 fi
27897 done
27898
27899                 fi
27900         fi
27901
27902
27903 for ac_header in lwp/lwp.h
27904 do
27905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27910   echo $ECHO_N "(cached) $ECHO_C" >&6
27911 fi
27912 ac_res=`eval echo '${'$as_ac_Header'}'`
27913                { echo "$as_me:$LINENO: result: $ac_res" >&5
27914 echo "${ECHO_T}$ac_res" >&6; }
27915 else
27916   # Is the header compilable?
27917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27919 cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925 $ac_includes_default
27926 #include <$ac_header>
27927 _ACEOF
27928 rm -f conftest.$ac_objext
27929 if { (ac_try="$ac_compile"
27930 case "(($ac_try" in
27931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932   *) ac_try_echo=$ac_try;;
27933 esac
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935   (eval "$ac_compile") 2>conftest.er1
27936   ac_status=$?
27937   grep -v '^ *+' conftest.er1 >conftest.err
27938   rm -f conftest.er1
27939   cat conftest.err >&5
27940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941   (exit $ac_status); } &&
27942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27943   { (case "(($ac_try" in
27944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945   *) ac_try_echo=$ac_try;;
27946 esac
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948   (eval "$ac_try") 2>&5
27949   ac_status=$?
27950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951   (exit $ac_status); }; } &&
27952          { ac_try='test -s conftest.$ac_objext'
27953   { (case "(($ac_try" in
27954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27955   *) ac_try_echo=$ac_try;;
27956 esac
27957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27958   (eval "$ac_try") 2>&5
27959   ac_status=$?
27960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961   (exit $ac_status); }; }; then
27962   ac_header_compiler=yes
27963 else
27964   echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967         ac_header_compiler=no
27968 fi
27969
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27972 echo "${ECHO_T}$ac_header_compiler" >&6; }
27973
27974 # Is the header present?
27975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27977 cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h.  */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h.  */
27983 #include <$ac_header>
27984 _ACEOF
27985 if { (ac_try="$ac_cpp conftest.$ac_ext"
27986 case "(($ac_try" in
27987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988   *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27992   ac_status=$?
27993   grep -v '^ *+' conftest.er1 >conftest.err
27994   rm -f conftest.er1
27995   cat conftest.err >&5
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); } >/dev/null; then
27998   if test -s conftest.err; then
27999     ac_cpp_err=$ac_c_preproc_warn_flag
28000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28001   else
28002     ac_cpp_err=
28003   fi
28004 else
28005   ac_cpp_err=yes
28006 fi
28007 if test -z "$ac_cpp_err"; then
28008   ac_header_preproc=yes
28009 else
28010   echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28012
28013   ac_header_preproc=no
28014 fi
28015
28016 rm -f conftest.err conftest.$ac_ext
28017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28018 echo "${ECHO_T}$ac_header_preproc" >&6; }
28019
28020 # So?  What about this header?
28021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28022   yes:no: )
28023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28027     ac_header_preproc=yes
28028     ;;
28029   no:yes:* )
28030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28042     ( cat <<\_ASBOX
28043 ## --------------------------------------------- ##
28044 ## Report this to <http://www.openldap.org/its/> ##
28045 ## --------------------------------------------- ##
28046 _ASBOX
28047      ) | sed "s/^/$as_me: WARNING:     /" >&2
28048     ;;
28049 esac
28050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28053   echo $ECHO_N "(cached) $ECHO_C" >&6
28054 else
28055   eval "$as_ac_Header=\$ac_header_preproc"
28056 fi
28057 ac_res=`eval echo '${'$as_ac_Header'}'`
28058                { echo "$as_me:$LINENO: result: $ac_res" >&5
28059 echo "${ECHO_T}$ac_res" >&6; }
28060
28061 fi
28062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28063   cat >>confdefs.h <<_ACEOF
28064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28065 _ACEOF
28066
28067 fi
28068
28069 done
28070
28071         if test $ac_cv_header_lwp_lwp_h = yes ; then
28072                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
28073 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
28074 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
28075   echo $ECHO_N "(cached) $ECHO_C" >&6
28076 else
28077   ac_check_lib_save_LIBS=$LIBS
28078 LIBS="-llwp  $LIBS"
28079 cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085
28086 /* Override any GCC internal prototype to avoid an error.
28087    Use char because int might match the return type of a GCC
28088    builtin and then its argument prototype would still apply.  */
28089 #ifdef __cplusplus
28090 extern "C"
28091 #endif
28092 char lwp_create ();
28093 int
28094 main ()
28095 {
28096 return lwp_create ();
28097   ;
28098   return 0;
28099 }
28100 _ACEOF
28101 rm -f conftest.$ac_objext conftest$ac_exeext
28102 if { (ac_try="$ac_link"
28103 case "(($ac_try" in
28104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105   *) ac_try_echo=$ac_try;;
28106 esac
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108   (eval "$ac_link") 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } &&
28115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28116   { (case "(($ac_try" in
28117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118   *) ac_try_echo=$ac_try;;
28119 esac
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121   (eval "$ac_try") 2>&5
28122   ac_status=$?
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); }; } &&
28125          { ac_try='test -s conftest$ac_exeext'
28126   { (case "(($ac_try" in
28127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128   *) ac_try_echo=$ac_try;;
28129 esac
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131   (eval "$ac_try") 2>&5
28132   ac_status=$?
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); }; }; then
28135   ac_cv_lib_lwp_lwp_create=yes
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140         ac_cv_lib_lwp_lwp_create=no
28141 fi
28142
28143 rm -f core conftest.err conftest.$ac_objext \
28144       conftest$ac_exeext conftest.$ac_ext
28145 LIBS=$ac_check_lib_save_LIBS
28146 fi
28147 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
28148 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
28149 if test $ac_cv_lib_lwp_lwp_create = yes; then
28150   have_lwp=yes
28151 else
28152   have_lwp=no
28153 fi
28154
28155
28156                 if test $have_lwp = yes ; then
28157
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_LWP 1
28160 _ACEOF
28161
28162                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
28163                         ol_link_threads=lwp
28164
28165                         if test $ol_with_yielding_select = auto ; then
28166                                 ol_with_yielding_select=no
28167                         fi
28168                 fi
28169         fi
28170         ;;
28171 esac
28172
28173 if test $ol_with_yielding_select = yes ; then
28174
28175 cat >>confdefs.h <<\_ACEOF
28176 #define HAVE_YIELDING_SELECT 1
28177 _ACEOF
28178
28179 fi
28180
28181 if test $ol_with_threads = manual ; then
28182                 ol_link_threads=yes
28183
28184         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
28185 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
28186
28187
28188
28189 for ac_header in pthread.h sched.h
28190 do
28191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28193   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28196   echo $ECHO_N "(cached) $ECHO_C" >&6
28197 fi
28198 ac_res=`eval echo '${'$as_ac_Header'}'`
28199                { echo "$as_me:$LINENO: result: $ac_res" >&5
28200 echo "${ECHO_T}$ac_res" >&6; }
28201 else
28202   # Is the header compilable?
28203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28205 cat >conftest.$ac_ext <<_ACEOF
28206 /* confdefs.h.  */
28207 _ACEOF
28208 cat confdefs.h >>conftest.$ac_ext
28209 cat >>conftest.$ac_ext <<_ACEOF
28210 /* end confdefs.h.  */
28211 $ac_includes_default
28212 #include <$ac_header>
28213 _ACEOF
28214 rm -f conftest.$ac_objext
28215 if { (ac_try="$ac_compile"
28216 case "(($ac_try" in
28217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218   *) ac_try_echo=$ac_try;;
28219 esac
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221   (eval "$ac_compile") 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } &&
28228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28229   { (case "(($ac_try" in
28230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231   *) ac_try_echo=$ac_try;;
28232 esac
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234   (eval "$ac_try") 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; } &&
28238          { ac_try='test -s conftest.$ac_objext'
28239   { (case "(($ac_try" in
28240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241   *) ac_try_echo=$ac_try;;
28242 esac
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244   (eval "$ac_try") 2>&5
28245   ac_status=$?
28246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247   (exit $ac_status); }; }; then
28248   ac_header_compiler=yes
28249 else
28250   echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28252
28253         ac_header_compiler=no
28254 fi
28255
28256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28258 echo "${ECHO_T}$ac_header_compiler" >&6; }
28259
28260 # Is the header present?
28261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28263 cat >conftest.$ac_ext <<_ACEOF
28264 /* confdefs.h.  */
28265 _ACEOF
28266 cat confdefs.h >>conftest.$ac_ext
28267 cat >>conftest.$ac_ext <<_ACEOF
28268 /* end confdefs.h.  */
28269 #include <$ac_header>
28270 _ACEOF
28271 if { (ac_try="$ac_cpp conftest.$ac_ext"
28272 case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28278   ac_status=$?
28279   grep -v '^ *+' conftest.er1 >conftest.err
28280   rm -f conftest.er1
28281   cat conftest.err >&5
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); } >/dev/null; then
28284   if test -s conftest.err; then
28285     ac_cpp_err=$ac_c_preproc_warn_flag
28286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28287   else
28288     ac_cpp_err=
28289   fi
28290 else
28291   ac_cpp_err=yes
28292 fi
28293 if test -z "$ac_cpp_err"; then
28294   ac_header_preproc=yes
28295 else
28296   echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.$ac_ext >&5
28298
28299   ac_header_preproc=no
28300 fi
28301
28302 rm -f conftest.err conftest.$ac_ext
28303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28304 echo "${ECHO_T}$ac_header_preproc" >&6; }
28305
28306 # So?  What about this header?
28307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28308   yes:no: )
28309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28313     ac_header_preproc=yes
28314     ;;
28315   no:yes:* )
28316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28328     ( cat <<\_ASBOX
28329 ## --------------------------------------------- ##
28330 ## Report this to <http://www.openldap.org/its/> ##
28331 ## --------------------------------------------- ##
28332 _ASBOX
28333      ) | sed "s/^/$as_me: WARNING:     /" >&2
28334     ;;
28335 esac
28336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28339   echo $ECHO_N "(cached) $ECHO_C" >&6
28340 else
28341   eval "$as_ac_Header=\$ac_header_preproc"
28342 fi
28343 ac_res=`eval echo '${'$as_ac_Header'}'`
28344                { echo "$as_me:$LINENO: result: $ac_res" >&5
28345 echo "${ECHO_T}$ac_res" >&6; }
28346
28347 fi
28348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28349   cat >>confdefs.h <<_ACEOF
28350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28351 _ACEOF
28352
28353 fi
28354
28355 done
28356
28357
28358
28359 for ac_func in sched_yield pthread_yield
28360 do
28361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28365   echo $ECHO_N "(cached) $ECHO_C" >&6
28366 else
28367   cat >conftest.$ac_ext <<_ACEOF
28368 /* confdefs.h.  */
28369 _ACEOF
28370 cat confdefs.h >>conftest.$ac_ext
28371 cat >>conftest.$ac_ext <<_ACEOF
28372 /* end confdefs.h.  */
28373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28375 #define $ac_func innocuous_$ac_func
28376
28377 /* System header to define __stub macros and hopefully few prototypes,
28378     which can conflict with char $ac_func (); below.
28379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28380     <limits.h> exists even on freestanding compilers.  */
28381
28382 #ifdef __STDC__
28383 # include <limits.h>
28384 #else
28385 # include <assert.h>
28386 #endif
28387
28388 #undef $ac_func
28389
28390 /* Override any GCC internal prototype to avoid an error.
28391    Use char because int might match the return type of a GCC
28392    builtin and then its argument prototype would still apply.  */
28393 #ifdef __cplusplus
28394 extern "C"
28395 #endif
28396 char $ac_func ();
28397 /* The GNU C library defines this for functions which it implements
28398     to always fail with ENOSYS.  Some functions are actually named
28399     something starting with __ and the normal name is an alias.  */
28400 #if defined __stub_$ac_func || defined __stub___$ac_func
28401 choke me
28402 #endif
28403
28404 int
28405 main ()
28406 {
28407 return $ac_func ();
28408   ;
28409   return 0;
28410 }
28411 _ACEOF
28412 rm -f conftest.$ac_objext conftest$ac_exeext
28413 if { (ac_try="$ac_link"
28414 case "(($ac_try" in
28415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416   *) ac_try_echo=$ac_try;;
28417 esac
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419   (eval "$ac_link") 2>conftest.er1
28420   ac_status=$?
28421   grep -v '^ *+' conftest.er1 >conftest.err
28422   rm -f conftest.er1
28423   cat conftest.err >&5
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } &&
28426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28427   { (case "(($ac_try" in
28428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429   *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432   (eval "$ac_try") 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; } &&
28436          { ac_try='test -s conftest$ac_exeext'
28437   { (case "(($ac_try" in
28438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439   *) ac_try_echo=$ac_try;;
28440 esac
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442   (eval "$ac_try") 2>&5
28443   ac_status=$?
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); }; }; then
28446   eval "$as_ac_var=yes"
28447 else
28448   echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28450
28451         eval "$as_ac_var=no"
28452 fi
28453
28454 rm -f core conftest.err conftest.$ac_objext \
28455       conftest$ac_exeext conftest.$ac_ext
28456 fi
28457 ac_res=`eval echo '${'$as_ac_var'}'`
28458                { echo "$as_me:$LINENO: result: $ac_res" >&5
28459 echo "${ECHO_T}$ac_res" >&6; }
28460 if test `eval echo '${'$as_ac_var'}'` = yes; then
28461   cat >>confdefs.h <<_ACEOF
28462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28463 _ACEOF
28464
28465 fi
28466 done
28467
28468
28469         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
28470 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
28471 if test "${ol_cv_header_linux_threads+set}" = set; then
28472   echo $ECHO_N "(cached) $ECHO_C" >&6
28473 else
28474   cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480 #include <pthread.h>
28481 _ACEOF
28482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28483   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
28484   ol_cv_header_linux_threads=yes
28485 else
28486   ol_cv_header_linux_threads=no
28487 fi
28488 rm -f conftest*
28489
28490
28491 fi
28492 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
28493 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
28494         if test $ol_cv_header_linux_threads = yes; then
28495
28496 cat >>confdefs.h <<\_ACEOF
28497 #define HAVE_LINUX_THREADS 1
28498 _ACEOF
28499
28500         fi
28501
28502
28503
28504 for ac_header in mach/cthreads.h
28505 do
28506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28508   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28511   echo $ECHO_N "(cached) $ECHO_C" >&6
28512 fi
28513 ac_res=`eval echo '${'$as_ac_Header'}'`
28514                { echo "$as_me:$LINENO: result: $ac_res" >&5
28515 echo "${ECHO_T}$ac_res" >&6; }
28516 else
28517   # Is the header compilable?
28518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28520 cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h.  */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h.  */
28526 $ac_includes_default
28527 #include <$ac_header>
28528 _ACEOF
28529 rm -f conftest.$ac_objext
28530 if { (ac_try="$ac_compile"
28531 case "(($ac_try" in
28532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533   *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536   (eval "$ac_compile") 2>conftest.er1
28537   ac_status=$?
28538   grep -v '^ *+' conftest.er1 >conftest.err
28539   rm -f conftest.er1
28540   cat conftest.err >&5
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); } &&
28543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28544   { (case "(($ac_try" in
28545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546   *) ac_try_echo=$ac_try;;
28547 esac
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549   (eval "$ac_try") 2>&5
28550   ac_status=$?
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); }; } &&
28553          { ac_try='test -s conftest.$ac_objext'
28554   { (case "(($ac_try" in
28555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556   *) ac_try_echo=$ac_try;;
28557 esac
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559   (eval "$ac_try") 2>&5
28560   ac_status=$?
28561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562   (exit $ac_status); }; }; then
28563   ac_header_compiler=yes
28564 else
28565   echo "$as_me: failed program was:" >&5
28566 sed 's/^/| /' conftest.$ac_ext >&5
28567
28568         ac_header_compiler=no
28569 fi
28570
28571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28573 echo "${ECHO_T}$ac_header_compiler" >&6; }
28574
28575 # Is the header present?
28576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28578 cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h.  */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h.  */
28584 #include <$ac_header>
28585 _ACEOF
28586 if { (ac_try="$ac_cpp conftest.$ac_ext"
28587 case "(($ac_try" in
28588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589   *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28593   ac_status=$?
28594   grep -v '^ *+' conftest.er1 >conftest.err
28595   rm -f conftest.er1
28596   cat conftest.err >&5
28597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598   (exit $ac_status); } >/dev/null; then
28599   if test -s conftest.err; then
28600     ac_cpp_err=$ac_c_preproc_warn_flag
28601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28602   else
28603     ac_cpp_err=
28604   fi
28605 else
28606   ac_cpp_err=yes
28607 fi
28608 if test -z "$ac_cpp_err"; then
28609   ac_header_preproc=yes
28610 else
28611   echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28613
28614   ac_header_preproc=no
28615 fi
28616
28617 rm -f conftest.err conftest.$ac_ext
28618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28619 echo "${ECHO_T}$ac_header_preproc" >&6; }
28620
28621 # So?  What about this header?
28622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28623   yes:no: )
28624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28628     ac_header_preproc=yes
28629     ;;
28630   no:yes:* )
28631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28633     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28634 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28635     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28637     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28638 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28641     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28643     ( cat <<\_ASBOX
28644 ## --------------------------------------------- ##
28645 ## Report this to <http://www.openldap.org/its/> ##
28646 ## --------------------------------------------- ##
28647 _ASBOX
28648      ) | sed "s/^/$as_me: WARNING:     /" >&2
28649     ;;
28650 esac
28651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 else
28656   eval "$as_ac_Header=\$ac_header_preproc"
28657 fi
28658 ac_res=`eval echo '${'$as_ac_Header'}'`
28659                { echo "$as_me:$LINENO: result: $ac_res" >&5
28660 echo "${ECHO_T}$ac_res" >&6; }
28661
28662 fi
28663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28664   cat >>confdefs.h <<_ACEOF
28665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28666 _ACEOF
28667
28668 fi
28669
28670 done
28671
28672
28673 for ac_header in lwp/lwp.h
28674 do
28675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28680   echo $ECHO_N "(cached) $ECHO_C" >&6
28681 fi
28682 ac_res=`eval echo '${'$as_ac_Header'}'`
28683                { echo "$as_me:$LINENO: result: $ac_res" >&5
28684 echo "${ECHO_T}$ac_res" >&6; }
28685 else
28686   # Is the header compilable?
28687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28689 cat >conftest.$ac_ext <<_ACEOF
28690 /* confdefs.h.  */
28691 _ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h.  */
28695 $ac_includes_default
28696 #include <$ac_header>
28697 _ACEOF
28698 rm -f conftest.$ac_objext
28699 if { (ac_try="$ac_compile"
28700 case "(($ac_try" in
28701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702   *) ac_try_echo=$ac_try;;
28703 esac
28704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705   (eval "$ac_compile") 2>conftest.er1
28706   ac_status=$?
28707   grep -v '^ *+' conftest.er1 >conftest.err
28708   rm -f conftest.er1
28709   cat conftest.err >&5
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); } &&
28712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28713   { (case "(($ac_try" in
28714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715   *) ac_try_echo=$ac_try;;
28716 esac
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718   (eval "$ac_try") 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; } &&
28722          { ac_try='test -s conftest.$ac_objext'
28723   { (case "(($ac_try" in
28724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725   *) ac_try_echo=$ac_try;;
28726 esac
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728   (eval "$ac_try") 2>&5
28729   ac_status=$?
28730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731   (exit $ac_status); }; }; then
28732   ac_header_compiler=yes
28733 else
28734   echo "$as_me: failed program was:" >&5
28735 sed 's/^/| /' conftest.$ac_ext >&5
28736
28737         ac_header_compiler=no
28738 fi
28739
28740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28742 echo "${ECHO_T}$ac_header_compiler" >&6; }
28743
28744 # Is the header present?
28745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28747 cat >conftest.$ac_ext <<_ACEOF
28748 /* confdefs.h.  */
28749 _ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h.  */
28753 #include <$ac_header>
28754 _ACEOF
28755 if { (ac_try="$ac_cpp conftest.$ac_ext"
28756 case "(($ac_try" in
28757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758   *) ac_try_echo=$ac_try;;
28759 esac
28760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28762   ac_status=$?
28763   grep -v '^ *+' conftest.er1 >conftest.err
28764   rm -f conftest.er1
28765   cat conftest.err >&5
28766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767   (exit $ac_status); } >/dev/null; then
28768   if test -s conftest.err; then
28769     ac_cpp_err=$ac_c_preproc_warn_flag
28770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28771   else
28772     ac_cpp_err=
28773   fi
28774 else
28775   ac_cpp_err=yes
28776 fi
28777 if test -z "$ac_cpp_err"; then
28778   ac_header_preproc=yes
28779 else
28780   echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28782
28783   ac_header_preproc=no
28784 fi
28785
28786 rm -f conftest.err conftest.$ac_ext
28787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28788 echo "${ECHO_T}$ac_header_preproc" >&6; }
28789
28790 # So?  What about this header?
28791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28792   yes:no: )
28793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28797     ac_header_preproc=yes
28798     ;;
28799   no:yes:* )
28800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28812     ( cat <<\_ASBOX
28813 ## --------------------------------------------- ##
28814 ## Report this to <http://www.openldap.org/its/> ##
28815 ## --------------------------------------------- ##
28816 _ASBOX
28817      ) | sed "s/^/$as_me: WARNING:     /" >&2
28818     ;;
28819 esac
28820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28823   echo $ECHO_N "(cached) $ECHO_C" >&6
28824 else
28825   eval "$as_ac_Header=\$ac_header_preproc"
28826 fi
28827 ac_res=`eval echo '${'$as_ac_Header'}'`
28828                { echo "$as_me:$LINENO: result: $ac_res" >&5
28829 echo "${ECHO_T}$ac_res" >&6; }
28830
28831 fi
28832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28833   cat >>confdefs.h <<_ACEOF
28834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28835 _ACEOF
28836
28837 fi
28838
28839 done
28840
28841
28842
28843 for ac_header in thread.h synch.h
28844 do
28845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28850   echo $ECHO_N "(cached) $ECHO_C" >&6
28851 fi
28852 ac_res=`eval echo '${'$as_ac_Header'}'`
28853                { echo "$as_me:$LINENO: result: $ac_res" >&5
28854 echo "${ECHO_T}$ac_res" >&6; }
28855 else
28856   # Is the header compilable?
28857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28859 cat >conftest.$ac_ext <<_ACEOF
28860 /* confdefs.h.  */
28861 _ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h.  */
28865 $ac_includes_default
28866 #include <$ac_header>
28867 _ACEOF
28868 rm -f conftest.$ac_objext
28869 if { (ac_try="$ac_compile"
28870 case "(($ac_try" in
28871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872   *) ac_try_echo=$ac_try;;
28873 esac
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875   (eval "$ac_compile") 2>conftest.er1
28876   ac_status=$?
28877   grep -v '^ *+' conftest.er1 >conftest.err
28878   rm -f conftest.er1
28879   cat conftest.err >&5
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); } &&
28882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28883   { (case "(($ac_try" in
28884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885   *) ac_try_echo=$ac_try;;
28886 esac
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888   (eval "$ac_try") 2>&5
28889   ac_status=$?
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); }; } &&
28892          { ac_try='test -s conftest.$ac_objext'
28893   { (case "(($ac_try" in
28894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895   *) ac_try_echo=$ac_try;;
28896 esac
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898   (eval "$ac_try") 2>&5
28899   ac_status=$?
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); }; }; then
28902   ac_header_compiler=yes
28903 else
28904   echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28906
28907         ac_header_compiler=no
28908 fi
28909
28910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28912 echo "${ECHO_T}$ac_header_compiler" >&6; }
28913
28914 # Is the header present?
28915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28917 cat >conftest.$ac_ext <<_ACEOF
28918 /* confdefs.h.  */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h.  */
28923 #include <$ac_header>
28924 _ACEOF
28925 if { (ac_try="$ac_cpp conftest.$ac_ext"
28926 case "(($ac_try" in
28927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928   *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28932   ac_status=$?
28933   grep -v '^ *+' conftest.er1 >conftest.err
28934   rm -f conftest.er1
28935   cat conftest.err >&5
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); } >/dev/null; then
28938   if test -s conftest.err; then
28939     ac_cpp_err=$ac_c_preproc_warn_flag
28940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28941   else
28942     ac_cpp_err=
28943   fi
28944 else
28945   ac_cpp_err=yes
28946 fi
28947 if test -z "$ac_cpp_err"; then
28948   ac_header_preproc=yes
28949 else
28950   echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.$ac_ext >&5
28952
28953   ac_header_preproc=no
28954 fi
28955
28956 rm -f conftest.err conftest.$ac_ext
28957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28958 echo "${ECHO_T}$ac_header_preproc" >&6; }
28959
28960 # So?  What about this header?
28961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28962   yes:no: )
28963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28967     ac_header_preproc=yes
28968     ;;
28969   no:yes:* )
28970     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28972     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28973 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28974     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28976     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28977 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28980     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28982     ( cat <<\_ASBOX
28983 ## --------------------------------------------- ##
28984 ## Report this to <http://www.openldap.org/its/> ##
28985 ## --------------------------------------------- ##
28986 _ASBOX
28987      ) | sed "s/^/$as_me: WARNING:     /" >&2
28988     ;;
28989 esac
28990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28993   echo $ECHO_N "(cached) $ECHO_C" >&6
28994 else
28995   eval "$as_ac_Header=\$ac_header_preproc"
28996 fi
28997 ac_res=`eval echo '${'$as_ac_Header'}'`
28998                { echo "$as_me:$LINENO: result: $ac_res" >&5
28999 echo "${ECHO_T}$ac_res" >&6; }
29000
29001 fi
29002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29003   cat >>confdefs.h <<_ACEOF
29004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29005 _ACEOF
29006
29007 fi
29008
29009 done
29010
29011 fi
29012
29013 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
29014                         cat >>confdefs.h <<\_ACEOF
29015 #define REENTRANT 1
29016 _ACEOF
29017
29018         cat >>confdefs.h <<\_ACEOF
29019 #define _REENTRANT 1
29020 _ACEOF
29021
29022         cat >>confdefs.h <<\_ACEOF
29023 #define THREAD_SAFE 1
29024 _ACEOF
29025
29026         cat >>confdefs.h <<\_ACEOF
29027 #define _THREAD_SAFE 1
29028 _ACEOF
29029
29030         cat >>confdefs.h <<\_ACEOF
29031 #define THREADSAFE 1
29032 _ACEOF
29033
29034         cat >>confdefs.h <<\_ACEOF
29035 #define _THREADSAFE 1
29036 _ACEOF
29037
29038         cat >>confdefs.h <<\_ACEOF
29039 #define _SGI_MP_SOURCE 1
29040 _ACEOF
29041
29042
29043                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
29044 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
29045 if test "${ol_cv_errno_thread_specific+set}" = set; then
29046   echo $ECHO_N "(cached) $ECHO_C" >&6
29047 else
29048
29049                 cat >conftest.$ac_ext <<_ACEOF
29050 /* confdefs.h.  */
29051 _ACEOF
29052 cat confdefs.h >>conftest.$ac_ext
29053 cat >>conftest.$ac_ext <<_ACEOF
29054 /* end confdefs.h.  */
29055 #include <errno.h>
29056 int
29057 main ()
29058 {
29059 errno = 0;
29060   ;
29061   return 0;
29062 }
29063 _ACEOF
29064 rm -f conftest.$ac_objext conftest$ac_exeext
29065 if { (ac_try="$ac_link"
29066 case "(($ac_try" in
29067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068   *) ac_try_echo=$ac_try;;
29069 esac
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071   (eval "$ac_link") 2>conftest.er1
29072   ac_status=$?
29073   grep -v '^ *+' conftest.er1 >conftest.err
29074   rm -f conftest.er1
29075   cat conftest.err >&5
29076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077   (exit $ac_status); } &&
29078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29079   { (case "(($ac_try" in
29080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081   *) ac_try_echo=$ac_try;;
29082 esac
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084   (eval "$ac_try") 2>&5
29085   ac_status=$?
29086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087   (exit $ac_status); }; } &&
29088          { ac_try='test -s conftest$ac_exeext'
29089   { (case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094   (eval "$ac_try") 2>&5
29095   ac_status=$?
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); }; }; then
29098   ol_cv_errno_thread_specific=yes
29099 else
29100   echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29102
29103         ol_cv_errno_thread_specific=no
29104 fi
29105
29106 rm -f core conftest.err conftest.$ac_objext \
29107       conftest$ac_exeext conftest.$ac_ext
29108
29109 fi
29110 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
29111 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
29112
29113                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
29114 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
29115 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
29116   echo $ECHO_N "(cached) $ECHO_C" >&6
29117 else
29118
29119                 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125 #include <netdb.h>
29126 int
29127 main ()
29128 {
29129 h_errno = 0;
29130   ;
29131   return 0;
29132 }
29133 _ACEOF
29134 rm -f conftest.$ac_objext conftest$ac_exeext
29135 if { (ac_try="$ac_link"
29136 case "(($ac_try" in
29137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138   *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141   (eval "$ac_link") 2>conftest.er1
29142   ac_status=$?
29143   grep -v '^ *+' conftest.er1 >conftest.err
29144   rm -f conftest.er1
29145   cat conftest.err >&5
29146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147   (exit $ac_status); } &&
29148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29149   { (case "(($ac_try" in
29150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151   *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154   (eval "$ac_try") 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); }; } &&
29158          { ac_try='test -s conftest$ac_exeext'
29159   { (case "(($ac_try" in
29160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161   *) ac_try_echo=$ac_try;;
29162 esac
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164   (eval "$ac_try") 2>&5
29165   ac_status=$?
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); }; }; then
29168   ol_cv_h_errno_thread_specific=yes
29169 else
29170   echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29172
29173         ol_cv_h_errno_thread_specific=no
29174 fi
29175
29176 rm -f core conftest.err conftest.$ac_objext \
29177       conftest$ac_exeext conftest.$ac_ext
29178
29179 fi
29180 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
29181 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
29182
29183         if test $ol_cv_errno_thread_specific != yes ||
29184            test $ol_cv_h_errno_thread_specific != yes ; then
29185                 LIBS="$LTHREAD_LIBS $LIBS"
29186                 LTHREAD_LIBS=""
29187         fi
29188
29189 fi
29190
29191 if test $ol_link_threads = no ; then
29192         if test $ol_with_threads = yes ; then
29193                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
29194 echo "$as_me: error: no suitable thread support" >&2;}
29195    { (exit 1); exit 1; }; }
29196         fi
29197
29198         if test $ol_with_threads = auto ; then
29199                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
29200 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
29201                 ol_with_threads=no
29202         fi
29203
29204
29205 cat >>confdefs.h <<\_ACEOF
29206 #define NO_THREADS 1
29207 _ACEOF
29208
29209         LTHREAD_LIBS=""
29210         BUILD_THREAD=no
29211 else
29212         BUILD_THREAD=yes
29213 fi
29214
29215 if test $ol_link_threads != no ; then
29216
29217 cat >>confdefs.h <<\_ACEOF
29218 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
29219 _ACEOF
29220
29221 fi
29222
29223
29224
29225
29226 for ac_func in \
29227         ctime_r                 \
29228         gethostbyname_r gethostbyaddr_r \
29229
29230 do
29231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29235   echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237   cat >conftest.$ac_ext <<_ACEOF
29238 /* confdefs.h.  */
29239 _ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h.  */
29243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29245 #define $ac_func innocuous_$ac_func
29246
29247 /* System header to define __stub macros and hopefully few prototypes,
29248     which can conflict with char $ac_func (); below.
29249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29250     <limits.h> exists even on freestanding compilers.  */
29251
29252 #ifdef __STDC__
29253 # include <limits.h>
29254 #else
29255 # include <assert.h>
29256 #endif
29257
29258 #undef $ac_func
29259
29260 /* Override any GCC internal prototype to avoid an error.
29261    Use char because int might match the return type of a GCC
29262    builtin and then its argument prototype would still apply.  */
29263 #ifdef __cplusplus
29264 extern "C"
29265 #endif
29266 char $ac_func ();
29267 /* The GNU C library defines this for functions which it implements
29268     to always fail with ENOSYS.  Some functions are actually named
29269     something starting with __ and the normal name is an alias.  */
29270 #if defined __stub_$ac_func || defined __stub___$ac_func
29271 choke me
29272 #endif
29273
29274 int
29275 main ()
29276 {
29277 return $ac_func ();
29278   ;
29279   return 0;
29280 }
29281 _ACEOF
29282 rm -f conftest.$ac_objext conftest$ac_exeext
29283 if { (ac_try="$ac_link"
29284 case "(($ac_try" in
29285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29286   *) ac_try_echo=$ac_try;;
29287 esac
29288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29289   (eval "$ac_link") 2>conftest.er1
29290   ac_status=$?
29291   grep -v '^ *+' conftest.er1 >conftest.err
29292   rm -f conftest.er1
29293   cat conftest.err >&5
29294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); } &&
29296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29297   { (case "(($ac_try" in
29298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299   *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302   (eval "$ac_try") 2>&5
29303   ac_status=$?
29304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305   (exit $ac_status); }; } &&
29306          { ac_try='test -s conftest$ac_exeext'
29307   { (case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_try") 2>&5
29313   ac_status=$?
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); }; }; then
29316   eval "$as_ac_var=yes"
29317 else
29318   echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321         eval "$as_ac_var=no"
29322 fi
29323
29324 rm -f core conftest.err conftest.$ac_objext \
29325       conftest$ac_exeext conftest.$ac_ext
29326 fi
29327 ac_res=`eval echo '${'$as_ac_var'}'`
29328                { echo "$as_me:$LINENO: result: $ac_res" >&5
29329 echo "${ECHO_T}$ac_res" >&6; }
29330 if test `eval echo '${'$as_ac_var'}'` = yes; then
29331   cat >>confdefs.h <<_ACEOF
29332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29333 _ACEOF
29334
29335 fi
29336 done
29337
29338
29339 if test "$ac_cv_func_ctime_r" = no ; then
29340         ol_cv_func_ctime_r_nargs=0
29341 else
29342         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
29343 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
29344 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
29345   echo $ECHO_N "(cached) $ECHO_C" >&6
29346 else
29347   cat >conftest.$ac_ext <<_ACEOF
29348 /* confdefs.h.  */
29349 _ACEOF
29350 cat confdefs.h >>conftest.$ac_ext
29351 cat >>conftest.$ac_ext <<_ACEOF
29352 /* end confdefs.h.  */
29353 #include <time.h>
29354 int
29355 main ()
29356 {
29357 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
29358   ;
29359   return 0;
29360 }
29361 _ACEOF
29362 rm -f conftest.$ac_objext
29363 if { (ac_try="$ac_compile"
29364 case "(($ac_try" in
29365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366   *) ac_try_echo=$ac_try;;
29367 esac
29368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369   (eval "$ac_compile") 2>conftest.er1
29370   ac_status=$?
29371   grep -v '^ *+' conftest.er1 >conftest.err
29372   rm -f conftest.er1
29373   cat conftest.err >&5
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); } &&
29376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29377   { (case "(($ac_try" in
29378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379   *) ac_try_echo=$ac_try;;
29380 esac
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382   (eval "$ac_try") 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; } &&
29386          { ac_try='test -s conftest.$ac_objext'
29387   { (case "(($ac_try" in
29388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389   *) ac_try_echo=$ac_try;;
29390 esac
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392   (eval "$ac_try") 2>&5
29393   ac_status=$?
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); }; }; then
29396   ol_cv_func_ctime_r_nargs3=yes
29397 else
29398   echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29400
29401         ol_cv_func_ctime_r_nargs3=no
29402 fi
29403
29404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29405
29406         cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h.  */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h.  */
29412 #include <time.h>
29413 int
29414 main ()
29415 {
29416 time_t ti; char *buffer; ctime_r(&ti,buffer);
29417   ;
29418   return 0;
29419 }
29420 _ACEOF
29421 rm -f conftest.$ac_objext
29422 if { (ac_try="$ac_compile"
29423 case "(($ac_try" in
29424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425   *) ac_try_echo=$ac_try;;
29426 esac
29427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428   (eval "$ac_compile") 2>conftest.er1
29429   ac_status=$?
29430   grep -v '^ *+' conftest.er1 >conftest.err
29431   rm -f conftest.er1
29432   cat conftest.err >&5
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); } &&
29435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29436   { (case "(($ac_try" in
29437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438   *) ac_try_echo=$ac_try;;
29439 esac
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441   (eval "$ac_try") 2>&5
29442   ac_status=$?
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); }; } &&
29445          { ac_try='test -s conftest.$ac_objext'
29446   { (case "(($ac_try" in
29447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448   *) ac_try_echo=$ac_try;;
29449 esac
29450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451   (eval "$ac_try") 2>&5
29452   ac_status=$?
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); }; }; then
29455   ol_cv_func_ctime_r_nargs2=yes
29456 else
29457   echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29459
29460         ol_cv_func_ctime_r_nargs2=no
29461 fi
29462
29463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29464
29465         if test $ol_cv_func_ctime_r_nargs3 = yes &&
29466            test $ol_cv_func_ctime_r_nargs2 = no ; then
29467
29468                 ol_cv_func_ctime_r_nargs=3
29469
29470         elif test $ol_cv_func_ctime_r_nargs3 = no &&
29471              test $ol_cv_func_ctime_r_nargs2 = yes ; then
29472
29473                 ol_cv_func_ctime_r_nargs=2
29474
29475         else
29476                 ol_cv_func_ctime_r_nargs=0
29477         fi
29478
29479 fi
29480 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
29481 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
29482
29483   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
29484
29485 cat >>confdefs.h <<_ACEOF
29486 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
29487 _ACEOF
29488
29489   fi
29490
29491 fi
29492
29493 if test "$ac_cv_func_gethostbyname_r" = yes ; then
29494         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
29495 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
29496 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
29497   echo $ECHO_N "(cached) $ECHO_C" >&6
29498 else
29499   cat >conftest.$ac_ext <<_ACEOF
29500 /* confdefs.h.  */
29501 _ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h.  */
29505 #include <sys/types.h>
29506 #include <sys/socket.h>
29507 #include <netinet/in.h>
29508 #include <netdb.h>
29509 #define BUFSIZE (sizeof(struct hostent)+10)
29510 int
29511 main ()
29512 {
29513 struct hostent hent; char buffer[BUFSIZE];
29514                 int bufsize=BUFSIZE;int h_errno;
29515                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
29516                         buffer, bufsize, &h_errno);
29517   ;
29518   return 0;
29519 }
29520 _ACEOF
29521 rm -f conftest.$ac_objext
29522 if { (ac_try="$ac_compile"
29523 case "(($ac_try" in
29524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525   *) ac_try_echo=$ac_try;;
29526 esac
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528   (eval "$ac_compile") 2>conftest.er1
29529   ac_status=$?
29530   grep -v '^ *+' conftest.er1 >conftest.err
29531   rm -f conftest.er1
29532   cat conftest.err >&5
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); } &&
29535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29536   { (case "(($ac_try" in
29537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538   *) ac_try_echo=$ac_try;;
29539 esac
29540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541   (eval "$ac_try") 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; } &&
29545          { ac_try='test -s conftest.$ac_objext'
29546   { (case "(($ac_try" in
29547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29548   *) ac_try_echo=$ac_try;;
29549 esac
29550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29551   (eval "$ac_try") 2>&5
29552   ac_status=$?
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); }; }; then
29555   ol_cv_func_gethostbyname_r_nargs5=yes
29556 else
29557   echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29559
29560         ol_cv_func_gethostbyname_r_nargs5=no
29561 fi
29562
29563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29564
29565         cat >conftest.$ac_ext <<_ACEOF
29566 /* confdefs.h.  */
29567 _ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h.  */
29571 #include <sys/types.h>
29572 #include <sys/socket.h>
29573 #include <netinet/in.h>
29574 #include <netdb.h>
29575 #define BUFSIZE (sizeof(struct hostent)+10)
29576 int
29577 main ()
29578 {
29579 struct hostent hent;struct hostent *rhent;
29580                 char buffer[BUFSIZE];
29581                 int bufsize=BUFSIZE;int h_errno;
29582                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
29583                         &rhent, &h_errno);
29584   ;
29585   return 0;
29586 }
29587 _ACEOF
29588 rm -f conftest.$ac_objext
29589 if { (ac_try="$ac_compile"
29590 case "(($ac_try" in
29591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592   *) ac_try_echo=$ac_try;;
29593 esac
29594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29595   (eval "$ac_compile") 2>conftest.er1
29596   ac_status=$?
29597   grep -v '^ *+' conftest.er1 >conftest.err
29598   rm -f conftest.er1
29599   cat conftest.err >&5
29600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601   (exit $ac_status); } &&
29602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29603   { (case "(($ac_try" in
29604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605   *) ac_try_echo=$ac_try;;
29606 esac
29607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608   (eval "$ac_try") 2>&5
29609   ac_status=$?
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); }; } &&
29612          { ac_try='test -s conftest.$ac_objext'
29613   { (case "(($ac_try" in
29614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29615   *) ac_try_echo=$ac_try;;
29616 esac
29617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29618   (eval "$ac_try") 2>&5
29619   ac_status=$?
29620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); }; }; then
29622   ol_cv_func_gethostbyname_r_nargs6=yes
29623 else
29624   echo "$as_me: failed program was:" >&5
29625 sed 's/^/| /' conftest.$ac_ext >&5
29626
29627         ol_cv_func_gethostbyname_r_nargs6=no
29628 fi
29629
29630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29631
29632         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
29633            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
29634
29635                 ol_cv_func_gethostbyname_r_nargs=5
29636
29637         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
29638              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
29639
29640                 ol_cv_func_gethostbyname_r_nargs=6
29641
29642         else
29643                 ol_cv_func_gethostbyname_r_nargs=0
29644         fi
29645
29646 fi
29647 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
29648 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
29649   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
29650
29651 cat >>confdefs.h <<_ACEOF
29652 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
29653 _ACEOF
29654
29655   fi
29656
29657 else
29658         ol_cv_func_gethostbyname_r_nargs=0
29659 fi
29660
29661 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
29662         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
29663 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
29664 if test "${ol_cv_func_gethostbyaddr_r_nargs+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 #include <sys/types.h>
29674 #include <sys/socket.h>
29675 #include <netinet/in.h>
29676 #include <netdb.h>
29677 #define BUFSIZE (sizeof(struct hostent)+10)
29678 int
29679 main ()
29680 {
29681 struct hostent hent; char buffer[BUFSIZE];
29682             struct in_addr add;
29683             size_t alen=sizeof(struct in_addr);
29684             int bufsize=BUFSIZE;int h_errno;
29685                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
29686                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
29687   ;
29688   return 0;
29689 }
29690 _ACEOF
29691 rm -f conftest.$ac_objext
29692 if { (ac_try="$ac_compile"
29693 case "(($ac_try" in
29694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695   *) ac_try_echo=$ac_try;;
29696 esac
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698   (eval "$ac_compile") 2>conftest.er1
29699   ac_status=$?
29700   grep -v '^ *+' conftest.er1 >conftest.err
29701   rm -f conftest.er1
29702   cat conftest.err >&5
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); } &&
29705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706   { (case "(($ac_try" in
29707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708   *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711   (eval "$ac_try") 2>&5
29712   ac_status=$?
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); }; } &&
29715          { ac_try='test -s conftest.$ac_objext'
29716   { (case "(($ac_try" in
29717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718   *) ac_try_echo=$ac_try;;
29719 esac
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721   (eval "$ac_try") 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; }; then
29725   ol_cv_func_gethostbyaddr_r_nargs7=yes
29726 else
29727   echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29729
29730         ol_cv_func_gethostbyaddr_r_nargs7=no
29731 fi
29732
29733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734
29735         cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h.  */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h.  */
29741 #include <sys/types.h>
29742 #include <sys/socket.h>
29743 #include <netinet/in.h>
29744 #include <netdb.h>
29745 #define BUFSIZE (sizeof(struct hostent)+10)
29746 int
29747 main ()
29748 {
29749 struct hostent hent;
29750                 struct hostent *rhent; char buffer[BUFSIZE];
29751                 struct in_addr add;
29752                 size_t alen=sizeof(struct in_addr);
29753                 int bufsize=BUFSIZE;int h_errno;
29754                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
29755                         alen, AF_INET, &hent, buffer, bufsize,
29756                         &rhent, &h_errno);
29757   ;
29758   return 0;
29759 }
29760 _ACEOF
29761 rm -f conftest.$ac_objext
29762 if { (ac_try="$ac_compile"
29763 case "(($ac_try" in
29764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765   *) ac_try_echo=$ac_try;;
29766 esac
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768   (eval "$ac_compile") 2>conftest.er1
29769   ac_status=$?
29770   grep -v '^ *+' conftest.er1 >conftest.err
29771   rm -f conftest.er1
29772   cat conftest.err >&5
29773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774   (exit $ac_status); } &&
29775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29776   { (case "(($ac_try" in
29777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778   *) ac_try_echo=$ac_try;;
29779 esac
29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781   (eval "$ac_try") 2>&5
29782   ac_status=$?
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); }; } &&
29785          { ac_try='test -s conftest.$ac_objext'
29786   { (case "(($ac_try" in
29787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788   *) ac_try_echo=$ac_try;;
29789 esac
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791   (eval "$ac_try") 2>&5
29792   ac_status=$?
29793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794   (exit $ac_status); }; }; then
29795   ol_cv_func_gethostbyaddr_r_nargs8=yes
29796 else
29797   echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29799
29800         ol_cv_func_gethostbyaddr_r_nargs8=no
29801 fi
29802
29803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29804
29805         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
29806            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
29807
29808                 ol_cv_func_gethostbyaddr_r_nargs=7
29809
29810         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
29811              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
29812
29813                 ol_cv_func_gethostbyaddr_r_nargs=8
29814
29815         else
29816                 ol_cv_func_gethostbyaddr_r_nargs=0
29817         fi
29818
29819 fi
29820 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
29821 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
29822   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
29823
29824 cat >>confdefs.h <<_ACEOF
29825 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
29826 _ACEOF
29827
29828   fi
29829
29830 else
29831         ol_cv_func_gethostbyaddr_r_nargs=0
29832 fi
29833
29834 ol_link_bdb=no
29835
29836 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
29837         ol_cv_berkeley_db=no
29838
29839 for ac_header in db.h
29840 do
29841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29843   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29846   echo $ECHO_N "(cached) $ECHO_C" >&6
29847 fi
29848 ac_res=`eval echo '${'$as_ac_Header'}'`
29849                { echo "$as_me:$LINENO: result: $ac_res" >&5
29850 echo "${ECHO_T}$ac_res" >&6; }
29851 else
29852   # Is the header compilable?
29853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29855 cat >conftest.$ac_ext <<_ACEOF
29856 /* confdefs.h.  */
29857 _ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h.  */
29861 $ac_includes_default
29862 #include <$ac_header>
29863 _ACEOF
29864 rm -f conftest.$ac_objext
29865 if { (ac_try="$ac_compile"
29866 case "(($ac_try" in
29867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868   *) ac_try_echo=$ac_try;;
29869 esac
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871   (eval "$ac_compile") 2>conftest.er1
29872   ac_status=$?
29873   grep -v '^ *+' conftest.er1 >conftest.err
29874   rm -f conftest.er1
29875   cat conftest.err >&5
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); } &&
29878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29879   { (case "(($ac_try" in
29880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881   *) ac_try_echo=$ac_try;;
29882 esac
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884   (eval "$ac_try") 2>&5
29885   ac_status=$?
29886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887   (exit $ac_status); }; } &&
29888          { ac_try='test -s conftest.$ac_objext'
29889   { (case "(($ac_try" in
29890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891   *) ac_try_echo=$ac_try;;
29892 esac
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894   (eval "$ac_try") 2>&5
29895   ac_status=$?
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); }; }; then
29898   ac_header_compiler=yes
29899 else
29900   echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903         ac_header_compiler=no
29904 fi
29905
29906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29908 echo "${ECHO_T}$ac_header_compiler" >&6; }
29909
29910 # Is the header present?
29911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29913 cat >conftest.$ac_ext <<_ACEOF
29914 /* confdefs.h.  */
29915 _ACEOF
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h.  */
29919 #include <$ac_header>
29920 _ACEOF
29921 if { (ac_try="$ac_cpp conftest.$ac_ext"
29922 case "(($ac_try" in
29923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924   *) ac_try_echo=$ac_try;;
29925 esac
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29928   ac_status=$?
29929   grep -v '^ *+' conftest.er1 >conftest.err
29930   rm -f conftest.er1
29931   cat conftest.err >&5
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); } >/dev/null; then
29934   if test -s conftest.err; then
29935     ac_cpp_err=$ac_c_preproc_warn_flag
29936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29937   else
29938     ac_cpp_err=
29939   fi
29940 else
29941   ac_cpp_err=yes
29942 fi
29943 if test -z "$ac_cpp_err"; then
29944   ac_header_preproc=yes
29945 else
29946   echo "$as_me: failed program was:" >&5
29947 sed 's/^/| /' conftest.$ac_ext >&5
29948
29949   ac_header_preproc=no
29950 fi
29951
29952 rm -f conftest.err conftest.$ac_ext
29953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29954 echo "${ECHO_T}$ac_header_preproc" >&6; }
29955
29956 # So?  What about this header?
29957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29958   yes:no: )
29959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29963     ac_header_preproc=yes
29964     ;;
29965   no:yes:* )
29966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29978     ( cat <<\_ASBOX
29979 ## --------------------------------------------- ##
29980 ## Report this to <http://www.openldap.org/its/> ##
29981 ## --------------------------------------------- ##
29982 _ASBOX
29983      ) | sed "s/^/$as_me: WARNING:     /" >&2
29984     ;;
29985 esac
29986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29989   echo $ECHO_N "(cached) $ECHO_C" >&6
29990 else
29991   eval "$as_ac_Header=\$ac_header_preproc"
29992 fi
29993 ac_res=`eval echo '${'$as_ac_Header'}'`
29994                { echo "$as_me:$LINENO: result: $ac_res" >&5
29995 echo "${ECHO_T}$ac_res" >&6; }
29996
29997 fi
29998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29999   cat >>confdefs.h <<_ACEOF
30000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30001 _ACEOF
30002
30003 fi
30004
30005 done
30006
30007 if test $ac_cv_header_db_h = yes; then
30008         ol_cv_lib_db=no
30009
30010 { echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
30011 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6; }
30012 if test "${ol_cv_bdb_major+set}" = set; then
30013   echo $ECHO_N "(cached) $ECHO_C" >&6
30014 else
30015
30016         ol_cv_bdb_major=0
30017         if test $ol_cv_bdb_major = 0 ; then
30018                 cat >conftest.$ac_ext <<_ACEOF
30019 /* confdefs.h.  */
30020 _ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h.  */
30024
30025 #include <db.h>
30026 #ifndef DB_VERSION_MAJOR
30027 #       define DB_VERSION_MAJOR 1
30028 #endif
30029 #if DB_VERSION_MAJOR == 4
30030 __db_version
30031 #endif
30032
30033 _ACEOF
30034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30035   $EGREP "__db_version" >/dev/null 2>&1; then
30036   ol_cv_bdb_major=4
30037 else
30038   :
30039 fi
30040 rm -f conftest*
30041
30042         fi
30043         if test $ol_cv_bdb_major = 0 ; then
30044                 cat >conftest.$ac_ext <<_ACEOF
30045 /* confdefs.h.  */
30046 _ACEOF
30047 cat confdefs.h >>conftest.$ac_ext
30048 cat >>conftest.$ac_ext <<_ACEOF
30049 /* end confdefs.h.  */
30050
30051 #include <db.h>
30052 #ifndef DB_VERSION_MAJOR
30053 #       define DB_VERSION_MAJOR 1
30054 #endif
30055 #if DB_VERSION_MAJOR == 3
30056 __db_version
30057 #endif
30058
30059 _ACEOF
30060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30061   $EGREP "__db_version" >/dev/null 2>&1; then
30062   ol_cv_bdb_major=3
30063 else
30064   :
30065 fi
30066 rm -f conftest*
30067
30068         fi
30069         if test $ol_cv_bdb_major = 0 ; then
30070                 cat >conftest.$ac_ext <<_ACEOF
30071 /* confdefs.h.  */
30072 _ACEOF
30073 cat confdefs.h >>conftest.$ac_ext
30074 cat >>conftest.$ac_ext <<_ACEOF
30075 /* end confdefs.h.  */
30076
30077 #include <db.h>
30078 #ifndef DB_VERSION_MAJOR
30079 #       define DB_VERSION_MAJOR 1
30080 #endif
30081 #if DB_VERSION_MAJOR == 2
30082 __db_version
30083 #endif
30084
30085 _ACEOF
30086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30087   $EGREP "__db_version" >/dev/null 2>&1; then
30088   ol_cv_bdb_major=2
30089 else
30090   :
30091 fi
30092 rm -f conftest*
30093
30094         fi
30095         if test $ol_cv_bdb_major = 0 ; then
30096                 cat >conftest.$ac_ext <<_ACEOF
30097 /* confdefs.h.  */
30098 _ACEOF
30099 cat confdefs.h >>conftest.$ac_ext
30100 cat >>conftest.$ac_ext <<_ACEOF
30101 /* end confdefs.h.  */
30102
30103 #include <db.h>
30104 #ifndef DB_VERSION_MAJOR
30105 #       define DB_VERSION_MAJOR 1
30106 #endif
30107 #if DB_VERSION_MAJOR == 1
30108 __db_version
30109 #endif
30110
30111 _ACEOF
30112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30113   $EGREP "__db_version" >/dev/null 2>&1; then
30114   ol_cv_bdb_major=1
30115 else
30116   :
30117 fi
30118 rm -f conftest*
30119
30120         fi
30121
30122         if test $ol_cv_bdb_major = 0 ; then
30123                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
30124 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
30125    { (exit 1); exit 1; }; }
30126         fi
30127
30128 fi
30129 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
30130 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
30131
30132 { echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
30133 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6; }
30134 if test "${ol_cv_bdb_minor+set}" = set; then
30135   echo $ECHO_N "(cached) $ECHO_C" >&6
30136 else
30137
30138         ol_cv_bdb_minor=0
30139         if test $ol_cv_bdb_minor = 0 ; then
30140                 cat >conftest.$ac_ext <<_ACEOF
30141 /* confdefs.h.  */
30142 _ACEOF
30143 cat confdefs.h >>conftest.$ac_ext
30144 cat >>conftest.$ac_ext <<_ACEOF
30145 /* end confdefs.h.  */
30146
30147 #include <db.h>
30148 #ifndef DB_VERSION_MINOR
30149 #       define DB_VERSION_MINOR 0
30150 #endif
30151 #if DB_VERSION_MINOR == 9
30152 __db_version
30153 #endif
30154
30155 _ACEOF
30156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30157   $EGREP "__db_version" >/dev/null 2>&1; then
30158   ol_cv_bdb_minor=9
30159 else
30160   :
30161 fi
30162 rm -f conftest*
30163
30164         fi
30165         if test $ol_cv_bdb_minor = 0 ; then
30166                 cat >conftest.$ac_ext <<_ACEOF
30167 /* confdefs.h.  */
30168 _ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h.  */
30172
30173 #include <db.h>
30174 #ifndef DB_VERSION_MINOR
30175 #       define DB_VERSION_MINOR 0
30176 #endif
30177 #if DB_VERSION_MINOR == 8
30178 __db_version
30179 #endif
30180
30181 _ACEOF
30182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30183   $EGREP "__db_version" >/dev/null 2>&1; then
30184   ol_cv_bdb_minor=8
30185 else
30186   :
30187 fi
30188 rm -f conftest*
30189
30190         fi
30191         if test $ol_cv_bdb_minor = 0 ; then
30192                 cat >conftest.$ac_ext <<_ACEOF
30193 /* confdefs.h.  */
30194 _ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h.  */
30198
30199 #include <db.h>
30200 #ifndef DB_VERSION_MINOR
30201 #       define DB_VERSION_MINOR 0
30202 #endif
30203 #if DB_VERSION_MINOR == 7
30204 __db_version
30205 #endif
30206
30207 _ACEOF
30208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30209   $EGREP "__db_version" >/dev/null 2>&1; then
30210   ol_cv_bdb_minor=7
30211 else
30212   :
30213 fi
30214 rm -f conftest*
30215
30216         fi
30217         if test $ol_cv_bdb_minor = 0 ; then
30218                 cat >conftest.$ac_ext <<_ACEOF
30219 /* confdefs.h.  */
30220 _ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h.  */
30224
30225 #include <db.h>
30226 #ifndef DB_VERSION_MINOR
30227 #       define DB_VERSION_MINOR 0
30228 #endif
30229 #if DB_VERSION_MINOR == 6
30230 __db_version
30231 #endif
30232
30233 _ACEOF
30234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30235   $EGREP "__db_version" >/dev/null 2>&1; then
30236   ol_cv_bdb_minor=6
30237 else
30238   :
30239 fi
30240 rm -f conftest*
30241
30242         fi
30243         if test $ol_cv_bdb_minor = 0 ; then
30244                 cat >conftest.$ac_ext <<_ACEOF
30245 /* confdefs.h.  */
30246 _ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h.  */
30250
30251 #include <db.h>
30252 #ifndef DB_VERSION_MINOR
30253 #       define DB_VERSION_MINOR 0
30254 #endif
30255 #if DB_VERSION_MINOR == 5
30256 __db_version
30257 #endif
30258
30259 _ACEOF
30260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30261   $EGREP "__db_version" >/dev/null 2>&1; then
30262   ol_cv_bdb_minor=5
30263 else
30264   :
30265 fi
30266 rm -f conftest*
30267
30268         fi
30269         if test $ol_cv_bdb_minor = 0 ; then
30270                 cat >conftest.$ac_ext <<_ACEOF
30271 /* confdefs.h.  */
30272 _ACEOF
30273 cat confdefs.h >>conftest.$ac_ext
30274 cat >>conftest.$ac_ext <<_ACEOF
30275 /* end confdefs.h.  */
30276
30277 #include <db.h>
30278 #ifndef DB_VERSION_MINOR
30279 #       define DB_VERSION_MINOR 0
30280 #endif
30281 #if DB_VERSION_MINOR == 4
30282 __db_version
30283 #endif
30284
30285 _ACEOF
30286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30287   $EGREP "__db_version" >/dev/null 2>&1; then
30288   ol_cv_bdb_minor=4
30289 else
30290   :
30291 fi
30292 rm -f conftest*
30293
30294         fi
30295         if test $ol_cv_bdb_minor = 0 ; then
30296                 cat >conftest.$ac_ext <<_ACEOF
30297 /* confdefs.h.  */
30298 _ACEOF
30299 cat confdefs.h >>conftest.$ac_ext
30300 cat >>conftest.$ac_ext <<_ACEOF
30301 /* end confdefs.h.  */
30302
30303 #include <db.h>
30304 #ifndef DB_VERSION_MINOR
30305 #       define DB_VERSION_MINOR 0
30306 #endif
30307 #if DB_VERSION_MINOR == 3
30308 __db_version
30309 #endif
30310
30311 _ACEOF
30312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30313   $EGREP "__db_version" >/dev/null 2>&1; then
30314   ol_cv_bdb_minor=3
30315 else
30316   :
30317 fi
30318 rm -f conftest*
30319
30320         fi
30321         if test $ol_cv_bdb_minor = 0 ; then
30322                 cat >conftest.$ac_ext <<_ACEOF
30323 /* confdefs.h.  */
30324 _ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h.  */
30328
30329 #include <db.h>
30330 #ifndef DB_VERSION_MINOR
30331 #       define DB_VERSION_MINOR 0
30332 #endif
30333 #if DB_VERSION_MINOR == 2
30334 __db_version
30335 #endif
30336
30337 _ACEOF
30338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30339   $EGREP "__db_version" >/dev/null 2>&1; then
30340   ol_cv_bdb_minor=2
30341 else
30342   :
30343 fi
30344 rm -f conftest*
30345
30346         fi
30347         if test $ol_cv_bdb_minor = 0 ; then
30348                 cat >conftest.$ac_ext <<_ACEOF
30349 /* confdefs.h.  */
30350 _ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h.  */
30354
30355 #include <db.h>
30356 #ifndef DB_VERSION_MINOR
30357 #       define DB_VERSION_MINOR 0
30358 #endif
30359 #if DB_VERSION_MINOR == 1
30360 __db_version
30361 #endif
30362
30363 _ACEOF
30364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30365   $EGREP "__db_version" >/dev/null 2>&1; then
30366   ol_cv_bdb_minor=1
30367 else
30368   :
30369 fi
30370 rm -f conftest*
30371
30372         fi
30373
30374 fi
30375 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
30376 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
30377
30378 if test $ol_cv_bdb_major = 4 ; then
30379         if test $ol_cv_bdb_minor = 5 ; then
30380                 if test $ol_cv_lib_db = no ; then
30381         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
30382 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6; }
30383 if test "${ol_cv_db_db45+set}" = set; then
30384   echo $ECHO_N "(cached) $ECHO_C" >&6
30385 else
30386
30387         ol_DB_LIB=-ldb45
30388         ol_LIBS=$LIBS
30389         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30390
30391         cat >conftest.$ac_ext <<_ACEOF
30392 /* confdefs.h.  */
30393 _ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h.  */
30397
30398 #ifdef HAVE_DB_185_H
30399 # include <db_185.h>
30400 #else
30401 # include <db.h>
30402 #endif
30403
30404 #ifndef DB_VERSION_MAJOR
30405 # define DB_VERSION_MAJOR 1
30406 #endif
30407
30408 #ifndef NULL
30409 #define NULL ((void*)0)
30410 #endif
30411
30412 int
30413 main ()
30414 {
30415
30416 #if DB_VERSION_MAJOR > 1
30417         {
30418                 char *version;
30419                 int major, minor, patch;
30420
30421                 version = db_version( &major, &minor, &patch );
30422
30423                 if( major != DB_VERSION_MAJOR ||
30424                         minor < DB_VERSION_MINOR )
30425                 {
30426                         printf("Berkeley DB version mismatch\n"
30427                                 "\theader: %s\n\tlibrary: %s\n",
30428                                 DB_VERSION_STRING, version);
30429                         return 1;
30430                 }
30431         }
30432 #endif
30433
30434 #if DB_VERSION_MAJOR > 2
30435         db_env_create( NULL, 0 );
30436 #elif DB_VERSION_MAJOR > 1
30437         db_appexit( NULL );
30438 #else
30439         (void) dbopen( NULL, 0, 0, 0, NULL);
30440 #endif
30441
30442   ;
30443   return 0;
30444 }
30445 _ACEOF
30446 rm -f conftest.$ac_objext conftest$ac_exeext
30447 if { (ac_try="$ac_link"
30448 case "(($ac_try" in
30449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450   *) ac_try_echo=$ac_try;;
30451 esac
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453   (eval "$ac_link") 2>conftest.er1
30454   ac_status=$?
30455   grep -v '^ *+' conftest.er1 >conftest.err
30456   rm -f conftest.er1
30457   cat conftest.err >&5
30458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459   (exit $ac_status); } &&
30460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30461   { (case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466   (eval "$ac_try") 2>&5
30467   ac_status=$?
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); }; } &&
30470          { ac_try='test -s conftest$ac_exeext'
30471   { (case "(($ac_try" in
30472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473   *) ac_try_echo=$ac_try;;
30474 esac
30475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476   (eval "$ac_try") 2>&5
30477   ac_status=$?
30478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479   (exit $ac_status); }; }; then
30480   ol_cv_db_db45=yes
30481 else
30482   echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30484
30485         ol_cv_db_db45=no
30486 fi
30487
30488 rm -f core conftest.err conftest.$ac_objext \
30489       conftest$ac_exeext conftest.$ac_ext
30490
30491         LIBS="$ol_LIBS"
30492
30493 fi
30494 { echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
30495 echo "${ECHO_T}$ol_cv_db_db45" >&6; }
30496
30497         if test $ol_cv_db_db45 = yes ; then
30498                 ol_cv_lib_db=-ldb45
30499         fi
30500 fi
30501
30502                 if test $ol_cv_lib_db = no ; then
30503         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
30504 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6; }
30505 if test "${ol_cv_db_db_45+set}" = set; then
30506   echo $ECHO_N "(cached) $ECHO_C" >&6
30507 else
30508
30509         ol_DB_LIB=-ldb-45
30510         ol_LIBS=$LIBS
30511         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30512
30513         cat >conftest.$ac_ext <<_ACEOF
30514 /* confdefs.h.  */
30515 _ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h.  */
30519
30520 #ifdef HAVE_DB_185_H
30521 # include <db_185.h>
30522 #else
30523 # include <db.h>
30524 #endif
30525
30526 #ifndef DB_VERSION_MAJOR
30527 # define DB_VERSION_MAJOR 1
30528 #endif
30529
30530 #ifndef NULL
30531 #define NULL ((void*)0)
30532 #endif
30533
30534 int
30535 main ()
30536 {
30537
30538 #if DB_VERSION_MAJOR > 1
30539         {
30540                 char *version;
30541                 int major, minor, patch;
30542
30543                 version = db_version( &major, &minor, &patch );
30544
30545                 if( major != DB_VERSION_MAJOR ||
30546                         minor < DB_VERSION_MINOR )
30547                 {
30548                         printf("Berkeley DB version mismatch\n"
30549                                 "\theader: %s\n\tlibrary: %s\n",
30550                                 DB_VERSION_STRING, version);
30551                         return 1;
30552                 }
30553         }
30554 #endif
30555
30556 #if DB_VERSION_MAJOR > 2
30557         db_env_create( NULL, 0 );
30558 #elif DB_VERSION_MAJOR > 1
30559         db_appexit( NULL );
30560 #else
30561         (void) dbopen( NULL, 0, 0, 0, NULL);
30562 #endif
30563
30564   ;
30565   return 0;
30566 }
30567 _ACEOF
30568 rm -f conftest.$ac_objext conftest$ac_exeext
30569 if { (ac_try="$ac_link"
30570 case "(($ac_try" in
30571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572   *) ac_try_echo=$ac_try;;
30573 esac
30574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30575   (eval "$ac_link") 2>conftest.er1
30576   ac_status=$?
30577   grep -v '^ *+' conftest.er1 >conftest.err
30578   rm -f conftest.er1
30579   cat conftest.err >&5
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); } &&
30582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30583   { (case "(($ac_try" in
30584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585   *) ac_try_echo=$ac_try;;
30586 esac
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588   (eval "$ac_try") 2>&5
30589   ac_status=$?
30590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591   (exit $ac_status); }; } &&
30592          { ac_try='test -s conftest$ac_exeext'
30593   { (case "(($ac_try" in
30594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595   *) ac_try_echo=$ac_try;;
30596 esac
30597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598   (eval "$ac_try") 2>&5
30599   ac_status=$?
30600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601   (exit $ac_status); }; }; then
30602   ol_cv_db_db_45=yes
30603 else
30604   echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30606
30607         ol_cv_db_db_45=no
30608 fi
30609
30610 rm -f core conftest.err conftest.$ac_objext \
30611       conftest$ac_exeext conftest.$ac_ext
30612
30613         LIBS="$ol_LIBS"
30614
30615 fi
30616 { echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
30617 echo "${ECHO_T}$ol_cv_db_db_45" >&6; }
30618
30619         if test $ol_cv_db_db_45 = yes ; then
30620                 ol_cv_lib_db=-ldb-45
30621         fi
30622 fi
30623
30624                 if test $ol_cv_lib_db = no ; then
30625         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
30626 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6; }
30627 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
30628   echo $ECHO_N "(cached) $ECHO_C" >&6
30629 else
30630
30631         ol_DB_LIB=-ldb-4.5
30632         ol_LIBS=$LIBS
30633         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30634
30635         cat >conftest.$ac_ext <<_ACEOF
30636 /* confdefs.h.  */
30637 _ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h.  */
30641
30642 #ifdef HAVE_DB_185_H
30643 # include <db_185.h>
30644 #else
30645 # include <db.h>
30646 #endif
30647
30648 #ifndef DB_VERSION_MAJOR
30649 # define DB_VERSION_MAJOR 1
30650 #endif
30651
30652 #ifndef NULL
30653 #define NULL ((void*)0)
30654 #endif
30655
30656 int
30657 main ()
30658 {
30659
30660 #if DB_VERSION_MAJOR > 1
30661         {
30662                 char *version;
30663                 int major, minor, patch;
30664
30665                 version = db_version( &major, &minor, &patch );
30666
30667                 if( major != DB_VERSION_MAJOR ||
30668                         minor < DB_VERSION_MINOR )
30669                 {
30670                         printf("Berkeley DB version mismatch\n"
30671                                 "\theader: %s\n\tlibrary: %s\n",
30672                                 DB_VERSION_STRING, version);
30673                         return 1;
30674                 }
30675         }
30676 #endif
30677
30678 #if DB_VERSION_MAJOR > 2
30679         db_env_create( NULL, 0 );
30680 #elif DB_VERSION_MAJOR > 1
30681         db_appexit( NULL );
30682 #else
30683         (void) dbopen( NULL, 0, 0, 0, NULL);
30684 #endif
30685
30686   ;
30687   return 0;
30688 }
30689 _ACEOF
30690 rm -f conftest.$ac_objext conftest$ac_exeext
30691 if { (ac_try="$ac_link"
30692 case "(($ac_try" in
30693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30694   *) ac_try_echo=$ac_try;;
30695 esac
30696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30697   (eval "$ac_link") 2>conftest.er1
30698   ac_status=$?
30699   grep -v '^ *+' conftest.er1 >conftest.err
30700   rm -f conftest.er1
30701   cat conftest.err >&5
30702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703   (exit $ac_status); } &&
30704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30705   { (case "(($ac_try" in
30706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707   *) ac_try_echo=$ac_try;;
30708 esac
30709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710   (eval "$ac_try") 2>&5
30711   ac_status=$?
30712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713   (exit $ac_status); }; } &&
30714          { ac_try='test -s conftest$ac_exeext'
30715   { (case "(($ac_try" in
30716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717   *) ac_try_echo=$ac_try;;
30718 esac
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720   (eval "$ac_try") 2>&5
30721   ac_status=$?
30722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723   (exit $ac_status); }; }; then
30724   ol_cv_db_db_4_dot_5=yes
30725 else
30726   echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30728
30729         ol_cv_db_db_4_dot_5=no
30730 fi
30731
30732 rm -f core conftest.err conftest.$ac_objext \
30733       conftest$ac_exeext conftest.$ac_ext
30734
30735         LIBS="$ol_LIBS"
30736
30737 fi
30738 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
30739 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6; }
30740
30741         if test $ol_cv_db_db_4_dot_5 = yes ; then
30742                 ol_cv_lib_db=-ldb-4.5
30743         fi
30744 fi
30745
30746                 if test $ol_cv_lib_db = no ; then
30747         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
30748 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6; }
30749 if test "${ol_cv_db_db_4_5+set}" = set; then
30750   echo $ECHO_N "(cached) $ECHO_C" >&6
30751 else
30752
30753         ol_DB_LIB=-ldb-4-5
30754         ol_LIBS=$LIBS
30755         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30756
30757         cat >conftest.$ac_ext <<_ACEOF
30758 /* confdefs.h.  */
30759 _ACEOF
30760 cat confdefs.h >>conftest.$ac_ext
30761 cat >>conftest.$ac_ext <<_ACEOF
30762 /* end confdefs.h.  */
30763
30764 #ifdef HAVE_DB_185_H
30765 # include <db_185.h>
30766 #else
30767 # include <db.h>
30768 #endif
30769
30770 #ifndef DB_VERSION_MAJOR
30771 # define DB_VERSION_MAJOR 1
30772 #endif
30773
30774 #ifndef NULL
30775 #define NULL ((void*)0)
30776 #endif
30777
30778 int
30779 main ()
30780 {
30781
30782 #if DB_VERSION_MAJOR > 1
30783         {
30784                 char *version;
30785                 int major, minor, patch;
30786
30787                 version = db_version( &major, &minor, &patch );
30788
30789                 if( major != DB_VERSION_MAJOR ||
30790                         minor < DB_VERSION_MINOR )
30791                 {
30792                         printf("Berkeley DB version mismatch\n"
30793                                 "\theader: %s\n\tlibrary: %s\n",
30794                                 DB_VERSION_STRING, version);
30795                         return 1;
30796                 }
30797         }
30798 #endif
30799
30800 #if DB_VERSION_MAJOR > 2
30801         db_env_create( NULL, 0 );
30802 #elif DB_VERSION_MAJOR > 1
30803         db_appexit( NULL );
30804 #else
30805         (void) dbopen( NULL, 0, 0, 0, NULL);
30806 #endif
30807
30808   ;
30809   return 0;
30810 }
30811 _ACEOF
30812 rm -f conftest.$ac_objext conftest$ac_exeext
30813 if { (ac_try="$ac_link"
30814 case "(($ac_try" in
30815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816   *) ac_try_echo=$ac_try;;
30817 esac
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819   (eval "$ac_link") 2>conftest.er1
30820   ac_status=$?
30821   grep -v '^ *+' conftest.er1 >conftest.err
30822   rm -f conftest.er1
30823   cat conftest.err >&5
30824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825   (exit $ac_status); } &&
30826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30827   { (case "(($ac_try" in
30828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829   *) ac_try_echo=$ac_try;;
30830 esac
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832   (eval "$ac_try") 2>&5
30833   ac_status=$?
30834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835   (exit $ac_status); }; } &&
30836          { ac_try='test -s conftest$ac_exeext'
30837   { (case "(($ac_try" in
30838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30839   *) ac_try_echo=$ac_try;;
30840 esac
30841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30842   (eval "$ac_try") 2>&5
30843   ac_status=$?
30844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845   (exit $ac_status); }; }; then
30846   ol_cv_db_db_4_5=yes
30847 else
30848   echo "$as_me: failed program was:" >&5
30849 sed 's/^/| /' conftest.$ac_ext >&5
30850
30851         ol_cv_db_db_4_5=no
30852 fi
30853
30854 rm -f core conftest.err conftest.$ac_objext \
30855       conftest$ac_exeext conftest.$ac_ext
30856
30857         LIBS="$ol_LIBS"
30858
30859 fi
30860 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
30861 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6; }
30862
30863         if test $ol_cv_db_db_4_5 = yes ; then
30864                 ol_cv_lib_db=-ldb-4-5
30865         fi
30866 fi
30867
30868         elif test $ol_cv_bdb_minor = 4 ; then
30869                 if test $ol_cv_lib_db = no ; then
30870         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
30871 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6; }
30872 if test "${ol_cv_db_db44+set}" = set; then
30873   echo $ECHO_N "(cached) $ECHO_C" >&6
30874 else
30875
30876         ol_DB_LIB=-ldb44
30877         ol_LIBS=$LIBS
30878         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30879
30880         cat >conftest.$ac_ext <<_ACEOF
30881 /* confdefs.h.  */
30882 _ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h.  */
30886
30887 #ifdef HAVE_DB_185_H
30888 # include <db_185.h>
30889 #else
30890 # include <db.h>
30891 #endif
30892
30893 #ifndef DB_VERSION_MAJOR
30894 # define DB_VERSION_MAJOR 1
30895 #endif
30896
30897 #ifndef NULL
30898 #define NULL ((void*)0)
30899 #endif
30900
30901 int
30902 main ()
30903 {
30904
30905 #if DB_VERSION_MAJOR > 1
30906         {
30907                 char *version;
30908                 int major, minor, patch;
30909
30910                 version = db_version( &major, &minor, &patch );
30911
30912                 if( major != DB_VERSION_MAJOR ||
30913                         minor < DB_VERSION_MINOR )
30914                 {
30915                         printf("Berkeley DB version mismatch\n"
30916                                 "\theader: %s\n\tlibrary: %s\n",
30917                                 DB_VERSION_STRING, version);
30918                         return 1;
30919                 }
30920         }
30921 #endif
30922
30923 #if DB_VERSION_MAJOR > 2
30924         db_env_create( NULL, 0 );
30925 #elif DB_VERSION_MAJOR > 1
30926         db_appexit( NULL );
30927 #else
30928         (void) dbopen( NULL, 0, 0, 0, NULL);
30929 #endif
30930
30931   ;
30932   return 0;
30933 }
30934 _ACEOF
30935 rm -f conftest.$ac_objext conftest$ac_exeext
30936 if { (ac_try="$ac_link"
30937 case "(($ac_try" in
30938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939   *) ac_try_echo=$ac_try;;
30940 esac
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942   (eval "$ac_link") 2>conftest.er1
30943   ac_status=$?
30944   grep -v '^ *+' conftest.er1 >conftest.err
30945   rm -f conftest.er1
30946   cat conftest.err >&5
30947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948   (exit $ac_status); } &&
30949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30950   { (case "(($ac_try" in
30951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30952   *) ac_try_echo=$ac_try;;
30953 esac
30954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30955   (eval "$ac_try") 2>&5
30956   ac_status=$?
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); }; } &&
30959          { ac_try='test -s conftest$ac_exeext'
30960   { (case "(($ac_try" in
30961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962   *) ac_try_echo=$ac_try;;
30963 esac
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965   (eval "$ac_try") 2>&5
30966   ac_status=$?
30967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968   (exit $ac_status); }; }; then
30969   ol_cv_db_db44=yes
30970 else
30971   echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30973
30974         ol_cv_db_db44=no
30975 fi
30976
30977 rm -f core conftest.err conftest.$ac_objext \
30978       conftest$ac_exeext conftest.$ac_ext
30979
30980         LIBS="$ol_LIBS"
30981
30982 fi
30983 { echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
30984 echo "${ECHO_T}$ol_cv_db_db44" >&6; }
30985
30986         if test $ol_cv_db_db44 = yes ; then
30987                 ol_cv_lib_db=-ldb44
30988         fi
30989 fi
30990
30991                 if test $ol_cv_lib_db = no ; then
30992         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
30993 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6; }
30994 if test "${ol_cv_db_db_44+set}" = set; then
30995   echo $ECHO_N "(cached) $ECHO_C" >&6
30996 else
30997
30998         ol_DB_LIB=-ldb-44
30999         ol_LIBS=$LIBS
31000         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31001
31002         cat >conftest.$ac_ext <<_ACEOF
31003 /* confdefs.h.  */
31004 _ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h.  */
31008
31009 #ifdef HAVE_DB_185_H
31010 # include <db_185.h>
31011 #else
31012 # include <db.h>
31013 #endif
31014
31015 #ifndef DB_VERSION_MAJOR
31016 # define DB_VERSION_MAJOR 1
31017 #endif
31018
31019 #ifndef NULL
31020 #define NULL ((void*)0)
31021 #endif
31022
31023 int
31024 main ()
31025 {
31026
31027 #if DB_VERSION_MAJOR > 1
31028         {
31029                 char *version;
31030                 int major, minor, patch;
31031
31032                 version = db_version( &major, &minor, &patch );
31033
31034                 if( major != DB_VERSION_MAJOR ||
31035                         minor < DB_VERSION_MINOR )
31036                 {
31037                         printf("Berkeley DB version mismatch\n"
31038                                 "\theader: %s\n\tlibrary: %s\n",
31039                                 DB_VERSION_STRING, version);
31040                         return 1;
31041                 }
31042         }
31043 #endif
31044
31045 #if DB_VERSION_MAJOR > 2
31046         db_env_create( NULL, 0 );
31047 #elif DB_VERSION_MAJOR > 1
31048         db_appexit( NULL );
31049 #else
31050         (void) dbopen( NULL, 0, 0, 0, NULL);
31051 #endif
31052
31053   ;
31054   return 0;
31055 }
31056 _ACEOF
31057 rm -f conftest.$ac_objext conftest$ac_exeext
31058 if { (ac_try="$ac_link"
31059 case "(($ac_try" in
31060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061   *) ac_try_echo=$ac_try;;
31062 esac
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064   (eval "$ac_link") 2>conftest.er1
31065   ac_status=$?
31066   grep -v '^ *+' conftest.er1 >conftest.err
31067   rm -f conftest.er1
31068   cat conftest.err >&5
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); } &&
31071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31072   { (case "(($ac_try" in
31073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074   *) ac_try_echo=$ac_try;;
31075 esac
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077   (eval "$ac_try") 2>&5
31078   ac_status=$?
31079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080   (exit $ac_status); }; } &&
31081          { ac_try='test -s conftest$ac_exeext'
31082   { (case "(($ac_try" in
31083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084   *) ac_try_echo=$ac_try;;
31085 esac
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087   (eval "$ac_try") 2>&5
31088   ac_status=$?
31089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090   (exit $ac_status); }; }; then
31091   ol_cv_db_db_44=yes
31092 else
31093   echo "$as_me: failed program was:" >&5
31094 sed 's/^/| /' conftest.$ac_ext >&5
31095
31096         ol_cv_db_db_44=no
31097 fi
31098
31099 rm -f core conftest.err conftest.$ac_objext \
31100       conftest$ac_exeext conftest.$ac_ext
31101
31102         LIBS="$ol_LIBS"
31103
31104 fi
31105 { echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31106 echo "${ECHO_T}$ol_cv_db_db_44" >&6; }
31107
31108         if test $ol_cv_db_db_44 = yes ; then
31109                 ol_cv_lib_db=-ldb-44
31110         fi
31111 fi
31112
31113                 if test $ol_cv_lib_db = no ; then
31114         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31115 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6; }
31116 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31117   echo $ECHO_N "(cached) $ECHO_C" >&6
31118 else
31119
31120         ol_DB_LIB=-ldb-4.4
31121         ol_LIBS=$LIBS
31122         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31123
31124         cat >conftest.$ac_ext <<_ACEOF
31125 /* confdefs.h.  */
31126 _ACEOF
31127 cat confdefs.h >>conftest.$ac_ext
31128 cat >>conftest.$ac_ext <<_ACEOF
31129 /* end confdefs.h.  */
31130
31131 #ifdef HAVE_DB_185_H
31132 # include <db_185.h>
31133 #else
31134 # include <db.h>
31135 #endif
31136
31137 #ifndef DB_VERSION_MAJOR
31138 # define DB_VERSION_MAJOR 1
31139 #endif
31140
31141 #ifndef NULL
31142 #define NULL ((void*)0)
31143 #endif
31144
31145 int
31146 main ()
31147 {
31148
31149 #if DB_VERSION_MAJOR > 1
31150         {
31151                 char *version;
31152                 int major, minor, patch;
31153
31154                 version = db_version( &major, &minor, &patch );
31155
31156                 if( major != DB_VERSION_MAJOR ||
31157                         minor < DB_VERSION_MINOR )
31158                 {
31159                         printf("Berkeley DB version mismatch\n"
31160                                 "\theader: %s\n\tlibrary: %s\n",
31161                                 DB_VERSION_STRING, version);
31162                         return 1;
31163                 }
31164         }
31165 #endif
31166
31167 #if DB_VERSION_MAJOR > 2
31168         db_env_create( NULL, 0 );
31169 #elif DB_VERSION_MAJOR > 1
31170         db_appexit( NULL );
31171 #else
31172         (void) dbopen( NULL, 0, 0, 0, NULL);
31173 #endif
31174
31175   ;
31176   return 0;
31177 }
31178 _ACEOF
31179 rm -f conftest.$ac_objext conftest$ac_exeext
31180 if { (ac_try="$ac_link"
31181 case "(($ac_try" in
31182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31183   *) ac_try_echo=$ac_try;;
31184 esac
31185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31186   (eval "$ac_link") 2>conftest.er1
31187   ac_status=$?
31188   grep -v '^ *+' conftest.er1 >conftest.err
31189   rm -f conftest.er1
31190   cat conftest.err >&5
31191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192   (exit $ac_status); } &&
31193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31194   { (case "(($ac_try" in
31195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196   *) ac_try_echo=$ac_try;;
31197 esac
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199   (eval "$ac_try") 2>&5
31200   ac_status=$?
31201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202   (exit $ac_status); }; } &&
31203          { ac_try='test -s conftest$ac_exeext'
31204   { (case "(($ac_try" in
31205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206   *) ac_try_echo=$ac_try;;
31207 esac
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209   (eval "$ac_try") 2>&5
31210   ac_status=$?
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); }; }; then
31213   ol_cv_db_db_4_dot_4=yes
31214 else
31215   echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31217
31218         ol_cv_db_db_4_dot_4=no
31219 fi
31220
31221 rm -f core conftest.err conftest.$ac_objext \
31222       conftest$ac_exeext conftest.$ac_ext
31223
31224         LIBS="$ol_LIBS"
31225
31226 fi
31227 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31228 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6; }
31229
31230         if test $ol_cv_db_db_4_dot_4 = yes ; then
31231                 ol_cv_lib_db=-ldb-4.4
31232         fi
31233 fi
31234
31235                 if test $ol_cv_lib_db = no ; then
31236         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31237 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6; }
31238 if test "${ol_cv_db_db_4_4+set}" = set; then
31239   echo $ECHO_N "(cached) $ECHO_C" >&6
31240 else
31241
31242         ol_DB_LIB=-ldb-4-4
31243         ol_LIBS=$LIBS
31244         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31245
31246         cat >conftest.$ac_ext <<_ACEOF
31247 /* confdefs.h.  */
31248 _ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h.  */
31252
31253 #ifdef HAVE_DB_185_H
31254 # include <db_185.h>
31255 #else
31256 # include <db.h>
31257 #endif
31258
31259 #ifndef DB_VERSION_MAJOR
31260 # define DB_VERSION_MAJOR 1
31261 #endif
31262
31263 #ifndef NULL
31264 #define NULL ((void*)0)
31265 #endif
31266
31267 int
31268 main ()
31269 {
31270
31271 #if DB_VERSION_MAJOR > 1
31272         {
31273                 char *version;
31274                 int major, minor, patch;
31275
31276                 version = db_version( &major, &minor, &patch );
31277
31278                 if( major != DB_VERSION_MAJOR ||
31279                         minor < DB_VERSION_MINOR )
31280                 {
31281                         printf("Berkeley DB version mismatch\n"
31282                                 "\theader: %s\n\tlibrary: %s\n",
31283                                 DB_VERSION_STRING, version);
31284                         return 1;
31285                 }
31286         }
31287 #endif
31288
31289 #if DB_VERSION_MAJOR > 2
31290         db_env_create( NULL, 0 );
31291 #elif DB_VERSION_MAJOR > 1
31292         db_appexit( NULL );
31293 #else
31294         (void) dbopen( NULL, 0, 0, 0, NULL);
31295 #endif
31296
31297   ;
31298   return 0;
31299 }
31300 _ACEOF
31301 rm -f conftest.$ac_objext conftest$ac_exeext
31302 if { (ac_try="$ac_link"
31303 case "(($ac_try" in
31304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305   *) ac_try_echo=$ac_try;;
31306 esac
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308   (eval "$ac_link") 2>conftest.er1
31309   ac_status=$?
31310   grep -v '^ *+' conftest.er1 >conftest.err
31311   rm -f conftest.er1
31312   cat conftest.err >&5
31313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); } &&
31315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31316   { (case "(($ac_try" in
31317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318   *) ac_try_echo=$ac_try;;
31319 esac
31320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321   (eval "$ac_try") 2>&5
31322   ac_status=$?
31323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324   (exit $ac_status); }; } &&
31325          { ac_try='test -s conftest$ac_exeext'
31326   { (case "(($ac_try" in
31327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328   *) ac_try_echo=$ac_try;;
31329 esac
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331   (eval "$ac_try") 2>&5
31332   ac_status=$?
31333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334   (exit $ac_status); }; }; then
31335   ol_cv_db_db_4_4=yes
31336 else
31337   echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31339
31340         ol_cv_db_db_4_4=no
31341 fi
31342
31343 rm -f core conftest.err conftest.$ac_objext \
31344       conftest$ac_exeext conftest.$ac_ext
31345
31346         LIBS="$ol_LIBS"
31347
31348 fi
31349 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
31350 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6; }
31351
31352         if test $ol_cv_db_db_4_4 = yes ; then
31353                 ol_cv_lib_db=-ldb-4-4
31354         fi
31355 fi
31356
31357         elif test $ol_cv_bdb_minor = 3 ; then
31358                 if test $ol_cv_lib_db = no ; then
31359         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
31360 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6; }
31361 if test "${ol_cv_db_db43+set}" = set; then
31362   echo $ECHO_N "(cached) $ECHO_C" >&6
31363 else
31364
31365         ol_DB_LIB=-ldb43
31366         ol_LIBS=$LIBS
31367         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31368
31369         cat >conftest.$ac_ext <<_ACEOF
31370 /* confdefs.h.  */
31371 _ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h.  */
31375
31376 #ifdef HAVE_DB_185_H
31377 # include <db_185.h>
31378 #else
31379 # include <db.h>
31380 #endif
31381
31382 #ifndef DB_VERSION_MAJOR
31383 # define DB_VERSION_MAJOR 1
31384 #endif
31385
31386 #ifndef NULL
31387 #define NULL ((void*)0)
31388 #endif
31389
31390 int
31391 main ()
31392 {
31393
31394 #if DB_VERSION_MAJOR > 1
31395         {
31396                 char *version;
31397                 int major, minor, patch;
31398
31399                 version = db_version( &major, &minor, &patch );
31400
31401                 if( major != DB_VERSION_MAJOR ||
31402                         minor < DB_VERSION_MINOR )
31403                 {
31404                         printf("Berkeley DB version mismatch\n"
31405                                 "\theader: %s\n\tlibrary: %s\n",
31406                                 DB_VERSION_STRING, version);
31407                         return 1;
31408                 }
31409         }
31410 #endif
31411
31412 #if DB_VERSION_MAJOR > 2
31413         db_env_create( NULL, 0 );
31414 #elif DB_VERSION_MAJOR > 1
31415         db_appexit( NULL );
31416 #else
31417         (void) dbopen( NULL, 0, 0, 0, NULL);
31418 #endif
31419
31420   ;
31421   return 0;
31422 }
31423 _ACEOF
31424 rm -f conftest.$ac_objext conftest$ac_exeext
31425 if { (ac_try="$ac_link"
31426 case "(($ac_try" in
31427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428   *) ac_try_echo=$ac_try;;
31429 esac
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431   (eval "$ac_link") 2>conftest.er1
31432   ac_status=$?
31433   grep -v '^ *+' conftest.er1 >conftest.err
31434   rm -f conftest.er1
31435   cat conftest.err >&5
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); } &&
31438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31439   { (case "(($ac_try" in
31440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441   *) ac_try_echo=$ac_try;;
31442 esac
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444   (eval "$ac_try") 2>&5
31445   ac_status=$?
31446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447   (exit $ac_status); }; } &&
31448          { ac_try='test -s conftest$ac_exeext'
31449   { (case "(($ac_try" in
31450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451   *) ac_try_echo=$ac_try;;
31452 esac
31453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454   (eval "$ac_try") 2>&5
31455   ac_status=$?
31456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457   (exit $ac_status); }; }; then
31458   ol_cv_db_db43=yes
31459 else
31460   echo "$as_me: failed program was:" >&5
31461 sed 's/^/| /' conftest.$ac_ext >&5
31462
31463         ol_cv_db_db43=no
31464 fi
31465
31466 rm -f core conftest.err conftest.$ac_objext \
31467       conftest$ac_exeext conftest.$ac_ext
31468
31469         LIBS="$ol_LIBS"
31470
31471 fi
31472 { echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
31473 echo "${ECHO_T}$ol_cv_db_db43" >&6; }
31474
31475         if test $ol_cv_db_db43 = yes ; then
31476                 ol_cv_lib_db=-ldb43
31477         fi
31478 fi
31479
31480                 if test $ol_cv_lib_db = no ; then
31481         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
31482 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6; }
31483 if test "${ol_cv_db_db_43+set}" = set; then
31484   echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31486
31487         ol_DB_LIB=-ldb-43
31488         ol_LIBS=$LIBS
31489         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31490
31491         cat >conftest.$ac_ext <<_ACEOF
31492 /* confdefs.h.  */
31493 _ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h.  */
31497
31498 #ifdef HAVE_DB_185_H
31499 # include <db_185.h>
31500 #else
31501 # include <db.h>
31502 #endif
31503
31504 #ifndef DB_VERSION_MAJOR
31505 # define DB_VERSION_MAJOR 1
31506 #endif
31507
31508 #ifndef NULL
31509 #define NULL ((void*)0)
31510 #endif
31511
31512 int
31513 main ()
31514 {
31515
31516 #if DB_VERSION_MAJOR > 1
31517         {
31518                 char *version;
31519                 int major, minor, patch;
31520
31521                 version = db_version( &major, &minor, &patch );
31522
31523                 if( major != DB_VERSION_MAJOR ||
31524                         minor < DB_VERSION_MINOR )
31525                 {
31526                         printf("Berkeley DB version mismatch\n"
31527                                 "\theader: %s\n\tlibrary: %s\n",
31528                                 DB_VERSION_STRING, version);
31529                         return 1;
31530                 }
31531         }
31532 #endif
31533
31534 #if DB_VERSION_MAJOR > 2
31535         db_env_create( NULL, 0 );
31536 #elif DB_VERSION_MAJOR > 1
31537         db_appexit( NULL );
31538 #else
31539         (void) dbopen( NULL, 0, 0, 0, NULL);
31540 #endif
31541
31542   ;
31543   return 0;
31544 }
31545 _ACEOF
31546 rm -f conftest.$ac_objext conftest$ac_exeext
31547 if { (ac_try="$ac_link"
31548 case "(($ac_try" in
31549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31550   *) ac_try_echo=$ac_try;;
31551 esac
31552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31553   (eval "$ac_link") 2>conftest.er1
31554   ac_status=$?
31555   grep -v '^ *+' conftest.er1 >conftest.err
31556   rm -f conftest.er1
31557   cat conftest.err >&5
31558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559   (exit $ac_status); } &&
31560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31561   { (case "(($ac_try" in
31562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563   *) ac_try_echo=$ac_try;;
31564 esac
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566   (eval "$ac_try") 2>&5
31567   ac_status=$?
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); }; } &&
31570          { ac_try='test -s conftest$ac_exeext'
31571   { (case "(($ac_try" in
31572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573   *) ac_try_echo=$ac_try;;
31574 esac
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576   (eval "$ac_try") 2>&5
31577   ac_status=$?
31578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579   (exit $ac_status); }; }; then
31580   ol_cv_db_db_43=yes
31581 else
31582   echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31584
31585         ol_cv_db_db_43=no
31586 fi
31587
31588 rm -f core conftest.err conftest.$ac_objext \
31589       conftest$ac_exeext conftest.$ac_ext
31590
31591         LIBS="$ol_LIBS"
31592
31593 fi
31594 { echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
31595 echo "${ECHO_T}$ol_cv_db_db_43" >&6; }
31596
31597         if test $ol_cv_db_db_43 = yes ; then
31598                 ol_cv_lib_db=-ldb-43
31599         fi
31600 fi
31601
31602                 if test $ol_cv_lib_db = no ; then
31603         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
31604 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6; }
31605 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
31606   echo $ECHO_N "(cached) $ECHO_C" >&6
31607 else
31608
31609         ol_DB_LIB=-ldb-4.3
31610         ol_LIBS=$LIBS
31611         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31612
31613         cat >conftest.$ac_ext <<_ACEOF
31614 /* confdefs.h.  */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h.  */
31619
31620 #ifdef HAVE_DB_185_H
31621 # include <db_185.h>
31622 #else
31623 # include <db.h>
31624 #endif
31625
31626 #ifndef DB_VERSION_MAJOR
31627 # define DB_VERSION_MAJOR 1
31628 #endif
31629
31630 #ifndef NULL
31631 #define NULL ((void*)0)
31632 #endif
31633
31634 int
31635 main ()
31636 {
31637
31638 #if DB_VERSION_MAJOR > 1
31639         {
31640                 char *version;
31641                 int major, minor, patch;
31642
31643                 version = db_version( &major, &minor, &patch );
31644
31645                 if( major != DB_VERSION_MAJOR ||
31646                         minor < DB_VERSION_MINOR )
31647                 {
31648                         printf("Berkeley DB version mismatch\n"
31649                                 "\theader: %s\n\tlibrary: %s\n",
31650                                 DB_VERSION_STRING, version);
31651                         return 1;
31652                 }
31653         }
31654 #endif
31655
31656 #if DB_VERSION_MAJOR > 2
31657         db_env_create( NULL, 0 );
31658 #elif DB_VERSION_MAJOR > 1
31659         db_appexit( NULL );
31660 #else
31661         (void) dbopen( NULL, 0, 0, 0, NULL);
31662 #endif
31663
31664   ;
31665   return 0;
31666 }
31667 _ACEOF
31668 rm -f conftest.$ac_objext conftest$ac_exeext
31669 if { (ac_try="$ac_link"
31670 case "(($ac_try" in
31671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672   *) ac_try_echo=$ac_try;;
31673 esac
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675   (eval "$ac_link") 2>conftest.er1
31676   ac_status=$?
31677   grep -v '^ *+' conftest.er1 >conftest.err
31678   rm -f conftest.er1
31679   cat conftest.err >&5
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); } &&
31682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31683   { (case "(($ac_try" in
31684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685   *) ac_try_echo=$ac_try;;
31686 esac
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688   (eval "$ac_try") 2>&5
31689   ac_status=$?
31690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691   (exit $ac_status); }; } &&
31692          { ac_try='test -s conftest$ac_exeext'
31693   { (case "(($ac_try" in
31694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695   *) ac_try_echo=$ac_try;;
31696 esac
31697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698   (eval "$ac_try") 2>&5
31699   ac_status=$?
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); }; }; then
31702   ol_cv_db_db_4_dot_3=yes
31703 else
31704   echo "$as_me: failed program was:" >&5
31705 sed 's/^/| /' conftest.$ac_ext >&5
31706
31707         ol_cv_db_db_4_dot_3=no
31708 fi
31709
31710 rm -f core conftest.err conftest.$ac_objext \
31711       conftest$ac_exeext conftest.$ac_ext
31712
31713         LIBS="$ol_LIBS"
31714
31715 fi
31716 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
31717 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6; }
31718
31719         if test $ol_cv_db_db_4_dot_3 = yes ; then
31720                 ol_cv_lib_db=-ldb-4.3
31721         fi
31722 fi
31723
31724                 if test $ol_cv_lib_db = no ; then
31725         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
31726 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6; }
31727 if test "${ol_cv_db_db_4_3+set}" = set; then
31728   echo $ECHO_N "(cached) $ECHO_C" >&6
31729 else
31730
31731         ol_DB_LIB=-ldb-4-3
31732         ol_LIBS=$LIBS
31733         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31734
31735         cat >conftest.$ac_ext <<_ACEOF
31736 /* confdefs.h.  */
31737 _ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h.  */
31741
31742 #ifdef HAVE_DB_185_H
31743 # include <db_185.h>
31744 #else
31745 # include <db.h>
31746 #endif
31747
31748 #ifndef DB_VERSION_MAJOR
31749 # define DB_VERSION_MAJOR 1
31750 #endif
31751
31752 #ifndef NULL
31753 #define NULL ((void*)0)
31754 #endif
31755
31756 int
31757 main ()
31758 {
31759
31760 #if DB_VERSION_MAJOR > 1
31761         {
31762                 char *version;
31763                 int major, minor, patch;
31764
31765                 version = db_version( &major, &minor, &patch );
31766
31767                 if( major != DB_VERSION_MAJOR ||
31768                         minor < DB_VERSION_MINOR )
31769                 {
31770                         printf("Berkeley DB version mismatch\n"
31771                                 "\theader: %s\n\tlibrary: %s\n",
31772                                 DB_VERSION_STRING, version);
31773                         return 1;
31774                 }
31775         }
31776 #endif
31777
31778 #if DB_VERSION_MAJOR > 2
31779         db_env_create( NULL, 0 );
31780 #elif DB_VERSION_MAJOR > 1
31781         db_appexit( NULL );
31782 #else
31783         (void) dbopen( NULL, 0, 0, 0, NULL);
31784 #endif
31785
31786   ;
31787   return 0;
31788 }
31789 _ACEOF
31790 rm -f conftest.$ac_objext conftest$ac_exeext
31791 if { (ac_try="$ac_link"
31792 case "(($ac_try" in
31793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31794   *) ac_try_echo=$ac_try;;
31795 esac
31796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31797   (eval "$ac_link") 2>conftest.er1
31798   ac_status=$?
31799   grep -v '^ *+' conftest.er1 >conftest.err
31800   rm -f conftest.er1
31801   cat conftest.err >&5
31802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803   (exit $ac_status); } &&
31804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31805   { (case "(($ac_try" in
31806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31807   *) ac_try_echo=$ac_try;;
31808 esac
31809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31810   (eval "$ac_try") 2>&5
31811   ac_status=$?
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); }; } &&
31814          { ac_try='test -s conftest$ac_exeext'
31815   { (case "(($ac_try" in
31816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817   *) ac_try_echo=$ac_try;;
31818 esac
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820   (eval "$ac_try") 2>&5
31821   ac_status=$?
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); }; }; then
31824   ol_cv_db_db_4_3=yes
31825 else
31826   echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31828
31829         ol_cv_db_db_4_3=no
31830 fi
31831
31832 rm -f core conftest.err conftest.$ac_objext \
31833       conftest$ac_exeext conftest.$ac_ext
31834
31835         LIBS="$ol_LIBS"
31836
31837 fi
31838 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
31839 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6; }
31840
31841         if test $ol_cv_db_db_4_3 = yes ; then
31842                 ol_cv_lib_db=-ldb-4-3
31843         fi
31844 fi
31845
31846         elif test $ol_cv_bdb_minor = 2 ; then
31847                 if test $ol_cv_lib_db = no ; then
31848         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31849 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6; }
31850 if test "${ol_cv_db_db42+set}" = set; then
31851   echo $ECHO_N "(cached) $ECHO_C" >&6
31852 else
31853
31854         ol_DB_LIB=-ldb42
31855         ol_LIBS=$LIBS
31856         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31857
31858         cat >conftest.$ac_ext <<_ACEOF
31859 /* confdefs.h.  */
31860 _ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h.  */
31864
31865 #ifdef HAVE_DB_185_H
31866 # include <db_185.h>
31867 #else
31868 # include <db.h>
31869 #endif
31870
31871 #ifndef DB_VERSION_MAJOR
31872 # define DB_VERSION_MAJOR 1
31873 #endif
31874
31875 #ifndef NULL
31876 #define NULL ((void*)0)
31877 #endif
31878
31879 int
31880 main ()
31881 {
31882
31883 #if DB_VERSION_MAJOR > 1
31884         {
31885                 char *version;
31886                 int major, minor, patch;
31887
31888                 version = db_version( &major, &minor, &patch );
31889
31890                 if( major != DB_VERSION_MAJOR ||
31891                         minor < DB_VERSION_MINOR )
31892                 {
31893                         printf("Berkeley DB version mismatch\n"
31894                                 "\theader: %s\n\tlibrary: %s\n",
31895                                 DB_VERSION_STRING, version);
31896                         return 1;
31897                 }
31898         }
31899 #endif
31900
31901 #if DB_VERSION_MAJOR > 2
31902         db_env_create( NULL, 0 );
31903 #elif DB_VERSION_MAJOR > 1
31904         db_appexit( NULL );
31905 #else
31906         (void) dbopen( NULL, 0, 0, 0, NULL);
31907 #endif
31908
31909   ;
31910   return 0;
31911 }
31912 _ACEOF
31913 rm -f conftest.$ac_objext conftest$ac_exeext
31914 if { (ac_try="$ac_link"
31915 case "(($ac_try" in
31916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917   *) ac_try_echo=$ac_try;;
31918 esac
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920   (eval "$ac_link") 2>conftest.er1
31921   ac_status=$?
31922   grep -v '^ *+' conftest.er1 >conftest.err
31923   rm -f conftest.er1
31924   cat conftest.err >&5
31925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926   (exit $ac_status); } &&
31927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928   { (case "(($ac_try" in
31929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930   *) ac_try_echo=$ac_try;;
31931 esac
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933   (eval "$ac_try") 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; } &&
31937          { ac_try='test -s conftest$ac_exeext'
31938   { (case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_try") 2>&5
31944   ac_status=$?
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); }; }; then
31947   ol_cv_db_db42=yes
31948 else
31949   echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31951
31952         ol_cv_db_db42=no
31953 fi
31954
31955 rm -f core conftest.err conftest.$ac_objext \
31956       conftest$ac_exeext conftest.$ac_ext
31957
31958         LIBS="$ol_LIBS"
31959
31960 fi
31961 { echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31962 echo "${ECHO_T}$ol_cv_db_db42" >&6; }
31963
31964         if test $ol_cv_db_db42 = yes ; then
31965                 ol_cv_lib_db=-ldb42
31966         fi
31967 fi
31968
31969                 if test $ol_cv_lib_db = no ; then
31970         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31971 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6; }
31972 if test "${ol_cv_db_db_42+set}" = set; then
31973   echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975
31976         ol_DB_LIB=-ldb-42
31977         ol_LIBS=$LIBS
31978         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31979
31980         cat >conftest.$ac_ext <<_ACEOF
31981 /* confdefs.h.  */
31982 _ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h.  */
31986
31987 #ifdef HAVE_DB_185_H
31988 # include <db_185.h>
31989 #else
31990 # include <db.h>
31991 #endif
31992
31993 #ifndef DB_VERSION_MAJOR
31994 # define DB_VERSION_MAJOR 1
31995 #endif
31996
31997 #ifndef NULL
31998 #define NULL ((void*)0)
31999 #endif
32000
32001 int
32002 main ()
32003 {
32004
32005 #if DB_VERSION_MAJOR > 1
32006         {
32007                 char *version;
32008                 int major, minor, patch;
32009
32010                 version = db_version( &major, &minor, &patch );
32011
32012                 if( major != DB_VERSION_MAJOR ||
32013                         minor < DB_VERSION_MINOR )
32014                 {
32015                         printf("Berkeley DB version mismatch\n"
32016                                 "\theader: %s\n\tlibrary: %s\n",
32017                                 DB_VERSION_STRING, version);
32018                         return 1;
32019                 }
32020         }
32021 #endif
32022
32023 #if DB_VERSION_MAJOR > 2
32024         db_env_create( NULL, 0 );
32025 #elif DB_VERSION_MAJOR > 1
32026         db_appexit( NULL );
32027 #else
32028         (void) dbopen( NULL, 0, 0, 0, NULL);
32029 #endif
32030
32031   ;
32032   return 0;
32033 }
32034 _ACEOF
32035 rm -f conftest.$ac_objext conftest$ac_exeext
32036 if { (ac_try="$ac_link"
32037 case "(($ac_try" in
32038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039   *) ac_try_echo=$ac_try;;
32040 esac
32041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042   (eval "$ac_link") 2>conftest.er1
32043   ac_status=$?
32044   grep -v '^ *+' conftest.er1 >conftest.err
32045   rm -f conftest.er1
32046   cat conftest.err >&5
32047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048   (exit $ac_status); } &&
32049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32050   { (case "(($ac_try" in
32051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052   *) ac_try_echo=$ac_try;;
32053 esac
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055   (eval "$ac_try") 2>&5
32056   ac_status=$?
32057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058   (exit $ac_status); }; } &&
32059          { ac_try='test -s conftest$ac_exeext'
32060   { (case "(($ac_try" in
32061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062   *) ac_try_echo=$ac_try;;
32063 esac
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065   (eval "$ac_try") 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; }; then
32069   ol_cv_db_db_42=yes
32070 else
32071   echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32073
32074         ol_cv_db_db_42=no
32075 fi
32076
32077 rm -f core conftest.err conftest.$ac_objext \
32078       conftest$ac_exeext conftest.$ac_ext
32079
32080         LIBS="$ol_LIBS"
32081
32082 fi
32083 { echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32084 echo "${ECHO_T}$ol_cv_db_db_42" >&6; }
32085
32086         if test $ol_cv_db_db_42 = yes ; then
32087                 ol_cv_lib_db=-ldb-42
32088         fi
32089 fi
32090
32091                 if test $ol_cv_lib_db = no ; then
32092         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32093 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6; }
32094 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32095   echo $ECHO_N "(cached) $ECHO_C" >&6
32096 else
32097
32098         ol_DB_LIB=-ldb-4.2
32099         ol_LIBS=$LIBS
32100         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32101
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
32109 #ifdef HAVE_DB_185_H
32110 # include <db_185.h>
32111 #else
32112 # include <db.h>
32113 #endif
32114
32115 #ifndef DB_VERSION_MAJOR
32116 # define DB_VERSION_MAJOR 1
32117 #endif
32118
32119 #ifndef NULL
32120 #define NULL ((void*)0)
32121 #endif
32122
32123 int
32124 main ()
32125 {
32126
32127 #if DB_VERSION_MAJOR > 1
32128         {
32129                 char *version;
32130                 int major, minor, patch;
32131
32132                 version = db_version( &major, &minor, &patch );
32133
32134                 if( major != DB_VERSION_MAJOR ||
32135                         minor < DB_VERSION_MINOR )
32136                 {
32137                         printf("Berkeley DB version mismatch\n"
32138                                 "\theader: %s\n\tlibrary: %s\n",
32139                                 DB_VERSION_STRING, version);
32140                         return 1;
32141                 }
32142         }
32143 #endif
32144
32145 #if DB_VERSION_MAJOR > 2
32146         db_env_create( NULL, 0 );
32147 #elif DB_VERSION_MAJOR > 1
32148         db_appexit( NULL );
32149 #else
32150         (void) dbopen( NULL, 0, 0, 0, NULL);
32151 #endif
32152
32153   ;
32154   return 0;
32155 }
32156 _ACEOF
32157 rm -f conftest.$ac_objext conftest$ac_exeext
32158 if { (ac_try="$ac_link"
32159 case "(($ac_try" in
32160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161   *) ac_try_echo=$ac_try;;
32162 esac
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164   (eval "$ac_link") 2>conftest.er1
32165   ac_status=$?
32166   grep -v '^ *+' conftest.er1 >conftest.err
32167   rm -f conftest.er1
32168   cat conftest.err >&5
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); } &&
32171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32172   { (case "(($ac_try" in
32173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174   *) ac_try_echo=$ac_try;;
32175 esac
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177   (eval "$ac_try") 2>&5
32178   ac_status=$?
32179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180   (exit $ac_status); }; } &&
32181          { ac_try='test -s conftest$ac_exeext'
32182   { (case "(($ac_try" in
32183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184   *) ac_try_echo=$ac_try;;
32185 esac
32186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187   (eval "$ac_try") 2>&5
32188   ac_status=$?
32189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190   (exit $ac_status); }; }; then
32191   ol_cv_db_db_4_dot_2=yes
32192 else
32193   echo "$as_me: failed program was:" >&5
32194 sed 's/^/| /' conftest.$ac_ext >&5
32195
32196         ol_cv_db_db_4_dot_2=no
32197 fi
32198
32199 rm -f core conftest.err conftest.$ac_objext \
32200       conftest$ac_exeext conftest.$ac_ext
32201
32202         LIBS="$ol_LIBS"
32203
32204 fi
32205 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32206 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6; }
32207
32208         if test $ol_cv_db_db_4_dot_2 = yes ; then
32209                 ol_cv_lib_db=-ldb-4.2
32210         fi
32211 fi
32212
32213                 if test $ol_cv_lib_db = no ; then
32214         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32215 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6; }
32216 if test "${ol_cv_db_db_4_2+set}" = set; then
32217   echo $ECHO_N "(cached) $ECHO_C" >&6
32218 else
32219
32220         ol_DB_LIB=-ldb-4-2
32221         ol_LIBS=$LIBS
32222         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32223
32224         cat >conftest.$ac_ext <<_ACEOF
32225 /* confdefs.h.  */
32226 _ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h.  */
32230
32231 #ifdef HAVE_DB_185_H
32232 # include <db_185.h>
32233 #else
32234 # include <db.h>
32235 #endif
32236
32237 #ifndef DB_VERSION_MAJOR
32238 # define DB_VERSION_MAJOR 1
32239 #endif
32240
32241 #ifndef NULL
32242 #define NULL ((void*)0)
32243 #endif
32244
32245 int
32246 main ()
32247 {
32248
32249 #if DB_VERSION_MAJOR > 1
32250         {
32251                 char *version;
32252                 int major, minor, patch;
32253
32254                 version = db_version( &major, &minor, &patch );
32255
32256                 if( major != DB_VERSION_MAJOR ||
32257                         minor < DB_VERSION_MINOR )
32258                 {
32259                         printf("Berkeley DB version mismatch\n"
32260                                 "\theader: %s\n\tlibrary: %s\n",
32261                                 DB_VERSION_STRING, version);
32262                         return 1;
32263                 }
32264         }
32265 #endif
32266
32267 #if DB_VERSION_MAJOR > 2
32268         db_env_create( NULL, 0 );
32269 #elif DB_VERSION_MAJOR > 1
32270         db_appexit( NULL );
32271 #else
32272         (void) dbopen( NULL, 0, 0, 0, NULL);
32273 #endif
32274
32275   ;
32276   return 0;
32277 }
32278 _ACEOF
32279 rm -f conftest.$ac_objext conftest$ac_exeext
32280 if { (ac_try="$ac_link"
32281 case "(($ac_try" in
32282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283   *) ac_try_echo=$ac_try;;
32284 esac
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286   (eval "$ac_link") 2>conftest.er1
32287   ac_status=$?
32288   grep -v '^ *+' conftest.er1 >conftest.err
32289   rm -f conftest.er1
32290   cat conftest.err >&5
32291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292   (exit $ac_status); } &&
32293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32294   { (case "(($ac_try" in
32295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296   *) ac_try_echo=$ac_try;;
32297 esac
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299   (eval "$ac_try") 2>&5
32300   ac_status=$?
32301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302   (exit $ac_status); }; } &&
32303          { ac_try='test -s conftest$ac_exeext'
32304   { (case "(($ac_try" in
32305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306   *) ac_try_echo=$ac_try;;
32307 esac
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309   (eval "$ac_try") 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; }; then
32313   ol_cv_db_db_4_2=yes
32314 else
32315   echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32317
32318         ol_cv_db_db_4_2=no
32319 fi
32320
32321 rm -f core conftest.err conftest.$ac_objext \
32322       conftest$ac_exeext conftest.$ac_ext
32323
32324         LIBS="$ol_LIBS"
32325
32326 fi
32327 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32328 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6; }
32329
32330         if test $ol_cv_db_db_4_2 = yes ; then
32331                 ol_cv_lib_db=-ldb-4-2
32332         fi
32333 fi
32334
32335         elif test $ol_cv_bdb_minor = 1 ; then
32336                 if test $ol_cv_lib_db = no ; then
32337         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32338 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6; }
32339 if test "${ol_cv_db_db41+set}" = set; then
32340   echo $ECHO_N "(cached) $ECHO_C" >&6
32341 else
32342
32343         ol_DB_LIB=-ldb41
32344         ol_LIBS=$LIBS
32345         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32346
32347         cat >conftest.$ac_ext <<_ACEOF
32348 /* confdefs.h.  */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h.  */
32353
32354 #ifdef HAVE_DB_185_H
32355 # include <db_185.h>
32356 #else
32357 # include <db.h>
32358 #endif
32359
32360 #ifndef DB_VERSION_MAJOR
32361 # define DB_VERSION_MAJOR 1
32362 #endif
32363
32364 #ifndef NULL
32365 #define NULL ((void*)0)
32366 #endif
32367
32368 int
32369 main ()
32370 {
32371
32372 #if DB_VERSION_MAJOR > 1
32373         {
32374                 char *version;
32375                 int major, minor, patch;
32376
32377                 version = db_version( &major, &minor, &patch );
32378
32379                 if( major != DB_VERSION_MAJOR ||
32380                         minor < DB_VERSION_MINOR )
32381                 {
32382                         printf("Berkeley DB version mismatch\n"
32383                                 "\theader: %s\n\tlibrary: %s\n",
32384                                 DB_VERSION_STRING, version);
32385                         return 1;
32386                 }
32387         }
32388 #endif
32389
32390 #if DB_VERSION_MAJOR > 2
32391         db_env_create( NULL, 0 );
32392 #elif DB_VERSION_MAJOR > 1
32393         db_appexit( NULL );
32394 #else
32395         (void) dbopen( NULL, 0, 0, 0, NULL);
32396 #endif
32397
32398   ;
32399   return 0;
32400 }
32401 _ACEOF
32402 rm -f conftest.$ac_objext conftest$ac_exeext
32403 if { (ac_try="$ac_link"
32404 case "(($ac_try" in
32405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406   *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409   (eval "$ac_link") 2>conftest.er1
32410   ac_status=$?
32411   grep -v '^ *+' conftest.er1 >conftest.err
32412   rm -f conftest.er1
32413   cat conftest.err >&5
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); } &&
32416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32417   { (case "(($ac_try" in
32418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419   *) ac_try_echo=$ac_try;;
32420 esac
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422   (eval "$ac_try") 2>&5
32423   ac_status=$?
32424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425   (exit $ac_status); }; } &&
32426          { ac_try='test -s conftest$ac_exeext'
32427   { (case "(($ac_try" in
32428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429   *) ac_try_echo=$ac_try;;
32430 esac
32431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432   (eval "$ac_try") 2>&5
32433   ac_status=$?
32434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435   (exit $ac_status); }; }; then
32436   ol_cv_db_db41=yes
32437 else
32438   echo "$as_me: failed program was:" >&5
32439 sed 's/^/| /' conftest.$ac_ext >&5
32440
32441         ol_cv_db_db41=no
32442 fi
32443
32444 rm -f core conftest.err conftest.$ac_objext \
32445       conftest$ac_exeext conftest.$ac_ext
32446
32447         LIBS="$ol_LIBS"
32448
32449 fi
32450 { echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
32451 echo "${ECHO_T}$ol_cv_db_db41" >&6; }
32452
32453         if test $ol_cv_db_db41 = yes ; then
32454                 ol_cv_lib_db=-ldb41
32455         fi
32456 fi
32457
32458                 if test $ol_cv_lib_db = no ; then
32459         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
32460 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6; }
32461 if test "${ol_cv_db_db_41+set}" = set; then
32462   echo $ECHO_N "(cached) $ECHO_C" >&6
32463 else
32464
32465         ol_DB_LIB=-ldb-41
32466         ol_LIBS=$LIBS
32467         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32468
32469         cat >conftest.$ac_ext <<_ACEOF
32470 /* confdefs.h.  */
32471 _ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h.  */
32475
32476 #ifdef HAVE_DB_185_H
32477 # include <db_185.h>
32478 #else
32479 # include <db.h>
32480 #endif
32481
32482 #ifndef DB_VERSION_MAJOR
32483 # define DB_VERSION_MAJOR 1
32484 #endif
32485
32486 #ifndef NULL
32487 #define NULL ((void*)0)
32488 #endif
32489
32490 int
32491 main ()
32492 {
32493
32494 #if DB_VERSION_MAJOR > 1
32495         {
32496                 char *version;
32497                 int major, minor, patch;
32498
32499                 version = db_version( &major, &minor, &patch );
32500
32501                 if( major != DB_VERSION_MAJOR ||
32502                         minor < DB_VERSION_MINOR )
32503                 {
32504                         printf("Berkeley DB version mismatch\n"
32505                                 "\theader: %s\n\tlibrary: %s\n",
32506                                 DB_VERSION_STRING, version);
32507                         return 1;
32508                 }
32509         }
32510 #endif
32511
32512 #if DB_VERSION_MAJOR > 2
32513         db_env_create( NULL, 0 );
32514 #elif DB_VERSION_MAJOR > 1
32515         db_appexit( NULL );
32516 #else
32517         (void) dbopen( NULL, 0, 0, 0, NULL);
32518 #endif
32519
32520   ;
32521   return 0;
32522 }
32523 _ACEOF
32524 rm -f conftest.$ac_objext conftest$ac_exeext
32525 if { (ac_try="$ac_link"
32526 case "(($ac_try" in
32527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528   *) ac_try_echo=$ac_try;;
32529 esac
32530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32531   (eval "$ac_link") 2>conftest.er1
32532   ac_status=$?
32533   grep -v '^ *+' conftest.er1 >conftest.err
32534   rm -f conftest.er1
32535   cat conftest.err >&5
32536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537   (exit $ac_status); } &&
32538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32539   { (case "(($ac_try" in
32540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541   *) ac_try_echo=$ac_try;;
32542 esac
32543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32544   (eval "$ac_try") 2>&5
32545   ac_status=$?
32546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547   (exit $ac_status); }; } &&
32548          { ac_try='test -s conftest$ac_exeext'
32549   { (case "(($ac_try" in
32550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32551   *) ac_try_echo=$ac_try;;
32552 esac
32553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32554   (eval "$ac_try") 2>&5
32555   ac_status=$?
32556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557   (exit $ac_status); }; }; then
32558   ol_cv_db_db_41=yes
32559 else
32560   echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32562
32563         ol_cv_db_db_41=no
32564 fi
32565
32566 rm -f core conftest.err conftest.$ac_objext \
32567       conftest$ac_exeext conftest.$ac_ext
32568
32569         LIBS="$ol_LIBS"
32570
32571 fi
32572 { echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
32573 echo "${ECHO_T}$ol_cv_db_db_41" >&6; }
32574
32575         if test $ol_cv_db_db_41 = yes ; then
32576                 ol_cv_lib_db=-ldb-41
32577         fi
32578 fi
32579
32580                 if test $ol_cv_lib_db = no ; then
32581         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
32582 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6; }
32583 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
32584   echo $ECHO_N "(cached) $ECHO_C" >&6
32585 else
32586
32587         ol_DB_LIB=-ldb-4.1
32588         ol_LIBS=$LIBS
32589         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32590
32591         cat >conftest.$ac_ext <<_ACEOF
32592 /* confdefs.h.  */
32593 _ACEOF
32594 cat confdefs.h >>conftest.$ac_ext
32595 cat >>conftest.$ac_ext <<_ACEOF
32596 /* end confdefs.h.  */
32597
32598 #ifdef HAVE_DB_185_H
32599 # include <db_185.h>
32600 #else
32601 # include <db.h>
32602 #endif
32603
32604 #ifndef DB_VERSION_MAJOR
32605 # define DB_VERSION_MAJOR 1
32606 #endif
32607
32608 #ifndef NULL
32609 #define NULL ((void*)0)
32610 #endif
32611
32612 int
32613 main ()
32614 {
32615
32616 #if DB_VERSION_MAJOR > 1
32617         {
32618                 char *version;
32619                 int major, minor, patch;
32620
32621                 version = db_version( &major, &minor, &patch );
32622
32623                 if( major != DB_VERSION_MAJOR ||
32624                         minor < DB_VERSION_MINOR )
32625                 {
32626                         printf("Berkeley DB version mismatch\n"
32627                                 "\theader: %s\n\tlibrary: %s\n",
32628                                 DB_VERSION_STRING, version);
32629                         return 1;
32630                 }
32631         }
32632 #endif
32633
32634 #if DB_VERSION_MAJOR > 2
32635         db_env_create( NULL, 0 );
32636 #elif DB_VERSION_MAJOR > 1
32637         db_appexit( NULL );
32638 #else
32639         (void) dbopen( NULL, 0, 0, 0, NULL);
32640 #endif
32641
32642   ;
32643   return 0;
32644 }
32645 _ACEOF
32646 rm -f conftest.$ac_objext conftest$ac_exeext
32647 if { (ac_try="$ac_link"
32648 case "(($ac_try" in
32649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650   *) ac_try_echo=$ac_try;;
32651 esac
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653   (eval "$ac_link") 2>conftest.er1
32654   ac_status=$?
32655   grep -v '^ *+' conftest.er1 >conftest.err
32656   rm -f conftest.er1
32657   cat conftest.err >&5
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); } &&
32660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32661   { (case "(($ac_try" in
32662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663   *) ac_try_echo=$ac_try;;
32664 esac
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666   (eval "$ac_try") 2>&5
32667   ac_status=$?
32668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669   (exit $ac_status); }; } &&
32670          { ac_try='test -s conftest$ac_exeext'
32671   { (case "(($ac_try" in
32672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673   *) ac_try_echo=$ac_try;;
32674 esac
32675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676   (eval "$ac_try") 2>&5
32677   ac_status=$?
32678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679   (exit $ac_status); }; }; then
32680   ol_cv_db_db_4_dot_1=yes
32681 else
32682   echo "$as_me: failed program was:" >&5
32683 sed 's/^/| /' conftest.$ac_ext >&5
32684
32685         ol_cv_db_db_4_dot_1=no
32686 fi
32687
32688 rm -f core conftest.err conftest.$ac_objext \
32689       conftest$ac_exeext conftest.$ac_ext
32690
32691         LIBS="$ol_LIBS"
32692
32693 fi
32694 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32695 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6; }
32696
32697         if test $ol_cv_db_db_4_dot_1 = yes ; then
32698                 ol_cv_lib_db=-ldb-4.1
32699         fi
32700 fi
32701
32702                 if test $ol_cv_lib_db = no ; then
32703         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32704 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6; }
32705 if test "${ol_cv_db_db_4_1+set}" = set; then
32706   echo $ECHO_N "(cached) $ECHO_C" >&6
32707 else
32708
32709         ol_DB_LIB=-ldb-4-1
32710         ol_LIBS=$LIBS
32711         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32712
32713         cat >conftest.$ac_ext <<_ACEOF
32714 /* confdefs.h.  */
32715 _ACEOF
32716 cat confdefs.h >>conftest.$ac_ext
32717 cat >>conftest.$ac_ext <<_ACEOF
32718 /* end confdefs.h.  */
32719
32720 #ifdef HAVE_DB_185_H
32721 # include <db_185.h>
32722 #else
32723 # include <db.h>
32724 #endif
32725
32726 #ifndef DB_VERSION_MAJOR
32727 # define DB_VERSION_MAJOR 1
32728 #endif
32729
32730 #ifndef NULL
32731 #define NULL ((void*)0)
32732 #endif
32733
32734 int
32735 main ()
32736 {
32737
32738 #if DB_VERSION_MAJOR > 1
32739         {
32740                 char *version;
32741                 int major, minor, patch;
32742
32743                 version = db_version( &major, &minor, &patch );
32744
32745                 if( major != DB_VERSION_MAJOR ||
32746                         minor < DB_VERSION_MINOR )
32747                 {
32748                         printf("Berkeley DB version mismatch\n"
32749                                 "\theader: %s\n\tlibrary: %s\n",
32750                                 DB_VERSION_STRING, version);
32751                         return 1;
32752                 }
32753         }
32754 #endif
32755
32756 #if DB_VERSION_MAJOR > 2
32757         db_env_create( NULL, 0 );
32758 #elif DB_VERSION_MAJOR > 1
32759         db_appexit( NULL );
32760 #else
32761         (void) dbopen( NULL, 0, 0, 0, NULL);
32762 #endif
32763
32764   ;
32765   return 0;
32766 }
32767 _ACEOF
32768 rm -f conftest.$ac_objext conftest$ac_exeext
32769 if { (ac_try="$ac_link"
32770 case "(($ac_try" in
32771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772   *) ac_try_echo=$ac_try;;
32773 esac
32774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775   (eval "$ac_link") 2>conftest.er1
32776   ac_status=$?
32777   grep -v '^ *+' conftest.er1 >conftest.err
32778   rm -f conftest.er1
32779   cat conftest.err >&5
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); } &&
32782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32783   { (case "(($ac_try" in
32784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785   *) ac_try_echo=$ac_try;;
32786 esac
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788   (eval "$ac_try") 2>&5
32789   ac_status=$?
32790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791   (exit $ac_status); }; } &&
32792          { ac_try='test -s conftest$ac_exeext'
32793   { (case "(($ac_try" in
32794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795   *) ac_try_echo=$ac_try;;
32796 esac
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798   (eval "$ac_try") 2>&5
32799   ac_status=$?
32800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801   (exit $ac_status); }; }; then
32802   ol_cv_db_db_4_1=yes
32803 else
32804   echo "$as_me: failed program was:" >&5
32805 sed 's/^/| /' conftest.$ac_ext >&5
32806
32807         ol_cv_db_db_4_1=no
32808 fi
32809
32810 rm -f core conftest.err conftest.$ac_objext \
32811       conftest$ac_exeext conftest.$ac_ext
32812
32813         LIBS="$ol_LIBS"
32814
32815 fi
32816 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32817 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6; }
32818
32819         if test $ol_cv_db_db_4_1 = yes ; then
32820                 ol_cv_lib_db=-ldb-4-1
32821         fi
32822 fi
32823
32824         fi
32825         if test $ol_cv_lib_db = no ; then
32826         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
32827 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
32828 if test "${ol_cv_db_db_4+set}" = set; then
32829   echo $ECHO_N "(cached) $ECHO_C" >&6
32830 else
32831
32832         ol_DB_LIB=-ldb-4
32833         ol_LIBS=$LIBS
32834         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32835
32836         cat >conftest.$ac_ext <<_ACEOF
32837 /* confdefs.h.  */
32838 _ACEOF
32839 cat confdefs.h >>conftest.$ac_ext
32840 cat >>conftest.$ac_ext <<_ACEOF
32841 /* end confdefs.h.  */
32842
32843 #ifdef HAVE_DB_185_H
32844 # include <db_185.h>
32845 #else
32846 # include <db.h>
32847 #endif
32848
32849 #ifndef DB_VERSION_MAJOR
32850 # define DB_VERSION_MAJOR 1
32851 #endif
32852
32853 #ifndef NULL
32854 #define NULL ((void*)0)
32855 #endif
32856
32857 int
32858 main ()
32859 {
32860
32861 #if DB_VERSION_MAJOR > 1
32862         {
32863                 char *version;
32864                 int major, minor, patch;
32865
32866                 version = db_version( &major, &minor, &patch );
32867
32868                 if( major != DB_VERSION_MAJOR ||
32869                         minor < DB_VERSION_MINOR )
32870                 {
32871                         printf("Berkeley DB version mismatch\n"
32872                                 "\theader: %s\n\tlibrary: %s\n",
32873                                 DB_VERSION_STRING, version);
32874                         return 1;
32875                 }
32876         }
32877 #endif
32878
32879 #if DB_VERSION_MAJOR > 2
32880         db_env_create( NULL, 0 );
32881 #elif DB_VERSION_MAJOR > 1
32882         db_appexit( NULL );
32883 #else
32884         (void) dbopen( NULL, 0, 0, 0, NULL);
32885 #endif
32886
32887   ;
32888   return 0;
32889 }
32890 _ACEOF
32891 rm -f conftest.$ac_objext conftest$ac_exeext
32892 if { (ac_try="$ac_link"
32893 case "(($ac_try" in
32894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895   *) ac_try_echo=$ac_try;;
32896 esac
32897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898   (eval "$ac_link") 2>conftest.er1
32899   ac_status=$?
32900   grep -v '^ *+' conftest.er1 >conftest.err
32901   rm -f conftest.er1
32902   cat conftest.err >&5
32903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904   (exit $ac_status); } &&
32905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32906   { (case "(($ac_try" in
32907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908   *) ac_try_echo=$ac_try;;
32909 esac
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911   (eval "$ac_try") 2>&5
32912   ac_status=$?
32913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914   (exit $ac_status); }; } &&
32915          { ac_try='test -s conftest$ac_exeext'
32916   { (case "(($ac_try" in
32917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32918   *) ac_try_echo=$ac_try;;
32919 esac
32920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32921   (eval "$ac_try") 2>&5
32922   ac_status=$?
32923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924   (exit $ac_status); }; }; then
32925   ol_cv_db_db_4=yes
32926 else
32927   echo "$as_me: failed program was:" >&5
32928 sed 's/^/| /' conftest.$ac_ext >&5
32929
32930         ol_cv_db_db_4=no
32931 fi
32932
32933 rm -f core conftest.err conftest.$ac_objext \
32934       conftest$ac_exeext conftest.$ac_ext
32935
32936         LIBS="$ol_LIBS"
32937
32938 fi
32939 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
32940 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
32941
32942         if test $ol_cv_db_db_4 = yes ; then
32943                 ol_cv_lib_db=-ldb-4
32944         fi
32945 fi
32946
32947         if test $ol_cv_lib_db = no ; then
32948         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
32949 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
32950 if test "${ol_cv_db_db4+set}" = set; then
32951   echo $ECHO_N "(cached) $ECHO_C" >&6
32952 else
32953
32954         ol_DB_LIB=-ldb4
32955         ol_LIBS=$LIBS
32956         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32957
32958         cat >conftest.$ac_ext <<_ACEOF
32959 /* confdefs.h.  */
32960 _ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h.  */
32964
32965 #ifdef HAVE_DB_185_H
32966 # include <db_185.h>
32967 #else
32968 # include <db.h>
32969 #endif
32970
32971 #ifndef DB_VERSION_MAJOR
32972 # define DB_VERSION_MAJOR 1
32973 #endif
32974
32975 #ifndef NULL
32976 #define NULL ((void*)0)
32977 #endif
32978
32979 int
32980 main ()
32981 {
32982
32983 #if DB_VERSION_MAJOR > 1
32984         {
32985                 char *version;
32986                 int major, minor, patch;
32987
32988                 version = db_version( &major, &minor, &patch );
32989
32990                 if( major != DB_VERSION_MAJOR ||
32991                         minor < DB_VERSION_MINOR )
32992                 {
32993                         printf("Berkeley DB version mismatch\n"
32994                                 "\theader: %s\n\tlibrary: %s\n",
32995                                 DB_VERSION_STRING, version);
32996                         return 1;
32997                 }
32998         }
32999 #endif
33000
33001 #if DB_VERSION_MAJOR > 2
33002         db_env_create( NULL, 0 );
33003 #elif DB_VERSION_MAJOR > 1
33004         db_appexit( NULL );
33005 #else
33006         (void) dbopen( NULL, 0, 0, 0, NULL);
33007 #endif
33008
33009   ;
33010   return 0;
33011 }
33012 _ACEOF
33013 rm -f conftest.$ac_objext conftest$ac_exeext
33014 if { (ac_try="$ac_link"
33015 case "(($ac_try" in
33016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33017   *) ac_try_echo=$ac_try;;
33018 esac
33019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33020   (eval "$ac_link") 2>conftest.er1
33021   ac_status=$?
33022   grep -v '^ *+' conftest.er1 >conftest.err
33023   rm -f conftest.er1
33024   cat conftest.err >&5
33025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026   (exit $ac_status); } &&
33027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33028   { (case "(($ac_try" in
33029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030   *) ac_try_echo=$ac_try;;
33031 esac
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033   (eval "$ac_try") 2>&5
33034   ac_status=$?
33035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036   (exit $ac_status); }; } &&
33037          { ac_try='test -s conftest$ac_exeext'
33038   { (case "(($ac_try" in
33039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040   *) ac_try_echo=$ac_try;;
33041 esac
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043   (eval "$ac_try") 2>&5
33044   ac_status=$?
33045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046   (exit $ac_status); }; }; then
33047   ol_cv_db_db4=yes
33048 else
33049   echo "$as_me: failed program was:" >&5
33050 sed 's/^/| /' conftest.$ac_ext >&5
33051
33052         ol_cv_db_db4=no
33053 fi
33054
33055 rm -f core conftest.err conftest.$ac_objext \
33056       conftest$ac_exeext conftest.$ac_ext
33057
33058         LIBS="$ol_LIBS"
33059
33060 fi
33061 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33062 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
33063
33064         if test $ol_cv_db_db4 = yes ; then
33065                 ol_cv_lib_db=-ldb4
33066         fi
33067 fi
33068
33069         if test $ol_cv_lib_db = no ; then
33070         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33071 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
33072 if test "${ol_cv_db_db+set}" = set; then
33073   echo $ECHO_N "(cached) $ECHO_C" >&6
33074 else
33075
33076         ol_DB_LIB=-ldb
33077         ol_LIBS=$LIBS
33078         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33079
33080         cat >conftest.$ac_ext <<_ACEOF
33081 /* confdefs.h.  */
33082 _ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h.  */
33086
33087 #ifdef HAVE_DB_185_H
33088 # include <db_185.h>
33089 #else
33090 # include <db.h>
33091 #endif
33092
33093 #ifndef DB_VERSION_MAJOR
33094 # define DB_VERSION_MAJOR 1
33095 #endif
33096
33097 #ifndef NULL
33098 #define NULL ((void*)0)
33099 #endif
33100
33101 int
33102 main ()
33103 {
33104
33105 #if DB_VERSION_MAJOR > 1
33106         {
33107                 char *version;
33108                 int major, minor, patch;
33109
33110                 version = db_version( &major, &minor, &patch );
33111
33112                 if( major != DB_VERSION_MAJOR ||
33113                         minor < DB_VERSION_MINOR )
33114                 {
33115                         printf("Berkeley DB version mismatch\n"
33116                                 "\theader: %s\n\tlibrary: %s\n",
33117                                 DB_VERSION_STRING, version);
33118                         return 1;
33119                 }
33120         }
33121 #endif
33122
33123 #if DB_VERSION_MAJOR > 2
33124         db_env_create( NULL, 0 );
33125 #elif DB_VERSION_MAJOR > 1
33126         db_appexit( NULL );
33127 #else
33128         (void) dbopen( NULL, 0, 0, 0, NULL);
33129 #endif
33130
33131   ;
33132   return 0;
33133 }
33134 _ACEOF
33135 rm -f conftest.$ac_objext conftest$ac_exeext
33136 if { (ac_try="$ac_link"
33137 case "(($ac_try" in
33138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139   *) ac_try_echo=$ac_try;;
33140 esac
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142   (eval "$ac_link") 2>conftest.er1
33143   ac_status=$?
33144   grep -v '^ *+' conftest.er1 >conftest.err
33145   rm -f conftest.er1
33146   cat conftest.err >&5
33147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); } &&
33149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33150   { (case "(($ac_try" in
33151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152   *) ac_try_echo=$ac_try;;
33153 esac
33154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33155   (eval "$ac_try") 2>&5
33156   ac_status=$?
33157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158   (exit $ac_status); }; } &&
33159          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
33166   ac_status=$?
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); }; }; then
33169   ol_cv_db_db=yes
33170 else
33171   echo "$as_me: failed program was:" >&5
33172 sed 's/^/| /' conftest.$ac_ext >&5
33173
33174         ol_cv_db_db=no
33175 fi
33176
33177 rm -f core conftest.err conftest.$ac_objext \
33178       conftest$ac_exeext conftest.$ac_ext
33179
33180         LIBS="$ol_LIBS"
33181
33182 fi
33183 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33184 echo "${ECHO_T}$ol_cv_db_db" >&6; }
33185
33186         if test $ol_cv_db_db = yes ; then
33187                 ol_cv_lib_db=-ldb
33188         fi
33189 fi
33190
33191
33192 elif test $ol_cv_bdb_major = 3 ; then
33193         if test $ol_cv_lib_db = no ; then
33194         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33195 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6; }
33196 if test "${ol_cv_db_db3+set}" = set; then
33197   echo $ECHO_N "(cached) $ECHO_C" >&6
33198 else
33199
33200         ol_DB_LIB=-ldb3
33201         ol_LIBS=$LIBS
33202         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33203
33204         cat >conftest.$ac_ext <<_ACEOF
33205 /* confdefs.h.  */
33206 _ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h.  */
33210
33211 #ifdef HAVE_DB_185_H
33212 # include <db_185.h>
33213 #else
33214 # include <db.h>
33215 #endif
33216
33217 #ifndef DB_VERSION_MAJOR
33218 # define DB_VERSION_MAJOR 1
33219 #endif
33220
33221 #ifndef NULL
33222 #define NULL ((void*)0)
33223 #endif
33224
33225 int
33226 main ()
33227 {
33228
33229 #if DB_VERSION_MAJOR > 1
33230         {
33231                 char *version;
33232                 int major, minor, patch;
33233
33234                 version = db_version( &major, &minor, &patch );
33235
33236                 if( major != DB_VERSION_MAJOR ||
33237                         minor < DB_VERSION_MINOR )
33238                 {
33239                         printf("Berkeley DB version mismatch\n"
33240                                 "\theader: %s\n\tlibrary: %s\n",
33241                                 DB_VERSION_STRING, version);
33242                         return 1;
33243                 }
33244         }
33245 #endif
33246
33247 #if DB_VERSION_MAJOR > 2
33248         db_env_create( NULL, 0 );
33249 #elif DB_VERSION_MAJOR > 1
33250         db_appexit( NULL );
33251 #else
33252         (void) dbopen( NULL, 0, 0, 0, NULL);
33253 #endif
33254
33255   ;
33256   return 0;
33257 }
33258 _ACEOF
33259 rm -f conftest.$ac_objext conftest$ac_exeext
33260 if { (ac_try="$ac_link"
33261 case "(($ac_try" in
33262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33263   *) ac_try_echo=$ac_try;;
33264 esac
33265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33266   (eval "$ac_link") 2>conftest.er1
33267   ac_status=$?
33268   grep -v '^ *+' conftest.er1 >conftest.err
33269   rm -f conftest.er1
33270   cat conftest.err >&5
33271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272   (exit $ac_status); } &&
33273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
33280   ac_status=$?
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); }; } &&
33283          { ac_try='test -s conftest$ac_exeext'
33284   { (case "(($ac_try" in
33285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286   *) ac_try_echo=$ac_try;;
33287 esac
33288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289   (eval "$ac_try") 2>&5
33290   ac_status=$?
33291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292   (exit $ac_status); }; }; then
33293   ol_cv_db_db3=yes
33294 else
33295   echo "$as_me: failed program was:" >&5
33296 sed 's/^/| /' conftest.$ac_ext >&5
33297
33298         ol_cv_db_db3=no
33299 fi
33300
33301 rm -f core conftest.err conftest.$ac_objext \
33302       conftest$ac_exeext conftest.$ac_ext
33303
33304         LIBS="$ol_LIBS"
33305
33306 fi
33307 { echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33308 echo "${ECHO_T}$ol_cv_db_db3" >&6; }
33309
33310         if test $ol_cv_db_db3 = yes ; then
33311                 ol_cv_lib_db=-ldb3
33312         fi
33313 fi
33314
33315         if test $ol_cv_lib_db = no ; then
33316         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33317 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6; }
33318 if test "${ol_cv_db_db_3+set}" = set; then
33319   echo $ECHO_N "(cached) $ECHO_C" >&6
33320 else
33321
33322         ol_DB_LIB=-ldb-3
33323         ol_LIBS=$LIBS
33324         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33325
33326         cat >conftest.$ac_ext <<_ACEOF
33327 /* confdefs.h.  */
33328 _ACEOF
33329 cat confdefs.h >>conftest.$ac_ext
33330 cat >>conftest.$ac_ext <<_ACEOF
33331 /* end confdefs.h.  */
33332
33333 #ifdef HAVE_DB_185_H
33334 # include <db_185.h>
33335 #else
33336 # include <db.h>
33337 #endif
33338
33339 #ifndef DB_VERSION_MAJOR
33340 # define DB_VERSION_MAJOR 1
33341 #endif
33342
33343 #ifndef NULL
33344 #define NULL ((void*)0)
33345 #endif
33346
33347 int
33348 main ()
33349 {
33350
33351 #if DB_VERSION_MAJOR > 1
33352         {
33353                 char *version;
33354                 int major, minor, patch;
33355
33356                 version = db_version( &major, &minor, &patch );
33357
33358                 if( major != DB_VERSION_MAJOR ||
33359                         minor < DB_VERSION_MINOR )
33360                 {
33361                         printf("Berkeley DB version mismatch\n"
33362                                 "\theader: %s\n\tlibrary: %s\n",
33363                                 DB_VERSION_STRING, version);
33364                         return 1;
33365                 }
33366         }
33367 #endif
33368
33369 #if DB_VERSION_MAJOR > 2
33370         db_env_create( NULL, 0 );
33371 #elif DB_VERSION_MAJOR > 1
33372         db_appexit( NULL );
33373 #else
33374         (void) dbopen( NULL, 0, 0, 0, NULL);
33375 #endif
33376
33377   ;
33378   return 0;
33379 }
33380 _ACEOF
33381 rm -f conftest.$ac_objext conftest$ac_exeext
33382 if { (ac_try="$ac_link"
33383 case "(($ac_try" in
33384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385   *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388   (eval "$ac_link") 2>conftest.er1
33389   ac_status=$?
33390   grep -v '^ *+' conftest.er1 >conftest.err
33391   rm -f conftest.er1
33392   cat conftest.err >&5
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); } &&
33395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33396   { (case "(($ac_try" in
33397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398   *) ac_try_echo=$ac_try;;
33399 esac
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401   (eval "$ac_try") 2>&5
33402   ac_status=$?
33403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404   (exit $ac_status); }; } &&
33405          { ac_try='test -s conftest$ac_exeext'
33406   { (case "(($ac_try" in
33407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33408   *) ac_try_echo=$ac_try;;
33409 esac
33410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33411   (eval "$ac_try") 2>&5
33412   ac_status=$?
33413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414   (exit $ac_status); }; }; then
33415   ol_cv_db_db_3=yes
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420         ol_cv_db_db_3=no
33421 fi
33422
33423 rm -f core conftest.err conftest.$ac_objext \
33424       conftest$ac_exeext conftest.$ac_ext
33425
33426         LIBS="$ol_LIBS"
33427
33428 fi
33429 { echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33430 echo "${ECHO_T}$ol_cv_db_db_3" >&6; }
33431
33432         if test $ol_cv_db_db_3 = yes ; then
33433                 ol_cv_lib_db=-ldb-3
33434         fi
33435 fi
33436
33437
33438 elif test $ol_cv_bdb_major = 2 ; then
33439         if test $ol_cv_lib_db = no ; then
33440         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33441 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6; }
33442 if test "${ol_cv_db_db2+set}" = set; then
33443   echo $ECHO_N "(cached) $ECHO_C" >&6
33444 else
33445
33446         ol_DB_LIB=-ldb2
33447         ol_LIBS=$LIBS
33448         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33449
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
33457 #ifdef HAVE_DB_185_H
33458 # include <db_185.h>
33459 #else
33460 # include <db.h>
33461 #endif
33462
33463 #ifndef DB_VERSION_MAJOR
33464 # define DB_VERSION_MAJOR 1
33465 #endif
33466
33467 #ifndef NULL
33468 #define NULL ((void*)0)
33469 #endif
33470
33471 int
33472 main ()
33473 {
33474
33475 #if DB_VERSION_MAJOR > 1
33476         {
33477                 char *version;
33478                 int major, minor, patch;
33479
33480                 version = db_version( &major, &minor, &patch );
33481
33482                 if( major != DB_VERSION_MAJOR ||
33483                         minor < DB_VERSION_MINOR )
33484                 {
33485                         printf("Berkeley DB version mismatch\n"
33486                                 "\theader: %s\n\tlibrary: %s\n",
33487                                 DB_VERSION_STRING, version);
33488                         return 1;
33489                 }
33490         }
33491 #endif
33492
33493 #if DB_VERSION_MAJOR > 2
33494         db_env_create( NULL, 0 );
33495 #elif DB_VERSION_MAJOR > 1
33496         db_appexit( NULL );
33497 #else
33498         (void) dbopen( NULL, 0, 0, 0, NULL);
33499 #endif
33500
33501   ;
33502   return 0;
33503 }
33504 _ACEOF
33505 rm -f conftest.$ac_objext conftest$ac_exeext
33506 if { (ac_try="$ac_link"
33507 case "(($ac_try" in
33508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33509   *) ac_try_echo=$ac_try;;
33510 esac
33511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33512   (eval "$ac_link") 2>conftest.er1
33513   ac_status=$?
33514   grep -v '^ *+' conftest.er1 >conftest.err
33515   rm -f conftest.er1
33516   cat conftest.err >&5
33517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518   (exit $ac_status); } &&
33519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33520   { (case "(($ac_try" in
33521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522   *) ac_try_echo=$ac_try;;
33523 esac
33524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525   (eval "$ac_try") 2>&5
33526   ac_status=$?
33527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528   (exit $ac_status); }; } &&
33529          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
33536   ac_status=$?
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); }; }; then
33539   ol_cv_db_db2=yes
33540 else
33541   echo "$as_me: failed program was:" >&5
33542 sed 's/^/| /' conftest.$ac_ext >&5
33543
33544         ol_cv_db_db2=no
33545 fi
33546
33547 rm -f core conftest.err conftest.$ac_objext \
33548       conftest$ac_exeext conftest.$ac_ext
33549
33550         LIBS="$ol_LIBS"
33551
33552 fi
33553 { echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
33554 echo "${ECHO_T}$ol_cv_db_db2" >&6; }
33555
33556         if test $ol_cv_db_db2 = yes ; then
33557                 ol_cv_lib_db=-ldb2
33558         fi
33559 fi
33560
33561         if test $ol_cv_lib_db = no ; then
33562         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
33563 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6; }
33564 if test "${ol_cv_db_db_2+set}" = set; then
33565   echo $ECHO_N "(cached) $ECHO_C" >&6
33566 else
33567
33568         ol_DB_LIB=-ldb-2
33569         ol_LIBS=$LIBS
33570         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33571
33572         cat >conftest.$ac_ext <<_ACEOF
33573 /* confdefs.h.  */
33574 _ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h.  */
33578
33579 #ifdef HAVE_DB_185_H
33580 # include <db_185.h>
33581 #else
33582 # include <db.h>
33583 #endif
33584
33585 #ifndef DB_VERSION_MAJOR
33586 # define DB_VERSION_MAJOR 1
33587 #endif
33588
33589 #ifndef NULL
33590 #define NULL ((void*)0)
33591 #endif
33592
33593 int
33594 main ()
33595 {
33596
33597 #if DB_VERSION_MAJOR > 1
33598         {
33599                 char *version;
33600                 int major, minor, patch;
33601
33602                 version = db_version( &major, &minor, &patch );
33603
33604                 if( major != DB_VERSION_MAJOR ||
33605                         minor < DB_VERSION_MINOR )
33606                 {
33607                         printf("Berkeley DB version mismatch\n"
33608                                 "\theader: %s\n\tlibrary: %s\n",
33609                                 DB_VERSION_STRING, version);
33610                         return 1;
33611                 }
33612         }
33613 #endif
33614
33615 #if DB_VERSION_MAJOR > 2
33616         db_env_create( NULL, 0 );
33617 #elif DB_VERSION_MAJOR > 1
33618         db_appexit( NULL );
33619 #else
33620         (void) dbopen( NULL, 0, 0, 0, NULL);
33621 #endif
33622
33623   ;
33624   return 0;
33625 }
33626 _ACEOF
33627 rm -f conftest.$ac_objext conftest$ac_exeext
33628 if { (ac_try="$ac_link"
33629 case "(($ac_try" in
33630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631   *) ac_try_echo=$ac_try;;
33632 esac
33633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634   (eval "$ac_link") 2>conftest.er1
33635   ac_status=$?
33636   grep -v '^ *+' conftest.er1 >conftest.err
33637   rm -f conftest.er1
33638   cat conftest.err >&5
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); } &&
33641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33642   { (case "(($ac_try" in
33643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644   *) ac_try_echo=$ac_try;;
33645 esac
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647   (eval "$ac_try") 2>&5
33648   ac_status=$?
33649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650   (exit $ac_status); }; } &&
33651          { ac_try='test -s conftest$ac_exeext'
33652   { (case "(($ac_try" in
33653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654   *) ac_try_echo=$ac_try;;
33655 esac
33656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657   (eval "$ac_try") 2>&5
33658   ac_status=$?
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); }; }; then
33661   ol_cv_db_db_2=yes
33662 else
33663   echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33665
33666         ol_cv_db_db_2=no
33667 fi
33668
33669 rm -f core conftest.err conftest.$ac_objext \
33670       conftest$ac_exeext conftest.$ac_ext
33671
33672         LIBS="$ol_LIBS"
33673
33674 fi
33675 { echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
33676 echo "${ECHO_T}$ol_cv_db_db_2" >&6; }
33677
33678         if test $ol_cv_db_db_2 = yes ; then
33679                 ol_cv_lib_db=-ldb-2
33680         fi
33681 fi
33682
33683
33684 elif test $ol_cv_bdb_major = 1 ; then
33685         if test $ol_cv_lib_db = no ; then
33686         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
33687 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6; }
33688 if test "${ol_cv_db_db1+set}" = set; then
33689   echo $ECHO_N "(cached) $ECHO_C" >&6
33690 else
33691
33692         ol_DB_LIB=-ldb1
33693         ol_LIBS=$LIBS
33694         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33695
33696         cat >conftest.$ac_ext <<_ACEOF
33697 /* confdefs.h.  */
33698 _ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h.  */
33702
33703 #ifdef HAVE_DB_185_H
33704 # include <db_185.h>
33705 #else
33706 # include <db.h>
33707 #endif
33708
33709 #ifndef DB_VERSION_MAJOR
33710 # define DB_VERSION_MAJOR 1
33711 #endif
33712
33713 #ifndef NULL
33714 #define NULL ((void*)0)
33715 #endif
33716
33717 int
33718 main ()
33719 {
33720
33721 #if DB_VERSION_MAJOR > 1
33722         {
33723                 char *version;
33724                 int major, minor, patch;
33725
33726                 version = db_version( &major, &minor, &patch );
33727
33728                 if( major != DB_VERSION_MAJOR ||
33729                         minor < DB_VERSION_MINOR )
33730                 {
33731                         printf("Berkeley DB version mismatch\n"
33732                                 "\theader: %s\n\tlibrary: %s\n",
33733                                 DB_VERSION_STRING, version);
33734                         return 1;
33735                 }
33736         }
33737 #endif
33738
33739 #if DB_VERSION_MAJOR > 2
33740         db_env_create( NULL, 0 );
33741 #elif DB_VERSION_MAJOR > 1
33742         db_appexit( NULL );
33743 #else
33744         (void) dbopen( NULL, 0, 0, 0, NULL);
33745 #endif
33746
33747   ;
33748   return 0;
33749 }
33750 _ACEOF
33751 rm -f conftest.$ac_objext conftest$ac_exeext
33752 if { (ac_try="$ac_link"
33753 case "(($ac_try" in
33754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755   *) ac_try_echo=$ac_try;;
33756 esac
33757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758   (eval "$ac_link") 2>conftest.er1
33759   ac_status=$?
33760   grep -v '^ *+' conftest.er1 >conftest.err
33761   rm -f conftest.er1
33762   cat conftest.err >&5
33763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764   (exit $ac_status); } &&
33765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33766   { (case "(($ac_try" in
33767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33768   *) ac_try_echo=$ac_try;;
33769 esac
33770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33771   (eval "$ac_try") 2>&5
33772   ac_status=$?
33773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774   (exit $ac_status); }; } &&
33775          { ac_try='test -s conftest$ac_exeext'
33776   { (case "(($ac_try" in
33777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33778   *) ac_try_echo=$ac_try;;
33779 esac
33780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33781   (eval "$ac_try") 2>&5
33782   ac_status=$?
33783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784   (exit $ac_status); }; }; then
33785   ol_cv_db_db1=yes
33786 else
33787   echo "$as_me: failed program was:" >&5
33788 sed 's/^/| /' conftest.$ac_ext >&5
33789
33790         ol_cv_db_db1=no
33791 fi
33792
33793 rm -f core conftest.err conftest.$ac_objext \
33794       conftest$ac_exeext conftest.$ac_ext
33795
33796         LIBS="$ol_LIBS"
33797
33798 fi
33799 { echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
33800 echo "${ECHO_T}$ol_cv_db_db1" >&6; }
33801
33802         if test $ol_cv_db_db1 = yes ; then
33803                 ol_cv_lib_db=-ldb1
33804         fi
33805 fi
33806
33807         if test $ol_cv_lib_db = no ; then
33808         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
33809 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6; }
33810 if test "${ol_cv_db_db_1+set}" = set; then
33811   echo $ECHO_N "(cached) $ECHO_C" >&6
33812 else
33813
33814         ol_DB_LIB=-ldb-1
33815         ol_LIBS=$LIBS
33816         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33817
33818         cat >conftest.$ac_ext <<_ACEOF
33819 /* confdefs.h.  */
33820 _ACEOF
33821 cat confdefs.h >>conftest.$ac_ext
33822 cat >>conftest.$ac_ext <<_ACEOF
33823 /* end confdefs.h.  */
33824
33825 #ifdef HAVE_DB_185_H
33826 # include <db_185.h>
33827 #else
33828 # include <db.h>
33829 #endif
33830
33831 #ifndef DB_VERSION_MAJOR
33832 # define DB_VERSION_MAJOR 1
33833 #endif
33834
33835 #ifndef NULL
33836 #define NULL ((void*)0)
33837 #endif
33838
33839 int
33840 main ()
33841 {
33842
33843 #if DB_VERSION_MAJOR > 1
33844         {
33845                 char *version;
33846                 int major, minor, patch;
33847
33848                 version = db_version( &major, &minor, &patch );
33849
33850                 if( major != DB_VERSION_MAJOR ||
33851                         minor < DB_VERSION_MINOR )
33852                 {
33853                         printf("Berkeley DB version mismatch\n"
33854                                 "\theader: %s\n\tlibrary: %s\n",
33855                                 DB_VERSION_STRING, version);
33856                         return 1;
33857                 }
33858         }
33859 #endif
33860
33861 #if DB_VERSION_MAJOR > 2
33862         db_env_create( NULL, 0 );
33863 #elif DB_VERSION_MAJOR > 1
33864         db_appexit( NULL );
33865 #else
33866         (void) dbopen( NULL, 0, 0, 0, NULL);
33867 #endif
33868
33869   ;
33870   return 0;
33871 }
33872 _ACEOF
33873 rm -f conftest.$ac_objext conftest$ac_exeext
33874 if { (ac_try="$ac_link"
33875 case "(($ac_try" in
33876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33877   *) ac_try_echo=$ac_try;;
33878 esac
33879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33880   (eval "$ac_link") 2>conftest.er1
33881   ac_status=$?
33882   grep -v '^ *+' conftest.er1 >conftest.err
33883   rm -f conftest.er1
33884   cat conftest.err >&5
33885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886   (exit $ac_status); } &&
33887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33888   { (case "(($ac_try" in
33889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890   *) ac_try_echo=$ac_try;;
33891 esac
33892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893   (eval "$ac_try") 2>&5
33894   ac_status=$?
33895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896   (exit $ac_status); }; } &&
33897          { ac_try='test -s conftest$ac_exeext'
33898   { (case "(($ac_try" in
33899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900   *) ac_try_echo=$ac_try;;
33901 esac
33902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903   (eval "$ac_try") 2>&5
33904   ac_status=$?
33905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906   (exit $ac_status); }; }; then
33907   ol_cv_db_db_1=yes
33908 else
33909   echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33911
33912         ol_cv_db_db_1=no
33913 fi
33914
33915 rm -f core conftest.err conftest.$ac_objext \
33916       conftest$ac_exeext conftest.$ac_ext
33917
33918         LIBS="$ol_LIBS"
33919
33920 fi
33921 { echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
33922 echo "${ECHO_T}$ol_cv_db_db_1" >&6; }
33923
33924         if test $ol_cv_db_db_1 = yes ; then
33925                 ol_cv_lib_db=-ldb-1
33926         fi
33927 fi
33928
33929 fi
33930 if test $ol_cv_lib_db = no ; then
33931         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
33932 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
33933 if test "${ol_cv_db_none+set}" = set; then
33934   echo $ECHO_N "(cached) $ECHO_C" >&6
33935 else
33936
33937         ol_DB_LIB=
33938         ol_LIBS=$LIBS
33939         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33940
33941         cat >conftest.$ac_ext <<_ACEOF
33942 /* confdefs.h.  */
33943 _ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h.  */
33947
33948 #ifdef HAVE_DB_185_H
33949 # include <db_185.h>
33950 #else
33951 # include <db.h>
33952 #endif
33953
33954 #ifndef DB_VERSION_MAJOR
33955 # define DB_VERSION_MAJOR 1
33956 #endif
33957
33958 #ifndef NULL
33959 #define NULL ((void*)0)
33960 #endif
33961
33962 int
33963 main ()
33964 {
33965
33966 #if DB_VERSION_MAJOR > 1
33967         {
33968                 char *version;
33969                 int major, minor, patch;
33970
33971                 version = db_version( &major, &minor, &patch );
33972
33973                 if( major != DB_VERSION_MAJOR ||
33974                         minor < DB_VERSION_MINOR )
33975                 {
33976                         printf("Berkeley DB version mismatch\n"
33977                                 "\theader: %s\n\tlibrary: %s\n",
33978                                 DB_VERSION_STRING, version);
33979                         return 1;
33980                 }
33981         }
33982 #endif
33983
33984 #if DB_VERSION_MAJOR > 2
33985         db_env_create( NULL, 0 );
33986 #elif DB_VERSION_MAJOR > 1
33987         db_appexit( NULL );
33988 #else
33989         (void) dbopen( NULL, 0, 0, 0, NULL);
33990 #endif
33991
33992   ;
33993   return 0;
33994 }
33995 _ACEOF
33996 rm -f conftest.$ac_objext conftest$ac_exeext
33997 if { (ac_try="$ac_link"
33998 case "(($ac_try" in
33999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000   *) ac_try_echo=$ac_try;;
34001 esac
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003   (eval "$ac_link") 2>conftest.er1
34004   ac_status=$?
34005   grep -v '^ *+' conftest.er1 >conftest.err
34006   rm -f conftest.er1
34007   cat conftest.err >&5
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); } &&
34010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34011   { (case "(($ac_try" in
34012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013   *) ac_try_echo=$ac_try;;
34014 esac
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016   (eval "$ac_try") 2>&5
34017   ac_status=$?
34018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019   (exit $ac_status); }; } &&
34020          { ac_try='test -s conftest$ac_exeext'
34021   { (case "(($ac_try" in
34022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023   *) ac_try_echo=$ac_try;;
34024 esac
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026   (eval "$ac_try") 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); }; }; then
34030   ol_cv_db_none=yes
34031 else
34032   echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34034
34035         ol_cv_db_none=no
34036 fi
34037
34038 rm -f core conftest.err conftest.$ac_objext \
34039       conftest$ac_exeext conftest.$ac_ext
34040
34041         LIBS="$ol_LIBS"
34042
34043 fi
34044 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34045 echo "${ECHO_T}$ol_cv_db_none" >&6; }
34046
34047         if test $ol_cv_db_none = yes ; then
34048                 ol_cv_lib_db=yes
34049         fi
34050 fi
34051
34052
34053         if test "$ol_cv_lib_db" != no ; then
34054                 ol_cv_berkeley_db=yes
34055                 { echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34056 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6; }
34057 if test "${ol_cv_berkeley_db_version+set}" = set; then
34058   echo $ECHO_N "(cached) $ECHO_C" >&6
34059 else
34060
34061         ol_LIBS="$LIBS"
34062         LIBS="$LTHREAD_LIBS $LIBS"
34063         if test $ol_cv_lib_db != yes ; then
34064                 LIBS="$ol_cv_lib_db $LIBS"
34065         fi
34066
34067         if test "$cross_compiling" = yes; then
34068   ol_cv_berkeley_db_version=cross
34069 else
34070   cat >conftest.$ac_ext <<_ACEOF
34071 /* confdefs.h.  */
34072 _ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h.  */
34076
34077 #ifdef HAVE_DB_185_H
34078         choke me;
34079 #else
34080 #include <db.h>
34081 #endif
34082 #ifndef DB_VERSION_MAJOR
34083 # define DB_VERSION_MAJOR 1
34084 #endif
34085 #ifndef NULL
34086 #define NULL ((void *)0)
34087 #endif
34088 main()
34089 {
34090 #if DB_VERSION_MAJOR > 1
34091         char *version;
34092         int major, minor, patch;
34093
34094         version = db_version( &major, &minor, &patch );
34095
34096         if( major != DB_VERSION_MAJOR ||
34097                 minor != DB_VERSION_MINOR ||
34098                 patch != DB_VERSION_PATCH )
34099         {
34100                 printf("Berkeley DB version mismatch\n"
34101                         "\theader: %s\n\tlibrary: %s\n",
34102                         DB_VERSION_STRING, version);
34103                 return 1;
34104         }
34105 #endif
34106
34107         return 0;
34108 }
34109 _ACEOF
34110 rm -f conftest$ac_exeext
34111 if { (ac_try="$ac_link"
34112 case "(($ac_try" in
34113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34114   *) ac_try_echo=$ac_try;;
34115 esac
34116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34117   (eval "$ac_link") 2>&5
34118   ac_status=$?
34119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34121   { (case "(($ac_try" in
34122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123   *) ac_try_echo=$ac_try;;
34124 esac
34125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126   (eval "$ac_try") 2>&5
34127   ac_status=$?
34128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129   (exit $ac_status); }; }; then
34130   ol_cv_berkeley_db_version=yes
34131 else
34132   echo "$as_me: program exited with status $ac_status" >&5
34133 echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34135
34136 ( exit $ac_status )
34137 ol_cv_berkeley_db_version=no
34138 fi
34139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34140 fi
34141
34142
34143
34144         LIBS="$ol_LIBS"
34145
34146 fi
34147 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34148 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
34149
34150         if test $ol_cv_berkeley_db_version = no ; then
34151                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34152 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34153    { (exit 1); exit 1; }; }
34154         fi
34155
34156                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34157 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
34158 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34159   echo $ECHO_N "(cached) $ECHO_C" >&6
34160 else
34161
34162         ol_LIBS="$LIBS"
34163         LIBS="$LTHREAD_LIBS $LIBS"
34164         if test $ol_cv_lib_db != yes ; then
34165                 LIBS="$ol_cv_lib_db $LIBS"
34166         fi
34167
34168         if test "$cross_compiling" = yes; then
34169   ol_cv_berkeley_db_thread=cross
34170 else
34171   cat >conftest.$ac_ext <<_ACEOF
34172 /* confdefs.h.  */
34173 _ACEOF
34174 cat confdefs.h >>conftest.$ac_ext
34175 cat >>conftest.$ac_ext <<_ACEOF
34176 /* end confdefs.h.  */
34177
34178 #ifdef HAVE_DB_185_H
34179         choke me;
34180 #else
34181 #include <db.h>
34182 #endif
34183 #ifndef NULL
34184 #define NULL ((void *)0)
34185 #endif
34186 main()
34187 {
34188         int rc;
34189         u_int32_t flags = DB_CREATE |
34190 #ifdef DB_PRIVATE
34191                 DB_PRIVATE |
34192 #endif
34193                 DB_THREAD;
34194
34195 #if DB_VERSION_MAJOR > 2
34196         DB_ENV *env = NULL;
34197
34198         rc = db_env_create( &env, 0 );
34199
34200         flags |= DB_INIT_MPOOL;
34201 #ifdef DB_MPOOL_PRIVATE
34202         flags |= DB_MPOOL_PRIVATE;
34203 #endif
34204
34205         if( rc ) {
34206                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34207                 return rc;
34208         }
34209
34210 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34211         rc = env->open( env, NULL, flags, 0 );
34212 #else
34213         rc = env->open( env, NULL, NULL, flags, 0 );
34214 #endif
34215
34216         if ( rc == 0 ) {
34217                 rc = env->close( env, 0 );
34218         }
34219
34220         if( rc ) {
34221                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34222                 return rc;
34223         }
34224
34225 #else
34226         DB_ENV env;
34227         memset( &env, '\0', sizeof(env) );
34228
34229         rc = db_appinit( NULL, NULL, &env, flags );
34230
34231         if( rc == 0 ) {
34232                 db_appexit( &env );
34233         }
34234
34235         unlink("__db_mpool.share");
34236         unlink("__db_lock.share");
34237 #endif
34238
34239         return rc;
34240 }
34241 _ACEOF
34242 rm -f conftest$ac_exeext
34243 if { (ac_try="$ac_link"
34244 case "(($ac_try" in
34245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34246   *) ac_try_echo=$ac_try;;
34247 esac
34248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34249   (eval "$ac_link") 2>&5
34250   ac_status=$?
34251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34253   { (case "(($ac_try" in
34254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255   *) ac_try_echo=$ac_try;;
34256 esac
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258   (eval "$ac_try") 2>&5
34259   ac_status=$?
34260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261   (exit $ac_status); }; }; then
34262   ol_cv_berkeley_db_thread=yes
34263 else
34264   echo "$as_me: program exited with status $ac_status" >&5
34265 echo "$as_me: failed program was:" >&5
34266 sed 's/^/| /' conftest.$ac_ext >&5
34267
34268 ( exit $ac_status )
34269 ol_cv_berkeley_db_thread=no
34270 fi
34271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34272 fi
34273
34274
34275
34276         LIBS="$ol_LIBS"
34277
34278 fi
34279 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34280 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
34281
34282         if test $ol_cv_berkeley_db_thread != no ; then
34283
34284 cat >>confdefs.h <<\_ACEOF
34285 #define HAVE_BERKELEY_DB_THREAD 1
34286 _ACEOF
34287
34288         fi
34289
34290         fi
34291 fi
34292
34293
34294         if test $ol_cv_berkeley_db = no ; then
34295                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34296 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34297    { (exit 1); exit 1; }; }
34298         fi
34299
34300
34301 cat >>confdefs.h <<\_ACEOF
34302 #define HAVE_BERKELEY_DB 1
34303 _ACEOF
34304
34305
34306                         if test $ol_cv_lib_db != yes ; then
34307                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
34308         fi
34309
34310         { echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34311 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6; }
34312 if test "${ol_cv_bdb_compat+set}" = set; then
34313   echo $ECHO_N "(cached) $ECHO_C" >&6
34314 else
34315
34316         cat >conftest.$ac_ext <<_ACEOF
34317 /* confdefs.h.  */
34318 _ACEOF
34319 cat confdefs.h >>conftest.$ac_ext
34320 cat >>conftest.$ac_ext <<_ACEOF
34321 /* end confdefs.h.  */
34322
34323 #include <db.h>
34324
34325  /* this check could be improved */
34326 #ifndef DB_VERSION_MAJOR
34327 #       define DB_VERSION_MAJOR 1
34328 #endif
34329 #ifndef DB_VERSION_MINOR
34330 #       define DB_VERSION_MINOR 0
34331 #endif
34332
34333 /* require 4.2 or later, but exclude 4.3 */
34334 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
34335         __db_version_compat
34336 #endif
34337
34338 _ACEOF
34339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34340   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34341   ol_cv_bdb_compat=yes
34342 else
34343   ol_cv_bdb_compat=no
34344 fi
34345 rm -f conftest*
34346
34347 fi
34348 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34349 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
34350
34351
34352         if test $ol_cv_bdb_compat != yes ; then
34353                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34354 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34355    { (exit 1); exit 1; }; }
34356         fi
34357
34358         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
34359
34360         ol_link_bdb=yes
34361 fi
34362
34363
34364 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34365         BUILD_LIBS_DYNAMIC=shared
34366
34367 cat >>confdefs.h <<\_ACEOF
34368 #define LDAP_LIBS_DYNAMIC 1
34369 _ACEOF
34370
34371         LTSTATIC=""
34372 else
34373         BUILD_LIBS_DYNAMIC=static
34374         LTSTATIC="-static"
34375 fi
34376
34377 if test $ol_enable_wrappers != no ; then
34378
34379 for ac_header in tcpd.h
34380 do
34381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34383   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34386   echo $ECHO_N "(cached) $ECHO_C" >&6
34387 fi
34388 ac_res=`eval echo '${'$as_ac_Header'}'`
34389                { echo "$as_me:$LINENO: result: $ac_res" >&5
34390 echo "${ECHO_T}$ac_res" >&6; }
34391 else
34392   # Is the header compilable?
34393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34395 cat >conftest.$ac_ext <<_ACEOF
34396 /* confdefs.h.  */
34397 _ACEOF
34398 cat confdefs.h >>conftest.$ac_ext
34399 cat >>conftest.$ac_ext <<_ACEOF
34400 /* end confdefs.h.  */
34401 $ac_includes_default
34402 #include <$ac_header>
34403 _ACEOF
34404 rm -f conftest.$ac_objext
34405 if { (ac_try="$ac_compile"
34406 case "(($ac_try" in
34407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34408   *) ac_try_echo=$ac_try;;
34409 esac
34410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34411   (eval "$ac_compile") 2>conftest.er1
34412   ac_status=$?
34413   grep -v '^ *+' conftest.er1 >conftest.err
34414   rm -f conftest.er1
34415   cat conftest.err >&5
34416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417   (exit $ac_status); } &&
34418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34419   { (case "(($ac_try" in
34420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34421   *) ac_try_echo=$ac_try;;
34422 esac
34423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34424   (eval "$ac_try") 2>&5
34425   ac_status=$?
34426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427   (exit $ac_status); }; } &&
34428          { ac_try='test -s conftest.$ac_objext'
34429   { (case "(($ac_try" in
34430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34431   *) ac_try_echo=$ac_try;;
34432 esac
34433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34434   (eval "$ac_try") 2>&5
34435   ac_status=$?
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); }; }; then
34438   ac_header_compiler=yes
34439 else
34440   echo "$as_me: failed program was:" >&5
34441 sed 's/^/| /' conftest.$ac_ext >&5
34442
34443         ac_header_compiler=no
34444 fi
34445
34446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34448 echo "${ECHO_T}$ac_header_compiler" >&6; }
34449
34450 # Is the header present?
34451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34453 cat >conftest.$ac_ext <<_ACEOF
34454 /* confdefs.h.  */
34455 _ACEOF
34456 cat confdefs.h >>conftest.$ac_ext
34457 cat >>conftest.$ac_ext <<_ACEOF
34458 /* end confdefs.h.  */
34459 #include <$ac_header>
34460 _ACEOF
34461 if { (ac_try="$ac_cpp conftest.$ac_ext"
34462 case "(($ac_try" in
34463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464   *) ac_try_echo=$ac_try;;
34465 esac
34466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34468   ac_status=$?
34469   grep -v '^ *+' conftest.er1 >conftest.err
34470   rm -f conftest.er1
34471   cat conftest.err >&5
34472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473   (exit $ac_status); } >/dev/null; then
34474   if test -s conftest.err; then
34475     ac_cpp_err=$ac_c_preproc_warn_flag
34476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34477   else
34478     ac_cpp_err=
34479   fi
34480 else
34481   ac_cpp_err=yes
34482 fi
34483 if test -z "$ac_cpp_err"; then
34484   ac_header_preproc=yes
34485 else
34486   echo "$as_me: failed program was:" >&5
34487 sed 's/^/| /' conftest.$ac_ext >&5
34488
34489   ac_header_preproc=no
34490 fi
34491
34492 rm -f conftest.err conftest.$ac_ext
34493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34494 echo "${ECHO_T}$ac_header_preproc" >&6; }
34495
34496 # So?  What about this header?
34497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34498   yes:no: )
34499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34503     ac_header_preproc=yes
34504     ;;
34505   no:yes:* )
34506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34508     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34509 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34510     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34512     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34513 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34516     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34518     ( cat <<\_ASBOX
34519 ## --------------------------------------------- ##
34520 ## Report this to <http://www.openldap.org/its/> ##
34521 ## --------------------------------------------- ##
34522 _ASBOX
34523      ) | sed "s/^/$as_me: WARNING:     /" >&2
34524     ;;
34525 esac
34526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34529   echo $ECHO_N "(cached) $ECHO_C" >&6
34530 else
34531   eval "$as_ac_Header=\$ac_header_preproc"
34532 fi
34533 ac_res=`eval echo '${'$as_ac_Header'}'`
34534                { echo "$as_me:$LINENO: result: $ac_res" >&5
34535 echo "${ECHO_T}$ac_res" >&6; }
34536
34537 fi
34538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34539   cat >>confdefs.h <<_ACEOF
34540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34541 _ACEOF
34542
34543                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34544 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
34545                 save_LIBS="$LIBS"
34546                 LIBS="$LIBS -lwrap"
34547                 cat >conftest.$ac_ext <<_ACEOF
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553
34554 #include <tcpd.h>
34555 int allow_severity = 0;
34556 int deny_severity  = 0;
34557
34558 struct request_info *req;
34559
34560 int
34561 main ()
34562 {
34563
34564 hosts_access(req)
34565
34566   ;
34567   return 0;
34568 }
34569 _ACEOF
34570 rm -f conftest.$ac_objext conftest$ac_exeext
34571 if { (ac_try="$ac_link"
34572 case "(($ac_try" in
34573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574   *) ac_try_echo=$ac_try;;
34575 esac
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577   (eval "$ac_link") 2>conftest.er1
34578   ac_status=$?
34579   grep -v '^ *+' conftest.er1 >conftest.err
34580   rm -f conftest.er1
34581   cat conftest.err >&5
34582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583   (exit $ac_status); } &&
34584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34585   { (case "(($ac_try" in
34586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34587   *) ac_try_echo=$ac_try;;
34588 esac
34589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34590   (eval "$ac_try") 2>&5
34591   ac_status=$?
34592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593   (exit $ac_status); }; } &&
34594          { ac_try='test -s conftest$ac_exeext'
34595   { (case "(($ac_try" in
34596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597   *) ac_try_echo=$ac_try;;
34598 esac
34599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34600   (eval "$ac_try") 2>&5
34601   ac_status=$?
34602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603   (exit $ac_status); }; }; then
34604   { echo "$as_me:$LINENO: result: -lwrap" >&5
34605 echo "${ECHO_T}-lwrap" >&6; }
34606                 have_wrappers=yes
34607                 LIBS="$save_LIBS"
34608 else
34609   echo "$as_me: failed program was:" >&5
34610 sed 's/^/| /' conftest.$ac_ext >&5
34611
34612
34613                                 LIBS="$LIBS -lnsl"
34614                 cat >conftest.$ac_ext <<_ACEOF
34615 /* confdefs.h.  */
34616 _ACEOF
34617 cat confdefs.h >>conftest.$ac_ext
34618 cat >>conftest.$ac_ext <<_ACEOF
34619 /* end confdefs.h.  */
34620
34621 #include <tcpd.h>
34622 int allow_severity = 0;
34623 int deny_severity  = 0;
34624
34625 struct request_info *req;
34626
34627 int
34628 main ()
34629 {
34630
34631 hosts_access(req)
34632
34633   ;
34634   return 0;
34635 }
34636 _ACEOF
34637 rm -f conftest.$ac_objext conftest$ac_exeext
34638 if { (ac_try="$ac_link"
34639 case "(($ac_try" in
34640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641   *) ac_try_echo=$ac_try;;
34642 esac
34643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34644   (eval "$ac_link") 2>conftest.er1
34645   ac_status=$?
34646   grep -v '^ *+' conftest.er1 >conftest.err
34647   rm -f conftest.er1
34648   cat conftest.err >&5
34649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650   (exit $ac_status); } &&
34651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34652   { (case "(($ac_try" in
34653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654   *) ac_try_echo=$ac_try;;
34655 esac
34656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657   (eval "$ac_try") 2>&5
34658   ac_status=$?
34659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660   (exit $ac_status); }; } &&
34661          { ac_try='test -s conftest$ac_exeext'
34662   { (case "(($ac_try" in
34663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34664   *) ac_try_echo=$ac_try;;
34665 esac
34666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34667   (eval "$ac_try") 2>&5
34668   ac_status=$?
34669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670   (exit $ac_status); }; }; then
34671   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34672 echo "${ECHO_T}-lwrap -lnsl" >&6; }
34673                 have_wrappers=yes
34674                 LIBS="$save_LIBS -lnsl"
34675 else
34676   echo "$as_me: failed program was:" >&5
34677 sed 's/^/| /' conftest.$ac_ext >&5
34678
34679
34680                 { echo "$as_me:$LINENO: result: no" >&5
34681 echo "${ECHO_T}no" >&6; }
34682                 have_wrappers=no
34683                 LIBS=$save_LIBS
34684 fi
34685
34686 rm -f core conftest.err conftest.$ac_objext \
34687       conftest$ac_exeext conftest.$ac_ext
34688 fi
34689
34690 rm -f core conftest.err conftest.$ac_objext \
34691       conftest$ac_exeext conftest.$ac_ext
34692 else
34693   have_wrappers=no
34694 fi
34695
34696 done
34697
34698
34699         if test $have_wrappers = yes ; then
34700
34701 cat >>confdefs.h <<\_ACEOF
34702 #define HAVE_TCPD 1
34703 _ACEOF
34704
34705                 WRAP_LIBS="-lwrap"
34706         elif test $ol_enable_wrappers = yes ; then
34707                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34708 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34709    { (exit 1); exit 1; }; }
34710         else
34711                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34712 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34713                 WRAP_LIBS=""
34714         fi
34715 fi
34716
34717 if test $ol_enable_syslog != no ; then
34718         { echo "$as_me:$LINENO: checking for openlog" >&5
34719 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
34720 if test "${ac_cv_func_openlog+set}" = set; then
34721   echo $ECHO_N "(cached) $ECHO_C" >&6
34722 else
34723   cat >conftest.$ac_ext <<_ACEOF
34724 /* confdefs.h.  */
34725 _ACEOF
34726 cat confdefs.h >>conftest.$ac_ext
34727 cat >>conftest.$ac_ext <<_ACEOF
34728 /* end confdefs.h.  */
34729 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34731 #define openlog innocuous_openlog
34732
34733 /* System header to define __stub macros and hopefully few prototypes,
34734     which can conflict with char openlog (); below.
34735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34736     <limits.h> exists even on freestanding compilers.  */
34737
34738 #ifdef __STDC__
34739 # include <limits.h>
34740 #else
34741 # include <assert.h>
34742 #endif
34743
34744 #undef openlog
34745
34746 /* Override any GCC internal prototype to avoid an error.
34747    Use char because int might match the return type of a GCC
34748    builtin and then its argument prototype would still apply.  */
34749 #ifdef __cplusplus
34750 extern "C"
34751 #endif
34752 char openlog ();
34753 /* The GNU C library defines this for functions which it implements
34754     to always fail with ENOSYS.  Some functions are actually named
34755     something starting with __ and the normal name is an alias.  */
34756 #if defined __stub_openlog || defined __stub___openlog
34757 choke me
34758 #endif
34759
34760 int
34761 main ()
34762 {
34763 return openlog ();
34764   ;
34765   return 0;
34766 }
34767 _ACEOF
34768 rm -f conftest.$ac_objext conftest$ac_exeext
34769 if { (ac_try="$ac_link"
34770 case "(($ac_try" in
34771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34772   *) ac_try_echo=$ac_try;;
34773 esac
34774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34775   (eval "$ac_link") 2>conftest.er1
34776   ac_status=$?
34777   grep -v '^ *+' conftest.er1 >conftest.err
34778   rm -f conftest.er1
34779   cat conftest.err >&5
34780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781   (exit $ac_status); } &&
34782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34783   { (case "(($ac_try" in
34784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34785   *) ac_try_echo=$ac_try;;
34786 esac
34787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34788   (eval "$ac_try") 2>&5
34789   ac_status=$?
34790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); }; } &&
34792          { ac_try='test -s conftest$ac_exeext'
34793   { (case "(($ac_try" in
34794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795   *) ac_try_echo=$ac_try;;
34796 esac
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798   (eval "$ac_try") 2>&5
34799   ac_status=$?
34800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801   (exit $ac_status); }; }; then
34802   ac_cv_func_openlog=yes
34803 else
34804   echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34806
34807         ac_cv_func_openlog=no
34808 fi
34809
34810 rm -f core conftest.err conftest.$ac_objext \
34811       conftest$ac_exeext conftest.$ac_ext
34812 fi
34813 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34814 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
34815
34816         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34817                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34818 echo "$as_me: error: could not find syslog" >&2;}
34819    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34820         fi
34821         ol_enable_syslog=$ac_cv_func_openlog
34822 fi
34823
34824 ol_link_sql=no
34825 if test $ol_enable_sql != no ; then
34826
34827
34828 for ac_header in sql.h sqlext.h
34829 do
34830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34835   echo $ECHO_N "(cached) $ECHO_C" >&6
34836 fi
34837 ac_res=`eval echo '${'$as_ac_Header'}'`
34838                { echo "$as_me:$LINENO: result: $ac_res" >&5
34839 echo "${ECHO_T}$ac_res" >&6; }
34840 else
34841   # Is the header compilable?
34842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34844 cat >conftest.$ac_ext <<_ACEOF
34845 /* confdefs.h.  */
34846 _ACEOF
34847 cat confdefs.h >>conftest.$ac_ext
34848 cat >>conftest.$ac_ext <<_ACEOF
34849 /* end confdefs.h.  */
34850 $ac_includes_default
34851 #include <$ac_header>
34852 _ACEOF
34853 rm -f conftest.$ac_objext
34854 if { (ac_try="$ac_compile"
34855 case "(($ac_try" in
34856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34857   *) ac_try_echo=$ac_try;;
34858 esac
34859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34860   (eval "$ac_compile") 2>conftest.er1
34861   ac_status=$?
34862   grep -v '^ *+' conftest.er1 >conftest.err
34863   rm -f conftest.er1
34864   cat conftest.err >&5
34865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866   (exit $ac_status); } &&
34867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34868   { (case "(($ac_try" in
34869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34870   *) ac_try_echo=$ac_try;;
34871 esac
34872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34873   (eval "$ac_try") 2>&5
34874   ac_status=$?
34875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876   (exit $ac_status); }; } &&
34877          { ac_try='test -s conftest.$ac_objext'
34878   { (case "(($ac_try" in
34879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34880   *) ac_try_echo=$ac_try;;
34881 esac
34882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34883   (eval "$ac_try") 2>&5
34884   ac_status=$?
34885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886   (exit $ac_status); }; }; then
34887   ac_header_compiler=yes
34888 else
34889   echo "$as_me: failed program was:" >&5
34890 sed 's/^/| /' conftest.$ac_ext >&5
34891
34892         ac_header_compiler=no
34893 fi
34894
34895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34897 echo "${ECHO_T}$ac_header_compiler" >&6; }
34898
34899 # Is the header present?
34900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34902 cat >conftest.$ac_ext <<_ACEOF
34903 /* confdefs.h.  */
34904 _ACEOF
34905 cat confdefs.h >>conftest.$ac_ext
34906 cat >>conftest.$ac_ext <<_ACEOF
34907 /* end confdefs.h.  */
34908 #include <$ac_header>
34909 _ACEOF
34910 if { (ac_try="$ac_cpp conftest.$ac_ext"
34911 case "(($ac_try" in
34912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913   *) ac_try_echo=$ac_try;;
34914 esac
34915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34917   ac_status=$?
34918   grep -v '^ *+' conftest.er1 >conftest.err
34919   rm -f conftest.er1
34920   cat conftest.err >&5
34921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922   (exit $ac_status); } >/dev/null; then
34923   if test -s conftest.err; then
34924     ac_cpp_err=$ac_c_preproc_warn_flag
34925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34926   else
34927     ac_cpp_err=
34928   fi
34929 else
34930   ac_cpp_err=yes
34931 fi
34932 if test -z "$ac_cpp_err"; then
34933   ac_header_preproc=yes
34934 else
34935   echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34937
34938   ac_header_preproc=no
34939 fi
34940
34941 rm -f conftest.err conftest.$ac_ext
34942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34943 echo "${ECHO_T}$ac_header_preproc" >&6; }
34944
34945 # So?  What about this header?
34946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34947   yes:no: )
34948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34952     ac_header_preproc=yes
34953     ;;
34954   no:yes:* )
34955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34967     ( cat <<\_ASBOX
34968 ## --------------------------------------------- ##
34969 ## Report this to <http://www.openldap.org/its/> ##
34970 ## --------------------------------------------- ##
34971 _ASBOX
34972      ) | sed "s/^/$as_me: WARNING:     /" >&2
34973     ;;
34974 esac
34975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34978   echo $ECHO_N "(cached) $ECHO_C" >&6
34979 else
34980   eval "$as_ac_Header=\$ac_header_preproc"
34981 fi
34982 ac_res=`eval echo '${'$as_ac_Header'}'`
34983                { echo "$as_me:$LINENO: result: $ac_res" >&5
34984 echo "${ECHO_T}$ac_res" >&6; }
34985
34986 fi
34987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34988   cat >>confdefs.h <<_ACEOF
34989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34990 _ACEOF
34991
34992 else
34993
34994                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34995 echo "$as_me: error: could not locate SQL headers" >&2;}
34996    { (exit 1); exit 1; }; }
34997
34998 fi
34999
35000 done
35001
35002
35003         sql_LIBS="$LIBS"
35004         LIBS="$LTHREAD_LIBS"
35005
35006         if test $ol_with_odbc = auto ; then
35007                 ol_with_odbc="iodbc unixodbc"
35008         fi
35009
35010         for odbc in $ol_with_odbc ; do
35011                 if test $ol_link_sql = no ; then
35012                         case $odbc in
35013                         iodbc)
35014                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
35015 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
35016 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
35017   echo $ECHO_N "(cached) $ECHO_C" >&6
35018 else
35019   ac_check_lib_save_LIBS=$LIBS
35020 LIBS="-liodbc  $LIBS"
35021 cat >conftest.$ac_ext <<_ACEOF
35022 /* confdefs.h.  */
35023 _ACEOF
35024 cat confdefs.h >>conftest.$ac_ext
35025 cat >>conftest.$ac_ext <<_ACEOF
35026 /* end confdefs.h.  */
35027
35028 /* Override any GCC internal prototype to avoid an error.
35029    Use char because int might match the return type of a GCC
35030    builtin and then its argument prototype would still apply.  */
35031 #ifdef __cplusplus
35032 extern "C"
35033 #endif
35034 char SQLDriverConnect ();
35035 int
35036 main ()
35037 {
35038 return SQLDriverConnect ();
35039   ;
35040   return 0;
35041 }
35042 _ACEOF
35043 rm -f conftest.$ac_objext conftest$ac_exeext
35044 if { (ac_try="$ac_link"
35045 case "(($ac_try" in
35046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047   *) ac_try_echo=$ac_try;;
35048 esac
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050   (eval "$ac_link") 2>conftest.er1
35051   ac_status=$?
35052   grep -v '^ *+' conftest.er1 >conftest.err
35053   rm -f conftest.er1
35054   cat conftest.err >&5
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); } &&
35057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35058   { (case "(($ac_try" in
35059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35060   *) ac_try_echo=$ac_try;;
35061 esac
35062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35063   (eval "$ac_try") 2>&5
35064   ac_status=$?
35065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066   (exit $ac_status); }; } &&
35067          { ac_try='test -s conftest$ac_exeext'
35068   { (case "(($ac_try" in
35069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35070   *) ac_try_echo=$ac_try;;
35071 esac
35072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35073   (eval "$ac_try") 2>&5
35074   ac_status=$?
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); }; }; then
35077   ac_cv_lib_iodbc_SQLDriverConnect=yes
35078 else
35079   echo "$as_me: failed program was:" >&5
35080 sed 's/^/| /' conftest.$ac_ext >&5
35081
35082         ac_cv_lib_iodbc_SQLDriverConnect=no
35083 fi
35084
35085 rm -f core conftest.err conftest.$ac_objext \
35086       conftest$ac_exeext conftest.$ac_ext
35087 LIBS=$ac_check_lib_save_LIBS
35088 fi
35089 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
35090 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
35091 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
35092   have_iodbc=yes
35093 else
35094   have_iodbc=no
35095 fi
35096
35097                                 if test $have_iodbc = yes ; then
35098                                         ol_link_sql="-liodbc"
35099                                 fi
35100                                 ;;
35101
35102                         unixodbc)
35103                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
35104 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
35105 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
35106   echo $ECHO_N "(cached) $ECHO_C" >&6
35107 else
35108   ac_check_lib_save_LIBS=$LIBS
35109 LIBS="-lodbc  $LIBS"
35110 cat >conftest.$ac_ext <<_ACEOF
35111 /* confdefs.h.  */
35112 _ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h.  */
35116
35117 /* Override any GCC internal prototype to avoid an error.
35118    Use char because int might match the return type of a GCC
35119    builtin and then its argument prototype would still apply.  */
35120 #ifdef __cplusplus
35121 extern "C"
35122 #endif
35123 char SQLDriverConnect ();
35124 int
35125 main ()
35126 {
35127 return SQLDriverConnect ();
35128   ;
35129   return 0;
35130 }
35131 _ACEOF
35132 rm -f conftest.$ac_objext conftest$ac_exeext
35133 if { (ac_try="$ac_link"
35134 case "(($ac_try" in
35135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35136   *) ac_try_echo=$ac_try;;
35137 esac
35138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35139   (eval "$ac_link") 2>conftest.er1
35140   ac_status=$?
35141   grep -v '^ *+' conftest.er1 >conftest.err
35142   rm -f conftest.er1
35143   cat conftest.err >&5
35144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); } &&
35146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35147   { (case "(($ac_try" in
35148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35149   *) ac_try_echo=$ac_try;;
35150 esac
35151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35152   (eval "$ac_try") 2>&5
35153   ac_status=$?
35154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155   (exit $ac_status); }; } &&
35156          { ac_try='test -s conftest$ac_exeext'
35157   { (case "(($ac_try" in
35158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35159   *) ac_try_echo=$ac_try;;
35160 esac
35161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35162   (eval "$ac_try") 2>&5
35163   ac_status=$?
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); }; }; then
35166   ac_cv_lib_odbc_SQLDriverConnect=yes
35167 else
35168   echo "$as_me: failed program was:" >&5
35169 sed 's/^/| /' conftest.$ac_ext >&5
35170
35171         ac_cv_lib_odbc_SQLDriverConnect=no
35172 fi
35173
35174 rm -f core conftest.err conftest.$ac_objext \
35175       conftest$ac_exeext conftest.$ac_ext
35176 LIBS=$ac_check_lib_save_LIBS
35177 fi
35178 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35179 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
35180 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35181   have_odbc=yes
35182 else
35183   have_odbc=no
35184 fi
35185
35186                                 if test $have_odbc = yes ; then
35187                                         ol_link_sql="-lodbc"
35188                                 fi
35189                                 ;;
35190
35191                         *)
35192                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
35193 echo "$as_me: error: unknown ODBC library" >&2;}
35194    { (exit 1); exit 1; }; }
35195                                 ;;
35196                         esac
35197                 fi
35198         done
35199
35200         LIBS="$sql_LIBS"
35201
35202         if test $ol_link_sql != no ; then
35203                 SLAPD_SQL_LIBS="$ol_link_sql"
35204
35205         elif test $ol_enable_sql != auto ; then
35206                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35207 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35208    { (exit 1); exit 1; }; }
35209         fi
35210 fi
35211
35212 ol_icu=no
35213
35214 for ac_header in unicode/utypes.h
35215 do
35216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35218   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35221   echo $ECHO_N "(cached) $ECHO_C" >&6
35222 fi
35223 ac_res=`eval echo '${'$as_ac_Header'}'`
35224                { echo "$as_me:$LINENO: result: $ac_res" >&5
35225 echo "${ECHO_T}$ac_res" >&6; }
35226 else
35227   # Is the header compilable?
35228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35230 cat >conftest.$ac_ext <<_ACEOF
35231 /* confdefs.h.  */
35232 _ACEOF
35233 cat confdefs.h >>conftest.$ac_ext
35234 cat >>conftest.$ac_ext <<_ACEOF
35235 /* end confdefs.h.  */
35236 $ac_includes_default
35237 #include <$ac_header>
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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35254   { (case "(($ac_try" in
35255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35256   *) ac_try_echo=$ac_try;;
35257 esac
35258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35259   (eval "$ac_try") 2>&5
35260   ac_status=$?
35261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262   (exit $ac_status); }; } &&
35263          { ac_try='test -s conftest.$ac_objext'
35264   { (case "(($ac_try" in
35265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266   *) ac_try_echo=$ac_try;;
35267 esac
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269   (eval "$ac_try") 2>&5
35270   ac_status=$?
35271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272   (exit $ac_status); }; }; then
35273   ac_header_compiler=yes
35274 else
35275   echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35277
35278         ac_header_compiler=no
35279 fi
35280
35281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35283 echo "${ECHO_T}$ac_header_compiler" >&6; }
35284
35285 # Is the header present?
35286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35288 cat >conftest.$ac_ext <<_ACEOF
35289 /* confdefs.h.  */
35290 _ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h.  */
35294 #include <$ac_header>
35295 _ACEOF
35296 if { (ac_try="$ac_cpp conftest.$ac_ext"
35297 case "(($ac_try" in
35298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35299   *) ac_try_echo=$ac_try;;
35300 esac
35301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35303   ac_status=$?
35304   grep -v '^ *+' conftest.er1 >conftest.err
35305   rm -f conftest.er1
35306   cat conftest.err >&5
35307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308   (exit $ac_status); } >/dev/null; then
35309   if test -s conftest.err; then
35310     ac_cpp_err=$ac_c_preproc_warn_flag
35311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35312   else
35313     ac_cpp_err=
35314   fi
35315 else
35316   ac_cpp_err=yes
35317 fi
35318 if test -z "$ac_cpp_err"; then
35319   ac_header_preproc=yes
35320 else
35321   echo "$as_me: failed program was:" >&5
35322 sed 's/^/| /' conftest.$ac_ext >&5
35323
35324   ac_header_preproc=no
35325 fi
35326
35327 rm -f conftest.err conftest.$ac_ext
35328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35329 echo "${ECHO_T}$ac_header_preproc" >&6; }
35330
35331 # So?  What about this header?
35332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35333   yes:no: )
35334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35338     ac_header_preproc=yes
35339     ;;
35340   no:yes:* )
35341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35353     ( cat <<\_ASBOX
35354 ## --------------------------------------------- ##
35355 ## Report this to <http://www.openldap.org/its/> ##
35356 ## --------------------------------------------- ##
35357 _ASBOX
35358      ) | sed "s/^/$as_me: WARNING:     /" >&2
35359     ;;
35360 esac
35361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35364   echo $ECHO_N "(cached) $ECHO_C" >&6
35365 else
35366   eval "$as_ac_Header=\$ac_header_preproc"
35367 fi
35368 ac_res=`eval echo '${'$as_ac_Header'}'`
35369                { echo "$as_me:$LINENO: result: $ac_res" >&5
35370 echo "${ECHO_T}$ac_res" >&6; }
35371
35372 fi
35373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35374   cat >>confdefs.h <<_ACEOF
35375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35376 _ACEOF
35377
35378 fi
35379
35380 done
35381
35382 if test $ac_cv_header_unicode_utypes_h = yes ; then
35383                 OL_ICULIBS="-licuuc -licudata"
35384
35385         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
35386 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
35387 if test "${ol_cv_lib_icu+set}" = set; then
35388   echo $ECHO_N "(cached) $ECHO_C" >&6
35389 else
35390
35391                 ol_LIBS="$LIBS"
35392                 LIBS="$OL_ICULIBS $LIBS"
35393                 cat >conftest.$ac_ext <<_ACEOF
35394 /* confdefs.h.  */
35395 _ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h.  */
35399
35400 #include <unicode/utypes.h>
35401
35402 int
35403 main ()
35404 {
35405
35406 (void) u_errorName(0);
35407
35408   ;
35409   return 0;
35410 }
35411 _ACEOF
35412 rm -f conftest.$ac_objext conftest$ac_exeext
35413 if { (ac_try="$ac_link"
35414 case "(($ac_try" in
35415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416   *) ac_try_echo=$ac_try;;
35417 esac
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419   (eval "$ac_link") 2>conftest.er1
35420   ac_status=$?
35421   grep -v '^ *+' conftest.er1 >conftest.err
35422   rm -f conftest.er1
35423   cat conftest.err >&5
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } &&
35426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35427   { (case "(($ac_try" in
35428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35429   *) ac_try_echo=$ac_try;;
35430 esac
35431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35432   (eval "$ac_try") 2>&5
35433   ac_status=$?
35434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435   (exit $ac_status); }; } &&
35436          { ac_try='test -s conftest$ac_exeext'
35437   { (case "(($ac_try" in
35438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35439   *) ac_try_echo=$ac_try;;
35440 esac
35441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35442   (eval "$ac_try") 2>&5
35443   ac_status=$?
35444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445   (exit $ac_status); }; }; then
35446   ol_cv_lib_icu=yes
35447 else
35448   echo "$as_me: failed program was:" >&5
35449 sed 's/^/| /' conftest.$ac_ext >&5
35450
35451         ol_cv_lib_icu=no
35452 fi
35453
35454 rm -f core conftest.err conftest.$ac_objext \
35455       conftest$ac_exeext conftest.$ac_ext
35456                 LIBS="$ol_LIBS"
35457
35458 fi
35459 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
35460 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
35461
35462         if test $ol_cv_lib_icu != no ; then
35463                 ol_icu="$OL_ICULIBS"
35464
35465 cat >>confdefs.h <<\_ACEOF
35466 #define HAVE_ICU 1
35467 _ACEOF
35468
35469         fi
35470 fi
35471
35472 if test "$ol_icu" = no ; then
35473         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
35474 echo "$as_me: WARNING: ICU not available" >&2;}
35475 else
35476         ICU_LIBS="$ol_icu"
35477 fi
35478 WITH_SASL=no
35479 ol_link_sasl=no
35480 ol_link_spasswd=no
35481 if test $ol_with_cyrus_sasl != no ; then
35482
35483
35484 for ac_header in sasl/sasl.h sasl.h
35485 do
35486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35488   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35491   echo $ECHO_N "(cached) $ECHO_C" >&6
35492 fi
35493 ac_res=`eval echo '${'$as_ac_Header'}'`
35494                { echo "$as_me:$LINENO: result: $ac_res" >&5
35495 echo "${ECHO_T}$ac_res" >&6; }
35496 else
35497   # Is the header compilable?
35498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35500 cat >conftest.$ac_ext <<_ACEOF
35501 /* confdefs.h.  */
35502 _ACEOF
35503 cat confdefs.h >>conftest.$ac_ext
35504 cat >>conftest.$ac_ext <<_ACEOF
35505 /* end confdefs.h.  */
35506 $ac_includes_default
35507 #include <$ac_header>
35508 _ACEOF
35509 rm -f conftest.$ac_objext
35510 if { (ac_try="$ac_compile"
35511 case "(($ac_try" in
35512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35513   *) ac_try_echo=$ac_try;;
35514 esac
35515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35516   (eval "$ac_compile") 2>conftest.er1
35517   ac_status=$?
35518   grep -v '^ *+' conftest.er1 >conftest.err
35519   rm -f conftest.er1
35520   cat conftest.err >&5
35521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522   (exit $ac_status); } &&
35523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35524   { (case "(($ac_try" in
35525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35526   *) ac_try_echo=$ac_try;;
35527 esac
35528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35529   (eval "$ac_try") 2>&5
35530   ac_status=$?
35531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532   (exit $ac_status); }; } &&
35533          { ac_try='test -s conftest.$ac_objext'
35534   { (case "(($ac_try" in
35535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35536   *) ac_try_echo=$ac_try;;
35537 esac
35538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35539   (eval "$ac_try") 2>&5
35540   ac_status=$?
35541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542   (exit $ac_status); }; }; then
35543   ac_header_compiler=yes
35544 else
35545   echo "$as_me: failed program was:" >&5
35546 sed 's/^/| /' conftest.$ac_ext >&5
35547
35548         ac_header_compiler=no
35549 fi
35550
35551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35553 echo "${ECHO_T}$ac_header_compiler" >&6; }
35554
35555 # Is the header present?
35556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35558 cat >conftest.$ac_ext <<_ACEOF
35559 /* confdefs.h.  */
35560 _ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h.  */
35564 #include <$ac_header>
35565 _ACEOF
35566 if { (ac_try="$ac_cpp conftest.$ac_ext"
35567 case "(($ac_try" in
35568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35569   *) ac_try_echo=$ac_try;;
35570 esac
35571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35573   ac_status=$?
35574   grep -v '^ *+' conftest.er1 >conftest.err
35575   rm -f conftest.er1
35576   cat conftest.err >&5
35577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578   (exit $ac_status); } >/dev/null; then
35579   if test -s conftest.err; then
35580     ac_cpp_err=$ac_c_preproc_warn_flag
35581     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35582   else
35583     ac_cpp_err=
35584   fi
35585 else
35586   ac_cpp_err=yes
35587 fi
35588 if test -z "$ac_cpp_err"; then
35589   ac_header_preproc=yes
35590 else
35591   echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35593
35594   ac_header_preproc=no
35595 fi
35596
35597 rm -f conftest.err conftest.$ac_ext
35598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35599 echo "${ECHO_T}$ac_header_preproc" >&6; }
35600
35601 # So?  What about this header?
35602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35603   yes:no: )
35604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35608     ac_header_preproc=yes
35609     ;;
35610   no:yes:* )
35611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35613     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35614 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35615     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35617     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35618 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35621     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35623     ( cat <<\_ASBOX
35624 ## --------------------------------------------- ##
35625 ## Report this to <http://www.openldap.org/its/> ##
35626 ## --------------------------------------------- ##
35627 _ASBOX
35628      ) | sed "s/^/$as_me: WARNING:     /" >&2
35629     ;;
35630 esac
35631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35634   echo $ECHO_N "(cached) $ECHO_C" >&6
35635 else
35636   eval "$as_ac_Header=\$ac_header_preproc"
35637 fi
35638 ac_res=`eval echo '${'$as_ac_Header'}'`
35639                { echo "$as_me:$LINENO: result: $ac_res" >&5
35640 echo "${ECHO_T}$ac_res" >&6; }
35641
35642 fi
35643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35644   cat >>confdefs.h <<_ACEOF
35645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35646 _ACEOF
35647
35648 fi
35649
35650 done
35651
35652
35653         if test $ac_cv_header_sasl_sasl_h = yes ||
35654            test $ac_cv_header_sasl_h = yes; then
35655                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35656 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
35657 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35658   echo $ECHO_N "(cached) $ECHO_C" >&6
35659 else
35660   ac_check_lib_save_LIBS=$LIBS
35661 LIBS="-lsasl2  $LIBS"
35662 cat >conftest.$ac_ext <<_ACEOF
35663 /* confdefs.h.  */
35664 _ACEOF
35665 cat confdefs.h >>conftest.$ac_ext
35666 cat >>conftest.$ac_ext <<_ACEOF
35667 /* end confdefs.h.  */
35668
35669 /* Override any GCC internal prototype to avoid an error.
35670    Use char because int might match the return type of a GCC
35671    builtin and then its argument prototype would still apply.  */
35672 #ifdef __cplusplus
35673 extern "C"
35674 #endif
35675 char sasl_client_init ();
35676 int
35677 main ()
35678 {
35679 return sasl_client_init ();
35680   ;
35681   return 0;
35682 }
35683 _ACEOF
35684 rm -f conftest.$ac_objext conftest$ac_exeext
35685 if { (ac_try="$ac_link"
35686 case "(($ac_try" in
35687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35688   *) ac_try_echo=$ac_try;;
35689 esac
35690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35691   (eval "$ac_link") 2>conftest.er1
35692   ac_status=$?
35693   grep -v '^ *+' conftest.er1 >conftest.err
35694   rm -f conftest.er1
35695   cat conftest.err >&5
35696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697   (exit $ac_status); } &&
35698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35699   { (case "(($ac_try" in
35700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35701   *) ac_try_echo=$ac_try;;
35702 esac
35703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35704   (eval "$ac_try") 2>&5
35705   ac_status=$?
35706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707   (exit $ac_status); }; } &&
35708          { ac_try='test -s conftest$ac_exeext'
35709   { (case "(($ac_try" in
35710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35711   *) ac_try_echo=$ac_try;;
35712 esac
35713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35714   (eval "$ac_try") 2>&5
35715   ac_status=$?
35716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717   (exit $ac_status); }; }; then
35718   ac_cv_lib_sasl2_sasl_client_init=yes
35719 else
35720   echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35722
35723         ac_cv_lib_sasl2_sasl_client_init=no
35724 fi
35725
35726 rm -f core conftest.err conftest.$ac_objext \
35727       conftest$ac_exeext conftest.$ac_ext
35728 LIBS=$ac_check_lib_save_LIBS
35729 fi
35730 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35731 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
35732 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35733   ol_link_sasl="-lsasl2"
35734 else
35735   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35736 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
35737 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35738   echo $ECHO_N "(cached) $ECHO_C" >&6
35739 else
35740   ac_check_lib_save_LIBS=$LIBS
35741 LIBS="-lsasl  $LIBS"
35742 cat >conftest.$ac_ext <<_ACEOF
35743 /* confdefs.h.  */
35744 _ACEOF
35745 cat confdefs.h >>conftest.$ac_ext
35746 cat >>conftest.$ac_ext <<_ACEOF
35747 /* end confdefs.h.  */
35748
35749 /* Override any GCC internal prototype to avoid an error.
35750    Use char because int might match the return type of a GCC
35751    builtin and then its argument prototype would still apply.  */
35752 #ifdef __cplusplus
35753 extern "C"
35754 #endif
35755 char sasl_client_init ();
35756 int
35757 main ()
35758 {
35759 return sasl_client_init ();
35760   ;
35761   return 0;
35762 }
35763 _ACEOF
35764 rm -f conftest.$ac_objext conftest$ac_exeext
35765 if { (ac_try="$ac_link"
35766 case "(($ac_try" in
35767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35768   *) ac_try_echo=$ac_try;;
35769 esac
35770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35771   (eval "$ac_link") 2>conftest.er1
35772   ac_status=$?
35773   grep -v '^ *+' conftest.er1 >conftest.err
35774   rm -f conftest.er1
35775   cat conftest.err >&5
35776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777   (exit $ac_status); } &&
35778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35779   { (case "(($ac_try" in
35780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781   *) ac_try_echo=$ac_try;;
35782 esac
35783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784   (eval "$ac_try") 2>&5
35785   ac_status=$?
35786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787   (exit $ac_status); }; } &&
35788          { ac_try='test -s conftest$ac_exeext'
35789   { (case "(($ac_try" in
35790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35791   *) ac_try_echo=$ac_try;;
35792 esac
35793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35794   (eval "$ac_try") 2>&5
35795   ac_status=$?
35796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797   (exit $ac_status); }; }; then
35798   ac_cv_lib_sasl_sasl_client_init=yes
35799 else
35800   echo "$as_me: failed program was:" >&5
35801 sed 's/^/| /' conftest.$ac_ext >&5
35802
35803         ac_cv_lib_sasl_sasl_client_init=no
35804 fi
35805
35806 rm -f core conftest.err conftest.$ac_objext \
35807       conftest$ac_exeext conftest.$ac_ext
35808 LIBS=$ac_check_lib_save_LIBS
35809 fi
35810 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35811 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
35812 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35813   ol_link_sasl="-lsasl"
35814 fi
35815
35816 fi
35817
35818         fi
35819
35820         if test $ol_link_sasl = no ; then
35821                 if test $ol_with_cyrus_sasl != auto ; then
35822                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35823 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35824    { (exit 1); exit 1; }; }
35825                 else
35826                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35827 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35828                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35829 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35830                         if test $ol_link_tls = no ; then
35831                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35832 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35833                         fi
35834                 fi
35835         else
35836                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35837 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
35838 if test "${ol_cv_sasl_compat+set}" = set; then
35839   echo $ECHO_N "(cached) $ECHO_C" >&6
35840 else
35841
35842         cat >conftest.$ac_ext <<_ACEOF
35843 /* confdefs.h.  */
35844 _ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h.  */
35848
35849 #ifdef HAVE_SASL_SASL_H
35850 #include <sasl/sasl.h>
35851 #else
35852 #include <sasl.h>
35853 #endif
35854
35855 /* Require 2.1.15+ */
35856 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
35857         char *__sasl_compat = "2.2+ or better okay (we guess)";
35858 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
35859         && SASL_VERSION_STEP >=15
35860         char *__sasl_compat = "2.1.15+ or better okay";
35861 #endif
35862
35863 _ACEOF
35864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35865   $EGREP "__sasl_compat" >/dev/null 2>&1; then
35866   ol_cv_sasl_compat=yes
35867 else
35868   ol_cv_sasl_compat=no
35869 fi
35870 rm -f conftest*
35871
35872 fi
35873 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35874 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
35875
35876                 if test $ol_cv_sasl_compat = no ; then
35877                         ol_link_sasl=no
35878                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35879 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35880    { (exit 1); exit 1; }; }
35881                 fi
35882
35883
35884 cat >>confdefs.h <<\_ACEOF
35885 #define HAVE_CYRUS_SASL 1
35886 _ACEOF
35887
35888                 SASL_LIBS="$ol_link_sasl"
35889                 if test $ol_enable_spasswd != no ; then
35890                         ol_link_spasswd=yes
35891                 fi
35892
35893                 ac_save_LIBS="$LIBS"
35894                 LIBS="$LIBS $ol_link_sasl"
35895                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
35896 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
35897 if test "${ac_cv_func_sasl_version+set}" = set; then
35898   echo $ECHO_N "(cached) $ECHO_C" >&6
35899 else
35900   cat >conftest.$ac_ext <<_ACEOF
35901 /* confdefs.h.  */
35902 _ACEOF
35903 cat confdefs.h >>conftest.$ac_ext
35904 cat >>conftest.$ac_ext <<_ACEOF
35905 /* end confdefs.h.  */
35906 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35908 #define sasl_version innocuous_sasl_version
35909
35910 /* System header to define __stub macros and hopefully few prototypes,
35911     which can conflict with char sasl_version (); below.
35912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35913     <limits.h> exists even on freestanding compilers.  */
35914
35915 #ifdef __STDC__
35916 # include <limits.h>
35917 #else
35918 # include <assert.h>
35919 #endif
35920
35921 #undef sasl_version
35922
35923 /* Override any GCC internal prototype to avoid an error.
35924    Use char because int might match the return type of a GCC
35925    builtin and then its argument prototype would still apply.  */
35926 #ifdef __cplusplus
35927 extern "C"
35928 #endif
35929 char sasl_version ();
35930 /* The GNU C library defines this for functions which it implements
35931     to always fail with ENOSYS.  Some functions are actually named
35932     something starting with __ and the normal name is an alias.  */
35933 #if defined __stub_sasl_version || defined __stub___sasl_version
35934 choke me
35935 #endif
35936
35937 int
35938 main ()
35939 {
35940 return sasl_version ();
35941   ;
35942   return 0;
35943 }
35944 _ACEOF
35945 rm -f conftest.$ac_objext conftest$ac_exeext
35946 if { (ac_try="$ac_link"
35947 case "(($ac_try" in
35948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35949   *) ac_try_echo=$ac_try;;
35950 esac
35951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35952   (eval "$ac_link") 2>conftest.er1
35953   ac_status=$?
35954   grep -v '^ *+' conftest.er1 >conftest.err
35955   rm -f conftest.er1
35956   cat conftest.err >&5
35957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958   (exit $ac_status); } &&
35959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35960   { (case "(($ac_try" in
35961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35962   *) ac_try_echo=$ac_try;;
35963 esac
35964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35965   (eval "$ac_try") 2>&5
35966   ac_status=$?
35967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968   (exit $ac_status); }; } &&
35969          { ac_try='test -s conftest$ac_exeext'
35970   { (case "(($ac_try" in
35971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35972   *) ac_try_echo=$ac_try;;
35973 esac
35974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35975   (eval "$ac_try") 2>&5
35976   ac_status=$?
35977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978   (exit $ac_status); }; }; then
35979   ac_cv_func_sasl_version=yes
35980 else
35981   echo "$as_me: failed program was:" >&5
35982 sed 's/^/| /' conftest.$ac_ext >&5
35983
35984         ac_cv_func_sasl_version=no
35985 fi
35986
35987 rm -f core conftest.err conftest.$ac_objext \
35988       conftest$ac_exeext conftest.$ac_ext
35989 fi
35990 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35991 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
35992 if test $ac_cv_func_sasl_version = yes; then
35993
35994 cat >>confdefs.h <<\_ACEOF
35995 #define HAVE_SASL_VERSION 1
35996 _ACEOF
35997
35998 fi
35999
36000                 LIBS="$ac_save_LIBS"
36001
36002                 WITH_SASL=yes
36003         fi
36004
36005 else
36006         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
36007 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
36008         if test $ol_link_tls = no ; then
36009                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
36010 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
36011         fi
36012 fi
36013
36014 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
36015         dev=no
36016         if test -r /dev/urandom ; then
36017                 dev="/dev/urandom";
36018         elif test -r /idev/urandom ; then
36019                 dev="/idev/urandom";
36020         elif test -r /dev/srandom ; then
36021                 dev="/dev/srandom";
36022         elif test -r /dev/random ; then
36023                 dev="/dev/random";
36024         elif test -r /idev/random ; then
36025                 dev="/idev/random";
36026         fi
36027
36028         if test $dev != no ; then
36029
36030 cat >>confdefs.h <<_ACEOF
36031 #define URANDOM_DEVICE "$dev"
36032 _ACEOF
36033
36034         fi
36035 fi
36036
36037 ol_link_fetch=no
36038 if test $ol_with_fetch != no ; then
36039         ol_LIBS=$LIBS
36040 LIBS="-lfetch -lcom_err $LIBS"
36041 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
36042 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
36043 if test "${ol_cv_lib_fetch+set}" = set; then
36044   echo $ECHO_N "(cached) $ECHO_C" >&6
36045 else
36046
36047         cat >conftest.$ac_ext <<_ACEOF
36048 /* confdefs.h.  */
36049 _ACEOF
36050 cat confdefs.h >>conftest.$ac_ext
36051 cat >>conftest.$ac_ext <<_ACEOF
36052 /* end confdefs.h.  */
36053
36054 #include <sys/param.h>
36055 #include <stdio.h>
36056 #include <fetch.h>
36057 int
36058 main ()
36059 {
36060 struct url *u = fetchParseURL("file:///");
36061   ;
36062   return 0;
36063 }
36064 _ACEOF
36065 rm -f conftest.$ac_objext conftest$ac_exeext
36066 if { (ac_try="$ac_link"
36067 case "(($ac_try" in
36068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36069   *) ac_try_echo=$ac_try;;
36070 esac
36071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36072   (eval "$ac_link") 2>conftest.er1
36073   ac_status=$?
36074   grep -v '^ *+' conftest.er1 >conftest.err
36075   rm -f conftest.er1
36076   cat conftest.err >&5
36077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078   (exit $ac_status); } &&
36079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36080   { (case "(($ac_try" in
36081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36082   *) ac_try_echo=$ac_try;;
36083 esac
36084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36085   (eval "$ac_try") 2>&5
36086   ac_status=$?
36087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088   (exit $ac_status); }; } &&
36089          { ac_try='test -s conftest$ac_exeext'
36090   { (case "(($ac_try" in
36091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36092   *) ac_try_echo=$ac_try;;
36093 esac
36094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36095   (eval "$ac_try") 2>&5
36096   ac_status=$?
36097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098   (exit $ac_status); }; }; then
36099   ol_cv_lib_fetch=yes
36100 else
36101   echo "$as_me: failed program was:" >&5
36102 sed 's/^/| /' conftest.$ac_ext >&5
36103
36104         ol_cv_lib_fetch=no
36105 fi
36106
36107 rm -f core conftest.err conftest.$ac_objext \
36108       conftest$ac_exeext conftest.$ac_ext
36109 fi
36110 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
36111 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
36112 LIBS=$ol_LIBS
36113 if test $ol_cv_lib_fetch != no ; then
36114         ol_link_fetch="-lfetch -lcom_err"
36115
36116 cat >>confdefs.h <<\_ACEOF
36117 #define HAVE_FETCH 1
36118 _ACEOF
36119
36120 fi
36121
36122
36123         if test $ol_cv_lib_fetch != no ; then
36124                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
36125                 ol_link_fetch=freebsd
36126
36127         elif test $ol_with_fetch != auto ; then
36128                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
36129 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
36130    { (exit 1); exit 1; }; }
36131         fi
36132 fi
36133
36134 if test $ol_enable_crypt != no ; then
36135         save_LIBS="$LIBS"
36136         LIBS="$TLS_LIBS $LIBS"
36137
36138         { echo "$as_me:$LINENO: checking for crypt" >&5
36139 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
36140 if test "${ac_cv_func_crypt+set}" = set; then
36141   echo $ECHO_N "(cached) $ECHO_C" >&6
36142 else
36143   cat >conftest.$ac_ext <<_ACEOF
36144 /* confdefs.h.  */
36145 _ACEOF
36146 cat confdefs.h >>conftest.$ac_ext
36147 cat >>conftest.$ac_ext <<_ACEOF
36148 /* end confdefs.h.  */
36149 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
36150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36151 #define crypt innocuous_crypt
36152
36153 /* System header to define __stub macros and hopefully few prototypes,
36154     which can conflict with char crypt (); below.
36155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36156     <limits.h> exists even on freestanding compilers.  */
36157
36158 #ifdef __STDC__
36159 # include <limits.h>
36160 #else
36161 # include <assert.h>
36162 #endif
36163
36164 #undef crypt
36165
36166 /* Override any GCC internal prototype to avoid an error.
36167    Use char because int might match the return type of a GCC
36168    builtin and then its argument prototype would still apply.  */
36169 #ifdef __cplusplus
36170 extern "C"
36171 #endif
36172 char crypt ();
36173 /* The GNU C library defines this for functions which it implements
36174     to always fail with ENOSYS.  Some functions are actually named
36175     something starting with __ and the normal name is an alias.  */
36176 #if defined __stub_crypt || defined __stub___crypt
36177 choke me
36178 #endif
36179
36180 int
36181 main ()
36182 {
36183 return crypt ();
36184   ;
36185   return 0;
36186 }
36187 _ACEOF
36188 rm -f conftest.$ac_objext conftest$ac_exeext
36189 if { (ac_try="$ac_link"
36190 case "(($ac_try" in
36191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36192   *) ac_try_echo=$ac_try;;
36193 esac
36194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36195   (eval "$ac_link") 2>conftest.er1
36196   ac_status=$?
36197   grep -v '^ *+' conftest.er1 >conftest.err
36198   rm -f conftest.er1
36199   cat conftest.err >&5
36200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201   (exit $ac_status); } &&
36202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36203   { (case "(($ac_try" in
36204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205   *) ac_try_echo=$ac_try;;
36206 esac
36207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36208   (eval "$ac_try") 2>&5
36209   ac_status=$?
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); }; } &&
36212          { ac_try='test -s conftest$ac_exeext'
36213   { (case "(($ac_try" in
36214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36215   *) ac_try_echo=$ac_try;;
36216 esac
36217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36218   (eval "$ac_try") 2>&5
36219   ac_status=$?
36220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221   (exit $ac_status); }; }; then
36222   ac_cv_func_crypt=yes
36223 else
36224   echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36226
36227         ac_cv_func_crypt=no
36228 fi
36229
36230 rm -f core conftest.err conftest.$ac_objext \
36231       conftest$ac_exeext conftest.$ac_ext
36232 fi
36233 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
36234 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
36235 if test $ac_cv_func_crypt = yes; then
36236   have_crypt=yes
36237 else
36238
36239                 LIBS="$save_LIBS"
36240                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
36241 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
36242 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
36243   echo $ECHO_N "(cached) $ECHO_C" >&6
36244 else
36245   ac_check_lib_save_LIBS=$LIBS
36246 LIBS="-lcrypt  $LIBS"
36247 cat >conftest.$ac_ext <<_ACEOF
36248 /* confdefs.h.  */
36249 _ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h.  */
36253
36254 /* Override any GCC internal prototype to avoid an error.
36255    Use char because int might match the return type of a GCC
36256    builtin and then its argument prototype would still apply.  */
36257 #ifdef __cplusplus
36258 extern "C"
36259 #endif
36260 char crypt ();
36261 int
36262 main ()
36263 {
36264 return crypt ();
36265   ;
36266   return 0;
36267 }
36268 _ACEOF
36269 rm -f conftest.$ac_objext conftest$ac_exeext
36270 if { (ac_try="$ac_link"
36271 case "(($ac_try" in
36272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36273   *) ac_try_echo=$ac_try;;
36274 esac
36275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36276   (eval "$ac_link") 2>conftest.er1
36277   ac_status=$?
36278   grep -v '^ *+' conftest.er1 >conftest.err
36279   rm -f conftest.er1
36280   cat conftest.err >&5
36281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282   (exit $ac_status); } &&
36283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36284   { (case "(($ac_try" in
36285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36286   *) ac_try_echo=$ac_try;;
36287 esac
36288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36289   (eval "$ac_try") 2>&5
36290   ac_status=$?
36291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292   (exit $ac_status); }; } &&
36293          { ac_try='test -s conftest$ac_exeext'
36294   { (case "(($ac_try" in
36295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36296   *) ac_try_echo=$ac_try;;
36297 esac
36298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36299   (eval "$ac_try") 2>&5
36300   ac_status=$?
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); }; }; then
36303   ac_cv_lib_crypt_crypt=yes
36304 else
36305   echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36307
36308         ac_cv_lib_crypt_crypt=no
36309 fi
36310
36311 rm -f core conftest.err conftest.$ac_objext \
36312       conftest$ac_exeext conftest.$ac_ext
36313 LIBS=$ac_check_lib_save_LIBS
36314 fi
36315 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
36316 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
36317 if test $ac_cv_lib_crypt_crypt = yes; then
36318   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
36319                         have_crypt=yes
36320 else
36321   have_crypt=no
36322 fi
36323
36324 fi
36325
36326
36327         LIBS="$save_LIBS"
36328
36329         if test $have_crypt = yes ; then
36330
36331 cat >>confdefs.h <<\_ACEOF
36332 #define HAVE_CRYPT 1
36333 _ACEOF
36334
36335         else
36336                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
36337 echo "$as_me: WARNING: could not find crypt" >&2;}
36338                 if test $ol_enable_crypt = yes ; then
36339                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
36340 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
36341    { (exit 1); exit 1; }; }
36342                 fi
36343
36344                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
36345 echo "$as_me: WARNING: disabling crypt support" >&2;}
36346                 ol_enable_crypt=no
36347         fi
36348 fi
36349
36350 if test $ol_enable_proctitle != no ; then
36351         { echo "$as_me:$LINENO: checking for setproctitle" >&5
36352 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
36353 if test "${ac_cv_func_setproctitle+set}" = set; then
36354   echo $ECHO_N "(cached) $ECHO_C" >&6
36355 else
36356   cat >conftest.$ac_ext <<_ACEOF
36357 /* confdefs.h.  */
36358 _ACEOF
36359 cat confdefs.h >>conftest.$ac_ext
36360 cat >>conftest.$ac_ext <<_ACEOF
36361 /* end confdefs.h.  */
36362 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
36363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36364 #define setproctitle innocuous_setproctitle
36365
36366 /* System header to define __stub macros and hopefully few prototypes,
36367     which can conflict with char setproctitle (); below.
36368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36369     <limits.h> exists even on freestanding compilers.  */
36370
36371 #ifdef __STDC__
36372 # include <limits.h>
36373 #else
36374 # include <assert.h>
36375 #endif
36376
36377 #undef setproctitle
36378
36379 /* Override any GCC internal prototype to avoid an error.
36380    Use char because int might match the return type of a GCC
36381    builtin and then its argument prototype would still apply.  */
36382 #ifdef __cplusplus
36383 extern "C"
36384 #endif
36385 char setproctitle ();
36386 /* The GNU C library defines this for functions which it implements
36387     to always fail with ENOSYS.  Some functions are actually named
36388     something starting with __ and the normal name is an alias.  */
36389 #if defined __stub_setproctitle || defined __stub___setproctitle
36390 choke me
36391 #endif
36392
36393 int
36394 main ()
36395 {
36396 return setproctitle ();
36397   ;
36398   return 0;
36399 }
36400 _ACEOF
36401 rm -f conftest.$ac_objext conftest$ac_exeext
36402 if { (ac_try="$ac_link"
36403 case "(($ac_try" in
36404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405   *) ac_try_echo=$ac_try;;
36406 esac
36407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36408   (eval "$ac_link") 2>conftest.er1
36409   ac_status=$?
36410   grep -v '^ *+' conftest.er1 >conftest.err
36411   rm -f conftest.er1
36412   cat conftest.err >&5
36413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414   (exit $ac_status); } &&
36415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36416   { (case "(($ac_try" in
36417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36418   *) ac_try_echo=$ac_try;;
36419 esac
36420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36421   (eval "$ac_try") 2>&5
36422   ac_status=$?
36423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424   (exit $ac_status); }; } &&
36425          { ac_try='test -s conftest$ac_exeext'
36426   { (case "(($ac_try" in
36427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36428   *) ac_try_echo=$ac_try;;
36429 esac
36430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36431   (eval "$ac_try") 2>&5
36432   ac_status=$?
36433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434   (exit $ac_status); }; }; then
36435   ac_cv_func_setproctitle=yes
36436 else
36437   echo "$as_me: failed program was:" >&5
36438 sed 's/^/| /' conftest.$ac_ext >&5
36439
36440         ac_cv_func_setproctitle=no
36441 fi
36442
36443 rm -f core conftest.err conftest.$ac_objext \
36444       conftest$ac_exeext conftest.$ac_ext
36445 fi
36446 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
36447 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
36448 if test $ac_cv_func_setproctitle = yes; then
36449   have_setproctitle=yes
36450 else
36451
36452                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
36453 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
36454 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 else
36457   ac_check_lib_save_LIBS=$LIBS
36458 LIBS="-lutil  $LIBS"
36459 cat >conftest.$ac_ext <<_ACEOF
36460 /* confdefs.h.  */
36461 _ACEOF
36462 cat confdefs.h >>conftest.$ac_ext
36463 cat >>conftest.$ac_ext <<_ACEOF
36464 /* end confdefs.h.  */
36465
36466 /* Override any GCC internal prototype to avoid an error.
36467    Use char because int might match the return type of a GCC
36468    builtin and then its argument prototype would still apply.  */
36469 #ifdef __cplusplus
36470 extern "C"
36471 #endif
36472 char setproctitle ();
36473 int
36474 main ()
36475 {
36476 return setproctitle ();
36477   ;
36478   return 0;
36479 }
36480 _ACEOF
36481 rm -f conftest.$ac_objext conftest$ac_exeext
36482 if { (ac_try="$ac_link"
36483 case "(($ac_try" in
36484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36485   *) ac_try_echo=$ac_try;;
36486 esac
36487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36488   (eval "$ac_link") 2>conftest.er1
36489   ac_status=$?
36490   grep -v '^ *+' conftest.er1 >conftest.err
36491   rm -f conftest.er1
36492   cat conftest.err >&5
36493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494   (exit $ac_status); } &&
36495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36496   { (case "(($ac_try" in
36497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36498   *) ac_try_echo=$ac_try;;
36499 esac
36500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36501   (eval "$ac_try") 2>&5
36502   ac_status=$?
36503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504   (exit $ac_status); }; } &&
36505          { ac_try='test -s conftest$ac_exeext'
36506   { (case "(($ac_try" in
36507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36508   *) ac_try_echo=$ac_try;;
36509 esac
36510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36511   (eval "$ac_try") 2>&5
36512   ac_status=$?
36513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514   (exit $ac_status); }; }; then
36515   ac_cv_lib_util_setproctitle=yes
36516 else
36517   echo "$as_me: failed program was:" >&5
36518 sed 's/^/| /' conftest.$ac_ext >&5
36519
36520         ac_cv_lib_util_setproctitle=no
36521 fi
36522
36523 rm -f core conftest.err conftest.$ac_objext \
36524       conftest$ac_exeext conftest.$ac_ext
36525 LIBS=$ac_check_lib_save_LIBS
36526 fi
36527 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36528 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
36529 if test $ac_cv_lib_util_setproctitle = yes; then
36530   have_setproctitle=yes
36531                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
36532 else
36533   have_setproctitle=no
36534                         case " $LIBOBJS " in
36535   *" setproctitle.$ac_objext "* ) ;;
36536   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
36537  ;;
36538 esac
36539
36540                         LIBSRCS="$LIBSRCS setproctitle.c"
36541 fi
36542
36543 fi
36544
36545
36546         if test $have_setproctitle = yes ; then
36547
36548 cat >>confdefs.h <<\_ACEOF
36549 #define HAVE_SETPROCTITLE 1
36550 _ACEOF
36551
36552         fi
36553 fi
36554
36555 if test $ol_enable_slp != no ; then
36556
36557 for ac_header in slp.h
36558 do
36559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36561   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36564   echo $ECHO_N "(cached) $ECHO_C" >&6
36565 fi
36566 ac_res=`eval echo '${'$as_ac_Header'}'`
36567                { echo "$as_me:$LINENO: result: $ac_res" >&5
36568 echo "${ECHO_T}$ac_res" >&6; }
36569 else
36570   # Is the header compilable?
36571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36573 cat >conftest.$ac_ext <<_ACEOF
36574 /* confdefs.h.  */
36575 _ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h.  */
36579 $ac_includes_default
36580 #include <$ac_header>
36581 _ACEOF
36582 rm -f conftest.$ac_objext
36583 if { (ac_try="$ac_compile"
36584 case "(($ac_try" in
36585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36586   *) ac_try_echo=$ac_try;;
36587 esac
36588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36589   (eval "$ac_compile") 2>conftest.er1
36590   ac_status=$?
36591   grep -v '^ *+' conftest.er1 >conftest.err
36592   rm -f conftest.er1
36593   cat conftest.err >&5
36594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595   (exit $ac_status); } &&
36596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36597   { (case "(($ac_try" in
36598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36599   *) ac_try_echo=$ac_try;;
36600 esac
36601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36602   (eval "$ac_try") 2>&5
36603   ac_status=$?
36604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605   (exit $ac_status); }; } &&
36606          { ac_try='test -s conftest.$ac_objext'
36607   { (case "(($ac_try" in
36608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36609   *) ac_try_echo=$ac_try;;
36610 esac
36611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36612   (eval "$ac_try") 2>&5
36613   ac_status=$?
36614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615   (exit $ac_status); }; }; then
36616   ac_header_compiler=yes
36617 else
36618   echo "$as_me: failed program was:" >&5
36619 sed 's/^/| /' conftest.$ac_ext >&5
36620
36621         ac_header_compiler=no
36622 fi
36623
36624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36626 echo "${ECHO_T}$ac_header_compiler" >&6; }
36627
36628 # Is the header present?
36629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36631 cat >conftest.$ac_ext <<_ACEOF
36632 /* confdefs.h.  */
36633 _ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h.  */
36637 #include <$ac_header>
36638 _ACEOF
36639 if { (ac_try="$ac_cpp conftest.$ac_ext"
36640 case "(($ac_try" in
36641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36642   *) ac_try_echo=$ac_try;;
36643 esac
36644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36646   ac_status=$?
36647   grep -v '^ *+' conftest.er1 >conftest.err
36648   rm -f conftest.er1
36649   cat conftest.err >&5
36650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651   (exit $ac_status); } >/dev/null; then
36652   if test -s conftest.err; then
36653     ac_cpp_err=$ac_c_preproc_warn_flag
36654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36655   else
36656     ac_cpp_err=
36657   fi
36658 else
36659   ac_cpp_err=yes
36660 fi
36661 if test -z "$ac_cpp_err"; then
36662   ac_header_preproc=yes
36663 else
36664   echo "$as_me: failed program was:" >&5
36665 sed 's/^/| /' conftest.$ac_ext >&5
36666
36667   ac_header_preproc=no
36668 fi
36669
36670 rm -f conftest.err conftest.$ac_ext
36671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36672 echo "${ECHO_T}$ac_header_preproc" >&6; }
36673
36674 # So?  What about this header?
36675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36676   yes:no: )
36677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36681     ac_header_preproc=yes
36682     ;;
36683   no:yes:* )
36684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36686     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36687 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36688     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36690     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36691 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36694     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36696     ( cat <<\_ASBOX
36697 ## --------------------------------------------- ##
36698 ## Report this to <http://www.openldap.org/its/> ##
36699 ## --------------------------------------------- ##
36700 _ASBOX
36701      ) | sed "s/^/$as_me: WARNING:     /" >&2
36702     ;;
36703 esac
36704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36707   echo $ECHO_N "(cached) $ECHO_C" >&6
36708 else
36709   eval "$as_ac_Header=\$ac_header_preproc"
36710 fi
36711 ac_res=`eval echo '${'$as_ac_Header'}'`
36712                { echo "$as_me:$LINENO: result: $ac_res" >&5
36713 echo "${ECHO_T}$ac_res" >&6; }
36714
36715 fi
36716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36717   cat >>confdefs.h <<_ACEOF
36718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36719 _ACEOF
36720
36721 fi
36722
36723 done
36724
36725
36726         if test $ac_cv_header_slp_h = yes ; then
36727                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36728 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
36729 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36730   echo $ECHO_N "(cached) $ECHO_C" >&6
36731 else
36732   ac_check_lib_save_LIBS=$LIBS
36733 LIBS="-lslp  $LIBS"
36734 cat >conftest.$ac_ext <<_ACEOF
36735 /* confdefs.h.  */
36736 _ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h.  */
36740
36741 /* Override any GCC internal prototype to avoid an error.
36742    Use char because int might match the return type of a GCC
36743    builtin and then its argument prototype would still apply.  */
36744 #ifdef __cplusplus
36745 extern "C"
36746 #endif
36747 char SLPOpen ();
36748 int
36749 main ()
36750 {
36751 return SLPOpen ();
36752   ;
36753   return 0;
36754 }
36755 _ACEOF
36756 rm -f conftest.$ac_objext conftest$ac_exeext
36757 if { (ac_try="$ac_link"
36758 case "(($ac_try" in
36759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36760   *) ac_try_echo=$ac_try;;
36761 esac
36762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36763   (eval "$ac_link") 2>conftest.er1
36764   ac_status=$?
36765   grep -v '^ *+' conftest.er1 >conftest.err
36766   rm -f conftest.er1
36767   cat conftest.err >&5
36768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769   (exit $ac_status); } &&
36770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36771   { (case "(($ac_try" in
36772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36773   *) ac_try_echo=$ac_try;;
36774 esac
36775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36776   (eval "$ac_try") 2>&5
36777   ac_status=$?
36778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779   (exit $ac_status); }; } &&
36780          { ac_try='test -s conftest$ac_exeext'
36781   { (case "(($ac_try" in
36782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36783   *) ac_try_echo=$ac_try;;
36784 esac
36785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36786   (eval "$ac_try") 2>&5
36787   ac_status=$?
36788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789   (exit $ac_status); }; }; then
36790   ac_cv_lib_slp_SLPOpen=yes
36791 else
36792   echo "$as_me: failed program was:" >&5
36793 sed 's/^/| /' conftest.$ac_ext >&5
36794
36795         ac_cv_lib_slp_SLPOpen=no
36796 fi
36797
36798 rm -f core conftest.err conftest.$ac_objext \
36799       conftest$ac_exeext conftest.$ac_ext
36800 LIBS=$ac_check_lib_save_LIBS
36801 fi
36802 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36803 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
36804 if test $ac_cv_lib_slp_SLPOpen = yes; then
36805   have_slp=yes
36806 else
36807   have_slp=no
36808 fi
36809
36810                 if test $have_slp = yes ; then
36811
36812 cat >>confdefs.h <<\_ACEOF
36813 #define HAVE_SLP 1
36814 _ACEOF
36815
36816                         SLAPD_SLP_LIBS=-lslp
36817                 fi
36818
36819         elif test $ol_enable_slp = yes ; then
36820                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36821 echo "$as_me: error: SLP not found" >&2;}
36822    { (exit 1); exit 1; }; }
36823         fi
36824 fi
36825
36826
36827 { echo "$as_me:$LINENO: checking for mode_t" >&5
36828 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36829 if test "${ac_cv_type_mode_t+set}" = set; then
36830   echo $ECHO_N "(cached) $ECHO_C" >&6
36831 else
36832   cat >conftest.$ac_ext <<_ACEOF
36833 /* confdefs.h.  */
36834 _ACEOF
36835 cat confdefs.h >>conftest.$ac_ext
36836 cat >>conftest.$ac_ext <<_ACEOF
36837 /* end confdefs.h.  */
36838 $ac_includes_default
36839 typedef mode_t ac__type_new_;
36840 int
36841 main ()
36842 {
36843 if ((ac__type_new_ *) 0)
36844   return 0;
36845 if (sizeof (ac__type_new_))
36846   return 0;
36847   ;
36848   return 0;
36849 }
36850 _ACEOF
36851 rm -f conftest.$ac_objext
36852 if { (ac_try="$ac_compile"
36853 case "(($ac_try" in
36854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36855   *) ac_try_echo=$ac_try;;
36856 esac
36857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36858   (eval "$ac_compile") 2>conftest.er1
36859   ac_status=$?
36860   grep -v '^ *+' conftest.er1 >conftest.err
36861   rm -f conftest.er1
36862   cat conftest.err >&5
36863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864   (exit $ac_status); } &&
36865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36866   { (case "(($ac_try" in
36867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36868   *) ac_try_echo=$ac_try;;
36869 esac
36870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36871   (eval "$ac_try") 2>&5
36872   ac_status=$?
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); }; } &&
36875          { ac_try='test -s conftest.$ac_objext'
36876   { (case "(($ac_try" in
36877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36878   *) ac_try_echo=$ac_try;;
36879 esac
36880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36881   (eval "$ac_try") 2>&5
36882   ac_status=$?
36883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884   (exit $ac_status); }; }; then
36885   ac_cv_type_mode_t=yes
36886 else
36887   echo "$as_me: failed program was:" >&5
36888 sed 's/^/| /' conftest.$ac_ext >&5
36889
36890         ac_cv_type_mode_t=no
36891 fi
36892
36893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36894 fi
36895 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36896 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36897 if test $ac_cv_type_mode_t = yes; then
36898   :
36899 else
36900
36901 cat >>confdefs.h <<_ACEOF
36902 #define mode_t int
36903 _ACEOF
36904
36905 fi
36906
36907 { echo "$as_me:$LINENO: checking for off_t" >&5
36908 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36909 if test "${ac_cv_type_off_t+set}" = set; then
36910   echo $ECHO_N "(cached) $ECHO_C" >&6
36911 else
36912   cat >conftest.$ac_ext <<_ACEOF
36913 /* confdefs.h.  */
36914 _ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h.  */
36918 $ac_includes_default
36919 typedef off_t ac__type_new_;
36920 int
36921 main ()
36922 {
36923 if ((ac__type_new_ *) 0)
36924   return 0;
36925 if (sizeof (ac__type_new_))
36926   return 0;
36927   ;
36928   return 0;
36929 }
36930 _ACEOF
36931 rm -f conftest.$ac_objext
36932 if { (ac_try="$ac_compile"
36933 case "(($ac_try" in
36934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36935   *) ac_try_echo=$ac_try;;
36936 esac
36937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36938   (eval "$ac_compile") 2>conftest.er1
36939   ac_status=$?
36940   grep -v '^ *+' conftest.er1 >conftest.err
36941   rm -f conftest.er1
36942   cat conftest.err >&5
36943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944   (exit $ac_status); } &&
36945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36946   { (case "(($ac_try" in
36947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36948   *) ac_try_echo=$ac_try;;
36949 esac
36950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36951   (eval "$ac_try") 2>&5
36952   ac_status=$?
36953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954   (exit $ac_status); }; } &&
36955          { ac_try='test -s conftest.$ac_objext'
36956   { (case "(($ac_try" in
36957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36958   *) ac_try_echo=$ac_try;;
36959 esac
36960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36961   (eval "$ac_try") 2>&5
36962   ac_status=$?
36963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964   (exit $ac_status); }; }; then
36965   ac_cv_type_off_t=yes
36966 else
36967   echo "$as_me: failed program was:" >&5
36968 sed 's/^/| /' conftest.$ac_ext >&5
36969
36970         ac_cv_type_off_t=no
36971 fi
36972
36973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36974 fi
36975 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36976 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36977 if test $ac_cv_type_off_t = yes; then
36978   :
36979 else
36980
36981 cat >>confdefs.h <<_ACEOF
36982 #define off_t long
36983 _ACEOF
36984
36985 fi
36986
36987 { echo "$as_me:$LINENO: checking for pid_t" >&5
36988 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36989 if test "${ac_cv_type_pid_t+set}" = set; then
36990   echo $ECHO_N "(cached) $ECHO_C" >&6
36991 else
36992   cat >conftest.$ac_ext <<_ACEOF
36993 /* confdefs.h.  */
36994 _ACEOF
36995 cat confdefs.h >>conftest.$ac_ext
36996 cat >>conftest.$ac_ext <<_ACEOF
36997 /* end confdefs.h.  */
36998 $ac_includes_default
36999 typedef pid_t ac__type_new_;
37000 int
37001 main ()
37002 {
37003 if ((ac__type_new_ *) 0)
37004   return 0;
37005 if (sizeof (ac__type_new_))
37006   return 0;
37007   ;
37008   return 0;
37009 }
37010 _ACEOF
37011 rm -f conftest.$ac_objext
37012 if { (ac_try="$ac_compile"
37013 case "(($ac_try" in
37014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37015   *) ac_try_echo=$ac_try;;
37016 esac
37017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37018   (eval "$ac_compile") 2>conftest.er1
37019   ac_status=$?
37020   grep -v '^ *+' conftest.er1 >conftest.err
37021   rm -f conftest.er1
37022   cat conftest.err >&5
37023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024   (exit $ac_status); } &&
37025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37026   { (case "(($ac_try" in
37027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37028   *) ac_try_echo=$ac_try;;
37029 esac
37030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37031   (eval "$ac_try") 2>&5
37032   ac_status=$?
37033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034   (exit $ac_status); }; } &&
37035          { ac_try='test -s conftest.$ac_objext'
37036   { (case "(($ac_try" in
37037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37038   *) ac_try_echo=$ac_try;;
37039 esac
37040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37041   (eval "$ac_try") 2>&5
37042   ac_status=$?
37043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044   (exit $ac_status); }; }; then
37045   ac_cv_type_pid_t=yes
37046 else
37047   echo "$as_me: failed program was:" >&5
37048 sed 's/^/| /' conftest.$ac_ext >&5
37049
37050         ac_cv_type_pid_t=no
37051 fi
37052
37053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37054 fi
37055 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37056 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
37057 if test $ac_cv_type_pid_t = yes; then
37058   :
37059 else
37060
37061 cat >>confdefs.h <<_ACEOF
37062 #define pid_t int
37063 _ACEOF
37064
37065 fi
37066
37067 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37068 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37069 if test "${ac_cv_type_ssize_t+set}" = set; then
37070   echo $ECHO_N "(cached) $ECHO_C" >&6
37071 else
37072   cat >conftest.$ac_ext <<_ACEOF
37073 /* confdefs.h.  */
37074 _ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h.  */
37078 $ac_includes_default
37079 typedef ssize_t ac__type_new_;
37080 int
37081 main ()
37082 {
37083 if ((ac__type_new_ *) 0)
37084   return 0;
37085 if (sizeof (ac__type_new_))
37086   return 0;
37087   ;
37088   return 0;
37089 }
37090 _ACEOF
37091 rm -f conftest.$ac_objext
37092 if { (ac_try="$ac_compile"
37093 case "(($ac_try" in
37094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37095   *) ac_try_echo=$ac_try;;
37096 esac
37097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37098   (eval "$ac_compile") 2>conftest.er1
37099   ac_status=$?
37100   grep -v '^ *+' conftest.er1 >conftest.err
37101   rm -f conftest.er1
37102   cat conftest.err >&5
37103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104   (exit $ac_status); } &&
37105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37106   { (case "(($ac_try" in
37107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37108   *) ac_try_echo=$ac_try;;
37109 esac
37110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37111   (eval "$ac_try") 2>&5
37112   ac_status=$?
37113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114   (exit $ac_status); }; } &&
37115          { ac_try='test -s conftest.$ac_objext'
37116   { (case "(($ac_try" in
37117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37118   *) ac_try_echo=$ac_try;;
37119 esac
37120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37121   (eval "$ac_try") 2>&5
37122   ac_status=$?
37123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124   (exit $ac_status); }; }; then
37125   ac_cv_type_ssize_t=yes
37126 else
37127   echo "$as_me: failed program was:" >&5
37128 sed 's/^/| /' conftest.$ac_ext >&5
37129
37130         ac_cv_type_ssize_t=no
37131 fi
37132
37133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37134 fi
37135 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37136 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37137 if test $ac_cv_type_ssize_t = yes; then
37138   :
37139 else
37140
37141 cat >>confdefs.h <<_ACEOF
37142 #define ssize_t signed int
37143 _ACEOF
37144
37145 fi
37146
37147 { echo "$as_me:$LINENO: checking for caddr_t" >&5
37148 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
37149 if test "${ac_cv_type_caddr_t+set}" = set; then
37150   echo $ECHO_N "(cached) $ECHO_C" >&6
37151 else
37152   cat >conftest.$ac_ext <<_ACEOF
37153 /* confdefs.h.  */
37154 _ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h.  */
37158 $ac_includes_default
37159 typedef caddr_t ac__type_new_;
37160 int
37161 main ()
37162 {
37163 if ((ac__type_new_ *) 0)
37164   return 0;
37165 if (sizeof (ac__type_new_))
37166   return 0;
37167   ;
37168   return 0;
37169 }
37170 _ACEOF
37171 rm -f conftest.$ac_objext
37172 if { (ac_try="$ac_compile"
37173 case "(($ac_try" in
37174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37175   *) ac_try_echo=$ac_try;;
37176 esac
37177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37178   (eval "$ac_compile") 2>conftest.er1
37179   ac_status=$?
37180   grep -v '^ *+' conftest.er1 >conftest.err
37181   rm -f conftest.er1
37182   cat conftest.err >&5
37183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184   (exit $ac_status); } &&
37185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37186   { (case "(($ac_try" in
37187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37188   *) ac_try_echo=$ac_try;;
37189 esac
37190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37191   (eval "$ac_try") 2>&5
37192   ac_status=$?
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); }; } &&
37195          { ac_try='test -s conftest.$ac_objext'
37196   { (case "(($ac_try" in
37197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37198   *) ac_try_echo=$ac_try;;
37199 esac
37200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37201   (eval "$ac_try") 2>&5
37202   ac_status=$?
37203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204   (exit $ac_status); }; }; then
37205   ac_cv_type_caddr_t=yes
37206 else
37207   echo "$as_me: failed program was:" >&5
37208 sed 's/^/| /' conftest.$ac_ext >&5
37209
37210         ac_cv_type_caddr_t=no
37211 fi
37212
37213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37214 fi
37215 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37216 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
37217 if test $ac_cv_type_caddr_t = yes; then
37218   :
37219 else
37220
37221 cat >>confdefs.h <<_ACEOF
37222 #define caddr_t char *
37223 _ACEOF
37224
37225 fi
37226
37227 { echo "$as_me:$LINENO: checking for size_t" >&5
37228 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
37229 if test "${ac_cv_type_size_t+set}" = set; then
37230   echo $ECHO_N "(cached) $ECHO_C" >&6
37231 else
37232   cat >conftest.$ac_ext <<_ACEOF
37233 /* confdefs.h.  */
37234 _ACEOF
37235 cat confdefs.h >>conftest.$ac_ext
37236 cat >>conftest.$ac_ext <<_ACEOF
37237 /* end confdefs.h.  */
37238 $ac_includes_default
37239 typedef size_t ac__type_new_;
37240 int
37241 main ()
37242 {
37243 if ((ac__type_new_ *) 0)
37244   return 0;
37245 if (sizeof (ac__type_new_))
37246   return 0;
37247   ;
37248   return 0;
37249 }
37250 _ACEOF
37251 rm -f conftest.$ac_objext
37252 if { (ac_try="$ac_compile"
37253 case "(($ac_try" in
37254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37255   *) ac_try_echo=$ac_try;;
37256 esac
37257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37258   (eval "$ac_compile") 2>conftest.er1
37259   ac_status=$?
37260   grep -v '^ *+' conftest.er1 >conftest.err
37261   rm -f conftest.er1
37262   cat conftest.err >&5
37263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264   (exit $ac_status); } &&
37265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37266   { (case "(($ac_try" in
37267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268   *) ac_try_echo=$ac_try;;
37269 esac
37270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37271   (eval "$ac_try") 2>&5
37272   ac_status=$?
37273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274   (exit $ac_status); }; } &&
37275          { ac_try='test -s conftest.$ac_objext'
37276   { (case "(($ac_try" in
37277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37278   *) ac_try_echo=$ac_try;;
37279 esac
37280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37281   (eval "$ac_try") 2>&5
37282   ac_status=$?
37283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284   (exit $ac_status); }; }; then
37285   ac_cv_type_size_t=yes
37286 else
37287   echo "$as_me: failed program was:" >&5
37288 sed 's/^/| /' conftest.$ac_ext >&5
37289
37290         ac_cv_type_size_t=no
37291 fi
37292
37293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37294 fi
37295 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37296 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
37297 if test $ac_cv_type_size_t = yes; then
37298   :
37299 else
37300
37301 cat >>confdefs.h <<_ACEOF
37302 #define size_t unsigned
37303 _ACEOF
37304
37305 fi
37306
37307
37308 { echo "$as_me:$LINENO: checking for long long" >&5
37309 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
37310 if test "${ac_cv_type_long_long+set}" = set; then
37311   echo $ECHO_N "(cached) $ECHO_C" >&6
37312 else
37313   cat >conftest.$ac_ext <<_ACEOF
37314 /* confdefs.h.  */
37315 _ACEOF
37316 cat confdefs.h >>conftest.$ac_ext
37317 cat >>conftest.$ac_ext <<_ACEOF
37318 /* end confdefs.h.  */
37319 $ac_includes_default
37320 typedef long long ac__type_new_;
37321 int
37322 main ()
37323 {
37324 if ((ac__type_new_ *) 0)
37325   return 0;
37326 if (sizeof (ac__type_new_))
37327   return 0;
37328   ;
37329   return 0;
37330 }
37331 _ACEOF
37332 rm -f conftest.$ac_objext
37333 if { (ac_try="$ac_compile"
37334 case "(($ac_try" in
37335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37336   *) ac_try_echo=$ac_try;;
37337 esac
37338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37339   (eval "$ac_compile") 2>conftest.er1
37340   ac_status=$?
37341   grep -v '^ *+' conftest.er1 >conftest.err
37342   rm -f conftest.er1
37343   cat conftest.err >&5
37344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345   (exit $ac_status); } &&
37346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37347   { (case "(($ac_try" in
37348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37349   *) ac_try_echo=$ac_try;;
37350 esac
37351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37352   (eval "$ac_try") 2>&5
37353   ac_status=$?
37354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355   (exit $ac_status); }; } &&
37356          { ac_try='test -s conftest.$ac_objext'
37357   { (case "(($ac_try" in
37358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37359   *) ac_try_echo=$ac_try;;
37360 esac
37361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37362   (eval "$ac_try") 2>&5
37363   ac_status=$?
37364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365   (exit $ac_status); }; }; then
37366   ac_cv_type_long_long=yes
37367 else
37368   echo "$as_me: failed program was:" >&5
37369 sed 's/^/| /' conftest.$ac_ext >&5
37370
37371         ac_cv_type_long_long=no
37372 fi
37373
37374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37375 fi
37376 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37377 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
37378 if test $ac_cv_type_long_long = yes; then
37379
37380 cat >>confdefs.h <<_ACEOF
37381 #define HAVE_LONG_LONG 1
37382 _ACEOF
37383
37384
37385 fi
37386
37387 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37388 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
37389 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37390   echo $ECHO_N "(cached) $ECHO_C" >&6
37391 else
37392   cat >conftest.$ac_ext <<_ACEOF
37393 /* confdefs.h.  */
37394 _ACEOF
37395 cat confdefs.h >>conftest.$ac_ext
37396 cat >>conftest.$ac_ext <<_ACEOF
37397 /* end confdefs.h.  */
37398 $ac_includes_default
37399 typedef ptrdiff_t ac__type_new_;
37400 int
37401 main ()
37402 {
37403 if ((ac__type_new_ *) 0)
37404   return 0;
37405 if (sizeof (ac__type_new_))
37406   return 0;
37407   ;
37408   return 0;
37409 }
37410 _ACEOF
37411 rm -f conftest.$ac_objext
37412 if { (ac_try="$ac_compile"
37413 case "(($ac_try" in
37414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37415   *) ac_try_echo=$ac_try;;
37416 esac
37417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37418   (eval "$ac_compile") 2>conftest.er1
37419   ac_status=$?
37420   grep -v '^ *+' conftest.er1 >conftest.err
37421   rm -f conftest.er1
37422   cat conftest.err >&5
37423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424   (exit $ac_status); } &&
37425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37426   { (case "(($ac_try" in
37427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428   *) ac_try_echo=$ac_try;;
37429 esac
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431   (eval "$ac_try") 2>&5
37432   ac_status=$?
37433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434   (exit $ac_status); }; } &&
37435          { ac_try='test -s conftest.$ac_objext'
37436   { (case "(($ac_try" in
37437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37438   *) ac_try_echo=$ac_try;;
37439 esac
37440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37441   (eval "$ac_try") 2>&5
37442   ac_status=$?
37443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444   (exit $ac_status); }; }; then
37445   ac_cv_type_ptrdiff_t=yes
37446 else
37447   echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37449
37450         ac_cv_type_ptrdiff_t=no
37451 fi
37452
37453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37454 fi
37455 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37456 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
37457 if test $ac_cv_type_ptrdiff_t = yes; then
37458
37459 cat >>confdefs.h <<_ACEOF
37460 #define HAVE_PTRDIFF_T 1
37461 _ACEOF
37462
37463
37464 fi
37465
37466
37467 { echo "$as_me:$LINENO: checking for socklen_t" >&5
37468 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
37469 if test "${ac_cv_type_socklen_t+set}" = set; then
37470   echo $ECHO_N "(cached) $ECHO_C" >&6
37471 else
37472   cat >conftest.$ac_ext <<_ACEOF
37473 /* confdefs.h.  */
37474 _ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h.  */
37478 $ac_includes_default
37479 #ifdef HAVE_SYS_SOCKET_H
37480 #include <sys/socket.h>
37481 #endif
37482
37483
37484 typedef socklen_t ac__type_new_;
37485 int
37486 main ()
37487 {
37488 if ((ac__type_new_ *) 0)
37489   return 0;
37490 if (sizeof (ac__type_new_))
37491   return 0;
37492   ;
37493   return 0;
37494 }
37495 _ACEOF
37496 rm -f conftest.$ac_objext
37497 if { (ac_try="$ac_compile"
37498 case "(($ac_try" in
37499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37500   *) ac_try_echo=$ac_try;;
37501 esac
37502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37503   (eval "$ac_compile") 2>conftest.er1
37504   ac_status=$?
37505   grep -v '^ *+' conftest.er1 >conftest.err
37506   rm -f conftest.er1
37507   cat conftest.err >&5
37508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509   (exit $ac_status); } &&
37510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37511   { (case "(($ac_try" in
37512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37513   *) ac_try_echo=$ac_try;;
37514 esac
37515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37516   (eval "$ac_try") 2>&5
37517   ac_status=$?
37518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519   (exit $ac_status); }; } &&
37520          { ac_try='test -s conftest.$ac_objext'
37521   { (case "(($ac_try" in
37522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37523   *) ac_try_echo=$ac_try;;
37524 esac
37525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37526   (eval "$ac_try") 2>&5
37527   ac_status=$?
37528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529   (exit $ac_status); }; }; then
37530   ac_cv_type_socklen_t=yes
37531 else
37532   echo "$as_me: failed program was:" >&5
37533 sed 's/^/| /' conftest.$ac_ext >&5
37534
37535         ac_cv_type_socklen_t=no
37536 fi
37537
37538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37539 fi
37540 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37541 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
37542 if test $ac_cv_type_socklen_t = yes; then
37543   :
37544 else
37545
37546 cat >>confdefs.h <<_ACEOF
37547 #define socklen_t int
37548 _ACEOF
37549
37550 fi
37551
37552
37553 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37554 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
37555 if test "${ac_cv_type_signal+set}" = set; then
37556   echo $ECHO_N "(cached) $ECHO_C" >&6
37557 else
37558   cat >conftest.$ac_ext <<_ACEOF
37559 /* confdefs.h.  */
37560 _ACEOF
37561 cat confdefs.h >>conftest.$ac_ext
37562 cat >>conftest.$ac_ext <<_ACEOF
37563 /* end confdefs.h.  */
37564 #include <sys/types.h>
37565 #include <signal.h>
37566
37567 int
37568 main ()
37569 {
37570 return *(signal (0, 0)) (0) == 1;
37571   ;
37572   return 0;
37573 }
37574 _ACEOF
37575 rm -f conftest.$ac_objext
37576 if { (ac_try="$ac_compile"
37577 case "(($ac_try" in
37578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37579   *) ac_try_echo=$ac_try;;
37580 esac
37581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37582   (eval "$ac_compile") 2>conftest.er1
37583   ac_status=$?
37584   grep -v '^ *+' conftest.er1 >conftest.err
37585   rm -f conftest.er1
37586   cat conftest.err >&5
37587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37588   (exit $ac_status); } &&
37589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37590   { (case "(($ac_try" in
37591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37592   *) ac_try_echo=$ac_try;;
37593 esac
37594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37595   (eval "$ac_try") 2>&5
37596   ac_status=$?
37597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598   (exit $ac_status); }; } &&
37599          { ac_try='test -s conftest.$ac_objext'
37600   { (case "(($ac_try" in
37601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37602   *) ac_try_echo=$ac_try;;
37603 esac
37604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37605   (eval "$ac_try") 2>&5
37606   ac_status=$?
37607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608   (exit $ac_status); }; }; then
37609   ac_cv_type_signal=int
37610 else
37611   echo "$as_me: failed program was:" >&5
37612 sed 's/^/| /' conftest.$ac_ext >&5
37613
37614         ac_cv_type_signal=void
37615 fi
37616
37617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37618 fi
37619 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37620 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
37621
37622 cat >>confdefs.h <<_ACEOF
37623 #define RETSIGTYPE $ac_cv_type_signal
37624 _ACEOF
37625
37626
37627
37628 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37629 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
37630 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37631   echo $ECHO_N "(cached) $ECHO_C" >&6
37632 else
37633   cat >conftest.$ac_ext <<_ACEOF
37634 /* confdefs.h.  */
37635 _ACEOF
37636 cat confdefs.h >>conftest.$ac_ext
37637 cat >>conftest.$ac_ext <<_ACEOF
37638 /* end confdefs.h.  */
37639 $ac_includes_default
37640 #include <signal.h>
37641
37642
37643 typedef sig_atomic_t ac__type_new_;
37644 int
37645 main ()
37646 {
37647 if ((ac__type_new_ *) 0)
37648   return 0;
37649 if (sizeof (ac__type_new_))
37650   return 0;
37651   ;
37652   return 0;
37653 }
37654 _ACEOF
37655 rm -f conftest.$ac_objext
37656 if { (ac_try="$ac_compile"
37657 case "(($ac_try" in
37658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37659   *) ac_try_echo=$ac_try;;
37660 esac
37661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37662   (eval "$ac_compile") 2>conftest.er1
37663   ac_status=$?
37664   grep -v '^ *+' conftest.er1 >conftest.err
37665   rm -f conftest.er1
37666   cat conftest.err >&5
37667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668   (exit $ac_status); } &&
37669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37670   { (case "(($ac_try" in
37671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37672   *) ac_try_echo=$ac_try;;
37673 esac
37674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37675   (eval "$ac_try") 2>&5
37676   ac_status=$?
37677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678   (exit $ac_status); }; } &&
37679          { ac_try='test -s conftest.$ac_objext'
37680   { (case "(($ac_try" in
37681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37682   *) ac_try_echo=$ac_try;;
37683 esac
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685   (eval "$ac_try") 2>&5
37686   ac_status=$?
37687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688   (exit $ac_status); }; }; then
37689   ac_cv_type_sig_atomic_t=yes
37690 else
37691   echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37693
37694         ac_cv_type_sig_atomic_t=no
37695 fi
37696
37697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37698 fi
37699 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37700 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
37701 if test $ac_cv_type_sig_atomic_t = yes; then
37702   :
37703 else
37704
37705 cat >>confdefs.h <<_ACEOF
37706 #define sig_atomic_t int
37707 _ACEOF
37708
37709 fi
37710
37711
37712 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37713 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
37714 if test "${ac_cv_type_uid_t+set}" = set; then
37715   echo $ECHO_N "(cached) $ECHO_C" >&6
37716 else
37717   cat >conftest.$ac_ext <<_ACEOF
37718 /* confdefs.h.  */
37719 _ACEOF
37720 cat confdefs.h >>conftest.$ac_ext
37721 cat >>conftest.$ac_ext <<_ACEOF
37722 /* end confdefs.h.  */
37723 #include <sys/types.h>
37724
37725 _ACEOF
37726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37727   $EGREP "uid_t" >/dev/null 2>&1; then
37728   ac_cv_type_uid_t=yes
37729 else
37730   ac_cv_type_uid_t=no
37731 fi
37732 rm -f conftest*
37733
37734 fi
37735 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37736 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
37737 if test $ac_cv_type_uid_t = no; then
37738
37739 cat >>confdefs.h <<\_ACEOF
37740 #define uid_t int
37741 _ACEOF
37742
37743
37744 cat >>confdefs.h <<\_ACEOF
37745 #define gid_t int
37746 _ACEOF
37747
37748 fi
37749
37750
37751 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37752 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
37753 if test "${ac_cv_header_time+set}" = set; then
37754   echo $ECHO_N "(cached) $ECHO_C" >&6
37755 else
37756   cat >conftest.$ac_ext <<_ACEOF
37757 /* confdefs.h.  */
37758 _ACEOF
37759 cat confdefs.h >>conftest.$ac_ext
37760 cat >>conftest.$ac_ext <<_ACEOF
37761 /* end confdefs.h.  */
37762 #include <sys/types.h>
37763 #include <sys/time.h>
37764 #include <time.h>
37765
37766 int
37767 main ()
37768 {
37769 if ((struct tm *) 0)
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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37790   { (case "(($ac_try" in
37791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37792   *) ac_try_echo=$ac_try;;
37793 esac
37794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37795   (eval "$ac_try") 2>&5
37796   ac_status=$?
37797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798   (exit $ac_status); }; } &&
37799          { ac_try='test -s conftest.$ac_objext'
37800   { (case "(($ac_try" in
37801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37802   *) ac_try_echo=$ac_try;;
37803 esac
37804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37805   (eval "$ac_try") 2>&5
37806   ac_status=$?
37807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808   (exit $ac_status); }; }; then
37809   ac_cv_header_time=yes
37810 else
37811   echo "$as_me: failed program was:" >&5
37812 sed 's/^/| /' conftest.$ac_ext >&5
37813
37814         ac_cv_header_time=no
37815 fi
37816
37817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37818 fi
37819 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37820 echo "${ECHO_T}$ac_cv_header_time" >&6; }
37821 if test $ac_cv_header_time = yes; then
37822
37823 cat >>confdefs.h <<\_ACEOF
37824 #define TIME_WITH_SYS_TIME 1
37825 _ACEOF
37826
37827 fi
37828
37829 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37830 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
37831 if test "${ac_cv_struct_tm+set}" = set; then
37832   echo $ECHO_N "(cached) $ECHO_C" >&6
37833 else
37834   cat >conftest.$ac_ext <<_ACEOF
37835 /* confdefs.h.  */
37836 _ACEOF
37837 cat confdefs.h >>conftest.$ac_ext
37838 cat >>conftest.$ac_ext <<_ACEOF
37839 /* end confdefs.h.  */
37840 #include <sys/types.h>
37841 #include <time.h>
37842
37843 int
37844 main ()
37845 {
37846 struct tm *tp; tp->tm_sec;
37847   ;
37848   return 0;
37849 }
37850 _ACEOF
37851 rm -f conftest.$ac_objext
37852 if { (ac_try="$ac_compile"
37853 case "(($ac_try" in
37854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37855   *) ac_try_echo=$ac_try;;
37856 esac
37857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37858   (eval "$ac_compile") 2>conftest.er1
37859   ac_status=$?
37860   grep -v '^ *+' conftest.er1 >conftest.err
37861   rm -f conftest.er1
37862   cat conftest.err >&5
37863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864   (exit $ac_status); } &&
37865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37866   { (case "(($ac_try" in
37867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37868   *) ac_try_echo=$ac_try;;
37869 esac
37870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37871   (eval "$ac_try") 2>&5
37872   ac_status=$?
37873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874   (exit $ac_status); }; } &&
37875          { ac_try='test -s conftest.$ac_objext'
37876   { (case "(($ac_try" in
37877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37878   *) ac_try_echo=$ac_try;;
37879 esac
37880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37881   (eval "$ac_try") 2>&5
37882   ac_status=$?
37883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884   (exit $ac_status); }; }; then
37885   ac_cv_struct_tm=time.h
37886 else
37887   echo "$as_me: failed program was:" >&5
37888 sed 's/^/| /' conftest.$ac_ext >&5
37889
37890         ac_cv_struct_tm=sys/time.h
37891 fi
37892
37893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37894 fi
37895 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37896 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
37897 if test $ac_cv_struct_tm = sys/time.h; then
37898
37899 cat >>confdefs.h <<\_ACEOF
37900 #define TM_IN_SYS_TIME 1
37901 _ACEOF
37902
37903 fi
37904
37905 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37906 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
37907 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37908   echo $ECHO_N "(cached) $ECHO_C" >&6
37909 else
37910   cat >conftest.$ac_ext <<_ACEOF
37911 /* confdefs.h.  */
37912 _ACEOF
37913 cat confdefs.h >>conftest.$ac_ext
37914 cat >>conftest.$ac_ext <<_ACEOF
37915 /* end confdefs.h.  */
37916 $ac_includes_default
37917 int
37918 main ()
37919 {
37920 static struct stat ac_aggr;
37921 if (ac_aggr.st_blksize)
37922 return 0;
37923   ;
37924   return 0;
37925 }
37926 _ACEOF
37927 rm -f conftest.$ac_objext
37928 if { (ac_try="$ac_compile"
37929 case "(($ac_try" in
37930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37931   *) ac_try_echo=$ac_try;;
37932 esac
37933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37934   (eval "$ac_compile") 2>conftest.er1
37935   ac_status=$?
37936   grep -v '^ *+' conftest.er1 >conftest.err
37937   rm -f conftest.er1
37938   cat conftest.err >&5
37939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940   (exit $ac_status); } &&
37941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37942   { (case "(($ac_try" in
37943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37944   *) ac_try_echo=$ac_try;;
37945 esac
37946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37947   (eval "$ac_try") 2>&5
37948   ac_status=$?
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); }; } &&
37951          { ac_try='test -s conftest.$ac_objext'
37952   { (case "(($ac_try" in
37953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37954   *) ac_try_echo=$ac_try;;
37955 esac
37956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37957   (eval "$ac_try") 2>&5
37958   ac_status=$?
37959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960   (exit $ac_status); }; }; then
37961   ac_cv_member_struct_stat_st_blksize=yes
37962 else
37963   echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37965
37966         cat >conftest.$ac_ext <<_ACEOF
37967 /* confdefs.h.  */
37968 _ACEOF
37969 cat confdefs.h >>conftest.$ac_ext
37970 cat >>conftest.$ac_ext <<_ACEOF
37971 /* end confdefs.h.  */
37972 $ac_includes_default
37973 int
37974 main ()
37975 {
37976 static struct stat ac_aggr;
37977 if (sizeof ac_aggr.st_blksize)
37978 return 0;
37979   ;
37980   return 0;
37981 }
37982 _ACEOF
37983 rm -f conftest.$ac_objext
37984 if { (ac_try="$ac_compile"
37985 case "(($ac_try" in
37986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37987   *) ac_try_echo=$ac_try;;
37988 esac
37989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37990   (eval "$ac_compile") 2>conftest.er1
37991   ac_status=$?
37992   grep -v '^ *+' conftest.er1 >conftest.err
37993   rm -f conftest.er1
37994   cat conftest.err >&5
37995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996   (exit $ac_status); } &&
37997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37998   { (case "(($ac_try" in
37999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38000   *) ac_try_echo=$ac_try;;
38001 esac
38002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38003   (eval "$ac_try") 2>&5
38004   ac_status=$?
38005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006   (exit $ac_status); }; } &&
38007          { ac_try='test -s conftest.$ac_objext'
38008   { (case "(($ac_try" in
38009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38010   *) ac_try_echo=$ac_try;;
38011 esac
38012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38013   (eval "$ac_try") 2>&5
38014   ac_status=$?
38015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38016   (exit $ac_status); }; }; then
38017   ac_cv_member_struct_stat_st_blksize=yes
38018 else
38019   echo "$as_me: failed program was:" >&5
38020 sed 's/^/| /' conftest.$ac_ext >&5
38021
38022         ac_cv_member_struct_stat_st_blksize=no
38023 fi
38024
38025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38026 fi
38027
38028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38029 fi
38030 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
38031 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
38032 if test $ac_cv_member_struct_stat_st_blksize = yes; then
38033
38034 cat >>confdefs.h <<_ACEOF
38035 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
38036 _ACEOF
38037
38038
38039 fi
38040
38041 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
38042 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
38043 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
38044   echo $ECHO_N "(cached) $ECHO_C" >&6
38045 else
38046   cat >conftest.$ac_ext <<_ACEOF
38047 /* confdefs.h.  */
38048 _ACEOF
38049 cat confdefs.h >>conftest.$ac_ext
38050 cat >>conftest.$ac_ext <<_ACEOF
38051 /* end confdefs.h.  */
38052 $ac_includes_default
38053 #include <pwd.h>
38054
38055 int
38056 main ()
38057 {
38058 static struct passwd ac_aggr;
38059 if (ac_aggr.pw_gecos)
38060 return 0;
38061   ;
38062   return 0;
38063 }
38064 _ACEOF
38065 rm -f conftest.$ac_objext
38066 if { (ac_try="$ac_compile"
38067 case "(($ac_try" in
38068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38069   *) ac_try_echo=$ac_try;;
38070 esac
38071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38072   (eval "$ac_compile") 2>conftest.er1
38073   ac_status=$?
38074   grep -v '^ *+' conftest.er1 >conftest.err
38075   rm -f conftest.er1
38076   cat conftest.err >&5
38077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078   (exit $ac_status); } &&
38079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38080   { (case "(($ac_try" in
38081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38082   *) ac_try_echo=$ac_try;;
38083 esac
38084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38085   (eval "$ac_try") 2>&5
38086   ac_status=$?
38087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088   (exit $ac_status); }; } &&
38089          { ac_try='test -s conftest.$ac_objext'
38090   { (case "(($ac_try" in
38091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38092   *) ac_try_echo=$ac_try;;
38093 esac
38094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38095   (eval "$ac_try") 2>&5
38096   ac_status=$?
38097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098   (exit $ac_status); }; }; then
38099   ac_cv_member_struct_passwd_pw_gecos=yes
38100 else
38101   echo "$as_me: failed program was:" >&5
38102 sed 's/^/| /' conftest.$ac_ext >&5
38103
38104         cat >conftest.$ac_ext <<_ACEOF
38105 /* confdefs.h.  */
38106 _ACEOF
38107 cat confdefs.h >>conftest.$ac_ext
38108 cat >>conftest.$ac_ext <<_ACEOF
38109 /* end confdefs.h.  */
38110 $ac_includes_default
38111 #include <pwd.h>
38112
38113 int
38114 main ()
38115 {
38116 static struct passwd ac_aggr;
38117 if (sizeof ac_aggr.pw_gecos)
38118 return 0;
38119   ;
38120   return 0;
38121 }
38122 _ACEOF
38123 rm -f conftest.$ac_objext
38124 if { (ac_try="$ac_compile"
38125 case "(($ac_try" in
38126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38127   *) ac_try_echo=$ac_try;;
38128 esac
38129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38130   (eval "$ac_compile") 2>conftest.er1
38131   ac_status=$?
38132   grep -v '^ *+' conftest.er1 >conftest.err
38133   rm -f conftest.er1
38134   cat conftest.err >&5
38135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136   (exit $ac_status); } &&
38137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38138   { (case "(($ac_try" in
38139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38140   *) ac_try_echo=$ac_try;;
38141 esac
38142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38143   (eval "$ac_try") 2>&5
38144   ac_status=$?
38145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146   (exit $ac_status); }; } &&
38147          { ac_try='test -s conftest.$ac_objext'
38148   { (case "(($ac_try" in
38149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38150   *) ac_try_echo=$ac_try;;
38151 esac
38152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38153   (eval "$ac_try") 2>&5
38154   ac_status=$?
38155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38156   (exit $ac_status); }; }; then
38157   ac_cv_member_struct_passwd_pw_gecos=yes
38158 else
38159   echo "$as_me: failed program was:" >&5
38160 sed 's/^/| /' conftest.$ac_ext >&5
38161
38162         ac_cv_member_struct_passwd_pw_gecos=no
38163 fi
38164
38165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38166 fi
38167
38168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38169 fi
38170 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38171 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
38172 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38173
38174 cat >>confdefs.h <<_ACEOF
38175 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38176 _ACEOF
38177
38178
38179 fi
38180
38181 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38182 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
38183 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38184   echo $ECHO_N "(cached) $ECHO_C" >&6
38185 else
38186   cat >conftest.$ac_ext <<_ACEOF
38187 /* confdefs.h.  */
38188 _ACEOF
38189 cat confdefs.h >>conftest.$ac_ext
38190 cat >>conftest.$ac_ext <<_ACEOF
38191 /* end confdefs.h.  */
38192 $ac_includes_default
38193 #include <pwd.h>
38194
38195 int
38196 main ()
38197 {
38198 static struct passwd ac_aggr;
38199 if (ac_aggr.pw_passwd)
38200 return 0;
38201   ;
38202   return 0;
38203 }
38204 _ACEOF
38205 rm -f conftest.$ac_objext
38206 if { (ac_try="$ac_compile"
38207 case "(($ac_try" in
38208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38209   *) ac_try_echo=$ac_try;;
38210 esac
38211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38212   (eval "$ac_compile") 2>conftest.er1
38213   ac_status=$?
38214   grep -v '^ *+' conftest.er1 >conftest.err
38215   rm -f conftest.er1
38216   cat conftest.err >&5
38217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218   (exit $ac_status); } &&
38219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38220   { (case "(($ac_try" in
38221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38222   *) ac_try_echo=$ac_try;;
38223 esac
38224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38225   (eval "$ac_try") 2>&5
38226   ac_status=$?
38227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228   (exit $ac_status); }; } &&
38229          { ac_try='test -s conftest.$ac_objext'
38230   { (case "(($ac_try" in
38231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38232   *) ac_try_echo=$ac_try;;
38233 esac
38234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38235   (eval "$ac_try") 2>&5
38236   ac_status=$?
38237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238   (exit $ac_status); }; }; then
38239   ac_cv_member_struct_passwd_pw_passwd=yes
38240 else
38241   echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38243
38244         cat >conftest.$ac_ext <<_ACEOF
38245 /* confdefs.h.  */
38246 _ACEOF
38247 cat confdefs.h >>conftest.$ac_ext
38248 cat >>conftest.$ac_ext <<_ACEOF
38249 /* end confdefs.h.  */
38250 $ac_includes_default
38251 #include <pwd.h>
38252
38253 int
38254 main ()
38255 {
38256 static struct passwd ac_aggr;
38257 if (sizeof ac_aggr.pw_passwd)
38258 return 0;
38259   ;
38260   return 0;
38261 }
38262 _ACEOF
38263 rm -f conftest.$ac_objext
38264 if { (ac_try="$ac_compile"
38265 case "(($ac_try" in
38266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38267   *) ac_try_echo=$ac_try;;
38268 esac
38269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38270   (eval "$ac_compile") 2>conftest.er1
38271   ac_status=$?
38272   grep -v '^ *+' conftest.er1 >conftest.err
38273   rm -f conftest.er1
38274   cat conftest.err >&5
38275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276   (exit $ac_status); } &&
38277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38278   { (case "(($ac_try" in
38279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38280   *) ac_try_echo=$ac_try;;
38281 esac
38282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38283   (eval "$ac_try") 2>&5
38284   ac_status=$?
38285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286   (exit $ac_status); }; } &&
38287          { ac_try='test -s conftest.$ac_objext'
38288   { (case "(($ac_try" in
38289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38290   *) ac_try_echo=$ac_try;;
38291 esac
38292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38293   (eval "$ac_try") 2>&5
38294   ac_status=$?
38295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296   (exit $ac_status); }; }; then
38297   ac_cv_member_struct_passwd_pw_passwd=yes
38298 else
38299   echo "$as_me: failed program was:" >&5
38300 sed 's/^/| /' conftest.$ac_ext >&5
38301
38302         ac_cv_member_struct_passwd_pw_passwd=no
38303 fi
38304
38305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38306 fi
38307
38308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38309 fi
38310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38311 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
38312 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38313
38314 cat >>confdefs.h <<_ACEOF
38315 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38316 _ACEOF
38317
38318
38319 fi
38320
38321
38322 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38323 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
38324 if test "${ol_cv_c_upper_lower+set}" = set; then
38325   echo $ECHO_N "(cached) $ECHO_C" >&6
38326 else
38327
38328         if test "$cross_compiling" = yes; then
38329   ol_cv_c_upper_lower=safe
38330 else
38331   cat >conftest.$ac_ext <<_ACEOF
38332 /* confdefs.h.  */
38333 _ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h.  */
38337
38338 #include <ctype.h>
38339 main()
38340 {
38341         if ('C' == toupper('C'))
38342                 exit(0);
38343         else
38344                 exit(1);
38345 }
38346 _ACEOF
38347 rm -f conftest$ac_exeext
38348 if { (ac_try="$ac_link"
38349 case "(($ac_try" in
38350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38351   *) ac_try_echo=$ac_try;;
38352 esac
38353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38354   (eval "$ac_link") 2>&5
38355   ac_status=$?
38356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38358   { (case "(($ac_try" in
38359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38360   *) ac_try_echo=$ac_try;;
38361 esac
38362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38363   (eval "$ac_try") 2>&5
38364   ac_status=$?
38365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); }; }; then
38367   ol_cv_c_upper_lower=no
38368 else
38369   echo "$as_me: program exited with status $ac_status" >&5
38370 echo "$as_me: failed program was:" >&5
38371 sed 's/^/| /' conftest.$ac_ext >&5
38372
38373 ( exit $ac_status )
38374 ol_cv_c_upper_lower=yes
38375 fi
38376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38377 fi
38378
38379
38380 fi
38381 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38382 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
38383 if test $ol_cv_c_upper_lower != no ; then
38384
38385 cat >>confdefs.h <<\_ACEOF
38386 #define C_UPPER_LOWER 1
38387 _ACEOF
38388
38389 fi
38390
38391 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
38393 if test "${ac_cv_c_const+set}" = set; then
38394   echo $ECHO_N "(cached) $ECHO_C" >&6
38395 else
38396   cat >conftest.$ac_ext <<_ACEOF
38397 /* confdefs.h.  */
38398 _ACEOF
38399 cat confdefs.h >>conftest.$ac_ext
38400 cat >>conftest.$ac_ext <<_ACEOF
38401 /* end confdefs.h.  */
38402
38403 int
38404 main ()
38405 {
38406 /* FIXME: Include the comments suggested by Paul. */
38407 #ifndef __cplusplus
38408   /* Ultrix mips cc rejects this.  */
38409   typedef int charset[2];
38410   const charset x;
38411   /* SunOS 4.1.1 cc rejects this.  */
38412   char const *const *ccp;
38413   char **p;
38414   /* NEC SVR4.0.2 mips cc rejects this.  */
38415   struct point {int x, y;};
38416   static struct point const zero = {0,0};
38417   /* AIX XL C 1.02.0.0 rejects this.
38418      It does not let you subtract one const X* pointer from another in
38419      an arm of an if-expression whose if-part is not a constant
38420      expression */
38421   const char *g = "string";
38422   ccp = &g + (g ? g-g : 0);
38423   /* HPUX 7.0 cc rejects these. */
38424   ++ccp;
38425   p = (char**) ccp;
38426   ccp = (char const *const *) p;
38427   { /* SCO 3.2v4 cc rejects this.  */
38428     char *t;
38429     char const *s = 0 ? (char *) 0 : (char const *) 0;
38430
38431     *t++ = 0;
38432     if (s) return 0;
38433   }
38434   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
38435     int x[] = {25, 17};
38436     const int *foo = &x[0];
38437     ++foo;
38438   }
38439   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38440     typedef const int *iptr;
38441     iptr p = 0;
38442     ++p;
38443   }
38444   { /* AIX XL C 1.02.0.0 rejects this saying
38445        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38446     struct s { int j; const int *ap[3]; };
38447     struct s *b; b->j = 5;
38448   }
38449   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38450     const int foo = 10;
38451     if (!foo) return 0;
38452   }
38453   return !x[0] && !zero.x;
38454 #endif
38455
38456   ;
38457   return 0;
38458 }
38459 _ACEOF
38460 rm -f conftest.$ac_objext
38461 if { (ac_try="$ac_compile"
38462 case "(($ac_try" in
38463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38464   *) ac_try_echo=$ac_try;;
38465 esac
38466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38467   (eval "$ac_compile") 2>conftest.er1
38468   ac_status=$?
38469   grep -v '^ *+' conftest.er1 >conftest.err
38470   rm -f conftest.er1
38471   cat conftest.err >&5
38472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473   (exit $ac_status); } &&
38474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38475   { (case "(($ac_try" in
38476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38477   *) ac_try_echo=$ac_try;;
38478 esac
38479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38480   (eval "$ac_try") 2>&5
38481   ac_status=$?
38482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483   (exit $ac_status); }; } &&
38484          { ac_try='test -s conftest.$ac_objext'
38485   { (case "(($ac_try" in
38486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38487   *) ac_try_echo=$ac_try;;
38488 esac
38489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38490   (eval "$ac_try") 2>&5
38491   ac_status=$?
38492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493   (exit $ac_status); }; }; then
38494   ac_cv_c_const=yes
38495 else
38496   echo "$as_me: failed program was:" >&5
38497 sed 's/^/| /' conftest.$ac_ext >&5
38498
38499         ac_cv_c_const=no
38500 fi
38501
38502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38503 fi
38504 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38505 echo "${ECHO_T}$ac_cv_c_const" >&6; }
38506 if test $ac_cv_c_const = no; then
38507
38508 cat >>confdefs.h <<\_ACEOF
38509 #define const
38510 _ACEOF
38511
38512 fi
38513
38514 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38515 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
38516 if test "${ol_cv_c_volatile+set}" = set; then
38517   echo $ECHO_N "(cached) $ECHO_C" >&6
38518 else
38519   cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h.  */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h.  */
38525 int x, y, z;
38526 int
38527 main ()
38528 {
38529 volatile int a; int * volatile b = x ? &y : &z;
38530       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38531       *b = 0;
38532   ;
38533   return 0;
38534 }
38535 _ACEOF
38536 rm -f conftest.$ac_objext
38537 if { (ac_try="$ac_compile"
38538 case "(($ac_try" in
38539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38540   *) ac_try_echo=$ac_try;;
38541 esac
38542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38543   (eval "$ac_compile") 2>conftest.er1
38544   ac_status=$?
38545   grep -v '^ *+' conftest.er1 >conftest.err
38546   rm -f conftest.er1
38547   cat conftest.err >&5
38548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549   (exit $ac_status); } &&
38550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38551   { (case "(($ac_try" in
38552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38553   *) ac_try_echo=$ac_try;;
38554 esac
38555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38556   (eval "$ac_try") 2>&5
38557   ac_status=$?
38558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559   (exit $ac_status); }; } &&
38560          { ac_try='test -s conftest.$ac_objext'
38561   { (case "(($ac_try" in
38562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38563   *) ac_try_echo=$ac_try;;
38564 esac
38565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38566   (eval "$ac_try") 2>&5
38567   ac_status=$?
38568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569   (exit $ac_status); }; }; then
38570   ol_cv_c_volatile=yes
38571 else
38572   echo "$as_me: failed program was:" >&5
38573 sed 's/^/| /' conftest.$ac_ext >&5
38574
38575         ol_cv_c_volatile=no
38576 fi
38577
38578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38579 fi
38580 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38581 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
38582   if test $ol_cv_c_volatile = yes; then
38583     :
38584   else
38585
38586 cat >>confdefs.h <<\_ACEOF
38587 #define volatile
38588 _ACEOF
38589
38590   fi
38591
38592
38593 if test $cross_compiling = yes ; then
38594         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38595 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38596
38597 cat >>confdefs.h <<\_ACEOF
38598 #define CROSS_COMPILING 1
38599 _ACEOF
38600
38601 else
38602         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38603 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
38604 if test "${ac_cv_c_bigendian+set}" = set; then
38605   echo $ECHO_N "(cached) $ECHO_C" >&6
38606 else
38607   # See if sys/param.h defines the BYTE_ORDER macro.
38608 cat >conftest.$ac_ext <<_ACEOF
38609 /* confdefs.h.  */
38610 _ACEOF
38611 cat confdefs.h >>conftest.$ac_ext
38612 cat >>conftest.$ac_ext <<_ACEOF
38613 /* end confdefs.h.  */
38614 #include <sys/types.h>
38615 #include <sys/param.h>
38616
38617 int
38618 main ()
38619 {
38620 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38621  bogus endian macros
38622 #endif
38623
38624   ;
38625   return 0;
38626 }
38627 _ACEOF
38628 rm -f conftest.$ac_objext
38629 if { (ac_try="$ac_compile"
38630 case "(($ac_try" in
38631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38632   *) ac_try_echo=$ac_try;;
38633 esac
38634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38635   (eval "$ac_compile") 2>conftest.er1
38636   ac_status=$?
38637   grep -v '^ *+' conftest.er1 >conftest.err
38638   rm -f conftest.er1
38639   cat conftest.err >&5
38640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641   (exit $ac_status); } &&
38642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38643   { (case "(($ac_try" in
38644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38645   *) ac_try_echo=$ac_try;;
38646 esac
38647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38648   (eval "$ac_try") 2>&5
38649   ac_status=$?
38650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651   (exit $ac_status); }; } &&
38652          { ac_try='test -s conftest.$ac_objext'
38653   { (case "(($ac_try" in
38654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38655   *) ac_try_echo=$ac_try;;
38656 esac
38657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38658   (eval "$ac_try") 2>&5
38659   ac_status=$?
38660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661   (exit $ac_status); }; }; then
38662   # It does; now see whether it defined to BIG_ENDIAN or not.
38663 cat >conftest.$ac_ext <<_ACEOF
38664 /* confdefs.h.  */
38665 _ACEOF
38666 cat confdefs.h >>conftest.$ac_ext
38667 cat >>conftest.$ac_ext <<_ACEOF
38668 /* end confdefs.h.  */
38669 #include <sys/types.h>
38670 #include <sys/param.h>
38671
38672 int
38673 main ()
38674 {
38675 #if BYTE_ORDER != BIG_ENDIAN
38676  not big endian
38677 #endif
38678
38679   ;
38680   return 0;
38681 }
38682 _ACEOF
38683 rm -f conftest.$ac_objext
38684 if { (ac_try="$ac_compile"
38685 case "(($ac_try" in
38686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38687   *) ac_try_echo=$ac_try;;
38688 esac
38689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38690   (eval "$ac_compile") 2>conftest.er1
38691   ac_status=$?
38692   grep -v '^ *+' conftest.er1 >conftest.err
38693   rm -f conftest.er1
38694   cat conftest.err >&5
38695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696   (exit $ac_status); } &&
38697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38698   { (case "(($ac_try" in
38699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38700   *) ac_try_echo=$ac_try;;
38701 esac
38702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38703   (eval "$ac_try") 2>&5
38704   ac_status=$?
38705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38706   (exit $ac_status); }; } &&
38707          { ac_try='test -s conftest.$ac_objext'
38708   { (case "(($ac_try" in
38709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710   *) ac_try_echo=$ac_try;;
38711 esac
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713   (eval "$ac_try") 2>&5
38714   ac_status=$?
38715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716   (exit $ac_status); }; }; then
38717   ac_cv_c_bigendian=yes
38718 else
38719   echo "$as_me: failed program was:" >&5
38720 sed 's/^/| /' conftest.$ac_ext >&5
38721
38722         ac_cv_c_bigendian=no
38723 fi
38724
38725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38726 else
38727   echo "$as_me: failed program was:" >&5
38728 sed 's/^/| /' conftest.$ac_ext >&5
38729
38730         # It does not; compile a test program.
38731 if test "$cross_compiling" = yes; then
38732   # try to guess the endianness by grepping values into an object file
38733   ac_cv_c_bigendian=unknown
38734   cat >conftest.$ac_ext <<_ACEOF
38735 /* confdefs.h.  */
38736 _ACEOF
38737 cat confdefs.h >>conftest.$ac_ext
38738 cat >>conftest.$ac_ext <<_ACEOF
38739 /* end confdefs.h.  */
38740 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38741 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38742 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38743 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38744 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38745 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38746 int
38747 main ()
38748 {
38749  _ascii (); _ebcdic ();
38750   ;
38751   return 0;
38752 }
38753 _ACEOF
38754 rm -f conftest.$ac_objext
38755 if { (ac_try="$ac_compile"
38756 case "(($ac_try" in
38757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38758   *) ac_try_echo=$ac_try;;
38759 esac
38760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38761   (eval "$ac_compile") 2>conftest.er1
38762   ac_status=$?
38763   grep -v '^ *+' conftest.er1 >conftest.err
38764   rm -f conftest.er1
38765   cat conftest.err >&5
38766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767   (exit $ac_status); } &&
38768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38769   { (case "(($ac_try" in
38770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38771   *) ac_try_echo=$ac_try;;
38772 esac
38773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38774   (eval "$ac_try") 2>&5
38775   ac_status=$?
38776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777   (exit $ac_status); }; } &&
38778          { ac_try='test -s conftest.$ac_objext'
38779   { (case "(($ac_try" in
38780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38781   *) ac_try_echo=$ac_try;;
38782 esac
38783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38784   (eval "$ac_try") 2>&5
38785   ac_status=$?
38786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787   (exit $ac_status); }; }; then
38788   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38789   ac_cv_c_bigendian=yes
38790 fi
38791 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38792   if test "$ac_cv_c_bigendian" = unknown; then
38793     ac_cv_c_bigendian=no
38794   else
38795     # finding both strings is unlikely to happen, but who knows?
38796     ac_cv_c_bigendian=unknown
38797   fi
38798 fi
38799 else
38800   echo "$as_me: failed program was:" >&5
38801 sed 's/^/| /' conftest.$ac_ext >&5
38802
38803
38804 fi
38805
38806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38807 else
38808   cat >conftest.$ac_ext <<_ACEOF
38809 /* confdefs.h.  */
38810 _ACEOF
38811 cat confdefs.h >>conftest.$ac_ext
38812 cat >>conftest.$ac_ext <<_ACEOF
38813 /* end confdefs.h.  */
38814 $ac_includes_default
38815 int
38816 main ()
38817 {
38818
38819   /* Are we little or big endian?  From Harbison&Steele.  */
38820   union
38821   {
38822     long int l;
38823     char c[sizeof (long int)];
38824   } u;
38825   u.l = 1;
38826   return u.c[sizeof (long int) - 1] == 1;
38827
38828   ;
38829   return 0;
38830 }
38831 _ACEOF
38832 rm -f conftest$ac_exeext
38833 if { (ac_try="$ac_link"
38834 case "(($ac_try" in
38835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38836   *) ac_try_echo=$ac_try;;
38837 esac
38838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38839   (eval "$ac_link") 2>&5
38840   ac_status=$?
38841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38843   { (case "(($ac_try" in
38844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38845   *) ac_try_echo=$ac_try;;
38846 esac
38847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38848   (eval "$ac_try") 2>&5
38849   ac_status=$?
38850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38851   (exit $ac_status); }; }; then
38852   ac_cv_c_bigendian=no
38853 else
38854   echo "$as_me: program exited with status $ac_status" >&5
38855 echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38857
38858 ( exit $ac_status )
38859 ac_cv_c_bigendian=yes
38860 fi
38861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38862 fi
38863
38864
38865 fi
38866
38867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38868 fi
38869 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38870 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
38871 case $ac_cv_c_bigendian in
38872   yes)
38873
38874 cat >>confdefs.h <<\_ACEOF
38875 #define WORDS_BIGENDIAN 1
38876 _ACEOF
38877  ;;
38878   no)
38879      ;;
38880   *)
38881     { { echo "$as_me:$LINENO: error: unknown endianness
38882 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38883 echo "$as_me: error: unknown endianness
38884 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38885    { (exit 1); exit 1; }; } ;;
38886 esac
38887
38888 fi
38889
38890 { echo "$as_me:$LINENO: checking for short" >&5
38891 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
38892 if test "${ac_cv_type_short+set}" = set; then
38893   echo $ECHO_N "(cached) $ECHO_C" >&6
38894 else
38895   cat >conftest.$ac_ext <<_ACEOF
38896 /* confdefs.h.  */
38897 _ACEOF
38898 cat confdefs.h >>conftest.$ac_ext
38899 cat >>conftest.$ac_ext <<_ACEOF
38900 /* end confdefs.h.  */
38901 $ac_includes_default
38902 typedef short ac__type_new_;
38903 int
38904 main ()
38905 {
38906 if ((ac__type_new_ *) 0)
38907   return 0;
38908 if (sizeof (ac__type_new_))
38909   return 0;
38910   ;
38911   return 0;
38912 }
38913 _ACEOF
38914 rm -f conftest.$ac_objext
38915 if { (ac_try="$ac_compile"
38916 case "(($ac_try" in
38917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38918   *) ac_try_echo=$ac_try;;
38919 esac
38920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38921   (eval "$ac_compile") 2>conftest.er1
38922   ac_status=$?
38923   grep -v '^ *+' conftest.er1 >conftest.err
38924   rm -f conftest.er1
38925   cat conftest.err >&5
38926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927   (exit $ac_status); } &&
38928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38929   { (case "(($ac_try" in
38930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38931   *) ac_try_echo=$ac_try;;
38932 esac
38933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38934   (eval "$ac_try") 2>&5
38935   ac_status=$?
38936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937   (exit $ac_status); }; } &&
38938          { ac_try='test -s conftest.$ac_objext'
38939   { (case "(($ac_try" in
38940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38941   *) ac_try_echo=$ac_try;;
38942 esac
38943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38944   (eval "$ac_try") 2>&5
38945   ac_status=$?
38946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38947   (exit $ac_status); }; }; then
38948   ac_cv_type_short=yes
38949 else
38950   echo "$as_me: failed program was:" >&5
38951 sed 's/^/| /' conftest.$ac_ext >&5
38952
38953         ac_cv_type_short=no
38954 fi
38955
38956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38957 fi
38958 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38959 echo "${ECHO_T}$ac_cv_type_short" >&6; }
38960
38961 { echo "$as_me:$LINENO: checking size of short" >&5
38962 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
38963 if test "${ac_cv_sizeof_short+set}" = set; then
38964   echo $ECHO_N "(cached) $ECHO_C" >&6
38965 else
38966   if test "$ac_cv_type_short" = yes; then
38967   # The cast to long int works around a bug in the HP C Compiler
38968   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38969   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38970   # This bug is HP SR number 8606223364.
38971   if test "$cross_compiling" = yes; then
38972   # Depending upon the size, compute the lo and hi bounds.
38973 cat >conftest.$ac_ext <<_ACEOF
38974 /* confdefs.h.  */
38975 _ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h.  */
38979 $ac_includes_default
38980                    typedef short ac__type_sizeof_;
38981 int
38982 main ()
38983 {
38984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
38985 test_array [0] = 0
38986
38987   ;
38988   return 0;
38989 }
38990 _ACEOF
38991 rm -f conftest.$ac_objext
38992 if { (ac_try="$ac_compile"
38993 case "(($ac_try" in
38994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38995   *) ac_try_echo=$ac_try;;
38996 esac
38997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38998   (eval "$ac_compile") 2>conftest.er1
38999   ac_status=$?
39000   grep -v '^ *+' conftest.er1 >conftest.err
39001   rm -f conftest.er1
39002   cat conftest.err >&5
39003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004   (exit $ac_status); } &&
39005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39006   { (case "(($ac_try" in
39007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39008   *) ac_try_echo=$ac_try;;
39009 esac
39010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39011   (eval "$ac_try") 2>&5
39012   ac_status=$?
39013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014   (exit $ac_status); }; } &&
39015          { ac_try='test -s conftest.$ac_objext'
39016   { (case "(($ac_try" in
39017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39018   *) ac_try_echo=$ac_try;;
39019 esac
39020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39021   (eval "$ac_try") 2>&5
39022   ac_status=$?
39023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024   (exit $ac_status); }; }; then
39025   ac_lo=0 ac_mid=0
39026   while :; do
39027     cat >conftest.$ac_ext <<_ACEOF
39028 /* confdefs.h.  */
39029 _ACEOF
39030 cat confdefs.h >>conftest.$ac_ext
39031 cat >>conftest.$ac_ext <<_ACEOF
39032 /* end confdefs.h.  */
39033 $ac_includes_default
39034                    typedef short ac__type_sizeof_;
39035 int
39036 main ()
39037 {
39038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39039 test_array [0] = 0
39040
39041   ;
39042   return 0;
39043 }
39044 _ACEOF
39045 rm -f conftest.$ac_objext
39046 if { (ac_try="$ac_compile"
39047 case "(($ac_try" in
39048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39049   *) ac_try_echo=$ac_try;;
39050 esac
39051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39052   (eval "$ac_compile") 2>conftest.er1
39053   ac_status=$?
39054   grep -v '^ *+' conftest.er1 >conftest.err
39055   rm -f conftest.er1
39056   cat conftest.err >&5
39057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058   (exit $ac_status); } &&
39059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39060   { (case "(($ac_try" in
39061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39062   *) ac_try_echo=$ac_try;;
39063 esac
39064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39065   (eval "$ac_try") 2>&5
39066   ac_status=$?
39067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068   (exit $ac_status); }; } &&
39069          { ac_try='test -s conftest.$ac_objext'
39070   { (case "(($ac_try" in
39071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39072   *) ac_try_echo=$ac_try;;
39073 esac
39074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39075   (eval "$ac_try") 2>&5
39076   ac_status=$?
39077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078   (exit $ac_status); }; }; then
39079   ac_hi=$ac_mid; break
39080 else
39081   echo "$as_me: failed program was:" >&5
39082 sed 's/^/| /' conftest.$ac_ext >&5
39083
39084         ac_lo=`expr $ac_mid + 1`
39085                         if test $ac_lo -le $ac_mid; then
39086                           ac_lo= ac_hi=
39087                           break
39088                         fi
39089                         ac_mid=`expr 2 '*' $ac_mid + 1`
39090 fi
39091
39092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39093   done
39094 else
39095   echo "$as_me: failed program was:" >&5
39096 sed 's/^/| /' conftest.$ac_ext >&5
39097
39098         cat >conftest.$ac_ext <<_ACEOF
39099 /* confdefs.h.  */
39100 _ACEOF
39101 cat confdefs.h >>conftest.$ac_ext
39102 cat >>conftest.$ac_ext <<_ACEOF
39103 /* end confdefs.h.  */
39104 $ac_includes_default
39105                    typedef short ac__type_sizeof_;
39106 int
39107 main ()
39108 {
39109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
39110 test_array [0] = 0
39111
39112   ;
39113   return 0;
39114 }
39115 _ACEOF
39116 rm -f conftest.$ac_objext
39117 if { (ac_try="$ac_compile"
39118 case "(($ac_try" in
39119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39120   *) ac_try_echo=$ac_try;;
39121 esac
39122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39123   (eval "$ac_compile") 2>conftest.er1
39124   ac_status=$?
39125   grep -v '^ *+' conftest.er1 >conftest.err
39126   rm -f conftest.er1
39127   cat conftest.err >&5
39128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129   (exit $ac_status); } &&
39130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39131   { (case "(($ac_try" in
39132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39133   *) ac_try_echo=$ac_try;;
39134 esac
39135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39136   (eval "$ac_try") 2>&5
39137   ac_status=$?
39138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139   (exit $ac_status); }; } &&
39140          { ac_try='test -s conftest.$ac_objext'
39141   { (case "(($ac_try" in
39142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39143   *) ac_try_echo=$ac_try;;
39144 esac
39145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39146   (eval "$ac_try") 2>&5
39147   ac_status=$?
39148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39149   (exit $ac_status); }; }; then
39150   ac_hi=-1 ac_mid=-1
39151   while :; do
39152     cat >conftest.$ac_ext <<_ACEOF
39153 /* confdefs.h.  */
39154 _ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h.  */
39158 $ac_includes_default
39159                    typedef short ac__type_sizeof_;
39160 int
39161 main ()
39162 {
39163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
39164 test_array [0] = 0
39165
39166   ;
39167   return 0;
39168 }
39169 _ACEOF
39170 rm -f conftest.$ac_objext
39171 if { (ac_try="$ac_compile"
39172 case "(($ac_try" in
39173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39174   *) ac_try_echo=$ac_try;;
39175 esac
39176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39177   (eval "$ac_compile") 2>conftest.er1
39178   ac_status=$?
39179   grep -v '^ *+' conftest.er1 >conftest.err
39180   rm -f conftest.er1
39181   cat conftest.err >&5
39182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39183   (exit $ac_status); } &&
39184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39185   { (case "(($ac_try" in
39186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39187   *) ac_try_echo=$ac_try;;
39188 esac
39189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39190   (eval "$ac_try") 2>&5
39191   ac_status=$?
39192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193   (exit $ac_status); }; } &&
39194          { ac_try='test -s conftest.$ac_objext'
39195   { (case "(($ac_try" in
39196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39197   *) ac_try_echo=$ac_try;;
39198 esac
39199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39200   (eval "$ac_try") 2>&5
39201   ac_status=$?
39202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203   (exit $ac_status); }; }; then
39204   ac_lo=$ac_mid; break
39205 else
39206   echo "$as_me: failed program was:" >&5
39207 sed 's/^/| /' conftest.$ac_ext >&5
39208
39209         ac_hi=`expr '(' $ac_mid ')' - 1`
39210                         if test $ac_mid -le $ac_hi; then
39211                           ac_lo= ac_hi=
39212                           break
39213                         fi
39214                         ac_mid=`expr 2 '*' $ac_mid`
39215 fi
39216
39217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39218   done
39219 else
39220   echo "$as_me: failed program was:" >&5
39221 sed 's/^/| /' conftest.$ac_ext >&5
39222
39223         ac_lo= ac_hi=
39224 fi
39225
39226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39227 fi
39228
39229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39230 # Binary search between lo and hi bounds.
39231 while test "x$ac_lo" != "x$ac_hi"; do
39232   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39233   cat >conftest.$ac_ext <<_ACEOF
39234 /* confdefs.h.  */
39235 _ACEOF
39236 cat confdefs.h >>conftest.$ac_ext
39237 cat >>conftest.$ac_ext <<_ACEOF
39238 /* end confdefs.h.  */
39239 $ac_includes_default
39240                    typedef short ac__type_sizeof_;
39241 int
39242 main ()
39243 {
39244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39245 test_array [0] = 0
39246
39247   ;
39248   return 0;
39249 }
39250 _ACEOF
39251 rm -f conftest.$ac_objext
39252 if { (ac_try="$ac_compile"
39253 case "(($ac_try" in
39254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39255   *) ac_try_echo=$ac_try;;
39256 esac
39257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39258   (eval "$ac_compile") 2>conftest.er1
39259   ac_status=$?
39260   grep -v '^ *+' conftest.er1 >conftest.err
39261   rm -f conftest.er1
39262   cat conftest.err >&5
39263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264   (exit $ac_status); } &&
39265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39266   { (case "(($ac_try" in
39267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268   *) ac_try_echo=$ac_try;;
39269 esac
39270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39271   (eval "$ac_try") 2>&5
39272   ac_status=$?
39273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274   (exit $ac_status); }; } &&
39275          { ac_try='test -s conftest.$ac_objext'
39276   { (case "(($ac_try" in
39277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39278   *) ac_try_echo=$ac_try;;
39279 esac
39280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39281   (eval "$ac_try") 2>&5
39282   ac_status=$?
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); }; }; then
39285   ac_hi=$ac_mid
39286 else
39287   echo "$as_me: failed program was:" >&5
39288 sed 's/^/| /' conftest.$ac_ext >&5
39289
39290         ac_lo=`expr '(' $ac_mid ')' + 1`
39291 fi
39292
39293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39294 done
39295 case $ac_lo in
39296 ?*) ac_cv_sizeof_short=$ac_lo;;
39297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
39298 See \`config.log' for more details." >&5
39299 echo "$as_me: error: cannot compute sizeof (short)
39300 See \`config.log' for more details." >&2;}
39301    { (exit 77); exit 77; }; } ;;
39302 esac
39303 else
39304   cat >conftest.$ac_ext <<_ACEOF
39305 /* confdefs.h.  */
39306 _ACEOF
39307 cat confdefs.h >>conftest.$ac_ext
39308 cat >>conftest.$ac_ext <<_ACEOF
39309 /* end confdefs.h.  */
39310 $ac_includes_default
39311                    typedef short ac__type_sizeof_;
39312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
39313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
39314 #include <stdio.h>
39315 #include <stdlib.h>
39316 int
39317 main ()
39318 {
39319
39320   FILE *f = fopen ("conftest.val", "w");
39321   if (! f)
39322     return 1;
39323   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
39324     {
39325       long int i = longval ();
39326       if (i != ((long int) (sizeof (ac__type_sizeof_))))
39327         return 1;
39328       fprintf (f, "%ld\n", i);
39329     }
39330   else
39331     {
39332       unsigned long int i = ulongval ();
39333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
39334         return 1;
39335       fprintf (f, "%lu\n", i);
39336     }
39337   return ferror (f) || fclose (f) != 0;
39338
39339   ;
39340   return 0;
39341 }
39342 _ACEOF
39343 rm -f conftest$ac_exeext
39344 if { (ac_try="$ac_link"
39345 case "(($ac_try" in
39346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39347   *) ac_try_echo=$ac_try;;
39348 esac
39349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39350   (eval "$ac_link") 2>&5
39351   ac_status=$?
39352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39354   { (case "(($ac_try" in
39355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39356   *) ac_try_echo=$ac_try;;
39357 esac
39358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39359   (eval "$ac_try") 2>&5
39360   ac_status=$?
39361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362   (exit $ac_status); }; }; then
39363   ac_cv_sizeof_short=`cat conftest.val`
39364 else
39365   echo "$as_me: program exited with status $ac_status" >&5
39366 echo "$as_me: failed program was:" >&5
39367 sed 's/^/| /' conftest.$ac_ext >&5
39368
39369 ( exit $ac_status )
39370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
39371 See \`config.log' for more details." >&5
39372 echo "$as_me: error: cannot compute sizeof (short)
39373 See \`config.log' for more details." >&2;}
39374    { (exit 77); exit 77; }; }
39375 fi
39376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39377 fi
39378 rm -f conftest.val
39379 else
39380   ac_cv_sizeof_short=0
39381 fi
39382 fi
39383 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39384 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
39385 cat >>confdefs.h <<_ACEOF
39386 #define SIZEOF_SHORT $ac_cv_sizeof_short
39387 _ACEOF
39388
39389
39390 { echo "$as_me:$LINENO: checking for int" >&5
39391 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
39392 if test "${ac_cv_type_int+set}" = set; then
39393   echo $ECHO_N "(cached) $ECHO_C" >&6
39394 else
39395   cat >conftest.$ac_ext <<_ACEOF
39396 /* confdefs.h.  */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h.  */
39401 $ac_includes_default
39402 typedef int ac__type_new_;
39403 int
39404 main ()
39405 {
39406 if ((ac__type_new_ *) 0)
39407   return 0;
39408 if (sizeof (ac__type_new_))
39409   return 0;
39410   ;
39411   return 0;
39412 }
39413 _ACEOF
39414 rm -f conftest.$ac_objext
39415 if { (ac_try="$ac_compile"
39416 case "(($ac_try" in
39417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39418   *) ac_try_echo=$ac_try;;
39419 esac
39420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39421   (eval "$ac_compile") 2>conftest.er1
39422   ac_status=$?
39423   grep -v '^ *+' conftest.er1 >conftest.err
39424   rm -f conftest.er1
39425   cat conftest.err >&5
39426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427   (exit $ac_status); } &&
39428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39429   { (case "(($ac_try" in
39430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39431   *) ac_try_echo=$ac_try;;
39432 esac
39433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39434   (eval "$ac_try") 2>&5
39435   ac_status=$?
39436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437   (exit $ac_status); }; } &&
39438          { ac_try='test -s conftest.$ac_objext'
39439   { (case "(($ac_try" in
39440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39441   *) ac_try_echo=$ac_try;;
39442 esac
39443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39444   (eval "$ac_try") 2>&5
39445   ac_status=$?
39446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447   (exit $ac_status); }; }; then
39448   ac_cv_type_int=yes
39449 else
39450   echo "$as_me: failed program was:" >&5
39451 sed 's/^/| /' conftest.$ac_ext >&5
39452
39453         ac_cv_type_int=no
39454 fi
39455
39456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39457 fi
39458 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39459 echo "${ECHO_T}$ac_cv_type_int" >&6; }
39460
39461 { echo "$as_me:$LINENO: checking size of int" >&5
39462 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
39463 if test "${ac_cv_sizeof_int+set}" = set; then
39464   echo $ECHO_N "(cached) $ECHO_C" >&6
39465 else
39466   if test "$ac_cv_type_int" = yes; then
39467   # The cast to long int works around a bug in the HP C Compiler
39468   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39469   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39470   # This bug is HP SR number 8606223364.
39471   if test "$cross_compiling" = yes; then
39472   # Depending upon the size, compute the lo and hi bounds.
39473 cat >conftest.$ac_ext <<_ACEOF
39474 /* confdefs.h.  */
39475 _ACEOF
39476 cat confdefs.h >>conftest.$ac_ext
39477 cat >>conftest.$ac_ext <<_ACEOF
39478 /* end confdefs.h.  */
39479 $ac_includes_default
39480                    typedef int ac__type_sizeof_;
39481 int
39482 main ()
39483 {
39484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
39485 test_array [0] = 0
39486
39487   ;
39488   return 0;
39489 }
39490 _ACEOF
39491 rm -f conftest.$ac_objext
39492 if { (ac_try="$ac_compile"
39493 case "(($ac_try" in
39494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39495   *) ac_try_echo=$ac_try;;
39496 esac
39497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39498   (eval "$ac_compile") 2>conftest.er1
39499   ac_status=$?
39500   grep -v '^ *+' conftest.er1 >conftest.err
39501   rm -f conftest.er1
39502   cat conftest.err >&5
39503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504   (exit $ac_status); } &&
39505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39506   { (case "(($ac_try" in
39507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39508   *) ac_try_echo=$ac_try;;
39509 esac
39510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39511   (eval "$ac_try") 2>&5
39512   ac_status=$?
39513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514   (exit $ac_status); }; } &&
39515          { ac_try='test -s conftest.$ac_objext'
39516   { (case "(($ac_try" in
39517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39518   *) ac_try_echo=$ac_try;;
39519 esac
39520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39521   (eval "$ac_try") 2>&5
39522   ac_status=$?
39523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524   (exit $ac_status); }; }; then
39525   ac_lo=0 ac_mid=0
39526   while :; do
39527     cat >conftest.$ac_ext <<_ACEOF
39528 /* confdefs.h.  */
39529 _ACEOF
39530 cat confdefs.h >>conftest.$ac_ext
39531 cat >>conftest.$ac_ext <<_ACEOF
39532 /* end confdefs.h.  */
39533 $ac_includes_default
39534                    typedef int ac__type_sizeof_;
39535 int
39536 main ()
39537 {
39538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39539 test_array [0] = 0
39540
39541   ;
39542   return 0;
39543 }
39544 _ACEOF
39545 rm -f conftest.$ac_objext
39546 if { (ac_try="$ac_compile"
39547 case "(($ac_try" in
39548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39549   *) ac_try_echo=$ac_try;;
39550 esac
39551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39552   (eval "$ac_compile") 2>conftest.er1
39553   ac_status=$?
39554   grep -v '^ *+' conftest.er1 >conftest.err
39555   rm -f conftest.er1
39556   cat conftest.err >&5
39557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558   (exit $ac_status); } &&
39559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39560   { (case "(($ac_try" in
39561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39562   *) ac_try_echo=$ac_try;;
39563 esac
39564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39565   (eval "$ac_try") 2>&5
39566   ac_status=$?
39567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568   (exit $ac_status); }; } &&
39569          { ac_try='test -s conftest.$ac_objext'
39570   { (case "(($ac_try" in
39571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39572   *) ac_try_echo=$ac_try;;
39573 esac
39574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39575   (eval "$ac_try") 2>&5
39576   ac_status=$?
39577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39578   (exit $ac_status); }; }; then
39579   ac_hi=$ac_mid; break
39580 else
39581   echo "$as_me: failed program was:" >&5
39582 sed 's/^/| /' conftest.$ac_ext >&5
39583
39584         ac_lo=`expr $ac_mid + 1`
39585                         if test $ac_lo -le $ac_mid; then
39586                           ac_lo= ac_hi=
39587                           break
39588                         fi
39589                         ac_mid=`expr 2 '*' $ac_mid + 1`
39590 fi
39591
39592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39593   done
39594 else
39595   echo "$as_me: failed program was:" >&5
39596 sed 's/^/| /' conftest.$ac_ext >&5
39597
39598         cat >conftest.$ac_ext <<_ACEOF
39599 /* confdefs.h.  */
39600 _ACEOF
39601 cat confdefs.h >>conftest.$ac_ext
39602 cat >>conftest.$ac_ext <<_ACEOF
39603 /* end confdefs.h.  */
39604 $ac_includes_default
39605                    typedef int ac__type_sizeof_;
39606 int
39607 main ()
39608 {
39609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
39610 test_array [0] = 0
39611
39612   ;
39613   return 0;
39614 }
39615 _ACEOF
39616 rm -f conftest.$ac_objext
39617 if { (ac_try="$ac_compile"
39618 case "(($ac_try" in
39619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620   *) ac_try_echo=$ac_try;;
39621 esac
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623   (eval "$ac_compile") 2>conftest.er1
39624   ac_status=$?
39625   grep -v '^ *+' conftest.er1 >conftest.err
39626   rm -f conftest.er1
39627   cat conftest.err >&5
39628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629   (exit $ac_status); } &&
39630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39631   { (case "(($ac_try" in
39632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39633   *) ac_try_echo=$ac_try;;
39634 esac
39635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39636   (eval "$ac_try") 2>&5
39637   ac_status=$?
39638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639   (exit $ac_status); }; } &&
39640          { ac_try='test -s conftest.$ac_objext'
39641   { (case "(($ac_try" in
39642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39643   *) ac_try_echo=$ac_try;;
39644 esac
39645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39646   (eval "$ac_try") 2>&5
39647   ac_status=$?
39648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649   (exit $ac_status); }; }; then
39650   ac_hi=-1 ac_mid=-1
39651   while :; do
39652     cat >conftest.$ac_ext <<_ACEOF
39653 /* confdefs.h.  */
39654 _ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h.  */
39658 $ac_includes_default
39659                    typedef int ac__type_sizeof_;
39660 int
39661 main ()
39662 {
39663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
39664 test_array [0] = 0
39665
39666   ;
39667   return 0;
39668 }
39669 _ACEOF
39670 rm -f conftest.$ac_objext
39671 if { (ac_try="$ac_compile"
39672 case "(($ac_try" in
39673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39674   *) ac_try_echo=$ac_try;;
39675 esac
39676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39677   (eval "$ac_compile") 2>conftest.er1
39678   ac_status=$?
39679   grep -v '^ *+' conftest.er1 >conftest.err
39680   rm -f conftest.er1
39681   cat conftest.err >&5
39682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683   (exit $ac_status); } &&
39684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39685   { (case "(($ac_try" in
39686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39687   *) ac_try_echo=$ac_try;;
39688 esac
39689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39690   (eval "$ac_try") 2>&5
39691   ac_status=$?
39692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693   (exit $ac_status); }; } &&
39694          { ac_try='test -s conftest.$ac_objext'
39695   { (case "(($ac_try" in
39696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39697   *) ac_try_echo=$ac_try;;
39698 esac
39699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39700   (eval "$ac_try") 2>&5
39701   ac_status=$?
39702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703   (exit $ac_status); }; }; then
39704   ac_lo=$ac_mid; break
39705 else
39706   echo "$as_me: failed program was:" >&5
39707 sed 's/^/| /' conftest.$ac_ext >&5
39708
39709         ac_hi=`expr '(' $ac_mid ')' - 1`
39710                         if test $ac_mid -le $ac_hi; then
39711                           ac_lo= ac_hi=
39712                           break
39713                         fi
39714                         ac_mid=`expr 2 '*' $ac_mid`
39715 fi
39716
39717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39718   done
39719 else
39720   echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39722
39723         ac_lo= ac_hi=
39724 fi
39725
39726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39727 fi
39728
39729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39730 # Binary search between lo and hi bounds.
39731 while test "x$ac_lo" != "x$ac_hi"; do
39732   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39733   cat >conftest.$ac_ext <<_ACEOF
39734 /* confdefs.h.  */
39735 _ACEOF
39736 cat confdefs.h >>conftest.$ac_ext
39737 cat >>conftest.$ac_ext <<_ACEOF
39738 /* end confdefs.h.  */
39739 $ac_includes_default
39740                    typedef int ac__type_sizeof_;
39741 int
39742 main ()
39743 {
39744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39745 test_array [0] = 0
39746
39747   ;
39748   return 0;
39749 }
39750 _ACEOF
39751 rm -f conftest.$ac_objext
39752 if { (ac_try="$ac_compile"
39753 case "(($ac_try" in
39754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39755   *) ac_try_echo=$ac_try;;
39756 esac
39757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39758   (eval "$ac_compile") 2>conftest.er1
39759   ac_status=$?
39760   grep -v '^ *+' conftest.er1 >conftest.err
39761   rm -f conftest.er1
39762   cat conftest.err >&5
39763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764   (exit $ac_status); } &&
39765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39766   { (case "(($ac_try" in
39767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768   *) ac_try_echo=$ac_try;;
39769 esac
39770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39771   (eval "$ac_try") 2>&5
39772   ac_status=$?
39773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774   (exit $ac_status); }; } &&
39775          { ac_try='test -s conftest.$ac_objext'
39776   { (case "(($ac_try" in
39777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39778   *) ac_try_echo=$ac_try;;
39779 esac
39780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39781   (eval "$ac_try") 2>&5
39782   ac_status=$?
39783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784   (exit $ac_status); }; }; then
39785   ac_hi=$ac_mid
39786 else
39787   echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39789
39790         ac_lo=`expr '(' $ac_mid ')' + 1`
39791 fi
39792
39793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39794 done
39795 case $ac_lo in
39796 ?*) ac_cv_sizeof_int=$ac_lo;;
39797 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
39798 See \`config.log' for more details." >&5
39799 echo "$as_me: error: cannot compute sizeof (int)
39800 See \`config.log' for more details." >&2;}
39801    { (exit 77); exit 77; }; } ;;
39802 esac
39803 else
39804   cat >conftest.$ac_ext <<_ACEOF
39805 /* confdefs.h.  */
39806 _ACEOF
39807 cat confdefs.h >>conftest.$ac_ext
39808 cat >>conftest.$ac_ext <<_ACEOF
39809 /* end confdefs.h.  */
39810 $ac_includes_default
39811                    typedef int ac__type_sizeof_;
39812 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
39813 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
39814 #include <stdio.h>
39815 #include <stdlib.h>
39816 int
39817 main ()
39818 {
39819
39820   FILE *f = fopen ("conftest.val", "w");
39821   if (! f)
39822     return 1;
39823   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
39824     {
39825       long int i = longval ();
39826       if (i != ((long int) (sizeof (ac__type_sizeof_))))
39827         return 1;
39828       fprintf (f, "%ld\n", i);
39829     }
39830   else
39831     {
39832       unsigned long int i = ulongval ();
39833       if (i != ((long int) (sizeof (ac__type_sizeof_))))
39834         return 1;
39835       fprintf (f, "%lu\n", i);
39836     }
39837   return ferror (f) || fclose (f) != 0;
39838
39839   ;
39840   return 0;
39841 }
39842 _ACEOF
39843 rm -f conftest$ac_exeext
39844 if { (ac_try="$ac_link"
39845 case "(($ac_try" in
39846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39847   *) ac_try_echo=$ac_try;;
39848 esac
39849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39850   (eval "$ac_link") 2>&5
39851   ac_status=$?
39852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39854   { (case "(($ac_try" in
39855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39856   *) ac_try_echo=$ac_try;;
39857 esac
39858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39859   (eval "$ac_try") 2>&5
39860   ac_status=$?
39861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862   (exit $ac_status); }; }; then
39863   ac_cv_sizeof_int=`cat conftest.val`
39864 else
39865   echo "$as_me: program exited with status $ac_status" >&5
39866 echo "$as_me: failed program was:" >&5
39867 sed 's/^/| /' conftest.$ac_ext >&5
39868
39869 ( exit $ac_status )
39870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
39871 See \`config.log' for more details." >&5
39872 echo "$as_me: error: cannot compute sizeof (int)
39873 See \`config.log' for more details." >&2;}
39874    { (exit 77); exit 77; }; }
39875 fi
39876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39877 fi
39878 rm -f conftest.val
39879 else
39880   ac_cv_sizeof_int=0
39881 fi
39882 fi
39883 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39884 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
39885 cat >>confdefs.h <<_ACEOF
39886 #define SIZEOF_INT $ac_cv_sizeof_int
39887 _ACEOF
39888
39889
39890 { echo "$as_me:$LINENO: checking for long" >&5
39891 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
39892 if test "${ac_cv_type_long+set}" = set; then
39893   echo $ECHO_N "(cached) $ECHO_C" >&6
39894 else
39895   cat >conftest.$ac_ext <<_ACEOF
39896 /* confdefs.h.  */
39897 _ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h.  */
39901 $ac_includes_default
39902 typedef long ac__type_new_;
39903 int
39904 main ()
39905 {
39906 if ((ac__type_new_ *) 0)
39907   return 0;
39908 if (sizeof (ac__type_new_))
39909   return 0;
39910   ;
39911   return 0;
39912 }
39913 _ACEOF
39914 rm -f conftest.$ac_objext
39915 if { (ac_try="$ac_compile"
39916 case "(($ac_try" in
39917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39918   *) ac_try_echo=$ac_try;;
39919 esac
39920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39921   (eval "$ac_compile") 2>conftest.er1
39922   ac_status=$?
39923   grep -v '^ *+' conftest.er1 >conftest.err
39924   rm -f conftest.er1
39925   cat conftest.err >&5
39926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39927   (exit $ac_status); } &&
39928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39929   { (case "(($ac_try" in
39930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931   *) ac_try_echo=$ac_try;;
39932 esac
39933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39934   (eval "$ac_try") 2>&5
39935   ac_status=$?
39936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937   (exit $ac_status); }; } &&
39938          { ac_try='test -s conftest.$ac_objext'
39939   { (case "(($ac_try" in
39940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39941   *) ac_try_echo=$ac_try;;
39942 esac
39943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39944   (eval "$ac_try") 2>&5
39945   ac_status=$?
39946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947   (exit $ac_status); }; }; then
39948   ac_cv_type_long=yes
39949 else
39950   echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39952
39953         ac_cv_type_long=no
39954 fi
39955
39956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39957 fi
39958 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39959 echo "${ECHO_T}$ac_cv_type_long" >&6; }
39960
39961 { echo "$as_me:$LINENO: checking size of long" >&5
39962 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
39963 if test "${ac_cv_sizeof_long+set}" = set; then
39964   echo $ECHO_N "(cached) $ECHO_C" >&6
39965 else
39966   if test "$ac_cv_type_long" = yes; then
39967   # The cast to long int works around a bug in the HP C Compiler
39968   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39969   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39970   # This bug is HP SR number 8606223364.
39971   if test "$cross_compiling" = yes; then
39972   # Depending upon the size, compute the lo and hi bounds.
39973 cat >conftest.$ac_ext <<_ACEOF
39974 /* confdefs.h.  */
39975 _ACEOF
39976 cat confdefs.h >>conftest.$ac_ext
39977 cat >>conftest.$ac_ext <<_ACEOF
39978 /* end confdefs.h.  */
39979 $ac_includes_default
39980                    typedef long ac__type_sizeof_;
39981 int
39982 main ()
39983 {
39984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
39985 test_array [0] = 0
39986
39987   ;
39988   return 0;
39989 }
39990 _ACEOF
39991 rm -f conftest.$ac_objext
39992 if { (ac_try="$ac_compile"
39993 case "(($ac_try" in
39994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39995   *) ac_try_echo=$ac_try;;
39996 esac
39997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39998   (eval "$ac_compile") 2>conftest.er1
39999   ac_status=$?
40000   grep -v '^ *+' conftest.er1 >conftest.err
40001   rm -f conftest.er1
40002   cat conftest.err >&5
40003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004   (exit $ac_status); } &&
40005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40006   { (case "(($ac_try" in
40007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40008   *) ac_try_echo=$ac_try;;
40009 esac
40010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40011   (eval "$ac_try") 2>&5
40012   ac_status=$?
40013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014   (exit $ac_status); }; } &&
40015          { ac_try='test -s conftest.$ac_objext'
40016   { (case "(($ac_try" in
40017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40018   *) ac_try_echo=$ac_try;;
40019 esac
40020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40021   (eval "$ac_try") 2>&5
40022   ac_status=$?
40023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024   (exit $ac_status); }; }; then
40025   ac_lo=0 ac_mid=0
40026   while :; do
40027     cat >conftest.$ac_ext <<_ACEOF
40028 /* confdefs.h.  */
40029 _ACEOF
40030 cat confdefs.h >>conftest.$ac_ext
40031 cat >>conftest.$ac_ext <<_ACEOF
40032 /* end confdefs.h.  */
40033 $ac_includes_default
40034                    typedef long ac__type_sizeof_;
40035 int
40036 main ()
40037 {
40038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40039 test_array [0] = 0
40040
40041   ;
40042   return 0;
40043 }
40044 _ACEOF
40045 rm -f conftest.$ac_objext
40046 if { (ac_try="$ac_compile"
40047 case "(($ac_try" in
40048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40049   *) ac_try_echo=$ac_try;;
40050 esac
40051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40052   (eval "$ac_compile") 2>conftest.er1
40053   ac_status=$?
40054   grep -v '^ *+' conftest.er1 >conftest.err
40055   rm -f conftest.er1
40056   cat conftest.err >&5
40057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058   (exit $ac_status); } &&
40059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40060   { (case "(($ac_try" in
40061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40062   *) ac_try_echo=$ac_try;;
40063 esac
40064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40065   (eval "$ac_try") 2>&5
40066   ac_status=$?
40067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068   (exit $ac_status); }; } &&
40069          { ac_try='test -s conftest.$ac_objext'
40070   { (case "(($ac_try" in
40071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40072   *) ac_try_echo=$ac_try;;
40073 esac
40074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40075   (eval "$ac_try") 2>&5
40076   ac_status=$?
40077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078   (exit $ac_status); }; }; then
40079   ac_hi=$ac_mid; break
40080 else
40081   echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40083
40084         ac_lo=`expr $ac_mid + 1`
40085                         if test $ac_lo -le $ac_mid; then
40086                           ac_lo= ac_hi=
40087                           break
40088                         fi
40089                         ac_mid=`expr 2 '*' $ac_mid + 1`
40090 fi
40091
40092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40093   done
40094 else
40095   echo "$as_me: failed program was:" >&5
40096 sed 's/^/| /' conftest.$ac_ext >&5
40097
40098         cat >conftest.$ac_ext <<_ACEOF
40099 /* confdefs.h.  */
40100 _ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h.  */
40104 $ac_includes_default
40105                    typedef long ac__type_sizeof_;
40106 int
40107 main ()
40108 {
40109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
40110 test_array [0] = 0
40111
40112   ;
40113   return 0;
40114 }
40115 _ACEOF
40116 rm -f conftest.$ac_objext
40117 if { (ac_try="$ac_compile"
40118 case "(($ac_try" in
40119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40120   *) ac_try_echo=$ac_try;;
40121 esac
40122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40123   (eval "$ac_compile") 2>conftest.er1
40124   ac_status=$?
40125   grep -v '^ *+' conftest.er1 >conftest.err
40126   rm -f conftest.er1
40127   cat conftest.err >&5
40128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129   (exit $ac_status); } &&
40130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40131   { (case "(($ac_try" in
40132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40133   *) ac_try_echo=$ac_try;;
40134 esac
40135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40136   (eval "$ac_try") 2>&5
40137   ac_status=$?
40138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139   (exit $ac_status); }; } &&
40140          { ac_try='test -s conftest.$ac_objext'
40141   { (case "(($ac_try" in
40142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143   *) ac_try_echo=$ac_try;;
40144 esac
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146   (eval "$ac_try") 2>&5
40147   ac_status=$?
40148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149   (exit $ac_status); }; }; then
40150   ac_hi=-1 ac_mid=-1
40151   while :; do
40152     cat >conftest.$ac_ext <<_ACEOF
40153 /* confdefs.h.  */
40154 _ACEOF
40155 cat confdefs.h >>conftest.$ac_ext
40156 cat >>conftest.$ac_ext <<_ACEOF
40157 /* end confdefs.h.  */
40158 $ac_includes_default
40159                    typedef long ac__type_sizeof_;
40160 int
40161 main ()
40162 {
40163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
40164 test_array [0] = 0
40165
40166   ;
40167   return 0;
40168 }
40169 _ACEOF
40170 rm -f conftest.$ac_objext
40171 if { (ac_try="$ac_compile"
40172 case "(($ac_try" in
40173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40174   *) ac_try_echo=$ac_try;;
40175 esac
40176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40177   (eval "$ac_compile") 2>conftest.er1
40178   ac_status=$?
40179   grep -v '^ *+' conftest.er1 >conftest.err
40180   rm -f conftest.er1
40181   cat conftest.err >&5
40182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183   (exit $ac_status); } &&
40184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40185   { (case "(($ac_try" in
40186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40187   *) ac_try_echo=$ac_try;;
40188 esac
40189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40190   (eval "$ac_try") 2>&5
40191   ac_status=$?
40192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193   (exit $ac_status); }; } &&
40194          { ac_try='test -s conftest.$ac_objext'
40195   { (case "(($ac_try" in
40196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40197   *) ac_try_echo=$ac_try;;
40198 esac
40199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40200   (eval "$ac_try") 2>&5
40201   ac_status=$?
40202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203   (exit $ac_status); }; }; then
40204   ac_lo=$ac_mid; break
40205 else
40206   echo "$as_me: failed program was:" >&5
40207 sed 's/^/| /' conftest.$ac_ext >&5
40208
40209         ac_hi=`expr '(' $ac_mid ')' - 1`
40210                         if test $ac_mid -le $ac_hi; then
40211                           ac_lo= ac_hi=
40212                           break
40213                         fi
40214                         ac_mid=`expr 2 '*' $ac_mid`
40215 fi
40216
40217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40218   done
40219 else
40220   echo "$as_me: failed program was:" >&5
40221 sed 's/^/| /' conftest.$ac_ext >&5
40222
40223         ac_lo= ac_hi=
40224 fi
40225
40226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40227 fi
40228
40229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40230 # Binary search between lo and hi bounds.
40231 while test "x$ac_lo" != "x$ac_hi"; do
40232   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40233   cat >conftest.$ac_ext <<_ACEOF
40234 /* confdefs.h.  */
40235 _ACEOF
40236 cat confdefs.h >>conftest.$ac_ext
40237 cat >>conftest.$ac_ext <<_ACEOF
40238 /* end confdefs.h.  */
40239 $ac_includes_default
40240                    typedef long ac__type_sizeof_;
40241 int
40242 main ()
40243 {
40244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40245 test_array [0] = 0
40246
40247   ;
40248   return 0;
40249 }
40250 _ACEOF
40251 rm -f conftest.$ac_objext
40252 if { (ac_try="$ac_compile"
40253 case "(($ac_try" in
40254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40255   *) ac_try_echo=$ac_try;;
40256 esac
40257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40258   (eval "$ac_compile") 2>conftest.er1
40259   ac_status=$?
40260   grep -v '^ *+' conftest.er1 >conftest.err
40261   rm -f conftest.er1
40262   cat conftest.err >&5
40263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264   (exit $ac_status); } &&
40265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40266   { (case "(($ac_try" in
40267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40268   *) ac_try_echo=$ac_try;;
40269 esac
40270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40271   (eval "$ac_try") 2>&5
40272   ac_status=$?
40273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274   (exit $ac_status); }; } &&
40275          { ac_try='test -s conftest.$ac_objext'
40276   { (case "(($ac_try" in
40277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40278   *) ac_try_echo=$ac_try;;
40279 esac
40280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40281   (eval "$ac_try") 2>&5
40282   ac_status=$?
40283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284   (exit $ac_status); }; }; then
40285   ac_hi=$ac_mid
40286 else
40287   echo "$as_me: failed program was:" >&5
40288 sed 's/^/| /' conftest.$ac_ext >&5
40289
40290         ac_lo=`expr '(' $ac_mid ')' + 1`
40291 fi
40292
40293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40294 done
40295 case $ac_lo in
40296 ?*) ac_cv_sizeof_long=$ac_lo;;
40297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
40298 See \`config.log' for more details." >&5
40299 echo "$as_me: error: cannot compute sizeof (long)
40300 See \`config.log' for more details." >&2;}
40301    { (exit 77); exit 77; }; } ;;
40302 esac
40303 else
40304   cat >conftest.$ac_ext <<_ACEOF
40305 /* confdefs.h.  */
40306 _ACEOF
40307 cat confdefs.h >>conftest.$ac_ext
40308 cat >>conftest.$ac_ext <<_ACEOF
40309 /* end confdefs.h.  */
40310 $ac_includes_default
40311                    typedef long ac__type_sizeof_;
40312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
40313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
40314 #include <stdio.h>
40315 #include <stdlib.h>
40316 int
40317 main ()
40318 {
40319
40320   FILE *f = fopen ("conftest.val", "w");
40321   if (! f)
40322     return 1;
40323   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
40324     {
40325       long int i = longval ();
40326       if (i != ((long int) (sizeof (ac__type_sizeof_))))
40327         return 1;
40328       fprintf (f, "%ld\n", i);
40329     }
40330   else
40331     {
40332       unsigned long int i = ulongval ();
40333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
40334         return 1;
40335       fprintf (f, "%lu\n", i);
40336     }
40337   return ferror (f) || fclose (f) != 0;
40338
40339   ;
40340   return 0;
40341 }
40342 _ACEOF
40343 rm -f conftest$ac_exeext
40344 if { (ac_try="$ac_link"
40345 case "(($ac_try" in
40346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40347   *) ac_try_echo=$ac_try;;
40348 esac
40349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40350   (eval "$ac_link") 2>&5
40351   ac_status=$?
40352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40354   { (case "(($ac_try" in
40355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40356   *) ac_try_echo=$ac_try;;
40357 esac
40358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40359   (eval "$ac_try") 2>&5
40360   ac_status=$?
40361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40362   (exit $ac_status); }; }; then
40363   ac_cv_sizeof_long=`cat conftest.val`
40364 else
40365   echo "$as_me: program exited with status $ac_status" >&5
40366 echo "$as_me: failed program was:" >&5
40367 sed 's/^/| /' conftest.$ac_ext >&5
40368
40369 ( exit $ac_status )
40370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
40371 See \`config.log' for more details." >&5
40372 echo "$as_me: error: cannot compute sizeof (long)
40373 See \`config.log' for more details." >&2;}
40374    { (exit 77); exit 77; }; }
40375 fi
40376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40377 fi
40378 rm -f conftest.val
40379 else
40380   ac_cv_sizeof_long=0
40381 fi
40382 fi
40383 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
40384 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
40385 cat >>confdefs.h <<_ACEOF
40386 #define SIZEOF_LONG $ac_cv_sizeof_long
40387 _ACEOF
40388
40389
40390 { echo "$as_me:$LINENO: checking for long long" >&5
40391 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
40392 if test "${ac_cv_type_long_long+set}" = set; then
40393   echo $ECHO_N "(cached) $ECHO_C" >&6
40394 else
40395   cat >conftest.$ac_ext <<_ACEOF
40396 /* confdefs.h.  */
40397 _ACEOF
40398 cat confdefs.h >>conftest.$ac_ext
40399 cat >>conftest.$ac_ext <<_ACEOF
40400 /* end confdefs.h.  */
40401 $ac_includes_default
40402 typedef long long ac__type_new_;
40403 int
40404 main ()
40405 {
40406 if ((ac__type_new_ *) 0)
40407   return 0;
40408 if (sizeof (ac__type_new_))
40409   return 0;
40410   ;
40411   return 0;
40412 }
40413 _ACEOF
40414 rm -f conftest.$ac_objext
40415 if { (ac_try="$ac_compile"
40416 case "(($ac_try" in
40417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40418   *) ac_try_echo=$ac_try;;
40419 esac
40420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40421   (eval "$ac_compile") 2>conftest.er1
40422   ac_status=$?
40423   grep -v '^ *+' conftest.er1 >conftest.err
40424   rm -f conftest.er1
40425   cat conftest.err >&5
40426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427   (exit $ac_status); } &&
40428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40429   { (case "(($ac_try" in
40430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40431   *) ac_try_echo=$ac_try;;
40432 esac
40433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40434   (eval "$ac_try") 2>&5
40435   ac_status=$?
40436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40437   (exit $ac_status); }; } &&
40438          { ac_try='test -s conftest.$ac_objext'
40439   { (case "(($ac_try" in
40440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40441   *) ac_try_echo=$ac_try;;
40442 esac
40443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40444   (eval "$ac_try") 2>&5
40445   ac_status=$?
40446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447   (exit $ac_status); }; }; then
40448   ac_cv_type_long_long=yes
40449 else
40450   echo "$as_me: failed program was:" >&5
40451 sed 's/^/| /' conftest.$ac_ext >&5
40452
40453         ac_cv_type_long_long=no
40454 fi
40455
40456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40457 fi
40458 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
40459 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
40460
40461 { echo "$as_me:$LINENO: checking size of long long" >&5
40462 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
40463 if test "${ac_cv_sizeof_long_long+set}" = set; then
40464   echo $ECHO_N "(cached) $ECHO_C" >&6
40465 else
40466   if test "$ac_cv_type_long_long" = yes; then
40467   # The cast to long int works around a bug in the HP C Compiler
40468   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40469   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40470   # This bug is HP SR number 8606223364.
40471   if test "$cross_compiling" = yes; then
40472   # Depending upon the size, compute the lo and hi bounds.
40473 cat >conftest.$ac_ext <<_ACEOF
40474 /* confdefs.h.  */
40475 _ACEOF
40476 cat confdefs.h >>conftest.$ac_ext
40477 cat >>conftest.$ac_ext <<_ACEOF
40478 /* end confdefs.h.  */
40479 $ac_includes_default
40480                    typedef long long ac__type_sizeof_;
40481 int
40482 main ()
40483 {
40484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
40485 test_array [0] = 0
40486
40487   ;
40488   return 0;
40489 }
40490 _ACEOF
40491 rm -f conftest.$ac_objext
40492 if { (ac_try="$ac_compile"
40493 case "(($ac_try" in
40494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40495   *) ac_try_echo=$ac_try;;
40496 esac
40497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40498   (eval "$ac_compile") 2>conftest.er1
40499   ac_status=$?
40500   grep -v '^ *+' conftest.er1 >conftest.err
40501   rm -f conftest.er1
40502   cat conftest.err >&5
40503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504   (exit $ac_status); } &&
40505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40506   { (case "(($ac_try" in
40507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40508   *) ac_try_echo=$ac_try;;
40509 esac
40510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40511   (eval "$ac_try") 2>&5
40512   ac_status=$?
40513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514   (exit $ac_status); }; } &&
40515          { ac_try='test -s conftest.$ac_objext'
40516   { (case "(($ac_try" in
40517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40518   *) ac_try_echo=$ac_try;;
40519 esac
40520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40521   (eval "$ac_try") 2>&5
40522   ac_status=$?
40523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524   (exit $ac_status); }; }; then
40525   ac_lo=0 ac_mid=0
40526   while :; do
40527     cat >conftest.$ac_ext <<_ACEOF
40528 /* confdefs.h.  */
40529 _ACEOF
40530 cat confdefs.h >>conftest.$ac_ext
40531 cat >>conftest.$ac_ext <<_ACEOF
40532 /* end confdefs.h.  */
40533 $ac_includes_default
40534                    typedef long long ac__type_sizeof_;
40535 int
40536 main ()
40537 {
40538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40539 test_array [0] = 0
40540
40541   ;
40542   return 0;
40543 }
40544 _ACEOF
40545 rm -f conftest.$ac_objext
40546 if { (ac_try="$ac_compile"
40547 case "(($ac_try" in
40548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40549   *) ac_try_echo=$ac_try;;
40550 esac
40551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40552   (eval "$ac_compile") 2>conftest.er1
40553   ac_status=$?
40554   grep -v '^ *+' conftest.er1 >conftest.err
40555   rm -f conftest.er1
40556   cat conftest.err >&5
40557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558   (exit $ac_status); } &&
40559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40560   { (case "(($ac_try" in
40561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40562   *) ac_try_echo=$ac_try;;
40563 esac
40564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40565   (eval "$ac_try") 2>&5
40566   ac_status=$?
40567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568   (exit $ac_status); }; } &&
40569          { ac_try='test -s conftest.$ac_objext'
40570   { (case "(($ac_try" in
40571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40572   *) ac_try_echo=$ac_try;;
40573 esac
40574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40575   (eval "$ac_try") 2>&5
40576   ac_status=$?
40577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578   (exit $ac_status); }; }; then
40579   ac_hi=$ac_mid; break
40580 else
40581   echo "$as_me: failed program was:" >&5
40582 sed 's/^/| /' conftest.$ac_ext >&5
40583
40584         ac_lo=`expr $ac_mid + 1`
40585                         if test $ac_lo -le $ac_mid; then
40586                           ac_lo= ac_hi=
40587                           break
40588                         fi
40589                         ac_mid=`expr 2 '*' $ac_mid + 1`
40590 fi
40591
40592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40593   done
40594 else
40595   echo "$as_me: failed program was:" >&5
40596 sed 's/^/| /' conftest.$ac_ext >&5
40597
40598         cat >conftest.$ac_ext <<_ACEOF
40599 /* confdefs.h.  */
40600 _ACEOF
40601 cat confdefs.h >>conftest.$ac_ext
40602 cat >>conftest.$ac_ext <<_ACEOF
40603 /* end confdefs.h.  */
40604 $ac_includes_default
40605                    typedef long long ac__type_sizeof_;
40606 int
40607 main ()
40608 {
40609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
40610 test_array [0] = 0
40611
40612   ;
40613   return 0;
40614 }
40615 _ACEOF
40616 rm -f conftest.$ac_objext
40617 if { (ac_try="$ac_compile"
40618 case "(($ac_try" in
40619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40620   *) ac_try_echo=$ac_try;;
40621 esac
40622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40623   (eval "$ac_compile") 2>conftest.er1
40624   ac_status=$?
40625   grep -v '^ *+' conftest.er1 >conftest.err
40626   rm -f conftest.er1
40627   cat conftest.err >&5
40628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40629   (exit $ac_status); } &&
40630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40631   { (case "(($ac_try" in
40632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40633   *) ac_try_echo=$ac_try;;
40634 esac
40635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40636   (eval "$ac_try") 2>&5
40637   ac_status=$?
40638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639   (exit $ac_status); }; } &&
40640          { ac_try='test -s conftest.$ac_objext'
40641   { (case "(($ac_try" in
40642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40643   *) ac_try_echo=$ac_try;;
40644 esac
40645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40646   (eval "$ac_try") 2>&5
40647   ac_status=$?
40648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649   (exit $ac_status); }; }; then
40650   ac_hi=-1 ac_mid=-1
40651   while :; do
40652     cat >conftest.$ac_ext <<_ACEOF
40653 /* confdefs.h.  */
40654 _ACEOF
40655 cat confdefs.h >>conftest.$ac_ext
40656 cat >>conftest.$ac_ext <<_ACEOF
40657 /* end confdefs.h.  */
40658 $ac_includes_default
40659                    typedef long long ac__type_sizeof_;
40660 int
40661 main ()
40662 {
40663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
40664 test_array [0] = 0
40665
40666   ;
40667   return 0;
40668 }
40669 _ACEOF
40670 rm -f conftest.$ac_objext
40671 if { (ac_try="$ac_compile"
40672 case "(($ac_try" in
40673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40674   *) ac_try_echo=$ac_try;;
40675 esac
40676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40677   (eval "$ac_compile") 2>conftest.er1
40678   ac_status=$?
40679   grep -v '^ *+' conftest.er1 >conftest.err
40680   rm -f conftest.er1
40681   cat conftest.err >&5
40682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40683   (exit $ac_status); } &&
40684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40685   { (case "(($ac_try" in
40686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40687   *) ac_try_echo=$ac_try;;
40688 esac
40689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40690   (eval "$ac_try") 2>&5
40691   ac_status=$?
40692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40693   (exit $ac_status); }; } &&
40694          { ac_try='test -s conftest.$ac_objext'
40695   { (case "(($ac_try" in
40696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40697   *) ac_try_echo=$ac_try;;
40698 esac
40699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40700   (eval "$ac_try") 2>&5
40701   ac_status=$?
40702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703   (exit $ac_status); }; }; then
40704   ac_lo=$ac_mid; break
40705 else
40706   echo "$as_me: failed program was:" >&5
40707 sed 's/^/| /' conftest.$ac_ext >&5
40708
40709         ac_hi=`expr '(' $ac_mid ')' - 1`
40710                         if test $ac_mid -le $ac_hi; then
40711                           ac_lo= ac_hi=
40712                           break
40713                         fi
40714                         ac_mid=`expr 2 '*' $ac_mid`
40715 fi
40716
40717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40718   done
40719 else
40720   echo "$as_me: failed program was:" >&5
40721 sed 's/^/| /' conftest.$ac_ext >&5
40722
40723         ac_lo= ac_hi=
40724 fi
40725
40726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40727 fi
40728
40729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40730 # Binary search between lo and hi bounds.
40731 while test "x$ac_lo" != "x$ac_hi"; do
40732   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40733   cat >conftest.$ac_ext <<_ACEOF
40734 /* confdefs.h.  */
40735 _ACEOF
40736 cat confdefs.h >>conftest.$ac_ext
40737 cat >>conftest.$ac_ext <<_ACEOF
40738 /* end confdefs.h.  */
40739 $ac_includes_default
40740                    typedef long long ac__type_sizeof_;
40741 int
40742 main ()
40743 {
40744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40745 test_array [0] = 0
40746
40747   ;
40748   return 0;
40749 }
40750 _ACEOF
40751 rm -f conftest.$ac_objext
40752 if { (ac_try="$ac_compile"
40753 case "(($ac_try" in
40754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40755   *) ac_try_echo=$ac_try;;
40756 esac
40757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40758   (eval "$ac_compile") 2>conftest.er1
40759   ac_status=$?
40760   grep -v '^ *+' conftest.er1 >conftest.err
40761   rm -f conftest.er1
40762   cat conftest.err >&5
40763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764   (exit $ac_status); } &&
40765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40766   { (case "(($ac_try" in
40767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40768   *) ac_try_echo=$ac_try;;
40769 esac
40770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40771   (eval "$ac_try") 2>&5
40772   ac_status=$?
40773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774   (exit $ac_status); }; } &&
40775          { ac_try='test -s conftest.$ac_objext'
40776   { (case "(($ac_try" in
40777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40778   *) ac_try_echo=$ac_try;;
40779 esac
40780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40781   (eval "$ac_try") 2>&5
40782   ac_status=$?
40783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784   (exit $ac_status); }; }; then
40785   ac_hi=$ac_mid
40786 else
40787   echo "$as_me: failed program was:" >&5
40788 sed 's/^/| /' conftest.$ac_ext >&5
40789
40790         ac_lo=`expr '(' $ac_mid ')' + 1`
40791 fi
40792
40793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40794 done
40795 case $ac_lo in
40796 ?*) ac_cv_sizeof_long_long=$ac_lo;;
40797 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
40798 See \`config.log' for more details." >&5
40799 echo "$as_me: error: cannot compute sizeof (long long)
40800 See \`config.log' for more details." >&2;}
40801    { (exit 77); exit 77; }; } ;;
40802 esac
40803 else
40804   cat >conftest.$ac_ext <<_ACEOF
40805 /* confdefs.h.  */
40806 _ACEOF
40807 cat confdefs.h >>conftest.$ac_ext
40808 cat >>conftest.$ac_ext <<_ACEOF
40809 /* end confdefs.h.  */
40810 $ac_includes_default
40811                    typedef long long ac__type_sizeof_;
40812 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
40813 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
40814 #include <stdio.h>
40815 #include <stdlib.h>
40816 int
40817 main ()
40818 {
40819
40820   FILE *f = fopen ("conftest.val", "w");
40821   if (! f)
40822     return 1;
40823   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
40824     {
40825       long int i = longval ();
40826       if (i != ((long int) (sizeof (ac__type_sizeof_))))
40827         return 1;
40828       fprintf (f, "%ld\n", i);
40829     }
40830   else
40831     {
40832       unsigned long int i = ulongval ();
40833       if (i != ((long int) (sizeof (ac__type_sizeof_))))
40834         return 1;
40835       fprintf (f, "%lu\n", i);
40836     }
40837   return ferror (f) || fclose (f) != 0;
40838
40839   ;
40840   return 0;
40841 }
40842 _ACEOF
40843 rm -f conftest$ac_exeext
40844 if { (ac_try="$ac_link"
40845 case "(($ac_try" in
40846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40847   *) ac_try_echo=$ac_try;;
40848 esac
40849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40850   (eval "$ac_link") 2>&5
40851   ac_status=$?
40852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40854   { (case "(($ac_try" in
40855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40856   *) ac_try_echo=$ac_try;;
40857 esac
40858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40859   (eval "$ac_try") 2>&5
40860   ac_status=$?
40861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862   (exit $ac_status); }; }; then
40863   ac_cv_sizeof_long_long=`cat conftest.val`
40864 else
40865   echo "$as_me: program exited with status $ac_status" >&5
40866 echo "$as_me: failed program was:" >&5
40867 sed 's/^/| /' conftest.$ac_ext >&5
40868
40869 ( exit $ac_status )
40870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
40871 See \`config.log' for more details." >&5
40872 echo "$as_me: error: cannot compute sizeof (long long)
40873 See \`config.log' for more details." >&2;}
40874    { (exit 77); exit 77; }; }
40875 fi
40876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40877 fi
40878 rm -f conftest.val
40879 else
40880   ac_cv_sizeof_long_long=0
40881 fi
40882 fi
40883 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
40884 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
40885 cat >>confdefs.h <<_ACEOF
40886 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
40887 _ACEOF
40888
40889
40890 { echo "$as_me:$LINENO: checking for wchar_t" >&5
40891 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
40892 if test "${ac_cv_type_wchar_t+set}" = set; then
40893   echo $ECHO_N "(cached) $ECHO_C" >&6
40894 else
40895   cat >conftest.$ac_ext <<_ACEOF
40896 /* confdefs.h.  */
40897 _ACEOF
40898 cat confdefs.h >>conftest.$ac_ext
40899 cat >>conftest.$ac_ext <<_ACEOF
40900 /* end confdefs.h.  */
40901 $ac_includes_default
40902 typedef wchar_t ac__type_new_;
40903 int
40904 main ()
40905 {
40906 if ((ac__type_new_ *) 0)
40907   return 0;
40908 if (sizeof (ac__type_new_))
40909   return 0;
40910   ;
40911   return 0;
40912 }
40913 _ACEOF
40914 rm -f conftest.$ac_objext
40915 if { (ac_try="$ac_compile"
40916 case "(($ac_try" in
40917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40918   *) ac_try_echo=$ac_try;;
40919 esac
40920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40921   (eval "$ac_compile") 2>conftest.er1
40922   ac_status=$?
40923   grep -v '^ *+' conftest.er1 >conftest.err
40924   rm -f conftest.er1
40925   cat conftest.err >&5
40926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40927   (exit $ac_status); } &&
40928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40929   { (case "(($ac_try" in
40930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40931   *) ac_try_echo=$ac_try;;
40932 esac
40933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40934   (eval "$ac_try") 2>&5
40935   ac_status=$?
40936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40937   (exit $ac_status); }; } &&
40938          { ac_try='test -s conftest.$ac_objext'
40939   { (case "(($ac_try" in
40940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40941   *) ac_try_echo=$ac_try;;
40942 esac
40943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40944   (eval "$ac_try") 2>&5
40945   ac_status=$?
40946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947   (exit $ac_status); }; }; then
40948   ac_cv_type_wchar_t=yes
40949 else
40950   echo "$as_me: failed program was:" >&5
40951 sed 's/^/| /' conftest.$ac_ext >&5
40952
40953         ac_cv_type_wchar_t=no
40954 fi
40955
40956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40957 fi
40958 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
40959 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
40960
40961 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
40962 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
40963 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
40964   echo $ECHO_N "(cached) $ECHO_C" >&6
40965 else
40966   if test "$ac_cv_type_wchar_t" = yes; then
40967   # The cast to long int works around a bug in the HP C Compiler
40968   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40969   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40970   # This bug is HP SR number 8606223364.
40971   if test "$cross_compiling" = yes; then
40972   # Depending upon the size, compute the lo and hi bounds.
40973 cat >conftest.$ac_ext <<_ACEOF
40974 /* confdefs.h.  */
40975 _ACEOF
40976 cat confdefs.h >>conftest.$ac_ext
40977 cat >>conftest.$ac_ext <<_ACEOF
40978 /* end confdefs.h.  */
40979 $ac_includes_default
40980                    typedef wchar_t ac__type_sizeof_;
40981 int
40982 main ()
40983 {
40984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
40985 test_array [0] = 0
40986
40987   ;
40988   return 0;
40989 }
40990 _ACEOF
40991 rm -f conftest.$ac_objext
40992 if { (ac_try="$ac_compile"
40993 case "(($ac_try" in
40994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40995   *) ac_try_echo=$ac_try;;
40996 esac
40997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40998   (eval "$ac_compile") 2>conftest.er1
40999   ac_status=$?
41000   grep -v '^ *+' conftest.er1 >conftest.err
41001   rm -f conftest.er1
41002   cat conftest.err >&5
41003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004   (exit $ac_status); } &&
41005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41006   { (case "(($ac_try" in
41007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41008   *) ac_try_echo=$ac_try;;
41009 esac
41010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41011   (eval "$ac_try") 2>&5
41012   ac_status=$?
41013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014   (exit $ac_status); }; } &&
41015          { ac_try='test -s conftest.$ac_objext'
41016   { (case "(($ac_try" in
41017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41018   *) ac_try_echo=$ac_try;;
41019 esac
41020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41021   (eval "$ac_try") 2>&5
41022   ac_status=$?
41023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41024   (exit $ac_status); }; }; then
41025   ac_lo=0 ac_mid=0
41026   while :; do
41027     cat >conftest.$ac_ext <<_ACEOF
41028 /* confdefs.h.  */
41029 _ACEOF
41030 cat confdefs.h >>conftest.$ac_ext
41031 cat >>conftest.$ac_ext <<_ACEOF
41032 /* end confdefs.h.  */
41033 $ac_includes_default
41034                    typedef wchar_t ac__type_sizeof_;
41035 int
41036 main ()
41037 {
41038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
41039 test_array [0] = 0
41040
41041   ;
41042   return 0;
41043 }
41044 _ACEOF
41045 rm -f conftest.$ac_objext
41046 if { (ac_try="$ac_compile"
41047 case "(($ac_try" in
41048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41049   *) ac_try_echo=$ac_try;;
41050 esac
41051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41052   (eval "$ac_compile") 2>conftest.er1
41053   ac_status=$?
41054   grep -v '^ *+' conftest.er1 >conftest.err
41055   rm -f conftest.er1
41056   cat conftest.err >&5
41057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41058   (exit $ac_status); } &&
41059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41060   { (case "(($ac_try" in
41061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41062   *) ac_try_echo=$ac_try;;
41063 esac
41064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41065   (eval "$ac_try") 2>&5
41066   ac_status=$?
41067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068   (exit $ac_status); }; } &&
41069          { ac_try='test -s conftest.$ac_objext'
41070   { (case "(($ac_try" in
41071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41072   *) ac_try_echo=$ac_try;;
41073 esac
41074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41075   (eval "$ac_try") 2>&5
41076   ac_status=$?
41077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078   (exit $ac_status); }; }; then
41079   ac_hi=$ac_mid; break
41080 else
41081   echo "$as_me: failed program was:" >&5
41082 sed 's/^/| /' conftest.$ac_ext >&5
41083
41084         ac_lo=`expr $ac_mid + 1`
41085                         if test $ac_lo -le $ac_mid; then
41086                           ac_lo= ac_hi=
41087                           break
41088                         fi
41089                         ac_mid=`expr 2 '*' $ac_mid + 1`
41090 fi
41091
41092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41093   done
41094 else
41095   echo "$as_me: failed program was:" >&5
41096 sed 's/^/| /' conftest.$ac_ext >&5
41097
41098         cat >conftest.$ac_ext <<_ACEOF
41099 /* confdefs.h.  */
41100 _ACEOF
41101 cat confdefs.h >>conftest.$ac_ext
41102 cat >>conftest.$ac_ext <<_ACEOF
41103 /* end confdefs.h.  */
41104 $ac_includes_default
41105                    typedef wchar_t ac__type_sizeof_;
41106 int
41107 main ()
41108 {
41109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
41110 test_array [0] = 0
41111
41112   ;
41113   return 0;
41114 }
41115 _ACEOF
41116 rm -f conftest.$ac_objext
41117 if { (ac_try="$ac_compile"
41118 case "(($ac_try" in
41119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41120   *) ac_try_echo=$ac_try;;
41121 esac
41122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41123   (eval "$ac_compile") 2>conftest.er1
41124   ac_status=$?
41125   grep -v '^ *+' conftest.er1 >conftest.err
41126   rm -f conftest.er1
41127   cat conftest.err >&5
41128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41129   (exit $ac_status); } &&
41130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41131   { (case "(($ac_try" in
41132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41133   *) ac_try_echo=$ac_try;;
41134 esac
41135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41136   (eval "$ac_try") 2>&5
41137   ac_status=$?
41138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139   (exit $ac_status); }; } &&
41140          { ac_try='test -s conftest.$ac_objext'
41141   { (case "(($ac_try" in
41142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41143   *) ac_try_echo=$ac_try;;
41144 esac
41145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41146   (eval "$ac_try") 2>&5
41147   ac_status=$?
41148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149   (exit $ac_status); }; }; then
41150   ac_hi=-1 ac_mid=-1
41151   while :; do
41152     cat >conftest.$ac_ext <<_ACEOF
41153 /* confdefs.h.  */
41154 _ACEOF
41155 cat confdefs.h >>conftest.$ac_ext
41156 cat >>conftest.$ac_ext <<_ACEOF
41157 /* end confdefs.h.  */
41158 $ac_includes_default
41159                    typedef wchar_t ac__type_sizeof_;
41160 int
41161 main ()
41162 {
41163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
41164 test_array [0] = 0
41165
41166   ;
41167   return 0;
41168 }
41169 _ACEOF
41170 rm -f conftest.$ac_objext
41171 if { (ac_try="$ac_compile"
41172 case "(($ac_try" in
41173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41174   *) ac_try_echo=$ac_try;;
41175 esac
41176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41177   (eval "$ac_compile") 2>conftest.er1
41178   ac_status=$?
41179   grep -v '^ *+' conftest.er1 >conftest.err
41180   rm -f conftest.er1
41181   cat conftest.err >&5
41182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41183   (exit $ac_status); } &&
41184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41185   { (case "(($ac_try" in
41186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41187   *) ac_try_echo=$ac_try;;
41188 esac
41189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41190   (eval "$ac_try") 2>&5
41191   ac_status=$?
41192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41193   (exit $ac_status); }; } &&
41194          { ac_try='test -s conftest.$ac_objext'
41195   { (case "(($ac_try" in
41196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41197   *) ac_try_echo=$ac_try;;
41198 esac
41199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41200   (eval "$ac_try") 2>&5
41201   ac_status=$?
41202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203   (exit $ac_status); }; }; then
41204   ac_lo=$ac_mid; break
41205 else
41206   echo "$as_me: failed program was:" >&5
41207 sed 's/^/| /' conftest.$ac_ext >&5
41208
41209         ac_hi=`expr '(' $ac_mid ')' - 1`
41210                         if test $ac_mid -le $ac_hi; then
41211                           ac_lo= ac_hi=
41212                           break
41213                         fi
41214                         ac_mid=`expr 2 '*' $ac_mid`
41215 fi
41216
41217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41218   done
41219 else
41220   echo "$as_me: failed program was:" >&5
41221 sed 's/^/| /' conftest.$ac_ext >&5
41222
41223         ac_lo= ac_hi=
41224 fi
41225
41226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41227 fi
41228
41229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41230 # Binary search between lo and hi bounds.
41231 while test "x$ac_lo" != "x$ac_hi"; do
41232   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41233   cat >conftest.$ac_ext <<_ACEOF
41234 /* confdefs.h.  */
41235 _ACEOF
41236 cat confdefs.h >>conftest.$ac_ext
41237 cat >>conftest.$ac_ext <<_ACEOF
41238 /* end confdefs.h.  */
41239 $ac_includes_default
41240                    typedef wchar_t ac__type_sizeof_;
41241 int
41242 main ()
41243 {
41244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
41245 test_array [0] = 0
41246
41247   ;
41248   return 0;
41249 }
41250 _ACEOF
41251 rm -f conftest.$ac_objext
41252 if { (ac_try="$ac_compile"
41253 case "(($ac_try" in
41254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41255   *) ac_try_echo=$ac_try;;
41256 esac
41257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41258   (eval "$ac_compile") 2>conftest.er1
41259   ac_status=$?
41260   grep -v '^ *+' conftest.er1 >conftest.err
41261   rm -f conftest.er1
41262   cat conftest.err >&5
41263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264   (exit $ac_status); } &&
41265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41266   { (case "(($ac_try" in
41267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41268   *) ac_try_echo=$ac_try;;
41269 esac
41270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41271   (eval "$ac_try") 2>&5
41272   ac_status=$?
41273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274   (exit $ac_status); }; } &&
41275          { ac_try='test -s conftest.$ac_objext'
41276   { (case "(($ac_try" in
41277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41278   *) ac_try_echo=$ac_try;;
41279 esac
41280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41281   (eval "$ac_try") 2>&5
41282   ac_status=$?
41283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284   (exit $ac_status); }; }; then
41285   ac_hi=$ac_mid
41286 else
41287   echo "$as_me: failed program was:" >&5
41288 sed 's/^/| /' conftest.$ac_ext >&5
41289
41290         ac_lo=`expr '(' $ac_mid ')' + 1`
41291 fi
41292
41293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41294 done
41295 case $ac_lo in
41296 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
41298 See \`config.log' for more details." >&5
41299 echo "$as_me: error: cannot compute sizeof (wchar_t)
41300 See \`config.log' for more details." >&2;}
41301    { (exit 77); exit 77; }; } ;;
41302 esac
41303 else
41304   cat >conftest.$ac_ext <<_ACEOF
41305 /* confdefs.h.  */
41306 _ACEOF
41307 cat confdefs.h >>conftest.$ac_ext
41308 cat >>conftest.$ac_ext <<_ACEOF
41309 /* end confdefs.h.  */
41310 $ac_includes_default
41311                    typedef wchar_t ac__type_sizeof_;
41312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
41313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
41314 #include <stdio.h>
41315 #include <stdlib.h>
41316 int
41317 main ()
41318 {
41319
41320   FILE *f = fopen ("conftest.val", "w");
41321   if (! f)
41322     return 1;
41323   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
41324     {
41325       long int i = longval ();
41326       if (i != ((long int) (sizeof (ac__type_sizeof_))))
41327         return 1;
41328       fprintf (f, "%ld\n", i);
41329     }
41330   else
41331     {
41332       unsigned long int i = ulongval ();
41333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
41334         return 1;
41335       fprintf (f, "%lu\n", i);
41336     }
41337   return ferror (f) || fclose (f) != 0;
41338
41339   ;
41340   return 0;
41341 }
41342 _ACEOF
41343 rm -f conftest$ac_exeext
41344 if { (ac_try="$ac_link"
41345 case "(($ac_try" in
41346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41347   *) ac_try_echo=$ac_try;;
41348 esac
41349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41350   (eval "$ac_link") 2>&5
41351   ac_status=$?
41352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41354   { (case "(($ac_try" in
41355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41356   *) ac_try_echo=$ac_try;;
41357 esac
41358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41359   (eval "$ac_try") 2>&5
41360   ac_status=$?
41361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362   (exit $ac_status); }; }; then
41363   ac_cv_sizeof_wchar_t=`cat conftest.val`
41364 else
41365   echo "$as_me: program exited with status $ac_status" >&5
41366 echo "$as_me: failed program was:" >&5
41367 sed 's/^/| /' conftest.$ac_ext >&5
41368
41369 ( exit $ac_status )
41370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
41371 See \`config.log' for more details." >&5
41372 echo "$as_me: error: cannot compute sizeof (wchar_t)
41373 See \`config.log' for more details." >&2;}
41374    { (exit 77); exit 77; }; }
41375 fi
41376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41377 fi
41378 rm -f conftest.val
41379 else
41380   ac_cv_sizeof_wchar_t=0
41381 fi
41382 fi
41383 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41384 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
41385 cat >>confdefs.h <<_ACEOF
41386 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41387 _ACEOF
41388
41389
41390
41391 if test "$ac_cv_sizeof_int" -lt 4 ; then
41392         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41393 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41394
41395
41396 cat >>confdefs.h <<\_ACEOF
41397 #define LBER_INT_T long
41398 _ACEOF
41399
41400 else
41401
41402 cat >>confdefs.h <<\_ACEOF
41403 #define LBER_INT_T int
41404 _ACEOF
41405
41406 fi
41407
41408
41409 cat >>confdefs.h <<\_ACEOF
41410 #define LBER_LEN_T long
41411 _ACEOF
41412
41413
41414 cat >>confdefs.h <<\_ACEOF
41415 #define LBER_SOCKET_T int
41416 _ACEOF
41417
41418
41419 cat >>confdefs.h <<\_ACEOF
41420 #define LBER_TAG_T long
41421 _ACEOF
41422
41423
41424 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
41425         if test $ac_cv_sizeof_long_long -gt 4 ; then
41426                 ol_with_mp=longlong
41427
41428 cat >>confdefs.h <<\_ACEOF
41429 #define USE_MP_LONG_LONG 1
41430 _ACEOF
41431
41432         elif test $ol_with_mp = longlong ; then
41433                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
41434 echo "$as_me: error: long long unusable for multiple precision" >&2;}
41435    { (exit 1); exit 1; }; }
41436         fi
41437 fi
41438 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
41439         if test $ac_cv_sizeof_long -gt 4 ; then
41440                 ol_with_mp=long
41441
41442 cat >>confdefs.h <<\_ACEOF
41443 #define USE_MP_LONG 1
41444 _ACEOF
41445
41446         elif test $ol_with_mp = long ; then
41447                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
41448 echo "$as_me: error: long unusable for multiple precision" >&2;}
41449    { (exit 1); exit 1; }; }
41450         fi
41451 fi
41452 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
41453
41454 for ac_header in openssl/bn.h
41455 do
41456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41458   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41461   echo $ECHO_N "(cached) $ECHO_C" >&6
41462 fi
41463 ac_res=`eval echo '${'$as_ac_Header'}'`
41464                { echo "$as_me:$LINENO: result: $ac_res" >&5
41465 echo "${ECHO_T}$ac_res" >&6; }
41466 else
41467   # Is the header compilable?
41468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41470 cat >conftest.$ac_ext <<_ACEOF
41471 /* confdefs.h.  */
41472 _ACEOF
41473 cat confdefs.h >>conftest.$ac_ext
41474 cat >>conftest.$ac_ext <<_ACEOF
41475 /* end confdefs.h.  */
41476 $ac_includes_default
41477 #include <$ac_header>
41478 _ACEOF
41479 rm -f conftest.$ac_objext
41480 if { (ac_try="$ac_compile"
41481 case "(($ac_try" in
41482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41483   *) ac_try_echo=$ac_try;;
41484 esac
41485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41486   (eval "$ac_compile") 2>conftest.er1
41487   ac_status=$?
41488   grep -v '^ *+' conftest.er1 >conftest.err
41489   rm -f conftest.er1
41490   cat conftest.err >&5
41491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492   (exit $ac_status); } &&
41493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41494   { (case "(($ac_try" in
41495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41496   *) ac_try_echo=$ac_try;;
41497 esac
41498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41499   (eval "$ac_try") 2>&5
41500   ac_status=$?
41501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502   (exit $ac_status); }; } &&
41503          { ac_try='test -s conftest.$ac_objext'
41504   { (case "(($ac_try" in
41505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41506   *) ac_try_echo=$ac_try;;
41507 esac
41508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41509   (eval "$ac_try") 2>&5
41510   ac_status=$?
41511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41512   (exit $ac_status); }; }; then
41513   ac_header_compiler=yes
41514 else
41515   echo "$as_me: failed program was:" >&5
41516 sed 's/^/| /' conftest.$ac_ext >&5
41517
41518         ac_header_compiler=no
41519 fi
41520
41521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41523 echo "${ECHO_T}$ac_header_compiler" >&6; }
41524
41525 # Is the header present?
41526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41528 cat >conftest.$ac_ext <<_ACEOF
41529 /* confdefs.h.  */
41530 _ACEOF
41531 cat confdefs.h >>conftest.$ac_ext
41532 cat >>conftest.$ac_ext <<_ACEOF
41533 /* end confdefs.h.  */
41534 #include <$ac_header>
41535 _ACEOF
41536 if { (ac_try="$ac_cpp conftest.$ac_ext"
41537 case "(($ac_try" in
41538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41539   *) ac_try_echo=$ac_try;;
41540 esac
41541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41543   ac_status=$?
41544   grep -v '^ *+' conftest.er1 >conftest.err
41545   rm -f conftest.er1
41546   cat conftest.err >&5
41547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548   (exit $ac_status); } >/dev/null; then
41549   if test -s conftest.err; then
41550     ac_cpp_err=$ac_c_preproc_warn_flag
41551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41552   else
41553     ac_cpp_err=
41554   fi
41555 else
41556   ac_cpp_err=yes
41557 fi
41558 if test -z "$ac_cpp_err"; then
41559   ac_header_preproc=yes
41560 else
41561   echo "$as_me: failed program was:" >&5
41562 sed 's/^/| /' conftest.$ac_ext >&5
41563
41564   ac_header_preproc=no
41565 fi
41566
41567 rm -f conftest.err conftest.$ac_ext
41568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41569 echo "${ECHO_T}$ac_header_preproc" >&6; }
41570
41571 # So?  What about this header?
41572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41573   yes:no: )
41574     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41578     ac_header_preproc=yes
41579     ;;
41580   no:yes:* )
41581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41583     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41584 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41585     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41587     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41588 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41591     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41593     ( cat <<\_ASBOX
41594 ## --------------------------------------------- ##
41595 ## Report this to <http://www.openldap.org/its/> ##
41596 ## --------------------------------------------- ##
41597 _ASBOX
41598      ) | sed "s/^/$as_me: WARNING:     /" >&2
41599     ;;
41600 esac
41601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41604   echo $ECHO_N "(cached) $ECHO_C" >&6
41605 else
41606   eval "$as_ac_Header=\$ac_header_preproc"
41607 fi
41608 ac_res=`eval echo '${'$as_ac_Header'}'`
41609                { echo "$as_me:$LINENO: result: $ac_res" >&5
41610 echo "${ECHO_T}$ac_res" >&6; }
41611
41612 fi
41613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41614   cat >>confdefs.h <<_ACEOF
41615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41616 _ACEOF
41617
41618 fi
41619
41620 done
41621
41622
41623 for ac_header in openssl/crypto.h
41624 do
41625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41627   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41630   echo $ECHO_N "(cached) $ECHO_C" >&6
41631 fi
41632 ac_res=`eval echo '${'$as_ac_Header'}'`
41633                { echo "$as_me:$LINENO: result: $ac_res" >&5
41634 echo "${ECHO_T}$ac_res" >&6; }
41635 else
41636   # Is the header compilable?
41637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41639 cat >conftest.$ac_ext <<_ACEOF
41640 /* confdefs.h.  */
41641 _ACEOF
41642 cat confdefs.h >>conftest.$ac_ext
41643 cat >>conftest.$ac_ext <<_ACEOF
41644 /* end confdefs.h.  */
41645 $ac_includes_default
41646 #include <$ac_header>
41647 _ACEOF
41648 rm -f conftest.$ac_objext
41649 if { (ac_try="$ac_compile"
41650 case "(($ac_try" in
41651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41652   *) ac_try_echo=$ac_try;;
41653 esac
41654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41655   (eval "$ac_compile") 2>conftest.er1
41656   ac_status=$?
41657   grep -v '^ *+' conftest.er1 >conftest.err
41658   rm -f conftest.er1
41659   cat conftest.err >&5
41660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41661   (exit $ac_status); } &&
41662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41663   { (case "(($ac_try" in
41664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41665   *) ac_try_echo=$ac_try;;
41666 esac
41667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41668   (eval "$ac_try") 2>&5
41669   ac_status=$?
41670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671   (exit $ac_status); }; } &&
41672          { ac_try='test -s conftest.$ac_objext'
41673   { (case "(($ac_try" in
41674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41675   *) ac_try_echo=$ac_try;;
41676 esac
41677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41678   (eval "$ac_try") 2>&5
41679   ac_status=$?
41680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41681   (exit $ac_status); }; }; then
41682   ac_header_compiler=yes
41683 else
41684   echo "$as_me: failed program was:" >&5
41685 sed 's/^/| /' conftest.$ac_ext >&5
41686
41687         ac_header_compiler=no
41688 fi
41689
41690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41692 echo "${ECHO_T}$ac_header_compiler" >&6; }
41693
41694 # Is the header present?
41695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41697 cat >conftest.$ac_ext <<_ACEOF
41698 /* confdefs.h.  */
41699 _ACEOF
41700 cat confdefs.h >>conftest.$ac_ext
41701 cat >>conftest.$ac_ext <<_ACEOF
41702 /* end confdefs.h.  */
41703 #include <$ac_header>
41704 _ACEOF
41705 if { (ac_try="$ac_cpp conftest.$ac_ext"
41706 case "(($ac_try" in
41707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41708   *) ac_try_echo=$ac_try;;
41709 esac
41710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41712   ac_status=$?
41713   grep -v '^ *+' conftest.er1 >conftest.err
41714   rm -f conftest.er1
41715   cat conftest.err >&5
41716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41717   (exit $ac_status); } >/dev/null; then
41718   if test -s conftest.err; then
41719     ac_cpp_err=$ac_c_preproc_warn_flag
41720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41721   else
41722     ac_cpp_err=
41723   fi
41724 else
41725   ac_cpp_err=yes
41726 fi
41727 if test -z "$ac_cpp_err"; then
41728   ac_header_preproc=yes
41729 else
41730   echo "$as_me: failed program was:" >&5
41731 sed 's/^/| /' conftest.$ac_ext >&5
41732
41733   ac_header_preproc=no
41734 fi
41735
41736 rm -f conftest.err conftest.$ac_ext
41737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41738 echo "${ECHO_T}$ac_header_preproc" >&6; }
41739
41740 # So?  What about this header?
41741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41742   yes:no: )
41743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41747     ac_header_preproc=yes
41748     ;;
41749   no:yes:* )
41750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41762     ( cat <<\_ASBOX
41763 ## --------------------------------------------- ##
41764 ## Report this to <http://www.openldap.org/its/> ##
41765 ## --------------------------------------------- ##
41766 _ASBOX
41767      ) | sed "s/^/$as_me: WARNING:     /" >&2
41768     ;;
41769 esac
41770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41773   echo $ECHO_N "(cached) $ECHO_C" >&6
41774 else
41775   eval "$as_ac_Header=\$ac_header_preproc"
41776 fi
41777 ac_res=`eval echo '${'$as_ac_Header'}'`
41778                { echo "$as_me:$LINENO: result: $ac_res" >&5
41779 echo "${ECHO_T}$ac_res" >&6; }
41780
41781 fi
41782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41783   cat >>confdefs.h <<_ACEOF
41784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41785 _ACEOF
41786
41787 fi
41788
41789 done
41790
41791         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
41792                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
41793                 test "$ol_with_tls" = "found" ; then
41794                 ol_with_mp=bignum
41795
41796 cat >>confdefs.h <<\_ACEOF
41797 #define USE_MP_BIGNUM 1
41798 _ACEOF
41799
41800         elif test $ol_with_mp = bignum ; then
41801                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
41802 echo "$as_me: error: bignum not available" >&2;}
41803    { (exit 1); exit 1; }; }
41804         fi
41805 fi
41806 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
41807
41808 for ac_header in gmp.h
41809 do
41810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41812   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41815   echo $ECHO_N "(cached) $ECHO_C" >&6
41816 fi
41817 ac_res=`eval echo '${'$as_ac_Header'}'`
41818                { echo "$as_me:$LINENO: result: $ac_res" >&5
41819 echo "${ECHO_T}$ac_res" >&6; }
41820 else
41821   # Is the header compilable?
41822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41824 cat >conftest.$ac_ext <<_ACEOF
41825 /* confdefs.h.  */
41826 _ACEOF
41827 cat confdefs.h >>conftest.$ac_ext
41828 cat >>conftest.$ac_ext <<_ACEOF
41829 /* end confdefs.h.  */
41830 $ac_includes_default
41831 #include <$ac_header>
41832 _ACEOF
41833 rm -f conftest.$ac_objext
41834 if { (ac_try="$ac_compile"
41835 case "(($ac_try" in
41836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41837   *) ac_try_echo=$ac_try;;
41838 esac
41839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41840   (eval "$ac_compile") 2>conftest.er1
41841   ac_status=$?
41842   grep -v '^ *+' conftest.er1 >conftest.err
41843   rm -f conftest.er1
41844   cat conftest.err >&5
41845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846   (exit $ac_status); } &&
41847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41848   { (case "(($ac_try" in
41849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41850   *) ac_try_echo=$ac_try;;
41851 esac
41852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41853   (eval "$ac_try") 2>&5
41854   ac_status=$?
41855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856   (exit $ac_status); }; } &&
41857          { ac_try='test -s conftest.$ac_objext'
41858   { (case "(($ac_try" in
41859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41860   *) ac_try_echo=$ac_try;;
41861 esac
41862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41863   (eval "$ac_try") 2>&5
41864   ac_status=$?
41865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41866   (exit $ac_status); }; }; then
41867   ac_header_compiler=yes
41868 else
41869   echo "$as_me: failed program was:" >&5
41870 sed 's/^/| /' conftest.$ac_ext >&5
41871
41872         ac_header_compiler=no
41873 fi
41874
41875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41877 echo "${ECHO_T}$ac_header_compiler" >&6; }
41878
41879 # Is the header present?
41880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41882 cat >conftest.$ac_ext <<_ACEOF
41883 /* confdefs.h.  */
41884 _ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h.  */
41888 #include <$ac_header>
41889 _ACEOF
41890 if { (ac_try="$ac_cpp conftest.$ac_ext"
41891 case "(($ac_try" in
41892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41893   *) ac_try_echo=$ac_try;;
41894 esac
41895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41897   ac_status=$?
41898   grep -v '^ *+' conftest.er1 >conftest.err
41899   rm -f conftest.er1
41900   cat conftest.err >&5
41901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902   (exit $ac_status); } >/dev/null; then
41903   if test -s conftest.err; then
41904     ac_cpp_err=$ac_c_preproc_warn_flag
41905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41906   else
41907     ac_cpp_err=
41908   fi
41909 else
41910   ac_cpp_err=yes
41911 fi
41912 if test -z "$ac_cpp_err"; then
41913   ac_header_preproc=yes
41914 else
41915   echo "$as_me: failed program was:" >&5
41916 sed 's/^/| /' conftest.$ac_ext >&5
41917
41918   ac_header_preproc=no
41919 fi
41920
41921 rm -f conftest.err conftest.$ac_ext
41922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41923 echo "${ECHO_T}$ac_header_preproc" >&6; }
41924
41925 # So?  What about this header?
41926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41927   yes:no: )
41928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41932     ac_header_preproc=yes
41933     ;;
41934   no:yes:* )
41935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41947     ( cat <<\_ASBOX
41948 ## --------------------------------------------- ##
41949 ## Report this to <http://www.openldap.org/its/> ##
41950 ## --------------------------------------------- ##
41951 _ASBOX
41952      ) | sed "s/^/$as_me: WARNING:     /" >&2
41953     ;;
41954 esac
41955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41958   echo $ECHO_N "(cached) $ECHO_C" >&6
41959 else
41960   eval "$as_ac_Header=\$ac_header_preproc"
41961 fi
41962 ac_res=`eval echo '${'$as_ac_Header'}'`
41963                { echo "$as_me:$LINENO: result: $ac_res" >&5
41964 echo "${ECHO_T}$ac_res" >&6; }
41965
41966 fi
41967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41968   cat >>confdefs.h <<_ACEOF
41969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41970 _ACEOF
41971
41972 fi
41973
41974 done
41975
41976
41977 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
41978 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
41979 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
41980   echo $ECHO_N "(cached) $ECHO_C" >&6
41981 else
41982   ac_check_lib_save_LIBS=$LIBS
41983 LIBS="-lgmp  $LIBS"
41984 cat >conftest.$ac_ext <<_ACEOF
41985 /* confdefs.h.  */
41986 _ACEOF
41987 cat confdefs.h >>conftest.$ac_ext
41988 cat >>conftest.$ac_ext <<_ACEOF
41989 /* end confdefs.h.  */
41990
41991 /* Override any GCC internal prototype to avoid an error.
41992    Use char because int might match the return type of a GCC
41993    builtin and then its argument prototype would still apply.  */
41994 #ifdef __cplusplus
41995 extern "C"
41996 #endif
41997 char __gmpz_add_ui ();
41998 int
41999 main ()
42000 {
42001 return __gmpz_add_ui ();
42002   ;
42003   return 0;
42004 }
42005 _ACEOF
42006 rm -f conftest.$ac_objext conftest$ac_exeext
42007 if { (ac_try="$ac_link"
42008 case "(($ac_try" in
42009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42010   *) ac_try_echo=$ac_try;;
42011 esac
42012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42013   (eval "$ac_link") 2>conftest.er1
42014   ac_status=$?
42015   grep -v '^ *+' conftest.er1 >conftest.err
42016   rm -f conftest.er1
42017   cat conftest.err >&5
42018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42019   (exit $ac_status); } &&
42020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42021   { (case "(($ac_try" in
42022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42023   *) ac_try_echo=$ac_try;;
42024 esac
42025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42026   (eval "$ac_try") 2>&5
42027   ac_status=$?
42028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42029   (exit $ac_status); }; } &&
42030          { ac_try='test -s conftest$ac_exeext'
42031   { (case "(($ac_try" in
42032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42033   *) ac_try_echo=$ac_try;;
42034 esac
42035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42036   (eval "$ac_try") 2>&5
42037   ac_status=$?
42038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039   (exit $ac_status); }; }; then
42040   ac_cv_lib_gmp___gmpz_add_ui=yes
42041 else
42042   echo "$as_me: failed program was:" >&5
42043 sed 's/^/| /' conftest.$ac_ext >&5
42044
42045         ac_cv_lib_gmp___gmpz_add_ui=no
42046 fi
42047
42048 rm -f core conftest.err conftest.$ac_objext \
42049       conftest$ac_exeext conftest.$ac_ext
42050 LIBS=$ac_check_lib_save_LIBS
42051 fi
42052 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
42053 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
42054 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
42055   cat >>confdefs.h <<_ACEOF
42056 #define HAVE_LIBGMP 1
42057 _ACEOF
42058
42059   LIBS="-lgmp $LIBS"
42060
42061 fi
42062
42063         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
42064
42065 cat >>confdefs.h <<\_ACEOF
42066 #define USE_MP_GMP 1
42067 _ACEOF
42068
42069                 ol_with_mp=gmp
42070         elif test $ol_with_mp = gmp ; then
42071                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
42072 echo "$as_me: error: gmp not available" >&2;}
42073    { (exit 1); exit 1; }; }
42074         fi
42075 fi
42076 if test $ol_with_mp = auto ; then
42077         ol_with_mp=no
42078 fi
42079
42080 { echo "$as_me:$LINENO: checking for working memcmp" >&5
42081 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
42082 if test "${ac_cv_func_memcmp_working+set}" = set; then
42083   echo $ECHO_N "(cached) $ECHO_C" >&6
42084 else
42085   if test "$cross_compiling" = yes; then
42086   ac_cv_func_memcmp_working=no
42087 else
42088   cat >conftest.$ac_ext <<_ACEOF
42089 /* confdefs.h.  */
42090 _ACEOF
42091 cat confdefs.h >>conftest.$ac_ext
42092 cat >>conftest.$ac_ext <<_ACEOF
42093 /* end confdefs.h.  */
42094 $ac_includes_default
42095 int
42096 main ()
42097 {
42098
42099   /* Some versions of memcmp are not 8-bit clean.  */
42100   char c0 = '\100', c1 = '\200', c2 = '\201';
42101   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42102     return 1;
42103
42104   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42105      or more and with at least one buffer not starting on a 4-byte boundary.
42106      William Lewis provided this test program.   */
42107   {
42108     char foo[21];
42109     char bar[21];
42110     int i;
42111     for (i = 0; i < 4; i++)
42112       {
42113         char *a = foo + i;
42114         char *b = bar + i;
42115         strcpy (a, "--------01111111");
42116         strcpy (b, "--------10000000");
42117         if (memcmp (a, b, 16) >= 0)
42118           return 1;
42119       }
42120     return 0;
42121   }
42122
42123   ;
42124   return 0;
42125 }
42126 _ACEOF
42127 rm -f conftest$ac_exeext
42128 if { (ac_try="$ac_link"
42129 case "(($ac_try" in
42130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42131   *) ac_try_echo=$ac_try;;
42132 esac
42133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42134   (eval "$ac_link") 2>&5
42135   ac_status=$?
42136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42138   { (case "(($ac_try" in
42139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42140   *) ac_try_echo=$ac_try;;
42141 esac
42142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42143   (eval "$ac_try") 2>&5
42144   ac_status=$?
42145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42146   (exit $ac_status); }; }; then
42147   ac_cv_func_memcmp_working=yes
42148 else
42149   echo "$as_me: program exited with status $ac_status" >&5
42150 echo "$as_me: failed program was:" >&5
42151 sed 's/^/| /' conftest.$ac_ext >&5
42152
42153 ( exit $ac_status )
42154 ac_cv_func_memcmp_working=no
42155 fi
42156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42157 fi
42158
42159
42160 fi
42161 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42162 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
42163 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
42164   *" memcmp.$ac_objext "* ) ;;
42165   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
42166  ;;
42167 esac
42168
42169
42170
42171 if test $ac_cv_func_memcmp_working = no ; then
42172
42173 cat >>confdefs.h <<\_ACEOF
42174 #define NEED_MEMCMP_REPLACEMENT 1
42175 _ACEOF
42176
42177 fi
42178
42179
42180 for ac_func in strftime
42181 do
42182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42186   echo $ECHO_N "(cached) $ECHO_C" >&6
42187 else
42188   cat >conftest.$ac_ext <<_ACEOF
42189 /* confdefs.h.  */
42190 _ACEOF
42191 cat confdefs.h >>conftest.$ac_ext
42192 cat >>conftest.$ac_ext <<_ACEOF
42193 /* end confdefs.h.  */
42194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42196 #define $ac_func innocuous_$ac_func
42197
42198 /* System header to define __stub macros and hopefully few prototypes,
42199     which can conflict with char $ac_func (); below.
42200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42201     <limits.h> exists even on freestanding compilers.  */
42202
42203 #ifdef __STDC__
42204 # include <limits.h>
42205 #else
42206 # include <assert.h>
42207 #endif
42208
42209 #undef $ac_func
42210
42211 /* Override any GCC internal prototype to avoid an error.
42212    Use char because int might match the return type of a GCC
42213    builtin and then its argument prototype would still apply.  */
42214 #ifdef __cplusplus
42215 extern "C"
42216 #endif
42217 char $ac_func ();
42218 /* The GNU C library defines this for functions which it implements
42219     to always fail with ENOSYS.  Some functions are actually named
42220     something starting with __ and the normal name is an alias.  */
42221 #if defined __stub_$ac_func || defined __stub___$ac_func
42222 choke me
42223 #endif
42224
42225 int
42226 main ()
42227 {
42228 return $ac_func ();
42229   ;
42230   return 0;
42231 }
42232 _ACEOF
42233 rm -f conftest.$ac_objext conftest$ac_exeext
42234 if { (ac_try="$ac_link"
42235 case "(($ac_try" in
42236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42237   *) ac_try_echo=$ac_try;;
42238 esac
42239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42240   (eval "$ac_link") 2>conftest.er1
42241   ac_status=$?
42242   grep -v '^ *+' conftest.er1 >conftest.err
42243   rm -f conftest.er1
42244   cat conftest.err >&5
42245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42246   (exit $ac_status); } &&
42247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42248   { (case "(($ac_try" in
42249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42250   *) ac_try_echo=$ac_try;;
42251 esac
42252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42253   (eval "$ac_try") 2>&5
42254   ac_status=$?
42255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256   (exit $ac_status); }; } &&
42257          { ac_try='test -s conftest$ac_exeext'
42258   { (case "(($ac_try" in
42259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42260   *) ac_try_echo=$ac_try;;
42261 esac
42262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42263   (eval "$ac_try") 2>&5
42264   ac_status=$?
42265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42266   (exit $ac_status); }; }; then
42267   eval "$as_ac_var=yes"
42268 else
42269   echo "$as_me: failed program was:" >&5
42270 sed 's/^/| /' conftest.$ac_ext >&5
42271
42272         eval "$as_ac_var=no"
42273 fi
42274
42275 rm -f core conftest.err conftest.$ac_objext \
42276       conftest$ac_exeext conftest.$ac_ext
42277 fi
42278 ac_res=`eval echo '${'$as_ac_var'}'`
42279                { echo "$as_me:$LINENO: result: $ac_res" >&5
42280 echo "${ECHO_T}$ac_res" >&6; }
42281 if test `eval echo '${'$as_ac_var'}'` = yes; then
42282   cat >>confdefs.h <<_ACEOF
42283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42284 _ACEOF
42285
42286 else
42287   # strftime is in -lintl on SCO UNIX.
42288 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42289 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
42290 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42291   echo $ECHO_N "(cached) $ECHO_C" >&6
42292 else
42293   ac_check_lib_save_LIBS=$LIBS
42294 LIBS="-lintl  $LIBS"
42295 cat >conftest.$ac_ext <<_ACEOF
42296 /* confdefs.h.  */
42297 _ACEOF
42298 cat confdefs.h >>conftest.$ac_ext
42299 cat >>conftest.$ac_ext <<_ACEOF
42300 /* end confdefs.h.  */
42301
42302 /* Override any GCC internal prototype to avoid an error.
42303    Use char because int might match the return type of a GCC
42304    builtin and then its argument prototype would still apply.  */
42305 #ifdef __cplusplus
42306 extern "C"
42307 #endif
42308 char strftime ();
42309 int
42310 main ()
42311 {
42312 return strftime ();
42313   ;
42314   return 0;
42315 }
42316 _ACEOF
42317 rm -f conftest.$ac_objext conftest$ac_exeext
42318 if { (ac_try="$ac_link"
42319 case "(($ac_try" in
42320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42321   *) ac_try_echo=$ac_try;;
42322 esac
42323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42324   (eval "$ac_link") 2>conftest.er1
42325   ac_status=$?
42326   grep -v '^ *+' conftest.er1 >conftest.err
42327   rm -f conftest.er1
42328   cat conftest.err >&5
42329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330   (exit $ac_status); } &&
42331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42332   { (case "(($ac_try" in
42333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42334   *) ac_try_echo=$ac_try;;
42335 esac
42336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42337   (eval "$ac_try") 2>&5
42338   ac_status=$?
42339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42340   (exit $ac_status); }; } &&
42341          { ac_try='test -s conftest$ac_exeext'
42342   { (case "(($ac_try" in
42343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42344   *) ac_try_echo=$ac_try;;
42345 esac
42346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42347   (eval "$ac_try") 2>&5
42348   ac_status=$?
42349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42350   (exit $ac_status); }; }; then
42351   ac_cv_lib_intl_strftime=yes
42352 else
42353   echo "$as_me: failed program was:" >&5
42354 sed 's/^/| /' conftest.$ac_ext >&5
42355
42356         ac_cv_lib_intl_strftime=no
42357 fi
42358
42359 rm -f core conftest.err conftest.$ac_objext \
42360       conftest$ac_exeext conftest.$ac_ext
42361 LIBS=$ac_check_lib_save_LIBS
42362 fi
42363 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42364 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
42365 if test $ac_cv_lib_intl_strftime = yes; then
42366   cat >>confdefs.h <<\_ACEOF
42367 #define HAVE_STRFTIME 1
42368 _ACEOF
42369
42370 LIBS="-lintl $LIBS"
42371 fi
42372
42373 fi
42374 done
42375
42376
42377 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
42378 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
42379 if test "${ol_cv_func_inet_aton+set}" = set; then
42380   echo $ECHO_N "(cached) $ECHO_C" >&6
42381 else
42382   cat >conftest.$ac_ext <<_ACEOF
42383 /* confdefs.h.  */
42384 _ACEOF
42385 cat confdefs.h >>conftest.$ac_ext
42386 cat >>conftest.$ac_ext <<_ACEOF
42387 /* end confdefs.h.  */
42388
42389 #ifdef HAVE_SYS_TYPES_H
42390 #       include <sys/types.h>
42391 #endif
42392 #ifdef HAVE_SYS_SOCKET_H
42393 #       include <sys/socket.h>
42394 #       ifdef HAVE_SYS_SELECT_H
42395 #               include <sys/select.h>
42396 #       endif
42397 #       include <netinet/in.h>
42398 #       ifdef HAVE_ARPA_INET_H
42399 #               include <arpa/inet.h>
42400 #       endif
42401 #endif
42402
42403 int
42404 main ()
42405 {
42406 struct in_addr in;
42407 int rc = inet_aton( "255.255.255.255", &in );
42408   ;
42409   return 0;
42410 }
42411 _ACEOF
42412 rm -f conftest.$ac_objext conftest$ac_exeext
42413 if { (ac_try="$ac_link"
42414 case "(($ac_try" in
42415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42416   *) ac_try_echo=$ac_try;;
42417 esac
42418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42419   (eval "$ac_link") 2>conftest.er1
42420   ac_status=$?
42421   grep -v '^ *+' conftest.er1 >conftest.err
42422   rm -f conftest.er1
42423   cat conftest.err >&5
42424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425   (exit $ac_status); } &&
42426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42427   { (case "(($ac_try" in
42428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42429   *) ac_try_echo=$ac_try;;
42430 esac
42431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42432   (eval "$ac_try") 2>&5
42433   ac_status=$?
42434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435   (exit $ac_status); }; } &&
42436          { ac_try='test -s conftest$ac_exeext'
42437   { (case "(($ac_try" in
42438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42439   *) ac_try_echo=$ac_try;;
42440 esac
42441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42442   (eval "$ac_try") 2>&5
42443   ac_status=$?
42444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445   (exit $ac_status); }; }; then
42446   ol_cv_func_inet_aton=yes
42447 else
42448   echo "$as_me: failed program was:" >&5
42449 sed 's/^/| /' conftest.$ac_ext >&5
42450
42451         ol_cv_func_inet_aton=no
42452 fi
42453
42454 rm -f core conftest.err conftest.$ac_objext \
42455       conftest$ac_exeext conftest.$ac_ext
42456 fi
42457 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42458 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
42459   if test $ol_cv_func_inet_aton != no; then
42460
42461 cat >>confdefs.h <<\_ACEOF
42462 #define HAVE_INET_ATON 1
42463 _ACEOF
42464
42465   fi
42466
42467
42468 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
42469 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
42470 if test "${ac_cv_func__spawnlp+set}" = set; then
42471   echo $ECHO_N "(cached) $ECHO_C" >&6
42472 else
42473   cat >conftest.$ac_ext <<_ACEOF
42474 /* confdefs.h.  */
42475 _ACEOF
42476 cat confdefs.h >>conftest.$ac_ext
42477 cat >>conftest.$ac_ext <<_ACEOF
42478 /* end confdefs.h.  */
42479 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42481 #define _spawnlp innocuous__spawnlp
42482
42483 /* System header to define __stub macros and hopefully few prototypes,
42484     which can conflict with char _spawnlp (); below.
42485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42486     <limits.h> exists even on freestanding compilers.  */
42487
42488 #ifdef __STDC__
42489 # include <limits.h>
42490 #else
42491 # include <assert.h>
42492 #endif
42493
42494 #undef _spawnlp
42495
42496 /* Override any GCC internal prototype to avoid an error.
42497    Use char because int might match the return type of a GCC
42498    builtin and then its argument prototype would still apply.  */
42499 #ifdef __cplusplus
42500 extern "C"
42501 #endif
42502 char _spawnlp ();
42503 /* The GNU C library defines this for functions which it implements
42504     to always fail with ENOSYS.  Some functions are actually named
42505     something starting with __ and the normal name is an alias.  */
42506 #if defined __stub__spawnlp || defined __stub____spawnlp
42507 choke me
42508 #endif
42509
42510 int
42511 main ()
42512 {
42513 return _spawnlp ();
42514   ;
42515   return 0;
42516 }
42517 _ACEOF
42518 rm -f conftest.$ac_objext conftest$ac_exeext
42519 if { (ac_try="$ac_link"
42520 case "(($ac_try" in
42521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42522   *) ac_try_echo=$ac_try;;
42523 esac
42524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42525   (eval "$ac_link") 2>conftest.er1
42526   ac_status=$?
42527   grep -v '^ *+' conftest.er1 >conftest.err
42528   rm -f conftest.er1
42529   cat conftest.err >&5
42530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531   (exit $ac_status); } &&
42532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42533   { (case "(($ac_try" in
42534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42535   *) ac_try_echo=$ac_try;;
42536 esac
42537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42538   (eval "$ac_try") 2>&5
42539   ac_status=$?
42540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541   (exit $ac_status); }; } &&
42542          { ac_try='test -s conftest$ac_exeext'
42543   { (case "(($ac_try" in
42544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42545   *) ac_try_echo=$ac_try;;
42546 esac
42547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42548   (eval "$ac_try") 2>&5
42549   ac_status=$?
42550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42551   (exit $ac_status); }; }; then
42552   ac_cv_func__spawnlp=yes
42553 else
42554   echo "$as_me: failed program was:" >&5
42555 sed 's/^/| /' conftest.$ac_ext >&5
42556
42557         ac_cv_func__spawnlp=no
42558 fi
42559
42560 rm -f core conftest.err conftest.$ac_objext \
42561       conftest$ac_exeext conftest.$ac_ext
42562 fi
42563 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42564 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
42565 if test $ac_cv_func__spawnlp = yes; then
42566
42567 cat >>confdefs.h <<\_ACEOF
42568 #define HAVE_SPAWNLP 1
42569 _ACEOF
42570
42571 fi
42572
42573
42574 { echo "$as_me:$LINENO: checking for _snprintf" >&5
42575 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
42576 if test "${ac_cv_func__snprintf+set}" = set; then
42577   echo $ECHO_N "(cached) $ECHO_C" >&6
42578 else
42579   cat >conftest.$ac_ext <<_ACEOF
42580 /* confdefs.h.  */
42581 _ACEOF
42582 cat confdefs.h >>conftest.$ac_ext
42583 cat >>conftest.$ac_ext <<_ACEOF
42584 /* end confdefs.h.  */
42585 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42587 #define _snprintf innocuous__snprintf
42588
42589 /* System header to define __stub macros and hopefully few prototypes,
42590     which can conflict with char _snprintf (); below.
42591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42592     <limits.h> exists even on freestanding compilers.  */
42593
42594 #ifdef __STDC__
42595 # include <limits.h>
42596 #else
42597 # include <assert.h>
42598 #endif
42599
42600 #undef _snprintf
42601
42602 /* Override any GCC internal prototype to avoid an error.
42603    Use char because int might match the return type of a GCC
42604    builtin and then its argument prototype would still apply.  */
42605 #ifdef __cplusplus
42606 extern "C"
42607 #endif
42608 char _snprintf ();
42609 /* The GNU C library defines this for functions which it implements
42610     to always fail with ENOSYS.  Some functions are actually named
42611     something starting with __ and the normal name is an alias.  */
42612 #if defined __stub__snprintf || defined __stub____snprintf
42613 choke me
42614 #endif
42615
42616 int
42617 main ()
42618 {
42619 return _snprintf ();
42620   ;
42621   return 0;
42622 }
42623 _ACEOF
42624 rm -f conftest.$ac_objext conftest$ac_exeext
42625 if { (ac_try="$ac_link"
42626 case "(($ac_try" in
42627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42628   *) ac_try_echo=$ac_try;;
42629 esac
42630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42631   (eval "$ac_link") 2>conftest.er1
42632   ac_status=$?
42633   grep -v '^ *+' conftest.er1 >conftest.err
42634   rm -f conftest.er1
42635   cat conftest.err >&5
42636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42637   (exit $ac_status); } &&
42638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42639   { (case "(($ac_try" in
42640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42641   *) ac_try_echo=$ac_try;;
42642 esac
42643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42644   (eval "$ac_try") 2>&5
42645   ac_status=$?
42646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42647   (exit $ac_status); }; } &&
42648          { ac_try='test -s conftest$ac_exeext'
42649   { (case "(($ac_try" in
42650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42651   *) ac_try_echo=$ac_try;;
42652 esac
42653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42654   (eval "$ac_try") 2>&5
42655   ac_status=$?
42656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657   (exit $ac_status); }; }; then
42658   ac_cv_func__snprintf=yes
42659 else
42660   echo "$as_me: failed program was:" >&5
42661 sed 's/^/| /' conftest.$ac_ext >&5
42662
42663         ac_cv_func__snprintf=no
42664 fi
42665
42666 rm -f core conftest.err conftest.$ac_objext \
42667       conftest$ac_exeext conftest.$ac_ext
42668 fi
42669 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42670 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
42671 if test $ac_cv_func__snprintf = yes; then
42672   ac_cv_func_snprintf=yes
42673
42674 cat >>confdefs.h <<\_ACEOF
42675 #define snprintf _snprintf
42676 _ACEOF
42677
42678
42679 fi
42680
42681
42682 { echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42683 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6; }
42684 if test "${ac_cv_func__vsnprintf+set}" = set; then
42685   echo $ECHO_N "(cached) $ECHO_C" >&6
42686 else
42687   cat >conftest.$ac_ext <<_ACEOF
42688 /* confdefs.h.  */
42689 _ACEOF
42690 cat confdefs.h >>conftest.$ac_ext
42691 cat >>conftest.$ac_ext <<_ACEOF
42692 /* end confdefs.h.  */
42693 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42695 #define _vsnprintf innocuous__vsnprintf
42696
42697 /* System header to define __stub macros and hopefully few prototypes,
42698     which can conflict with char _vsnprintf (); below.
42699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42700     <limits.h> exists even on freestanding compilers.  */
42701
42702 #ifdef __STDC__
42703 # include <limits.h>
42704 #else
42705 # include <assert.h>
42706 #endif
42707
42708 #undef _vsnprintf
42709
42710 /* Override any GCC internal prototype to avoid an error.
42711    Use char because int might match the return type of a GCC
42712    builtin and then its argument prototype would still apply.  */
42713 #ifdef __cplusplus
42714 extern "C"
42715 #endif
42716 char _vsnprintf ();
42717 /* The GNU C library defines this for functions which it implements
42718     to always fail with ENOSYS.  Some functions are actually named
42719     something starting with __ and the normal name is an alias.  */
42720 #if defined __stub__vsnprintf || defined __stub____vsnprintf
42721 choke me
42722 #endif
42723
42724 int
42725 main ()
42726 {
42727 return _vsnprintf ();
42728   ;
42729   return 0;
42730 }
42731 _ACEOF
42732 rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (ac_try="$ac_link"
42734 case "(($ac_try" in
42735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42736   *) ac_try_echo=$ac_try;;
42737 esac
42738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42739   (eval "$ac_link") 2>conftest.er1
42740   ac_status=$?
42741   grep -v '^ *+' conftest.er1 >conftest.err
42742   rm -f conftest.er1
42743   cat conftest.err >&5
42744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42745   (exit $ac_status); } &&
42746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42747   { (case "(($ac_try" in
42748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42749   *) ac_try_echo=$ac_try;;
42750 esac
42751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42752   (eval "$ac_try") 2>&5
42753   ac_status=$?
42754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755   (exit $ac_status); }; } &&
42756          { ac_try='test -s conftest$ac_exeext'
42757   { (case "(($ac_try" in
42758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42759   *) ac_try_echo=$ac_try;;
42760 esac
42761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42762   (eval "$ac_try") 2>&5
42763   ac_status=$?
42764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765   (exit $ac_status); }; }; then
42766   ac_cv_func__vsnprintf=yes
42767 else
42768   echo "$as_me: failed program was:" >&5
42769 sed 's/^/| /' conftest.$ac_ext >&5
42770
42771         ac_cv_func__vsnprintf=no
42772 fi
42773
42774 rm -f core conftest.err conftest.$ac_objext \
42775       conftest$ac_exeext conftest.$ac_ext
42776 fi
42777 { echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42778 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6; }
42779 if test $ac_cv_func__vsnprintf = yes; then
42780   ac_cv_func_vsnprintf=yes
42781
42782 cat >>confdefs.h <<\_ACEOF
42783 #define vsnprintf _vsnprintf
42784 _ACEOF
42785
42786
42787 fi
42788
42789
42790
42791 for ac_func in vprintf
42792 do
42793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42797   echo $ECHO_N "(cached) $ECHO_C" >&6
42798 else
42799   cat >conftest.$ac_ext <<_ACEOF
42800 /* confdefs.h.  */
42801 _ACEOF
42802 cat confdefs.h >>conftest.$ac_ext
42803 cat >>conftest.$ac_ext <<_ACEOF
42804 /* end confdefs.h.  */
42805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42807 #define $ac_func innocuous_$ac_func
42808
42809 /* System header to define __stub macros and hopefully few prototypes,
42810     which can conflict with char $ac_func (); below.
42811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42812     <limits.h> exists even on freestanding compilers.  */
42813
42814 #ifdef __STDC__
42815 # include <limits.h>
42816 #else
42817 # include <assert.h>
42818 #endif
42819
42820 #undef $ac_func
42821
42822 /* Override any GCC internal prototype to avoid an error.
42823    Use char because int might match the return type of a GCC
42824    builtin and then its argument prototype would still apply.  */
42825 #ifdef __cplusplus
42826 extern "C"
42827 #endif
42828 char $ac_func ();
42829 /* The GNU C library defines this for functions which it implements
42830     to always fail with ENOSYS.  Some functions are actually named
42831     something starting with __ and the normal name is an alias.  */
42832 #if defined __stub_$ac_func || defined __stub___$ac_func
42833 choke me
42834 #endif
42835
42836 int
42837 main ()
42838 {
42839 return $ac_func ();
42840   ;
42841   return 0;
42842 }
42843 _ACEOF
42844 rm -f conftest.$ac_objext conftest$ac_exeext
42845 if { (ac_try="$ac_link"
42846 case "(($ac_try" in
42847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42848   *) ac_try_echo=$ac_try;;
42849 esac
42850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42851   (eval "$ac_link") 2>conftest.er1
42852   ac_status=$?
42853   grep -v '^ *+' conftest.er1 >conftest.err
42854   rm -f conftest.er1
42855   cat conftest.err >&5
42856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42857   (exit $ac_status); } &&
42858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42859   { (case "(($ac_try" in
42860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42861   *) ac_try_echo=$ac_try;;
42862 esac
42863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42864   (eval "$ac_try") 2>&5
42865   ac_status=$?
42866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867   (exit $ac_status); }; } &&
42868          { ac_try='test -s conftest$ac_exeext'
42869   { (case "(($ac_try" in
42870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42871   *) ac_try_echo=$ac_try;;
42872 esac
42873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42874   (eval "$ac_try") 2>&5
42875   ac_status=$?
42876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42877   (exit $ac_status); }; }; then
42878   eval "$as_ac_var=yes"
42879 else
42880   echo "$as_me: failed program was:" >&5
42881 sed 's/^/| /' conftest.$ac_ext >&5
42882
42883         eval "$as_ac_var=no"
42884 fi
42885
42886 rm -f core conftest.err conftest.$ac_objext \
42887       conftest$ac_exeext conftest.$ac_ext
42888 fi
42889 ac_res=`eval echo '${'$as_ac_var'}'`
42890                { echo "$as_me:$LINENO: result: $ac_res" >&5
42891 echo "${ECHO_T}$ac_res" >&6; }
42892 if test `eval echo '${'$as_ac_var'}'` = yes; then
42893   cat >>confdefs.h <<_ACEOF
42894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42895 _ACEOF
42896
42897 { echo "$as_me:$LINENO: checking for _doprnt" >&5
42898 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
42899 if test "${ac_cv_func__doprnt+set}" = set; then
42900   echo $ECHO_N "(cached) $ECHO_C" >&6
42901 else
42902   cat >conftest.$ac_ext <<_ACEOF
42903 /* confdefs.h.  */
42904 _ACEOF
42905 cat confdefs.h >>conftest.$ac_ext
42906 cat >>conftest.$ac_ext <<_ACEOF
42907 /* end confdefs.h.  */
42908 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42910 #define _doprnt innocuous__doprnt
42911
42912 /* System header to define __stub macros and hopefully few prototypes,
42913     which can conflict with char _doprnt (); below.
42914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42915     <limits.h> exists even on freestanding compilers.  */
42916
42917 #ifdef __STDC__
42918 # include <limits.h>
42919 #else
42920 # include <assert.h>
42921 #endif
42922
42923 #undef _doprnt
42924
42925 /* Override any GCC internal prototype to avoid an error.
42926    Use char because int might match the return type of a GCC
42927    builtin and then its argument prototype would still apply.  */
42928 #ifdef __cplusplus
42929 extern "C"
42930 #endif
42931 char _doprnt ();
42932 /* The GNU C library defines this for functions which it implements
42933     to always fail with ENOSYS.  Some functions are actually named
42934     something starting with __ and the normal name is an alias.  */
42935 #if defined __stub__doprnt || defined __stub____doprnt
42936 choke me
42937 #endif
42938
42939 int
42940 main ()
42941 {
42942 return _doprnt ();
42943   ;
42944   return 0;
42945 }
42946 _ACEOF
42947 rm -f conftest.$ac_objext conftest$ac_exeext
42948 if { (ac_try="$ac_link"
42949 case "(($ac_try" in
42950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42951   *) ac_try_echo=$ac_try;;
42952 esac
42953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42954   (eval "$ac_link") 2>conftest.er1
42955   ac_status=$?
42956   grep -v '^ *+' conftest.er1 >conftest.err
42957   rm -f conftest.er1
42958   cat conftest.err >&5
42959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960   (exit $ac_status); } &&
42961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42962   { (case "(($ac_try" in
42963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42964   *) ac_try_echo=$ac_try;;
42965 esac
42966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42967   (eval "$ac_try") 2>&5
42968   ac_status=$?
42969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42970   (exit $ac_status); }; } &&
42971          { ac_try='test -s conftest$ac_exeext'
42972   { (case "(($ac_try" in
42973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42974   *) ac_try_echo=$ac_try;;
42975 esac
42976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42977   (eval "$ac_try") 2>&5
42978   ac_status=$?
42979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980   (exit $ac_status); }; }; then
42981   ac_cv_func__doprnt=yes
42982 else
42983   echo "$as_me: failed program was:" >&5
42984 sed 's/^/| /' conftest.$ac_ext >&5
42985
42986         ac_cv_func__doprnt=no
42987 fi
42988
42989 rm -f core conftest.err conftest.$ac_objext \
42990       conftest$ac_exeext conftest.$ac_ext
42991 fi
42992 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42993 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
42994 if test $ac_cv_func__doprnt = yes; then
42995
42996 cat >>confdefs.h <<\_ACEOF
42997 #define HAVE_DOPRNT 1
42998 _ACEOF
42999
43000 fi
43001
43002 fi
43003 done
43004
43005
43006
43007 if test $ac_cv_func_vprintf = yes ; then
43008
43009
43010 for ac_func in snprintf vsnprintf
43011 do
43012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43016   echo $ECHO_N "(cached) $ECHO_C" >&6
43017 else
43018   cat >conftest.$ac_ext <<_ACEOF
43019 /* confdefs.h.  */
43020 _ACEOF
43021 cat confdefs.h >>conftest.$ac_ext
43022 cat >>conftest.$ac_ext <<_ACEOF
43023 /* end confdefs.h.  */
43024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43026 #define $ac_func innocuous_$ac_func
43027
43028 /* System header to define __stub macros and hopefully few prototypes,
43029     which can conflict with char $ac_func (); below.
43030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43031     <limits.h> exists even on freestanding compilers.  */
43032
43033 #ifdef __STDC__
43034 # include <limits.h>
43035 #else
43036 # include <assert.h>
43037 #endif
43038
43039 #undef $ac_func
43040
43041 /* Override any GCC internal prototype to avoid an error.
43042    Use char because int might match the return type of a GCC
43043    builtin and then its argument prototype would still apply.  */
43044 #ifdef __cplusplus
43045 extern "C"
43046 #endif
43047 char $ac_func ();
43048 /* The GNU C library defines this for functions which it implements
43049     to always fail with ENOSYS.  Some functions are actually named
43050     something starting with __ and the normal name is an alias.  */
43051 #if defined __stub_$ac_func || defined __stub___$ac_func
43052 choke me
43053 #endif
43054
43055 int
43056 main ()
43057 {
43058 return $ac_func ();
43059   ;
43060   return 0;
43061 }
43062 _ACEOF
43063 rm -f conftest.$ac_objext conftest$ac_exeext
43064 if { (ac_try="$ac_link"
43065 case "(($ac_try" in
43066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43067   *) ac_try_echo=$ac_try;;
43068 esac
43069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43070   (eval "$ac_link") 2>conftest.er1
43071   ac_status=$?
43072   grep -v '^ *+' conftest.er1 >conftest.err
43073   rm -f conftest.er1
43074   cat conftest.err >&5
43075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076   (exit $ac_status); } &&
43077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43078   { (case "(($ac_try" in
43079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43080   *) ac_try_echo=$ac_try;;
43081 esac
43082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43083   (eval "$ac_try") 2>&5
43084   ac_status=$?
43085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43086   (exit $ac_status); }; } &&
43087          { ac_try='test -s conftest$ac_exeext'
43088   { (case "(($ac_try" in
43089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43090   *) ac_try_echo=$ac_try;;
43091 esac
43092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43093   (eval "$ac_try") 2>&5
43094   ac_status=$?
43095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43096   (exit $ac_status); }; }; then
43097   eval "$as_ac_var=yes"
43098 else
43099   echo "$as_me: failed program was:" >&5
43100 sed 's/^/| /' conftest.$ac_ext >&5
43101
43102         eval "$as_ac_var=no"
43103 fi
43104
43105 rm -f core conftest.err conftest.$ac_objext \
43106       conftest$ac_exeext conftest.$ac_ext
43107 fi
43108 ac_res=`eval echo '${'$as_ac_var'}'`
43109                { echo "$as_me:$LINENO: result: $ac_res" >&5
43110 echo "${ECHO_T}$ac_res" >&6; }
43111 if test `eval echo '${'$as_ac_var'}'` = yes; then
43112   cat >>confdefs.h <<_ACEOF
43113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43114 _ACEOF
43115
43116 fi
43117 done
43118
43119 fi
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171
43172
43173
43174
43175
43176 for ac_func in \
43177         bcopy                   \
43178         closesocket             \
43179         chroot                  \
43180         endgrent                \
43181         endpwent                \
43182         fcntl                   \
43183         flock                   \
43184         fstat                   \
43185         getdtablesize           \
43186         getgrgid                \
43187         gethostname             \
43188         getpass                 \
43189         getpassphrase           \
43190         getpwuid                \
43191         getpwnam                \
43192         getspnam                \
43193         gettimeofday            \
43194         initgroups              \
43195         inet_ntoa_b             \
43196         ioctl                   \
43197         lockf                   \
43198         memcpy                  \
43199         memmove                 \
43200         memrchr                 \
43201         mkstemp                 \
43202         mktemp                  \
43203         pipe                    \
43204         read                    \
43205         recv                    \
43206         recvfrom                \
43207         setpwfile               \
43208         setgid                  \
43209         setegid                 \
43210         setsid                  \
43211         setuid                  \
43212         seteuid                 \
43213         signal                  \
43214         strdup                  \
43215         strpbrk                 \
43216         strrchr                 \
43217         strsep                  \
43218         strstr                  \
43219         strtol                  \
43220         strtoul                 \
43221         strtoq                  \
43222         strtouq                 \
43223         strtoll                 \
43224         strspn                  \
43225         sysconf                 \
43226         waitpid                 \
43227         wait4                   \
43228         write                   \
43229         send                    \
43230         sendmsg                 \
43231         sendto                  \
43232
43233 do
43234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43238   echo $ECHO_N "(cached) $ECHO_C" >&6
43239 else
43240   cat >conftest.$ac_ext <<_ACEOF
43241 /* confdefs.h.  */
43242 _ACEOF
43243 cat confdefs.h >>conftest.$ac_ext
43244 cat >>conftest.$ac_ext <<_ACEOF
43245 /* end confdefs.h.  */
43246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43248 #define $ac_func innocuous_$ac_func
43249
43250 /* System header to define __stub macros and hopefully few prototypes,
43251     which can conflict with char $ac_func (); below.
43252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43253     <limits.h> exists even on freestanding compilers.  */
43254
43255 #ifdef __STDC__
43256 # include <limits.h>
43257 #else
43258 # include <assert.h>
43259 #endif
43260
43261 #undef $ac_func
43262
43263 /* Override any GCC internal prototype to avoid an error.
43264    Use char because int might match the return type of a GCC
43265    builtin and then its argument prototype would still apply.  */
43266 #ifdef __cplusplus
43267 extern "C"
43268 #endif
43269 char $ac_func ();
43270 /* The GNU C library defines this for functions which it implements
43271     to always fail with ENOSYS.  Some functions are actually named
43272     something starting with __ and the normal name is an alias.  */
43273 #if defined __stub_$ac_func || defined __stub___$ac_func
43274 choke me
43275 #endif
43276
43277 int
43278 main ()
43279 {
43280 return $ac_func ();
43281   ;
43282   return 0;
43283 }
43284 _ACEOF
43285 rm -f conftest.$ac_objext conftest$ac_exeext
43286 if { (ac_try="$ac_link"
43287 case "(($ac_try" in
43288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43289   *) ac_try_echo=$ac_try;;
43290 esac
43291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43292   (eval "$ac_link") 2>conftest.er1
43293   ac_status=$?
43294   grep -v '^ *+' conftest.er1 >conftest.err
43295   rm -f conftest.er1
43296   cat conftest.err >&5
43297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298   (exit $ac_status); } &&
43299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43300   { (case "(($ac_try" in
43301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43302   *) ac_try_echo=$ac_try;;
43303 esac
43304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43305   (eval "$ac_try") 2>&5
43306   ac_status=$?
43307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43308   (exit $ac_status); }; } &&
43309          { ac_try='test -s conftest$ac_exeext'
43310   { (case "(($ac_try" in
43311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43312   *) ac_try_echo=$ac_try;;
43313 esac
43314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43315   (eval "$ac_try") 2>&5
43316   ac_status=$?
43317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43318   (exit $ac_status); }; }; then
43319   eval "$as_ac_var=yes"
43320 else
43321   echo "$as_me: failed program was:" >&5
43322 sed 's/^/| /' conftest.$ac_ext >&5
43323
43324         eval "$as_ac_var=no"
43325 fi
43326
43327 rm -f core conftest.err conftest.$ac_objext \
43328       conftest$ac_exeext conftest.$ac_ext
43329 fi
43330 ac_res=`eval echo '${'$as_ac_var'}'`
43331                { echo "$as_me:$LINENO: result: $ac_res" >&5
43332 echo "${ECHO_T}$ac_res" >&6; }
43333 if test `eval echo '${'$as_ac_var'}'` = yes; then
43334   cat >>confdefs.h <<_ACEOF
43335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43336 _ACEOF
43337
43338 fi
43339 done
43340
43341
43342
43343
43344 for ac_func in getopt getpeereid
43345 do
43346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43350   echo $ECHO_N "(cached) $ECHO_C" >&6
43351 else
43352   cat >conftest.$ac_ext <<_ACEOF
43353 /* confdefs.h.  */
43354 _ACEOF
43355 cat confdefs.h >>conftest.$ac_ext
43356 cat >>conftest.$ac_ext <<_ACEOF
43357 /* end confdefs.h.  */
43358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43360 #define $ac_func innocuous_$ac_func
43361
43362 /* System header to define __stub macros and hopefully few prototypes,
43363     which can conflict with char $ac_func (); below.
43364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43365     <limits.h> exists even on freestanding compilers.  */
43366
43367 #ifdef __STDC__
43368 # include <limits.h>
43369 #else
43370 # include <assert.h>
43371 #endif
43372
43373 #undef $ac_func
43374
43375 /* Override any GCC internal prototype to avoid an error.
43376    Use char because int might match the return type of a GCC
43377    builtin and then its argument prototype would still apply.  */
43378 #ifdef __cplusplus
43379 extern "C"
43380 #endif
43381 char $ac_func ();
43382 /* The GNU C library defines this for functions which it implements
43383     to always fail with ENOSYS.  Some functions are actually named
43384     something starting with __ and the normal name is an alias.  */
43385 #if defined __stub_$ac_func || defined __stub___$ac_func
43386 choke me
43387 #endif
43388
43389 int
43390 main ()
43391 {
43392 return $ac_func ();
43393   ;
43394   return 0;
43395 }
43396 _ACEOF
43397 rm -f conftest.$ac_objext conftest$ac_exeext
43398 if { (ac_try="$ac_link"
43399 case "(($ac_try" in
43400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43401   *) ac_try_echo=$ac_try;;
43402 esac
43403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43404   (eval "$ac_link") 2>conftest.er1
43405   ac_status=$?
43406   grep -v '^ *+' conftest.er1 >conftest.err
43407   rm -f conftest.er1
43408   cat conftest.err >&5
43409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410   (exit $ac_status); } &&
43411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43412   { (case "(($ac_try" in
43413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43414   *) ac_try_echo=$ac_try;;
43415 esac
43416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43417   (eval "$ac_try") 2>&5
43418   ac_status=$?
43419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420   (exit $ac_status); }; } &&
43421          { ac_try='test -s conftest$ac_exeext'
43422   { (case "(($ac_try" in
43423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43424   *) ac_try_echo=$ac_try;;
43425 esac
43426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43427   (eval "$ac_try") 2>&5
43428   ac_status=$?
43429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430   (exit $ac_status); }; }; then
43431   eval "$as_ac_var=yes"
43432 else
43433   echo "$as_me: failed program was:" >&5
43434 sed 's/^/| /' conftest.$ac_ext >&5
43435
43436         eval "$as_ac_var=no"
43437 fi
43438
43439 rm -f core conftest.err conftest.$ac_objext \
43440       conftest$ac_exeext conftest.$ac_ext
43441 fi
43442 ac_res=`eval echo '${'$as_ac_var'}'`
43443                { echo "$as_me:$LINENO: result: $ac_res" >&5
43444 echo "${ECHO_T}$ac_res" >&6; }
43445 if test `eval echo '${'$as_ac_var'}'` = yes; then
43446   cat >>confdefs.h <<_ACEOF
43447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43448 _ACEOF
43449
43450 else
43451   case " $LIBOBJS " in
43452   *" $ac_func.$ac_objext "* ) ;;
43453   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
43454  ;;
43455 esac
43456
43457 fi
43458 done
43459
43460
43461
43462 if test "$ac_cv_func_getopt" != yes; then
43463         LIBSRCS="$LIBSRCS getopt.c"
43464 fi
43465
43466 if test "$ac_cv_func_getpeereid" != yes; then
43467
43468 for ac_func in getpeerucred
43469 do
43470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43474   echo $ECHO_N "(cached) $ECHO_C" >&6
43475 else
43476   cat >conftest.$ac_ext <<_ACEOF
43477 /* confdefs.h.  */
43478 _ACEOF
43479 cat confdefs.h >>conftest.$ac_ext
43480 cat >>conftest.$ac_ext <<_ACEOF
43481 /* end confdefs.h.  */
43482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43484 #define $ac_func innocuous_$ac_func
43485
43486 /* System header to define __stub macros and hopefully few prototypes,
43487     which can conflict with char $ac_func (); below.
43488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43489     <limits.h> exists even on freestanding compilers.  */
43490
43491 #ifdef __STDC__
43492 # include <limits.h>
43493 #else
43494 # include <assert.h>
43495 #endif
43496
43497 #undef $ac_func
43498
43499 /* Override any GCC internal prototype to avoid an error.
43500    Use char because int might match the return type of a GCC
43501    builtin and then its argument prototype would still apply.  */
43502 #ifdef __cplusplus
43503 extern "C"
43504 #endif
43505 char $ac_func ();
43506 /* The GNU C library defines this for functions which it implements
43507     to always fail with ENOSYS.  Some functions are actually named
43508     something starting with __ and the normal name is an alias.  */
43509 #if defined __stub_$ac_func || defined __stub___$ac_func
43510 choke me
43511 #endif
43512
43513 int
43514 main ()
43515 {
43516 return $ac_func ();
43517   ;
43518   return 0;
43519 }
43520 _ACEOF
43521 rm -f conftest.$ac_objext conftest$ac_exeext
43522 if { (ac_try="$ac_link"
43523 case "(($ac_try" in
43524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43525   *) ac_try_echo=$ac_try;;
43526 esac
43527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43528   (eval "$ac_link") 2>conftest.er1
43529   ac_status=$?
43530   grep -v '^ *+' conftest.er1 >conftest.err
43531   rm -f conftest.er1
43532   cat conftest.err >&5
43533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43534   (exit $ac_status); } &&
43535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43536   { (case "(($ac_try" in
43537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43538   *) ac_try_echo=$ac_try;;
43539 esac
43540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43541   (eval "$ac_try") 2>&5
43542   ac_status=$?
43543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43544   (exit $ac_status); }; } &&
43545          { ac_try='test -s conftest$ac_exeext'
43546   { (case "(($ac_try" in
43547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43548   *) ac_try_echo=$ac_try;;
43549 esac
43550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43551   (eval "$ac_try") 2>&5
43552   ac_status=$?
43553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43554   (exit $ac_status); }; }; then
43555   eval "$as_ac_var=yes"
43556 else
43557   echo "$as_me: failed program was:" >&5
43558 sed 's/^/| /' conftest.$ac_ext >&5
43559
43560         eval "$as_ac_var=no"
43561 fi
43562
43563 rm -f core conftest.err conftest.$ac_objext \
43564       conftest$ac_exeext conftest.$ac_ext
43565 fi
43566 ac_res=`eval echo '${'$as_ac_var'}'`
43567                { echo "$as_me:$LINENO: result: $ac_res" >&5
43568 echo "${ECHO_T}$ac_res" >&6; }
43569 if test `eval echo '${'$as_ac_var'}'` = yes; then
43570   cat >>confdefs.h <<_ACEOF
43571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43572 _ACEOF
43573
43574 fi
43575 done
43576
43577         if test "$ac_cv_func_getpeerucred" != yes ; then
43578                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43579 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
43580 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43581   echo $ECHO_N "(cached) $ECHO_C" >&6
43582 else
43583   cat >conftest.$ac_ext <<_ACEOF
43584 /* confdefs.h.  */
43585 _ACEOF
43586 cat confdefs.h >>conftest.$ac_ext
43587 cat >>conftest.$ac_ext <<_ACEOF
43588 /* end confdefs.h.  */
43589 $ac_includes_default
43590 #ifdef HAVE_SYS_SOCKET_H
43591 #include <sys/socket.h>
43592 #endif
43593
43594 int
43595 main ()
43596 {
43597 static struct msghdr ac_aggr;
43598 if (ac_aggr.msg_accrightslen)
43599 return 0;
43600   ;
43601   return 0;
43602 }
43603 _ACEOF
43604 rm -f conftest.$ac_objext
43605 if { (ac_try="$ac_compile"
43606 case "(($ac_try" in
43607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43608   *) ac_try_echo=$ac_try;;
43609 esac
43610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43611   (eval "$ac_compile") 2>conftest.er1
43612   ac_status=$?
43613   grep -v '^ *+' conftest.er1 >conftest.err
43614   rm -f conftest.er1
43615   cat conftest.err >&5
43616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617   (exit $ac_status); } &&
43618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43619   { (case "(($ac_try" in
43620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43621   *) ac_try_echo=$ac_try;;
43622 esac
43623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43624   (eval "$ac_try") 2>&5
43625   ac_status=$?
43626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43627   (exit $ac_status); }; } &&
43628          { ac_try='test -s conftest.$ac_objext'
43629   { (case "(($ac_try" in
43630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43631   *) ac_try_echo=$ac_try;;
43632 esac
43633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43634   (eval "$ac_try") 2>&5
43635   ac_status=$?
43636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43637   (exit $ac_status); }; }; then
43638   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43639 else
43640   echo "$as_me: failed program was:" >&5
43641 sed 's/^/| /' conftest.$ac_ext >&5
43642
43643         cat >conftest.$ac_ext <<_ACEOF
43644 /* confdefs.h.  */
43645 _ACEOF
43646 cat confdefs.h >>conftest.$ac_ext
43647 cat >>conftest.$ac_ext <<_ACEOF
43648 /* end confdefs.h.  */
43649 $ac_includes_default
43650 #ifdef HAVE_SYS_SOCKET_H
43651 #include <sys/socket.h>
43652 #endif
43653
43654 int
43655 main ()
43656 {
43657 static struct msghdr ac_aggr;
43658 if (sizeof ac_aggr.msg_accrightslen)
43659 return 0;
43660   ;
43661   return 0;
43662 }
43663 _ACEOF
43664 rm -f conftest.$ac_objext
43665 if { (ac_try="$ac_compile"
43666 case "(($ac_try" in
43667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43668   *) ac_try_echo=$ac_try;;
43669 esac
43670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43671   (eval "$ac_compile") 2>conftest.er1
43672   ac_status=$?
43673   grep -v '^ *+' conftest.er1 >conftest.err
43674   rm -f conftest.er1
43675   cat conftest.err >&5
43676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677   (exit $ac_status); } &&
43678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43679   { (case "(($ac_try" in
43680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43681   *) ac_try_echo=$ac_try;;
43682 esac
43683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43684   (eval "$ac_try") 2>&5
43685   ac_status=$?
43686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687   (exit $ac_status); }; } &&
43688          { ac_try='test -s conftest.$ac_objext'
43689   { (case "(($ac_try" in
43690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43691   *) ac_try_echo=$ac_try;;
43692 esac
43693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43694   (eval "$ac_try") 2>&5
43695   ac_status=$?
43696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697   (exit $ac_status); }; }; then
43698   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43699 else
43700   echo "$as_me: failed program was:" >&5
43701 sed 's/^/| /' conftest.$ac_ext >&5
43702
43703         ac_cv_member_struct_msghdr_msg_accrightslen=no
43704 fi
43705
43706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43707 fi
43708
43709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43710 fi
43711 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43712 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
43713 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43714
43715 cat >>confdefs.h <<_ACEOF
43716 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43717 _ACEOF
43718
43719
43720 fi
43721
43722                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43723                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43724 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
43725 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43726   echo $ECHO_N "(cached) $ECHO_C" >&6
43727 else
43728   cat >conftest.$ac_ext <<_ACEOF
43729 /* confdefs.h.  */
43730 _ACEOF
43731 cat confdefs.h >>conftest.$ac_ext
43732 cat >>conftest.$ac_ext <<_ACEOF
43733 /* end confdefs.h.  */
43734 $ac_includes_default
43735 #ifdef HAVE_SYS_SOCKET_H
43736 #include <sys/socket.h>
43737 #endif
43738
43739 int
43740 main ()
43741 {
43742 static struct msghdr ac_aggr;
43743 if (ac_aggr.msg_control)
43744 return 0;
43745   ;
43746   return 0;
43747 }
43748 _ACEOF
43749 rm -f conftest.$ac_objext
43750 if { (ac_try="$ac_compile"
43751 case "(($ac_try" in
43752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43753   *) ac_try_echo=$ac_try;;
43754 esac
43755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43756   (eval "$ac_compile") 2>conftest.er1
43757   ac_status=$?
43758   grep -v '^ *+' conftest.er1 >conftest.err
43759   rm -f conftest.er1
43760   cat conftest.err >&5
43761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43762   (exit $ac_status); } &&
43763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43764   { (case "(($ac_try" in
43765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43766   *) ac_try_echo=$ac_try;;
43767 esac
43768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43769   (eval "$ac_try") 2>&5
43770   ac_status=$?
43771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43772   (exit $ac_status); }; } &&
43773          { ac_try='test -s conftest.$ac_objext'
43774   { (case "(($ac_try" in
43775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43776   *) ac_try_echo=$ac_try;;
43777 esac
43778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43779   (eval "$ac_try") 2>&5
43780   ac_status=$?
43781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782   (exit $ac_status); }; }; then
43783   ac_cv_member_struct_msghdr_msg_control=yes
43784 else
43785   echo "$as_me: failed program was:" >&5
43786 sed 's/^/| /' conftest.$ac_ext >&5
43787
43788         cat >conftest.$ac_ext <<_ACEOF
43789 /* confdefs.h.  */
43790 _ACEOF
43791 cat confdefs.h >>conftest.$ac_ext
43792 cat >>conftest.$ac_ext <<_ACEOF
43793 /* end confdefs.h.  */
43794 $ac_includes_default
43795 #ifdef HAVE_SYS_SOCKET_H
43796 #include <sys/socket.h>
43797 #endif
43798
43799 int
43800 main ()
43801 {
43802 static struct msghdr ac_aggr;
43803 if (sizeof ac_aggr.msg_control)
43804 return 0;
43805   ;
43806   return 0;
43807 }
43808 _ACEOF
43809 rm -f conftest.$ac_objext
43810 if { (ac_try="$ac_compile"
43811 case "(($ac_try" in
43812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43813   *) ac_try_echo=$ac_try;;
43814 esac
43815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43816   (eval "$ac_compile") 2>conftest.er1
43817   ac_status=$?
43818   grep -v '^ *+' conftest.er1 >conftest.err
43819   rm -f conftest.er1
43820   cat conftest.err >&5
43821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822   (exit $ac_status); } &&
43823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43824   { (case "(($ac_try" in
43825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43826   *) ac_try_echo=$ac_try;;
43827 esac
43828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43829   (eval "$ac_try") 2>&5
43830   ac_status=$?
43831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43832   (exit $ac_status); }; } &&
43833          { ac_try='test -s conftest.$ac_objext'
43834   { (case "(($ac_try" in
43835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43836   *) ac_try_echo=$ac_try;;
43837 esac
43838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43839   (eval "$ac_try") 2>&5
43840   ac_status=$?
43841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43842   (exit $ac_status); }; }; then
43843   ac_cv_member_struct_msghdr_msg_control=yes
43844 else
43845   echo "$as_me: failed program was:" >&5
43846 sed 's/^/| /' conftest.$ac_ext >&5
43847
43848         ac_cv_member_struct_msghdr_msg_control=no
43849 fi
43850
43851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43852 fi
43853
43854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43855 fi
43856 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43857 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
43858 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43859
43860 cat >>confdefs.h <<_ACEOF
43861 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43862 _ACEOF
43863
43864
43865 fi
43866
43867                 fi
43868                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
43869 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
43870 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
43871   echo $ECHO_N "(cached) $ECHO_C" >&6
43872 else
43873   cat >conftest.$ac_ext <<_ACEOF
43874 /* confdefs.h.  */
43875 _ACEOF
43876 cat confdefs.h >>conftest.$ac_ext
43877 cat >>conftest.$ac_ext <<_ACEOF
43878 /* end confdefs.h.  */
43879 $ac_includes_default
43880 int
43881 main ()
43882 {
43883 static struct stat ac_aggr;
43884 if (ac_aggr.st_fstype)
43885 return 0;
43886   ;
43887   return 0;
43888 }
43889 _ACEOF
43890 rm -f conftest.$ac_objext
43891 if { (ac_try="$ac_compile"
43892 case "(($ac_try" in
43893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43894   *) ac_try_echo=$ac_try;;
43895 esac
43896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43897   (eval "$ac_compile") 2>conftest.er1
43898   ac_status=$?
43899   grep -v '^ *+' conftest.er1 >conftest.err
43900   rm -f conftest.er1
43901   cat conftest.err >&5
43902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43903   (exit $ac_status); } &&
43904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43905   { (case "(($ac_try" in
43906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43907   *) ac_try_echo=$ac_try;;
43908 esac
43909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43910   (eval "$ac_try") 2>&5
43911   ac_status=$?
43912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913   (exit $ac_status); }; } &&
43914          { ac_try='test -s conftest.$ac_objext'
43915   { (case "(($ac_try" in
43916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43917   *) ac_try_echo=$ac_try;;
43918 esac
43919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43920   (eval "$ac_try") 2>&5
43921   ac_status=$?
43922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923   (exit $ac_status); }; }; then
43924   ac_cv_member_struct_stat_st_fstype=yes
43925 else
43926   echo "$as_me: failed program was:" >&5
43927 sed 's/^/| /' conftest.$ac_ext >&5
43928
43929         cat >conftest.$ac_ext <<_ACEOF
43930 /* confdefs.h.  */
43931 _ACEOF
43932 cat confdefs.h >>conftest.$ac_ext
43933 cat >>conftest.$ac_ext <<_ACEOF
43934 /* end confdefs.h.  */
43935 $ac_includes_default
43936 int
43937 main ()
43938 {
43939 static struct stat ac_aggr;
43940 if (sizeof ac_aggr.st_fstype)
43941 return 0;
43942   ;
43943   return 0;
43944 }
43945 _ACEOF
43946 rm -f conftest.$ac_objext
43947 if { (ac_try="$ac_compile"
43948 case "(($ac_try" in
43949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43950   *) ac_try_echo=$ac_try;;
43951 esac
43952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43953   (eval "$ac_compile") 2>conftest.er1
43954   ac_status=$?
43955   grep -v '^ *+' conftest.er1 >conftest.err
43956   rm -f conftest.er1
43957   cat conftest.err >&5
43958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959   (exit $ac_status); } &&
43960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43961   { (case "(($ac_try" in
43962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43963   *) ac_try_echo=$ac_try;;
43964 esac
43965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43966   (eval "$ac_try") 2>&5
43967   ac_status=$?
43968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43969   (exit $ac_status); }; } &&
43970          { ac_try='test -s conftest.$ac_objext'
43971   { (case "(($ac_try" in
43972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43973   *) ac_try_echo=$ac_try;;
43974 esac
43975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43976   (eval "$ac_try") 2>&5
43977   ac_status=$?
43978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43979   (exit $ac_status); }; }; then
43980   ac_cv_member_struct_stat_st_fstype=yes
43981 else
43982   echo "$as_me: failed program was:" >&5
43983 sed 's/^/| /' conftest.$ac_ext >&5
43984
43985         ac_cv_member_struct_stat_st_fstype=no
43986 fi
43987
43988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43989 fi
43990
43991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43992 fi
43993 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
43994 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
43995 if test $ac_cv_member_struct_stat_st_fstype = yes; then
43996
43997 cat >>confdefs.h <<_ACEOF
43998 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
43999 _ACEOF
44000
44001
44002 fi
44003 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
44004 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
44005 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
44006   echo $ECHO_N "(cached) $ECHO_C" >&6
44007 else
44008   cat >conftest.$ac_ext <<_ACEOF
44009 /* confdefs.h.  */
44010 _ACEOF
44011 cat confdefs.h >>conftest.$ac_ext
44012 cat >>conftest.$ac_ext <<_ACEOF
44013 /* end confdefs.h.  */
44014 $ac_includes_default
44015 int
44016 main ()
44017 {
44018 static struct stat ac_aggr;
44019 if (ac_aggr.st_vfstype)
44020 return 0;
44021   ;
44022   return 0;
44023 }
44024 _ACEOF
44025 rm -f conftest.$ac_objext
44026 if { (ac_try="$ac_compile"
44027 case "(($ac_try" in
44028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44029   *) ac_try_echo=$ac_try;;
44030 esac
44031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44032   (eval "$ac_compile") 2>conftest.er1
44033   ac_status=$?
44034   grep -v '^ *+' conftest.er1 >conftest.err
44035   rm -f conftest.er1
44036   cat conftest.err >&5
44037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44038   (exit $ac_status); } &&
44039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44040   { (case "(($ac_try" in
44041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44042   *) ac_try_echo=$ac_try;;
44043 esac
44044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44045   (eval "$ac_try") 2>&5
44046   ac_status=$?
44047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44048   (exit $ac_status); }; } &&
44049          { ac_try='test -s conftest.$ac_objext'
44050   { (case "(($ac_try" in
44051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44052   *) ac_try_echo=$ac_try;;
44053 esac
44054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44055   (eval "$ac_try") 2>&5
44056   ac_status=$?
44057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058   (exit $ac_status); }; }; then
44059   ac_cv_member_struct_stat_st_vfstype=yes
44060 else
44061   echo "$as_me: failed program was:" >&5
44062 sed 's/^/| /' conftest.$ac_ext >&5
44063
44064         cat >conftest.$ac_ext <<_ACEOF
44065 /* confdefs.h.  */
44066 _ACEOF
44067 cat confdefs.h >>conftest.$ac_ext
44068 cat >>conftest.$ac_ext <<_ACEOF
44069 /* end confdefs.h.  */
44070 $ac_includes_default
44071 int
44072 main ()
44073 {
44074 static struct stat ac_aggr;
44075 if (sizeof ac_aggr.st_vfstype)
44076 return 0;
44077   ;
44078   return 0;
44079 }
44080 _ACEOF
44081 rm -f conftest.$ac_objext
44082 if { (ac_try="$ac_compile"
44083 case "(($ac_try" in
44084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44085   *) ac_try_echo=$ac_try;;
44086 esac
44087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44088   (eval "$ac_compile") 2>conftest.er1
44089   ac_status=$?
44090   grep -v '^ *+' conftest.er1 >conftest.err
44091   rm -f conftest.er1
44092   cat conftest.err >&5
44093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44094   (exit $ac_status); } &&
44095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44096   { (case "(($ac_try" in
44097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44098   *) ac_try_echo=$ac_try;;
44099 esac
44100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44101   (eval "$ac_try") 2>&5
44102   ac_status=$?
44103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104   (exit $ac_status); }; } &&
44105          { ac_try='test -s conftest.$ac_objext'
44106   { (case "(($ac_try" in
44107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44108   *) ac_try_echo=$ac_try;;
44109 esac
44110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44111   (eval "$ac_try") 2>&5
44112   ac_status=$?
44113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114   (exit $ac_status); }; }; then
44115   ac_cv_member_struct_stat_st_vfstype=yes
44116 else
44117   echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44119
44120         ac_cv_member_struct_stat_st_vfstype=no
44121 fi
44122
44123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44124 fi
44125
44126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44127 fi
44128 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
44129 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
44130 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
44131
44132 cat >>confdefs.h <<_ACEOF
44133 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
44134 _ACEOF
44135
44136
44137 fi
44138
44139                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
44140                         cat >conftest.$ac_ext <<_ACEOF
44141 struct stat st; char *ptr=st.st_fstype;
44142 _ACEOF
44143 rm -f conftest.$ac_objext
44144 if { (ac_try="$ac_compile"
44145 case "(($ac_try" in
44146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44147   *) ac_try_echo=$ac_try;;
44148 esac
44149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44150   (eval "$ac_compile") 2>conftest.er1
44151   ac_status=$?
44152   grep -v '^ *+' conftest.er1 >conftest.err
44153   rm -f conftest.er1
44154   cat conftest.err >&5
44155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44156   (exit $ac_status); } &&
44157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44158   { (case "(($ac_try" in
44159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44160   *) ac_try_echo=$ac_try;;
44161 esac
44162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44163   (eval "$ac_try") 2>&5
44164   ac_status=$?
44165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44166   (exit $ac_status); }; } &&
44167          { ac_try='test -s conftest.$ac_objext'
44168   { (case "(($ac_try" in
44169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44170   *) ac_try_echo=$ac_try;;
44171 esac
44172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44173   (eval "$ac_try") 2>&5
44174   ac_status=$?
44175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44176   (exit $ac_status); }; }; then
44177
44178 cat >>confdefs.h <<\_ACEOF
44179 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
44180 _ACEOF
44181
44182 else
44183   echo "$as_me: failed program was:" >&5
44184 sed 's/^/| /' conftest.$ac_ext >&5
44185
44186
44187 cat >>confdefs.h <<\_ACEOF
44188 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
44189 _ACEOF
44190
44191 fi
44192
44193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44194                 fi
44195         fi
44196         LIBSRCS="$LIBSRCS getpeereid.c"
44197 fi
44198
44199 if test "$ac_cv_func_snprintf" != yes ||
44200    test "$ac_cv_func_vsnprintf" != yes; then
44201         if test "$ac_cv_func_snprintf" != yes; then
44202
44203 cat >>confdefs.h <<\_ACEOF
44204 #define snprintf ber_pvt_snprintf
44205 _ACEOF
44206
44207         fi
44208         if test "$ac_cv_func_vsnprintf" != yes; then
44209
44210 cat >>confdefs.h <<\_ACEOF
44211 #define vsnprintf ber_pvt_vsnprintf
44212 _ACEOF
44213
44214         fi
44215 fi
44216
44217
44218 if test "$ol_enable_slapi" != no ; then
44219
44220 for ac_header in ltdl.h
44221 do
44222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44224   { echo "$as_me:$LINENO: checking for $ac_header" >&5
44225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44227   echo $ECHO_N "(cached) $ECHO_C" >&6
44228 fi
44229 ac_res=`eval echo '${'$as_ac_Header'}'`
44230                { echo "$as_me:$LINENO: result: $ac_res" >&5
44231 echo "${ECHO_T}$ac_res" >&6; }
44232 else
44233   # Is the header compilable?
44234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44236 cat >conftest.$ac_ext <<_ACEOF
44237 /* confdefs.h.  */
44238 _ACEOF
44239 cat confdefs.h >>conftest.$ac_ext
44240 cat >>conftest.$ac_ext <<_ACEOF
44241 /* end confdefs.h.  */
44242 $ac_includes_default
44243 #include <$ac_header>
44244 _ACEOF
44245 rm -f conftest.$ac_objext
44246 if { (ac_try="$ac_compile"
44247 case "(($ac_try" in
44248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44249   *) ac_try_echo=$ac_try;;
44250 esac
44251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44252   (eval "$ac_compile") 2>conftest.er1
44253   ac_status=$?
44254   grep -v '^ *+' conftest.er1 >conftest.err
44255   rm -f conftest.er1
44256   cat conftest.err >&5
44257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44258   (exit $ac_status); } &&
44259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44260   { (case "(($ac_try" in
44261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44262   *) ac_try_echo=$ac_try;;
44263 esac
44264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44265   (eval "$ac_try") 2>&5
44266   ac_status=$?
44267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44268   (exit $ac_status); }; } &&
44269          { ac_try='test -s conftest.$ac_objext'
44270   { (case "(($ac_try" in
44271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44272   *) ac_try_echo=$ac_try;;
44273 esac
44274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44275   (eval "$ac_try") 2>&5
44276   ac_status=$?
44277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44278   (exit $ac_status); }; }; then
44279   ac_header_compiler=yes
44280 else
44281   echo "$as_me: failed program was:" >&5
44282 sed 's/^/| /' conftest.$ac_ext >&5
44283
44284         ac_header_compiler=no
44285 fi
44286
44287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44289 echo "${ECHO_T}$ac_header_compiler" >&6; }
44290
44291 # Is the header present?
44292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44294 cat >conftest.$ac_ext <<_ACEOF
44295 /* confdefs.h.  */
44296 _ACEOF
44297 cat confdefs.h >>conftest.$ac_ext
44298 cat >>conftest.$ac_ext <<_ACEOF
44299 /* end confdefs.h.  */
44300 #include <$ac_header>
44301 _ACEOF
44302 if { (ac_try="$ac_cpp conftest.$ac_ext"
44303 case "(($ac_try" in
44304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44305   *) ac_try_echo=$ac_try;;
44306 esac
44307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44309   ac_status=$?
44310   grep -v '^ *+' conftest.er1 >conftest.err
44311   rm -f conftest.er1
44312   cat conftest.err >&5
44313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44314   (exit $ac_status); } >/dev/null; then
44315   if test -s conftest.err; then
44316     ac_cpp_err=$ac_c_preproc_warn_flag
44317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44318   else
44319     ac_cpp_err=
44320   fi
44321 else
44322   ac_cpp_err=yes
44323 fi
44324 if test -z "$ac_cpp_err"; then
44325   ac_header_preproc=yes
44326 else
44327   echo "$as_me: failed program was:" >&5
44328 sed 's/^/| /' conftest.$ac_ext >&5
44329
44330   ac_header_preproc=no
44331 fi
44332
44333 rm -f conftest.err conftest.$ac_ext
44334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44335 echo "${ECHO_T}$ac_header_preproc" >&6; }
44336
44337 # So?  What about this header?
44338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44339   yes:no: )
44340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44344     ac_header_preproc=yes
44345     ;;
44346   no:yes:* )
44347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44359     ( cat <<\_ASBOX
44360 ## --------------------------------------------- ##
44361 ## Report this to <http://www.openldap.org/its/> ##
44362 ## --------------------------------------------- ##
44363 _ASBOX
44364      ) | sed "s/^/$as_me: WARNING:     /" >&2
44365     ;;
44366 esac
44367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44370   echo $ECHO_N "(cached) $ECHO_C" >&6
44371 else
44372   eval "$as_ac_Header=\$ac_header_preproc"
44373 fi
44374 ac_res=`eval echo '${'$as_ac_Header'}'`
44375                { echo "$as_me:$LINENO: result: $ac_res" >&5
44376 echo "${ECHO_T}$ac_res" >&6; }
44377
44378 fi
44379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44380   cat >>confdefs.h <<_ACEOF
44381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44382 _ACEOF
44383
44384 fi
44385
44386 done
44387
44388
44389         if test $ac_cv_header_ltdl_h != yes ; then
44390                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44391 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44392    { (exit 1); exit 1; }; }
44393         fi
44394         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44395 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
44396 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44397   echo $ECHO_N "(cached) $ECHO_C" >&6
44398 else
44399   ac_check_lib_save_LIBS=$LIBS
44400 LIBS="-lltdl  $LIBS"
44401 cat >conftest.$ac_ext <<_ACEOF
44402 /* confdefs.h.  */
44403 _ACEOF
44404 cat confdefs.h >>conftest.$ac_ext
44405 cat >>conftest.$ac_ext <<_ACEOF
44406 /* end confdefs.h.  */
44407
44408 /* Override any GCC internal prototype to avoid an error.
44409    Use char because int might match the return type of a GCC
44410    builtin and then its argument prototype would still apply.  */
44411 #ifdef __cplusplus
44412 extern "C"
44413 #endif
44414 char lt_dlinit ();
44415 int
44416 main ()
44417 {
44418 return lt_dlinit ();
44419   ;
44420   return 0;
44421 }
44422 _ACEOF
44423 rm -f conftest.$ac_objext conftest$ac_exeext
44424 if { (ac_try="$ac_link"
44425 case "(($ac_try" in
44426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44427   *) ac_try_echo=$ac_try;;
44428 esac
44429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44430   (eval "$ac_link") 2>conftest.er1
44431   ac_status=$?
44432   grep -v '^ *+' conftest.er1 >conftest.err
44433   rm -f conftest.er1
44434   cat conftest.err >&5
44435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44436   (exit $ac_status); } &&
44437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44438   { (case "(($ac_try" in
44439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44440   *) ac_try_echo=$ac_try;;
44441 esac
44442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44443   (eval "$ac_try") 2>&5
44444   ac_status=$?
44445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44446   (exit $ac_status); }; } &&
44447          { ac_try='test -s conftest$ac_exeext'
44448   { (case "(($ac_try" in
44449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44450   *) ac_try_echo=$ac_try;;
44451 esac
44452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44453   (eval "$ac_try") 2>&5
44454   ac_status=$?
44455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44456   (exit $ac_status); }; }; then
44457   ac_cv_lib_ltdl_lt_dlinit=yes
44458 else
44459   echo "$as_me: failed program was:" >&5
44460 sed 's/^/| /' conftest.$ac_ext >&5
44461
44462         ac_cv_lib_ltdl_lt_dlinit=no
44463 fi
44464
44465 rm -f core conftest.err conftest.$ac_objext \
44466       conftest$ac_exeext conftest.$ac_ext
44467 LIBS=$ac_check_lib_save_LIBS
44468 fi
44469 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44470 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
44471 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44472
44473                 SLAPI_LIBS=-lltdl
44474                 LIBSLAPI=libslapi.a
44475                 LIBSLAPITOOLS=../libslapi.a
44476
44477 cat >>confdefs.h <<\_ACEOF
44478 #define HAVE_LIBLTDL 1
44479 _ACEOF
44480
44481
44482 else
44483   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44484 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44485    { (exit 1); exit 1; }; }
44486 fi
44487
44488
44489
44490 cat >>confdefs.h <<\_ACEOF
44491 #define LDAP_SLAPI 1
44492 _ACEOF
44493
44494 fi
44495
44496 if test "$ol_enable_debug" != no ; then
44497         if test "$ol_enable_debug" = traditional; then
44498
44499 cat >>confdefs.h <<\_ACEOF
44500 #define OLD_DEBUG 1
44501 _ACEOF
44502
44503         fi
44504
44505 cat >>confdefs.h <<\_ACEOF
44506 #define LDAP_DEBUG 1
44507 _ACEOF
44508
44509 fi
44510 if test "$ol_enable_syslog" = yes ; then
44511
44512 cat >>confdefs.h <<\_ACEOF
44513 #define LDAP_SYSLOG 1
44514 _ACEOF
44515
44516 fi
44517 if test "$ol_enable_proctitle" != no ; then
44518
44519 cat >>confdefs.h <<\_ACEOF
44520 #define LDAP_PROCTITLE 1
44521 _ACEOF
44522
44523 fi
44524 if test "$ol_enable_referrals" != no ; then
44525
44526 cat >>confdefs.h <<\_ACEOF
44527 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44528 _ACEOF
44529
44530 fi
44531 if test "$ol_enable_local" != no; then
44532
44533 cat >>confdefs.h <<\_ACEOF
44534 #define LDAP_PF_LOCAL 1
44535 _ACEOF
44536
44537 fi
44538 if test "$ol_link_ipv6" != no; then
44539
44540 cat >>confdefs.h <<\_ACEOF
44541 #define LDAP_PF_INET6 1
44542 _ACEOF
44543
44544 fi
44545 if test "$ol_enable_cleartext" != no ; then
44546
44547 cat >>confdefs.h <<\_ACEOF
44548 #define SLAPD_CLEARTEXT 1
44549 _ACEOF
44550
44551 fi
44552 if test "$ol_enable_crypt" != no ; then
44553
44554 cat >>confdefs.h <<\_ACEOF
44555 #define SLAPD_CRYPT 1
44556 _ACEOF
44557
44558 fi
44559 if test "$ol_link_spasswd" != no ; then
44560
44561 cat >>confdefs.h <<\_ACEOF
44562 #define SLAPD_SPASSWD 1
44563 _ACEOF
44564
44565 fi
44566 if test "$ol_enable_rlookups" != no ; then
44567
44568 cat >>confdefs.h <<\_ACEOF
44569 #define SLAPD_RLOOKUPS 1
44570 _ACEOF
44571
44572 fi
44573 if test "$ol_enable_aci" != no ; then
44574         if test $ol_enable_dynacl = no ; then
44575                 ol_enable_dynacl=yes
44576                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44577 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44578         fi
44579         if test "$ol_enable_aci" = mod ; then
44580                 MFLAG=SLAPD_MOD_DYNAMIC
44581                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44582 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44583    { (exit 1); exit 1; }; }
44584         else
44585                 MFLAG=SLAPD_MOD_STATIC
44586         fi
44587         WITH_ACI_ENABLED=$ol_enable_aci
44588
44589 cat >>confdefs.h <<_ACEOF
44590 #define SLAPD_ACI_ENABLED $MFLAG
44591 _ACEOF
44592
44593 else
44594         WITH_ACI_ENABLED=no
44595 fi
44596 if test "$ol_enable_dynacl" != no ; then
44597
44598 cat >>confdefs.h <<\_ACEOF
44599 #define SLAP_DYNACL 1
44600 _ACEOF
44601
44602 fi
44603
44604 if test "$ol_link_modules" != no ; then
44605
44606 cat >>confdefs.h <<\_ACEOF
44607 #define SLAPD_MODULES 1
44608 _ACEOF
44609
44610         BUILD_SLAPD=yes
44611         SLAPD_MODULES_LDFLAGS="-dlopen self"
44612 fi
44613
44614
44615 cat >>confdefs.h <<\_ACEOF
44616 #define SLAPD_MOD_STATIC 1
44617 _ACEOF
44618
44619
44620 cat >>confdefs.h <<\_ACEOF
44621 #define SLAPD_MOD_DYNAMIC 2
44622 _ACEOF
44623
44624
44625 if test "$ol_enable_monitor" != no ; then
44626         BUILD_SLAPD=yes
44627         BUILD_MONITOR=$ol_enable_monitor
44628         if test "$ol_enable_monitor" = mod ; then
44629                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44630                 MFLAG=SLAPD_MOD_DYNAMIC
44631         else
44632                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44633                 MFLAG=SLAPD_MOD_STATIC
44634         fi
44635
44636 cat >>confdefs.h <<_ACEOF
44637 #define SLAPD_MONITOR $MFLAG
44638 _ACEOF
44639
44640 fi
44641
44642 if test "$ol_enable_bdb" != no ; then
44643         BUILD_SLAPD=yes
44644         BUILD_BDB=$ol_enable_bdb
44645         if test "$ol_enable_bdb" = mod ; then
44646                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44647                 MFLAG=SLAPD_MOD_DYNAMIC
44648         else
44649                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44650                 MFLAG=SLAPD_MOD_STATIC
44651         fi
44652
44653 cat >>confdefs.h <<_ACEOF
44654 #define SLAPD_BDB $MFLAG
44655 _ACEOF
44656
44657 fi
44658
44659 if test "$ol_enable_dnssrv" != no ; then
44660         BUILD_SLAPD=yes
44661         BUILD_DNSSRV=$ol_enable_dnssrv
44662         if test "$ol_enable_dnssrv" = mod ; then
44663                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44664                 MFLAG=SLAPD_MOD_DYNAMIC
44665         else
44666                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44667                 MFLAG=SLAPD_MOD_STATIC
44668         fi
44669
44670 cat >>confdefs.h <<_ACEOF
44671 #define SLAPD_DNSSRV $MFLAG
44672 _ACEOF
44673
44674 fi
44675
44676 if test "$ol_enable_hdb" != no ; then
44677         BUILD_SLAPD=yes
44678         BUILD_HDB=$ol_enable_hdb
44679         if test "$ol_enable_hdb" = mod ; then
44680                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44681                 MFLAG=SLAPD_MOD_DYNAMIC
44682         else
44683                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44684                 MFLAG=SLAPD_MOD_STATIC
44685         fi
44686
44687 cat >>confdefs.h <<_ACEOF
44688 #define SLAPD_HDB $MFLAG
44689 _ACEOF
44690
44691 fi
44692
44693 if test "$ol_enable_ldap" != no ; then
44694         BUILD_SLAPD=yes
44695         BUILD_LDAP=$ol_enable_ldap
44696         if test "$ol_enable_ldap" = mod ; then
44697                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44698                 MFLAG=SLAPD_MOD_DYNAMIC
44699         else
44700                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44701                 MFLAG=SLAPD_MOD_STATIC
44702         fi
44703
44704 cat >>confdefs.h <<_ACEOF
44705 #define SLAPD_LDAP $MFLAG
44706 _ACEOF
44707
44708 fi
44709
44710 if test "$ol_enable_meta" != no ; then
44711         BUILD_SLAPD=yes
44712         BUILD_META=$ol_enable_meta
44713         BUILD_REWRITE=yes
44714         if test "$ol_enable_meta" = mod ; then
44715                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44716                 MFLAG=SLAPD_MOD_DYNAMIC
44717         else
44718                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44719                 MFLAG=SLAPD_MOD_STATIC
44720         fi
44721
44722 cat >>confdefs.h <<_ACEOF
44723 #define SLAPD_META $MFLAG
44724 _ACEOF
44725
44726 fi
44727
44728 if test "$ol_enable_null" != no ; then
44729         BUILD_SLAPD=yes
44730         BUILD_NULL=$ol_enable_null
44731         if test "$ol_enable_null" = mod ; then
44732                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44733                 MFLAG=SLAPD_MOD_DYNAMIC
44734         else
44735                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44736                 MFLAG=SLAPD_MOD_STATIC
44737         fi
44738
44739 cat >>confdefs.h <<_ACEOF
44740 #define SLAPD_NULL $MFLAG
44741 _ACEOF
44742
44743 fi
44744
44745 if test "$ol_enable_passwd" != no ; then
44746         BUILD_SLAPD=yes
44747         BUILD_PASSWD=$ol_enable_passwd
44748         if test "$ol_enable_passwd" = mod ; then
44749                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44750                 MFLAG=SLAPD_MOD_DYNAMIC
44751         else
44752                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44753                 MFLAG=SLAPD_MOD_STATIC
44754         fi
44755
44756 cat >>confdefs.h <<_ACEOF
44757 #define SLAPD_PASSWD $MFLAG
44758 _ACEOF
44759
44760 fi
44761
44762 if test "$ol_link_perl" != no ; then
44763         BUILD_SLAPD=yes
44764         BUILD_PERL=$ol_enable_perl
44765         if test "$ol_enable_perl" = mod ; then
44766                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44767                 MFLAG=SLAPD_MOD_DYNAMIC
44768         else
44769                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44770                 MFLAG=SLAPD_MOD_STATIC
44771         fi
44772
44773 cat >>confdefs.h <<_ACEOF
44774 #define SLAPD_PERL $MFLAG
44775 _ACEOF
44776
44777 fi
44778
44779 if test "$ol_enable_relay" != no ; then
44780         BUILD_SLAPD=yes
44781         BUILD_RELAY=$ol_enable_relay
44782         if test "$ol_enable_relay" = mod ; then
44783                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44784                 MFLAG=SLAPD_MOD_DYNAMIC
44785         else
44786                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44787                 MFLAG=SLAPD_MOD_STATIC
44788         fi
44789
44790 cat >>confdefs.h <<_ACEOF
44791 #define SLAPD_RELAY $MFLAG
44792 _ACEOF
44793
44794 fi
44795
44796 if test "$ol_enable_shell" != no ; then
44797         if test "$ol_link_threads" != no ; then
44798                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44799 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44800         fi
44801         BUILD_SLAPD=yes
44802         BUILD_SHELL=$ol_enable_shell
44803         if test "$ol_enable_shell" = mod ; then
44804                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44805                 MFLAG=SLAPD_MOD_DYNAMIC
44806         else
44807                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44808                 MFLAG=SLAPD_MOD_STATIC
44809         fi
44810
44811 cat >>confdefs.h <<_ACEOF
44812 #define SLAPD_SHELL $MFLAG
44813 _ACEOF
44814
44815 fi
44816
44817 if test "$ol_link_sql" != no ; then
44818         BUILD_SLAPD=yes
44819         BUILD_SQL=$ol_enable_sql
44820         if test "$ol_enable_sql" = mod; then
44821                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44822                 MFLAG=SLAPD_MOD_DYNAMIC
44823         else
44824                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44825                 MFLAG=SLAPD_MOD_STATIC
44826         fi
44827
44828 cat >>confdefs.h <<_ACEOF
44829 #define SLAPD_SQL $MFLAG
44830 _ACEOF
44831
44832 fi
44833
44834 if test "$ol_enable_accesslog" != no ; then
44835         BUILD_ACCESSLOG=$ol_enable_accesslog
44836         if test "$ol_enable_accesslog" = mod ; then
44837                 MFLAG=SLAPD_MOD_DYNAMIC
44838                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44839         else
44840                 MFLAG=SLAPD_MOD_STATIC
44841                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44842         fi
44843
44844 cat >>confdefs.h <<_ACEOF
44845 #define SLAPD_OVER_ACCESSLOG $MFLAG
44846 _ACEOF
44847
44848 fi
44849
44850 if test "$ol_enable_auditlog" != no ; then
44851         BUILD_AUDITLOG=$ol_enable_auditlog
44852         if test "$ol_enable_auditlog" = mod ; then
44853                 MFLAG=SLAPD_MOD_DYNAMIC
44854                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
44855         else
44856                 MFLAG=SLAPD_MOD_STATIC
44857                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
44858         fi
44859
44860 cat >>confdefs.h <<_ACEOF
44861 #define SLAPD_OVER_AUDITLOG $MFLAG
44862 _ACEOF
44863
44864 fi
44865
44866 if test "$ol_enable_constraint" != no ; then
44867         BUILD_CONSTRAINT=$ol_enable_constraint
44868         if test "$ol_enable_constraint" = mod ; then
44869                 MFLAG=SLAPD_MOD_DYNAMIC
44870                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
44871         else
44872                 MFLAG=SLAPD_MOD_STATIC
44873                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
44874         fi
44875
44876 cat >>confdefs.h <<_ACEOF
44877 #define SLAPD_OVER_CONSTRAINT $MFLAG
44878 _ACEOF
44879
44880 fi
44881
44882 if test "$ol_enable_dds" != no ; then
44883         BUILD_DDS=$ol_enable_dds
44884         if test "$ol_enable_dds" = mod ; then
44885                 MFLAG=SLAPD_MOD_DYNAMIC
44886                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44887         else
44888                 MFLAG=SLAPD_MOD_STATIC
44889                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44890         fi
44891
44892 cat >>confdefs.h <<_ACEOF
44893 #define SLAPD_OVER_DDS $MFLAG
44894 _ACEOF
44895
44896 fi
44897
44898 if test "$ol_enable_dyngroup" != no ; then
44899         BUILD_DYNGROUP=$ol_enable_dyngroup
44900         if test "$ol_enable_dyngroup" = mod ; then
44901                 MFLAG=SLAPD_MOD_DYNAMIC
44902                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44903         else
44904                 MFLAG=SLAPD_MOD_STATIC
44905                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44906         fi
44907
44908 cat >>confdefs.h <<_ACEOF
44909 #define SLAPD_OVER_DYNGROUP $MFLAG
44910 _ACEOF
44911
44912 fi
44913
44914 if test "$ol_enable_dynlist" != no ; then
44915         BUILD_DYNLIST=$ol_enable_dynlist
44916         if test "$ol_enable_dynlist" = mod ; then
44917                 MFLAG=SLAPD_MOD_DYNAMIC
44918                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44919         else
44920                 MFLAG=SLAPD_MOD_STATIC
44921                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44922         fi
44923
44924 cat >>confdefs.h <<_ACEOF
44925 #define SLAPD_OVER_DYNLIST $MFLAG
44926 _ACEOF
44927
44928 fi
44929
44930 if test "$ol_enable_ppolicy" != no ; then
44931         BUILD_PPOLICY=$ol_enable_ppolicy
44932         if test "$ol_enable_ppolicy" = mod ; then
44933                 MFLAG=SLAPD_MOD_DYNAMIC
44934                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44935         else
44936                 MFLAG=SLAPD_MOD_STATIC
44937                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44938         fi
44939
44940 cat >>confdefs.h <<_ACEOF
44941 #define SLAPD_OVER_PPOLICY $MFLAG
44942 _ACEOF
44943
44944 fi
44945
44946 if test "$ol_enable_proxycache" != no ; then
44947         BUILD_PROXYCACHE=$ol_enable_proxycache
44948         if test "$ol_enable_proxycache" = mod ; then
44949                 MFLAG=SLAPD_MOD_DYNAMIC
44950                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44951         else
44952                 MFLAG=SLAPD_MOD_STATIC
44953                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44954         fi
44955
44956 cat >>confdefs.h <<_ACEOF
44957 #define SLAPD_OVER_PROXYCACHE $MFLAG
44958 _ACEOF
44959
44960 fi
44961
44962 if test "$ol_enable_refint" != no ; then
44963         BUILD_REFINT=$ol_enable_refint
44964         if test "$ol_enable_refint" = mod ; then
44965                 MFLAG=SLAPD_MOD_DYNAMIC
44966                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44967         else
44968                 MFLAG=SLAPD_MOD_STATIC
44969                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44970         fi
44971
44972 cat >>confdefs.h <<_ACEOF
44973 #define SLAPD_OVER_REFINT $MFLAG
44974 _ACEOF
44975
44976 fi
44977
44978 if test "$ol_enable_retcode" != no ; then
44979         BUILD_RETCODE=$ol_enable_retcode
44980         if test "$ol_enable_retcode" = mod ; then
44981                 MFLAG=SLAPD_MOD_DYNAMIC
44982                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44983         else
44984                 MFLAG=SLAPD_MOD_STATIC
44985                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44986         fi
44987
44988 cat >>confdefs.h <<_ACEOF
44989 #define SLAPD_OVER_RETCODE $MFLAG
44990 _ACEOF
44991
44992 fi
44993
44994 if test "$ol_enable_rwm" != no ; then
44995         BUILD_REWRITE=yes
44996         BUILD_RWM=$ol_enable_rwm
44997         if test "$ol_enable_rwm" = mod ; then
44998                 MFLAG=SLAPD_MOD_DYNAMIC
44999                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
45000         else
45001                 MFLAG=SLAPD_MOD_STATIC
45002                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
45003         fi
45004
45005 cat >>confdefs.h <<_ACEOF
45006 #define SLAPD_OVER_RWM $MFLAG
45007 _ACEOF
45008
45009 fi
45010
45011 if test "$ol_enable_seqmod" != no ; then
45012         BUILD_SEQMOD=$ol_enable_seqmod
45013         if test "$ol_enable_seqmod" = mod ; then
45014                 MFLAG=SLAPD_MOD_DYNAMIC
45015                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
45016         else
45017                 MFLAG=SLAPD_MOD_STATIC
45018                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
45019         fi
45020
45021 cat >>confdefs.h <<_ACEOF
45022 #define SLAPD_OVER_SEQMOD $MFLAG
45023 _ACEOF
45024
45025 fi
45026
45027 if test "$ol_enable_syncprov" != no ; then
45028         BUILD_SYNCPROV=$ol_enable_syncprov
45029         if test "$ol_enable_syncprov" = mod ; then
45030                 MFLAG=SLAPD_MOD_DYNAMIC
45031                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
45032         else
45033                 MFLAG=SLAPD_MOD_STATIC
45034                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
45035         fi
45036
45037 cat >>confdefs.h <<_ACEOF
45038 #define SLAPD_OVER_SYNCPROV $MFLAG
45039 _ACEOF
45040
45041 fi
45042
45043 if test "$ol_enable_translucent" != no ; then
45044         BUILD_TRANSLUCENT=$ol_enable_translucent
45045         if test "$ol_enable_translucent" = mod ; then
45046                 MFLAG=SLAPD_MOD_DYNAMIC
45047                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
45048         else
45049                 MFLAG=SLAPD_MOD_STATIC
45050                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
45051         fi
45052
45053 cat >>confdefs.h <<_ACEOF
45054 #define SLAPD_OVER_TRANSLUCENT $MFLAG
45055 _ACEOF
45056
45057 fi
45058
45059 if test "$ol_enable_unique" != no ; then
45060         BUILD_UNIQUE=$ol_enable_unique
45061         if test "$ol_enable_unique" = mod ; then
45062                 MFLAG=SLAPD_MOD_DYNAMIC
45063                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
45064         else
45065                 MFLAG=SLAPD_MOD_STATIC
45066                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
45067         fi
45068
45069 cat >>confdefs.h <<_ACEOF
45070 #define SLAPD_OVER_UNIQUE $MFLAG
45071 _ACEOF
45072
45073 fi
45074
45075 if test "$ol_enable_valsort" != no ; then
45076         BUILD_VALSORT=$ol_enable_valsort
45077         if test "$ol_enable_valsort" = mod ; then
45078                 MFLAG=SLAPD_MOD_DYNAMIC
45079                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
45080         else
45081                 MFLAG=SLAPD_MOD_STATIC
45082                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
45083         fi
45084
45085 cat >>confdefs.h <<_ACEOF
45086 #define SLAPD_OVER_VALSORT $MFLAG
45087 _ACEOF
45088
45089 fi
45090
45091 if test "$ol_enable_rewrite" != no ; then
45092
45093 cat >>confdefs.h <<\_ACEOF
45094 #define ENABLE_REWRITE 1
45095 _ACEOF
45096
45097         BUILD_REWRITE=yes
45098 fi
45099
45100 if test "$ol_enable_slapi" != no ; then
45101
45102 cat >>confdefs.h <<\_ACEOF
45103 #define ENABLE_SLAPI 1
45104 _ACEOF
45105
45106         BUILD_SLAPI=yes
45107         SLAPD_SLAPI_DEPEND=libslapi.a
45108 fi
45109
45110
45111
45112 if test "$ac_cv_mingw32" = yes ; then
45113         PLAT=NT
45114         SLAPD_MODULES_LDFLAGS=
45115 else
45116         PLAT=UNIX
45117 fi
45118
45119
45120
45121
45122
45123
45124
45125
45126
45127
45128
45129
45130
45131
45132
45133
45134
45135
45136
45137
45138
45139
45140
45141
45142
45143
45144
45145
45146
45147
45148
45149
45150
45151
45152
45153
45154
45155
45156
45157
45158
45159
45160
45161
45162
45163
45164
45165
45166
45167
45168
45169
45170
45171
45172
45173
45174
45175
45176
45177
45178
45179
45180
45181
45182
45183
45184
45185
45186
45187
45188
45189
45190
45191
45192
45193
45194
45195
45196
45197
45198
45199
45200
45201 # Check whether --with-xxinstall was given.
45202 if test "${with_xxinstall+set}" = set; then
45203   withval=$with_xxinstall;
45204 fi
45205
45206
45207
45208 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-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-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"
45209
45210
45211 ac_config_commands="$ac_config_commands default"
45212
45213
45214
45215 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45216 # Let make expand exec_prefix.
45217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45218
45219 DEFS=-DHAVE_CONFIG_H
45220
45221 ac_libobjs=
45222 ac_ltlibobjs=
45223 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45224   # 1. Remove the extension, and $U if already installed.
45225   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45226   ac_i=`echo "$ac_i" | sed "$ac_script"`
45227   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45228   #    will be set to the directory where LIBOBJS objects are built.
45229   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45230   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45231 done
45232 LIBOBJS=$ac_libobjs
45233
45234 LTLIBOBJS=$ac_ltlibobjs
45235
45236
45237 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45238   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45239 Usually this means the macro was only invoked conditionally." >&5
45240 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45241 Usually this means the macro was only invoked conditionally." >&2;}
45242    { (exit 1); exit 1; }; }
45243 fi
45244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45245   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45246 Usually this means the macro was only invoked conditionally." >&5
45247 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45248 Usually this means the macro was only invoked conditionally." >&2;}
45249    { (exit 1); exit 1; }; }
45250 fi
45251 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45252   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45253 Usually this means the macro was only invoked conditionally." >&5
45254 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45255 Usually this means the macro was only invoked conditionally." >&2;}
45256    { (exit 1); exit 1; }; }
45257 fi
45258
45259 : ${CONFIG_STATUS=./config.status}
45260 ac_clean_files_save=$ac_clean_files
45261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45262 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45263 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45264 cat >$CONFIG_STATUS <<_ACEOF
45265 #! $SHELL
45266 # Generated by $as_me.
45267 # Run this file to recreate the current configuration.
45268 # Compiler output produced by configure, useful for debugging
45269 # configure, is in config.log if it exists.
45270
45271 debug=false
45272 ac_cs_recheck=false
45273 ac_cs_silent=false
45274 SHELL=\${CONFIG_SHELL-$SHELL}
45275 _ACEOF
45276
45277 cat >>$CONFIG_STATUS <<\_ACEOF
45278 ## --------------------- ##
45279 ## M4sh Initialization.  ##
45280 ## --------------------- ##
45281
45282 # Be Bourne compatible
45283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45284   emulate sh
45285   NULLCMD=:
45286   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45287   # is contrary to our usage.  Disable this feature.
45288   alias -g '${1+"$@"}'='"$@"'
45289   setopt NO_GLOB_SUBST
45290 else
45291   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
45292 fi
45293 BIN_SH=xpg4; export BIN_SH # for Tru64
45294 DUALCASE=1; export DUALCASE # for MKS sh
45295
45296
45297 # PATH needs CR
45298 # Avoid depending upon Character Ranges.
45299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45302 as_cr_digits='0123456789'
45303 as_cr_alnum=$as_cr_Letters$as_cr_digits
45304
45305 # The user is always right.
45306 if test "${PATH_SEPARATOR+set}" != set; then
45307   echo "#! /bin/sh" >conf$$.sh
45308   echo  "exit 0"   >>conf$$.sh
45309   chmod +x conf$$.sh
45310   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45311     PATH_SEPARATOR=';'
45312   else
45313     PATH_SEPARATOR=:
45314   fi
45315   rm -f conf$$.sh
45316 fi
45317
45318 # Support unset when possible.
45319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45320   as_unset=unset
45321 else
45322   as_unset=false
45323 fi
45324
45325
45326 # IFS
45327 # We need space, tab and new line, in precisely that order.  Quoting is
45328 # there to prevent editors from complaining about space-tab.
45329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45330 # splitting by setting IFS to empty value.)
45331 as_nl='
45332 '
45333 IFS=" ""        $as_nl"
45334
45335 # Find who we are.  Look in the path if we contain no directory separator.
45336 case $0 in
45337   *[\\/]* ) as_myself=$0 ;;
45338   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45339 for as_dir in $PATH
45340 do
45341   IFS=$as_save_IFS
45342   test -z "$as_dir" && as_dir=.
45343   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45344 done
45345 IFS=$as_save_IFS
45346
45347      ;;
45348 esac
45349 # We did not find ourselves, most probably we were run as `sh COMMAND'
45350 # in which case we are not to be found in the path.
45351 if test "x$as_myself" = x; then
45352   as_myself=$0
45353 fi
45354 if test ! -f "$as_myself"; then
45355   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45356   { (exit 1); exit 1; }
45357 fi
45358
45359 # Work around bugs in pre-3.0 UWIN ksh.
45360 for as_var in ENV MAIL MAILPATH
45361 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45362 done
45363 PS1='$ '
45364 PS2='> '
45365 PS4='+ '
45366
45367 # NLS nuisances.
45368 for as_var in \
45369   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45370   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45371   LC_TELEPHONE LC_TIME
45372 do
45373   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45374     eval $as_var=C; export $as_var
45375   else
45376     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45377   fi
45378 done
45379
45380 # Required to use basename.
45381 if expr a : '\(a\)' >/dev/null 2>&1 &&
45382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45383   as_expr=expr
45384 else
45385   as_expr=false
45386 fi
45387
45388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45389   as_basename=basename
45390 else
45391   as_basename=false
45392 fi
45393
45394
45395 # Name of the executable.
45396 as_me=`$as_basename -- "$0" ||
45397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45398          X"$0" : 'X\(//\)$' \| \
45399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45400 echo X/"$0" |
45401     sed '/^.*\/\([^/][^/]*\)\/*$/{
45402             s//\1/
45403             q
45404           }
45405           /^X\/\(\/\/\)$/{
45406             s//\1/
45407             q
45408           }
45409           /^X\/\(\/\).*/{
45410             s//\1/
45411             q
45412           }
45413           s/.*/./; q'`
45414
45415 # CDPATH.
45416 $as_unset CDPATH
45417
45418
45419
45420   as_lineno_1=$LINENO
45421   as_lineno_2=$LINENO
45422   test "x$as_lineno_1" != "x$as_lineno_2" &&
45423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
45424
45425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45426   # uniformly replaced by the line number.  The first 'sed' inserts a
45427   # line-number line after each line using $LINENO; the second 'sed'
45428   # does the real work.  The second script uses 'N' to pair each
45429   # line-number line with the line containing $LINENO, and appends
45430   # trailing '-' during substitution so that $LINENO is not a special
45431   # case at line end.
45432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
45434   # E. McMahon (1931-1989) for sed's syntax.  :-)
45435   sed -n '
45436     p
45437     /[$]LINENO/=
45438   ' <$as_myself |
45439     sed '
45440       s/[$]LINENO.*/&-/
45441       t lineno
45442       b
45443       :lineno
45444       N
45445       :loop
45446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45447       t loop
45448       s/-\n.*//
45449     ' >$as_me.lineno &&
45450   chmod +x "$as_me.lineno" ||
45451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
45452    { (exit 1); exit 1; }; }
45453
45454   # Don't try to exec as it changes $[0], causing all sort of problems
45455   # (the dirname of $[0] is not the place where we might find the
45456   # original and so on.  Autoconf is especially sensitive to this).
45457   . "./$as_me.lineno"
45458   # Exit status is that of the last command.
45459   exit
45460 }
45461
45462
45463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45464   as_dirname=dirname
45465 else
45466   as_dirname=false
45467 fi
45468
45469 ECHO_C= ECHO_N= ECHO_T=
45470 case `echo -n x` in
45471 -n*)
45472   case `echo 'x\c'` in
45473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45474   *)   ECHO_C='\c';;
45475   esac;;
45476 *)
45477   ECHO_N='-n';;
45478 esac
45479
45480 if expr a : '\(a\)' >/dev/null 2>&1 &&
45481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45482   as_expr=expr
45483 else
45484   as_expr=false
45485 fi
45486
45487 rm -f conf$$ conf$$.exe conf$$.file
45488 if test -d conf$$.dir; then
45489   rm -f conf$$.dir/conf$$.file
45490 else
45491   rm -f conf$$.dir
45492   mkdir conf$$.dir
45493 fi
45494 echo >conf$$.file
45495 if ln -s conf$$.file conf$$ 2>/dev/null; then
45496   as_ln_s='ln -s'
45497   # ... but there are two gotchas:
45498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45500   # In both cases, we have to default to `cp -p'.
45501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45502     as_ln_s='cp -p'
45503 elif ln conf$$.file conf$$ 2>/dev/null; then
45504   as_ln_s=ln
45505 else
45506   as_ln_s='cp -p'
45507 fi
45508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45509 rmdir conf$$.dir 2>/dev/null
45510
45511 if mkdir -p . 2>/dev/null; then
45512   as_mkdir_p=:
45513 else
45514   test -d ./-p && rmdir ./-p
45515   as_mkdir_p=false
45516 fi
45517
45518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
45519 # systems may use methods other than mode bits to determine executability.
45520 cat >conf$$.file <<_ASEOF
45521 #! /bin/sh
45522 exit 0
45523 _ASEOF
45524 chmod +x conf$$.file
45525 if test -x conf$$.file >/dev/null 2>&1; then
45526   as_executable_p="test -x"
45527 else
45528   as_executable_p=:
45529 fi
45530 rm -f conf$$.file
45531
45532 # Sed expression to map a string onto a valid CPP name.
45533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45534
45535 # Sed expression to map a string onto a valid variable name.
45536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45537
45538
45539 exec 6>&1
45540
45541 # Save the log message, to keep $[0] and so on meaningful, and to
45542 # report actual input values of CONFIG_FILES etc. instead of their
45543 # values after options handling.
45544 ac_log="
45545 This file was extended by $as_me, which was
45546 generated by GNU Autoconf 2.60.  Invocation command line was
45547
45548   CONFIG_FILES    = $CONFIG_FILES
45549   CONFIG_HEADERS  = $CONFIG_HEADERS
45550   CONFIG_LINKS    = $CONFIG_LINKS
45551   CONFIG_COMMANDS = $CONFIG_COMMANDS
45552   $ $0 $@
45553
45554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45555 "
45556
45557 _ACEOF
45558
45559 cat >>$CONFIG_STATUS <<_ACEOF
45560 # Files that config.status was made for.
45561 config_files="$ac_config_files"
45562 config_headers="$ac_config_headers"
45563 config_commands="$ac_config_commands"
45564
45565 _ACEOF
45566
45567 cat >>$CONFIG_STATUS <<\_ACEOF
45568 ac_cs_usage="\
45569 \`$as_me' instantiates files from templates according to the
45570 current configuration.
45571
45572 Usage: $0 [OPTIONS] [FILE]...
45573
45574   -h, --help       print this help, then exit
45575   -V, --version    print version number, then exit
45576   -q, --quiet      do not print progress messages
45577   -d, --debug      don't remove temporary files
45578       --recheck    update $as_me by reconfiguring in the same conditions
45579   --file=FILE[:TEMPLATE]
45580                    instantiate the configuration file FILE
45581   --header=FILE[:TEMPLATE]
45582                    instantiate the configuration header FILE
45583
45584 Configuration files:
45585 $config_files
45586
45587 Configuration headers:
45588 $config_headers
45589
45590 Configuration commands:
45591 $config_commands
45592
45593 Report bugs to <bug-autoconf@gnu.org>."
45594
45595 _ACEOF
45596 cat >>$CONFIG_STATUS <<_ACEOF
45597 ac_cs_version="\\
45598 config.status
45599 configured by $0, generated by GNU Autoconf 2.60,
45600   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45601
45602 Copyright (C) 2006 Free Software Foundation, Inc.
45603 This config.status script is free software; the Free Software Foundation
45604 gives unlimited permission to copy, distribute and modify it."
45605
45606 ac_pwd='$ac_pwd'
45607 srcdir='$srcdir'
45608 INSTALL='$INSTALL'
45609 _ACEOF
45610
45611 cat >>$CONFIG_STATUS <<\_ACEOF
45612 # If no file are specified by the user, then we need to provide default
45613 # value.  By we need to know if files were specified by the user.
45614 ac_need_defaults=:
45615 while test $# != 0
45616 do
45617   case $1 in
45618   --*=*)
45619     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45620     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45621     ac_shift=:
45622     ;;
45623   *)
45624     ac_option=$1
45625     ac_optarg=$2
45626     ac_shift=shift
45627     ;;
45628   esac
45629
45630   case $ac_option in
45631   # Handling of the options.
45632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45633     ac_cs_recheck=: ;;
45634   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45635     echo "$ac_cs_version"; exit ;;
45636   --debug | --debu | --deb | --de | --d | -d )
45637     debug=: ;;
45638   --file | --fil | --fi | --f )
45639     $ac_shift
45640     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45641     ac_need_defaults=false;;
45642   --header | --heade | --head | --hea )
45643     $ac_shift
45644     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45645     ac_need_defaults=false;;
45646   --he | --h)
45647     # Conflict between --help and --header
45648     { echo "$as_me: error: ambiguous option: $1
45649 Try \`$0 --help' for more information." >&2
45650    { (exit 1); exit 1; }; };;
45651   --help | --hel | -h )
45652     echo "$ac_cs_usage"; exit ;;
45653   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45654   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45655     ac_cs_silent=: ;;
45656
45657   # This is an error.
45658   -*) { echo "$as_me: error: unrecognized option: $1
45659 Try \`$0 --help' for more information." >&2
45660    { (exit 1); exit 1; }; } ;;
45661
45662   *) ac_config_targets="$ac_config_targets $1"
45663      ac_need_defaults=false ;;
45664
45665   esac
45666   shift
45667 done
45668
45669 ac_configure_extra_args=
45670
45671 if $ac_cs_silent; then
45672   exec 6>/dev/null
45673   ac_configure_extra_args="$ac_configure_extra_args --silent"
45674 fi
45675
45676 _ACEOF
45677 cat >>$CONFIG_STATUS <<_ACEOF
45678 if \$ac_cs_recheck; then
45679   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45680   CONFIG_SHELL=$SHELL
45681   export CONFIG_SHELL
45682   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45683 fi
45684
45685 _ACEOF
45686 cat >>$CONFIG_STATUS <<\_ACEOF
45687 exec 5>>config.log
45688 {
45689   echo
45690   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45691 ## Running $as_me. ##
45692 _ASBOX
45693   echo "$ac_log"
45694 } >&5
45695
45696 _ACEOF
45697 cat >>$CONFIG_STATUS <<_ACEOF
45698 #
45699 # INIT-COMMANDS
45700 #
45701 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45702
45703 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45704 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45705
45706
45707 _ACEOF
45708
45709 cat >>$CONFIG_STATUS <<\_ACEOF
45710
45711 # Handling of arguments.
45712 for ac_config_target in $ac_config_targets
45713 do
45714   case $ac_config_target in
45715     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45716     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45717     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45718     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45719     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45720     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45721     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45722     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45723     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45724     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45725     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45726     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45727     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45728     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45729     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45730     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45731     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45732     "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" ;;
45733     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45734     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45735     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45736     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45737     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45738     "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" ;;
45739     "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" ;;
45740     "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" ;;
45741     "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" ;;
45742     "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" ;;
45743     "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" ;;
45744     "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" ;;
45745     "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" ;;
45746     "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" ;;
45747     "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" ;;
45748     "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" ;;
45749     "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" ;;
45750     "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" ;;
45751     "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" ;;
45752     "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" ;;
45753     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45754     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45755     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45756     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45757     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45758
45759   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45760 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45761    { (exit 1); exit 1; }; };;
45762   esac
45763 done
45764
45765
45766 # If the user did not use the arguments to specify the items to instantiate,
45767 # then the envvar interface is used.  Set only those that are not.
45768 # We use the long form for the default assignment because of an extremely
45769 # bizarre bug on SunOS 4.1.3.
45770 if $ac_need_defaults; then
45771   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45772   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45773   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45774 fi
45775
45776 # Have a temporary directory for convenience.  Make it in the build tree
45777 # simply because there is no reason against having it here, and in addition,
45778 # creating and moving files from /tmp can sometimes cause problems.
45779 # Hook for its removal unless debugging.
45780 # Note that there is a small window in which the directory will not be cleaned:
45781 # after its creation but before its name has been assigned to `$tmp'.
45782 $debug ||
45783 {
45784   tmp=
45785   trap 'exit_status=$?
45786   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45787 ' 0
45788   trap '{ (exit 1); exit 1; }' 1 2 13 15
45789 }
45790 # Create a (secure) tmp directory for tmp files.
45791
45792 {
45793   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45794   test -n "$tmp" && test -d "$tmp"
45795 }  ||
45796 {
45797   tmp=./conf$$-$RANDOM
45798   (umask 077 && mkdir "$tmp")
45799 } ||
45800 {
45801    echo "$me: cannot create a temporary directory in ." >&2
45802    { (exit 1); exit 1; }
45803 }
45804
45805 #
45806 # Set up the sed scripts for CONFIG_FILES section.
45807 #
45808
45809 # No need to generate the scripts if there are no CONFIG_FILES.
45810 # This happens for instance when ./config.status config.h
45811 if test -n "$CONFIG_FILES"; then
45812
45813 _ACEOF
45814
45815
45816
45817 ac_delim='%!_!# '
45818 for ac_last_try in false false false false false :; do
45819   cat >conf$$subs.sed <<_ACEOF
45820 SHELL!$SHELL$ac_delim
45821 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45822 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45823 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45824 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45825 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45826 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45827 exec_prefix!$exec_prefix$ac_delim
45828 prefix!$prefix$ac_delim
45829 program_transform_name!$program_transform_name$ac_delim
45830 bindir!$bindir$ac_delim
45831 sbindir!$sbindir$ac_delim
45832 libexecdir!$libexecdir$ac_delim
45833 datarootdir!$datarootdir$ac_delim
45834 datadir!$datadir$ac_delim
45835 sysconfdir!$sysconfdir$ac_delim
45836 sharedstatedir!$sharedstatedir$ac_delim
45837 localstatedir!$localstatedir$ac_delim
45838 includedir!$includedir$ac_delim
45839 oldincludedir!$oldincludedir$ac_delim
45840 docdir!$docdir$ac_delim
45841 infodir!$infodir$ac_delim
45842 htmldir!$htmldir$ac_delim
45843 dvidir!$dvidir$ac_delim
45844 pdfdir!$pdfdir$ac_delim
45845 psdir!$psdir$ac_delim
45846 libdir!$libdir$ac_delim
45847 localedir!$localedir$ac_delim
45848 mandir!$mandir$ac_delim
45849 DEFS!$DEFS$ac_delim
45850 ECHO_C!$ECHO_C$ac_delim
45851 ECHO_N!$ECHO_N$ac_delim
45852 ECHO_T!$ECHO_T$ac_delim
45853 LIBS!$LIBS$ac_delim
45854 build_alias!$build_alias$ac_delim
45855 host_alias!$host_alias$ac_delim
45856 target_alias!$target_alias$ac_delim
45857 build!$build$ac_delim
45858 build_cpu!$build_cpu$ac_delim
45859 build_vendor!$build_vendor$ac_delim
45860 build_os!$build_os$ac_delim
45861 host!$host$ac_delim
45862 host_cpu!$host_cpu$ac_delim
45863 host_vendor!$host_vendor$ac_delim
45864 host_os!$host_os$ac_delim
45865 target!$target$ac_delim
45866 target_cpu!$target_cpu$ac_delim
45867 target_vendor!$target_vendor$ac_delim
45868 target_os!$target_os$ac_delim
45869 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45870 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45871 INSTALL_DATA!$INSTALL_DATA$ac_delim
45872 CYGPATH_W!$CYGPATH_W$ac_delim
45873 PACKAGE!$PACKAGE$ac_delim
45874 VERSION!$VERSION$ac_delim
45875 ACLOCAL!$ACLOCAL$ac_delim
45876 AUTOCONF!$AUTOCONF$ac_delim
45877 AUTOMAKE!$AUTOMAKE$ac_delim
45878 AUTOHEADER!$AUTOHEADER$ac_delim
45879 MAKEINFO!$MAKEINFO$ac_delim
45880 install_sh!$install_sh$ac_delim
45881 STRIP!$STRIP$ac_delim
45882 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
45883 mkdir_p!$mkdir_p$ac_delim
45884 AWK!$AWK$ac_delim
45885 SET_MAKE!$SET_MAKE$ac_delim
45886 am__leading_dot!$am__leading_dot$ac_delim
45887 AMTAR!$AMTAR$ac_delim
45888 am__tar!$am__tar$ac_delim
45889 am__untar!$am__untar$ac_delim
45890 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
45891 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
45892 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
45893 top_builddir!$top_builddir$ac_delim
45894 ldap_subdir!$ldap_subdir$ac_delim
45895 CC!$CC$ac_delim
45896 AR!$AR$ac_delim
45897 CFLAGS!$CFLAGS$ac_delim
45898 LDFLAGS!$LDFLAGS$ac_delim
45899 CPPFLAGS!$CPPFLAGS$ac_delim
45900 ac_ct_CC!$ac_ct_CC$ac_delim
45901 EXEEXT!$EXEEXT$ac_delim
45902 OBJEXT!$OBJEXT$ac_delim
45903 DEPDIR!$DEPDIR$ac_delim
45904 am__include!$am__include$ac_delim
45905 am__quote!$am__quote$ac_delim
45906 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
45907 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
45908 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
45909 CCDEPMODE!$CCDEPMODE$ac_delim
45910 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
45911 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
45912 GREP!$GREP$ac_delim
45913 EGREP!$EGREP$ac_delim
45914 LN_S!$LN_S$ac_delim
45915 ECHO!$ECHO$ac_delim
45916 RANLIB!$RANLIB$ac_delim
45917 _ACEOF
45918
45919   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45920     break
45921   elif $ac_last_try; then
45922     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45923 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45924    { (exit 1); exit 1; }; }
45925   else
45926     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45927   fi
45928 done
45929
45930 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45931 if test -n "$ac_eof"; then
45932   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45933   ac_eof=`expr $ac_eof + 1`
45934 fi
45935
45936 cat >>$CONFIG_STATUS <<_ACEOF
45937 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45939 _ACEOF
45940 sed '
45941 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45942 s/^/s,@/; s/!/@,|#_!!_#|/
45943 :n
45944 t n
45945 s/'"$ac_delim"'$/,g/; t
45946 s/$/\\/; p
45947 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45948 ' >>$CONFIG_STATUS <conf$$subs.sed
45949 rm -f conf$$subs.sed
45950 cat >>$CONFIG_STATUS <<_ACEOF
45951 CEOF$ac_eof
45952 _ACEOF
45953
45954
45955 ac_delim='%!_!# '
45956 for ac_last_try in false false false false false :; do
45957   cat >conf$$subs.sed <<_ACEOF
45958 DLLTOOL!$DLLTOOL$ac_delim
45959 AS!$AS$ac_delim
45960 OBJDUMP!$OBJDUMP$ac_delim
45961 CPP!$CPP$ac_delim
45962 LIBTOOL!$LIBTOOL$ac_delim
45963 PERLBIN!$PERLBIN$ac_delim
45964 OL_MKDEP!$OL_MKDEP$ac_delim
45965 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
45966 LTSTATIC!$LTSTATIC$ac_delim
45967 LIBOBJS!$LIBOBJS$ac_delim
45968 LIBSRCS!$LIBSRCS$ac_delim
45969 PLAT!$PLAT$ac_delim
45970 WITH_SASL!$WITH_SASL$ac_delim
45971 WITH_TLS!$WITH_TLS$ac_delim
45972 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
45973 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
45974 BUILD_THREAD!$BUILD_THREAD$ac_delim
45975 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
45976 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
45977 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
45978 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
45979 BUILD_BDB!$BUILD_BDB$ac_delim
45980 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
45981 BUILD_HDB!$BUILD_HDB$ac_delim
45982 BUILD_LDAP!$BUILD_LDAP$ac_delim
45983 BUILD_META!$BUILD_META$ac_delim
45984 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
45985 BUILD_NULL!$BUILD_NULL$ac_delim
45986 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
45987 BUILD_RELAY!$BUILD_RELAY$ac_delim
45988 BUILD_PERL!$BUILD_PERL$ac_delim
45989 BUILD_SHELL!$BUILD_SHELL$ac_delim
45990 BUILD_SQL!$BUILD_SQL$ac_delim
45991 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
45992 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
45993 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
45994 BUILD_DDS!$BUILD_DDS$ac_delim
45995 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
45996 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
45997 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
45998 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
45999 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
46000 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
46001 BUILD_REFINT!$BUILD_REFINT$ac_delim
46002 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
46003 BUILD_RWM!$BUILD_RWM$ac_delim
46004 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
46005 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
46006 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
46007 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
46008 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
46009 LDAP_LIBS!$LDAP_LIBS$ac_delim
46010 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
46011 BDB_LIBS!$BDB_LIBS$ac_delim
46012 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
46013 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
46014 WRAP_LIBS!$WRAP_LIBS$ac_delim
46015 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
46016 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
46017 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
46018 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
46019 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
46020 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
46021 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
46022 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
46023 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
46024 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
46025 KRB4_LIBS!$KRB4_LIBS$ac_delim
46026 KRB5_LIBS!$KRB5_LIBS$ac_delim
46027 SASL_LIBS!$SASL_LIBS$ac_delim
46028 TLS_LIBS!$TLS_LIBS$ac_delim
46029 MODULES_LIBS!$MODULES_LIBS$ac_delim
46030 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
46031 LIBSLAPI!$LIBSLAPI$ac_delim
46032 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
46033 AUTH_LIBS!$AUTH_LIBS$ac_delim
46034 ICU_LIBS!$ICU_LIBS$ac_delim
46035 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
46036 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
46037 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
46038 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
46039 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
46040 LTLIBOBJS!$LTLIBOBJS$ac_delim
46041 _ACEOF
46042
46043   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
46044     break
46045   elif $ac_last_try; then
46046     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46047 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46048    { (exit 1); exit 1; }; }
46049   else
46050     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46051   fi
46052 done
46053
46054 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46055 if test -n "$ac_eof"; then
46056   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46057   ac_eof=`expr $ac_eof + 1`
46058 fi
46059
46060 cat >>$CONFIG_STATUS <<_ACEOF
46061 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
46062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
46063 _ACEOF
46064 sed '
46065 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46066 s/^/s,@/; s/!/@,|#_!!_#|/
46067 :n
46068 t n
46069 s/'"$ac_delim"'$/,g/; t
46070 s/$/\\/; p
46071 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46072 ' >>$CONFIG_STATUS <conf$$subs.sed
46073 rm -f conf$$subs.sed
46074 cat >>$CONFIG_STATUS <<_ACEOF
46075 :end
46076 s/|#_!!_#|//g
46077 CEOF$ac_eof
46078 _ACEOF
46079
46080
46081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46083 # trailing colons and then remove the whole line if VPATH becomes empty
46084 # (actually we leave an empty line to preserve line numbers).
46085 if test "x$srcdir" = x.; then
46086   ac_vpsub='/^[  ]*VPATH[        ]*=/{
46087 s/:*\$(srcdir):*/:/
46088 s/:*\${srcdir}:*/:/
46089 s/:*@srcdir@:*/:/
46090 s/^\([^=]*=[     ]*\):*/\1/
46091 s/:*$//
46092 s/^[^=]*=[       ]*$//
46093 }'
46094 fi
46095
46096 cat >>$CONFIG_STATUS <<\_ACEOF
46097 fi # test -n "$CONFIG_FILES"
46098
46099
46100 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
46101 do
46102   case $ac_tag in
46103   :[FHLC]) ac_mode=$ac_tag; continue;;
46104   esac
46105   case $ac_mode$ac_tag in
46106   :[FHL]*:*);;
46107   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
46108 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
46109    { (exit 1); exit 1; }; };;
46110   :[FH]-) ac_tag=-:-;;
46111   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46112   esac
46113   ac_save_IFS=$IFS
46114   IFS=:
46115   set x $ac_tag
46116   IFS=$ac_save_IFS
46117   shift
46118   ac_file=$1
46119   shift
46120
46121   case $ac_mode in
46122   :L) ac_source=$1;;
46123   :[FH])
46124     ac_file_inputs=
46125     for ac_f
46126     do
46127       case $ac_f in
46128       -) ac_f="$tmp/stdin";;
46129       *) # Look for the file first in the build tree, then in the source tree
46130          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46131          # because $ac_f cannot contain `:'.
46132          test -f "$ac_f" ||
46133            case $ac_f in
46134            [\\/$]*) false;;
46135            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46136            esac ||
46137            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46138 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46139    { (exit 1); exit 1; }; };;
46140       esac
46141       ac_file_inputs="$ac_file_inputs $ac_f"
46142     done
46143
46144     # Let's still pretend it is `configure' which instantiates (i.e., don't
46145     # use $as_me), people would be surprised to read:
46146     #    /* config.h.  Generated by config.status.  */
46147     configure_input="Generated from "`IFS=:
46148           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
46149     if test x"$ac_file" != x-; then
46150       configure_input="$ac_file.  $configure_input"
46151       { echo "$as_me:$LINENO: creating $ac_file" >&5
46152 echo "$as_me: creating $ac_file" >&6;}
46153     fi
46154
46155     case $ac_tag in
46156     *:-:* | *:-) cat >"$tmp/stdin";;
46157     esac
46158     ;;
46159   esac
46160
46161   ac_dir=`$as_dirname -- "$ac_file" ||
46162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46163          X"$ac_file" : 'X\(//\)[^/]' \| \
46164          X"$ac_file" : 'X\(//\)$' \| \
46165          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46166 echo X"$ac_file" |
46167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46168             s//\1/
46169             q
46170           }
46171           /^X\(\/\/\)[^/].*/{
46172             s//\1/
46173             q
46174           }
46175           /^X\(\/\/\)$/{
46176             s//\1/
46177             q
46178           }
46179           /^X\(\/\).*/{
46180             s//\1/
46181             q
46182           }
46183           s/.*/./; q'`
46184   { as_dir="$ac_dir"
46185   case $as_dir in #(
46186   -*) as_dir=./$as_dir;;
46187   esac
46188   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46189     as_dirs=
46190     while :; do
46191       case $as_dir in #(
46192       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46193       *) as_qdir=$as_dir;;
46194       esac
46195       as_dirs="'$as_qdir' $as_dirs"
46196       as_dir=`$as_dirname -- "$as_dir" ||
46197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46198          X"$as_dir" : 'X\(//\)[^/]' \| \
46199          X"$as_dir" : 'X\(//\)$' \| \
46200          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46201 echo X"$as_dir" |
46202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46203             s//\1/
46204             q
46205           }
46206           /^X\(\/\/\)[^/].*/{
46207             s//\1/
46208             q
46209           }
46210           /^X\(\/\/\)$/{
46211             s//\1/
46212             q
46213           }
46214           /^X\(\/\).*/{
46215             s//\1/
46216             q
46217           }
46218           s/.*/./; q'`
46219       test -d "$as_dir" && break
46220     done
46221     test -z "$as_dirs" || eval "mkdir $as_dirs"
46222   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46223 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46224    { (exit 1); exit 1; }; }; }
46225   ac_builddir=.
46226
46227 case "$ac_dir" in
46228 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46229 *)
46230   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46231   # A ".." for each directory in $ac_dir_suffix.
46232   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46233   case $ac_top_builddir_sub in
46234   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46235   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46236   esac ;;
46237 esac
46238 ac_abs_top_builddir=$ac_pwd
46239 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46240 # for backward compatibility:
46241 ac_top_builddir=$ac_top_build_prefix
46242
46243 case $srcdir in
46244   .)  # We are building in place.
46245     ac_srcdir=.
46246     ac_top_srcdir=$ac_top_builddir_sub
46247     ac_abs_top_srcdir=$ac_pwd ;;
46248   [\\/]* | ?:[\\/]* )  # Absolute name.
46249     ac_srcdir=$srcdir$ac_dir_suffix;
46250     ac_top_srcdir=$srcdir
46251     ac_abs_top_srcdir=$srcdir ;;
46252   *) # Relative name.
46253     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46254     ac_top_srcdir=$ac_top_build_prefix$srcdir
46255     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46256 esac
46257 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46258
46259
46260   case $ac_mode in
46261   :F)
46262   #
46263   # CONFIG_FILE
46264   #
46265
46266   case $INSTALL in
46267   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46268   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46269   esac
46270 _ACEOF
46271
46272 cat >>$CONFIG_STATUS <<\_ACEOF
46273 # If the template does not know about datarootdir, expand it.
46274 # FIXME: This hack should be removed a few years after 2.60.
46275 ac_datarootdir_hack=; ac_datarootdir_seen=
46276
46277 case `sed -n '/datarootdir/ {
46278   p
46279   q
46280 }
46281 /@datadir@/p
46282 /@docdir@/p
46283 /@infodir@/p
46284 /@localedir@/p
46285 /@mandir@/p
46286 ' $ac_file_inputs` in
46287 *datarootdir*) ac_datarootdir_seen=yes;;
46288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46289   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46290 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46291 _ACEOF
46292 cat >>$CONFIG_STATUS <<_ACEOF
46293   ac_datarootdir_hack='
46294   s&@datadir@&$datadir&g
46295   s&@docdir@&$docdir&g
46296   s&@infodir@&$infodir&g
46297   s&@localedir@&$localedir&g
46298   s&@mandir@&$mandir&g
46299     s&\\\${datarootdir}&$datarootdir&g' ;;
46300 esac
46301 _ACEOF
46302
46303 # Neutralize VPATH when `$srcdir' = `.'.
46304 # Shell code in configure.ac might set extrasub.
46305 # FIXME: do we really want to maintain this feature?
46306 cat >>$CONFIG_STATUS <<_ACEOF
46307   sed "$ac_vpsub
46308 $extrasub
46309 _ACEOF
46310 cat >>$CONFIG_STATUS <<\_ACEOF
46311 :t
46312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46313 s&@configure_input@&$configure_input&;t t
46314 s&@top_builddir@&$ac_top_builddir_sub&;t t
46315 s&@srcdir@&$ac_srcdir&;t t
46316 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46317 s&@top_srcdir@&$ac_top_srcdir&;t t
46318 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46319 s&@builddir@&$ac_builddir&;t t
46320 s&@abs_builddir@&$ac_abs_builddir&;t t
46321 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46322 s&@INSTALL@&$ac_INSTALL&;t t
46323 $ac_datarootdir_hack
46324 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
46325
46326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46327   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46328   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46329   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46330 which seems to be undefined.  Please make sure it is defined." >&5
46331 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46332 which seems to be undefined.  Please make sure it is defined." >&2;}
46333
46334   rm -f "$tmp/stdin"
46335   case $ac_file in
46336   -) cat "$tmp/out"; rm -f "$tmp/out";;
46337   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46338   esac
46339  ;;
46340   :H)
46341   #
46342   # CONFIG_HEADER
46343   #
46344 _ACEOF
46345
46346 # Transform confdefs.h into a sed script `conftest.defines', that
46347 # substitutes the proper values into config.h.in to produce config.h.
46348 rm -f conftest.defines conftest.tail
46349 # First, append a space to every undef/define line, to ease matching.
46350 echo 's/$/ /' >conftest.defines
46351 # Then, protect against being on the right side of a sed subst, or in
46352 # an unquoted here document, in config.status.  If some macros were
46353 # called several times there might be several #defines for the same
46354 # symbol, which is useless.  But do not sort them, since the last
46355 # AC_DEFINE must be honored.
46356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46357 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46358 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46359 # PARAMS is the parameter list in the macro definition--in most cases, it's
46360 # just an empty string.
46361 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
46362 ac_dB='\\)[      (].*,\\1define\\2'
46363 ac_dC=' '
46364 ac_dD=' ,'
46365
46366 uniq confdefs.h |
46367   sed -n '
46368         t rset
46369         :rset
46370         s/^[     ]*#[    ]*define[       ][      ]*//
46371         t ok
46372         d
46373         :ok
46374         s/[\\&,]/\\&/g
46375         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46376         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46377   ' >>conftest.defines
46378
46379 # Remove the space that was appended to ease matching.
46380 # Then replace #undef with comments.  This is necessary, for
46381 # example, in the case of _POSIX_SOURCE, which is predefined and required
46382 # on some systems where configure will not decide to define it.
46383 # (The regexp can be short, since the line contains either #define or #undef.)
46384 echo 's/ $//
46385 s,^[     #]*u.*,/* & */,' >>conftest.defines
46386
46387 # Break up conftest.defines:
46388 ac_max_sed_lines=50
46389
46390 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46391 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46392 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46393 # et cetera.
46394 ac_in='$ac_file_inputs'
46395 ac_out='"$tmp/out1"'
46396 ac_nxt='"$tmp/out2"'
46397
46398 while :
46399 do
46400   # Write a here document:
46401     cat >>$CONFIG_STATUS <<_ACEOF
46402     # First, check the format of the line:
46403     cat >"\$tmp/defines.sed" <<\\CEOF
46404 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
46405 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
46406 b
46407 :def
46408 _ACEOF
46409   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46410   echo 'CEOF
46411     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46412   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46413   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46414   grep . conftest.tail >/dev/null || break
46415   rm -f conftest.defines
46416   mv conftest.tail conftest.defines
46417 done
46418 rm -f conftest.defines conftest.tail
46419
46420 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46421 cat >>$CONFIG_STATUS <<\_ACEOF
46422   if test x"$ac_file" != x-; then
46423     echo "/* $configure_input  */" >"$tmp/config.h"
46424     cat "$ac_result" >>"$tmp/config.h"
46425     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46426       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46427 echo "$as_me: $ac_file is unchanged" >&6;}
46428     else
46429       rm -f $ac_file
46430       mv "$tmp/config.h" $ac_file
46431     fi
46432   else
46433     echo "/* $configure_input  */"
46434     cat "$ac_result"
46435   fi
46436   rm -f "$tmp/out12"
46437 # Compute $ac_file's index in $config_headers.
46438 _am_stamp_count=1
46439 for _am_header in $config_headers :; do
46440   case $_am_header in
46441     $ac_file | $ac_file:* )
46442       break ;;
46443     * )
46444       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46445   esac
46446 done
46447 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
46448 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46449          X$ac_file : 'X\(//\)[^/]' \| \
46450          X$ac_file : 'X\(//\)$' \| \
46451          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
46452 echo X$ac_file |
46453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46454             s//\1/
46455             q
46456           }
46457           /^X\(\/\/\)[^/].*/{
46458             s//\1/
46459             q
46460           }
46461           /^X\(\/\/\)$/{
46462             s//\1/
46463             q
46464           }
46465           /^X\(\/\).*/{
46466             s//\1/
46467             q
46468           }
46469           s/.*/./; q'`/stamp-h$_am_stamp_count
46470  ;;
46471
46472   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46473 echo "$as_me: executing $ac_file commands" >&6;}
46474  ;;
46475   esac
46476
46477
46478   case $ac_file$ac_mode in
46479     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46480   # Strip MF so we end up with the name of the file.
46481   mf=`echo "$mf" | sed -e 's/:.*$//'`
46482   # Check whether this is an Automake generated Makefile or not.
46483   # We used to match only the files named `Makefile.in', but
46484   # some people rename them; so instead we look at the file content.
46485   # Grep'ing the first line is not enough: some people post-process
46486   # each Makefile.in and add a new line on top of each file to say so.
46487   # So let's grep whole file.
46488   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46489     dirpart=`$as_dirname -- "$mf" ||
46490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46491          X"$mf" : 'X\(//\)[^/]' \| \
46492          X"$mf" : 'X\(//\)$' \| \
46493          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46494 echo X"$mf" |
46495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46496             s//\1/
46497             q
46498           }
46499           /^X\(\/\/\)[^/].*/{
46500             s//\1/
46501             q
46502           }
46503           /^X\(\/\/\)$/{
46504             s//\1/
46505             q
46506           }
46507           /^X\(\/\).*/{
46508             s//\1/
46509             q
46510           }
46511           s/.*/./; q'`
46512   else
46513     continue
46514   fi
46515   # Extract the definition of DEPDIR, am__include, and am__quote
46516   # from the Makefile without running `make'.
46517   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46518   test -z "$DEPDIR" && continue
46519   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46520   test -z "am__include" && continue
46521   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46522   # When using ansi2knr, U may be empty or an underscore; expand it
46523   U=`sed -n 's/^U = //p' < "$mf"`
46524   # Find all dependency output files, they are included files with
46525   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46526   # simplest approach to changing $(DEPDIR) to its actual value in the
46527   # expansion.
46528   for file in `sed -n "
46529     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46530        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46531     # Make sure the directory exists.
46532     test -f "$dirpart/$file" && continue
46533     fdir=`$as_dirname -- "$file" ||
46534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46535          X"$file" : 'X\(//\)[^/]' \| \
46536          X"$file" : 'X\(//\)$' \| \
46537          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46538 echo X"$file" |
46539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46540             s//\1/
46541             q
46542           }
46543           /^X\(\/\/\)[^/].*/{
46544             s//\1/
46545             q
46546           }
46547           /^X\(\/\/\)$/{
46548             s//\1/
46549             q
46550           }
46551           /^X\(\/\).*/{
46552             s//\1/
46553             q
46554           }
46555           s/.*/./; q'`
46556     { as_dir=$dirpart/$fdir
46557   case $as_dir in #(
46558   -*) as_dir=./$as_dir;;
46559   esac
46560   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46561     as_dirs=
46562     while :; do
46563       case $as_dir in #(
46564       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46565       *) as_qdir=$as_dir;;
46566       esac
46567       as_dirs="'$as_qdir' $as_dirs"
46568       as_dir=`$as_dirname -- "$as_dir" ||
46569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46570          X"$as_dir" : 'X\(//\)[^/]' \| \
46571          X"$as_dir" : 'X\(//\)$' \| \
46572          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46573 echo X"$as_dir" |
46574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46575             s//\1/
46576             q
46577           }
46578           /^X\(\/\/\)[^/].*/{
46579             s//\1/
46580             q
46581           }
46582           /^X\(\/\/\)$/{
46583             s//\1/
46584             q
46585           }
46586           /^X\(\/\).*/{
46587             s//\1/
46588             q
46589           }
46590           s/.*/./; q'`
46591       test -d "$as_dir" && break
46592     done
46593     test -z "$as_dirs" || eval "mkdir $as_dirs"
46594   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46596    { (exit 1); exit 1; }; }; }
46597     # echo "creating $dirpart/$file"
46598     echo '# dummy' > "$dirpart/$file"
46599   done
46600 done
46601  ;;
46602     "default":C)
46603 chmod +x tests/run
46604 date > stamp-h
46605 BACKENDSC="servers/slapd/backends.c"
46606 echo "Making $BACKENDSC"
46607 rm -f $BACKENDSC
46608 cat > $BACKENDSC << ENDX
46609 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46610  *
46611  * Copyright 1998-2007 The OpenLDAP Foundation.
46612  * All rights reserved.
46613  *
46614  * Redistribution and use in source and binary forms, with or without
46615  * modification, are permitted only as authorized by the OpenLDAP
46616  * Public License.
46617  *
46618  * A copy of this license is available in the file LICENSE in the
46619  * top-level directory of the distribution or, alternatively, at
46620  * <http://www.OpenLDAP.org/license.html>.
46621  */
46622 /* This file is automatically generated by configure; please do not edit. */
46623
46624 #include "portable.h"
46625 #include "slap.h"
46626
46627 ENDX
46628 if test "${STATIC_BACKENDS}"; then
46629         for b in config ${STATIC_BACKENDS}; do
46630                 bb=`echo "${b}" | sed -e 's/back-//'`
46631                 cat >> $BACKENDSC << ENDX
46632 extern BI_init ${bb}_back_initialize;
46633 ENDX
46634         done
46635
46636         cat >> $BACKENDSC << ENDX
46637
46638 BackendInfo slap_binfo[] = {
46639 ENDX
46640
46641         for b in config ${STATIC_BACKENDS}; do
46642                 bb=`echo "${b}" | sed -e 's/back-//'`
46643                 echo "    Add ${bb} ..."
46644                 cat >> $BACKENDSC << ENDX
46645         { "${bb}", ${bb}_back_initialize },
46646 ENDX
46647         done
46648
46649         cat >> $BACKENDSC << ENDX
46650         { NULL, NULL },
46651 };
46652
46653 /* end of generated file */
46654 ENDX
46655 fi
46656 OVERLAYSC="servers/slapd/overlays/statover.c"
46657 echo "Making $OVERLAYSC"
46658 rm -f $OVERLAYSC
46659 cat > $OVERLAYSC << ENDX
46660 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46661  *
46662  * Copyright 1998-2007 The OpenLDAP Foundation.
46663  * All rights reserved.
46664  *
46665  * Redistribution and use in source and binary forms, with or without
46666  * modification, are permitted only as authorized by the OpenLDAP
46667  * Public License.
46668  *
46669  * A copy of this license is available in the file LICENSE in the
46670  * top-level directory of the distribution or, alternatively, at
46671  * <http://www.OpenLDAP.org/license.html>.
46672  */
46673 /* This file is automatically generated by configure; please do not edit. */
46674
46675 #include "portable.h"
46676 #include "slap.h"
46677
46678 ENDX
46679 if test "${STATIC_OVERLAYS}"; then
46680         for o in ${STATIC_OVERLAYS}; do
46681                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46682                 cat >> $OVERLAYSC << ENDX
46683 extern OV_init ${oo}_initialize;
46684 ENDX
46685         done
46686 fi
46687
46688 cat >> $OVERLAYSC << ENDX
46689
46690 OverlayInit slap_oinfo[] = {
46691 ENDX
46692
46693 if test "${STATIC_OVERLAYS}"; then
46694         for o in ${STATIC_OVERLAYS}; do
46695                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46696                 echo "    Add ${oo} ..."
46697                 cat >> $OVERLAYSC << ENDX
46698         { "${oo}", ${oo}_initialize },
46699 ENDX
46700         done
46701 fi
46702
46703         cat >> $OVERLAYSC << ENDX
46704         { NULL, NULL },
46705 };
46706
46707 /* end of generated file */
46708 ENDX
46709
46710 echo Please run \"make depend\" to build dependencies
46711  ;;
46712
46713   esac
46714 done # for ac_tag
46715
46716
46717 { (exit 0); exit 0; }
46718 _ACEOF
46719 chmod +x $CONFIG_STATUS
46720 ac_clean_files=$ac_clean_files_save
46721
46722
46723 # configure is writing to config.log, and then calls config.status.
46724 # config.status does its own redirection, appending to config.log.
46725 # Unfortunately, on DOS this fails, as config.log is still kept open
46726 # by configure, so config.status won't be able to write to it; its
46727 # output is simply discarded.  So we exec the FD to /dev/null,
46728 # effectively closing config.log, so it can be properly (re)opened and
46729 # appended to by config.status.  When coming back to configure, we
46730 # need to make the FD available again.
46731 if test "$no_create" != yes; then
46732   ac_cs_success=:
46733   ac_config_status_args=
46734   test "$silent" = yes &&
46735     ac_config_status_args="$ac_config_status_args --quiet"
46736   exec 5>/dev/null
46737   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46738   exec 5>>config.log
46739   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46740   # would make configure fail if this is the last instruction.
46741   $ac_cs_success || { (exit 1); exit 1; }
46742 fi
46743