]> git.sur5r.net Git - openldap/blob - configure
Mostly revert prev commit, broke test054
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.704 2009/09/29 21:53:43 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DEREF
912 BUILD_DYNGROUP
913 BUILD_DYNLIST
914 BUILD_LASTMOD
915 BUILD_MEMBEROF
916 BUILD_PPOLICY
917 BUILD_PROXYCACHE
918 BUILD_REFINT
919 BUILD_RETCODE
920 BUILD_RWM
921 BUILD_SEQMOD
922 BUILD_SSSVLV
923 BUILD_SYNCPROV
924 BUILD_TRANSLUCENT
925 BUILD_UNIQUE
926 BUILD_VALSORT
927 LDAP_LIBS
928 SLAPD_LIBS
929 BDB_LIBS
930 SLAPD_NDB_LIBS
931 SLAPD_NDB_INCS
932 LTHREAD_LIBS
933 LUTIL_LIBS
934 WRAP_LIBS
935 SLAPD_MODULES_CPPFLAGS
936 SLAPD_MODULES_LDFLAGS
937 SLAPD_NO_STATIC
938 SLAPD_STATIC_BACKENDS
939 SLAPD_DYNAMIC_BACKENDS
940 SLAPD_STATIC_OVERLAYS
941 SLAPD_DYNAMIC_OVERLAYS
942 PERL_CPPFLAGS
943 SLAPD_PERL_LDFLAGS
944 MOD_PERL_LDFLAGS
945 KRB4_LIBS
946 KRB5_LIBS
947 SASL_LIBS
948 TLS_LIBS
949 MODULES_LIBS
950 SLAPI_LIBS
951 LIBSLAPI
952 LIBSLAPITOOLS
953 AUTH_LIBS
954 ICU_LIBS
955 SLAPD_SLP_LIBS
956 SLAPD_GMP_LIBS
957 SLAPD_SQL_LDFLAGS
958 SLAPD_SQL_LIBS
959 SLAPD_SQL_INCLUDES
960 LTLIBOBJS'
961 ac_subst_files=''
962       ac_precious_vars='build_alias
963 host_alias
964 target_alias
965 CC
966 CFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
970 CPP'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023   # If the previous option needs an argument, assign it.
1024   if test -n "$ac_prev"; then
1025     eval $ac_prev=\$ac_option
1026     ac_prev=
1027     continue
1028   fi
1029
1030   case $ac_option in
1031   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032   *)    ac_optarg=yes ;;
1033   esac
1034
1035   # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037   case $ac_dashdash$ac_option in
1038   --)
1039     ac_dashdash=yes ;;
1040
1041   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042     ac_prev=bindir ;;
1043   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044     bindir=$ac_optarg ;;
1045
1046   -build | --build | --buil | --bui | --bu)
1047     ac_prev=build_alias ;;
1048   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049     build_alias=$ac_optarg ;;
1050
1051   -cache-file | --cache-file | --cache-fil | --cache-fi \
1052   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053     ac_prev=cache_file ;;
1054   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056     cache_file=$ac_optarg ;;
1057
1058   --config-cache | -C)
1059     cache_file=config.cache ;;
1060
1061   -datadir | --datadir | --datadi | --datad)
1062     ac_prev=datadir ;;
1063   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064     datadir=$ac_optarg ;;
1065
1066   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067   | --dataroo | --dataro | --datar)
1068     ac_prev=datarootdir ;;
1069   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071     datarootdir=$ac_optarg ;;
1072
1073   -disable-* | --disable-*)
1074     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080     eval enable_$ac_feature=no ;;
1081
1082   -docdir | --docdir | --docdi | --doc | --do)
1083     ac_prev=docdir ;;
1084   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085     docdir=$ac_optarg ;;
1086
1087   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088     ac_prev=dvidir ;;
1089   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090     dvidir=$ac_optarg ;;
1091
1092   -enable-* | --enable-*)
1093     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097    { (exit 1); exit 1; }; }
1098     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099     eval enable_$ac_feature=\$ac_optarg ;;
1100
1101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103   | --exec | --exe | --ex)
1104     ac_prev=exec_prefix ;;
1105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107   | --exec=* | --exe=* | --ex=*)
1108     exec_prefix=$ac_optarg ;;
1109
1110   -gas | --gas | --ga | --g)
1111     # Obsolete; use --with-gas.
1112     with_gas=yes ;;
1113
1114   -help | --help | --hel | --he | -h)
1115     ac_init_help=long ;;
1116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117     ac_init_help=recursive ;;
1118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119     ac_init_help=short ;;
1120
1121   -host | --host | --hos | --ho)
1122     ac_prev=host_alias ;;
1123   -host=* | --host=* | --hos=* | --ho=*)
1124     host_alias=$ac_optarg ;;
1125
1126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127     ac_prev=htmldir ;;
1128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129   | --ht=*)
1130     htmldir=$ac_optarg ;;
1131
1132   -includedir | --includedir | --includedi | --included | --include \
1133   | --includ | --inclu | --incl | --inc)
1134     ac_prev=includedir ;;
1135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136   | --includ=* | --inclu=* | --incl=* | --inc=*)
1137     includedir=$ac_optarg ;;
1138
1139   -infodir | --infodir | --infodi | --infod | --info | --inf)
1140     ac_prev=infodir ;;
1141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142     infodir=$ac_optarg ;;
1143
1144   -libdir | --libdir | --libdi | --libd)
1145     ac_prev=libdir ;;
1146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147     libdir=$ac_optarg ;;
1148
1149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150   | --libexe | --libex | --libe)
1151     ac_prev=libexecdir ;;
1152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153   | --libexe=* | --libex=* | --libe=*)
1154     libexecdir=$ac_optarg ;;
1155
1156   -localedir | --localedir | --localedi | --localed | --locale)
1157     ac_prev=localedir ;;
1158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159     localedir=$ac_optarg ;;
1160
1161   -localstatedir | --localstatedir | --localstatedi | --localstated \
1162   | --localstate | --localstat | --localsta | --localst | --locals)
1163     ac_prev=localstatedir ;;
1164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166     localstatedir=$ac_optarg ;;
1167
1168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169     ac_prev=mandir ;;
1170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171     mandir=$ac_optarg ;;
1172
1173   -nfp | --nfp | --nf)
1174     # Obsolete; use --without-fp.
1175     with_fp=no ;;
1176
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n)
1179     no_create=yes ;;
1180
1181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183     no_recursion=yes ;;
1184
1185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187   | --oldin | --oldi | --old | --ol | --o)
1188     ac_prev=oldincludedir ;;
1189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192     oldincludedir=$ac_optarg ;;
1193
1194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195     ac_prev=prefix ;;
1196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197     prefix=$ac_optarg ;;
1198
1199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200   | --program-pre | --program-pr | --program-p)
1201     ac_prev=program_prefix ;;
1202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204     program_prefix=$ac_optarg ;;
1205
1206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207   | --program-suf | --program-su | --program-s)
1208     ac_prev=program_suffix ;;
1209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211     program_suffix=$ac_optarg ;;
1212
1213   -program-transform-name | --program-transform-name \
1214   | --program-transform-nam | --program-transform-na \
1215   | --program-transform-n | --program-transform- \
1216   | --program-transform | --program-transfor \
1217   | --program-transfo | --program-transf \
1218   | --program-trans | --program-tran \
1219   | --progr-tra | --program-tr | --program-t)
1220     ac_prev=program_transform_name ;;
1221   -program-transform-name=* | --program-transform-name=* \
1222   | --program-transform-nam=* | --program-transform-na=* \
1223   | --program-transform-n=* | --program-transform-=* \
1224   | --program-transform=* | --program-transfor=* \
1225   | --program-transfo=* | --program-transf=* \
1226   | --program-trans=* | --program-tran=* \
1227   | --progr-tra=* | --program-tr=* | --program-t=*)
1228     program_transform_name=$ac_optarg ;;
1229
1230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231     ac_prev=pdfdir ;;
1232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233     pdfdir=$ac_optarg ;;
1234
1235   -psdir | --psdir | --psdi | --psd | --ps)
1236     ac_prev=psdir ;;
1237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238     psdir=$ac_optarg ;;
1239
1240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241   | -silent | --silent | --silen | --sile | --sil)
1242     silent=yes ;;
1243
1244   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245     ac_prev=sbindir ;;
1246   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247   | --sbi=* | --sb=*)
1248     sbindir=$ac_optarg ;;
1249
1250   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252   | --sharedst | --shareds | --shared | --share | --shar \
1253   | --sha | --sh)
1254     ac_prev=sharedstatedir ;;
1255   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258   | --sha=* | --sh=*)
1259     sharedstatedir=$ac_optarg ;;
1260
1261   -site | --site | --sit)
1262     ac_prev=site ;;
1263   -site=* | --site=* | --sit=*)
1264     site=$ac_optarg ;;
1265
1266   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267     ac_prev=srcdir ;;
1268   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269     srcdir=$ac_optarg ;;
1270
1271   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272   | --syscon | --sysco | --sysc | --sys | --sy)
1273     ac_prev=sysconfdir ;;
1274   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276     sysconfdir=$ac_optarg ;;
1277
1278   -target | --target | --targe | --targ | --tar | --ta | --t)
1279     ac_prev=target_alias ;;
1280   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281     target_alias=$ac_optarg ;;
1282
1283   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284     verbose=yes ;;
1285
1286   -version | --version | --versio | --versi | --vers | -V)
1287     ac_init_version=: ;;
1288
1289   -with-* | --with-*)
1290     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       { echo "$as_me: error: invalid package name: $ac_package" >&2
1294    { (exit 1); exit 1; }; }
1295     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296     eval with_$ac_package=\$ac_optarg ;;
1297
1298   -without-* | --without-*)
1299     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       { echo "$as_me: error: invalid package name: $ac_package" >&2
1303    { (exit 1); exit 1; }; }
1304     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305     eval with_$ac_package=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327    { (exit 1); exit 1; }; }
1328     ;;
1329
1330   *=*)
1331     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332     # Reject names that are not valid shell variable names.
1333     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335    { (exit 1); exit 1; }; }
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   { echo "$as_me: error: missing argument to $ac_option" >&2
1353    { (exit 1); exit 1; }; }
1354 fi
1355
1356 # Be sure to have absolute directory names.
1357 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358                 datadir sysconfdir sharedstatedir localstatedir includedir \
1359                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360                 libdir localedir mandir
1361 do
1362   eval ac_val=\$$ac_var
1363   case $ac_val in
1364     [\\/$]* | ?:[\\/]* )  continue;;
1365     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366   esac
1367   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368    { (exit 1); exit 1; }; }
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383     If a cross compiler is detected then cross compile mode will be used." >&2
1384   elif test "x$build_alias" != "x$host_alias"; then
1385     cross_compiling=yes
1386   fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398   { echo "$as_me: error: Working directory cannot be determined" >&2
1399    { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401   { echo "$as_me: error: pwd does not report name of working directory" >&2
1402    { (exit 1); exit 1; }; }
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407   ac_srcdir_defaulted=yes
1408   # Try the directory containing this script, then the parent directory.
1409   ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411          X"$0" : 'X\(//\)[^/]' \| \
1412          X"$0" : 'X\(//\)$' \| \
1413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 echo X"$0" |
1415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)[^/].*/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\).*/{
1428             s//\1/
1429             q
1430           }
1431           s/.*/./; q'`
1432   srcdir=$ac_confdir
1433   if test ! -r "$srcdir/$ac_unique_file"; then
1434     srcdir=..
1435   fi
1436 else
1437   ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442    { (exit 1); exit 1; }; }
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447    { (exit 1); exit 1; }; }
1448         pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451   srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_env_${ac_var}_value=\$${ac_var}
1462   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470   # Omit some internal or obsolete options to make the list less imposing.
1471   # This message is too long to be a string in the A/UX 3.1 sh.
1472   cat <<_ACEOF
1473 \`configure' configures this package to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483   -h, --help              display this help and exit
1484       --help=short        display options specific to this package
1485       --help=recursive    display the short help of all the included packages
1486   -V, --version           display version information and exit
1487   -q, --quiet, --silent   do not print \`checking...' messages
1488       --cache-file=FILE   cache test results in FILE [disabled]
1489   -C, --config-cache      alias for \`--cache-file=config.cache'
1490   -n, --no-create         do not create output files
1491       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494   --prefix=PREFIX         install architecture-independent files in PREFIX
1495                           [$ac_default_prefix]
1496   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                           [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507   --bindir=DIR           user executables [EPREFIX/bin]
1508   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1509   --libexecdir=DIR       program executables [EPREFIX/libexec]
1510   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1511   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1512   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1513   --libdir=DIR           object code libraries [EPREFIX/lib]
1514   --includedir=DIR       C header files [PREFIX/include]
1515   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR          info documentation [DATAROOTDIR/info]
1519   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR           man documentation [DATAROOTDIR/man]
1521   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1522   --htmldir=DIR          html documentation [DOCDIR]
1523   --dvidir=DIR           dvi documentation [DOCDIR]
1524   --pdfdir=DIR           pdf documentation [DOCDIR]
1525   --psdir=DIR            ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 Program names:
1531   --program-prefix=PREFIX            prepend PREFIX to installed program names
1532   --program-suffix=SUFFIX            append SUFFIX to installed program names
1533   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538   --target=TARGET   configure for building compilers for TARGET [HOST]
1539 _ACEOF
1540 fi
1541
1542 if test -n "$ac_init_help"; then
1543
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --enable-debug          enable debugging no|yes|traditional [yes]
1550   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1551   --enable-syslog         enable syslog support [auto]
1552   --enable-proctitle      enable proctitle support [yes]
1553   --enable-ipv6           enable IPv6 support [auto]
1554   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1555
1556 SLAPD (Standalone LDAP Daemon) Options:
1557   --enable-slapd          enable building slapd [yes]
1558     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1559     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1560     --enable-cleartext    enable cleartext passwords [yes]
1561     --enable-crypt        enable crypt(3) passwords [no]
1562     --enable-lmpasswd     enable LAN Manager passwords [no]
1563     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1564     --enable-modules      enable dynamic module support [no]
1565     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1566     --enable-rlookups     enable reverse lookups of client hostnames [no]
1567     --enable-slapi        enable SLAPI support (experimental) [no]
1568     --enable-slp          enable SLPv2 support [no]
1569     --enable-wrappers     enable tcp wrapper support [no]
1570
1571 SLAPD Backend Options:
1572     --enable-backends     enable all available backends no|yes|mod
1573     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1574     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1575     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1576     --enable-ldap         enable ldap backend no|yes|mod [no]
1577     --enable-meta         enable metadirectory backend no|yes|mod [no]
1578     --enable-monitor      enable monitor backend no|yes|mod [yes]
1579     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1580     --enable-null         enable null backend no|yes|mod [no]
1581     --enable-passwd       enable passwd backend no|yes|mod [no]
1582     --enable-perl         enable perl backend no|yes|mod [no]
1583     --enable-relay        enable relay backend no|yes|mod [yes]
1584     --enable-shell        enable shell backend no|yes|mod [no]
1585     --enable-sock         enable sock backend no|yes|mod [no]
1586     --enable-sql          enable sql backend no|yes|mod [no]
1587
1588 SLAPD Overlay Options:
1589     --enable-overlays     enable all available overlays no|yes|mod
1590     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1591     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1592     --enable-collect      Collect overlay no|yes|mod [no]
1593     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1594     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1595     --enable-deref        Dereference overlay no|yes|mod [no]
1596     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1597     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1598     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1599     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1600     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1601     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1602     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1603     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1604     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1605     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1606     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1607     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1608     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1609     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1610
1611 Library Generation & Linking Options
1612   --enable-static[=PKGS]  build static libraries [default=yes]
1613   --enable-shared[=PKGS]  build shared libraries [default=yes]
1614   --enable-fast-install[=PKGS]
1615                           optimize for fast installation [default=yes]
1616   --disable-dependency-tracking  speeds up one-time build
1617   --enable-dependency-tracking   do not reject slow dependency extractors
1618   --disable-libtool-lock  avoid locking (might break parallel builds)
1619
1620 Optional Packages:
1621   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623   --with-subdir=DIR       change default subdirectory used for installs
1624   --with-cyrus-sasl       with Cyrus SASL support [auto]
1625   --with-fetch            with fetch(3) URL support [auto]
1626   --with-threads          with threads [auto]
1627   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1628   --with-yielding-select  with implicitly yielding select [auto]
1629   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1632   --with-pic              try to use only PIC/non-PIC objects [default=use
1633                           both]
1634   --with-tags[=TAGS]      include additional configurations [automatic]
1635
1636 See INSTALL file for further details.
1637
1638 Some influential environment variables:
1639   CC          C compiler command
1640   CFLAGS      C compiler flags
1641   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1642               nonstandard directory <lib dir>
1643   LIBS        libraries to pass to the linker, e.g. -l<library>
1644   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645               you have headers in a nonstandard directory <include dir>
1646   CPP         C preprocessor
1647
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1650
1651 _ACEOF
1652 ac_status=$?
1653 fi
1654
1655 if test "$ac_init_help" = "recursive"; then
1656   # If there are subdirs, report their specific --help.
1657   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658     test -d "$ac_dir" || continue
1659     ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665   # A ".." for each directory in $ac_dir_suffix.
1666   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667   case $ac_top_builddir_sub in
1668   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670   esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678   .)  # We are building in place.
1679     ac_srcdir=.
1680     ac_top_srcdir=$ac_top_builddir_sub
1681     ac_abs_top_srcdir=$ac_pwd ;;
1682   [\\/]* | ?:[\\/]* )  # Absolute name.
1683     ac_srcdir=$srcdir$ac_dir_suffix;
1684     ac_top_srcdir=$srcdir
1685     ac_abs_top_srcdir=$srcdir ;;
1686   *) # Relative name.
1687     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688     ac_top_srcdir=$ac_top_build_prefix$srcdir
1689     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693     cd "$ac_dir" || { ac_status=$?; continue; }
1694     # Check for guested configure.
1695     if test -f "$ac_srcdir/configure.gnu"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698     elif test -f "$ac_srcdir/configure"; then
1699       echo &&
1700       $SHELL "$ac_srcdir/configure" --help=recursive
1701     else
1702       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703     fi || ac_status=$?
1704     cd "$ac_pwd" || { ac_status=$?; break; }
1705   done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710   cat <<\_ACEOF
1711 configure
1712 generated by GNU Autoconf 2.61
1713
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718
1719 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1721 _ACEOF
1722   exit
1723 fi
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1727
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61.  Invocation command line was
1730
1731   $ $0 $@
1732
1733 _ACEOF
1734 exec 5>>config.log
1735 {
1736 cat <<_ASUNAME
1737 ## --------- ##
1738 ## Platform. ##
1739 ## --------- ##
1740
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758 _ASUNAME
1759
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   echo "PATH: $as_dir"
1766 done
1767 IFS=$as_save_IFS
1768
1769 } >&5
1770
1771 cat >&5 <<_ACEOF
1772
1773
1774 ## ----------- ##
1775 ## Core tests. ##
1776 ## ----------- ##
1777
1778 _ACEOF
1779
1780
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_configure_args=
1787 ac_configure_args0=
1788 ac_configure_args1=
1789 ac_must_keep_next=false
1790 for ac_pass in 1 2
1791 do
1792   for ac_arg
1793   do
1794     case $ac_arg in
1795     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797     | -silent | --silent | --silen | --sile | --sil)
1798       continue ;;
1799     *\'*)
1800       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801     esac
1802     case $ac_pass in
1803     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1804     2)
1805       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806       if test $ac_must_keep_next = true; then
1807         ac_must_keep_next=false # Got value, back to normal.
1808       else
1809         case $ac_arg in
1810           *=* | --config-cache | -C | -disable-* | --disable-* \
1811           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813           | -with-* | --with-* | -without-* | --without-* | --x)
1814             case "$ac_configure_args0 " in
1815               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816             esac
1817             ;;
1818           -* ) ac_must_keep_next=true ;;
1819         esac
1820       fi
1821       ac_configure_args="$ac_configure_args '$ac_arg'"
1822       ;;
1823     esac
1824   done
1825 done
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1828
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log.  We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835   # Save into config.log some information that might help in debugging.
1836   {
1837     echo
1838
1839     cat <<\_ASBOX
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1843 _ASBOX
1844     echo
1845     # The following way of writing the cache mishandles newlines in values,
1846 (
1847   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848     eval ac_val=\$$ac_var
1849     case $ac_val in #(
1850     *${as_nl}*)
1851       case $ac_var in #(
1852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1854       esac
1855       case $ac_var in #(
1856       _ | IFS | as_nl) ;; #(
1857       *) $as_unset $ac_var ;;
1858       esac ;;
1859     esac
1860   done
1861   (set) 2>&1 |
1862     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863     *${as_nl}ac_space=\ *)
1864       sed -n \
1865         "s/'\''/'\''\\\\'\'''\''/g;
1866           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867       ;; #(
1868     *)
1869       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1870       ;;
1871     esac |
1872     sort
1873 )
1874     echo
1875
1876     cat <<\_ASBOX
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1880 _ASBOX
1881     echo
1882     for ac_var in $ac_subst_vars
1883     do
1884       eval ac_val=\$$ac_var
1885       case $ac_val in
1886       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887       esac
1888       echo "$ac_var='\''$ac_val'\''"
1889     done | sort
1890     echo
1891
1892     if test -n "$ac_subst_files"; then
1893       cat <<\_ASBOX
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1897 _ASBOX
1898       echo
1899       for ac_var in $ac_subst_files
1900       do
1901         eval ac_val=\$$ac_var
1902         case $ac_val in
1903         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904         esac
1905         echo "$ac_var='\''$ac_val'\''"
1906       done | sort
1907       echo
1908     fi
1909
1910     if test -s confdefs.h; then
1911       cat <<\_ASBOX
1912 ## ----------- ##
1913 ## confdefs.h. ##
1914 ## ----------- ##
1915 _ASBOX
1916       echo
1917       cat confdefs.h
1918       echo
1919     fi
1920     test "$ac_signal" != 0 &&
1921       echo "$as_me: caught signal $ac_signal"
1922     echo "$as_me: exit $exit_status"
1923   } >&5
1924   rm -f core *.core core.conftest.* &&
1925     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926     exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 # Predefined preprocessor variables.
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945 _ACEOF
1946
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960 _ACEOF
1961
1962
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966   set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1969 else
1970   set x "$ac_default_prefix/share/config.site" \
1971         "$ac_default_prefix/etc/config.site"
1972 fi
1973 shift
1974 for ac_site_file
1975 do
1976   if test -r "$ac_site_file"; then
1977     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979     sed 's/^/| /' "$ac_site_file" >&5
1980     . "$ac_site_file"
1981   fi
1982 done
1983
1984
1985 # Check that the precious variables saved in the cache have kept the same
1986 # value.
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990   eval ac_new_set=\$ac_env_${ac_var}_set
1991   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992   eval ac_new_val=\$ac_env_${ac_var}_value
1993   case $ac_old_set,$ac_new_set in
1994     set,)
1995       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997       ac_cache_corrupted=: ;;
1998     ,set)
1999       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001       ac_cache_corrupted=: ;;
2002     ,);;
2003     *)
2004       if test "x$ac_old_val" != "x$ac_new_val"; then
2005         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2008 echo "$as_me:   former value:  $ac_old_val" >&2;}
2009         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2010 echo "$as_me:   current value: $ac_new_val" >&2;}
2011         ac_cache_corrupted=:
2012       fi;;
2013   esac
2014   # Pass precious variables to config.status.
2015   if test "$ac_new_set" = set; then
2016     case $ac_new_val in
2017     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018     *) ac_arg=$ac_var=$ac_new_val ;;
2019     esac
2020     case " $ac_configure_args " in
2021       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2022       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023     esac
2024   fi
2025 done
2026 if $ac_cache_corrupted; then
2027   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083 ac_aux_dir=
2084 for ac_dir in build "$srcdir"/build; do
2085   if test -f "$ac_dir/install-sh"; then
2086     ac_aux_dir=$ac_dir
2087     ac_install_sh="$ac_aux_dir/install-sh -c"
2088     break
2089   elif test -f "$ac_dir/install.sh"; then
2090     ac_aux_dir=$ac_dir
2091     ac_install_sh="$ac_aux_dir/install.sh -c"
2092     break
2093   elif test -f "$ac_dir/shtool"; then
2094     ac_aux_dir=$ac_dir
2095     ac_install_sh="$ac_aux_dir/shtool install -c"
2096     break
2097   fi
2098 done
2099 if test -z "$ac_aux_dir"; then
2100   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2112
2113
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122         ac_cv_shtool="$ac_aux_dir/shtool"
2123 else
2124         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126    { (exit 1); exit 1; }; }
2127 fi
2128
2129 SHTOOL="$ac_cv_shtool"
2130
2131 TB="" TN=""
2132 if test -t 1; then
2133         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2135 fi
2136
2137 OPENLDAP_CVS=""
2138 if test -d $ac_aux_dir/CVS; then
2139         OPENLDAP_CVS="(from CVS sources) "
2140 fi
2141
2142 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2143
2144 # Make sure we can run config.sub.
2145 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2146   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2147 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2148    { (exit 1); exit 1; }; }
2149
2150 { echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2152 if test "${ac_cv_build+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161    { (exit 1); exit 1; }; }
2162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2163   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166
2167 fi
2168 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6; }
2170 case $ac_cv_build in
2171 *-*-*) ;;
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2173 echo "$as_me: error: invalid value of canonical build" >&2;}
2174    { (exit 1); exit 1; }; };;
2175 esac
2176 build=$ac_cv_build
2177 ac_save_IFS=$IFS; IFS='-'
2178 set x $ac_cv_build
2179 shift
2180 build_cpu=$1
2181 build_vendor=$2
2182 shift; shift
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2185 build_os=$*
2186 IFS=$ac_save_IFS
2187 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188
2189
2190 { echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_host+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test "x$host_alias" = x; then
2196   ac_cv_host=$ac_cv_build
2197 else
2198   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2201    { (exit 1); exit 1; }; }
2202 fi
2203
2204 fi
2205 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6; }
2207 case $ac_cv_host in
2208 *-*-*) ;;
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2210 echo "$as_me: error: invalid value of canonical host" >&2;}
2211    { (exit 1); exit 1; }; };;
2212 esac
2213 host=$ac_cv_host
2214 ac_save_IFS=$IFS; IFS='-'
2215 set x $ac_cv_host
2216 shift
2217 host_cpu=$1
2218 host_vendor=$2
2219 shift; shift
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2222 host_os=$*
2223 IFS=$ac_save_IFS
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225
2226
2227 { echo "$as_me:$LINENO: checking target system type" >&5
2228 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2229 if test "${ac_cv_target+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test "x$target_alias" = x; then
2233   ac_cv_target=$ac_cv_host
2234 else
2235   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2237 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2238    { (exit 1); exit 1; }; }
2239 fi
2240
2241 fi
2242 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2243 echo "${ECHO_T}$ac_cv_target" >&6; }
2244 case $ac_cv_target in
2245 *-*-*) ;;
2246 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2247 echo "$as_me: error: invalid value of canonical target" >&2;}
2248    { (exit 1); exit 1; }; };;
2249 esac
2250 target=$ac_cv_target
2251 ac_save_IFS=$IFS; IFS='-'
2252 set x $ac_cv_target
2253 shift
2254 target_cpu=$1
2255 target_vendor=$2
2256 shift; shift
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2259 target_os=$*
2260 IFS=$ac_save_IFS
2261 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262
2263
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267   test "$program_prefix$program_suffix$program_transform_name" = \
2268     NONENONEs,x,x, &&
2269   program_prefix=${target_alias}-
2270
2271 am__api_version="1.9"
2272 # Find a good install program.  We prefer a C program (faster),
2273 # so one script is as good as another.  But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2278 # AIX /bin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # OS/2's system install, which has a completely different semantic
2284 # ./install, which can be erroneously created by make from ./install.sh.
2285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   # Account for people who put trailing slashes in PATH elements.
2297 case $as_dir/ in
2298   ./ | .// | /cC/* | \
2299   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2301   /usr/ucb/* ) ;;
2302   *)
2303     # OSF1 and SCO ODT 3.0 have their own names for install.
2304     # Don't use installbsd from OSF since it installs stuff as root
2305     # by default.
2306     for ac_prog in ginstall scoinst install; do
2307       for ac_exec_ext in '' $ac_executable_extensions; do
2308         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309           if test $ac_prog = install &&
2310             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311             # AIX install.  It has an incompatible calling convention.
2312             :
2313           elif test $ac_prog = install &&
2314             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315             # program-specific install script used by HP pwplus--don't use.
2316             :
2317           else
2318             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2319             break 3
2320           fi
2321         fi
2322       done
2323     done
2324     ;;
2325 esac
2326 done
2327 IFS=$as_save_IFS
2328
2329
2330 fi
2331   if test "${ac_cv_path_install+set}" = set; then
2332     INSTALL=$ac_cv_path_install
2333   else
2334     # As a last resort, use the slow shell script.  Don't cache a
2335     # value for INSTALL within a source directory, because that will
2336     # break other packages using the cache if that directory is
2337     # removed, or if the value is a relative name.
2338     INSTALL=$ac_install_sh
2339   fi
2340 fi
2341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2342 echo "${ECHO_T}$INSTALL" >&6; }
2343
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2354 # Just in case
2355 sleep 1
2356 echo timestamp > conftest.file
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments.  Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2361 # directory).
2362 if (
2363    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2364    if test "$*" = "X"; then
2365       # -L didn't work.
2366       set X `ls -t $srcdir/configure conftest.file`
2367    fi
2368    rm -f conftest.file
2369    if test "$*" != "X $srcdir/configure conftest.file" \
2370       && test "$*" != "X conftest.file $srcdir/configure"; then
2371
2372       # If neither matched, then we have a broken ls.  This can happen
2373       # if, for instance, CONFIG_SHELL is bash and it inherits a
2374       # broken ls alias from the environment.  This has actually
2375       # happened.  Such a system could not be considered "sane".
2376       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2377 alias in your environment" >&5
2378 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2379 alias in your environment" >&2;}
2380    { (exit 1); exit 1; }; }
2381    fi
2382
2383    test "$2" = conftest.file
2384    )
2385 then
2386    # Ok.
2387    :
2388 else
2389    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2390 Check your system clock" >&5
2391 echo "$as_me: error: newly created file is older than distributed files!
2392 Check your system clock" >&2;}
2393    { (exit 1); exit 1; }; }
2394 fi
2395 { echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6; }
2397 test "$program_prefix" != NONE &&
2398   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399 # Use a double $ so make ignores it.
2400 test "$program_suffix" != NONE &&
2401   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402 # Double any \ or $.  echo might interpret backslashes.
2403 # By default was `s,x,x', remove it if useless.
2404 cat <<\_ACEOF >conftest.sed
2405 s/[\\$]/&&/g;s/;s,x,x,$//
2406 _ACEOF
2407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2408 rm -f conftest.sed
2409
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2412
2413 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2414 # Use eval to expand $SHELL
2415 if eval "$MISSING --run true"; then
2416   am_missing_run="$MISSING --run "
2417 else
2418   am_missing_run=
2419   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2420 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2421 fi
2422
2423 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2424   # We used to keeping the `.' as first argument, in order to
2425   # allow $(mkdir_p) to be used without argument.  As in
2426   #   $(mkdir_p) $(somedir)
2427   # where $(somedir) is conditionally defined.  However this is wrong
2428   # for two reasons:
2429   #  1. if the package is installed by a user who cannot write `.'
2430   #     make install will fail,
2431   #  2. the above comment should most certainly read
2432   #     $(mkdir_p) $(DESTDIR)$(somedir)
2433   #     so it does not work when $(somedir) is undefined and
2434   #     $(DESTDIR) is not.
2435   #  To support the latter case, we have to write
2436   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2437   #  so the `.' trick is pointless.
2438   mkdir_p='mkdir -p --'
2439 else
2440   # On NextStep and OpenStep, the `mkdir' command does not
2441   # recognize any option.  It will interpret all options as
2442   # directories to create, and then abort because `.' already
2443   # exists.
2444   for d in ./-p ./--version;
2445   do
2446     test -d $d && rmdir $d
2447   done
2448   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2449   if test -f "$ac_aux_dir/mkinstalldirs"; then
2450     mkdir_p='$(mkinstalldirs)'
2451   else
2452     mkdir_p='$(install_sh) -d'
2453   fi
2454 fi
2455
2456 for ac_prog in gawk mawk nawk awk
2457 do
2458   # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_AWK+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$AWK"; then
2466   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_AWK="$ac_prog"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 AWK=$ac_cv_prog_AWK
2486 if test -n "$AWK"; then
2487   { echo "$as_me:$LINENO: result: $AWK" >&5
2488 echo "${ECHO_T}$AWK" >&6; }
2489 else
2490   { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495   test -n "$AWK" && break
2496 done
2497
2498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   cat >conftest.make <<\_ACEOF
2505 SHELL = /bin/sh
2506 all:
2507         @echo '@@@%%%=$(MAKE)=@@@%%%'
2508 _ACEOF
2509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2511   *@@@%%%=?*=@@@%%%*)
2512     eval ac_cv_prog_make_${ac_make}_set=yes;;
2513   *)
2514     eval ac_cv_prog_make_${ac_make}_set=no;;
2515 esac
2516 rm -f conftest.make
2517 fi
2518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2519   { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2521   SET_MAKE=
2522 else
2523   { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525   SET_MAKE="MAKE=${MAKE-make}"
2526 fi
2527
2528 rm -rf .tst 2>/dev/null
2529 mkdir .tst 2>/dev/null
2530 if test -d .tst; then
2531   am__leading_dot=.
2532 else
2533   am__leading_dot=_
2534 fi
2535 rmdir .tst 2>/dev/null
2536
2537 # test to see if srcdir already configured
2538 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2539    test -f $srcdir/config.status; then
2540   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542    { (exit 1); exit 1; }; }
2543 fi
2544
2545 # test whether we have cygpath
2546 if test -z "$CYGPATH_W"; then
2547   if (cygpath --version) >/dev/null 2>/dev/null; then
2548     CYGPATH_W='cygpath -w'
2549   else
2550     CYGPATH_W=echo
2551   fi
2552 fi
2553
2554
2555 # Define the identity of the package.
2556  PACKAGE=$OL_PACKAGE
2557  VERSION=$OL_VERSION
2558
2559
2560 # Some tools Automake needs.
2561
2562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2563
2564
2565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2566
2567
2568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2569
2570
2571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2572
2573
2574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2575
2576 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2577
2578 # Installed binaries are usually stripped using `strip' when the user
2579 # run `make install-strip'.  However `strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the `STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583   if test -n "$ac_tool_prefix"; then
2584   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_STRIP+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$STRIP"; then
2592   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613   { echo "$as_me:$LINENO: result: $STRIP" >&5
2614 echo "${ECHO_T}$STRIP" >&6; }
2615 else
2616   { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$ac_cv_prog_STRIP"; then
2623   ac_ct_STRIP=$STRIP
2624   # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$ac_ct_STRIP"; then
2632   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_ac_ct_STRIP="strip"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2654 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2655 else
2656   { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2658 fi
2659
2660   if test "x$ac_ct_STRIP" = x; then
2661     STRIP=":"
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet.  If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet.  If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673     STRIP=$ac_ct_STRIP
2674   fi
2675 else
2676   STRIP="$ac_cv_prog_STRIP"
2677 fi
2678
2679 fi
2680 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2681
2682 # We need awk for the "check" target.  The system "awk" is bad on
2683 # some platforms.
2684 # Always define AMTAR for backward compatibility.
2685
2686 AMTAR=${AMTAR-"${am_missing_run}tar"}
2687
2688 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2689
2690
2691
2692
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define OPENLDAP_PACKAGE "$PACKAGE"
2696 _ACEOF
2697
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define OPENLDAP_VERSION "$VERSION"
2701 _ACEOF
2702
2703
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define LDAP_VENDOR_VERSION $OL_API_INC
2707 _ACEOF
2708
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2712 _ACEOF
2713
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2717 _ACEOF
2718
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2722 _ACEOF
2723
2724
2725 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2726
2727 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2728
2729 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2730
2731
2732
2733
2734
2735
2736
2737 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2738
2739 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2740
2741 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2742
2743
2744 { echo "$as_me:$LINENO: checking configure arguments" >&5
2745 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2746
2747
2748 top_builddir=`pwd`
2749
2750 ldap_subdir="/openldap"
2751
2752
2753 # Check whether --with-subdir was given.
2754 if test "${with_subdir+set}" = set; then
2755   withval=$with_subdir; case "$withval" in
2756         no) ldap_subdir=""
2757                 ;;
2758         yes)
2759                 ;;
2760         /*|\\*)
2761                 ldap_subdir="$withval"
2762                 ;;
2763         *)
2764                 ldap_subdir="/$withval"
2765                 ;;
2766 esac
2767
2768 fi
2769
2770
2771 # OpenLDAP --enable-debug
2772
2773         # Check whether --enable-debug was given.
2774 if test "${enable_debug+set}" = set; then
2775   enableval=$enable_debug;
2776         ol_arg=invalid
2777         for ol_val in no yes traditional ; do
2778                 if test "$enableval" = "$ol_val" ; then
2779                         ol_arg="$ol_val"
2780                 fi
2781         done
2782         if test "$ol_arg" = "invalid" ; then
2783                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2785    { (exit 1); exit 1; }; }
2786         fi
2787         ol_enable_debug="$ol_arg"
2788
2789 else
2790         ol_enable_debug=yes
2791 fi
2792
2793 # end --enable-debug
2794 # OpenLDAP --enable-dynamic
2795
2796         # Check whether --enable-dynamic was given.
2797 if test "${enable_dynamic+set}" = set; then
2798   enableval=$enable_dynamic;
2799         ol_arg=invalid
2800         for ol_val in auto yes no ; do
2801                 if test "$enableval" = "$ol_val" ; then
2802                         ol_arg="$ol_val"
2803                 fi
2804         done
2805         if test "$ol_arg" = "invalid" ; then
2806                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2807 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2808    { (exit 1); exit 1; }; }
2809         fi
2810         ol_enable_dynamic="$ol_arg"
2811
2812 else
2813         ol_enable_dynamic=no
2814 fi
2815
2816 # end --enable-dynamic
2817 # OpenLDAP --enable-syslog
2818
2819         # Check whether --enable-syslog was given.
2820 if test "${enable_syslog+set}" = set; then
2821   enableval=$enable_syslog;
2822         ol_arg=invalid
2823         for ol_val in auto yes no ; do
2824                 if test "$enableval" = "$ol_val" ; then
2825                         ol_arg="$ol_val"
2826                 fi
2827         done
2828         if test "$ol_arg" = "invalid" ; then
2829                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2830 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2831    { (exit 1); exit 1; }; }
2832         fi
2833         ol_enable_syslog="$ol_arg"
2834
2835 else
2836         ol_enable_syslog=auto
2837 fi
2838
2839 # end --enable-syslog
2840 # OpenLDAP --enable-proctitle
2841
2842         # Check whether --enable-proctitle was given.
2843 if test "${enable_proctitle+set}" = set; then
2844   enableval=$enable_proctitle;
2845         ol_arg=invalid
2846         for ol_val in auto yes no ; do
2847                 if test "$enableval" = "$ol_val" ; then
2848                         ol_arg="$ol_val"
2849                 fi
2850         done
2851         if test "$ol_arg" = "invalid" ; then
2852                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2853 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2854    { (exit 1); exit 1; }; }
2855         fi
2856         ol_enable_proctitle="$ol_arg"
2857
2858 else
2859         ol_enable_proctitle=yes
2860 fi
2861
2862 # end --enable-proctitle
2863 ol_enable_referrals=${ol_enable_referrals-no}
2864 # OpenLDAP --enable-ipv6
2865
2866         # Check whether --enable-ipv6 was given.
2867 if test "${enable_ipv6+set}" = set; then
2868   enableval=$enable_ipv6;
2869         ol_arg=invalid
2870         for ol_val in auto yes no ; do
2871                 if test "$enableval" = "$ol_val" ; then
2872                         ol_arg="$ol_val"
2873                 fi
2874         done
2875         if test "$ol_arg" = "invalid" ; then
2876                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2877 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2878    { (exit 1); exit 1; }; }
2879         fi
2880         ol_enable_ipv6="$ol_arg"
2881
2882 else
2883         ol_enable_ipv6=auto
2884 fi
2885
2886 # end --enable-ipv6
2887 # OpenLDAP --enable-local
2888
2889         # Check whether --enable-local was given.
2890 if test "${enable_local+set}" = set; then
2891   enableval=$enable_local;
2892         ol_arg=invalid
2893         for ol_val in auto yes no ; do
2894                 if test "$enableval" = "$ol_val" ; then
2895                         ol_arg="$ol_val"
2896                 fi
2897         done
2898         if test "$ol_arg" = "invalid" ; then
2899                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2900 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2901    { (exit 1); exit 1; }; }
2902         fi
2903         ol_enable_local="$ol_arg"
2904
2905 else
2906         ol_enable_local=auto
2907 fi
2908
2909 # end --enable-local
2910
2911 # OpenLDAP --with-cyrus_sasl
2912
2913 # Check whether --with-cyrus_sasl was given.
2914 if test "${with_cyrus_sasl+set}" = set; then
2915   withval=$with_cyrus_sasl;
2916         ol_arg=invalid
2917         for ol_val in auto yes no  ; do
2918                 if test "$withval" = "$ol_val" ; then
2919                         ol_arg="$ol_val"
2920                 fi
2921         done
2922         if test "$ol_arg" = "invalid" ; then
2923                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2924 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2925    { (exit 1); exit 1; }; }
2926         fi
2927         ol_with_cyrus_sasl="$ol_arg"
2928
2929 else
2930         ol_with_cyrus_sasl="auto"
2931 fi
2932 # end --with-cyrus_sasl
2933
2934 # OpenLDAP --with-fetch
2935
2936 # Check whether --with-fetch was given.
2937 if test "${with_fetch+set}" = set; then
2938   withval=$with_fetch;
2939         ol_arg=invalid
2940         for ol_val in auto yes no  ; do
2941                 if test "$withval" = "$ol_val" ; then
2942                         ol_arg="$ol_val"
2943                 fi
2944         done
2945         if test "$ol_arg" = "invalid" ; then
2946                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2947 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2948    { (exit 1); exit 1; }; }
2949         fi
2950         ol_with_fetch="$ol_arg"
2951
2952 else
2953         ol_with_fetch="auto"
2954 fi
2955 # end --with-fetch
2956
2957 # OpenLDAP --with-threads
2958
2959 # Check whether --with-threads was given.
2960 if test "${with_threads+set}" = set; then
2961   withval=$with_threads;
2962         ol_arg=invalid
2963         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2964                 if test "$withval" = "$ol_val" ; then
2965                         ol_arg="$ol_val"
2966                 fi
2967         done
2968         if test "$ol_arg" = "invalid" ; then
2969                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2970 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2971    { (exit 1); exit 1; }; }
2972         fi
2973         ol_with_threads="$ol_arg"
2974
2975 else
2976         ol_with_threads="auto"
2977 fi
2978 # end --with-threads
2979
2980 # OpenLDAP --with-tls
2981
2982 # Check whether --with-tls was given.
2983 if test "${with_tls+set}" = set; then
2984   withval=$with_tls;
2985         ol_arg=invalid
2986         for ol_val in auto openssl gnutls moznss yes no  ; do
2987                 if test "$withval" = "$ol_val" ; then
2988                         ol_arg="$ol_val"
2989                 fi
2990         done
2991         if test "$ol_arg" = "invalid" ; then
2992                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2993 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2994    { (exit 1); exit 1; }; }
2995         fi
2996         ol_with_tls="$ol_arg"
2997
2998 else
2999         ol_with_tls="auto"
3000 fi
3001 # end --with-tls
3002
3003 # OpenLDAP --with-yielding_select
3004
3005 # Check whether --with-yielding_select was given.
3006 if test "${with_yielding_select+set}" = set; then
3007   withval=$with_yielding_select;
3008         ol_arg=invalid
3009         for ol_val in auto yes no manual  ; do
3010                 if test "$withval" = "$ol_val" ; then
3011                         ol_arg="$ol_val"
3012                 fi
3013         done
3014         if test "$ol_arg" = "invalid" ; then
3015                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3016 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3017    { (exit 1); exit 1; }; }
3018         fi
3019         ol_with_yielding_select="$ol_arg"
3020
3021 else
3022         ol_with_yielding_select="auto"
3023 fi
3024 # end --with-yielding_select
3025
3026 # OpenLDAP --with-mp
3027
3028 # Check whether --with-mp was given.
3029 if test "${with_mp+set}" = set; then
3030   withval=$with_mp;
3031         ol_arg=invalid
3032         for ol_val in auto longlong long bignum gmp yes no ; do
3033                 if test "$withval" = "$ol_val" ; then
3034                         ol_arg="$ol_val"
3035                 fi
3036         done
3037         if test "$ol_arg" = "invalid" ; then
3038                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3039 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3040    { (exit 1); exit 1; }; }
3041         fi
3042         ol_with_mp="$ol_arg"
3043
3044 else
3045         ol_with_mp="auto"
3046 fi
3047 # end --with-mp
3048
3049 # OpenLDAP --with-odbc
3050
3051 # Check whether --with-odbc was given.
3052 if test "${with_odbc+set}" = set; then
3053   withval=$with_odbc;
3054         ol_arg=invalid
3055         for ol_val in auto iodbc unixodbc odbc32  ; do
3056                 if test "$withval" = "$ol_val" ; then
3057                         ol_arg="$ol_val"
3058                 fi
3059         done
3060         if test "$ol_arg" = "invalid" ; then
3061                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3062 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3063    { (exit 1); exit 1; }; }
3064         fi
3065         ol_with_odbc="$ol_arg"
3066
3067 else
3068         ol_with_odbc="auto"
3069 fi
3070 # end --with-odbc
3071
3072
3073
3074 # Check whether --enable-xxslapdoptions was given.
3075 if test "${enable_xxslapdoptions+set}" = set; then
3076   enableval=$enable_xxslapdoptions;
3077 fi
3078
3079 # OpenLDAP --enable-slapd
3080
3081         # Check whether --enable-slapd was given.
3082 if test "${enable_slapd+set}" = set; then
3083   enableval=$enable_slapd;
3084         ol_arg=invalid
3085         for ol_val in auto yes no ; do
3086                 if test "$enableval" = "$ol_val" ; then
3087                         ol_arg="$ol_val"
3088                 fi
3089         done
3090         if test "$ol_arg" = "invalid" ; then
3091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3093    { (exit 1); exit 1; }; }
3094         fi
3095         ol_enable_slapd="$ol_arg"
3096
3097 else
3098         ol_enable_slapd=yes
3099 fi
3100
3101 # end --enable-slapd
3102 # OpenLDAP --enable-dynacl
3103
3104         # Check whether --enable-dynacl was given.
3105 if test "${enable_dynacl+set}" = set; then
3106   enableval=$enable_dynacl;
3107         ol_arg=invalid
3108         for ol_val in auto yes no ; do
3109                 if test "$enableval" = "$ol_val" ; then
3110                         ol_arg="$ol_val"
3111                 fi
3112         done
3113         if test "$ol_arg" = "invalid" ; then
3114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3116    { (exit 1); exit 1; }; }
3117         fi
3118         ol_enable_dynacl="$ol_arg"
3119
3120 else
3121         ol_enable_dynacl=no
3122 fi
3123
3124 # end --enable-dynacl
3125 # OpenLDAP --enable-aci
3126
3127         # Check whether --enable-aci was given.
3128 if test "${enable_aci+set}" = set; then
3129   enableval=$enable_aci;
3130         ol_arg=invalid
3131         for ol_val in no yes mod ; do
3132                 if test "$enableval" = "$ol_val" ; then
3133                         ol_arg="$ol_val"
3134                 fi
3135         done
3136         if test "$ol_arg" = "invalid" ; then
3137                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3138 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3139    { (exit 1); exit 1; }; }
3140         fi
3141         ol_enable_aci="$ol_arg"
3142
3143 else
3144         ol_enable_aci=no
3145 fi
3146
3147 # end --enable-aci
3148 # OpenLDAP --enable-cleartext
3149
3150         # Check whether --enable-cleartext was given.
3151 if test "${enable_cleartext+set}" = set; then
3152   enableval=$enable_cleartext;
3153         ol_arg=invalid
3154         for ol_val in auto yes no ; do
3155                 if test "$enableval" = "$ol_val" ; then
3156                         ol_arg="$ol_val"
3157                 fi
3158         done
3159         if test "$ol_arg" = "invalid" ; then
3160                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3161 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3162    { (exit 1); exit 1; }; }
3163         fi
3164         ol_enable_cleartext="$ol_arg"
3165
3166 else
3167         ol_enable_cleartext=yes
3168 fi
3169
3170 # end --enable-cleartext
3171 # OpenLDAP --enable-crypt
3172
3173         # Check whether --enable-crypt was given.
3174 if test "${enable_crypt+set}" = set; then
3175   enableval=$enable_crypt;
3176         ol_arg=invalid
3177         for ol_val in auto yes no ; do
3178                 if test "$enableval" = "$ol_val" ; then
3179                         ol_arg="$ol_val"
3180                 fi
3181         done
3182         if test "$ol_arg" = "invalid" ; then
3183                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3185    { (exit 1); exit 1; }; }
3186         fi
3187         ol_enable_crypt="$ol_arg"
3188
3189 else
3190         ol_enable_crypt=no
3191 fi
3192
3193 # end --enable-crypt
3194 # OpenLDAP --enable-lmpasswd
3195
3196         # Check whether --enable-lmpasswd was given.
3197 if test "${enable_lmpasswd+set}" = set; then
3198   enableval=$enable_lmpasswd;
3199         ol_arg=invalid
3200         for ol_val in auto yes no ; do
3201                 if test "$enableval" = "$ol_val" ; then
3202                         ol_arg="$ol_val"
3203                 fi
3204         done
3205         if test "$ol_arg" = "invalid" ; then
3206                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3207 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3208    { (exit 1); exit 1; }; }
3209         fi
3210         ol_enable_lmpasswd="$ol_arg"
3211
3212 else
3213         ol_enable_lmpasswd=no
3214 fi
3215
3216 # end --enable-lmpasswd
3217 # OpenLDAP --enable-spasswd
3218
3219         # Check whether --enable-spasswd was given.
3220 if test "${enable_spasswd+set}" = set; then
3221   enableval=$enable_spasswd;
3222         ol_arg=invalid
3223         for ol_val in auto yes no ; do
3224                 if test "$enableval" = "$ol_val" ; then
3225                         ol_arg="$ol_val"
3226                 fi
3227         done
3228         if test "$ol_arg" = "invalid" ; then
3229                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3231    { (exit 1); exit 1; }; }
3232         fi
3233         ol_enable_spasswd="$ol_arg"
3234
3235 else
3236         ol_enable_spasswd=no
3237 fi
3238
3239 # end --enable-spasswd
3240 # OpenLDAP --enable-modules
3241
3242         # Check whether --enable-modules was given.
3243 if test "${enable_modules+set}" = set; then
3244   enableval=$enable_modules;
3245         ol_arg=invalid
3246         for ol_val in auto yes no ; do
3247                 if test "$enableval" = "$ol_val" ; then
3248                         ol_arg="$ol_val"
3249                 fi
3250         done
3251         if test "$ol_arg" = "invalid" ; then
3252                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3253 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3254    { (exit 1); exit 1; }; }
3255         fi
3256         ol_enable_modules="$ol_arg"
3257
3258 else
3259         ol_enable_modules=no
3260 fi
3261
3262 # end --enable-modules
3263 # OpenLDAP --enable-rewrite
3264
3265         # Check whether --enable-rewrite was given.
3266 if test "${enable_rewrite+set}" = set; then
3267   enableval=$enable_rewrite;
3268         ol_arg=invalid
3269         for ol_val in auto yes no ; do
3270                 if test "$enableval" = "$ol_val" ; then
3271                         ol_arg="$ol_val"
3272                 fi
3273         done
3274         if test "$ol_arg" = "invalid" ; then
3275                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3277    { (exit 1); exit 1; }; }
3278         fi
3279         ol_enable_rewrite="$ol_arg"
3280
3281 else
3282         ol_enable_rewrite=auto
3283 fi
3284
3285 # end --enable-rewrite
3286 # OpenLDAP --enable-rlookups
3287
3288         # Check whether --enable-rlookups was given.
3289 if test "${enable_rlookups+set}" = set; then
3290   enableval=$enable_rlookups;
3291         ol_arg=invalid
3292         for ol_val in auto yes no ; do
3293                 if test "$enableval" = "$ol_val" ; then
3294                         ol_arg="$ol_val"
3295                 fi
3296         done
3297         if test "$ol_arg" = "invalid" ; then
3298                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3300    { (exit 1); exit 1; }; }
3301         fi
3302         ol_enable_rlookups="$ol_arg"
3303
3304 else
3305         ol_enable_rlookups=no
3306 fi
3307
3308 # end --enable-rlookups
3309 # OpenLDAP --enable-slapi
3310
3311         # Check whether --enable-slapi was given.
3312 if test "${enable_slapi+set}" = set; then
3313   enableval=$enable_slapi;
3314         ol_arg=invalid
3315         for ol_val in auto yes no ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_slapi="$ol_arg"
3326
3327 else
3328         ol_enable_slapi=no
3329 fi
3330
3331 # end --enable-slapi
3332 # OpenLDAP --enable-slp
3333
3334         # Check whether --enable-slp was given.
3335 if test "${enable_slp+set}" = set; then
3336   enableval=$enable_slp;
3337         ol_arg=invalid
3338         for ol_val in auto yes no ; do
3339                 if test "$enableval" = "$ol_val" ; then
3340                         ol_arg="$ol_val"
3341                 fi
3342         done
3343         if test "$ol_arg" = "invalid" ; then
3344                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3346    { (exit 1); exit 1; }; }
3347         fi
3348         ol_enable_slp="$ol_arg"
3349
3350 else
3351         ol_enable_slp=no
3352 fi
3353
3354 # end --enable-slp
3355 # OpenLDAP --enable-wrappers
3356
3357         # Check whether --enable-wrappers was given.
3358 if test "${enable_wrappers+set}" = set; then
3359   enableval=$enable_wrappers;
3360         ol_arg=invalid
3361         for ol_val in auto yes no ; do
3362                 if test "$enableval" = "$ol_val" ; then
3363                         ol_arg="$ol_val"
3364                 fi
3365         done
3366         if test "$ol_arg" = "invalid" ; then
3367                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3369    { (exit 1); exit 1; }; }
3370         fi
3371         ol_enable_wrappers="$ol_arg"
3372
3373 else
3374         ol_enable_wrappers=no
3375 fi
3376
3377 # end --enable-wrappers
3378
3379 Backends="bdb \
3380         dnssrv \
3381         hdb \
3382         ldap \
3383         meta \
3384         monitor \
3385         ndb \
3386         null \
3387         passwd \
3388         perl \
3389         relay \
3390         shell \
3391         sock \
3392         sql"
3393
3394 # Check whether --enable-xxslapbackends was given.
3395 if test "${enable_xxslapbackends+set}" = set; then
3396   enableval=$enable_xxslapbackends;
3397 fi
3398
3399
3400 # OpenLDAP --enable-backends
3401
3402         # Check whether --enable-backends was given.
3403 if test "${enable_backends+set}" = set; then
3404   enableval=$enable_backends;
3405         ol_arg=invalid
3406         for ol_val in no yes mod ; do
3407                 if test "$enableval" = "$ol_val" ; then
3408                         ol_arg="$ol_val"
3409                 fi
3410         done
3411         if test "$ol_arg" = "invalid" ; then
3412                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3413 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3414    { (exit 1); exit 1; }; }
3415         fi
3416         ol_enable_backends="$ol_arg"
3417
3418 fi
3419
3420 # end --enable-backends
3421 # OpenLDAP --enable-bdb
3422
3423         # Check whether --enable-bdb was given.
3424 if test "${enable_bdb+set}" = set; then
3425   enableval=$enable_bdb;
3426         ol_arg=invalid
3427         for ol_val in no yes mod ; do
3428                 if test "$enableval" = "$ol_val" ; then
3429                         ol_arg="$ol_val"
3430                 fi
3431         done
3432         if test "$ol_arg" = "invalid" ; then
3433                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3434 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3435    { (exit 1); exit 1; }; }
3436         fi
3437         ol_enable_bdb="$ol_arg"
3438
3439 else
3440         ol_enable_bdb=${ol_enable_backends:-no}
3441 fi
3442
3443 # end --enable-bdb
3444 # OpenLDAP --enable-dnssrv
3445
3446         # Check whether --enable-dnssrv was given.
3447 if test "${enable_dnssrv+set}" = set; then
3448   enableval=$enable_dnssrv;
3449         ol_arg=invalid
3450         for ol_val in no yes mod ; do
3451                 if test "$enableval" = "$ol_val" ; then
3452                         ol_arg="$ol_val"
3453                 fi
3454         done
3455         if test "$ol_arg" = "invalid" ; then
3456                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3457 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3458    { (exit 1); exit 1; }; }
3459         fi
3460         ol_enable_dnssrv="$ol_arg"
3461
3462 else
3463         ol_enable_dnssrv=${ol_enable_backends:-no}
3464 fi
3465
3466 # end --enable-dnssrv
3467 # OpenLDAP --enable-hdb
3468
3469         # Check whether --enable-hdb was given.
3470 if test "${enable_hdb+set}" = set; then
3471   enableval=$enable_hdb;
3472         ol_arg=invalid
3473         for ol_val in no yes mod ; do
3474                 if test "$enableval" = "$ol_val" ; then
3475                         ol_arg="$ol_val"
3476                 fi
3477         done
3478         if test "$ol_arg" = "invalid" ; then
3479                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3480 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3481    { (exit 1); exit 1; }; }
3482         fi
3483         ol_enable_hdb="$ol_arg"
3484
3485 else
3486         ol_enable_hdb=${ol_enable_backends:-yes}
3487 fi
3488
3489 # end --enable-hdb
3490 # OpenLDAP --enable-ldap
3491
3492         # Check whether --enable-ldap was given.
3493 if test "${enable_ldap+set}" = set; then
3494   enableval=$enable_ldap;
3495         ol_arg=invalid
3496         for ol_val in no yes mod ; do
3497                 if test "$enableval" = "$ol_val" ; then
3498                         ol_arg="$ol_val"
3499                 fi
3500         done
3501         if test "$ol_arg" = "invalid" ; then
3502                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3503 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3504    { (exit 1); exit 1; }; }
3505         fi
3506         ol_enable_ldap="$ol_arg"
3507
3508 else
3509         ol_enable_ldap=${ol_enable_backends:-no}
3510 fi
3511
3512 # end --enable-ldap
3513 # OpenLDAP --enable-meta
3514
3515         # Check whether --enable-meta was given.
3516 if test "${enable_meta+set}" = set; then
3517   enableval=$enable_meta;
3518         ol_arg=invalid
3519         for ol_val in no yes mod ; do
3520                 if test "$enableval" = "$ol_val" ; then
3521                         ol_arg="$ol_val"
3522                 fi
3523         done
3524         if test "$ol_arg" = "invalid" ; then
3525                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3526 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3527    { (exit 1); exit 1; }; }
3528         fi
3529         ol_enable_meta="$ol_arg"
3530
3531 else
3532         ol_enable_meta=${ol_enable_backends:-no}
3533 fi
3534
3535 # end --enable-meta
3536 # OpenLDAP --enable-monitor
3537
3538         # Check whether --enable-monitor was given.
3539 if test "${enable_monitor+set}" = set; then
3540   enableval=$enable_monitor;
3541         ol_arg=invalid
3542         for ol_val in no yes mod ; do
3543                 if test "$enableval" = "$ol_val" ; then
3544                         ol_arg="$ol_val"
3545                 fi
3546         done
3547         if test "$ol_arg" = "invalid" ; then
3548                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3549 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3550    { (exit 1); exit 1; }; }
3551         fi
3552         ol_enable_monitor="$ol_arg"
3553
3554 else
3555         ol_enable_monitor=${ol_enable_backends:-yes}
3556 fi
3557
3558 # end --enable-monitor
3559 # OpenLDAP --enable-ndb
3560
3561         # Check whether --enable-ndb was given.
3562 if test "${enable_ndb+set}" = set; then
3563   enableval=$enable_ndb;
3564         ol_arg=invalid
3565         for ol_val in no yes mod ; do
3566                 if test "$enableval" = "$ol_val" ; then
3567                         ol_arg="$ol_val"
3568                 fi
3569         done
3570         if test "$ol_arg" = "invalid" ; then
3571                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3573    { (exit 1); exit 1; }; }
3574         fi
3575         ol_enable_ndb="$ol_arg"
3576
3577 else
3578         ol_enable_ndb=${ol_enable_backends:-no}
3579 fi
3580
3581 # end --enable-ndb
3582 # OpenLDAP --enable-null
3583
3584         # Check whether --enable-null was given.
3585 if test "${enable_null+set}" = set; then
3586   enableval=$enable_null;
3587         ol_arg=invalid
3588         for ol_val in no yes mod ; do
3589                 if test "$enableval" = "$ol_val" ; then
3590                         ol_arg="$ol_val"
3591                 fi
3592         done
3593         if test "$ol_arg" = "invalid" ; then
3594                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3595 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3596    { (exit 1); exit 1; }; }
3597         fi
3598         ol_enable_null="$ol_arg"
3599
3600 else
3601         ol_enable_null=${ol_enable_backends:-no}
3602 fi
3603
3604 # end --enable-null
3605 # OpenLDAP --enable-passwd
3606
3607         # Check whether --enable-passwd was given.
3608 if test "${enable_passwd+set}" = set; then
3609   enableval=$enable_passwd;
3610         ol_arg=invalid
3611         for ol_val in no yes mod ; do
3612                 if test "$enableval" = "$ol_val" ; then
3613                         ol_arg="$ol_val"
3614                 fi
3615         done
3616         if test "$ol_arg" = "invalid" ; then
3617                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3618 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3619    { (exit 1); exit 1; }; }
3620         fi
3621         ol_enable_passwd="$ol_arg"
3622
3623 else
3624         ol_enable_passwd=${ol_enable_backends:-no}
3625 fi
3626
3627 # end --enable-passwd
3628 # OpenLDAP --enable-perl
3629
3630         # Check whether --enable-perl was given.
3631 if test "${enable_perl+set}" = set; then
3632   enableval=$enable_perl;
3633         ol_arg=invalid
3634         for ol_val in no yes mod ; do
3635                 if test "$enableval" = "$ol_val" ; then
3636                         ol_arg="$ol_val"
3637                 fi
3638         done
3639         if test "$ol_arg" = "invalid" ; then
3640                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3641 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3642    { (exit 1); exit 1; }; }
3643         fi
3644         ol_enable_perl="$ol_arg"
3645
3646 else
3647         ol_enable_perl=${ol_enable_backends:-no}
3648 fi
3649
3650 # end --enable-perl
3651 # OpenLDAP --enable-relay
3652
3653         # Check whether --enable-relay was given.
3654 if test "${enable_relay+set}" = set; then
3655   enableval=$enable_relay;
3656         ol_arg=invalid
3657         for ol_val in no yes mod ; do
3658                 if test "$enableval" = "$ol_val" ; then
3659                         ol_arg="$ol_val"
3660                 fi
3661         done
3662         if test "$ol_arg" = "invalid" ; then
3663                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3664 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3665    { (exit 1); exit 1; }; }
3666         fi
3667         ol_enable_relay="$ol_arg"
3668
3669 else
3670         ol_enable_relay=${ol_enable_backends:-yes}
3671 fi
3672
3673 # end --enable-relay
3674 # OpenLDAP --enable-shell
3675
3676         # Check whether --enable-shell was given.
3677 if test "${enable_shell+set}" = set; then
3678   enableval=$enable_shell;
3679         ol_arg=invalid
3680         for ol_val in no yes mod ; do
3681                 if test "$enableval" = "$ol_val" ; then
3682                         ol_arg="$ol_val"
3683                 fi
3684         done
3685         if test "$ol_arg" = "invalid" ; then
3686                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3687 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3688    { (exit 1); exit 1; }; }
3689         fi
3690         ol_enable_shell="$ol_arg"
3691
3692 else
3693         ol_enable_shell=${ol_enable_backends:-no}
3694 fi
3695
3696 # end --enable-shell
3697 # OpenLDAP --enable-sock
3698
3699         # Check whether --enable-sock was given.
3700 if test "${enable_sock+set}" = set; then
3701   enableval=$enable_sock;
3702         ol_arg=invalid
3703         for ol_val in no yes mod ; do
3704                 if test "$enableval" = "$ol_val" ; then
3705                         ol_arg="$ol_val"
3706                 fi
3707         done
3708         if test "$ol_arg" = "invalid" ; then
3709                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3710 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3711    { (exit 1); exit 1; }; }
3712         fi
3713         ol_enable_sock="$ol_arg"
3714
3715 else
3716         ol_enable_sock=${ol_enable_backends:-no}
3717 fi
3718
3719 # end --enable-sock
3720 # OpenLDAP --enable-sql
3721
3722         # Check whether --enable-sql was given.
3723 if test "${enable_sql+set}" = set; then
3724   enableval=$enable_sql;
3725         ol_arg=invalid
3726         for ol_val in no yes mod ; do
3727                 if test "$enableval" = "$ol_val" ; then
3728                         ol_arg="$ol_val"
3729                 fi
3730         done
3731         if test "$ol_arg" = "invalid" ; then
3732                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3733 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3734    { (exit 1); exit 1; }; }
3735         fi
3736         ol_enable_sql="$ol_arg"
3737
3738 else
3739         ol_enable_sql=${ol_enable_backends:-no}
3740 fi
3741
3742 # end --enable-sql
3743
3744 Overlays="accesslog \
3745         auditlog \
3746         collect \
3747         constraint \
3748         dds \
3749         deref \
3750         dyngroup \
3751         dynlist \
3752         memberof \
3753         ppolicy \
3754         proxycache \
3755         refint \
3756         retcode \
3757         rwm \
3758         seqmod \
3759         sssvlv \
3760         syncprov \
3761         translucent \
3762         unique \
3763         valsort"
3764
3765 # Check whether --enable-xxslapoverlays was given.
3766 if test "${enable_xxslapoverlays+set}" = set; then
3767   enableval=$enable_xxslapoverlays;
3768 fi
3769
3770
3771 # OpenLDAP --enable-overlays
3772
3773         # Check whether --enable-overlays was given.
3774 if test "${enable_overlays+set}" = set; then
3775   enableval=$enable_overlays;
3776         ol_arg=invalid
3777         for ol_val in no yes mod ; do
3778                 if test "$enableval" = "$ol_val" ; then
3779                         ol_arg="$ol_val"
3780                 fi
3781         done
3782         if test "$ol_arg" = "invalid" ; then
3783                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3784 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3785    { (exit 1); exit 1; }; }
3786         fi
3787         ol_enable_overlays="$ol_arg"
3788
3789 fi
3790
3791 # end --enable-overlays
3792 # OpenLDAP --enable-accesslog
3793
3794         # Check whether --enable-accesslog was given.
3795 if test "${enable_accesslog+set}" = set; then
3796   enableval=$enable_accesslog;
3797         ol_arg=invalid
3798         for ol_val in no yes mod ; do
3799                 if test "$enableval" = "$ol_val" ; then
3800                         ol_arg="$ol_val"
3801                 fi
3802         done
3803         if test "$ol_arg" = "invalid" ; then
3804                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3806    { (exit 1); exit 1; }; }
3807         fi
3808         ol_enable_accesslog="$ol_arg"
3809
3810 else
3811         ol_enable_accesslog=${ol_enable_overlays:-no}
3812 fi
3813
3814 # end --enable-accesslog
3815
3816 # OpenLDAP --enable-auditlog
3817
3818         # Check whether --enable-auditlog was given.
3819 if test "${enable_auditlog+set}" = set; then
3820   enableval=$enable_auditlog;
3821         ol_arg=invalid
3822         for ol_val in no yes mod ; do
3823                 if test "$enableval" = "$ol_val" ; then
3824                         ol_arg="$ol_val"
3825                 fi
3826         done
3827         if test "$ol_arg" = "invalid" ; then
3828                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3829 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3830    { (exit 1); exit 1; }; }
3831         fi
3832         ol_enable_auditlog="$ol_arg"
3833
3834 else
3835         ol_enable_auditlog=${ol_enable_overlays:-no}
3836 fi
3837
3838 # end --enable-auditlog
3839
3840 # OpenLDAP --enable-collect
3841
3842         # Check whether --enable-collect was given.
3843 if test "${enable_collect+set}" = set; then
3844   enableval=$enable_collect;
3845         ol_arg=invalid
3846         for ol_val in no yes mod ; do
3847                 if test "$enableval" = "$ol_val" ; then
3848                         ol_arg="$ol_val"
3849                 fi
3850         done
3851         if test "$ol_arg" = "invalid" ; then
3852                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3853 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3854    { (exit 1); exit 1; }; }
3855         fi
3856         ol_enable_collect="$ol_arg"
3857
3858 else
3859         ol_enable_collect=${ol_enable_overlays:-no}
3860 fi
3861
3862 # end --enable-collect
3863
3864 # OpenLDAP --enable-constraint
3865
3866         # Check whether --enable-constraint was given.
3867 if test "${enable_constraint+set}" = set; then
3868   enableval=$enable_constraint;
3869         ol_arg=invalid
3870         for ol_val in no yes mod ; do
3871                 if test "$enableval" = "$ol_val" ; then
3872                         ol_arg="$ol_val"
3873                 fi
3874         done
3875         if test "$ol_arg" = "invalid" ; then
3876                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3877 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3878    { (exit 1); exit 1; }; }
3879         fi
3880         ol_enable_constraint="$ol_arg"
3881
3882 else
3883         ol_enable_constraint=${ol_enable_overlays:-no}
3884 fi
3885
3886 # end --enable-constraint
3887
3888 # OpenLDAP --enable-dds
3889
3890         # Check whether --enable-dds was given.
3891 if test "${enable_dds+set}" = set; then
3892   enableval=$enable_dds;
3893         ol_arg=invalid
3894         for ol_val in no yes mod ; do
3895                 if test "$enableval" = "$ol_val" ; then
3896                         ol_arg="$ol_val"
3897                 fi
3898         done
3899         if test "$ol_arg" = "invalid" ; then
3900                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3901 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3902    { (exit 1); exit 1; }; }
3903         fi
3904         ol_enable_dds="$ol_arg"
3905
3906 else
3907         ol_enable_dds=${ol_enable_overlays:-no}
3908 fi
3909
3910 # end --enable-dds
3911
3912 # OpenLDAP --enable-deref
3913
3914         # Check whether --enable-deref was given.
3915 if test "${enable_deref+set}" = set; then
3916   enableval=$enable_deref;
3917         ol_arg=invalid
3918         for ol_val in no yes mod ; do
3919                 if test "$enableval" = "$ol_val" ; then
3920                         ol_arg="$ol_val"
3921                 fi
3922         done
3923         if test "$ol_arg" = "invalid" ; then
3924                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3925 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3926    { (exit 1); exit 1; }; }
3927         fi
3928         ol_enable_deref="$ol_arg"
3929
3930 else
3931         ol_enable_deref=${ol_enable_overlays:-no}
3932 fi
3933
3934 # end --enable-deref
3935
3936 # OpenLDAP --enable-dyngroup
3937
3938         # Check whether --enable-dyngroup was given.
3939 if test "${enable_dyngroup+set}" = set; then
3940   enableval=$enable_dyngroup;
3941         ol_arg=invalid
3942         for ol_val in no yes mod ; do
3943                 if test "$enableval" = "$ol_val" ; then
3944                         ol_arg="$ol_val"
3945                 fi
3946         done
3947         if test "$ol_arg" = "invalid" ; then
3948                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3949 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3950    { (exit 1); exit 1; }; }
3951         fi
3952         ol_enable_dyngroup="$ol_arg"
3953
3954 else
3955         ol_enable_dyngroup=${ol_enable_overlays:-no}
3956 fi
3957
3958 # end --enable-dyngroup
3959
3960 # OpenLDAP --enable-dynlist
3961
3962         # Check whether --enable-dynlist was given.
3963 if test "${enable_dynlist+set}" = set; then
3964   enableval=$enable_dynlist;
3965         ol_arg=invalid
3966         for ol_val in no yes mod ; do
3967                 if test "$enableval" = "$ol_val" ; then
3968                         ol_arg="$ol_val"
3969                 fi
3970         done
3971         if test "$ol_arg" = "invalid" ; then
3972                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3973 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3974    { (exit 1); exit 1; }; }
3975         fi
3976         ol_enable_dynlist="$ol_arg"
3977
3978 else
3979         ol_enable_dynlist=${ol_enable_overlays:-no}
3980 fi
3981
3982 # end --enable-dynlist
3983
3984 # OpenLDAP --enable-memberof
3985
3986         # Check whether --enable-memberof was given.
3987 if test "${enable_memberof+set}" = set; then
3988   enableval=$enable_memberof;
3989         ol_arg=invalid
3990         for ol_val in no yes mod ; do
3991                 if test "$enableval" = "$ol_val" ; then
3992                         ol_arg="$ol_val"
3993                 fi
3994         done
3995         if test "$ol_arg" = "invalid" ; then
3996                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3997 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3998    { (exit 1); exit 1; }; }
3999         fi
4000         ol_enable_memberof="$ol_arg"
4001
4002 else
4003         ol_enable_memberof=${ol_enable_overlays:-no}
4004 fi
4005
4006 # end --enable-memberof
4007
4008 # OpenLDAP --enable-ppolicy
4009
4010         # Check whether --enable-ppolicy was given.
4011 if test "${enable_ppolicy+set}" = set; then
4012   enableval=$enable_ppolicy;
4013         ol_arg=invalid
4014         for ol_val in no yes mod ; do
4015                 if test "$enableval" = "$ol_val" ; then
4016                         ol_arg="$ol_val"
4017                 fi
4018         done
4019         if test "$ol_arg" = "invalid" ; then
4020                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4021 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4022    { (exit 1); exit 1; }; }
4023         fi
4024         ol_enable_ppolicy="$ol_arg"
4025
4026 else
4027         ol_enable_ppolicy=${ol_enable_overlays:-no}
4028 fi
4029
4030 # end --enable-ppolicy
4031
4032 # OpenLDAP --enable-proxycache
4033
4034         # Check whether --enable-proxycache was given.
4035 if test "${enable_proxycache+set}" = set; then
4036   enableval=$enable_proxycache;
4037         ol_arg=invalid
4038         for ol_val in no yes mod ; do
4039                 if test "$enableval" = "$ol_val" ; then
4040                         ol_arg="$ol_val"
4041                 fi
4042         done
4043         if test "$ol_arg" = "invalid" ; then
4044                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4045 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4046    { (exit 1); exit 1; }; }
4047         fi
4048         ol_enable_proxycache="$ol_arg"
4049
4050 else
4051         ol_enable_proxycache=${ol_enable_overlays:-no}
4052 fi
4053
4054 # end --enable-proxycache
4055
4056 # OpenLDAP --enable-refint
4057
4058         # Check whether --enable-refint was given.
4059 if test "${enable_refint+set}" = set; then
4060   enableval=$enable_refint;
4061         ol_arg=invalid
4062         for ol_val in no yes mod ; do
4063                 if test "$enableval" = "$ol_val" ; then
4064                         ol_arg="$ol_val"
4065                 fi
4066         done
4067         if test "$ol_arg" = "invalid" ; then
4068                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4069 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4070    { (exit 1); exit 1; }; }
4071         fi
4072         ol_enable_refint="$ol_arg"
4073
4074 else
4075         ol_enable_refint=${ol_enable_overlays:-no}
4076 fi
4077
4078 # end --enable-refint
4079
4080 # OpenLDAP --enable-retcode
4081
4082         # Check whether --enable-retcode was given.
4083 if test "${enable_retcode+set}" = set; then
4084   enableval=$enable_retcode;
4085         ol_arg=invalid
4086         for ol_val in no yes mod ; do
4087                 if test "$enableval" = "$ol_val" ; then
4088                         ol_arg="$ol_val"
4089                 fi
4090         done
4091         if test "$ol_arg" = "invalid" ; then
4092                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4093 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4094    { (exit 1); exit 1; }; }
4095         fi
4096         ol_enable_retcode="$ol_arg"
4097
4098 else
4099         ol_enable_retcode=${ol_enable_overlays:-no}
4100 fi
4101
4102 # end --enable-retcode
4103
4104 # OpenLDAP --enable-rwm
4105
4106         # Check whether --enable-rwm was given.
4107 if test "${enable_rwm+set}" = set; then
4108   enableval=$enable_rwm;
4109         ol_arg=invalid
4110         for ol_val in no yes mod ; do
4111                 if test "$enableval" = "$ol_val" ; then
4112                         ol_arg="$ol_val"
4113                 fi
4114         done
4115         if test "$ol_arg" = "invalid" ; then
4116                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4117 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4118    { (exit 1); exit 1; }; }
4119         fi
4120         ol_enable_rwm="$ol_arg"
4121
4122 else
4123         ol_enable_rwm=${ol_enable_overlays:-no}
4124 fi
4125
4126 # end --enable-rwm
4127
4128 # OpenLDAP --enable-seqmod
4129
4130         # Check whether --enable-seqmod was given.
4131 if test "${enable_seqmod+set}" = set; then
4132   enableval=$enable_seqmod;
4133         ol_arg=invalid
4134         for ol_val in no yes mod ; do
4135                 if test "$enableval" = "$ol_val" ; then
4136                         ol_arg="$ol_val"
4137                 fi
4138         done
4139         if test "$ol_arg" = "invalid" ; then
4140                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4141 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4142    { (exit 1); exit 1; }; }
4143         fi
4144         ol_enable_seqmod="$ol_arg"
4145
4146 else
4147         ol_enable_seqmod=${ol_enable_overlays:-no}
4148 fi
4149
4150 # end --enable-seqmod
4151
4152 # OpenLDAP --enable-sssvlv
4153
4154         # Check whether --enable-sssvlv was given.
4155 if test "${enable_sssvlv+set}" = set; then
4156   enableval=$enable_sssvlv;
4157         ol_arg=invalid
4158         for ol_val in no yes mod ; do
4159                 if test "$enableval" = "$ol_val" ; then
4160                         ol_arg="$ol_val"
4161                 fi
4162         done
4163         if test "$ol_arg" = "invalid" ; then
4164                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4165 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4166    { (exit 1); exit 1; }; }
4167         fi
4168         ol_enable_sssvlv="$ol_arg"
4169
4170 else
4171         ol_enable_sssvlv=${ol_enable_overlays:-no}
4172 fi
4173
4174 # end --enable-sssvlv
4175
4176 # OpenLDAP --enable-syncprov
4177
4178         # Check whether --enable-syncprov was given.
4179 if test "${enable_syncprov+set}" = set; then
4180   enableval=$enable_syncprov;
4181         ol_arg=invalid
4182         for ol_val in no yes mod ; do
4183                 if test "$enableval" = "$ol_val" ; then
4184                         ol_arg="$ol_val"
4185                 fi
4186         done
4187         if test "$ol_arg" = "invalid" ; then
4188                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4189 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4190    { (exit 1); exit 1; }; }
4191         fi
4192         ol_enable_syncprov="$ol_arg"
4193
4194 else
4195         ol_enable_syncprov=${ol_enable_overlays:-yes}
4196 fi
4197
4198 # end --enable-syncprov
4199
4200 # OpenLDAP --enable-translucent
4201
4202         # Check whether --enable-translucent was given.
4203 if test "${enable_translucent+set}" = set; then
4204   enableval=$enable_translucent;
4205         ol_arg=invalid
4206         for ol_val in no yes mod ; do
4207                 if test "$enableval" = "$ol_val" ; then
4208                         ol_arg="$ol_val"
4209                 fi
4210         done
4211         if test "$ol_arg" = "invalid" ; then
4212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4213 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4214    { (exit 1); exit 1; }; }
4215         fi
4216         ol_enable_translucent="$ol_arg"
4217
4218 else
4219         ol_enable_translucent=${ol_enable_overlays:-no}
4220 fi
4221
4222 # end --enable-translucent
4223
4224 # OpenLDAP --enable-unique
4225
4226         # Check whether --enable-unique was given.
4227 if test "${enable_unique+set}" = set; then
4228   enableval=$enable_unique;
4229         ol_arg=invalid
4230         for ol_val in no yes mod ; do
4231                 if test "$enableval" = "$ol_val" ; then
4232                         ol_arg="$ol_val"
4233                 fi
4234         done
4235         if test "$ol_arg" = "invalid" ; then
4236                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4237 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4238    { (exit 1); exit 1; }; }
4239         fi
4240         ol_enable_unique="$ol_arg"
4241
4242 else
4243         ol_enable_unique=${ol_enable_overlays:-no}
4244 fi
4245
4246 # end --enable-unique
4247
4248 # OpenLDAP --enable-valsort
4249
4250         # Check whether --enable-valsort was given.
4251 if test "${enable_valsort+set}" = set; then
4252   enableval=$enable_valsort;
4253         ol_arg=invalid
4254         for ol_val in no yes mod ; do
4255                 if test "$enableval" = "$ol_val" ; then
4256                         ol_arg="$ol_val"
4257                 fi
4258         done
4259         if test "$ol_arg" = "invalid" ; then
4260                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4261 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4262    { (exit 1); exit 1; }; }
4263         fi
4264         ol_enable_valsort="$ol_arg"
4265
4266 else
4267         ol_enable_valsort=${ol_enable_overlays:-no}
4268 fi
4269
4270 # end --enable-valsort
4271
4272
4273 # Check whether --enable-xxliboptions was given.
4274 if test "${enable_xxliboptions+set}" = set; then
4275   enableval=$enable_xxliboptions;
4276 fi
4277
4278 # Check whether --enable-static was given.
4279 if test "${enable_static+set}" = set; then
4280   enableval=$enable_static; p=${PACKAGE-default}
4281     case $enableval in
4282     yes) enable_static=yes ;;
4283     no) enable_static=no ;;
4284     *)
4285      enable_static=no
4286       # Look at the argument we got.  We use all the common list separators.
4287       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288       for pkg in $enableval; do
4289         IFS="$lt_save_ifs"
4290         if test "X$pkg" = "X$p"; then
4291           enable_static=yes
4292         fi
4293       done
4294       IFS="$lt_save_ifs"
4295       ;;
4296     esac
4297 else
4298   enable_static=yes
4299 fi
4300
4301
4302 # Check whether --enable-shared was given.
4303 if test "${enable_shared+set}" = set; then
4304   enableval=$enable_shared; p=${PACKAGE-default}
4305     case $enableval in
4306     yes) enable_shared=yes ;;
4307     no) enable_shared=no ;;
4308     *)
4309       enable_shared=no
4310       # Look at the argument we got.  We use all the common list separators.
4311       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4312       for pkg in $enableval; do
4313         IFS="$lt_save_ifs"
4314         if test "X$pkg" = "X$p"; then
4315           enable_shared=yes
4316         fi
4317       done
4318       IFS="$lt_save_ifs"
4319       ;;
4320     esac
4321 else
4322   enable_shared=yes
4323 fi
4324
4325
4326
4327
4328 # validate options
4329 if test $ol_enable_slapd = no ; then
4330                 if test $ol_enable_slapi = yes ; then
4331                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4333         fi
4334         case "$ol_enable_backends" in yes | mod)
4335                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4337         esac
4338         for i in $Backends; do
4339                 eval "ol_tmp=\$ol_enable_$i"
4340                 if test $ol_tmp != no ; then
4341                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4342 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4343                         eval "ol_enable_$i=no"
4344                 fi
4345         done
4346         if test $ol_enable_modules = yes ; then
4347                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4348 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4349         fi
4350         if test $ol_enable_wrappers = yes ; then
4351                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4352 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4353         fi
4354         if test $ol_enable_rlookups = yes ; then
4355                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4356 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4357         fi
4358         if test $ol_enable_dynacl = yes ; then
4359                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4360 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4361         fi
4362         if test $ol_enable_aci != no ; then
4363                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4364 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4365         fi
4366         if test $ol_enable_rewrite = yes ; then
4367                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4368 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4369         fi
4370                 case "$ol_enable_overlays" in yes | mod)
4371                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4372 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4373         esac
4374         for i in $Overlays; do
4375                 eval "ol_tmp=\$ol_enable_$i"
4376                 if test $ol_tmp != no ; then
4377                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4378 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4379                         eval "ol_enable_$i=no"
4380                 fi
4381         done
4382
4383         # force settings to no
4384         ol_enable_slapi=no
4385
4386         ol_enable_backends=
4387         ol_enable_overlays=
4388         ol_enable_modules=no
4389         ol_enable_rlookups=no
4390         ol_enable_dynacl=no
4391         ol_enable_aci=no
4392         ol_enable_wrappers=no
4393
4394         ol_enable_rewrite=no
4395
4396 elif test $ol_enable_modules != yes &&
4397         test $ol_enable_bdb = no &&
4398         test $ol_enable_dnssrv = no &&
4399         test $ol_enable_hdb = no &&
4400         test $ol_enable_ldap = no &&
4401         test $ol_enable_meta = no &&
4402         test $ol_enable_monitor = no &&
4403         test $ol_enable_ndb = no &&
4404         test $ol_enable_null = no &&
4405         test $ol_enable_passwd = no &&
4406         test $ol_enable_perl = no &&
4407         test $ol_enable_relay = no &&
4408         test $ol_enable_shell = no &&
4409         test $ol_enable_sock = no &&
4410         test $ol_enable_sql = no ; then
4411
4412         if test $ol_enable_slapd = yes ; then
4413                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4414 echo "$as_me: error: slapd requires a backend" >&2;}
4415    { (exit 1); exit 1; }; }
4416         else
4417                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4418 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4419                 ol_enable_slapd=no
4420         fi
4421 fi
4422
4423 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4424         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4425 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4426    { (exit 1); exit 1; }; }
4427 fi
4428
4429 if test $ol_enable_lmpasswd = yes ; then
4430         if test $ol_with_tls = no ; then
4431                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4432 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4433    { (exit 1); exit 1; }; }
4434         fi
4435 fi
4436
4437 if test $ol_enable_spasswd = yes ; then
4438         if test $ol_with_cyrus_sasl = no ; then
4439                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4440 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4441    { (exit 1); exit 1; }; }
4442         fi
4443         ol_with_cyrus_sasl=yes
4444 fi
4445
4446 { echo "$as_me:$LINENO: result: done" >&5
4447 echo "${ECHO_T}done" >&6; }
4448
4449 LDAP_LIBS=
4450 BDB_LIBS=
4451 SLAPD_NDB_LIBS=
4452 SLAPD_NDB_INCS=
4453 LTHREAD_LIBS=
4454 LUTIL_LIBS=
4455
4456 SLAPD_LIBS=
4457
4458 BUILD_SLAPD=no
4459
4460 BUILD_THREAD=no
4461
4462 BUILD_SLAPI=no
4463 SLAPD_SLAPI_DEPEND=
4464
4465 BUILD_BDB=no
4466 BUILD_DNSSRV=no
4467 BUILD_HDB=no
4468 BUILD_LDAP=no
4469 BUILD_META=no
4470 BUILD_MONITOR=no
4471 BUILD_NDB=no
4472 BUILD_NULL=no
4473 BUILD_PASSWD=no
4474 BUILD_PERL=no
4475 BUILD_RELAY=no
4476 BUILD_SHELL=no
4477 BUILD_SOCK=no
4478 BUILD_SQL=no
4479
4480 BUILD_ACCESSLOG=no
4481 BUILD_AUDITLOG=no
4482 BUILD_CONSTRAINT=no
4483 BUILD_DDS=no
4484 BUILD_DENYOP=no
4485 BUILD_DEREF=no
4486 BUILD_DYNGROUP=no
4487 BUILD_DYNLIST=no
4488 BUILD_LASTMOD=no
4489 BUILD_MEMBEROF=no
4490 BUILD_PPOLICY=no
4491 BUILD_PROXYCACHE=no
4492 BUILD_REFINT=no
4493 BUILD_RETCODE=no
4494 BUILD_RWM=no
4495 BUILD_SEQMOD=no
4496 BUILD_SSSVLV=no
4497 BUILD_SYNCPROV=no
4498 BUILD_TRANSLUCENT=no
4499 BUILD_UNIQUE=no
4500 BUILD_VALSORT=no
4501
4502 SLAPD_STATIC_OVERLAYS=
4503 SLAPD_DYNAMIC_OVERLAYS=
4504
4505 SLAPD_MODULES_LDFLAGS=
4506 SLAPD_MODULES_CPPFLAGS=
4507
4508 SLAPD_STATIC_BACKENDS=back-ldif
4509 SLAPD_DYNAMIC_BACKENDS=
4510
4511 SLAPD_PERL_LDFLAGS=
4512 MOD_PERL_LDFLAGS=
4513 PERL_CPPFLAGS=
4514
4515 SLAPD_SQL_LDFLAGS=
4516 SLAPD_SQL_LIBS=
4517 SLAPD_SQL_INCLUDES=
4518
4519 KRB4_LIBS=
4520 KRB5_LIBS=
4521 SASL_LIBS=
4522 TLS_LIBS=
4523 MODULES_LIBS=
4524 SLAPI_LIBS=
4525 LIBSLAPI=
4526 LIBSLAPITOOLS=
4527 AUTH_LIBS=
4528 ICU_LIBS=
4529
4530 SLAPD_SLP_LIBS=
4531 SLAPD_GMP_LIBS=
4532
4533
4534
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_MKVERSION 1
4537 _ACEOF
4538
4539
4540
4541
4542 ol_aix_threads=no
4543 case "$target" in
4544 *-*-aix*)       if test -z "$CC" ; then
4545                 case "$ol_with_threads" in
4546                 auto | yes |  posix) ol_aix_threads=yes ;;
4547                 esac
4548         fi
4549 ;;
4550 esac
4551
4552 if test $ol_aix_threads = yes ; then
4553         if test -z "${CC}" ; then
4554                 for ac_prog in cc_r xlc_r cc
4555 do
4556   # Extract the first word of "$ac_prog", so it can be a program name with args.
4557 set dummy $ac_prog; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_CC+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$CC"; then
4564   ac_cv_prog_CC="$CC" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     ac_cv_prog_CC="$ac_prog"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579 IFS=$as_save_IFS
4580
4581 fi
4582 fi
4583 CC=$ac_cv_prog_CC
4584 if test -n "$CC"; then
4585   { echo "$as_me:$LINENO: result: $CC" >&5
4586 echo "${ECHO_T}$CC" >&6; }
4587 else
4588   { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4590 fi
4591
4592
4593   test -n "$CC" && break
4594 done
4595
4596
4597                 if test "$CC" = cc ; then
4598                                                 if test $ol_with_threads != auto ; then
4599                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4600 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4601    { (exit 1); exit 1; }; }
4602                         else
4603                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4604 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4605                         fi
4606                         ol_with_threads=no
4607                 fi
4608         fi
4609
4610         case ${CC} in cc_r | xlc_r)
4611                 ol_with_threads=posix
4612                 ol_cv_pthread_create=yes
4613                 ;;
4614         esac
4615 fi
4616
4617 if test -z "${CC}"; then
4618         for ac_prog in cc gcc
4619 do
4620   # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   if test -n "$CC"; then
4628   ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637     ac_cv_prog_CC="$ac_prog"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649   { echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6; }
4651 else
4652   { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4654 fi
4655
4656
4657   test -n "$CC" && break
4658 done
4659 test -n "$CC" || CC="missing"
4660
4661
4662         if test "${CC}" = "missing" ; then
4663                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4664 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4665    { (exit 1); exit 1; }; }
4666         fi
4667 fi
4668
4669 if test -z "${AR}"; then
4670         for ac_prog in ar gar
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_AR+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   if test -n "$AR"; then
4680   ac_cv_prog_AR="$AR" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     ac_cv_prog_AR="$ac_prog"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 AR=$ac_cv_prog_AR
4700 if test -n "$AR"; then
4701   { echo "$as_me:$LINENO: result: $AR" >&5
4702 echo "${ECHO_T}$AR" >&6; }
4703 else
4704   { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706 fi
4707
4708
4709   test -n "$AR" && break
4710 done
4711 test -n "$AR" || AR="missing"
4712
4713
4714         if test "${AR}" = "missing" ; then
4715                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4716 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4717    { (exit 1); exit 1; }; }
4718         fi
4719 fi
4720
4721
4722
4723
4724
4725 # Check whether --enable-fast-install was given.
4726 if test "${enable_fast_install+set}" = set; then
4727   enableval=$enable_fast_install; p=${PACKAGE-default}
4728     case $enableval in
4729     yes) enable_fast_install=yes ;;
4730     no) enable_fast_install=no ;;
4731     *)
4732       enable_fast_install=no
4733       # Look at the argument we got.  We use all the common list separators.
4734       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4735       for pkg in $enableval; do
4736         IFS="$lt_save_ifs"
4737         if test "X$pkg" = "X$p"; then
4738           enable_fast_install=yes
4739         fi
4740       done
4741       IFS="$lt_save_ifs"
4742       ;;
4743     esac
4744 else
4745   enable_fast_install=yes
4746 fi
4747
4748
4749 DEPDIR="${am__leading_dot}deps"
4750
4751 ac_config_commands="$ac_config_commands depfiles"
4752
4753
4754 am_make=${MAKE-make}
4755 cat > confinc << 'END'
4756 am__doit:
4757         @echo done
4758 .PHONY: am__doit
4759 END
4760 # If we don't find an include directive, just comment out the code.
4761 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4763 am__include="#"
4764 am__quote=
4765 _am_result=none
4766 # First try GNU make style include.
4767 echo "include confinc" > confmf
4768 # We grep out `Entering directory' and `Leaving directory'
4769 # messages which can occur if `w' ends up in MAKEFLAGS.
4770 # In particular we don't look at `^make:' because GNU make might
4771 # be invoked under some other name (usually "gmake"), in which
4772 # case it prints its new name instead of `make'.
4773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4774    am__include=include
4775    am__quote=
4776    _am_result=GNU
4777 fi
4778 # Now try BSD make style include.
4779 if test "$am__include" = "#"; then
4780    echo '.include "confinc"' > confmf
4781    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4782       am__include=.include
4783       am__quote="\""
4784       _am_result=BSD
4785    fi
4786 fi
4787
4788
4789 { echo "$as_me:$LINENO: result: $_am_result" >&5
4790 echo "${ECHO_T}$_am_result" >&6; }
4791 rm -f confinc confmf
4792
4793 # Check whether --enable-dependency-tracking was given.
4794 if test "${enable_dependency_tracking+set}" = set; then
4795   enableval=$enable_dependency_tracking;
4796 fi
4797
4798 if test "x$enable_dependency_tracking" != xno; then
4799   am_depcomp="$ac_aux_dir/depcomp"
4800   AMDEPBACKSLASH='\'
4801 fi
4802
4803
4804 if test "x$enable_dependency_tracking" != xno; then
4805   AMDEP_TRUE=
4806   AMDEP_FALSE='#'
4807 else
4808   AMDEP_TRUE='#'
4809   AMDEP_FALSE=
4810 fi
4811
4812
4813
4814 ac_ext=c
4815 ac_cpp='$CPP $CPPFLAGS'
4816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819 if test -n "$ac_tool_prefix"; then
4820   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   if test -n "$CC"; then
4828   ac_cv_prog_CC="$CC" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849   { echo "$as_me:$LINENO: result: $CC" >&5
4850 echo "${ECHO_T}$CC" >&6; }
4851 else
4852   { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 fi
4855
4856
4857 fi
4858 if test -z "$ac_cv_prog_CC"; then
4859   ac_ct_CC=$CC
4860   # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$ac_ct_CC"; then
4868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_prog_ac_ct_CC="gcc"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4890 echo "${ECHO_T}$ac_ct_CC" >&6; }
4891 else
4892   { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4894 fi
4895
4896   if test "x$ac_ct_CC" = x; then
4897     CC=""
4898   else
4899     case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4902 whose name does not start with the host triplet.  If you think this
4903 configuration is useful to you, please write to autoconf@gnu.org." >&5
4904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4905 whose name does not start with the host triplet.  If you think this
4906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909     CC=$ac_ct_CC
4910   fi
4911 else
4912   CC="$ac_cv_prog_CC"
4913 fi
4914
4915 if test -z "$CC"; then
4916           if test -n "$ac_tool_prefix"; then
4917     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}cc; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_CC+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   if test -n "$CC"; then
4925   ac_cv_prog_CC="$CC" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932   for ac_exec_ext in '' $ac_executable_extensions; do
4933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934     ac_cv_prog_CC="${ac_tool_prefix}cc"
4935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936     break 2
4937   fi
4938 done
4939 done
4940 IFS=$as_save_IFS
4941
4942 fi
4943 fi
4944 CC=$ac_cv_prog_CC
4945 if test -n "$CC"; then
4946   { echo "$as_me:$LINENO: result: $CC" >&5
4947 echo "${ECHO_T}$CC" >&6; }
4948 else
4949   { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4951 fi
4952
4953
4954   fi
4955 fi
4956 if test -z "$CC"; then
4957   # Extract the first word of "cc", so it can be a program name with args.
4958 set dummy cc; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_CC+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   if test -n "$CC"; then
4965   ac_cv_prog_CC="$CC" # Let the user override the test.
4966 else
4967   ac_prog_rejected=no
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971   IFS=$as_save_IFS
4972   test -z "$as_dir" && as_dir=.
4973   for ac_exec_ext in '' $ac_executable_extensions; do
4974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4976        ac_prog_rejected=yes
4977        continue
4978      fi
4979     ac_cv_prog_CC="cc"
4980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984 done
4985 IFS=$as_save_IFS
4986
4987 if test $ac_prog_rejected = yes; then
4988   # We found a bogon in the path, so make sure we never use it.
4989   set dummy $ac_cv_prog_CC
4990   shift
4991   if test $# != 0; then
4992     # We chose a different compiler from the bogus one.
4993     # However, it has the same basename, so the bogon will be chosen
4994     # first if we set CC to just the basename; use the full file name.
4995     shift
4996     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4997   fi
4998 fi
4999 fi
5000 fi
5001 CC=$ac_cv_prog_CC
5002 if test -n "$CC"; then
5003   { echo "$as_me:$LINENO: result: $CC" >&5
5004 echo "${ECHO_T}$CC" >&6; }
5005 else
5006   { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5008 fi
5009
5010
5011 fi
5012 if test -z "$CC"; then
5013   if test -n "$ac_tool_prefix"; then
5014   for ac_prog in cl.exe
5015   do
5016     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_CC+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   if test -n "$CC"; then
5024   ac_cv_prog_CC="$CC" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 CC=$ac_cv_prog_CC
5044 if test -n "$CC"; then
5045   { echo "$as_me:$LINENO: result: $CC" >&5
5046 echo "${ECHO_T}$CC" >&6; }
5047 else
5048   { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5050 fi
5051
5052
5053     test -n "$CC" && break
5054   done
5055 fi
5056 if test -z "$CC"; then
5057   ac_ct_CC=$CC
5058   for ac_prog in cl.exe
5059 do
5060   # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   if test -n "$ac_ct_CC"; then
5068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_prog_ac_ct_CC="$ac_prog"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085 fi
5086 fi
5087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5088 if test -n "$ac_ct_CC"; then
5089   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5090 echo "${ECHO_T}$ac_ct_CC" >&6; }
5091 else
5092   { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5094 fi
5095
5096
5097   test -n "$ac_ct_CC" && break
5098 done
5099
5100   if test "x$ac_ct_CC" = x; then
5101     CC=""
5102   else
5103     case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106 whose name does not start with the host triplet.  If you think this
5107 configuration is useful to you, please write to autoconf@gnu.org." >&5
5108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet.  If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111 ac_tool_warned=yes ;;
5112 esac
5113     CC=$ac_ct_CC
5114   fi
5115 fi
5116
5117 fi
5118
5119
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124    { (exit 1); exit 1; }; }
5125
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5130 case "(($ac_try" in
5131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132   *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135   (eval "$ac_compiler --version >&5") 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5140 case "(($ac_try" in
5141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142   *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145   (eval "$ac_compiler -v >&5") 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5150 case "(($ac_try" in
5151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152   *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155   (eval "$ac_compiler -V >&5") 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }
5159
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166
5167 int
5168 main ()
5169 {
5170
5171   ;
5172   return 0;
5173 }
5174 _ACEOF
5175 ac_clean_files_save=$ac_clean_files
5176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5177 # Try to create an executable without -o first, disregard a.out.
5178 # It will help us diagnose broken compilers, and finding out an intuition
5179 # of exeext.
5180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5183 #
5184 # List of possible output files, starting from the most likely.
5185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5186 # only as a last resort.  b.out is created by i960 compilers.
5187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5188 #
5189 # The IRIX 6 linker writes into existing files which may not be
5190 # executable, retaining their permissions.  Remove them first so a
5191 # subsequent execution test works.
5192 ac_rmfiles=
5193 for ac_file in $ac_files
5194 do
5195   case $ac_file in
5196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5197     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5198   esac
5199 done
5200 rm -f $ac_rmfiles
5201
5202 if { (ac_try="$ac_link_default"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208   (eval "$ac_link_default") 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; then
5212   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5214 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5215 # so that the user can short-circuit this test for compilers unknown to
5216 # Autoconf.
5217 for ac_file in $ac_files ''
5218 do
5219   test -f "$ac_file" || continue
5220   case $ac_file in
5221     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5222         ;;
5223     [ab].out )
5224         # We found the default executable, but exeext='' is most
5225         # certainly right.
5226         break;;
5227     *.* )
5228         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5229         then :; else
5230            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5231         fi
5232         # We set ac_cv_exeext here because the later test for it is not
5233         # safe: cross compilers may not add the suffix if given an `-o'
5234         # argument, so we may need to know it at that point already.
5235         # Even if this section looks crufty: it has the advantage of
5236         # actually working.
5237         break;;
5238     * )
5239         break;;
5240   esac
5241 done
5242 test "$ac_cv_exeext" = no && ac_cv_exeext=
5243
5244 else
5245   ac_file=''
5246 fi
5247
5248 { echo "$as_me:$LINENO: result: $ac_file" >&5
5249 echo "${ECHO_T}$ac_file" >&6; }
5250 if test -z "$ac_file"; then
5251   echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&5
5256 echo "$as_me: error: C compiler cannot create executables
5257 See \`config.log' for more details." >&2;}
5258    { (exit 77); exit 77; }; }
5259 fi
5260
5261 ac_exeext=$ac_cv_exeext
5262
5263 # Check that the compiler produces executables we can run.  If not, either
5264 # the compiler is broken, or we cross compile.
5265 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5266 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5267 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5268 # If not cross compiling, check that we can run a simple program.
5269 if test "$cross_compiling" != yes; then
5270   if { ac_try='./$ac_file'
5271   { (case "(($ac_try" in
5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273   *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276   (eval "$ac_try") 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }; }; then
5280     cross_compiling=no
5281   else
5282     if test "$cross_compiling" = maybe; then
5283         cross_compiling=yes
5284     else
5285         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5286 If you meant to cross compile, use \`--host'.
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: cannot run C compiled programs.
5289 If you meant to cross compile, use \`--host'.
5290 See \`config.log' for more details." >&2;}
5291    { (exit 1); exit 1; }; }
5292     fi
5293   fi
5294 fi
5295 { echo "$as_me:$LINENO: result: yes" >&5
5296 echo "${ECHO_T}yes" >&6; }
5297
5298 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5299 ac_clean_files=$ac_clean_files_save
5300 # Check that the compiler produces executables we can run.  If not, either
5301 # the compiler is broken, or we cross compile.
5302 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5304 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5305 echo "${ECHO_T}$cross_compiling" >&6; }
5306
5307 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5309 if { (ac_try="$ac_link"
5310 case "(($ac_try" in
5311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312   *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315   (eval "$ac_link") 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; then
5319   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5320 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5321 # work properly (i.e., refer to `conftest.exe'), while it won't with
5322 # `rm'.
5323 for ac_file in conftest.exe conftest conftest.*; do
5324   test -f "$ac_file" || continue
5325   case $ac_file in
5326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5327     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5328           break;;
5329     * ) break;;
5330   esac
5331 done
5332 else
5333   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&5
5335 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5336 See \`config.log' for more details." >&2;}
5337    { (exit 1); exit 1; }; }
5338 fi
5339
5340 rm -f conftest$ac_cv_exeext
5341 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5342 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5343
5344 rm -f conftest.$ac_ext
5345 EXEEXT=$ac_cv_exeext
5346 ac_exeext=$EXEEXT
5347 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5348 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5349 if test "${ac_cv_objext+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358
5359 int
5360 main ()
5361 {
5362
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.o conftest.obj
5368 if { (ac_try="$ac_compile"
5369 case "(($ac_try" in
5370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371   *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374   (eval "$ac_compile") 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; then
5378   for ac_file in conftest.o conftest.obj conftest.*; do
5379   test -f "$ac_file" || continue;
5380   case $ac_file in
5381     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5382     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5383        break;;
5384   esac
5385 done
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&5
5392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5393 See \`config.log' for more details." >&2;}
5394    { (exit 1); exit 1; }; }
5395 fi
5396
5397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5398 fi
5399 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5400 echo "${ECHO_T}$ac_cv_objext" >&6; }
5401 OBJEXT=$ac_cv_objext
5402 ac_objext=$OBJEXT
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414
5415 int
5416 main ()
5417 {
5418 #ifndef __GNUC__
5419        choke me
5420 #endif
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_compile") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && {
5440          test -z "$ac_c_werror_flag" ||
5441          test ! -s conftest.err
5442        } && test -s conftest.$ac_objext; then
5443   ac_compiler_gnu=yes
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448         ac_compiler_gnu=no
5449 fi
5450
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5453
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5457 GCC=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CFLAGS=${CFLAGS+set}
5459 ac_save_CFLAGS=$CFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cc_g+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   ac_save_c_werror_flag=$ac_c_werror_flag
5466    ac_c_werror_flag=yes
5467    ac_cv_prog_cc_g=no
5468    CFLAGS="-g"
5469    cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475
5476 int
5477 main ()
5478 {
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491   (eval "$ac_compile") 2>conftest.er1
5492   ac_status=$?
5493   grep -v '^ *+' conftest.er1 >conftest.err
5494   rm -f conftest.er1
5495   cat conftest.err >&5
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } && {
5498          test -z "$ac_c_werror_flag" ||
5499          test ! -s conftest.err
5500        } && test -s conftest.$ac_objext; then
5501   ac_cv_prog_cc_g=yes
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506         CFLAGS=""
5507       cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529   (eval "$ac_compile") 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } && {
5536          test -z "$ac_c_werror_flag" ||
5537          test ! -s conftest.err
5538        } && test -s conftest.$ac_objext; then
5539   :
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544         ac_c_werror_flag=$ac_save_c_werror_flag
5545          CFLAGS="-g"
5546          cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552
5553 int
5554 main ()
5555 {
5556
5557   ;
5558   return 0;
5559 }
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5563 case "(($ac_try" in
5564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565   *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568   (eval "$ac_compile") 2>conftest.er1
5569   ac_status=$?
5570   grep -v '^ *+' conftest.er1 >conftest.err
5571   rm -f conftest.er1
5572   cat conftest.err >&5
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); } && {
5575          test -z "$ac_c_werror_flag" ||
5576          test ! -s conftest.err
5577        } && test -s conftest.$ac_objext; then
5578   ac_cv_prog_cc_g=yes
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583
5584 fi
5585
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593    ac_c_werror_flag=$ac_save_c_werror_flag
5594 fi
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5597 if test "$ac_test_CFLAGS" = set; then
5598   CFLAGS=$ac_save_CFLAGS
5599 elif test $ac_cv_prog_cc_g = yes; then
5600   if test "$GCC" = yes; then
5601     CFLAGS="-g -O2"
5602   else
5603     CFLAGS="-g"
5604   fi
5605 else
5606   if test "$GCC" = yes; then
5607     CFLAGS="-O2"
5608   else
5609     CFLAGS=
5610   fi
5611 fi
5612 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5613 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5614 if test "${ac_cv_prog_cc_c89+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   ac_cv_prog_cc_c89=no
5618 ac_save_CC=$CC
5619 cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 #include <stdarg.h>
5626 #include <stdio.h>
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5633      char **p;
5634      int i;
5635 {
5636   return p[i];
5637 }
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5639 {
5640   char *s;
5641   va_list v;
5642   va_start (v,p);
5643   s = g (p, va_arg (v,int));
5644   va_end (v);
5645   return s;
5646 }
5647
5648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5649    function prototypes and stuff, but not '\xHH' hex character constants.
5650    These don't provoke an error unfortunately, instead are silently treated
5651    as 'x'.  The following induces an error, until -std is added to get
5652    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5653    array size at least.  It's necessary to write '\x00'==0 to get something
5654    that's true only with -std.  */
5655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5656
5657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5658    inside strings and character constants.  */
5659 #define FOO(x) 'x'
5660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5661
5662 int test (int i, double x);
5663 struct s1 {int (*f) (int a);};
5664 struct s2 {int (*f) (double a);};
5665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5666 int argc;
5667 char **argv;
5668 int
5669 main ()
5670 {
5671 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5677         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5678 do
5679   CC="$ac_save_CC $ac_arg"
5680   rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5682 case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687   (eval "$ac_compile") 2>conftest.er1
5688   ac_status=$?
5689   grep -v '^ *+' conftest.er1 >conftest.err
5690   rm -f conftest.er1
5691   cat conftest.err >&5
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } && {
5694          test -z "$ac_c_werror_flag" ||
5695          test ! -s conftest.err
5696        } && test -s conftest.$ac_objext; then
5697   ac_cv_prog_cc_c89=$ac_arg
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702
5703 fi
5704
5705 rm -f core conftest.err conftest.$ac_objext
5706   test "x$ac_cv_prog_cc_c89" != "xno" && break
5707 done
5708 rm -f conftest.$ac_ext
5709 CC=$ac_save_CC
5710
5711 fi
5712 # AC_CACHE_VAL
5713 case "x$ac_cv_prog_cc_c89" in
5714   x)
5715     { echo "$as_me:$LINENO: result: none needed" >&5
5716 echo "${ECHO_T}none needed" >&6; } ;;
5717   xno)
5718     { echo "$as_me:$LINENO: result: unsupported" >&5
5719 echo "${ECHO_T}unsupported" >&6; } ;;
5720   *)
5721     CC="$CC $ac_cv_prog_cc_c89"
5722     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5724 esac
5725
5726
5727 ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733 depcc="$CC"   am_compiler_list=
5734
5735 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5736 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5737 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5741   # We make a subdir and do the tests there.  Otherwise we can end up
5742   # making bogus files that we don't know about and never remove.  For
5743   # instance it was reported that on HP-UX the gcc test will end up
5744   # making a dummy file named `D' -- because `-MD' means `put the output
5745   # in D'.
5746   mkdir conftest.dir
5747   # Copy depcomp to subdir because otherwise we won't find it if we're
5748   # using a relative directory.
5749   cp "$am_depcomp" conftest.dir
5750   cd conftest.dir
5751   # We will build objects and dependencies in a subdirectory because
5752   # it helps to detect inapplicable dependency modes.  For instance
5753   # both Tru64's cc and ICC support -MD to output dependencies as a
5754   # side effect of compilation, but ICC will put the dependencies in
5755   # the current directory while Tru64 will put them in the object
5756   # directory.
5757   mkdir sub
5758
5759   am_cv_CC_dependencies_compiler_type=none
5760   if test "$am_compiler_list" = ""; then
5761      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5762   fi
5763   for depmode in $am_compiler_list; do
5764     # Setup a source with many dependencies, because some compilers
5765     # like to wrap large dependency lists on column 80 (with \), and
5766     # we should not choose a depcomp mode which is confused by this.
5767     #
5768     # We need to recreate these files for each test, as the compiler may
5769     # overwrite some of them when testing with obscure command lines.
5770     # This happens at least with the AIX C compiler.
5771     : > sub/conftest.c
5772     for i in 1 2 3 4 5 6; do
5773       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5774       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5775       # Solaris 8's {/usr,}/bin/sh.
5776       touch sub/conftst$i.h
5777     done
5778     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5779
5780     case $depmode in
5781     nosideeffect)
5782       # after this tag, mechanisms are not by side-effect, so they'll
5783       # only be used when explicitly requested
5784       if test "x$enable_dependency_tracking" = xyes; then
5785         continue
5786       else
5787         break
5788       fi
5789       ;;
5790     none) break ;;
5791     esac
5792     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5793     # mode.  It turns out that the SunPro C++ compiler does not properly
5794     # handle `-M -o', and we need to detect this.
5795     if depmode=$depmode \
5796        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5797        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5798        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5799          >/dev/null 2>conftest.err &&
5800        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5801        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5802        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5803       # icc doesn't choke on unknown options, it will just issue warnings
5804       # or remarks (even with -Werror).  So we grep stderr for any message
5805       # that says an option was ignored or not supported.
5806       # When given -MP, icc 7.0 and 7.1 complain thusly:
5807       #   icc: Command line warning: ignoring option '-M'; no argument required
5808       # The diagnosis changed in icc 8.0:
5809       #   icc: Command line remark: option '-MP' not supported
5810       if (grep 'ignoring option' conftest.err ||
5811           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5812         am_cv_CC_dependencies_compiler_type=$depmode
5813         break
5814       fi
5815     fi
5816   done
5817
5818   cd ..
5819   rm -rf conftest.dir
5820 else
5821   am_cv_CC_dependencies_compiler_type=none
5822 fi
5823
5824 fi
5825 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5826 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5828
5829
5830
5831 if
5832   test "x$enable_dependency_tracking" != xno \
5833   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5834   am__fastdepCC_TRUE=
5835   am__fastdepCC_FALSE='#'
5836 else
5837   am__fastdepCC_TRUE='#'
5838   am__fastdepCC_FALSE=
5839 fi
5840
5841
5842 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5843 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5844 if test "${lt_cv_path_SED+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   # Loop through the user's path and test for sed and gsed.
5848 # Then use that list of sed's as ones to test for truncation.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854   for lt_ac_prog in sed gsed; do
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5857         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5858       fi
5859     done
5860   done
5861 done
5862 lt_ac_max=0
5863 lt_ac_count=0
5864 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5865 # along with /bin/sed that truncates output.
5866 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5867   test ! -f $lt_ac_sed && continue
5868   cat /dev/null > conftest.in
5869   lt_ac_count=0
5870   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5871   # Check for GNU sed and select it if it is found.
5872   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5873     lt_cv_path_SED=$lt_ac_sed
5874     break
5875   fi
5876   while true; do
5877     cat conftest.in conftest.in >conftest.tmp
5878     mv conftest.tmp conftest.in
5879     cp conftest.in conftest.nl
5880     echo >>conftest.nl
5881     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5882     cmp -s conftest.out conftest.nl || break
5883     # 10000 chars as input seems more than enough
5884     test $lt_ac_count -gt 10 && break
5885     lt_ac_count=`expr $lt_ac_count + 1`
5886     if test $lt_ac_count -gt $lt_ac_max; then
5887       lt_ac_max=$lt_ac_count
5888       lt_cv_path_SED=$lt_ac_sed
5889     fi
5890   done
5891 done
5892
5893 fi
5894
5895 SED=$lt_cv_path_SED
5896 { echo "$as_me:$LINENO: result: $SED" >&5
5897 echo "${ECHO_T}$SED" >&6; }
5898
5899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5901 if test "${ac_cv_path_GREP+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   # Extract the first word of "grep ggrep" to use in msg output
5905 if test -z "$GREP"; then
5906 set dummy grep ggrep; ac_prog_name=$2
5907 if test "${ac_cv_path_GREP+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   ac_path_GREP_found=false
5911 # Loop through the user's path and test for each of PROGNAME-LIST
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_prog in grep ggrep; do
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5920     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5921     # Check for GNU ac_path_GREP and select it if it is found.
5922   # Check for GNU $ac_path_GREP
5923 case `"$ac_path_GREP" --version 2>&1` in
5924 *GNU*)
5925   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5926 *)
5927   ac_count=0
5928   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5929   while :
5930   do
5931     cat "conftest.in" "conftest.in" >"conftest.tmp"
5932     mv "conftest.tmp" "conftest.in"
5933     cp "conftest.in" "conftest.nl"
5934     echo 'GREP' >> "conftest.nl"
5935     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5936     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5937     ac_count=`expr $ac_count + 1`
5938     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5939       # Best one so far, save it but keep looking for a better one
5940       ac_cv_path_GREP="$ac_path_GREP"
5941       ac_path_GREP_max=$ac_count
5942     fi
5943     # 10*(2^10) chars as input seems more than enough
5944     test $ac_count -gt 10 && break
5945   done
5946   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5947 esac
5948
5949
5950     $ac_path_GREP_found && break 3
5951   done
5952 done
5953
5954 done
5955 IFS=$as_save_IFS
5956
5957
5958 fi
5959
5960 GREP="$ac_cv_path_GREP"
5961 if test -z "$GREP"; then
5962   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5964    { (exit 1); exit 1; }; }
5965 fi
5966
5967 else
5968   ac_cv_path_GREP=$GREP
5969 fi
5970
5971
5972 fi
5973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5975  GREP="$ac_cv_path_GREP"
5976
5977
5978 { echo "$as_me:$LINENO: checking for egrep" >&5
5979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_EGREP+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5984    then ac_cv_path_EGREP="$GREP -E"
5985    else
5986      # Extract the first word of "egrep" to use in msg output
5987 if test -z "$EGREP"; then
5988 set dummy egrep; ac_prog_name=$2
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   ac_path_EGREP_found=false
5993 # Loop through the user's path and test for each of PROGNAME-LIST
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_prog in egrep; do
6000   for ac_exec_ext in '' $ac_executable_extensions; do
6001     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6002     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6003     # Check for GNU ac_path_EGREP and select it if it is found.
6004   # Check for GNU $ac_path_EGREP
6005 case `"$ac_path_EGREP" --version 2>&1` in
6006 *GNU*)
6007   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6008 *)
6009   ac_count=0
6010   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6011   while :
6012   do
6013     cat "conftest.in" "conftest.in" >"conftest.tmp"
6014     mv "conftest.tmp" "conftest.in"
6015     cp "conftest.in" "conftest.nl"
6016     echo 'EGREP' >> "conftest.nl"
6017     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6019     ac_count=`expr $ac_count + 1`
6020     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6021       # Best one so far, save it but keep looking for a better one
6022       ac_cv_path_EGREP="$ac_path_EGREP"
6023       ac_path_EGREP_max=$ac_count
6024     fi
6025     # 10*(2^10) chars as input seems more than enough
6026     test $ac_count -gt 10 && break
6027   done
6028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6029 esac
6030
6031
6032     $ac_path_EGREP_found && break 3
6033   done
6034 done
6035
6036 done
6037 IFS=$as_save_IFS
6038
6039
6040 fi
6041
6042 EGREP="$ac_cv_path_EGREP"
6043 if test -z "$EGREP"; then
6044   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6046    { (exit 1); exit 1; }; }
6047 fi
6048
6049 else
6050   ac_cv_path_EGREP=$EGREP
6051 fi
6052
6053
6054    fi
6055 fi
6056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6058  EGREP="$ac_cv_path_EGREP"
6059
6060
6061
6062 # Check whether --with-gnu-ld was given.
6063 if test "${with_gnu_ld+set}" = set; then
6064   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6065 else
6066   with_gnu_ld=no
6067 fi
6068
6069 ac_prog=ld
6070 if test "$GCC" = yes; then
6071   # Check if gcc -print-prog-name=ld gives a path.
6072   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6074   case $host in
6075   *-*-mingw*)
6076     # gcc leaves a trailing carriage return which upsets mingw
6077     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6078   *)
6079     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6080   esac
6081   case $ac_prog in
6082     # Accept absolute paths.
6083     [\\/]* | ?:[\\/]*)
6084       re_direlt='/[^/][^/]*/\.\./'
6085       # Canonicalize the pathname of ld
6086       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6087       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6088         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6089       done
6090       test -z "$LD" && LD="$ac_prog"
6091       ;;
6092   "")
6093     # If it fails, then pretend we aren't using GCC.
6094     ac_prog=ld
6095     ;;
6096   *)
6097     # If it is relative, then search for the first ld in PATH.
6098     with_gnu_ld=unknown
6099     ;;
6100   esac
6101 elif test "$with_gnu_ld" = yes; then
6102   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6104 else
6105   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6107 fi
6108 if test "${lt_cv_path_LD+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -z "$LD"; then
6112   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113   for ac_dir in $PATH; do
6114     IFS="$lt_save_ifs"
6115     test -z "$ac_dir" && ac_dir=.
6116     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6117       lt_cv_path_LD="$ac_dir/$ac_prog"
6118       # Check to see if the program is GNU ld.  I'd rather use --version,
6119       # but apparently some variants of GNU ld only accept -v.
6120       # Break only if it was the GNU/non-GNU ld that we prefer.
6121       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6122       *GNU* | *'with BFD'*)
6123         test "$with_gnu_ld" != no && break
6124         ;;
6125       *)
6126         test "$with_gnu_ld" != yes && break
6127         ;;
6128       esac
6129     fi
6130   done
6131   IFS="$lt_save_ifs"
6132 else
6133   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6134 fi
6135 fi
6136
6137 LD="$lt_cv_path_LD"
6138 if test -n "$LD"; then
6139   { echo "$as_me:$LINENO: result: $LD" >&5
6140 echo "${ECHO_T}$LD" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6144 fi
6145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6147    { (exit 1); exit 1; }; }
6148 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6154 case `$LD -v 2>&1 </dev/null` in
6155 *GNU* | *'with BFD'*)
6156   lt_cv_prog_gnu_ld=yes
6157   ;;
6158 *)
6159   lt_cv_prog_gnu_ld=no
6160   ;;
6161 esac
6162 fi
6163 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6165 with_gnu_ld=$lt_cv_prog_gnu_ld
6166
6167
6168 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6170 if test "${lt_cv_ld_reload_flag+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   lt_cv_ld_reload_flag='-r'
6174 fi
6175 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6177 reload_flag=$lt_cv_ld_reload_flag
6178 case $reload_flag in
6179 "" | " "*) ;;
6180 *) reload_flag=" $reload_flag" ;;
6181 esac
6182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183 case $host_os in
6184   darwin*)
6185     if test "$GCC" = yes; then
6186       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6187     else
6188       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189     fi
6190     ;;
6191 esac
6192
6193 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6194 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6195 if test "${lt_cv_path_NM+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   if test -n "$NM"; then
6199   # Let the user override the test.
6200   lt_cv_path_NM="$NM"
6201 else
6202   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6203   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6204     IFS="$lt_save_ifs"
6205     test -z "$ac_dir" && ac_dir=.
6206     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6207     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6208       # Check to see if the nm accepts a BSD-compat flag.
6209       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6210       #   nm: unknown option "B" ignored
6211       # Tru64's nm complains that /dev/null is an invalid object file
6212       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6213       */dev/null* | *'Invalid file or object type'*)
6214         lt_cv_path_NM="$tmp_nm -B"
6215         break
6216         ;;
6217       *)
6218         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6219         */dev/null*)
6220           lt_cv_path_NM="$tmp_nm -p"
6221           break
6222           ;;
6223         *)
6224           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6225           continue # so that we can try to find one that supports BSD flags
6226           ;;
6227         esac
6228       esac
6229     fi
6230   done
6231   IFS="$lt_save_ifs"
6232   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6233 fi
6234 fi
6235 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6236 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6237 NM="$lt_cv_path_NM"
6238
6239 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6240 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6241 LN_S=$as_ln_s
6242 if test "$LN_S" = "ln -s"; then
6243   { echo "$as_me:$LINENO: result: yes" >&5
6244 echo "${ECHO_T}yes" >&6; }
6245 else
6246   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6247 echo "${ECHO_T}no, using $LN_S" >&6; }
6248 fi
6249
6250 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6251 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6252 if test "${lt_cv_deplibs_check_method+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   lt_cv_file_magic_cmd='$MAGIC_CMD'
6256 lt_cv_file_magic_test_file=
6257 lt_cv_deplibs_check_method='unknown'
6258 # Need to set the preceding variable on all platforms that support
6259 # interlibrary dependencies.
6260 # 'none' -- dependencies not supported.
6261 # `unknown' -- same as none, but documents that we really don't know.
6262 # 'pass_all' -- all dependencies passed with no checks.
6263 # 'test_compile' -- check by making test program.
6264 # 'file_magic [[regex]]' -- check by looking for files in library path
6265 # which responds to the $file_magic_cmd with a given extended regex.
6266 # If you have `file' or equivalent on your system and you're not sure
6267 # whether `pass_all' will *always* work, you probably want this one.
6268
6269 case $host_os in
6270 aix4* | aix5*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 beos*)
6275   lt_cv_deplibs_check_method=pass_all
6276   ;;
6277
6278 bsdi[45]*)
6279   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6280   lt_cv_file_magic_cmd='/usr/bin/file -L'
6281   lt_cv_file_magic_test_file=/shlib/libc.so
6282   ;;
6283
6284 cygwin*)
6285   # func_win32_libid is a shell function defined in ltmain.sh
6286   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6287   lt_cv_file_magic_cmd='func_win32_libid'
6288   ;;
6289
6290 mingw* | pw32*)
6291   # Base MSYS/MinGW do not provide the 'file' command needed by
6292   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6293   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6294   lt_cv_file_magic_cmd='$OBJDUMP -f'
6295   ;;
6296
6297 darwin* | rhapsody*)
6298   lt_cv_deplibs_check_method=pass_all
6299   ;;
6300
6301 freebsd* | kfreebsd*-gnu | dragonfly*)
6302   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6303     case $host_cpu in
6304     i*86 )
6305       # Not sure whether the presence of OpenBSD here was a mistake.
6306       # Let's accept both of them until this is cleared up.
6307       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308       lt_cv_file_magic_cmd=/usr/bin/file
6309       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6310       ;;
6311     esac
6312   else
6313     lt_cv_deplibs_check_method=pass_all
6314   fi
6315   ;;
6316
6317 gnu*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 hpux10.20* | hpux11*)
6322   lt_cv_file_magic_cmd=/usr/bin/file
6323   case $host_cpu in
6324   ia64*)
6325     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6327     ;;
6328   hppa*64*)
6329     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]'
6330     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6331     ;;
6332   *)
6333     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6334     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6335     ;;
6336   esac
6337   ;;
6338
6339 irix5* | irix6* | nonstopux*)
6340   case $LD in
6341   *-32|*"-32 ") libmagic=32-bit;;
6342   *-n32|*"-n32 ") libmagic=N32;;
6343   *-64|*"-64 ") libmagic=64-bit;;
6344   *) libmagic=never-match;;
6345   esac
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 # This must be Linux ELF.
6350 linux*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353
6354 netbsd*)
6355   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6357   else
6358     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6359   fi
6360   ;;
6361
6362 newos6*)
6363   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364   lt_cv_file_magic_cmd=/usr/bin/file
6365   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6366   ;;
6367
6368 nto-qnx*)
6369   lt_cv_deplibs_check_method=unknown
6370   ;;
6371
6372 openbsd*)
6373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6375   else
6376     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377   fi
6378   ;;
6379
6380 osf3* | osf4* | osf5*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 sco3.2v5*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 solaris*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391
6392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6393   case $host_vendor in
6394   motorola)
6395     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]'
6396     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6397     ;;
6398   ncr)
6399     lt_cv_deplibs_check_method=pass_all
6400     ;;
6401   sequent)
6402     lt_cv_file_magic_cmd='/bin/file'
6403     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6404     ;;
6405   sni)
6406     lt_cv_file_magic_cmd='/bin/file'
6407     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6408     lt_cv_file_magic_test_file=/lib/libc.so
6409     ;;
6410   siemens)
6411     lt_cv_deplibs_check_method=pass_all
6412     ;;
6413   esac
6414   ;;
6415
6416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6417   lt_cv_deplibs_check_method=pass_all
6418   ;;
6419 esac
6420
6421 fi
6422 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6424 file_magic_cmd=$lt_cv_file_magic_cmd
6425 deplibs_check_method=$lt_cv_deplibs_check_method
6426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6427
6428
6429
6430
6431 # If no C compiler was specified, use CC.
6432 LTCC=${LTCC-"$CC"}
6433
6434 # Allow CC to be a program name with arguments.
6435 compiler=$CC
6436
6437
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then
6440   enableval=$enable_libtool_lock;
6441 fi
6442
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6444
6445 # Some flags need to be propagated to the compiler or linker for good
6446 # libtool support.
6447 case $host in
6448 ia64-*-hpux*)
6449   # Find out which ABI we are using.
6450   echo 'int i;' > conftest.$ac_ext
6451   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; then
6456     case `/usr/bin/file conftest.$ac_objext` in
6457     *ELF-32*)
6458       HPUX_IA64_MODE="32"
6459       ;;
6460     *ELF-64*)
6461       HPUX_IA64_MODE="64"
6462       ;;
6463     esac
6464   fi
6465   rm -rf conftest*
6466   ;;
6467 *-*-irix6*)
6468   # Find out which ABI we are using.
6469   echo '#line 6469 "configure"' > conftest.$ac_ext
6470   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471   (eval $ac_compile) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); }; then
6475    if test "$lt_cv_prog_gnu_ld" = yes; then
6476     case `/usr/bin/file conftest.$ac_objext` in
6477     *32-bit*)
6478       LD="${LD-ld} -melf32bsmip"
6479       ;;
6480     *N32*)
6481       LD="${LD-ld} -melf32bmipn32"
6482       ;;
6483     *64-bit*)
6484       LD="${LD-ld} -melf64bmip"
6485       ;;
6486     esac
6487    else
6488     case `/usr/bin/file conftest.$ac_objext` in
6489     *32-bit*)
6490       LD="${LD-ld} -32"
6491       ;;
6492     *N32*)
6493       LD="${LD-ld} -n32"
6494       ;;
6495     *64-bit*)
6496       LD="${LD-ld} -64"
6497       ;;
6498     esac
6499    fi
6500   fi
6501   rm -rf conftest*
6502   ;;
6503
6504 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6505   # Find out which ABI we are using.
6506   echo 'int i;' > conftest.$ac_ext
6507   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508   (eval $ac_compile) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; then
6512     case `/usr/bin/file conftest.o` in
6513     *32-bit*)
6514       case $host in
6515         x86_64-*linux*)
6516           LD="${LD-ld} -m elf_i386"
6517           ;;
6518         ppc64-*linux*|powerpc64-*linux*)
6519           LD="${LD-ld} -m elf32ppclinux"
6520           ;;
6521         s390x-*linux*)
6522           LD="${LD-ld} -m elf_s390"
6523           ;;
6524         sparc64-*linux*)
6525           LD="${LD-ld} -m elf32_sparc"
6526           ;;
6527       esac
6528       ;;
6529     *64-bit*)
6530       case $host in
6531         x86_64-*linux*)
6532           LD="${LD-ld} -m elf_x86_64"
6533           ;;
6534         ppc*-*linux*|powerpc*-*linux*)
6535           LD="${LD-ld} -m elf64ppc"
6536           ;;
6537         s390*-*linux*)
6538           LD="${LD-ld} -m elf64_s390"
6539           ;;
6540         sparc*-*linux*)
6541           LD="${LD-ld} -m elf64_sparc"
6542           ;;
6543       esac
6544       ;;
6545     esac
6546   fi
6547   rm -rf conftest*
6548   ;;
6549
6550 *-*-sco3.2v5*)
6551   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6552   SAVE_CFLAGS="$CFLAGS"
6553   CFLAGS="$CFLAGS -belf"
6554   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6555 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6556 if test "${lt_cv_cc_needs_belf+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565      cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571
6572 int
6573 main ()
6574 {
6575
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (ac_try="$ac_link"
6582 case "(($ac_try" in
6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584   *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587   (eval "$ac_link") 2>conftest.er1
6588   ac_status=$?
6589   grep -v '^ *+' conftest.er1 >conftest.err
6590   rm -f conftest.er1
6591   cat conftest.err >&5
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } && {
6594          test -z "$ac_c_werror_flag" ||
6595          test ! -s conftest.err
6596        } && test -s conftest$ac_exeext &&
6597        $as_test_x conftest$ac_exeext; then
6598   lt_cv_cc_needs_belf=yes
6599 else
6600   echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603         lt_cv_cc_needs_belf=no
6604 fi
6605
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607       conftest$ac_exeext conftest.$ac_ext
6608      ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614 fi
6615 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6616 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6617   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6618     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6619     CFLAGS="$SAVE_CFLAGS"
6620   fi
6621   ;;
6622 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6623   if test -n "$ac_tool_prefix"; then
6624   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   if test -n "$DLLTOOL"; then
6632   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 DLLTOOL=$ac_cv_prog_DLLTOOL
6652 if test -n "$DLLTOOL"; then
6653   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6654 echo "${ECHO_T}$DLLTOOL" >&6; }
6655 else
6656   { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_DLLTOOL"; then
6663   ac_ct_DLLTOOL=$DLLTOOL
6664   # Extract the first word of "dlltool", so it can be a program name with args.
6665 set dummy dlltool; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   if test -n "$ac_ct_DLLTOOL"; then
6672   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679   for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6692 if test -n "$ac_ct_DLLTOOL"; then
6693   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6694 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6695 else
6696   { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6698 fi
6699
6700   if test "x$ac_ct_DLLTOOL" = x; then
6701     DLLTOOL="false"
6702   else
6703     case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet.  If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&5
6708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6709 whose name does not start with the host triplet.  If you think this
6710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713     DLLTOOL=$ac_ct_DLLTOOL
6714   fi
6715 else
6716   DLLTOOL="$ac_cv_prog_DLLTOOL"
6717 fi
6718
6719   if test -n "$ac_tool_prefix"; then
6720   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}as; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_AS+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   if test -n "$AS"; then
6728   ac_cv_prog_AS="$AS" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_AS="${ac_tool_prefix}as"
6738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 AS=$ac_cv_prog_AS
6748 if test -n "$AS"; then
6749   { echo "$as_me:$LINENO: result: $AS" >&5
6750 echo "${ECHO_T}$AS" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756
6757 fi
6758 if test -z "$ac_cv_prog_AS"; then
6759   ac_ct_AS=$AS
6760   # Extract the first word of "as", so it can be a program name with args.
6761 set dummy as; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   if test -n "$ac_ct_AS"; then
6768   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775   for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_ac_ct_AS="as"
6778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6788 if test -n "$ac_ct_AS"; then
6789   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6790 echo "${ECHO_T}$ac_ct_AS" >&6; }
6791 else
6792   { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6794 fi
6795
6796   if test "x$ac_ct_AS" = x; then
6797     AS="false"
6798   else
6799     case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet.  If you think this
6803 configuration is useful to you, please write to autoconf@gnu.org." >&5
6804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet.  If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809     AS=$ac_ct_AS
6810   fi
6811 else
6812   AS="$ac_cv_prog_AS"
6813 fi
6814
6815   if test -n "$ac_tool_prefix"; then
6816   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   if test -n "$OBJDUMP"; then
6824   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831   for ac_exec_ext in '' $ac_executable_extensions; do
6832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 OBJDUMP=$ac_cv_prog_OBJDUMP
6844 if test -n "$OBJDUMP"; then
6845   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6846 echo "${ECHO_T}$OBJDUMP" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_OBJDUMP"; then
6855   ac_ct_OBJDUMP=$OBJDUMP
6856   # Extract the first word of "objdump", so it can be a program name with args.
6857 set dummy objdump; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   if test -n "$ac_ct_OBJDUMP"; then
6864   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871   for ac_exec_ext in '' $ac_executable_extensions; do
6872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6884 if test -n "$ac_ct_OBJDUMP"; then
6885   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6886 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6887 else
6888   { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6890 fi
6891
6892   if test "x$ac_ct_OBJDUMP" = x; then
6893     OBJDUMP="false"
6894   else
6895     case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6898 whose name does not start with the host triplet.  If you think this
6899 configuration is useful to you, please write to autoconf@gnu.org." >&5
6900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6901 whose name does not start with the host triplet.  If you think this
6902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905     OBJDUMP=$ac_ct_OBJDUMP
6906   fi
6907 else
6908   OBJDUMP="$ac_cv_prog_OBJDUMP"
6909 fi
6910
6911   ;;
6912
6913 esac
6914
6915 need_locks="$enable_libtool_lock"
6916
6917
6918 ac_ext=c
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6925 # On Suns, sometimes $CPP names a directory.
6926 if test -n "$CPP" && test -d "$CPP"; then
6927   CPP=
6928 fi
6929 if test -z "$CPP"; then
6930   if test "${ac_cv_prog_CPP+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933       # Double quotes because CPP needs to be expanded
6934     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6935     do
6936       ac_preproc_ok=false
6937 for ac_c_preproc_warn_flag in '' yes
6938 do
6939   # Use a header file that comes with gcc, so configuring glibc
6940   # with a fresh cross-compiler works.
6941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6942   # <limits.h> exists even on freestanding compilers.
6943   # On the NeXT, cc -E runs the code through the compiler's parser,
6944   # not just through cpp. "Syntax error" is here to catch this case.
6945   cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h.  */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h.  */
6951 #ifdef __STDC__
6952 # include <limits.h>
6953 #else
6954 # include <assert.h>
6955 #endif
6956                      Syntax error
6957 _ACEOF
6958 if { (ac_try="$ac_cpp conftest.$ac_ext"
6959 case "(($ac_try" in
6960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961   *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } >/dev/null && {
6971          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6972          test ! -s conftest.err
6973        }; then
6974   :
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979   # Broken: fails on valid input.
6980 continue
6981 fi
6982
6983 rm -f conftest.err conftest.$ac_ext
6984
6985   # OK, works on sane cases.  Now check whether nonexistent headers
6986   # can be detected and how.
6987   cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993 #include <ac_nonexistent.h>
6994 _ACEOF
6995 if { (ac_try="$ac_cpp conftest.$ac_ext"
6996 case "(($ac_try" in
6997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998   *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7002   ac_status=$?
7003   grep -v '^ *+' conftest.er1 >conftest.err
7004   rm -f conftest.er1
7005   cat conftest.err >&5
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } >/dev/null && {
7008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7009          test ! -s conftest.err
7010        }; then
7011   # Broken: success on invalid input.
7012 continue
7013 else
7014   echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017   # Passes both tests.
7018 ac_preproc_ok=:
7019 break
7020 fi
7021
7022 rm -f conftest.err conftest.$ac_ext
7023
7024 done
7025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026 rm -f conftest.err conftest.$ac_ext
7027 if $ac_preproc_ok; then
7028   break
7029 fi
7030
7031     done
7032     ac_cv_prog_CPP=$CPP
7033
7034 fi
7035   CPP=$ac_cv_prog_CPP
7036 else
7037   ac_cv_prog_CPP=$CPP
7038 fi
7039 { echo "$as_me:$LINENO: result: $CPP" >&5
7040 echo "${ECHO_T}$CPP" >&6; }
7041 ac_preproc_ok=false
7042 for ac_c_preproc_warn_flag in '' yes
7043 do
7044   # Use a header file that comes with gcc, so configuring glibc
7045   # with a fresh cross-compiler works.
7046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047   # <limits.h> exists even on freestanding compilers.
7048   # On the NeXT, cc -E runs the code through the compiler's parser,
7049   # not just through cpp. "Syntax error" is here to catch this case.
7050   cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 #ifdef __STDC__
7057 # include <limits.h>
7058 #else
7059 # include <assert.h>
7060 #endif
7061                      Syntax error
7062 _ACEOF
7063 if { (ac_try="$ac_cpp conftest.$ac_ext"
7064 case "(($ac_try" in
7065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066   *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } >/dev/null && {
7076          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7077          test ! -s conftest.err
7078        }; then
7079   :
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084   # Broken: fails on valid input.
7085 continue
7086 fi
7087
7088 rm -f conftest.err conftest.$ac_ext
7089
7090   # OK, works on sane cases.  Now check whether nonexistent headers
7091   # can be detected and how.
7092   cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h.  */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h.  */
7098 #include <ac_nonexistent.h>
7099 _ACEOF
7100 if { (ac_try="$ac_cpp conftest.$ac_ext"
7101 case "(($ac_try" in
7102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103   *) ac_try_echo=$ac_try;;
7104 esac
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7107   ac_status=$?
7108   grep -v '^ *+' conftest.er1 >conftest.err
7109   rm -f conftest.er1
7110   cat conftest.err >&5
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } >/dev/null && {
7113          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7114          test ! -s conftest.err
7115        }; then
7116   # Broken: success on invalid input.
7117 continue
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122   # Passes both tests.
7123 ac_preproc_ok=:
7124 break
7125 fi
7126
7127 rm -f conftest.err conftest.$ac_ext
7128
7129 done
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then
7133   :
7134 else
7135   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&5
7137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7138 See \`config.log' for more details." >&2;}
7139    { (exit 1); exit 1; }; }
7140 fi
7141
7142 ac_ext=c
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148
7149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7151 if test "${ac_cv_header_stdc+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 #include <stdlib.h>
7161 #include <stdarg.h>
7162 #include <string.h>
7163 #include <float.h>
7164
7165 int
7166 main ()
7167 {
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7175 case "(($ac_try" in
7176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177   *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180   (eval "$ac_compile") 2>conftest.er1
7181   ac_status=$?
7182   grep -v '^ *+' conftest.er1 >conftest.err
7183   rm -f conftest.er1
7184   cat conftest.err >&5
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); } && {
7187          test -z "$ac_c_werror_flag" ||
7188          test ! -s conftest.err
7189        } && test -s conftest.$ac_objext; then
7190   ac_cv_header_stdc=yes
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195         ac_cv_header_stdc=no
7196 fi
7197
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199
7200 if test $ac_cv_header_stdc = yes; then
7201   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202   cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208 #include <string.h>
7209
7210 _ACEOF
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212   $EGREP "memchr" >/dev/null 2>&1; then
7213   :
7214 else
7215   ac_cv_header_stdc=no
7216 fi
7217 rm -f conftest*
7218
7219 fi
7220
7221 if test $ac_cv_header_stdc = yes; then
7222   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7223   cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h.  */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h.  */
7229 #include <stdlib.h>
7230
7231 _ACEOF
7232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233   $EGREP "free" >/dev/null 2>&1; then
7234   :
7235 else
7236   ac_cv_header_stdc=no
7237 fi
7238 rm -f conftest*
7239
7240 fi
7241
7242 if test $ac_cv_header_stdc = yes; then
7243   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7244   if test "$cross_compiling" = yes; then
7245   :
7246 else
7247   cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253 #include <ctype.h>
7254 #include <stdlib.h>
7255 #if ((' ' & 0x0FF) == 0x020)
7256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7258 #else
7259 # define ISLOWER(c) \
7260                    (('a' <= (c) && (c) <= 'i') \
7261                      || ('j' <= (c) && (c) <= 'r') \
7262                      || ('s' <= (c) && (c) <= 'z'))
7263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7264 #endif
7265
7266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7267 int
7268 main ()
7269 {
7270   int i;
7271   for (i = 0; i < 256; i++)
7272     if (XOR (islower (i), ISLOWER (i))
7273         || toupper (i) != TOUPPER (i))
7274       return 2;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7280 case "(($ac_try" in
7281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282   *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285   (eval "$ac_link") 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7289   { (case "(($ac_try" in
7290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291   *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294   (eval "$ac_try") 2>&5
7295   ac_status=$?
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); }; }; then
7298   :
7299 else
7300   echo "$as_me: program exited with status $ac_status" >&5
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ( exit $ac_status )
7305 ac_cv_header_stdc=no
7306 fi
7307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7308 fi
7309
7310
7311 fi
7312 fi
7313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7315 if test $ac_cv_header_stdc = yes; then
7316
7317 cat >>confdefs.h <<\_ACEOF
7318 #define STDC_HEADERS 1
7319 _ACEOF
7320
7321 fi
7322
7323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7334                   inttypes.h stdint.h unistd.h
7335 do
7336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 $ac_includes_default
7349
7350 #include <$ac_header>
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356   *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359   (eval "$ac_compile") 2>conftest.er1
7360   ac_status=$?
7361   grep -v '^ *+' conftest.er1 >conftest.err
7362   rm -f conftest.er1
7363   cat conftest.err >&5
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); } && {
7366          test -z "$ac_c_werror_flag" ||
7367          test ! -s conftest.err
7368        } && test -s conftest.$ac_objext; then
7369   eval "$as_ac_Header=yes"
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374         eval "$as_ac_Header=no"
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 fi
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380                { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7383   cat >>confdefs.h <<_ACEOF
7384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385 _ACEOF
7386
7387 fi
7388
7389 done
7390
7391
7392
7393 for ac_header in dlfcn.h
7394 do
7395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 fi
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403                { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7405 else
7406   # Is the header compilable?
7407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415 $ac_includes_default
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7420 case "(($ac_try" in
7421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422   *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425   (eval "$ac_compile") 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && {
7432          test -z "$ac_c_werror_flag" ||
7433          test ! -s conftest.err
7434        } && test -s conftest.$ac_objext; then
7435   ac_header_compiler=yes
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440         ac_header_compiler=no
7441 fi
7442
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445 echo "${ECHO_T}$ac_header_compiler" >&6; }
7446
7447 # Is the header present?
7448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456 #include <$ac_header>
7457 _ACEOF
7458 if { (ac_try="$ac_cpp conftest.$ac_ext"
7459 case "(($ac_try" in
7460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461   *) ac_try_echo=$ac_try;;
7462 esac
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7465   ac_status=$?
7466   grep -v '^ *+' conftest.er1 >conftest.err
7467   rm -f conftest.er1
7468   cat conftest.err >&5
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); } >/dev/null && {
7471          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7472          test ! -s conftest.err
7473        }; then
7474   ac_header_preproc=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479   ac_header_preproc=no
7480 fi
7481
7482 rm -f conftest.err conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6; }
7485
7486 # So?  What about this header?
7487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7488   yes:no: )
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7493     ac_header_preproc=yes
7494     ;;
7495   no:yes:* )
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7508     ( cat <<\_ASBOX
7509 ## --------------------------------------------- ##
7510 ## Report this to <http://www.openldap.org/its/> ##
7511 ## --------------------------------------------- ##
7512 _ASBOX
7513      ) | sed "s/^/$as_me: WARNING:     /" >&2
7514     ;;
7515 esac
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521   eval "$as_ac_Header=\$ac_header_preproc"
7522 fi
7523 ac_res=`eval echo '${'$as_ac_Header'}'`
7524                { echo "$as_me:$LINENO: result: $ac_res" >&5
7525 echo "${ECHO_T}$ac_res" >&6; }
7526
7527 fi
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529   cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7531 _ACEOF
7532
7533 fi
7534
7535 done
7536
7537
7538 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7539
7540 # find the maximum length of command line arguments
7541 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7542 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7543 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546     i=0
7547   teststring="ABCD"
7548
7549   case $build_os in
7550   msdosdjgpp*)
7551     # On DJGPP, this test can blow up pretty badly due to problems in libc
7552     # (any single argument exceeding 2000 bytes causes a buffer overrun
7553     # during glob expansion).  Even if it were fixed, the result of this
7554     # check would be larger than it should be.
7555     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7556     ;;
7557
7558   gnu*)
7559     # Under GNU Hurd, this test is not required because there is
7560     # no limit to the length of command line arguments.
7561     # Libtool will interpret -1 as no limit whatsoever
7562     lt_cv_sys_max_cmd_len=-1;
7563     ;;
7564
7565   cygwin* | mingw*)
7566     # On Win9x/ME, this test blows up -- it succeeds, but takes
7567     # about 5 minutes as the teststring grows exponentially.
7568     # Worse, since 9x/ME are not pre-emptively multitasking,
7569     # you end up with a "frozen" computer, even though with patience
7570     # the test eventually succeeds (with a max line length of 256k).
7571     # Instead, let's just punt: use the minimum linelength reported by
7572     # all of the supported platforms: 8192 (on NT/2K/XP).
7573     lt_cv_sys_max_cmd_len=8192;
7574     ;;
7575
7576   amigaos*)
7577     # On AmigaOS with pdksh, this test takes hours, literally.
7578     # So we just punt and use a minimum line length of 8192.
7579     lt_cv_sys_max_cmd_len=8192;
7580     ;;
7581
7582   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7583     # This has been around since 386BSD, at least.  Likely further.
7584     if test -x /sbin/sysctl; then
7585       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7586     elif test -x /usr/sbin/sysctl; then
7587       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7588     else
7589       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7590     fi
7591     # And add a safety zone
7592     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7593     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7594     ;;
7595   osf*)
7596     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7597     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7598     # nice to cause kernel panics so lets avoid the loop below.
7599     # First set a reasonable default.
7600     lt_cv_sys_max_cmd_len=16384
7601     #
7602     if test -x /sbin/sysconfig; then
7603       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7604         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7605       esac
7606     fi
7607     ;;
7608   *)
7609     # If test is not a shell built-in, we'll probably end up computing a
7610     # maximum length that is only half of the actual maximum length, but
7611     # we can't tell.
7612     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7613     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7614                = "XX$teststring") >/dev/null 2>&1 &&
7615             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7616             lt_cv_sys_max_cmd_len=$new_result &&
7617             test $i != 17 # 1/2 MB should be enough
7618     do
7619       i=`expr $i + 1`
7620       teststring=$teststring$teststring
7621     done
7622     teststring=
7623     # Add a significant safety factor because C++ compilers can tack on massive
7624     # amounts of additional arguments before passing them to the linker.
7625     # It appears as though 1/2 is a usable value.
7626     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7627     ;;
7628   esac
7629
7630 fi
7631
7632 if test -n $lt_cv_sys_max_cmd_len ; then
7633   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7634 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7635 else
7636   { echo "$as_me:$LINENO: result: none" >&5
7637 echo "${ECHO_T}none" >&6; }
7638 fi
7639
7640
7641
7642
7643 # Check for command to grab the raw symbol name followed by C symbol from nm.
7644 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7645 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7646 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649
7650 # These are sane defaults that work on at least a few old systems.
7651 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7652
7653 # Character class describing NM global symbol codes.
7654 symcode='[BCDEGRST]'
7655
7656 # Regexp to match symbols that can be accessed directly from C.
7657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7658
7659 # Transform an extracted symbol line into a proper C declaration
7660 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7661
7662 # Transform an extracted symbol line into symbol name and symbol address
7663 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'"
7664
7665 # Define system-specific variables.
7666 case $host_os in
7667 aix*)
7668   symcode='[BCDT]'
7669   ;;
7670 cygwin* | mingw* | pw32*)
7671   symcode='[ABCDGISTW]'
7672   ;;
7673 hpux*) # Its linker distinguishes data from code symbols
7674   if test "$host_cpu" = ia64; then
7675     symcode='[ABCDEGRST]'
7676   fi
7677   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7678   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'"
7679   ;;
7680 linux*)
7681   if test "$host_cpu" = ia64; then
7682     symcode='[ABCDGIRSTW]'
7683     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7684     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'"
7685   fi
7686   ;;
7687 irix* | nonstopux*)
7688   symcode='[BCDEGRST]'
7689   ;;
7690 osf*)
7691   symcode='[BCDEGQRST]'
7692   ;;
7693 solaris* | sysv5*)
7694   symcode='[BDRT]'
7695   ;;
7696 sysv4)
7697   symcode='[DFNSTU]'
7698   ;;
7699 esac
7700
7701 # Handle CRLF in mingw tool chain
7702 opt_cr=
7703 case $build_os in
7704 mingw*)
7705   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7706   ;;
7707 esac
7708
7709 # If we're using GNU nm, then use its standard symbol codes.
7710 case `$NM -V 2>&1` in
7711 *GNU* | *'with BFD'*)
7712   symcode='[ABCDGIRSTW]' ;;
7713 esac
7714
7715 # Try without a prefix undercore, then with it.
7716 for ac_symprfx in "" "_"; do
7717
7718   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7719   symxfrm="\\1 $ac_symprfx\\2 \\2"
7720
7721   # Write the raw and C identifiers.
7722   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7723
7724   # Check to see that the pipe works correctly.
7725   pipe_works=no
7726
7727   rm -f conftest*
7728   cat > conftest.$ac_ext <<EOF
7729 #ifdef __cplusplus
7730 extern "C" {
7731 #endif
7732 char nm_test_var;
7733 void nm_test_func(){}
7734 #ifdef __cplusplus
7735 }
7736 #endif
7737 int main(){nm_test_var='a';nm_test_func();return(0);}
7738 EOF
7739
7740   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741   (eval $ac_compile) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; then
7745     # Now try to grab the symbols.
7746     nlist=conftest.nm
7747     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7748   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } && test -s "$nlist"; then
7752       # Try sorting and uniquifying the output.
7753       if sort "$nlist" | uniq > "$nlist"T; then
7754         mv -f "$nlist"T "$nlist"
7755       else
7756         rm -f "$nlist"T
7757       fi
7758
7759       # Make sure that we snagged all the symbols we need.
7760       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7761         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7762           cat <<EOF > conftest.$ac_ext
7763 #ifdef __cplusplus
7764 extern "C" {
7765 #endif
7766
7767 EOF
7768           # Now generate the symbol file.
7769           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7770
7771           cat <<EOF >> conftest.$ac_ext
7772 #if defined (__STDC__) && __STDC__
7773 # define lt_ptr_t void *
7774 #else
7775 # define lt_ptr_t char *
7776 # define const
7777 #endif
7778
7779 /* The mapping between symbol names and symbols. */
7780 const struct {
7781   const char *name;
7782   lt_ptr_t address;
7783 }
7784 lt_preloaded_symbols[] =
7785 {
7786 EOF
7787           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7788           cat <<\EOF >> conftest.$ac_ext
7789   {0, (lt_ptr_t) 0}
7790 };
7791
7792 #ifdef __cplusplus
7793 }
7794 #endif
7795 EOF
7796           # Now try linking the two files.
7797           mv conftest.$ac_objext conftstm.$ac_objext
7798           lt_save_LIBS="$LIBS"
7799           lt_save_CFLAGS="$CFLAGS"
7800           LIBS="conftstm.$ac_objext"
7801           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7802           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803   (eval $ac_link) 2>&5
7804   ac_status=$?
7805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7807             pipe_works=yes
7808           fi
7809           LIBS="$lt_save_LIBS"
7810           CFLAGS="$lt_save_CFLAGS"
7811         else
7812           echo "cannot find nm_test_func in $nlist" >&5
7813         fi
7814       else
7815         echo "cannot find nm_test_var in $nlist" >&5
7816       fi
7817     else
7818       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7819     fi
7820   else
7821     echo "$progname: failed program was:" >&5
7822     cat conftest.$ac_ext >&5
7823   fi
7824   rm -f conftest* conftst*
7825
7826   # Do not use the global_symbol_pipe unless it works.
7827   if test "$pipe_works" = yes; then
7828     break
7829   else
7830     lt_cv_sys_global_symbol_pipe=
7831   fi
7832 done
7833
7834 fi
7835
7836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7837   lt_cv_sys_global_symbol_to_cdecl=
7838 fi
7839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7840   { echo "$as_me:$LINENO: result: failed" >&5
7841 echo "${ECHO_T}failed" >&6; }
7842 else
7843   { echo "$as_me:$LINENO: result: ok" >&5
7844 echo "${ECHO_T}ok" >&6; }
7845 fi
7846
7847 { echo "$as_me:$LINENO: checking for objdir" >&5
7848 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7849 if test "${lt_cv_objdir+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   rm -f .libs 2>/dev/null
7853 mkdir .libs 2>/dev/null
7854 if test -d .libs; then
7855   lt_cv_objdir=.libs
7856 else
7857   # MS-DOS does not allow filenames that begin with a dot.
7858   lt_cv_objdir=_libs
7859 fi
7860 rmdir .libs 2>/dev/null
7861 fi
7862 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7863 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7864 objdir=$lt_cv_objdir
7865
7866
7867
7868
7869
7870 case $host_os in
7871 aix3*)
7872   # AIX sometimes has problems with the GCC collect2 program.  For some
7873   # reason, if we set the COLLECT_NAMES environment variable, the problems
7874   # vanish in a puff of smoke.
7875   if test "X${COLLECT_NAMES+set}" != Xset; then
7876     COLLECT_NAMES=
7877     export COLLECT_NAMES
7878   fi
7879   ;;
7880 esac
7881
7882 # Sed substitution that helps us do robust quoting.  It backslashifies
7883 # metacharacters that are still active within double-quoted strings.
7884 Xsed='sed -e 1s/^X//'
7885 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7886
7887 # Same as above, but do not quote variable references.
7888 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7889
7890 # Sed substitution to delay expansion of an escaped shell variable in a
7891 # double_quote_subst'ed string.
7892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7893
7894 # Sed substitution to avoid accidental globbing in evaled expressions
7895 no_glob_subst='s/\*/\\\*/g'
7896
7897 # Constants:
7898 rm="rm -f"
7899
7900 # Global variables:
7901 default_ofile=libtool
7902 can_build_shared=yes
7903
7904 # All known linkers require a `.a' archive for static linking (except MSVC,
7905 # which needs '.lib').
7906 libext=a
7907 ltmain="$ac_aux_dir/ltmain.sh"
7908 ofile="$default_ofile"
7909 with_gnu_ld="$lt_cv_prog_gnu_ld"
7910
7911 if test -n "$ac_tool_prefix"; then
7912   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}ar; ac_word=$2
7914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916 if test "${ac_cv_prog_AR+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   if test -n "$AR"; then
7920   ac_cv_prog_AR="$AR" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927   for ac_exec_ext in '' $ac_executable_extensions; do
7928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929     ac_cv_prog_AR="${ac_tool_prefix}ar"
7930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 AR=$ac_cv_prog_AR
7940 if test -n "$AR"; then
7941   { echo "$as_me:$LINENO: result: $AR" >&5
7942 echo "${ECHO_T}$AR" >&6; }
7943 else
7944   { echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_AR"; then
7951   ac_ct_AR=$AR
7952   # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7957   echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959   if test -n "$ac_ct_AR"; then
7960   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967   for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_prog_ac_ct_AR="ar"
7970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7980 if test -n "$ac_ct_AR"; then
7981   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7982 echo "${ECHO_T}$ac_ct_AR" >&6; }
7983 else
7984   { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7986 fi
7987
7988   if test "x$ac_ct_AR" = x; then
7989     AR="false"
7990   else
7991     case $cross_compiling:$ac_tool_warned in
7992 yes:)
7993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7994 whose name does not start with the host triplet.  If you think this
7995 configuration is useful to you, please write to autoconf@gnu.org." >&5
7996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7997 whose name does not start with the host triplet.  If you think this
7998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7999 ac_tool_warned=yes ;;
8000 esac
8001     AR=$ac_ct_AR
8002   fi
8003 else
8004   AR="$ac_cv_prog_AR"
8005 fi
8006
8007 if test -n "$ac_tool_prefix"; then
8008   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_prog_RANLIB+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   if test -n "$RANLIB"; then
8016   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023   for ac_exec_ext in '' $ac_executable_extensions; do
8024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030 done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 RANLIB=$ac_cv_prog_RANLIB
8036 if test -n "$RANLIB"; then
8037   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8038 echo "${ECHO_T}$RANLIB" >&6; }
8039 else
8040   { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8042 fi
8043
8044
8045 fi
8046 if test -z "$ac_cv_prog_RANLIB"; then
8047   ac_ct_RANLIB=$RANLIB
8048   # Extract the first word of "ranlib", so it can be a program name with args.
8049 set dummy ranlib; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8053   echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055   if test -n "$ac_ct_RANLIB"; then
8056   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063   for ac_exec_ext in '' $ac_executable_extensions; do
8064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065     ac_cv_prog_ac_ct_RANLIB="ranlib"
8066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8076 if test -n "$ac_ct_RANLIB"; then
8077   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8078 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8079 else
8080   { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8082 fi
8083
8084   if test "x$ac_ct_RANLIB" = x; then
8085     RANLIB=":"
8086   else
8087     case $cross_compiling:$ac_tool_warned in
8088 yes:)
8089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8090 whose name does not start with the host triplet.  If you think this
8091 configuration is useful to you, please write to autoconf@gnu.org." >&5
8092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8093 whose name does not start with the host triplet.  If you think this
8094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8095 ac_tool_warned=yes ;;
8096 esac
8097     RANLIB=$ac_ct_RANLIB
8098   fi
8099 else
8100   RANLIB="$ac_cv_prog_RANLIB"
8101 fi
8102
8103 if test -n "$ac_tool_prefix"; then
8104   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8105 set dummy ${ac_tool_prefix}strip; ac_word=$2
8106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8108 if test "${ac_cv_prog_STRIP+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   if test -n "$STRIP"; then
8112   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119   for ac_exec_ext in '' $ac_executable_extensions; do
8120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 STRIP=$ac_cv_prog_STRIP
8132 if test -n "$STRIP"; then
8133   { echo "$as_me:$LINENO: result: $STRIP" >&5
8134 echo "${ECHO_T}$STRIP" >&6; }
8135 else
8136   { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8138 fi
8139
8140
8141 fi
8142 if test -z "$ac_cv_prog_STRIP"; then
8143   ac_ct_STRIP=$STRIP
8144   # Extract the first word of "strip", so it can be a program name with args.
8145 set dummy strip; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   if test -n "$ac_ct_STRIP"; then
8152   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8156 do
8157   IFS=$as_save_IFS
8158   test -z "$as_dir" && as_dir=.
8159   for ac_exec_ext in '' $ac_executable_extensions; do
8160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161     ac_cv_prog_ac_ct_STRIP="strip"
8162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163     break 2
8164   fi
8165 done
8166 done
8167 IFS=$as_save_IFS
8168
8169 fi
8170 fi
8171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8172 if test -n "$ac_ct_STRIP"; then
8173   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8174 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8175 else
8176   { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8178 fi
8179
8180   if test "x$ac_ct_STRIP" = x; then
8181     STRIP=":"
8182   else
8183     case $cross_compiling:$ac_tool_warned in
8184 yes:)
8185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8186 whose name does not start with the host triplet.  If you think this
8187 configuration is useful to you, please write to autoconf@gnu.org." >&5
8188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8189 whose name does not start with the host triplet.  If you think this
8190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8191 ac_tool_warned=yes ;;
8192 esac
8193     STRIP=$ac_ct_STRIP
8194   fi
8195 else
8196   STRIP="$ac_cv_prog_STRIP"
8197 fi
8198
8199
8200 old_CC="$CC"
8201 old_CFLAGS="$CFLAGS"
8202
8203 # Set sane defaults for various variables
8204 test -z "$AR" && AR=ar
8205 test -z "$AR_FLAGS" && AR_FLAGS=cru
8206 test -z "$AS" && AS=as
8207 test -z "$CC" && CC=cc
8208 test -z "$LTCC" && LTCC=$CC
8209 test -z "$DLLTOOL" && DLLTOOL=dlltool
8210 test -z "$LD" && LD=ld
8211 test -z "$LN_S" && LN_S="ln -s"
8212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213 test -z "$NM" && NM=nm
8214 test -z "$SED" && SED=sed
8215 test -z "$OBJDUMP" && OBJDUMP=objdump
8216 test -z "$RANLIB" && RANLIB=:
8217 test -z "$STRIP" && STRIP=:
8218 test -z "$ac_objext" && ac_objext=o
8219
8220 # Determine commands to create old-style static archives.
8221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8222 old_postinstall_cmds='chmod 644 $oldlib'
8223 old_postuninstall_cmds=
8224
8225 if test -n "$RANLIB"; then
8226   case $host_os in
8227   openbsd*)
8228     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8229     ;;
8230   *)
8231     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8232     ;;
8233   esac
8234   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8235 fi
8236
8237 for cc_temp in $compiler""; do
8238   case $cc_temp in
8239     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8240     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8241     \-*) ;;
8242     *) break;;
8243   esac
8244 done
8245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8246
8247
8248 # Only perform the check for file, if the check method requires it
8249 case $deplibs_check_method in
8250 file_magic*)
8251   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8252     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8253 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8255   echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257   case $MAGIC_CMD in
8258 [\\/*] |  ?:[\\/]*)
8259   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8260   ;;
8261 *)
8262   lt_save_MAGIC_CMD="$MAGIC_CMD"
8263   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8264   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8265   for ac_dir in $ac_dummy; do
8266     IFS="$lt_save_ifs"
8267     test -z "$ac_dir" && ac_dir=.
8268     if test -f $ac_dir/${ac_tool_prefix}file; then
8269       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8270       if test -n "$file_magic_test_file"; then
8271         case $deplibs_check_method in
8272         "file_magic "*)
8273           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8274           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8275           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8276             $EGREP "$file_magic_regex" > /dev/null; then
8277             :
8278           else
8279             cat <<EOF 1>&2
8280
8281 *** Warning: the command libtool uses to detect shared libraries,
8282 *** $file_magic_cmd, produces output that libtool cannot recognize.
8283 *** The result is that libtool may fail to recognize shared libraries
8284 *** as such.  This will affect the creation of libtool libraries that
8285 *** depend on shared libraries, but programs linked with such libtool
8286 *** libraries will work regardless of this problem.  Nevertheless, you
8287 *** may want to report the problem to your system manager and/or to
8288 *** bug-libtool@gnu.org
8289
8290 EOF
8291           fi ;;
8292         esac
8293       fi
8294       break
8295     fi
8296   done
8297   IFS="$lt_save_ifs"
8298   MAGIC_CMD="$lt_save_MAGIC_CMD"
8299   ;;
8300 esac
8301 fi
8302
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if test -n "$MAGIC_CMD"; then
8305   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8306 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8307 else
8308   { echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6; }
8310 fi
8311
8312 if test -z "$lt_cv_path_MAGIC_CMD"; then
8313   if test -n "$ac_tool_prefix"; then
8314     { echo "$as_me:$LINENO: checking for file" >&5
8315 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8316 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   case $MAGIC_CMD in
8320 [\\/*] |  ?:[\\/]*)
8321   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322   ;;
8323 *)
8324   lt_save_MAGIC_CMD="$MAGIC_CMD"
8325   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327   for ac_dir in $ac_dummy; do
8328     IFS="$lt_save_ifs"
8329     test -z "$ac_dir" && ac_dir=.
8330     if test -f $ac_dir/file; then
8331       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332       if test -n "$file_magic_test_file"; then
8333         case $deplibs_check_method in
8334         "file_magic "*)
8335           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338             $EGREP "$file_magic_regex" > /dev/null; then
8339             :
8340           else
8341             cat <<EOF 1>&2
8342
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such.  This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem.  Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8351
8352 EOF
8353           fi ;;
8354         esac
8355       fi
8356       break
8357     fi
8358   done
8359   IFS="$lt_save_ifs"
8360   MAGIC_CMD="$lt_save_MAGIC_CMD"
8361   ;;
8362 esac
8363 fi
8364
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8368 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8369 else
8370   { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8372 fi
8373
8374   else
8375     MAGIC_CMD=:
8376   fi
8377 fi
8378
8379   fi
8380   ;;
8381 esac
8382
8383 enable_dlopen=yes
8384 enable_win32_dll=yes
8385
8386 # Check whether --enable-libtool-lock was given.
8387 if test "${enable_libtool_lock+set}" = set; then
8388   enableval=$enable_libtool_lock;
8389 fi
8390
8391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8392
8393
8394 # Check whether --with-pic was given.
8395 if test "${with_pic+set}" = set; then
8396   withval=$with_pic; pic_mode="$withval"
8397 else
8398   pic_mode=default
8399 fi
8400
8401 test -z "$pic_mode" && pic_mode=default
8402
8403 # Use C for the default configuration in the libtool script
8404 tagname=
8405 lt_save_CC="$CC"
8406 ac_ext=c
8407 ac_cpp='$CPP $CPPFLAGS'
8408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411
8412
8413 # Source file extension for C test sources.
8414 ac_ext=c
8415
8416 # Object file extension for compiled C test sources.
8417 objext=o
8418 objext=$objext
8419
8420 # Code to be used in simple compile tests
8421 lt_simple_compile_test_code="int some_variable = 0;\n"
8422
8423 # Code to be used in simple link tests
8424 lt_simple_link_test_code='int main(){return(0);}\n'
8425
8426
8427 # If no C compiler was specified, use CC.
8428 LTCC=${LTCC-"$CC"}
8429
8430 # Allow CC to be a program name with arguments.
8431 compiler=$CC
8432
8433
8434 # save warnings/boilerplate of simple test code
8435 ac_outfile=conftest.$ac_objext
8436 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8438 _lt_compiler_boilerplate=`cat conftest.err`
8439 $rm conftest*
8440
8441 ac_outfile=conftest.$ac_objext
8442 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8444 _lt_linker_boilerplate=`cat conftest.err`
8445 $rm conftest*
8446
8447
8448 #
8449 # Check for any special shared library compilation flags.
8450 #
8451 lt_prog_cc_shlib=
8452 if test "$GCC" = no; then
8453   case $host_os in
8454   sco3.2v5*)
8455     lt_prog_cc_shlib='-belf'
8456     ;;
8457   esac
8458 fi
8459 if test -n "$lt_prog_cc_shlib"; then
8460   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8461 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8462   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8463   else
8464     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8465 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8466     lt_cv_prog_cc_can_build_shared=no
8467   fi
8468 fi
8469
8470
8471 #
8472 # Check to make sure the static flag actually works.
8473 #
8474 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8475 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8476 if test "${lt_prog_compiler_static_works+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   lt_prog_compiler_static_works=no
8480    save_LDFLAGS="$LDFLAGS"
8481    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8482    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8483    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484      # The linker can only warn and ignore the option if not recognized
8485      # So say no if there are warnings
8486      if test -s conftest.err; then
8487        # Append any errors to the config.log.
8488        cat conftest.err 1>&5
8489        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8490        $SED '/^$/d' conftest.err >conftest.er2
8491        if diff conftest.exp conftest.er2 >/dev/null; then
8492          lt_prog_compiler_static_works=yes
8493        fi
8494      else
8495        lt_prog_compiler_static_works=yes
8496      fi
8497    fi
8498    $rm conftest*
8499    LDFLAGS="$save_LDFLAGS"
8500
8501 fi
8502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8503 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8504
8505 if test x"$lt_prog_compiler_static_works" = xyes; then
8506     :
8507 else
8508     lt_prog_compiler_static=
8509 fi
8510
8511
8512
8513
8514 lt_prog_compiler_no_builtin_flag=
8515
8516 if test "$GCC" = yes; then
8517   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8518
8519
8520 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   lt_cv_prog_compiler_rtti_exceptions=no
8526   ac_outfile=conftest.$ac_objext
8527    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528    lt_compiler_flag="-fno-rtti -fno-exceptions"
8529    # Insert the option either (1) after the last *FLAGS variable, or
8530    # (2) before a word containing "conftest.", or (3) at the end.
8531    # Note that $ac_compile itself does not contain backslashes and begins
8532    # with a dollar sign (not a hyphen), so the echo should work correctly.
8533    # The option is referenced via a variable to avoid confusing sed.
8534    lt_compile=`echo "$ac_compile" | $SED \
8535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537    -e 's:$: $lt_compiler_flag:'`
8538    (eval echo "\"\$as_me:8538: $lt_compile\"" >&5)
8539    (eval "$lt_compile" 2>conftest.err)
8540    ac_status=$?
8541    cat conftest.err >&5
8542    echo "$as_me:8542: \$? = $ac_status" >&5
8543    if (exit $ac_status) && test -s "$ac_outfile"; then
8544      # The compiler can only warn and ignore the option if not recognized
8545      # So say no if there are warnings other than the usual output.
8546      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8547      $SED '/^$/d' conftest.err >conftest.er2
8548      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8549        lt_cv_prog_compiler_rtti_exceptions=yes
8550      fi
8551    fi
8552    $rm conftest*
8553
8554 fi
8555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8557
8558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8560 else
8561     :
8562 fi
8563
8564 fi
8565
8566 lt_prog_compiler_wl=
8567 lt_prog_compiler_pic=
8568 lt_prog_compiler_static=
8569
8570 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8571 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8572
8573   if test "$GCC" = yes; then
8574     lt_prog_compiler_wl='-Wl,'
8575     lt_prog_compiler_static='-static'
8576
8577     case $host_os in
8578       aix*)
8579       # All AIX code is PIC.
8580       if test "$host_cpu" = ia64; then
8581         # AIX 5 now supports IA64 processor
8582         lt_prog_compiler_static='-Bstatic'
8583       fi
8584       ;;
8585
8586     amigaos*)
8587       # FIXME: we need at least 68020 code to build shared libraries, but
8588       # adding the `-m68020' flag to GCC prevents building anything better,
8589       # like `-m68040'.
8590       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8591       ;;
8592
8593     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594       # PIC is the default for these OSes.
8595       ;;
8596
8597     mingw* | pw32* | os2*)
8598       # This hack is so that the source file can tell whether it is being
8599       # built for inclusion in a dll (and should export symbols for example).
8600       lt_prog_compiler_pic='-DDLL_EXPORT'
8601       ;;
8602
8603     darwin* | rhapsody*)
8604       # PIC is the default on this platform
8605       # Common symbols not allowed in MH_DYLIB files
8606       lt_prog_compiler_pic='-fno-common'
8607       ;;
8608
8609     msdosdjgpp*)
8610       # Just because we use GCC doesn't mean we suddenly get shared libraries
8611       # on systems that don't support them.
8612       lt_prog_compiler_can_build_shared=no
8613       enable_shared=no
8614       ;;
8615
8616     sysv4*MP*)
8617       if test -d /usr/nec; then
8618         lt_prog_compiler_pic=-Kconform_pic
8619       fi
8620       ;;
8621
8622     hpux*)
8623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624       # not for PA HP-UX.
8625       case $host_cpu in
8626       hppa*64*|ia64*)
8627         # +Z the default
8628         ;;
8629       *)
8630         lt_prog_compiler_pic='-fPIC'
8631         ;;
8632       esac
8633       ;;
8634
8635     *)
8636       lt_prog_compiler_pic='-fPIC'
8637       ;;
8638     esac
8639   else
8640     # PORTME Check for flag to pass linker flags through the system compiler.
8641     case $host_os in
8642     aix*)
8643       lt_prog_compiler_wl='-Wl,'
8644       if test "$host_cpu" = ia64; then
8645         # AIX 5 now supports IA64 processor
8646         lt_prog_compiler_static='-Bstatic'
8647       else
8648         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8649       fi
8650       ;;
8651       darwin*)
8652         # PIC is the default on this platform
8653         # Common symbols not allowed in MH_DYLIB files
8654        case $cc_basename in
8655          xlc*)
8656          lt_prog_compiler_pic='-qnocommon'
8657          lt_prog_compiler_wl='-Wl,'
8658          ;;
8659        esac
8660        ;;
8661
8662     mingw* | pw32* | os2*)
8663       # This hack is so that the source file can tell whether it is being
8664       # built for inclusion in a dll (and should export symbols for example).
8665       lt_prog_compiler_pic='-DDLL_EXPORT'
8666       ;;
8667
8668     hpux9* | hpux10* | hpux11*)
8669       lt_prog_compiler_wl='-Wl,'
8670       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8671       # not for PA HP-UX.
8672       case $host_cpu in
8673       hppa*64*|ia64*)
8674         # +Z the default
8675         ;;
8676       *)
8677         lt_prog_compiler_pic='+Z'
8678         ;;
8679       esac
8680       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8681       lt_prog_compiler_static='${wl}-a ${wl}archive'
8682       ;;
8683
8684     irix5* | irix6* | nonstopux*)
8685       lt_prog_compiler_wl='-Wl,'
8686       # PIC (with -KPIC) is the default.
8687       lt_prog_compiler_static='-non_shared'
8688       ;;
8689
8690     newsos6)
8691       lt_prog_compiler_pic='-KPIC'
8692       lt_prog_compiler_static='-Bstatic'
8693       ;;
8694
8695     linux*)
8696       case $cc_basename in
8697       icc* | ecc*)
8698         lt_prog_compiler_wl='-Wl,'
8699         lt_prog_compiler_pic='-KPIC'
8700         lt_prog_compiler_static='-static'
8701         ;;
8702       pgcc* | pgf77* | pgf90* | pgf95*)
8703         # Portland Group compilers (*not* the Pentium gcc compiler,
8704         # which looks to be a dead project)
8705         lt_prog_compiler_wl='-Wl,'
8706         lt_prog_compiler_pic='-fpic'
8707         lt_prog_compiler_static='-Bstatic'
8708         ;;
8709       ccc*)
8710         lt_prog_compiler_wl='-Wl,'
8711         # All Alpha code is PIC.
8712         lt_prog_compiler_static='-non_shared'
8713         ;;
8714       esac
8715       ;;
8716
8717     osf3* | osf4* | osf5*)
8718       lt_prog_compiler_wl='-Wl,'
8719       # All OSF/1 code is PIC.
8720       lt_prog_compiler_static='-non_shared'
8721       ;;
8722
8723     sco3.2v5*)
8724       lt_prog_compiler_pic='-Kpic'
8725       lt_prog_compiler_static='-dn'
8726       ;;
8727
8728     solaris*)
8729       lt_prog_compiler_pic='-KPIC'
8730       lt_prog_compiler_static='-Bstatic'
8731       case $cc_basename in
8732       f77* | f90* | f95*)
8733         lt_prog_compiler_wl='-Qoption ld ';;
8734       *)
8735         lt_prog_compiler_wl='-Wl,';;
8736       esac
8737       ;;
8738
8739     sunos4*)
8740       lt_prog_compiler_wl='-Qoption ld '
8741       lt_prog_compiler_pic='-PIC'
8742       lt_prog_compiler_static='-Bstatic'
8743       ;;
8744
8745     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8746       lt_prog_compiler_wl='-Wl,'
8747       lt_prog_compiler_pic='-KPIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     sysv4*MP*)
8752       if test -d /usr/nec ;then
8753         lt_prog_compiler_pic='-Kconform_pic'
8754         lt_prog_compiler_static='-Bstatic'
8755       fi
8756       ;;
8757
8758     unicos*)
8759       lt_prog_compiler_wl='-Wl,'
8760       lt_prog_compiler_can_build_shared=no
8761       ;;
8762
8763     uts4*)
8764       lt_prog_compiler_pic='-pic'
8765       lt_prog_compiler_static='-Bstatic'
8766       ;;
8767
8768     *)
8769       lt_prog_compiler_can_build_shared=no
8770       ;;
8771     esac
8772   fi
8773
8774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8775 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8776
8777 #
8778 # Check to make sure the PIC flag actually works.
8779 #
8780 if test -n "$lt_prog_compiler_pic"; then
8781
8782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8784 if test "${lt_prog_compiler_pic_works+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   lt_prog_compiler_pic_works=no
8788   ac_outfile=conftest.$ac_objext
8789    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8790    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791    # Insert the option either (1) after the last *FLAGS variable, or
8792    # (2) before a word containing "conftest.", or (3) at the end.
8793    # Note that $ac_compile itself does not contain backslashes and begins
8794    # with a dollar sign (not a hyphen), so the echo should work correctly.
8795    # The option is referenced via a variable to avoid confusing sed.
8796    lt_compile=`echo "$ac_compile" | $SED \
8797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799    -e 's:$: $lt_compiler_flag:'`
8800    (eval echo "\"\$as_me:8800: $lt_compile\"" >&5)
8801    (eval "$lt_compile" 2>conftest.err)
8802    ac_status=$?
8803    cat conftest.err >&5
8804    echo "$as_me:8804: \$? = $ac_status" >&5
8805    if (exit $ac_status) && test -s "$ac_outfile"; then
8806      # The compiler can only warn and ignore the option if not recognized
8807      # So say no if there are warnings other than the usual output.
8808      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8809      $SED '/^$/d' conftest.err >conftest.er2
8810      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8811        lt_prog_compiler_pic_works=yes
8812      fi
8813    fi
8814    $rm conftest*
8815
8816 fi
8817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8818 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8819
8820 if test x"$lt_prog_compiler_pic_works" = xyes; then
8821     case $lt_prog_compiler_pic in
8822      "" | " "*) ;;
8823      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8824      esac
8825 else
8826     lt_prog_compiler_pic=
8827      lt_prog_compiler_can_build_shared=no
8828 fi
8829
8830 fi
8831 case $host_os in
8832   # For platforms which do not support PIC, -DPIC is meaningless:
8833   *djgpp*)
8834     lt_prog_compiler_pic=
8835     ;;
8836   *)
8837     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8838     ;;
8839 esac
8840
8841 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   lt_cv_prog_compiler_c_o=no
8847    $rm -r conftest 2>/dev/null
8848    mkdir conftest
8849    cd conftest
8850    mkdir out
8851    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8852
8853    lt_compiler_flag="-o out/conftest2.$ac_objext"
8854    # Insert the option either (1) after the last *FLAGS variable, or
8855    # (2) before a word containing "conftest.", or (3) at the end.
8856    # Note that $ac_compile itself does not contain backslashes and begins
8857    # with a dollar sign (not a hyphen), so the echo should work correctly.
8858    lt_compile=`echo "$ac_compile" | $SED \
8859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861    -e 's:$: $lt_compiler_flag:'`
8862    (eval echo "\"\$as_me:8862: $lt_compile\"" >&5)
8863    (eval "$lt_compile" 2>out/conftest.err)
8864    ac_status=$?
8865    cat out/conftest.err >&5
8866    echo "$as_me:8866: \$? = $ac_status" >&5
8867    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8868    then
8869      # The compiler can only warn and ignore the option if not recognized
8870      # So say no if there are warnings
8871      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8872      $SED '/^$/d' out/conftest.err >out/conftest.er2
8873      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874        lt_cv_prog_compiler_c_o=yes
8875      fi
8876    fi
8877    chmod u+w . 2>&5
8878    $rm conftest*
8879    # SGI C++ compiler will create directory out/ii_files/ for
8880    # template instantiation
8881    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8882    $rm out/* && rmdir out
8883    cd ..
8884    rmdir conftest
8885    $rm conftest*
8886
8887 fi
8888 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8890
8891
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894   # do not overwrite the value of need_locks provided by the user
8895   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8896 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8897   hard_links=yes
8898   $rm conftest*
8899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900   touch conftest.a
8901   ln conftest.a conftest.b 2>&5 || hard_links=no
8902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903   { echo "$as_me:$LINENO: result: $hard_links" >&5
8904 echo "${ECHO_T}$hard_links" >&6; }
8905   if test "$hard_links" = no; then
8906     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8908     need_locks=warn
8909   fi
8910 else
8911   need_locks=no
8912 fi
8913
8914 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8916
8917   runpath_var=
8918   allow_undefined_flag=
8919   enable_shared_with_static_runtimes=no
8920   archive_cmds=
8921   archive_expsym_cmds=
8922   old_archive_From_new_cmds=
8923   old_archive_from_expsyms_cmds=
8924   export_dynamic_flag_spec=
8925   whole_archive_flag_spec=
8926   thread_safe_flag_spec=
8927   hardcode_libdir_flag_spec=
8928   hardcode_libdir_flag_spec_ld=
8929   hardcode_libdir_separator=
8930   hardcode_direct=no
8931   hardcode_minus_L=no
8932   hardcode_shlibpath_var=unsupported
8933   link_all_deplibs=unknown
8934   hardcode_automatic=no
8935   module_cmds=
8936   module_expsym_cmds=
8937   always_export_symbols=no
8938   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8939   # include_expsyms should be a list of space-separated symbols to be *always*
8940   # included in the symbol list
8941   include_expsyms=
8942   # exclude_expsyms can be an extended regexp of symbols to exclude
8943   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8944   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8945   # as well as any symbol that contains `d'.
8946   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8947   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8948   # platforms (ab)use it in PIC code, but their linkers get confused if
8949   # the symbol is explicitly referenced.  Since portable code cannot
8950   # rely on this symbol name, it's probably fine to never include it in
8951   # preloaded symbol tables.
8952   extract_expsyms_cmds=
8953   # Just being paranoid about ensuring that cc_basename is set.
8954   for cc_temp in $compiler""; do
8955   case $cc_temp in
8956     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8958     \-*) ;;
8959     *) break;;
8960   esac
8961 done
8962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8963
8964   case $host_os in
8965   cygwin* | mingw* | pw32*)
8966     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8967     # When not using gcc, we currently assume that we are using
8968     # Microsoft Visual C++.
8969     if test "$GCC" != yes; then
8970       with_gnu_ld=no
8971     fi
8972     ;;
8973   openbsd*)
8974     with_gnu_ld=no
8975     ;;
8976   esac
8977
8978   ld_shlibs=yes
8979   if test "$with_gnu_ld" = yes; then
8980     # If archive_cmds runs LD, not CC, wlarc should be empty
8981     wlarc='${wl}'
8982
8983     # Set some defaults for GNU ld with shared library support. These
8984     # are reset later if shared libraries are not supported. Putting them
8985     # here allows them to be overridden if necessary.
8986     runpath_var=LD_RUN_PATH
8987     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8988     export_dynamic_flag_spec='${wl}--export-dynamic'
8989     # ancient GNU ld didn't support --whole-archive et. al.
8990     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8991         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8992       else
8993         whole_archive_flag_spec=
8994     fi
8995     supports_anon_versioning=no
8996     case `$LD -v 2>/dev/null` in
8997       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8998       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8999       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9000       *\ 2.11.*) ;; # other 2.11 versions
9001       *) supports_anon_versioning=yes ;;
9002     esac
9003
9004     # See if GNU ld supports shared libraries.
9005     case $host_os in
9006     aix3* | aix4* | aix5*)
9007       # On AIX/PPC, the GNU linker is very broken
9008       if test "$host_cpu" != ia64; then
9009         ld_shlibs=no
9010         cat <<EOF 1>&2
9011
9012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9013 *** to be unable to reliably create shared libraries on AIX.
9014 *** Therefore, libtool is disabling shared libraries support.  If you
9015 *** really care for shared libraries, you may want to modify your PATH
9016 *** so that a non-GNU linker is found, and then restart.
9017
9018 EOF
9019       fi
9020       ;;
9021
9022     amigaos*)
9023       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)'
9024       hardcode_libdir_flag_spec='-L$libdir'
9025       hardcode_minus_L=yes
9026
9027       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9028       # that the semantics of dynamic libraries on AmigaOS, at least up
9029       # to version 4, is to share data among multiple programs linked
9030       # with the same dynamic library.  Since this doesn't match the
9031       # behavior of shared libraries on other platforms, we can't use
9032       # them.
9033       ld_shlibs=no
9034       ;;
9035
9036     beos*)
9037       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9038         allow_undefined_flag=unsupported
9039         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9040         # support --undefined.  This deserves some investigation.  FIXME
9041         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042       else
9043         ld_shlibs=no
9044       fi
9045       ;;
9046
9047     cygwin* | mingw* | pw32*)
9048       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9049       # as there is no search path for DLLs.
9050       hardcode_libdir_flag_spec='-L$libdir'
9051       allow_undefined_flag=unsupported
9052       always_export_symbols=no
9053       enable_shared_with_static_runtimes=yes
9054       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9055
9056       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9057         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9058         # If the export-symbols file already is a .def file (1st line
9059         # is EXPORTS), use it as is; otherwise, prepend...
9060         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061           cp $export_symbols $output_objdir/$soname.def;
9062         else
9063           echo EXPORTS > $output_objdir/$soname.def;
9064           cat $export_symbols >> $output_objdir/$soname.def;
9065         fi~
9066         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9067       else
9068         ld_shlibs=no
9069       fi
9070       ;;
9071
9072     linux*)
9073       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074         tmp_addflag=
9075         case $cc_basename,$host_cpu in
9076         pgcc*)                          # Portland Group C compiler
9077           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'
9078           tmp_addflag=' $pic_flag'
9079           ;;
9080         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9081           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'
9082           tmp_addflag=' $pic_flag -Mnomain' ;;
9083         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9084           tmp_addflag=' -i_dynamic' ;;
9085         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9086           tmp_addflag=' -i_dynamic -nofor_main' ;;
9087         ifc* | ifort*)                  # Intel Fortran compiler
9088           tmp_addflag=' -nofor_main' ;;
9089         esac
9090         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091
9092         if test $supports_anon_versioning = yes; then
9093           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9094   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9095   $echo "local: *; };" >> $output_objdir/$libname.ver~
9096           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9097         fi
9098       else
9099         ld_shlibs=no
9100       fi
9101       ;;
9102
9103     netbsd*)
9104       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9106         wlarc=
9107       else
9108         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9110       fi
9111       ;;
9112
9113     solaris* | sysv5*)
9114       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9115         ld_shlibs=no
9116         cat <<EOF 1>&2
9117
9118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9119 *** create shared libraries on Solaris systems.  Therefore, libtool
9120 *** is disabling shared libraries support.  We urge you to upgrade GNU
9121 *** binutils to release 2.9.1 or newer.  Another option is to modify
9122 *** your PATH or compiler configuration so that the native linker is
9123 *** used, and then restart.
9124
9125 EOF
9126       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9127         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9129       else
9130         ld_shlibs=no
9131       fi
9132       ;;
9133
9134     sunos4*)
9135       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9136       wlarc=
9137       hardcode_direct=yes
9138       hardcode_shlibpath_var=no
9139       ;;
9140
9141     *)
9142       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9143         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9145       else
9146         ld_shlibs=no
9147       fi
9148       ;;
9149     esac
9150
9151     if test "$ld_shlibs" = no; then
9152       runpath_var=
9153       hardcode_libdir_flag_spec=
9154       export_dynamic_flag_spec=
9155       whole_archive_flag_spec=
9156     fi
9157   else
9158     # PORTME fill in a description of your system's linker (not GNU ld)
9159     case $host_os in
9160     aix3*)
9161       allow_undefined_flag=unsupported
9162       always_export_symbols=yes
9163       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'
9164       # Note: this linker hardcodes the directories in LIBPATH if there
9165       # are no directories specified by -L.
9166       hardcode_minus_L=yes
9167       if test "$GCC" = yes && test -z "$link_static_flag"; then
9168         # Neither direct hardcoding nor static linking is supported with a
9169         # broken collect2.
9170         hardcode_direct=unsupported
9171       fi
9172       ;;
9173
9174     aix4* | aix5*)
9175       if test "$host_cpu" = ia64; then
9176         # On IA64, the linker does run time linking by default, so we don't
9177         # have to do anything special.
9178         aix_use_runtimelinking=no
9179         exp_sym_flag='-Bexport'
9180         no_entry_flag=""
9181       else
9182         # If we're using GNU nm, then we don't want the "-C" option.
9183         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9184         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9185           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'
9186         else
9187           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'
9188         fi
9189         aix_use_runtimelinking=no
9190
9191         # Test if we are trying to use run time linking or normal
9192         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9193         # need to do runtime linking.
9194         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9195           for ld_flag in $LDFLAGS; do
9196           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9197             aix_use_runtimelinking=yes
9198             break
9199           fi
9200           done
9201         esac
9202
9203         exp_sym_flag='-bexport'
9204         no_entry_flag='-bnoentry'
9205       fi
9206
9207       # When large executables or shared objects are built, AIX ld can
9208       # have problems creating the table of contents.  If linking a library
9209       # or program results in "error TOC overflow" add -mminimal-toc to
9210       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9211       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9212
9213       archive_cmds=''
9214       hardcode_direct=yes
9215       hardcode_libdir_separator=':'
9216       link_all_deplibs=yes
9217
9218       if test "$GCC" = yes; then
9219         case $host_os in aix4.[012]|aix4.[012].*)
9220         # We only want to do this on AIX 4.2 and lower, the check
9221         # below for broken collect2 doesn't work under 4.3+
9222           collect2name=`${CC} -print-prog-name=collect2`
9223           if test -f "$collect2name" && \
9224            strings "$collect2name" | grep resolve_lib_name >/dev/null
9225           then
9226           # We have reworked collect2
9227           hardcode_direct=yes
9228           else
9229           # We have old collect2
9230           hardcode_direct=unsupported
9231           # It fails to find uninstalled libraries when the uninstalled
9232           # path is not listed in the libpath.  Setting hardcode_minus_L
9233           # to unsupported forces relinking
9234           hardcode_minus_L=yes
9235           hardcode_libdir_flag_spec='-L$libdir'
9236           hardcode_libdir_separator=
9237           fi
9238         esac
9239         shared_flag='-shared'
9240         if test "$aix_use_runtimelinking" = yes; then
9241           shared_flag="$shared_flag "'${wl}-G'
9242         fi
9243       else
9244         # not using gcc
9245         if test "$host_cpu" = ia64; then
9246         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9247         # chokes on -Wl,-G. The following line is correct:
9248           shared_flag='-G'
9249         else
9250         if test "$aix_use_runtimelinking" = yes; then
9251             shared_flag='${wl}-G'
9252           else
9253             shared_flag='${wl}-bM:SRE'
9254         fi
9255         fi
9256       fi
9257
9258       # It seems that -bexpall does not export symbols beginning with
9259       # underscore (_), so it is better to generate a list of symbols to export.
9260       always_export_symbols=yes
9261       if test "$aix_use_runtimelinking" = yes; then
9262         # Warning - without using the other runtime loading flags (-brtl),
9263         # -berok will link without error, but may produce a broken library.
9264         allow_undefined_flag='-berok'
9265        # Determine the default libpath from the value encoded in an empty executable.
9266        cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h.  */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h.  */
9272
9273 int
9274 main ()
9275 {
9276
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (ac_try="$ac_link"
9283 case "(($ac_try" in
9284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285   *) ac_try_echo=$ac_try;;
9286 esac
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288   (eval "$ac_link") 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } && {
9295          test -z "$ac_c_werror_flag" ||
9296          test ! -s conftest.err
9297        } && test -s conftest$ac_exeext &&
9298        $as_test_x conftest$ac_exeext; then
9299
9300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9301 }'`
9302 # Check for a 64-bit object if we didn't find anything.
9303 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; }
9304 }'`; fi
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309
9310 fi
9311
9312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9313       conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315
9316        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317         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"
9318        else
9319         if test "$host_cpu" = ia64; then
9320           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9321           allow_undefined_flag="-z nodefs"
9322           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"
9323         else
9324          # Determine the default libpath from the value encoded in an empty executable.
9325          cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 int
9333 main ()
9334 {
9335
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_link") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } && {
9354          test -z "$ac_c_werror_flag" ||
9355          test ! -s conftest.err
9356        } && test -s conftest$ac_exeext &&
9357        $as_test_x conftest$ac_exeext; then
9358
9359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9360 }'`
9361 # Check for a 64-bit object if we didn't find anything.
9362 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; }
9363 }'`; fi
9364 else
9365   echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368
9369 fi
9370
9371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372       conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374
9375          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376           # Warning - without using the other run time loading flags,
9377           # -berok will link without error, but may produce a broken library.
9378           no_undefined_flag=' ${wl}-bernotok'
9379           allow_undefined_flag=' ${wl}-berok'
9380           # -bexpall does not export symbols beginning with underscore (_)
9381           always_export_symbols=yes
9382           # Exported symbols can be pulled into shared objects from archives
9383           whole_archive_flag_spec=' '
9384           archive_cmds_need_lc=yes
9385           # This is similar to how AIX traditionally builds its shared libraries.
9386           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'
9387         fi
9388       fi
9389       ;;
9390
9391     amigaos*)
9392       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)'
9393       hardcode_libdir_flag_spec='-L$libdir'
9394       hardcode_minus_L=yes
9395       # see comment about different semantics on the GNU ld section
9396       ld_shlibs=no
9397       ;;
9398
9399     bsdi[45]*)
9400       export_dynamic_flag_spec=-rdynamic
9401       ;;
9402
9403     cygwin* | mingw* | pw32*)
9404       # When not using gcc, we currently assume that we are using
9405       # Microsoft Visual C++.
9406       # hardcode_libdir_flag_spec is actually meaningless, as there is
9407       # no search path for DLLs.
9408       hardcode_libdir_flag_spec=' '
9409       allow_undefined_flag=unsupported
9410       # Tell ltmain to make .lib files, not .a files.
9411       libext=lib
9412       # Tell ltmain to make .dll files, not .so files.
9413       shrext_cmds=".dll"
9414       # FIXME: Setting linknames here is a bad hack.
9415       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9416       # The linker will automatically build a .lib file if we build a DLL.
9417       old_archive_From_new_cmds='true'
9418       # FIXME: Should let the user specify the lib program.
9419       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9420       fix_srcfile_path='`cygpath -w "$srcfile"`'
9421       enable_shared_with_static_runtimes=yes
9422       ;;
9423
9424     darwin* | rhapsody*)
9425       case $host_os in
9426         rhapsody* | darwin1.[012])
9427          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9428          ;;
9429        *) # Darwin 1.3 on
9430          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9431            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9432          else
9433            case ${MACOSX_DEPLOYMENT_TARGET} in
9434              10.[012])
9435                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9436                ;;
9437              10.*)
9438                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9439                ;;
9440            esac
9441          fi
9442          ;;
9443       esac
9444       archive_cmds_need_lc=no
9445       hardcode_direct=no
9446       hardcode_automatic=yes
9447       hardcode_shlibpath_var=unsupported
9448       whole_archive_flag_spec=''
9449       link_all_deplibs=yes
9450     if test "$GCC" = yes ; then
9451         output_verbose_link_cmd='echo'
9452         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9453       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9455       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}'
9456       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}'
9457     else
9458       case $cc_basename in
9459         xlc*)
9460          output_verbose_link_cmd='echo'
9461          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9462          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9463           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9464          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}'
9465           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}'
9466           ;;
9467        *)
9468          ld_shlibs=no
9469           ;;
9470       esac
9471     fi
9472       ;;
9473
9474     dgux*)
9475       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476       hardcode_libdir_flag_spec='-L$libdir'
9477       hardcode_shlibpath_var=no
9478       ;;
9479
9480     freebsd1*)
9481       ld_shlibs=no
9482       ;;
9483
9484     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9485     # support.  Future versions do this automatically, but an explicit c++rt0.o
9486     # does not break anything, and helps significantly (at the cost of a little
9487     # extra space).
9488     freebsd2.2*)
9489       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9490       hardcode_libdir_flag_spec='-R$libdir'
9491       hardcode_direct=yes
9492       hardcode_shlibpath_var=no
9493       ;;
9494
9495     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9496     freebsd2*)
9497       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9498       hardcode_direct=yes
9499       hardcode_minus_L=yes
9500       hardcode_shlibpath_var=no
9501       ;;
9502
9503     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9504     freebsd* | kfreebsd*-gnu | dragonfly*)
9505       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9506       hardcode_libdir_flag_spec='-R$libdir'
9507       hardcode_direct=yes
9508       hardcode_shlibpath_var=no
9509       ;;
9510
9511     hpux9*)
9512       if test "$GCC" = yes; then
9513         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'
9514       else
9515         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'
9516       fi
9517       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518       hardcode_libdir_separator=:
9519       hardcode_direct=yes
9520
9521       # hardcode_minus_L: Not really in the search PATH,
9522       # but as the default location of the library.
9523       hardcode_minus_L=yes
9524       export_dynamic_flag_spec='${wl}-E'
9525       ;;
9526
9527     hpux10* | hpux11*)
9528       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9529         case $host_cpu in
9530         hppa*64*|ia64*)
9531           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9532           ;;
9533         *)
9534           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535           ;;
9536         esac
9537       else
9538         case $host_cpu in
9539         hppa*64*|ia64*)
9540           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9541           ;;
9542         *)
9543           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9544           ;;
9545         esac
9546       fi
9547       if test "$with_gnu_ld" = no; then
9548         case $host_cpu in
9549         hppa*64*)
9550           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551           hardcode_libdir_flag_spec_ld='+b $libdir'
9552           hardcode_libdir_separator=:
9553           hardcode_direct=no
9554           hardcode_shlibpath_var=no
9555           ;;
9556         ia64*)
9557           hardcode_libdir_flag_spec='-L$libdir'
9558           hardcode_direct=no
9559           hardcode_shlibpath_var=no
9560
9561           # hardcode_minus_L: Not really in the search PATH,
9562           # but as the default location of the library.
9563           hardcode_minus_L=yes
9564           ;;
9565         *)
9566           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9567           hardcode_libdir_separator=:
9568           hardcode_direct=yes
9569           export_dynamic_flag_spec='${wl}-E'
9570
9571           # hardcode_minus_L: Not really in the search PATH,
9572           # but as the default location of the library.
9573           hardcode_minus_L=yes
9574           ;;
9575         esac
9576       fi
9577       ;;
9578
9579     irix5* | irix6* | nonstopux*)
9580       if test "$GCC" = yes; then
9581         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'
9582       else
9583         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'
9584         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9585       fi
9586       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587       hardcode_libdir_separator=:
9588       link_all_deplibs=yes
9589       ;;
9590
9591     netbsd*)
9592       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9593         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9594       else
9595         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9596       fi
9597       hardcode_libdir_flag_spec='-R$libdir'
9598       hardcode_direct=yes
9599       hardcode_shlibpath_var=no
9600       ;;
9601
9602     newsos6)
9603       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604       hardcode_direct=yes
9605       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606       hardcode_libdir_separator=:
9607       hardcode_shlibpath_var=no
9608       ;;
9609
9610     openbsd*)
9611       hardcode_direct=yes
9612       hardcode_shlibpath_var=no
9613       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9614         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9616         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9617         export_dynamic_flag_spec='${wl}-E'
9618       else
9619        case $host_os in
9620          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9621            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622            hardcode_libdir_flag_spec='-R$libdir'
9623            ;;
9624          *)
9625            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9627            ;;
9628        esac
9629       fi
9630       ;;
9631
9632     os2*)
9633       hardcode_libdir_flag_spec='-L$libdir'
9634       hardcode_minus_L=yes
9635       allow_undefined_flag=unsupported
9636       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'
9637       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9638       ;;
9639
9640     osf3*)
9641       if test "$GCC" = yes; then
9642         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9643         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'
9644       else
9645         allow_undefined_flag=' -expect_unresolved \*'
9646         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'
9647       fi
9648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649       hardcode_libdir_separator=:
9650       ;;
9651
9652     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9653       if test "$GCC" = yes; then
9654         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9655         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'
9656         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9657       else
9658         allow_undefined_flag=' -expect_unresolved \*'
9659         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'
9660         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9661         $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'
9662
9663         # Both c and cxx compiler support -rpath directly
9664         hardcode_libdir_flag_spec='-rpath $libdir'
9665       fi
9666       hardcode_libdir_separator=:
9667       ;;
9668
9669     sco3.2v5*)
9670       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671       hardcode_shlibpath_var=no
9672       export_dynamic_flag_spec='${wl}-Bexport'
9673       runpath_var=LD_RUN_PATH
9674       hardcode_runpath_var=yes
9675       ;;
9676
9677     solaris*)
9678       no_undefined_flag=' -z text'
9679       if test "$GCC" = yes; then
9680         wlarc='${wl}'
9681         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9682         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9683           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9684       else
9685         wlarc=''
9686         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9688         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9689       fi
9690       hardcode_libdir_flag_spec='-R$libdir'
9691       hardcode_shlibpath_var=no
9692       case $host_os in
9693       solaris2.[0-5] | solaris2.[0-5].*) ;;
9694       *)
9695         # The compiler driver will combine linker options so we
9696         # cannot just pass the convience library names through
9697         # without $wl, iff we do not link with $LD.
9698         # Luckily, gcc supports the same syntax we need for Sun Studio.
9699         # Supported since Solaris 2.6 (maybe 2.5.1?)
9700         case $wlarc in
9701         '')
9702           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9703         *)
9704           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' ;;
9705         esac ;;
9706       esac
9707       link_all_deplibs=yes
9708       ;;
9709
9710     sunos4*)
9711       if test "x$host_vendor" = xsequent; then
9712         # Use $CC to link under sequent, because it throws in some extra .o
9713         # files that make .init and .fini sections work.
9714         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9715       else
9716         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9717       fi
9718       hardcode_libdir_flag_spec='-L$libdir'
9719       hardcode_direct=yes
9720       hardcode_minus_L=yes
9721       hardcode_shlibpath_var=no
9722       ;;
9723
9724     sysv4)
9725       case $host_vendor in
9726         sni)
9727           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728           hardcode_direct=yes # is this really true???
9729         ;;
9730         siemens)
9731           ## LD is ld it makes a PLAMLIB
9732           ## CC just makes a GrossModule.
9733           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734           reload_cmds='$CC -r -o $output$reload_objs'
9735           hardcode_direct=no
9736         ;;
9737         motorola)
9738           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9740         ;;
9741       esac
9742       runpath_var='LD_RUN_PATH'
9743       hardcode_shlibpath_var=no
9744       ;;
9745
9746     sysv4.3*)
9747       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748       hardcode_shlibpath_var=no
9749       export_dynamic_flag_spec='-Bexport'
9750       ;;
9751
9752     sysv4*MP*)
9753       if test -d /usr/nec; then
9754         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755         hardcode_shlibpath_var=no
9756         runpath_var=LD_RUN_PATH
9757         hardcode_runpath_var=yes
9758         ld_shlibs=yes
9759       fi
9760       ;;
9761
9762     sysv4.2uw2*)
9763       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9764       hardcode_direct=yes
9765       hardcode_minus_L=no
9766       hardcode_shlibpath_var=no
9767       hardcode_runpath_var=yes
9768       runpath_var=LD_RUN_PATH
9769       ;;
9770
9771    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9772       no_undefined_flag='${wl}-z ${wl}text'
9773       if test "$GCC" = yes; then
9774         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775       else
9776         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777       fi
9778       runpath_var='LD_RUN_PATH'
9779       hardcode_shlibpath_var=no
9780       ;;
9781
9782     sysv5*)
9783       no_undefined_flag=' -z text'
9784       # $CC -shared without GNU ld will not create a library from C++
9785       # object files and a static libstdc++, better avoid it by now
9786       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9788                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9789       hardcode_libdir_flag_spec=
9790       hardcode_shlibpath_var=no
9791       runpath_var='LD_RUN_PATH'
9792       ;;
9793
9794     uts4*)
9795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796       hardcode_libdir_flag_spec='-L$libdir'
9797       hardcode_shlibpath_var=no
9798       ;;
9799
9800     *)
9801       ld_shlibs=no
9802       ;;
9803     esac
9804   fi
9805
9806 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9807 echo "${ECHO_T}$ld_shlibs" >&6; }
9808 test "$ld_shlibs" = no && can_build_shared=no
9809
9810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811 if test "$GCC" = yes; then
9812   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9813 fi
9814
9815 #
9816 # Do we need to explicitly link libc?
9817 #
9818 case "x$archive_cmds_need_lc" in
9819 x|xyes)
9820   # Assume -lc should be added
9821   archive_cmds_need_lc=yes
9822
9823   if test "$enable_shared" = yes && test "$GCC" = yes; then
9824     case $archive_cmds in
9825     *'~'*)
9826       # FIXME: we may have to deal with multi-command sequences.
9827       ;;
9828     '$CC '*)
9829       # Test whether the compiler implicitly links with -lc since on some
9830       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831       # to ld, don't add -lc before -lgcc.
9832       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9834       $rm conftest*
9835       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9836
9837       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838   (eval $ac_compile) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); } 2>conftest.err; then
9842         soname=conftest
9843         lib=conftest
9844         libobjs=conftest.$ac_objext
9845         deplibs=
9846         wl=$lt_prog_compiler_wl
9847         compiler_flags=-v
9848         linker_flags=-v
9849         verstring=
9850         output_objdir=.
9851         libname=conftest
9852         lt_save_allow_undefined_flag=$allow_undefined_flag
9853         allow_undefined_flag=
9854         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9855   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }
9859         then
9860           archive_cmds_need_lc=no
9861         else
9862           archive_cmds_need_lc=yes
9863         fi
9864         allow_undefined_flag=$lt_save_allow_undefined_flag
9865       else
9866         cat conftest.err 1>&5
9867       fi
9868       $rm conftest*
9869       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9870 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9871       ;;
9872     esac
9873   fi
9874   ;;
9875 esac
9876
9877 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9879 library_names_spec=
9880 libname_spec='lib$name'
9881 soname_spec=
9882 shrext_cmds=".so"
9883 postinstall_cmds=
9884 postuninstall_cmds=
9885 finish_cmds=
9886 finish_eval=
9887 shlibpath_var=
9888 shlibpath_overrides_runpath=unknown
9889 version_type=none
9890 dynamic_linker="$host_os ld.so"
9891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9892 if test "$GCC" = yes; then
9893   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9894   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9895     # if the path contains ";" then we assume it to be the separator
9896     # otherwise default to the standard path separator (i.e. ":") - it is
9897     # assumed that no part of a normal pathname contains ";" but that should
9898     # okay in the real world where ";" in dirpaths is itself problematic.
9899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9900   else
9901     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9902   fi
9903 else
9904   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9905 fi
9906 need_lib_prefix=unknown
9907 hardcode_into_libs=no
9908
9909 # when you set need_version to no, make sure it does not cause -set_version
9910 # flags to be left without arguments
9911 need_version=unknown
9912
9913 case $host_os in
9914 aix3*)
9915   version_type=linux
9916   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9917   shlibpath_var=LIBPATH
9918
9919   # AIX 3 has no versioning support, so we append a major version to the name.
9920   soname_spec='${libname}${release}${shared_ext}$major'
9921   ;;
9922
9923 aix4* | aix5*)
9924   version_type=linux
9925   need_lib_prefix=no
9926   need_version=no
9927   hardcode_into_libs=yes
9928   if test "$host_cpu" = ia64; then
9929     # AIX 5 supports IA64
9930     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9931     shlibpath_var=LD_LIBRARY_PATH
9932   else
9933     # With GCC up to 2.95.x, collect2 would create an import file
9934     # for dependence libraries.  The import file would start with
9935     # the line `#! .'.  This would cause the generated library to
9936     # depend on `.', always an invalid library.  This was fixed in
9937     # development snapshots of GCC prior to 3.0.
9938     case $host_os in
9939       aix4 | aix4.[01] | aix4.[01].*)
9940       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9941            echo ' yes '
9942            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9943         :
9944       else
9945         can_build_shared=no
9946       fi
9947       ;;
9948     esac
9949     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9950     # soname into executable. Probably we can add versioning support to
9951     # collect2, so additional links can be useful in future.
9952     if test "$aix_use_runtimelinking" = yes; then
9953       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9954       # instead of lib<name>.a to let people know that these are not
9955       # typical AIX shared libraries.
9956       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957     else
9958       # We preserve .a as extension for shared libraries through AIX4.2
9959       # and later when we are not doing run time linking.
9960       library_names_spec='${libname}${release}.a $libname.a'
9961       soname_spec='${libname}${release}${shared_ext}$major'
9962     fi
9963     shlibpath_var=LIBPATH
9964   fi
9965   ;;
9966
9967 amigaos*)
9968   library_names_spec='$libname.ixlibrary $libname.a'
9969   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9970   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'
9971   ;;
9972
9973 beos*)
9974   library_names_spec='${libname}${shared_ext}'
9975   dynamic_linker="$host_os ld.so"
9976   shlibpath_var=LIBRARY_PATH
9977   ;;
9978
9979 bsdi[45]*)
9980   version_type=linux
9981   need_version=no
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983   soname_spec='${libname}${release}${shared_ext}$major'
9984   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9985   shlibpath_var=LD_LIBRARY_PATH
9986   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9987   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9988   # the default ld.so.conf also contains /usr/contrib/lib and
9989   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9990   # libtool to hard-code these into programs
9991   ;;
9992
9993 cygwin* | mingw* | pw32*)
9994   version_type=windows
9995   shrext_cmds=".dll"
9996   need_version=no
9997   need_lib_prefix=no
9998
9999   case $GCC,$host_os in
10000   yes,cygwin* | yes,mingw* | yes,pw32*)
10001     library_names_spec='$libname.dll.a'
10002     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10003     postinstall_cmds='base_file=`basename \${file}`~
10004       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10005       dldir=$destdir/`dirname \$dlpath`~
10006       test -d \$dldir || mkdir -p \$dldir~
10007       $install_prog $dir/$dlname \$dldir/$dlname~
10008       chmod a+x \$dldir/$dlname'
10009     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10010       dlpath=$dir/\$dldll~
10011        $rm \$dlpath'
10012     shlibpath_overrides_runpath=yes
10013
10014     case $host_os in
10015     cygwin*)
10016       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10017       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10019       ;;
10020     mingw*)
10021       # MinGW DLLs use traditional 'lib' prefix
10022       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10024       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10025         # It is most probably a Windows format PATH printed by
10026         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10027         # path with ; separators, and with drive letters. We can handle the
10028         # drive letters (cygwin fileutils understands them), so leave them,
10029         # especially as we might pass files found there to a mingw objdump,
10030         # which wouldn't understand a cygwinified path. Ahh.
10031         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10032       else
10033         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10034       fi
10035       ;;
10036     pw32*)
10037       # pw32 DLLs use 'pw' prefix rather than 'lib'
10038       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10039       ;;
10040     esac
10041     ;;
10042
10043   *)
10044     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10045     ;;
10046   esac
10047   dynamic_linker='Win32 ld.exe'
10048   # FIXME: first we should search . and the directory the executable is in
10049   shlibpath_var=PATH
10050   ;;
10051
10052 darwin* | rhapsody*)
10053   dynamic_linker="$host_os dyld"
10054   version_type=darwin
10055   need_lib_prefix=no
10056   need_version=no
10057   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10058   soname_spec='${libname}${release}${major}$shared_ext'
10059   shlibpath_overrides_runpath=yes
10060   shlibpath_var=DYLD_LIBRARY_PATH
10061   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10062   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10063   if test "$GCC" = yes; then
10064     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"`
10065   else
10066     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10067   fi
10068   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10069   ;;
10070
10071 dgux*)
10072   version_type=linux
10073   need_lib_prefix=no
10074   need_version=no
10075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10076   soname_spec='${libname}${release}${shared_ext}$major'
10077   shlibpath_var=LD_LIBRARY_PATH
10078   ;;
10079
10080 freebsd1*)
10081   dynamic_linker=no
10082   ;;
10083
10084 kfreebsd*-gnu)
10085   version_type=linux
10086   need_lib_prefix=no
10087   need_version=no
10088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089   soname_spec='${libname}${release}${shared_ext}$major'
10090   shlibpath_var=LD_LIBRARY_PATH
10091   shlibpath_overrides_runpath=no
10092   hardcode_into_libs=yes
10093   dynamic_linker='GNU ld.so'
10094   ;;
10095
10096 freebsd* | dragonfly*)
10097   # DragonFly does not have aout.  When/if they implement a new
10098   # versioning mechanism, adjust this.
10099   if test -x /usr/bin/objformat; then
10100     objformat=`/usr/bin/objformat`
10101   else
10102     case $host_os in
10103     freebsd[123]*) objformat=aout ;;
10104     *) objformat=elf ;;
10105     esac
10106   fi
10107   version_type=freebsd-$objformat
10108   case $version_type in
10109     freebsd-elf*)
10110       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10111       need_version=no
10112       need_lib_prefix=no
10113       ;;
10114     freebsd-*)
10115       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10116       need_version=yes
10117       ;;
10118   esac
10119   shlibpath_var=LD_LIBRARY_PATH
10120   case $host_os in
10121   freebsd2*)
10122     shlibpath_overrides_runpath=yes
10123     ;;
10124   freebsd3.[01]* | freebsdelf3.[01]*)
10125     shlibpath_overrides_runpath=yes
10126     hardcode_into_libs=yes
10127     ;;
10128   *) # from 3.2 on
10129     shlibpath_overrides_runpath=no
10130     hardcode_into_libs=yes
10131     ;;
10132   esac
10133   ;;
10134
10135 gnu*)
10136   version_type=linux
10137   need_lib_prefix=no
10138   need_version=no
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10140   soname_spec='${libname}${release}${shared_ext}$major'
10141   shlibpath_var=LD_LIBRARY_PATH
10142   hardcode_into_libs=yes
10143   ;;
10144
10145 hpux9* | hpux10* | hpux11*)
10146   # Give a soname corresponding to the major version so that dld.sl refuses to
10147   # link against other versions.
10148   version_type=sunos
10149   need_lib_prefix=no
10150   need_version=no
10151   case $host_cpu in
10152   ia64*)
10153     shrext_cmds='.so'
10154     hardcode_into_libs=yes
10155     dynamic_linker="$host_os dld.so"
10156     shlibpath_var=LD_LIBRARY_PATH
10157     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159     soname_spec='${libname}${release}${shared_ext}$major'
10160     if test "X$HPUX_IA64_MODE" = X32; then
10161       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10162     else
10163       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10164     fi
10165     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10166     ;;
10167    hppa*64*)
10168      shrext_cmds='.sl'
10169      hardcode_into_libs=yes
10170      dynamic_linker="$host_os dld.sl"
10171      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10172      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10173      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174      soname_spec='${libname}${release}${shared_ext}$major'
10175      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10176      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10177      ;;
10178    *)
10179     shrext_cmds='.sl'
10180     dynamic_linker="$host_os dld.sl"
10181     shlibpath_var=SHLIB_PATH
10182     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184     soname_spec='${libname}${release}${shared_ext}$major'
10185     ;;
10186   esac
10187   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10188   postinstall_cmds='chmod 555 $lib'
10189   ;;
10190
10191 irix5* | irix6* | nonstopux*)
10192   case $host_os in
10193     nonstopux*) version_type=nonstopux ;;
10194     *)
10195         if test "$lt_cv_prog_gnu_ld" = yes; then
10196                 version_type=linux
10197         else
10198                 version_type=irix
10199         fi ;;
10200   esac
10201   need_lib_prefix=no
10202   need_version=no
10203   soname_spec='${libname}${release}${shared_ext}$major'
10204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10205   case $host_os in
10206   irix5* | nonstopux*)
10207     libsuff= shlibsuff=
10208     ;;
10209   *)
10210     case $LD in # libtool.m4 will add one of these switches to LD
10211     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10212       libsuff= shlibsuff= libmagic=32-bit;;
10213     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10214       libsuff=32 shlibsuff=N32 libmagic=N32;;
10215     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10216       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10217     *) libsuff= shlibsuff= libmagic=never-match;;
10218     esac
10219     ;;
10220   esac
10221   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10222   shlibpath_overrides_runpath=no
10223   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10224   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10225   hardcode_into_libs=yes
10226   ;;
10227
10228 # No shared lib support for Linux oldld, aout, or coff.
10229 linux*oldld* | linux*aout* | linux*coff*)
10230   dynamic_linker=no
10231   ;;
10232
10233 # This must be Linux ELF.
10234 linux*)
10235   version_type=linux
10236   need_lib_prefix=no
10237   need_version=no
10238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239   soname_spec='${libname}${release}${shared_ext}$major'
10240   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10241   shlibpath_var=LD_LIBRARY_PATH
10242   shlibpath_overrides_runpath=no
10243   # This implies no fast_install, which is unacceptable.
10244   # Some rework will be needed to allow for fast_install
10245   # before this can be enabled.
10246   hardcode_into_libs=yes
10247
10248   # Append ld.so.conf contents to the search path
10249   if test -f /etc/ld.so.conf; then
10250     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' ' '`
10251     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10252   fi
10253
10254   # We used to test for /lib/ld.so.1 and disable shared libraries on
10255   # powerpc, because MkLinux only supported shared libraries with the
10256   # GNU dynamic linker.  Since this was broken with cross compilers,
10257   # most powerpc-linux boxes support dynamic linking these days and
10258   # people can always --disable-shared, the test was removed, and we
10259   # assume the GNU/Linux dynamic linker is in use.
10260   dynamic_linker='GNU/Linux ld.so'
10261   ;;
10262
10263 knetbsd*-gnu)
10264   version_type=linux
10265   need_lib_prefix=no
10266   need_version=no
10267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268   soname_spec='${libname}${release}${shared_ext}$major'
10269   shlibpath_var=LD_LIBRARY_PATH
10270   shlibpath_overrides_runpath=no
10271   hardcode_into_libs=yes
10272   dynamic_linker='GNU ld.so'
10273   ;;
10274
10275 netbsd*)
10276   version_type=sunos
10277   need_lib_prefix=no
10278   need_version=no
10279   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282     dynamic_linker='NetBSD (a.out) ld.so'
10283   else
10284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10285     soname_spec='${libname}${release}${shared_ext}$major'
10286     dynamic_linker='NetBSD ld.elf_so'
10287   fi
10288   shlibpath_var=LD_LIBRARY_PATH
10289   shlibpath_overrides_runpath=yes
10290   hardcode_into_libs=yes
10291   ;;
10292
10293 newsos6)
10294   version_type=linux
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296   shlibpath_var=LD_LIBRARY_PATH
10297   shlibpath_overrides_runpath=yes
10298   ;;
10299
10300 nto-qnx*)
10301   version_type=linux
10302   need_lib_prefix=no
10303   need_version=no
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   shlibpath_overrides_runpath=yes
10308   ;;
10309
10310 openbsd*)
10311   version_type=sunos
10312   need_lib_prefix=no
10313   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314   case $host_os in
10315     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316     *)                         need_version=no  ;;
10317   esac
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322     case $host_os in
10323       openbsd2.[89] | openbsd2.[89].*)
10324         shlibpath_overrides_runpath=no
10325         ;;
10326       *)
10327         shlibpath_overrides_runpath=yes
10328         ;;
10329       esac
10330   else
10331     shlibpath_overrides_runpath=yes
10332   fi
10333   ;;
10334
10335 os2*)
10336   libname_spec='$name'
10337   shrext_cmds=".dll"
10338   need_lib_prefix=no
10339   library_names_spec='$libname${shared_ext} $libname.a'
10340   dynamic_linker='OS/2 ld.exe'
10341   shlibpath_var=LIBPATH
10342   ;;
10343
10344 osf3* | osf4* | osf5*)
10345   version_type=osf
10346   need_lib_prefix=no
10347   need_version=no
10348   soname_spec='${libname}${release}${shared_ext}$major'
10349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353   ;;
10354
10355 sco3.2v5*)
10356   version_type=osf
10357   soname_spec='${libname}${release}${shared_ext}$major'
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359   shlibpath_var=LD_LIBRARY_PATH
10360   ;;
10361
10362 solaris*)
10363   version_type=linux
10364   need_lib_prefix=no
10365   need_version=no
10366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367   soname_spec='${libname}${release}${shared_ext}$major'
10368   shlibpath_var=LD_LIBRARY_PATH
10369   shlibpath_overrides_runpath=yes
10370   hardcode_into_libs=yes
10371   # ldd complains unless libraries are executable
10372   postinstall_cmds='chmod +x $lib'
10373   ;;
10374
10375 sunos4*)
10376   version_type=sunos
10377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10378   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10379   shlibpath_var=LD_LIBRARY_PATH
10380   shlibpath_overrides_runpath=yes
10381   if test "$with_gnu_ld" = yes; then
10382     need_lib_prefix=no
10383   fi
10384   need_version=yes
10385   ;;
10386
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10388   version_type=linux
10389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390   soname_spec='${libname}${release}${shared_ext}$major'
10391   shlibpath_var=LD_LIBRARY_PATH
10392   case $host_vendor in
10393     sni)
10394       shlibpath_overrides_runpath=no
10395       need_lib_prefix=no
10396       export_dynamic_flag_spec='${wl}-Blargedynsym'
10397       runpath_var=LD_RUN_PATH
10398       ;;
10399     siemens)
10400       need_lib_prefix=no
10401       ;;
10402     motorola)
10403       need_lib_prefix=no
10404       need_version=no
10405       shlibpath_overrides_runpath=no
10406       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10407       ;;
10408   esac
10409   ;;
10410
10411 sysv4*MP*)
10412   if test -d /usr/nec ;then
10413     version_type=linux
10414     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415     soname_spec='$libname${shared_ext}.$major'
10416     shlibpath_var=LD_LIBRARY_PATH
10417   fi
10418   ;;
10419
10420 uts4*)
10421   version_type=linux
10422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423   soname_spec='${libname}${release}${shared_ext}$major'
10424   shlibpath_var=LD_LIBRARY_PATH
10425   ;;
10426
10427 *)
10428   dynamic_linker=no
10429   ;;
10430 esac
10431 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10432 echo "${ECHO_T}$dynamic_linker" >&6; }
10433 test "$dynamic_linker" = no && can_build_shared=no
10434
10435 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10436 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10437 hardcode_action=
10438 if test -n "$hardcode_libdir_flag_spec" || \
10439    test -n "$runpath_var" || \
10440    test "X$hardcode_automatic" = "Xyes" ; then
10441
10442   # We can hardcode non-existant directories.
10443   if test "$hardcode_direct" != no &&
10444      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10445      # have to relink, otherwise we might link with an installed library
10446      # when we should be linking with a yet-to-be-installed one
10447      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10448      test "$hardcode_minus_L" != no; then
10449     # Linking always hardcodes the temporary library directory.
10450     hardcode_action=relink
10451   else
10452     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10453     hardcode_action=immediate
10454   fi
10455 else
10456   # We cannot hardcode anything, or else we can only hardcode existing
10457   # directories.
10458   hardcode_action=unsupported
10459 fi
10460 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10461 echo "${ECHO_T}$hardcode_action" >&6; }
10462
10463 if test "$hardcode_action" = relink; then
10464   # Fast installation is not supported
10465   enable_fast_install=no
10466 elif test "$shlibpath_overrides_runpath" = yes ||
10467      test "$enable_shared" = no; then
10468   # Fast installation is not necessary
10469   enable_fast_install=needless
10470 fi
10471
10472 striplib=
10473 old_striplib=
10474 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10475 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10476 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10477   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10478   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10479   { echo "$as_me:$LINENO: result: yes" >&5
10480 echo "${ECHO_T}yes" >&6; }
10481 else
10482 # FIXME - insert some real tests, host_os isn't really good enough
10483   case $host_os in
10484    darwin*)
10485        if test -n "$STRIP" ; then
10486          striplib="$STRIP -x"
10487          { echo "$as_me:$LINENO: result: yes" >&5
10488 echo "${ECHO_T}yes" >&6; }
10489        else
10490   { echo "$as_me:$LINENO: result: no" >&5
10491 echo "${ECHO_T}no" >&6; }
10492 fi
10493        ;;
10494    *)
10495   { echo "$as_me:$LINENO: result: no" >&5
10496 echo "${ECHO_T}no" >&6; }
10497     ;;
10498   esac
10499 fi
10500
10501 if test "x$enable_dlopen" != xyes; then
10502   enable_dlopen=unknown
10503   enable_dlopen_self=unknown
10504   enable_dlopen_self_static=unknown
10505 else
10506   lt_cv_dlopen=no
10507   lt_cv_dlopen_libs=
10508
10509   case $host_os in
10510   beos*)
10511     lt_cv_dlopen="load_add_on"
10512     lt_cv_dlopen_libs=
10513     lt_cv_dlopen_self=yes
10514     ;;
10515
10516   mingw* | pw32*)
10517     lt_cv_dlopen="LoadLibrary"
10518     lt_cv_dlopen_libs=
10519    ;;
10520
10521   cygwin*)
10522     lt_cv_dlopen="dlopen"
10523     lt_cv_dlopen_libs=
10524    ;;
10525
10526   darwin*)
10527   # if libdl is installed we need to link against it
10528     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-ldl  $LIBS"
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541
10542 /* Override any GCC internal prototype to avoid an error.
10543    Use char because int might match the return type of a GCC
10544    builtin and then its argument prototype would still apply.  */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char dlopen ();
10549 int
10550 main ()
10551 {
10552 return dlopen ();
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561   *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564   (eval "$ac_link") 2>conftest.er1
10565   ac_status=$?
10566   grep -v '^ *+' conftest.er1 >conftest.err
10567   rm -f conftest.er1
10568   cat conftest.err >&5
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } && {
10571          test -z "$ac_c_werror_flag" ||
10572          test ! -s conftest.err
10573        } && test -s conftest$ac_exeext &&
10574        $as_test_x conftest$ac_exeext; then
10575   ac_cv_lib_dl_dlopen=yes
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580         ac_cv_lib_dl_dlopen=no
10581 fi
10582
10583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584       conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10586 fi
10587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10589 if test $ac_cv_lib_dl_dlopen = yes; then
10590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10591 else
10592
10593     lt_cv_dlopen="dyld"
10594     lt_cv_dlopen_libs=
10595     lt_cv_dlopen_self=yes
10596
10597 fi
10598
10599    ;;
10600
10601   *)
10602     { echo "$as_me:$LINENO: checking for shl_load" >&5
10603 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10604 if test "${ac_cv_func_shl_load+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10615 #define shl_load innocuous_shl_load
10616
10617 /* System header to define __stub macros and hopefully few prototypes,
10618     which can conflict with char shl_load (); below.
10619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10620     <limits.h> exists even on freestanding compilers.  */
10621
10622 #ifdef __STDC__
10623 # include <limits.h>
10624 #else
10625 # include <assert.h>
10626 #endif
10627
10628 #undef shl_load
10629
10630 /* Override any GCC internal prototype to avoid an error.
10631    Use char because int might match the return type of a GCC
10632    builtin and then its argument prototype would still apply.  */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char shl_load ();
10637 /* The GNU C library defines this for functions which it implements
10638     to always fail with ENOSYS.  Some functions are actually named
10639     something starting with __ and the normal name is an alias.  */
10640 #if defined __stub_shl_load || defined __stub___shl_load
10641 choke me
10642 #endif
10643
10644 int
10645 main ()
10646 {
10647 return shl_load ();
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (ac_try="$ac_link"
10654 case "(($ac_try" in
10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656   *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659   (eval "$ac_link") 2>conftest.er1
10660   ac_status=$?
10661   grep -v '^ *+' conftest.er1 >conftest.err
10662   rm -f conftest.er1
10663   cat conftest.err >&5
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } && {
10666          test -z "$ac_c_werror_flag" ||
10667          test ! -s conftest.err
10668        } && test -s conftest$ac_exeext &&
10669        $as_test_x conftest$ac_exeext; then
10670   ac_cv_func_shl_load=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675         ac_cv_func_shl_load=no
10676 fi
10677
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679       conftest$ac_exeext conftest.$ac_ext
10680 fi
10681 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10682 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10683 if test $ac_cv_func_shl_load = yes; then
10684   lt_cv_dlopen="shl_load"
10685 else
10686   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10687 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10688 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldld  $LIBS"
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699
10700 /* Override any GCC internal prototype to avoid an error.
10701    Use char because int might match the return type of a GCC
10702    builtin and then its argument prototype would still apply.  */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char shl_load ();
10707 int
10708 main ()
10709 {
10710 return shl_load ();
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722   (eval "$ac_link") 2>conftest.er1
10723   ac_status=$?
10724   grep -v '^ *+' conftest.er1 >conftest.err
10725   rm -f conftest.er1
10726   cat conftest.err >&5
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); } && {
10729          test -z "$ac_c_werror_flag" ||
10730          test ! -s conftest.err
10731        } && test -s conftest$ac_exeext &&
10732        $as_test_x conftest$ac_exeext; then
10733   ac_cv_lib_dld_shl_load=yes
10734 else
10735   echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738         ac_cv_lib_dld_shl_load=no
10739 fi
10740
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742       conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10747 if test $ac_cv_lib_dld_shl_load = yes; then
10748   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10749 else
10750   { echo "$as_me:$LINENO: checking for dlopen" >&5
10751 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10752 if test "${ac_cv_func_dlopen+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h.  */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h.  */
10761 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10763 #define dlopen innocuous_dlopen
10764
10765 /* System header to define __stub macros and hopefully few prototypes,
10766     which can conflict with char dlopen (); below.
10767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768     <limits.h> exists even on freestanding compilers.  */
10769
10770 #ifdef __STDC__
10771 # include <limits.h>
10772 #else
10773 # include <assert.h>
10774 #endif
10775
10776 #undef dlopen
10777
10778 /* Override any GCC internal prototype to avoid an error.
10779    Use char because int might match the return type of a GCC
10780    builtin and then its argument prototype would still apply.  */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char dlopen ();
10785 /* The GNU C library defines this for functions which it implements
10786     to always fail with ENOSYS.  Some functions are actually named
10787     something starting with __ and the normal name is an alias.  */
10788 #if defined __stub_dlopen || defined __stub___dlopen
10789 choke me
10790 #endif
10791
10792 int
10793 main ()
10794 {
10795 return dlopen ();
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_link") 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } && {
10814          test -z "$ac_c_werror_flag" ||
10815          test ! -s conftest.err
10816        } && test -s conftest$ac_exeext &&
10817        $as_test_x conftest$ac_exeext; then
10818   ac_cv_func_dlopen=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823         ac_cv_func_dlopen=no
10824 fi
10825
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827       conftest$ac_exeext conftest.$ac_ext
10828 fi
10829 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10830 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10831 if test $ac_cv_func_dlopen = yes; then
10832   lt_cv_dlopen="dlopen"
10833 else
10834   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   ac_check_lib_save_LIBS=$LIBS
10840 LIBS="-ldl  $LIBS"
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847
10848 /* Override any GCC internal prototype to avoid an error.
10849    Use char because int might match the return type of a GCC
10850    builtin and then its argument prototype would still apply.  */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char dlopen ();
10855 int
10856 main ()
10857 {
10858 return dlopen ();
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_link") 2>conftest.er1
10871   ac_status=$?
10872   grep -v '^ *+' conftest.er1 >conftest.err
10873   rm -f conftest.er1
10874   cat conftest.err >&5
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); } && {
10877          test -z "$ac_c_werror_flag" ||
10878          test ! -s conftest.err
10879        } && test -s conftest$ac_exeext &&
10880        $as_test_x conftest$ac_exeext; then
10881   ac_cv_lib_dl_dlopen=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886         ac_cv_lib_dl_dlopen=no
10887 fi
10888
10889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10890       conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10892 fi
10893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10895 if test $ac_cv_lib_dl_dlopen = yes; then
10896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10897 else
10898   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld  $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913    Use char because int might match the return type of a GCC
10914    builtin and then its argument prototype would still apply.  */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char dlopen ();
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_link") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } && {
10941          test -z "$ac_c_werror_flag" ||
10942          test ! -s conftest.err
10943        } && test -s conftest$ac_exeext &&
10944        $as_test_x conftest$ac_exeext; then
10945   ac_cv_lib_svld_dlopen=yes
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950         ac_cv_lib_svld_dlopen=no
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954       conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10956 fi
10957 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10959 if test $ac_cv_lib_svld_dlopen = yes; then
10960   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10961 else
10962   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-ldld  $LIBS"
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975
10976 /* Override any GCC internal prototype to avoid an error.
10977    Use char because int might match the return type of a GCC
10978    builtin and then its argument prototype would still apply.  */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 char dld_link ();
10983 int
10984 main ()
10985 {
10986 return dld_link ();
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_link") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest$ac_exeext &&
11008        $as_test_x conftest$ac_exeext; then
11009   ac_cv_lib_dld_dld_link=yes
11010 else
11011   echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014         ac_cv_lib_dld_dld_link=no
11015 fi
11016
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018       conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11022 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11023 if test $ac_cv_lib_dld_dld_link = yes; then
11024   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11025 fi
11026
11027
11028 fi
11029
11030
11031 fi
11032
11033
11034 fi
11035
11036
11037 fi
11038
11039
11040 fi
11041
11042     ;;
11043   esac
11044
11045   if test "x$lt_cv_dlopen" != xno; then
11046     enable_dlopen=yes
11047   else
11048     enable_dlopen=no
11049   fi
11050
11051   case $lt_cv_dlopen in
11052   dlopen)
11053     save_CPPFLAGS="$CPPFLAGS"
11054     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11055
11056     save_LDFLAGS="$LDFLAGS"
11057     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11058
11059     save_LIBS="$LIBS"
11060     LIBS="$lt_cv_dlopen_libs $LIBS"
11061
11062     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11063 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11064 if test "${lt_cv_dlopen_self+set}" = set; then
11065   echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067           if test "$cross_compiling" = yes; then :
11068   lt_cv_dlopen_self=cross
11069 else
11070   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11071   lt_status=$lt_dlunknown
11072   cat > conftest.$ac_ext <<EOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11075
11076 #if HAVE_DLFCN_H
11077 #include <dlfcn.h>
11078 #endif
11079
11080 #include <stdio.h>
11081
11082 #ifdef RTLD_GLOBAL
11083 #  define LT_DLGLOBAL           RTLD_GLOBAL
11084 #else
11085 #  ifdef DL_GLOBAL
11086 #    define LT_DLGLOBAL         DL_GLOBAL
11087 #  else
11088 #    define LT_DLGLOBAL         0
11089 #  endif
11090 #endif
11091
11092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11093    find out it does not work in some platform. */
11094 #ifndef LT_DLLAZY_OR_NOW
11095 #  ifdef RTLD_LAZY
11096 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11097 #  else
11098 #    ifdef DL_LAZY
11099 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11100 #    else
11101 #      ifdef RTLD_NOW
11102 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11103 #      else
11104 #        ifdef DL_NOW
11105 #          define LT_DLLAZY_OR_NOW      DL_NOW
11106 #        else
11107 #          define LT_DLLAZY_OR_NOW      0
11108 #        endif
11109 #      endif
11110 #    endif
11111 #  endif
11112 #endif
11113
11114 #ifdef __cplusplus
11115 extern "C" void exit (int);
11116 #endif
11117
11118 void fnord() { int i=42;}
11119 int main ()
11120 {
11121   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11122   int status = $lt_dlunknown;
11123
11124   if (self)
11125     {
11126       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11127       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11128       /* dlclose (self); */
11129     }
11130
11131     exit (status);
11132 }
11133 EOF
11134   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135   (eval $ac_link) 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11139     (./conftest; exit; ) >&5 2>/dev/null
11140     lt_status=$?
11141     case x$lt_status in
11142       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11145     esac
11146   else :
11147     # compilation failed
11148     lt_cv_dlopen_self=no
11149   fi
11150 fi
11151 rm -fr conftest*
11152
11153
11154 fi
11155 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11156 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11157
11158     if test "x$lt_cv_dlopen_self" = xyes; then
11159       LDFLAGS="$LDFLAGS $link_static_flag"
11160       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11161 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11162 if test "${lt_cv_dlopen_self_static+set}" = set; then
11163   echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165           if test "$cross_compiling" = yes; then :
11166   lt_cv_dlopen_self_static=cross
11167 else
11168   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169   lt_status=$lt_dlunknown
11170   cat > conftest.$ac_ext <<EOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11173
11174 #if HAVE_DLFCN_H
11175 #include <dlfcn.h>
11176 #endif
11177
11178 #include <stdio.h>
11179
11180 #ifdef RTLD_GLOBAL
11181 #  define LT_DLGLOBAL           RTLD_GLOBAL
11182 #else
11183 #  ifdef DL_GLOBAL
11184 #    define LT_DLGLOBAL         DL_GLOBAL
11185 #  else
11186 #    define LT_DLGLOBAL         0
11187 #  endif
11188 #endif
11189
11190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191    find out it does not work in some platform. */
11192 #ifndef LT_DLLAZY_OR_NOW
11193 #  ifdef RTLD_LAZY
11194 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11195 #  else
11196 #    ifdef DL_LAZY
11197 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11198 #    else
11199 #      ifdef RTLD_NOW
11200 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11201 #      else
11202 #        ifdef DL_NOW
11203 #          define LT_DLLAZY_OR_NOW      DL_NOW
11204 #        else
11205 #          define LT_DLLAZY_OR_NOW      0
11206 #        endif
11207 #      endif
11208 #    endif
11209 #  endif
11210 #endif
11211
11212 #ifdef __cplusplus
11213 extern "C" void exit (int);
11214 #endif
11215
11216 void fnord() { int i=42;}
11217 int main ()
11218 {
11219   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11220   int status = $lt_dlunknown;
11221
11222   if (self)
11223     {
11224       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11225       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11226       /* dlclose (self); */
11227     }
11228
11229     exit (status);
11230 }
11231 EOF
11232   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233   (eval $ac_link) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11237     (./conftest; exit; ) >&5 2>/dev/null
11238     lt_status=$?
11239     case x$lt_status in
11240       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11241       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11242       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11243     esac
11244   else :
11245     # compilation failed
11246     lt_cv_dlopen_self_static=no
11247   fi
11248 fi
11249 rm -fr conftest*
11250
11251
11252 fi
11253 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11254 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11255     fi
11256
11257     CPPFLAGS="$save_CPPFLAGS"
11258     LDFLAGS="$save_LDFLAGS"
11259     LIBS="$save_LIBS"
11260     ;;
11261   esac
11262
11263   case $lt_cv_dlopen_self in
11264   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11265   *) enable_dlopen_self=unknown ;;
11266   esac
11267
11268   case $lt_cv_dlopen_self_static in
11269   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11270   *) enable_dlopen_self_static=unknown ;;
11271   esac
11272 fi
11273
11274
11275 # Report which librarie types wil actually be built
11276 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11277 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11278 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11279 echo "${ECHO_T}$can_build_shared" >&6; }
11280
11281 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11282 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11283 test "$can_build_shared" = "no" && enable_shared=no
11284
11285 # On AIX, shared libraries and static libraries use the same namespace, and
11286 # are all built from PIC.
11287 case $host_os in
11288 aix3*)
11289   test "$enable_shared" = yes && enable_static=no
11290   if test -n "$RANLIB"; then
11291     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11292     postinstall_cmds='$RANLIB $lib'
11293   fi
11294   ;;
11295
11296 aix4* | aix5*)
11297   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11298     test "$enable_shared" = yes && enable_static=no
11299   fi
11300     ;;
11301 esac
11302 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11303 echo "${ECHO_T}$enable_shared" >&6; }
11304
11305 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11306 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11307 # Make sure either enable_shared or enable_static is yes.
11308 test "$enable_shared" = yes || enable_static=yes
11309 { echo "$as_me:$LINENO: result: $enable_static" >&5
11310 echo "${ECHO_T}$enable_static" >&6; }
11311
11312 # The else clause should only fire when bootstrapping the
11313 # libtool distribution, otherwise you forgot to ship ltmain.sh
11314 # with your package, and you will get complaints that there are
11315 # no rules to generate ltmain.sh.
11316 if test -f "$ltmain"; then
11317   # See if we are running on zsh, and set the options which allow our commands through
11318   # without removal of \ escapes.
11319   if test -n "${ZSH_VERSION+set}" ; then
11320     setopt NO_GLOB_SUBST
11321   fi
11322   # Now quote all the things that may contain metacharacters while being
11323   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11324   # variables and quote the copies for generation of the libtool script.
11325   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11326     SED SHELL STRIP \
11327     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11328     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11329     deplibs_check_method reload_flag reload_cmds need_locks \
11330     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11331     lt_cv_sys_global_symbol_to_c_name_address \
11332     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11333     old_postinstall_cmds old_postuninstall_cmds \
11334     compiler \
11335     CC \
11336     LD \
11337     lt_prog_compiler_wl \
11338     lt_prog_compiler_pic \
11339     lt_prog_compiler_static \
11340     lt_prog_compiler_no_builtin_flag \
11341     export_dynamic_flag_spec \
11342     thread_safe_flag_spec \
11343     whole_archive_flag_spec \
11344     enable_shared_with_static_runtimes \
11345     old_archive_cmds \
11346     old_archive_from_new_cmds \
11347     predep_objects \
11348     postdep_objects \
11349     predeps \
11350     postdeps \
11351     compiler_lib_search_path \
11352     archive_cmds \
11353     archive_expsym_cmds \
11354     postinstall_cmds \
11355     postuninstall_cmds \
11356     old_archive_from_expsyms_cmds \
11357     allow_undefined_flag \
11358     no_undefined_flag \
11359     export_symbols_cmds \
11360     hardcode_libdir_flag_spec \
11361     hardcode_libdir_flag_spec_ld \
11362     hardcode_libdir_separator \
11363     hardcode_automatic \
11364     module_cmds \
11365     module_expsym_cmds \
11366     lt_cv_prog_compiler_c_o \
11367     exclude_expsyms \
11368     include_expsyms; do
11369
11370     case $var in
11371     old_archive_cmds | \
11372     old_archive_from_new_cmds | \
11373     archive_cmds | \
11374     archive_expsym_cmds | \
11375     module_cmds | \
11376     module_expsym_cmds | \
11377     old_archive_from_expsyms_cmds | \
11378     export_symbols_cmds | \
11379     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11380     postinstall_cmds | postuninstall_cmds | \
11381     old_postinstall_cmds | old_postuninstall_cmds | \
11382     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11383       # Double-quote double-evaled strings.
11384       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11385       ;;
11386     *)
11387       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11388       ;;
11389     esac
11390   done
11391
11392   case $lt_echo in
11393   *'\$0 --fallback-echo"')
11394     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11395     ;;
11396   esac
11397
11398 cfgfile="${ofile}T"
11399   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11400   $rm -f "$cfgfile"
11401   { echo "$as_me:$LINENO: creating $ofile" >&5
11402 echo "$as_me: creating $ofile" >&6;}
11403
11404   cat <<__EOF__ >> "$cfgfile"
11405 #! $SHELL
11406
11407 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11408 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11410 #
11411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11412 # Free Software Foundation, Inc.
11413 #
11414 # This file is part of GNU Libtool:
11415 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11416 #
11417 # This program is free software; you can redistribute it and/or modify
11418 # it under the terms of the GNU General Public License as published by
11419 # the Free Software Foundation; either version 2 of the License, or
11420 # (at your option) any later version.
11421 #
11422 # This program is distributed in the hope that it will be useful, but
11423 # WITHOUT ANY WARRANTY; without even the implied warranty of
11424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11425 # General Public License for more details.
11426 #
11427 # You should have received a copy of the GNU General Public License
11428 # along with this program; if not, write to the Free Software
11429 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11430 #
11431 # As a special exception to the GNU General Public License, if you
11432 # distribute this file as part of a program that contains a
11433 # configuration script generated by Autoconf, you may include it under
11434 # the same distribution terms that you use for the rest of that program.
11435
11436 # A sed program that does not truncate output.
11437 SED=$lt_SED
11438
11439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11440 Xsed="$SED -e 1s/^X//"
11441
11442 # The HP-UX ksh and POSIX shell print the target directory to stdout
11443 # if CDPATH is set.
11444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11445
11446 # The names of the tagged configurations supported by this script.
11447 available_tags=
11448
11449 # ### BEGIN LIBTOOL CONFIG
11450
11451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11452
11453 # Shell to use when invoking shell scripts.
11454 SHELL=$lt_SHELL
11455
11456 # Whether or not to build shared libraries.
11457 build_libtool_libs=$enable_shared
11458
11459 # Whether or not to build static libraries.
11460 build_old_libs=$enable_static
11461
11462 # Whether or not to add -lc for building shared libraries.
11463 build_libtool_need_lc=$archive_cmds_need_lc
11464
11465 # Whether or not to disallow shared libs when runtime libs are static
11466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11467
11468 # Whether or not to optimize for fast installation.
11469 fast_install=$enable_fast_install
11470
11471 # The host system.
11472 host_alias=$host_alias
11473 host=$host
11474 host_os=$host_os
11475
11476 # The build system.
11477 build_alias=$build_alias
11478 build=$build
11479 build_os=$build_os
11480
11481 # An echo program that does not interpret backslashes.
11482 echo=$lt_echo
11483
11484 # The archiver.
11485 AR=$lt_AR
11486 AR_FLAGS=$lt_AR_FLAGS
11487
11488 # A C compiler.
11489 LTCC=$lt_LTCC
11490
11491 # A language-specific compiler.
11492 CC=$lt_compiler
11493
11494 # Is the compiler the GNU C compiler?
11495 with_gcc=$GCC
11496
11497 # An ERE matcher.
11498 EGREP=$lt_EGREP
11499
11500 # The linker used to build libraries.
11501 LD=$lt_LD
11502
11503 # Whether we need hard or soft links.
11504 LN_S=$lt_LN_S
11505
11506 # A BSD-compatible nm program.
11507 NM=$lt_NM
11508
11509 # A symbol stripping program
11510 STRIP=$lt_STRIP
11511
11512 # Used to examine libraries when file_magic_cmd begins "file"
11513 MAGIC_CMD=$MAGIC_CMD
11514
11515 # Used on cygwin: DLL creation program.
11516 DLLTOOL="$DLLTOOL"
11517
11518 # Used on cygwin: object dumper.
11519 OBJDUMP="$OBJDUMP"
11520
11521 # Used on cygwin: assembler.
11522 AS="$AS"
11523
11524 # The name of the directory that contains temporary libtool files.
11525 objdir=$objdir
11526
11527 # How to create reloadable object files.
11528 reload_flag=$lt_reload_flag
11529 reload_cmds=$lt_reload_cmds
11530
11531 # How to pass a linker flag through the compiler.
11532 wl=$lt_lt_prog_compiler_wl
11533
11534 # Object file suffix (normally "o").
11535 objext="$ac_objext"
11536
11537 # Old archive suffix (normally "a").
11538 libext="$libext"
11539
11540 # Shared library suffix (normally ".so").
11541 shrext_cmds='$shrext_cmds'
11542
11543 # Executable file suffix (normally "").
11544 exeext="$exeext"
11545
11546 # Additional compiler flags for building library objects.
11547 pic_flag=$lt_lt_prog_compiler_pic
11548 pic_mode=$pic_mode
11549
11550 # What is the maximum length of a command?
11551 max_cmd_len=$lt_cv_sys_max_cmd_len
11552
11553 # Does compiler simultaneously support -c and -o options?
11554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11555
11556 # Must we lock files when doing compilation?
11557 need_locks=$lt_need_locks
11558
11559 # Do we need the lib prefix for modules?
11560 need_lib_prefix=$need_lib_prefix
11561
11562 # Do we need a version for libraries?
11563 need_version=$need_version
11564
11565 # Whether dlopen is supported.
11566 dlopen_support=$enable_dlopen
11567
11568 # Whether dlopen of programs is supported.
11569 dlopen_self=$enable_dlopen_self
11570
11571 # Whether dlopen of statically linked programs is supported.
11572 dlopen_self_static=$enable_dlopen_self_static
11573
11574 # Compiler flag to prevent dynamic linking.
11575 link_static_flag=$lt_lt_prog_compiler_static
11576
11577 # Compiler flag to turn off builtin functions.
11578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11579
11580 # Compiler flag to allow reflexive dlopens.
11581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11582
11583 # Compiler flag to generate shared objects directly from archives.
11584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11585
11586 # Compiler flag to generate thread-safe objects.
11587 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11588
11589 # Library versioning type.
11590 version_type=$version_type
11591
11592 # Format of library name prefix.
11593 libname_spec=$lt_libname_spec
11594
11595 # List of archive names.  First name is the real one, the rest are links.
11596 # The last name is the one that the linker finds with -lNAME.
11597 library_names_spec=$lt_library_names_spec
11598
11599 # The coded name of the library, if different from the real name.
11600 soname_spec=$lt_soname_spec
11601
11602 # Commands used to build and install an old-style archive.
11603 RANLIB=$lt_RANLIB
11604 old_archive_cmds=$lt_old_archive_cmds
11605 old_postinstall_cmds=$lt_old_postinstall_cmds
11606 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11607
11608 # Create an old-style archive from a shared archive.
11609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11610
11611 # Create a temporary old-style archive to link instead of a shared archive.
11612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11613
11614 # Commands used to build and install a shared archive.
11615 archive_cmds=$lt_archive_cmds
11616 archive_expsym_cmds=$lt_archive_expsym_cmds
11617 postinstall_cmds=$lt_postinstall_cmds
11618 postuninstall_cmds=$lt_postuninstall_cmds
11619
11620 # Commands used to build a loadable module (assumed same as above if empty)
11621 module_cmds=$lt_module_cmds
11622 module_expsym_cmds=$lt_module_expsym_cmds
11623
11624 # Commands to strip libraries.
11625 old_striplib=$lt_old_striplib
11626 striplib=$lt_striplib
11627
11628 # Dependencies to place before the objects being linked to create a
11629 # shared library.
11630 predep_objects=$lt_predep_objects
11631
11632 # Dependencies to place after the objects being linked to create a
11633 # shared library.
11634 postdep_objects=$lt_postdep_objects
11635
11636 # Dependencies to place before the objects being linked to create a
11637 # shared library.
11638 predeps=$lt_predeps
11639
11640 # Dependencies to place after the objects being linked to create a
11641 # shared library.
11642 postdeps=$lt_postdeps
11643
11644 # The library search path used internally by the compiler when linking
11645 # a shared library.
11646 compiler_lib_search_path=$lt_compiler_lib_search_path
11647
11648 # Method to check whether dependent libraries are shared objects.
11649 deplibs_check_method=$lt_deplibs_check_method
11650
11651 # Command to use when deplibs_check_method == file_magic.
11652 file_magic_cmd=$lt_file_magic_cmd
11653
11654 # Flag that allows shared libraries with undefined symbols to be built.
11655 allow_undefined_flag=$lt_allow_undefined_flag
11656
11657 # Flag that forces no undefined symbols.
11658 no_undefined_flag=$lt_no_undefined_flag
11659
11660 # Commands used to finish a libtool library installation in a directory.
11661 finish_cmds=$lt_finish_cmds
11662
11663 # Same as above, but a single script fragment to be evaled but not shown.
11664 finish_eval=$lt_finish_eval
11665
11666 # Take the output of nm and produce a listing of raw symbols and C names.
11667 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11668
11669 # Transform the output of nm in a proper C declaration
11670 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11671
11672 # Transform the output of nm in a C name address pair
11673 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11674
11675 # This is the shared library runtime path variable.
11676 runpath_var=$runpath_var
11677
11678 # This is the shared library path variable.
11679 shlibpath_var=$shlibpath_var
11680
11681 # Is shlibpath searched before the hard-coded library search path?
11682 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11683
11684 # How to hardcode a shared library path into an executable.
11685 hardcode_action=$hardcode_action
11686
11687 # Whether we should hardcode library paths into libraries.
11688 hardcode_into_libs=$hardcode_into_libs
11689
11690 # Flag to hardcode \$libdir into a binary during linking.
11691 # This must work even if \$libdir does not exist.
11692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11693
11694 # If ld is used when linking, flag to hardcode \$libdir into
11695 # a binary during linking. This must work even if \$libdir does
11696 # not exist.
11697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11698
11699 # Whether we need a single -rpath flag with a separated argument.
11700 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11701
11702 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_direct=$hardcode_direct
11705
11706 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11707 # resulting binary.
11708 hardcode_minus_L=$hardcode_minus_L
11709
11710 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11711 # the resulting binary.
11712 hardcode_shlibpath_var=$hardcode_shlibpath_var
11713
11714 # Set to yes if building a shared library automatically hardcodes DIR into the library
11715 # and all subsequent libraries and executables linked against it.
11716 hardcode_automatic=$hardcode_automatic
11717
11718 # Variables whose values should be saved in libtool wrapper scripts and
11719 # restored at relink time.
11720 variables_saved_for_relink="$variables_saved_for_relink"
11721
11722 # Whether libtool must link a program against all its dependency libraries.
11723 link_all_deplibs=$link_all_deplibs
11724
11725 # Compile-time system search path for libraries
11726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11727
11728 # Run-time system search path for libraries
11729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11730
11731 # Fix the shell variable \$srcfile for the compiler.
11732 fix_srcfile_path="$fix_srcfile_path"
11733
11734 # Set to yes if exported symbols are required.
11735 always_export_symbols=$always_export_symbols
11736
11737 # The commands to list exported symbols.
11738 export_symbols_cmds=$lt_export_symbols_cmds
11739
11740 # The commands to extract the exported symbol list from a shared archive.
11741 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11742
11743 # Symbols that should not be listed in the preloaded symbols.
11744 exclude_expsyms=$lt_exclude_expsyms
11745
11746 # Symbols that must always be exported.
11747 include_expsyms=$lt_include_expsyms
11748
11749 # ### END LIBTOOL CONFIG
11750
11751 __EOF__
11752
11753
11754   case $host_os in
11755   aix3*)
11756     cat <<\EOF >> "$cfgfile"
11757
11758 # AIX sometimes has problems with the GCC collect2 program.  For some
11759 # reason, if we set the COLLECT_NAMES environment variable, the problems
11760 # vanish in a puff of smoke.
11761 if test "X${COLLECT_NAMES+set}" != Xset; then
11762   COLLECT_NAMES=
11763   export COLLECT_NAMES
11764 fi
11765 EOF
11766     ;;
11767   esac
11768
11769   # We use sed instead of cat because bash on DJGPP gets confused if
11770   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11771   # text mode, it properly converts lines to CR/LF.  This bash problem
11772   # is reportedly fixed, but why not run on old versions too?
11773   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11774
11775   mv -f "$cfgfile" "$ofile" || \
11776     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11777   chmod +x "$ofile"
11778
11779 else
11780   # If there is no Makefile yet, we rely on a make rule to execute
11781   # `config.status --recheck' to rerun these tests and create the
11782   # libtool script then.
11783   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11784   if test -f "$ltmain_in"; then
11785     test -f Makefile && make "$ltmain"
11786   fi
11787 fi
11788
11789
11790 ac_ext=c
11791 ac_cpp='$CPP $CPPFLAGS'
11792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11795
11796 CC="$lt_save_CC"
11797
11798
11799 # Check whether --with-tags was given.
11800 if test "${with_tags+set}" = set; then
11801   withval=$with_tags; tagnames="$withval"
11802 fi
11803
11804
11805 if test -f "$ltmain" && test -n "$tagnames"; then
11806   if test ! -f "${ofile}"; then
11807     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11808 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11809   fi
11810
11811   if test -z "$LTCC"; then
11812     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11813     if test -z "$LTCC"; then
11814       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11815 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11816     else
11817       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11818 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11819     fi
11820   fi
11821
11822   # Extract list of available tagged configurations in $ofile.
11823   # Note that this assumes the entire list is on one line.
11824   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11825
11826   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11827   for tagname in $tagnames; do
11828     IFS="$lt_save_ifs"
11829     # Check whether tagname contains only valid characters
11830     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11831     "") ;;
11832     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11833 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11834    { (exit 1); exit 1; }; }
11835         ;;
11836     esac
11837
11838     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11839     then
11840       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11841 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11842    { (exit 1); exit 1; }; }
11843     fi
11844
11845     # Update the list of available tags.
11846     if test -n "$tagname"; then
11847       echo appending configuration tag \"$tagname\" to $ofile
11848
11849       case $tagname in
11850       CXX)
11851         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11852             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11853             (test "X$CXX" != "Xg++"))) ; then
11854           :
11855         else
11856           tagname=""
11857         fi
11858         ;;
11859
11860       F77)
11861         if test -n "$F77" && test "X$F77" != "Xno"; then
11862           :
11863         else
11864           tagname=""
11865         fi
11866         ;;
11867
11868       GCJ)
11869         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11870           :
11871         else
11872           tagname=""
11873         fi
11874         ;;
11875
11876       RC)
11877
11878
11879 # Source file extension for RC test sources.
11880 ac_ext=rc
11881
11882 # Object file extension for compiled RC test sources.
11883 objext=o
11884 objext_RC=$objext
11885
11886 # Code to be used in simple compile tests
11887 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11888
11889 # Code to be used in simple link tests
11890 lt_simple_link_test_code="$lt_simple_compile_test_code"
11891
11892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11893
11894 # If no C compiler was specified, use CC.
11895 LTCC=${LTCC-"$CC"}
11896
11897 # Allow CC to be a program name with arguments.
11898 compiler=$CC
11899
11900
11901 # save warnings/boilerplate of simple test code
11902 ac_outfile=conftest.$ac_objext
11903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11905 _lt_compiler_boilerplate=`cat conftest.err`
11906 $rm conftest*
11907
11908 ac_outfile=conftest.$ac_objext
11909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11911 _lt_linker_boilerplate=`cat conftest.err`
11912 $rm conftest*
11913
11914
11915 # Allow CC to be a program name with arguments.
11916 lt_save_CC="$CC"
11917 CC=${RC-"windres"}
11918 compiler=$CC
11919 compiler_RC=$CC
11920 for cc_temp in $compiler""; do
11921   case $cc_temp in
11922     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11923     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11924     \-*) ;;
11925     *) break;;
11926   esac
11927 done
11928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11929
11930 lt_cv_prog_compiler_c_o_RC=yes
11931
11932 # The else clause should only fire when bootstrapping the
11933 # libtool distribution, otherwise you forgot to ship ltmain.sh
11934 # with your package, and you will get complaints that there are
11935 # no rules to generate ltmain.sh.
11936 if test -f "$ltmain"; then
11937   # See if we are running on zsh, and set the options which allow our commands through
11938   # without removal of \ escapes.
11939   if test -n "${ZSH_VERSION+set}" ; then
11940     setopt NO_GLOB_SUBST
11941   fi
11942   # Now quote all the things that may contain metacharacters while being
11943   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11944   # variables and quote the copies for generation of the libtool script.
11945   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11946     SED SHELL STRIP \
11947     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11948     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11949     deplibs_check_method reload_flag reload_cmds need_locks \
11950     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11951     lt_cv_sys_global_symbol_to_c_name_address \
11952     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11953     old_postinstall_cmds old_postuninstall_cmds \
11954     compiler_RC \
11955     CC_RC \
11956     LD_RC \
11957     lt_prog_compiler_wl_RC \
11958     lt_prog_compiler_pic_RC \
11959     lt_prog_compiler_static_RC \
11960     lt_prog_compiler_no_builtin_flag_RC \
11961     export_dynamic_flag_spec_RC \
11962     thread_safe_flag_spec_RC \
11963     whole_archive_flag_spec_RC \
11964     enable_shared_with_static_runtimes_RC \
11965     old_archive_cmds_RC \
11966     old_archive_from_new_cmds_RC \
11967     predep_objects_RC \
11968     postdep_objects_RC \
11969     predeps_RC \
11970     postdeps_RC \
11971     compiler_lib_search_path_RC \
11972     archive_cmds_RC \
11973     archive_expsym_cmds_RC \
11974     postinstall_cmds_RC \
11975     postuninstall_cmds_RC \
11976     old_archive_from_expsyms_cmds_RC \
11977     allow_undefined_flag_RC \
11978     no_undefined_flag_RC \
11979     export_symbols_cmds_RC \
11980     hardcode_libdir_flag_spec_RC \
11981     hardcode_libdir_flag_spec_ld_RC \
11982     hardcode_libdir_separator_RC \
11983     hardcode_automatic_RC \
11984     module_cmds_RC \
11985     module_expsym_cmds_RC \
11986     lt_cv_prog_compiler_c_o_RC \
11987     exclude_expsyms_RC \
11988     include_expsyms_RC; do
11989
11990     case $var in
11991     old_archive_cmds_RC | \
11992     old_archive_from_new_cmds_RC | \
11993     archive_cmds_RC | \
11994     archive_expsym_cmds_RC | \
11995     module_cmds_RC | \
11996     module_expsym_cmds_RC | \
11997     old_archive_from_expsyms_cmds_RC | \
11998     export_symbols_cmds_RC | \
11999     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12000     postinstall_cmds | postuninstall_cmds | \
12001     old_postinstall_cmds | old_postuninstall_cmds | \
12002     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12003       # Double-quote double-evaled strings.
12004       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12005       ;;
12006     *)
12007       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12008       ;;
12009     esac
12010   done
12011
12012   case $lt_echo in
12013   *'\$0 --fallback-echo"')
12014     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12015     ;;
12016   esac
12017
12018 cfgfile="$ofile"
12019
12020   cat <<__EOF__ >> "$cfgfile"
12021 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12022
12023 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12024
12025 # Shell to use when invoking shell scripts.
12026 SHELL=$lt_SHELL
12027
12028 # Whether or not to build shared libraries.
12029 build_libtool_libs=$enable_shared
12030
12031 # Whether or not to build static libraries.
12032 build_old_libs=$enable_static
12033
12034 # Whether or not to add -lc for building shared libraries.
12035 build_libtool_need_lc=$archive_cmds_need_lc_RC
12036
12037 # Whether or not to disallow shared libs when runtime libs are static
12038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12039
12040 # Whether or not to optimize for fast installation.
12041 fast_install=$enable_fast_install
12042
12043 # The host system.
12044 host_alias=$host_alias
12045 host=$host
12046 host_os=$host_os
12047
12048 # The build system.
12049 build_alias=$build_alias
12050 build=$build
12051 build_os=$build_os
12052
12053 # An echo program that does not interpret backslashes.
12054 echo=$lt_echo
12055
12056 # The archiver.
12057 AR=$lt_AR
12058 AR_FLAGS=$lt_AR_FLAGS
12059
12060 # A C compiler.
12061 LTCC=$lt_LTCC
12062
12063 # A language-specific compiler.
12064 CC=$lt_compiler_RC
12065
12066 # Is the compiler the GNU C compiler?
12067 with_gcc=$GCC_RC
12068
12069 # An ERE matcher.
12070 EGREP=$lt_EGREP
12071
12072 # The linker used to build libraries.
12073 LD=$lt_LD_RC
12074
12075 # Whether we need hard or soft links.
12076 LN_S=$lt_LN_S
12077
12078 # A BSD-compatible nm program.
12079 NM=$lt_NM
12080
12081 # A symbol stripping program
12082 STRIP=$lt_STRIP
12083
12084 # Used to examine libraries when file_magic_cmd begins "file"
12085 MAGIC_CMD=$MAGIC_CMD
12086
12087 # Used on cygwin: DLL creation program.
12088 DLLTOOL="$DLLTOOL"
12089
12090 # Used on cygwin: object dumper.
12091 OBJDUMP="$OBJDUMP"
12092
12093 # Used on cygwin: assembler.
12094 AS="$AS"
12095
12096 # The name of the directory that contains temporary libtool files.
12097 objdir=$objdir
12098
12099 # How to create reloadable object files.
12100 reload_flag=$lt_reload_flag
12101 reload_cmds=$lt_reload_cmds
12102
12103 # How to pass a linker flag through the compiler.
12104 wl=$lt_lt_prog_compiler_wl_RC
12105
12106 # Object file suffix (normally "o").
12107 objext="$ac_objext"
12108
12109 # Old archive suffix (normally "a").
12110 libext="$libext"
12111
12112 # Shared library suffix (normally ".so").
12113 shrext_cmds='$shrext_cmds'
12114
12115 # Executable file suffix (normally "").
12116 exeext="$exeext"
12117
12118 # Additional compiler flags for building library objects.
12119 pic_flag=$lt_lt_prog_compiler_pic_RC
12120 pic_mode=$pic_mode
12121
12122 # What is the maximum length of a command?
12123 max_cmd_len=$lt_cv_sys_max_cmd_len
12124
12125 # Does compiler simultaneously support -c and -o options?
12126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12127
12128 # Must we lock files when doing compilation?
12129 need_locks=$lt_need_locks
12130
12131 # Do we need the lib prefix for modules?
12132 need_lib_prefix=$need_lib_prefix
12133
12134 # Do we need a version for libraries?
12135 need_version=$need_version
12136
12137 # Whether dlopen is supported.
12138 dlopen_support=$enable_dlopen
12139
12140 # Whether dlopen of programs is supported.
12141 dlopen_self=$enable_dlopen_self
12142
12143 # Whether dlopen of statically linked programs is supported.
12144 dlopen_self_static=$enable_dlopen_self_static
12145
12146 # Compiler flag to prevent dynamic linking.
12147 link_static_flag=$lt_lt_prog_compiler_static_RC
12148
12149 # Compiler flag to turn off builtin functions.
12150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12151
12152 # Compiler flag to allow reflexive dlopens.
12153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12154
12155 # Compiler flag to generate shared objects directly from archives.
12156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12157
12158 # Compiler flag to generate thread-safe objects.
12159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12160
12161 # Library versioning type.
12162 version_type=$version_type
12163
12164 # Format of library name prefix.
12165 libname_spec=$lt_libname_spec
12166
12167 # List of archive names.  First name is the real one, the rest are links.
12168 # The last name is the one that the linker finds with -lNAME.
12169 library_names_spec=$lt_library_names_spec
12170
12171 # The coded name of the library, if different from the real name.
12172 soname_spec=$lt_soname_spec
12173
12174 # Commands used to build and install an old-style archive.
12175 RANLIB=$lt_RANLIB
12176 old_archive_cmds=$lt_old_archive_cmds_RC
12177 old_postinstall_cmds=$lt_old_postinstall_cmds
12178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12179
12180 # Create an old-style archive from a shared archive.
12181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12182
12183 # Create a temporary old-style archive to link instead of a shared archive.
12184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12185
12186 # Commands used to build and install a shared archive.
12187 archive_cmds=$lt_archive_cmds_RC
12188 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12189 postinstall_cmds=$lt_postinstall_cmds
12190 postuninstall_cmds=$lt_postuninstall_cmds
12191
12192 # Commands used to build a loadable module (assumed same as above if empty)
12193 module_cmds=$lt_module_cmds_RC
12194 module_expsym_cmds=$lt_module_expsym_cmds_RC
12195
12196 # Commands to strip libraries.
12197 old_striplib=$lt_old_striplib
12198 striplib=$lt_striplib
12199
12200 # Dependencies to place before the objects being linked to create a
12201 # shared library.
12202 predep_objects=$lt_predep_objects_RC
12203
12204 # Dependencies to place after the objects being linked to create a
12205 # shared library.
12206 postdep_objects=$lt_postdep_objects_RC
12207
12208 # Dependencies to place before the objects being linked to create a
12209 # shared library.
12210 predeps=$lt_predeps_RC
12211
12212 # Dependencies to place after the objects being linked to create a
12213 # shared library.
12214 postdeps=$lt_postdeps_RC
12215
12216 # The library search path used internally by the compiler when linking
12217 # a shared library.
12218 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12219
12220 # Method to check whether dependent libraries are shared objects.
12221 deplibs_check_method=$lt_deplibs_check_method
12222
12223 # Command to use when deplibs_check_method == file_magic.
12224 file_magic_cmd=$lt_file_magic_cmd
12225
12226 # Flag that allows shared libraries with undefined symbols to be built.
12227 allow_undefined_flag=$lt_allow_undefined_flag_RC
12228
12229 # Flag that forces no undefined symbols.
12230 no_undefined_flag=$lt_no_undefined_flag_RC
12231
12232 # Commands used to finish a libtool library installation in a directory.
12233 finish_cmds=$lt_finish_cmds
12234
12235 # Same as above, but a single script fragment to be evaled but not shown.
12236 finish_eval=$lt_finish_eval
12237
12238 # Take the output of nm and produce a listing of raw symbols and C names.
12239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12240
12241 # Transform the output of nm in a proper C declaration
12242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12243
12244 # Transform the output of nm in a C name address pair
12245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12246
12247 # This is the shared library runtime path variable.
12248 runpath_var=$runpath_var
12249
12250 # This is the shared library path variable.
12251 shlibpath_var=$shlibpath_var
12252
12253 # Is shlibpath searched before the hard-coded library search path?
12254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12255
12256 # How to hardcode a shared library path into an executable.
12257 hardcode_action=$hardcode_action_RC
12258
12259 # Whether we should hardcode library paths into libraries.
12260 hardcode_into_libs=$hardcode_into_libs
12261
12262 # Flag to hardcode \$libdir into a binary during linking.
12263 # This must work even if \$libdir does not exist.
12264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12265
12266 # If ld is used when linking, flag to hardcode \$libdir into
12267 # a binary during linking. This must work even if \$libdir does
12268 # not exist.
12269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12270
12271 # Whether we need a single -rpath flag with a separated argument.
12272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12273
12274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_direct=$hardcode_direct_RC
12277
12278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12279 # resulting binary.
12280 hardcode_minus_L=$hardcode_minus_L_RC
12281
12282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12283 # the resulting binary.
12284 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12285
12286 # Set to yes if building a shared library automatically hardcodes DIR into the library
12287 # and all subsequent libraries and executables linked against it.
12288 hardcode_automatic=$hardcode_automatic_RC
12289
12290 # Variables whose values should be saved in libtool wrapper scripts and
12291 # restored at relink time.
12292 variables_saved_for_relink="$variables_saved_for_relink"
12293
12294 # Whether libtool must link a program against all its dependency libraries.
12295 link_all_deplibs=$link_all_deplibs_RC
12296
12297 # Compile-time system search path for libraries
12298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12299
12300 # Run-time system search path for libraries
12301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12302
12303 # Fix the shell variable \$srcfile for the compiler.
12304 fix_srcfile_path="$fix_srcfile_path_RC"
12305
12306 # Set to yes if exported symbols are required.
12307 always_export_symbols=$always_export_symbols_RC
12308
12309 # The commands to list exported symbols.
12310 export_symbols_cmds=$lt_export_symbols_cmds_RC
12311
12312 # The commands to extract the exported symbol list from a shared archive.
12313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12314
12315 # Symbols that should not be listed in the preloaded symbols.
12316 exclude_expsyms=$lt_exclude_expsyms_RC
12317
12318 # Symbols that must always be exported.
12319 include_expsyms=$lt_include_expsyms_RC
12320
12321 # ### END LIBTOOL TAG CONFIG: $tagname
12322
12323 __EOF__
12324
12325
12326 else
12327   # If there is no Makefile yet, we rely on a make rule to execute
12328   # `config.status --recheck' to rerun these tests and create the
12329   # libtool script then.
12330   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12331   if test -f "$ltmain_in"; then
12332     test -f Makefile && make "$ltmain"
12333   fi
12334 fi
12335
12336
12337 ac_ext=c
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12342
12343 CC="$lt_save_CC"
12344
12345         ;;
12346
12347       *)
12348         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12349 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12350    { (exit 1); exit 1; }; }
12351         ;;
12352       esac
12353
12354       # Append the new tag name to the list of available tags.
12355       if test -n "$tagname" ; then
12356       available_tags="$available_tags $tagname"
12357     fi
12358     fi
12359   done
12360   IFS="$lt_save_ifs"
12361
12362   # Now substitute the updated list of available tags.
12363   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12364     mv "${ofile}T" "$ofile"
12365     chmod +x "$ofile"
12366   else
12367     rm -f "${ofile}T"
12368     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12369 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12370    { (exit 1); exit 1; }; }
12371   fi
12372 fi
12373
12374
12375
12376 # This can be used to rebuild libtool when needed
12377 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12378
12379 # Always use our own libtool.
12380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12381
12382 # Prevent multiple expansion
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393 ol_link_perl=no
12394 if test $ol_enable_perl != no ; then
12395         # Extract the first word of "perl", so it can be a program name with args.
12396 set dummy perl; ac_word=$2
12397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12399 if test "${ac_cv_path_PERLBIN+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   case $PERLBIN in
12403   [\\/]* | ?:[\\/]*)
12404   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12405   ;;
12406   *)
12407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12409 do
12410   IFS=$as_save_IFS
12411   test -z "$as_dir" && as_dir=.
12412   for ac_exec_ext in '' $ac_executable_extensions; do
12413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12414     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12416     break 2
12417   fi
12418 done
12419 done
12420 IFS=$as_save_IFS
12421
12422   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12423   ;;
12424 esac
12425 fi
12426 PERLBIN=$ac_cv_path_PERLBIN
12427 if test -n "$PERLBIN"; then
12428   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12429 echo "${ECHO_T}$PERLBIN" >&6; }
12430 else
12431   { echo "$as_me:$LINENO: result: no" >&5
12432 echo "${ECHO_T}no" >&6; }
12433 fi
12434
12435
12436
12437         if test "no$PERLBIN" = "no" ; then
12438                 if test $ol_enable_perl = yes ; then
12439                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12440 echo "$as_me: error: could not locate perl" >&2;}
12441    { (exit 1); exit 1; }; }
12442                 fi
12443
12444         else
12445                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12446                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12447
12448                 if test x"$ol_enable_perl" = "xyes" ; then
12449                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12450                 else
12451                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12452                 fi
12453                                 ol_link_perl=yes
12454         fi
12455 fi
12456
12457 ac_ext=c
12458 ac_cpp='$CPP $CPPFLAGS'
12459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12462 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12463 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12464 # On Suns, sometimes $CPP names a directory.
12465 if test -n "$CPP" && test -d "$CPP"; then
12466   CPP=
12467 fi
12468 if test -z "$CPP"; then
12469   if test "${ac_cv_prog_CPP+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472       # Double quotes because CPP needs to be expanded
12473     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12474     do
12475       ac_preproc_ok=false
12476 for ac_c_preproc_warn_flag in '' yes
12477 do
12478   # Use a header file that comes with gcc, so configuring glibc
12479   # with a fresh cross-compiler works.
12480   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481   # <limits.h> exists even on freestanding compilers.
12482   # On the NeXT, cc -E runs the code through the compiler's parser,
12483   # not just through cpp. "Syntax error" is here to catch this case.
12484   cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 #ifdef __STDC__
12491 # include <limits.h>
12492 #else
12493 # include <assert.h>
12494 #endif
12495                      Syntax error
12496 _ACEOF
12497 if { (ac_try="$ac_cpp conftest.$ac_ext"
12498 case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12504   ac_status=$?
12505   grep -v '^ *+' conftest.er1 >conftest.err
12506   rm -f conftest.er1
12507   cat conftest.err >&5
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); } >/dev/null && {
12510          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12511          test ! -s conftest.err
12512        }; then
12513   :
12514 else
12515   echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518   # Broken: fails on valid input.
12519 continue
12520 fi
12521
12522 rm -f conftest.err conftest.$ac_ext
12523
12524   # OK, works on sane cases.  Now check whether nonexistent headers
12525   # can be detected and how.
12526   cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 #include <ac_nonexistent.h>
12533 _ACEOF
12534 if { (ac_try="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537   *) ac_try_echo=$ac_try;;
12538 esac
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12541   ac_status=$?
12542   grep -v '^ *+' conftest.er1 >conftest.err
12543   rm -f conftest.er1
12544   cat conftest.err >&5
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); } >/dev/null && {
12547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12548          test ! -s conftest.err
12549        }; then
12550   # Broken: success on invalid input.
12551 continue
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556   # Passes both tests.
12557 ac_preproc_ok=:
12558 break
12559 fi
12560
12561 rm -f conftest.err conftest.$ac_ext
12562
12563 done
12564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12565 rm -f conftest.err conftest.$ac_ext
12566 if $ac_preproc_ok; then
12567   break
12568 fi
12569
12570     done
12571     ac_cv_prog_CPP=$CPP
12572
12573 fi
12574   CPP=$ac_cv_prog_CPP
12575 else
12576   ac_cv_prog_CPP=$CPP
12577 fi
12578 { echo "$as_me:$LINENO: result: $CPP" >&5
12579 echo "${ECHO_T}$CPP" >&6; }
12580 ac_preproc_ok=false
12581 for ac_c_preproc_warn_flag in '' yes
12582 do
12583   # Use a header file that comes with gcc, so configuring glibc
12584   # with a fresh cross-compiler works.
12585   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586   # <limits.h> exists even on freestanding compilers.
12587   # On the NeXT, cc -E runs the code through the compiler's parser,
12588   # not just through cpp. "Syntax error" is here to catch this case.
12589   cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 #ifdef __STDC__
12596 # include <limits.h>
12597 #else
12598 # include <assert.h>
12599 #endif
12600                      Syntax error
12601 _ACEOF
12602 if { (ac_try="$ac_cpp conftest.$ac_ext"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } >/dev/null && {
12615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12616          test ! -s conftest.err
12617        }; then
12618   :
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623   # Broken: fails on valid input.
12624 continue
12625 fi
12626
12627 rm -f conftest.err conftest.$ac_ext
12628
12629   # OK, works on sane cases.  Now check whether nonexistent headers
12630   # can be detected and how.
12631   cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h.  */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h.  */
12637 #include <ac_nonexistent.h>
12638 _ACEOF
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12646   ac_status=$?
12647   grep -v '^ *+' conftest.er1 >conftest.err
12648   rm -f conftest.er1
12649   cat conftest.err >&5
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } >/dev/null && {
12652          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653          test ! -s conftest.err
12654        }; then
12655   # Broken: success on invalid input.
12656 continue
12657 else
12658   echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661   # Passes both tests.
12662 ac_preproc_ok=:
12663 break
12664 fi
12665
12666 rm -f conftest.err conftest.$ac_ext
12667
12668 done
12669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12670 rm -f conftest.err conftest.$ac_ext
12671 if $ac_preproc_ok; then
12672   :
12673 else
12674   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&5
12676 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12677 See \`config.log' for more details." >&2;}
12678    { (exit 1); exit 1; }; }
12679 fi
12680
12681 ac_ext=c
12682 ac_cpp='$CPP $CPPFLAGS'
12683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12686
12687 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12688 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12689 if test "${ol_cv_msvc+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698
12699 #ifndef _MSC_VER
12700 #include <__FOO__/generate_error.h>
12701 #endif
12702
12703 _ACEOF
12704 if { (ac_try="$ac_cpp conftest.$ac_ext"
12705 case "(($ac_try" in
12706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707   *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12711   ac_status=$?
12712   grep -v '^ *+' conftest.er1 >conftest.err
12713   rm -f conftest.er1
12714   cat conftest.err >&5
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } >/dev/null && {
12717          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718          test ! -s conftest.err
12719        }; then
12720   ol_cv_msvc=yes
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12724
12725   ol_cv_msvc=no
12726 fi
12727
12728 rm -f conftest.err conftest.$ac_ext
12729 fi
12730 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12731 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12732
12733 case $host_os in
12734   *mingw32* ) ac_cv_mingw32=yes ;;
12735   *cygwin* ) ac_cv_cygwin=yes ;;
12736   *interix* ) ac_cv_interix=yes ;;
12737 esac
12738
12739
12740
12741
12742 cat >>confdefs.h <<_ACEOF
12743 #define EXEEXT "${EXEEXT}"
12744 _ACEOF
12745
12746
12747 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12748 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12749 if test "${ac_cv_lib_be_be_app+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lbe -lroot -lnet $LIBS"
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h.  */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h.  */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762    Use char because int might match the return type of a GCC
12763    builtin and then its argument prototype would still apply.  */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char be_app ();
12768 int
12769 main ()
12770 {
12771 return be_app ();
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783   (eval "$ac_link") 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } && {
12790          test -z "$ac_c_werror_flag" ||
12791          test ! -s conftest.err
12792        } && test -s conftest$ac_exeext &&
12793        $as_test_x conftest$ac_exeext; then
12794   ac_cv_lib_be_be_app=yes
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799         ac_cv_lib_be_be_app=no
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12803       conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12805 fi
12806 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12807 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12808 if test $ac_cv_lib_be_be_app = yes; then
12809   LIBS="$LIBS -lbe -lroot -lnet"
12810 else
12811   :
12812 fi
12813
12814
12815 ac_ext=c
12816 ac_cpp='$CPP $CPPFLAGS'
12817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820 if test -n "$ac_tool_prefix"; then
12821   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12825 if test "${ac_cv_prog_CC+set}" = set; then
12826   echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828   if test -n "$CC"; then
12829   ac_cv_prog_CC="$CC" # Let the user override the test.
12830 else
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834   IFS=$as_save_IFS
12835   test -z "$as_dir" && as_dir=.
12836   for ac_exec_ext in '' $ac_executable_extensions; do
12837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12840     break 2
12841   fi
12842 done
12843 done
12844 IFS=$as_save_IFS
12845
12846 fi
12847 fi
12848 CC=$ac_cv_prog_CC
12849 if test -n "$CC"; then
12850   { echo "$as_me:$LINENO: result: $CC" >&5
12851 echo "${ECHO_T}$CC" >&6; }
12852 else
12853   { echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6; }
12855 fi
12856
12857
12858 fi
12859 if test -z "$ac_cv_prog_CC"; then
12860   ac_ct_CC=$CC
12861   # Extract the first word of "gcc", so it can be a program name with args.
12862 set dummy gcc; ac_word=$2
12863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   if test -n "$ac_ct_CC"; then
12869   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12870 else
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12873 do
12874   IFS=$as_save_IFS
12875   test -z "$as_dir" && as_dir=.
12876   for ac_exec_ext in '' $ac_executable_extensions; do
12877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878     ac_cv_prog_ac_ct_CC="gcc"
12879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12880     break 2
12881   fi
12882 done
12883 done
12884 IFS=$as_save_IFS
12885
12886 fi
12887 fi
12888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12889 if test -n "$ac_ct_CC"; then
12890   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12891 echo "${ECHO_T}$ac_ct_CC" >&6; }
12892 else
12893   { echo "$as_me:$LINENO: result: no" >&5
12894 echo "${ECHO_T}no" >&6; }
12895 fi
12896
12897   if test "x$ac_ct_CC" = x; then
12898     CC=""
12899   else
12900     case $cross_compiling:$ac_tool_warned in
12901 yes:)
12902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12903 whose name does not start with the host triplet.  If you think this
12904 configuration is useful to you, please write to autoconf@gnu.org." >&5
12905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12906 whose name does not start with the host triplet.  If you think this
12907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12908 ac_tool_warned=yes ;;
12909 esac
12910     CC=$ac_ct_CC
12911   fi
12912 else
12913   CC="$ac_cv_prog_CC"
12914 fi
12915
12916 if test -z "$CC"; then
12917           if test -n "$ac_tool_prefix"; then
12918     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}cc; ac_word=$2
12920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12922 if test "${ac_cv_prog_CC+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   if test -n "$CC"; then
12926   ac_cv_prog_CC="$CC" # Let the user override the test.
12927 else
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12930 do
12931   IFS=$as_save_IFS
12932   test -z "$as_dir" && as_dir=.
12933   for ac_exec_ext in '' $ac_executable_extensions; do
12934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935     ac_cv_prog_CC="${ac_tool_prefix}cc"
12936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12937     break 2
12938   fi
12939 done
12940 done
12941 IFS=$as_save_IFS
12942
12943 fi
12944 fi
12945 CC=$ac_cv_prog_CC
12946 if test -n "$CC"; then
12947   { echo "$as_me:$LINENO: result: $CC" >&5
12948 echo "${ECHO_T}$CC" >&6; }
12949 else
12950   { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12952 fi
12953
12954
12955   fi
12956 fi
12957 if test -z "$CC"; then
12958   # Extract the first word of "cc", so it can be a program name with args.
12959 set dummy cc; ac_word=$2
12960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12962 if test "${ac_cv_prog_CC+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   if test -n "$CC"; then
12966   ac_cv_prog_CC="$CC" # Let the user override the test.
12967 else
12968   ac_prog_rejected=no
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12971 do
12972   IFS=$as_save_IFS
12973   test -z "$as_dir" && as_dir=.
12974   for ac_exec_ext in '' $ac_executable_extensions; do
12975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12977        ac_prog_rejected=yes
12978        continue
12979      fi
12980     ac_cv_prog_CC="cc"
12981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12982     break 2
12983   fi
12984 done
12985 done
12986 IFS=$as_save_IFS
12987
12988 if test $ac_prog_rejected = yes; then
12989   # We found a bogon in the path, so make sure we never use it.
12990   set dummy $ac_cv_prog_CC
12991   shift
12992   if test $# != 0; then
12993     # We chose a different compiler from the bogus one.
12994     # However, it has the same basename, so the bogon will be chosen
12995     # first if we set CC to just the basename; use the full file name.
12996     shift
12997     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12998   fi
12999 fi
13000 fi
13001 fi
13002 CC=$ac_cv_prog_CC
13003 if test -n "$CC"; then
13004   { echo "$as_me:$LINENO: result: $CC" >&5
13005 echo "${ECHO_T}$CC" >&6; }
13006 else
13007   { echo "$as_me:$LINENO: result: no" >&5
13008 echo "${ECHO_T}no" >&6; }
13009 fi
13010
13011
13012 fi
13013 if test -z "$CC"; then
13014   if test -n "$ac_tool_prefix"; then
13015   for ac_prog in cl.exe
13016   do
13017     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13021 if test "${ac_cv_prog_CC+set}" = set; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   if test -n "$CC"; then
13025   ac_cv_prog_CC="$CC" # Let the user override the test.
13026 else
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13029 do
13030   IFS=$as_save_IFS
13031   test -z "$as_dir" && as_dir=.
13032   for ac_exec_ext in '' $ac_executable_extensions; do
13033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13034     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13036     break 2
13037   fi
13038 done
13039 done
13040 IFS=$as_save_IFS
13041
13042 fi
13043 fi
13044 CC=$ac_cv_prog_CC
13045 if test -n "$CC"; then
13046   { echo "$as_me:$LINENO: result: $CC" >&5
13047 echo "${ECHO_T}$CC" >&6; }
13048 else
13049   { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13051 fi
13052
13053
13054     test -n "$CC" && break
13055   done
13056 fi
13057 if test -z "$CC"; then
13058   ac_ct_CC=$CC
13059   for ac_prog in cl.exe
13060 do
13061   # Extract the first word of "$ac_prog", so it can be a program name with args.
13062 set dummy $ac_prog; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   if test -n "$ac_ct_CC"; then
13069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074   IFS=$as_save_IFS
13075   test -z "$as_dir" && as_dir=.
13076   for ac_exec_ext in '' $ac_executable_extensions; do
13077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078     ac_cv_prog_ac_ct_CC="$ac_prog"
13079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13080     break 2
13081   fi
13082 done
13083 done
13084 IFS=$as_save_IFS
13085
13086 fi
13087 fi
13088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13089 if test -n "$ac_ct_CC"; then
13090   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13091 echo "${ECHO_T}$ac_ct_CC" >&6; }
13092 else
13093   { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13095 fi
13096
13097
13098   test -n "$ac_ct_CC" && break
13099 done
13100
13101   if test "x$ac_ct_CC" = x; then
13102     CC=""
13103   else
13104     case $cross_compiling:$ac_tool_warned in
13105 yes:)
13106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13107 whose name does not start with the host triplet.  If you think this
13108 configuration is useful to you, please write to autoconf@gnu.org." >&5
13109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13110 whose name does not start with the host triplet.  If you think this
13111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13112 ac_tool_warned=yes ;;
13113 esac
13114     CC=$ac_ct_CC
13115   fi
13116 fi
13117
13118 fi
13119
13120
13121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: no acceptable C compiler found in \$PATH
13124 See \`config.log' for more details." >&2;}
13125    { (exit 1); exit 1; }; }
13126
13127 # Provide some information about the compiler.
13128 echo "$as_me:$LINENO: checking for C compiler version" >&5
13129 ac_compiler=`set X $ac_compile; echo $2`
13130 { (ac_try="$ac_compiler --version >&5"
13131 case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_compiler --version >&5") 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }
13140 { (ac_try="$ac_compiler -v >&5"
13141 case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_compiler -v >&5") 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }
13150 { (ac_try="$ac_compiler -V >&5"
13151 case "(($ac_try" in
13152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153   *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156   (eval "$ac_compiler -V >&5") 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }
13160
13161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172
13173 int
13174 main ()
13175 {
13176 #ifndef __GNUC__
13177        choke me
13178 #endif
13179
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext
13185 if { (ac_try="$ac_compile"
13186 case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_compile") 2>conftest.er1
13192   ac_status=$?
13193   grep -v '^ *+' conftest.er1 >conftest.err
13194   rm -f conftest.er1
13195   cat conftest.err >&5
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); } && {
13198          test -z "$ac_c_werror_flag" ||
13199          test ! -s conftest.err
13200        } && test -s conftest.$ac_objext; then
13201   ac_compiler_gnu=yes
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206         ac_compiler_gnu=no
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13211
13212 fi
13213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13215 GCC=`test $ac_compiler_gnu = yes && echo yes`
13216 ac_test_CFLAGS=${CFLAGS+set}
13217 ac_save_CFLAGS=$CFLAGS
13218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13220 if test "${ac_cv_prog_cc_g+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   ac_save_c_werror_flag=$ac_c_werror_flag
13224    ac_c_werror_flag=yes
13225    ac_cv_prog_cc_g=no
13226    CFLAGS="-g"
13227    cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233
13234 int
13235 main ()
13236 {
13237
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext
13243 if { (ac_try="$ac_compile"
13244 case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_compile") 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } && {
13256          test -z "$ac_c_werror_flag" ||
13257          test ! -s conftest.err
13258        } && test -s conftest.$ac_objext; then
13259   ac_cv_prog_cc_g=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264         CFLAGS=""
13265       cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h.  */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h.  */
13271
13272 int
13273 main ()
13274 {
13275
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 rm -f conftest.$ac_objext
13281 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } && {
13294          test -z "$ac_c_werror_flag" ||
13295          test ! -s conftest.err
13296        } && test -s conftest.$ac_objext; then
13297   :
13298 else
13299   echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302         ac_c_werror_flag=$ac_save_c_werror_flag
13303          CFLAGS="-g"
13304          cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h.  */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h.  */
13310
13311 int
13312 main ()
13313 {
13314
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest.$ac_objext
13320 if { (ac_try="$ac_compile"
13321 case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_compile") 2>conftest.er1
13327   ac_status=$?
13328   grep -v '^ *+' conftest.er1 >conftest.err
13329   rm -f conftest.er1
13330   cat conftest.err >&5
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); } && {
13333          test -z "$ac_c_werror_flag" ||
13334          test ! -s conftest.err
13335        } && test -s conftest.$ac_objext; then
13336   ac_cv_prog_cc_g=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341
13342 fi
13343
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 fi
13346
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351    ac_c_werror_flag=$ac_save_c_werror_flag
13352 fi
13353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13355 if test "$ac_test_CFLAGS" = set; then
13356   CFLAGS=$ac_save_CFLAGS
13357 elif test $ac_cv_prog_cc_g = yes; then
13358   if test "$GCC" = yes; then
13359     CFLAGS="-g -O2"
13360   else
13361     CFLAGS="-g"
13362   fi
13363 else
13364   if test "$GCC" = yes; then
13365     CFLAGS="-O2"
13366   else
13367     CFLAGS=
13368   fi
13369 fi
13370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13372 if test "${ac_cv_prog_cc_c89+set}" = set; then
13373   echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375   ac_cv_prog_cc_c89=no
13376 ac_save_CC=$CC
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383 #include <stdarg.h>
13384 #include <stdio.h>
13385 #include <sys/types.h>
13386 #include <sys/stat.h>
13387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13388 struct buf { int x; };
13389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13390 static char *e (p, i)
13391      char **p;
13392      int i;
13393 {
13394   return p[i];
13395 }
13396 static char *f (char * (*g) (char **, int), char **p, ...)
13397 {
13398   char *s;
13399   va_list v;
13400   va_start (v,p);
13401   s = g (p, va_arg (v,int));
13402   va_end (v);
13403   return s;
13404 }
13405
13406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13407    function prototypes and stuff, but not '\xHH' hex character constants.
13408    These don't provoke an error unfortunately, instead are silently treated
13409    as 'x'.  The following induces an error, until -std is added to get
13410    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13411    array size at least.  It's necessary to write '\x00'==0 to get something
13412    that's true only with -std.  */
13413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13414
13415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13416    inside strings and character constants.  */
13417 #define FOO(x) 'x'
13418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13419
13420 int test (int i, double x);
13421 struct s1 {int (*f) (int a);};
13422 struct s2 {int (*f) (double a);};
13423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13424 int argc;
13425 char **argv;
13426 int
13427 main ()
13428 {
13429 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13435         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13436 do
13437   CC="$ac_save_CC $ac_arg"
13438   rm -f conftest.$ac_objext
13439 if { (ac_try="$ac_compile"
13440 case "(($ac_try" in
13441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442   *) ac_try_echo=$ac_try;;
13443 esac
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445   (eval "$ac_compile") 2>conftest.er1
13446   ac_status=$?
13447   grep -v '^ *+' conftest.er1 >conftest.err
13448   rm -f conftest.er1
13449   cat conftest.err >&5
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } && {
13452          test -z "$ac_c_werror_flag" ||
13453          test ! -s conftest.err
13454        } && test -s conftest.$ac_objext; then
13455   ac_cv_prog_cc_c89=$ac_arg
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460
13461 fi
13462
13463 rm -f core conftest.err conftest.$ac_objext
13464   test "x$ac_cv_prog_cc_c89" != "xno" && break
13465 done
13466 rm -f conftest.$ac_ext
13467 CC=$ac_save_CC
13468
13469 fi
13470 # AC_CACHE_VAL
13471 case "x$ac_cv_prog_cc_c89" in
13472   x)
13473     { echo "$as_me:$LINENO: result: none needed" >&5
13474 echo "${ECHO_T}none needed" >&6; } ;;
13475   xno)
13476     { echo "$as_me:$LINENO: result: unsupported" >&5
13477 echo "${ECHO_T}unsupported" >&6; } ;;
13478   *)
13479     CC="$CC $ac_cv_prog_cc_c89"
13480     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13482 esac
13483
13484
13485 ac_ext=c
13486 ac_cpp='$CPP $CPPFLAGS'
13487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13490
13491 depcc="$CC"   am_compiler_list=
13492
13493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13499   # We make a subdir and do the tests there.  Otherwise we can end up
13500   # making bogus files that we don't know about and never remove.  For
13501   # instance it was reported that on HP-UX the gcc test will end up
13502   # making a dummy file named `D' -- because `-MD' means `put the output
13503   # in D'.
13504   mkdir conftest.dir
13505   # Copy depcomp to subdir because otherwise we won't find it if we're
13506   # using a relative directory.
13507   cp "$am_depcomp" conftest.dir
13508   cd conftest.dir
13509   # We will build objects and dependencies in a subdirectory because
13510   # it helps to detect inapplicable dependency modes.  For instance
13511   # both Tru64's cc and ICC support -MD to output dependencies as a
13512   # side effect of compilation, but ICC will put the dependencies in
13513   # the current directory while Tru64 will put them in the object
13514   # directory.
13515   mkdir sub
13516
13517   am_cv_CC_dependencies_compiler_type=none
13518   if test "$am_compiler_list" = ""; then
13519      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13520   fi
13521   for depmode in $am_compiler_list; do
13522     # Setup a source with many dependencies, because some compilers
13523     # like to wrap large dependency lists on column 80 (with \), and
13524     # we should not choose a depcomp mode which is confused by this.
13525     #
13526     # We need to recreate these files for each test, as the compiler may
13527     # overwrite some of them when testing with obscure command lines.
13528     # This happens at least with the AIX C compiler.
13529     : > sub/conftest.c
13530     for i in 1 2 3 4 5 6; do
13531       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13532       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13533       # Solaris 8's {/usr,}/bin/sh.
13534       touch sub/conftst$i.h
13535     done
13536     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13537
13538     case $depmode in
13539     nosideeffect)
13540       # after this tag, mechanisms are not by side-effect, so they'll
13541       # only be used when explicitly requested
13542       if test "x$enable_dependency_tracking" = xyes; then
13543         continue
13544       else
13545         break
13546       fi
13547       ;;
13548     none) break ;;
13549     esac
13550     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13551     # mode.  It turns out that the SunPro C++ compiler does not properly
13552     # handle `-M -o', and we need to detect this.
13553     if depmode=$depmode \
13554        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13555        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13556        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13557          >/dev/null 2>conftest.err &&
13558        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13559        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13560        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13561       # icc doesn't choke on unknown options, it will just issue warnings
13562       # or remarks (even with -Werror).  So we grep stderr for any message
13563       # that says an option was ignored or not supported.
13564       # When given -MP, icc 7.0 and 7.1 complain thusly:
13565       #   icc: Command line warning: ignoring option '-M'; no argument required
13566       # The diagnosis changed in icc 8.0:
13567       #   icc: Command line remark: option '-MP' not supported
13568       if (grep 'ignoring option' conftest.err ||
13569           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13570         am_cv_CC_dependencies_compiler_type=$depmode
13571         break
13572       fi
13573     fi
13574   done
13575
13576   cd ..
13577   rm -rf conftest.dir
13578 else
13579   am_cv_CC_dependencies_compiler_type=none
13580 fi
13581
13582 fi
13583 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13584 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13586
13587
13588
13589 if
13590   test "x$enable_dependency_tracking" != xno \
13591   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13592   am__fastdepCC_TRUE=
13593   am__fastdepCC_FALSE='#'
13594 else
13595   am__fastdepCC_TRUE='#'
13596   am__fastdepCC_FALSE=
13597 fi
13598
13599
13600 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13601         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13602 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13603    { (exit 1); exit 1; }; }
13604 fi
13605
13606 # test for make depend flag
13607 OL_MKDEP=
13608 OL_MKDEP_FLAGS=
13609 if test -z "${MKDEP}"; then
13610         OL_MKDEP="${CC-cc}"
13611         if test -z "${MKDEP_FLAGS}"; then
13612                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13613 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13614 if test "${ol_cv_mkdep+set}" = set; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617
13618                         ol_cv_mkdep=no
13619                         for flag in "-M" "-xM"; do
13620                                 cat > conftest.c <<EOF
13621  noCode;
13622 EOF
13623                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } \
13629                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13630                                 then
13631                                         if test ! -f conftest."${ac_object}" ; then
13632                                                 ol_cv_mkdep=$flag
13633                                                 OL_MKDEP_FLAGS="$flag"
13634                                                 break
13635                                         fi
13636                                 fi
13637                         done
13638                         rm -f conftest*
13639
13640 fi
13641 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13642 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13643                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13644         else
13645                 cc_cv_mkdep=yes
13646                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13647         fi
13648 else
13649         cc_cv_mkdep=yes
13650         OL_MKDEP="${MKDEP}"
13651         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13652 fi
13653
13654
13655
13656 if test "${ol_cv_mkdep}" = no ; then
13657         # this will soon become an error
13658         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13659 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13660 fi
13661
13662 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13663 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13664 if test "${ac_cv_lib_s_afopen+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   ac_check_lib_save_LIBS=$LIBS
13668 LIBS="-ls  $LIBS"
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677    Use char because int might match the return type of a GCC
13678    builtin and then its argument prototype would still apply.  */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char afopen ();
13683 int
13684 main ()
13685 {
13686 return afopen ();
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695   *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698   (eval "$ac_link") 2>conftest.er1
13699   ac_status=$?
13700   grep -v '^ *+' conftest.er1 >conftest.err
13701   rm -f conftest.er1
13702   cat conftest.err >&5
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } && {
13705          test -z "$ac_c_werror_flag" ||
13706          test ! -s conftest.err
13707        } && test -s conftest$ac_exeext &&
13708        $as_test_x conftest$ac_exeext; then
13709   ac_cv_lib_s_afopen=yes
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714         ac_cv_lib_s_afopen=no
13715 fi
13716
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718       conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13722 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13723 if test $ac_cv_lib_s_afopen = yes; then
13724
13725         AUTH_LIBS=-ls
13726
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_AIX_SECURITY 1
13729 _ACEOF
13730
13731
13732 fi
13733
13734
13735 case "$target" in
13736 *-ibm-openedition)
13737         ac_cv_func_getopt=no
13738
13739 cat >>confdefs.h <<\_ACEOF
13740 #define BOTH_STRINGS_H 1
13741 _ACEOF
13742
13743         ;;
13744 esac
13745
13746 ol_link_modules=no
13747 WITH_MODULES_ENABLED=no
13748 if test $ol_enable_modules != no ; then
13749
13750 for ac_header in ltdl.h
13751 do
13752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13754   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757   echo $ECHO_N "(cached) $ECHO_C" >&6
13758 fi
13759 ac_res=`eval echo '${'$as_ac_Header'}'`
13760                { echo "$as_me:$LINENO: result: $ac_res" >&5
13761 echo "${ECHO_T}$ac_res" >&6; }
13762 else
13763   # Is the header compilable?
13764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13766 cat >conftest.$ac_ext <<_ACEOF
13767 /* confdefs.h.  */
13768 _ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h.  */
13772 $ac_includes_default
13773 #include <$ac_header>
13774 _ACEOF
13775 rm -f conftest.$ac_objext
13776 if { (ac_try="$ac_compile"
13777 case "(($ac_try" in
13778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779   *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782   (eval "$ac_compile") 2>conftest.er1
13783   ac_status=$?
13784   grep -v '^ *+' conftest.er1 >conftest.err
13785   rm -f conftest.er1
13786   cat conftest.err >&5
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); } && {
13789          test -z "$ac_c_werror_flag" ||
13790          test ! -s conftest.err
13791        } && test -s conftest.$ac_objext; then
13792   ac_header_compiler=yes
13793 else
13794   echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13796
13797         ac_header_compiler=no
13798 fi
13799
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13802 echo "${ECHO_T}$ac_header_compiler" >&6; }
13803
13804 # Is the header present?
13805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h.  */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h.  */
13813 #include <$ac_header>
13814 _ACEOF
13815 if { (ac_try="$ac_cpp conftest.$ac_ext"
13816 case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13822   ac_status=$?
13823   grep -v '^ *+' conftest.er1 >conftest.err
13824   rm -f conftest.er1
13825   cat conftest.err >&5
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } >/dev/null && {
13828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13829          test ! -s conftest.err
13830        }; then
13831   ac_header_preproc=yes
13832 else
13833   echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836   ac_header_preproc=no
13837 fi
13838
13839 rm -f conftest.err conftest.$ac_ext
13840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13841 echo "${ECHO_T}$ac_header_preproc" >&6; }
13842
13843 # So?  What about this header?
13844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13845   yes:no: )
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13850     ac_header_preproc=yes
13851     ;;
13852   no:yes:* )
13853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13865     ( cat <<\_ASBOX
13866 ## --------------------------------------------- ##
13867 ## Report this to <http://www.openldap.org/its/> ##
13868 ## --------------------------------------------- ##
13869 _ASBOX
13870      ) | sed "s/^/$as_me: WARNING:     /" >&2
13871     ;;
13872 esac
13873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   eval "$as_ac_Header=\$ac_header_preproc"
13879 fi
13880 ac_res=`eval echo '${'$as_ac_Header'}'`
13881                { echo "$as_me:$LINENO: result: $ac_res" >&5
13882 echo "${ECHO_T}$ac_res" >&6; }
13883
13884 fi
13885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13886   cat >>confdefs.h <<_ACEOF
13887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13888 _ACEOF
13889
13890 fi
13891
13892 done
13893
13894
13895         if test $ac_cv_header_ltdl_h = no ; then
13896                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13897 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13898    { (exit 1); exit 1; }; }
13899         fi
13900
13901         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13902 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13903 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lltdl  $LIBS"
13908 cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914
13915 /* Override any GCC internal prototype to avoid an error.
13916    Use char because int might match the return type of a GCC
13917    builtin and then its argument prototype would still apply.  */
13918 #ifdef __cplusplus
13919 extern "C"
13920 #endif
13921 char lt_dlinit ();
13922 int
13923 main ()
13924 {
13925 return lt_dlinit ();
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_link") 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } && {
13944          test -z "$ac_c_werror_flag" ||
13945          test ! -s conftest.err
13946        } && test -s conftest$ac_exeext &&
13947        $as_test_x conftest$ac_exeext; then
13948   ac_cv_lib_ltdl_lt_dlinit=yes
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953         ac_cv_lib_ltdl_lt_dlinit=no
13954 fi
13955
13956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13957       conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13959 fi
13960 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13961 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13962 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13963
13964                 MODULES_LIBS=-lltdl
13965
13966 cat >>confdefs.h <<\_ACEOF
13967 #define HAVE_LIBLTDL 1
13968 _ACEOF
13969
13970
13971 fi
13972
13973
13974         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13975                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13976 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13977    { (exit 1); exit 1; }; }
13978         fi
13979         ol_link_modules=yes
13980         WITH_MODULES_ENABLED=yes
13981
13982 else
13983         for i in $Backends; do
13984                 eval "ol_tmp=\$ol_enable_$i"
13985                 if test $ol_tmp = mod ; then
13986                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13987 echo "$as_me: WARNING: building static $i backend" >&2;}
13988                         eval "ol_enable_$i=yes"
13989                 fi
13990         done
13991         for i in $Overlays; do
13992                 eval "ol_tmp=\$ol_enable_$i"
13993                 if test $ol_tmp = mod ; then
13994                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13995 echo "$as_me: WARNING: building static $i overlay" >&2;}
13996                         eval "ol_enable_$i=yes"
13997                 fi
13998         done
13999 fi
14000
14001 # test for EBCDIC
14002 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14003 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14004 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007
14008         cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014
14015 #if !('M' == 0xd4)
14016 #include <__ASCII__/generate_error.h>
14017 #endif
14018
14019 _ACEOF
14020 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14027   ac_status=$?
14028   grep -v '^ *+' conftest.er1 >conftest.err
14029   rm -f conftest.er1
14030   cat conftest.err >&5
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); } >/dev/null && {
14033          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14034          test ! -s conftest.err
14035        }; then
14036   ol_cv_cpp_ebcdic=yes
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041   ol_cv_cpp_ebcdic=no
14042 fi
14043
14044 rm -f conftest.err conftest.$ac_ext
14045 fi
14046 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14047 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14048 if test $ol_cv_cpp_ebcdic = yes ; then
14049
14050 cat >>confdefs.h <<\_ACEOF
14051 #define HAVE_EBCDIC 1
14052 _ACEOF
14053
14054 fi
14055
14056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14058 if test "${ol_cv_header_stdc+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067 #include <stdlib.h>
14068 #include <stdarg.h>
14069 #include <string.h>
14070 #include <float.h>
14071 _ACEOF
14072 if { (ac_try="$ac_cpp conftest.$ac_ext"
14073 case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14079   ac_status=$?
14080   grep -v '^ *+' conftest.er1 >conftest.err
14081   rm -f conftest.er1
14082   cat conftest.err >&5
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } >/dev/null && {
14085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14086          test ! -s conftest.err
14087        }; then
14088   ol_cv_header_stdc=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093   ol_cv_header_stdc=no
14094 fi
14095
14096 rm -f conftest.err conftest.$ac_ext
14097
14098 if test $ol_cv_header_stdc = yes; then
14099   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 #include <string.h>
14107
14108 _ACEOF
14109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14110   $EGREP "memchr" >/dev/null 2>&1; then
14111   :
14112 else
14113   ol_cv_header_stdc=no
14114 fi
14115 rm -f conftest*
14116
14117 fi
14118
14119 if test $ol_cv_header_stdc = yes; then
14120   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14121 cat >conftest.$ac_ext <<_ACEOF
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127 #include <stdlib.h>
14128
14129 _ACEOF
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131   $EGREP "free" >/dev/null 2>&1; then
14132   :
14133 else
14134   ol_cv_header_stdc=no
14135 fi
14136 rm -f conftest*
14137
14138 fi
14139
14140 if test $ol_cv_header_stdc = yes; then
14141   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14142 if test "$cross_compiling" = yes; then
14143   :
14144 else
14145   cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 #include <ctype.h>
14152 #ifndef HAVE_EBCDIC
14153 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14154 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14155 #else
14156 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14157                 || ('j' <= (c) && (c) <= 'r') \
14158                 || ('s' <= (c) && (c) <= 'z'))
14159 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14160 #endif
14161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14162 int main () { int i; for (i = 0; i < 256; i++)
14163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14164 exit (0); }
14165
14166 _ACEOF
14167 rm -f conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171   *) ac_try_echo=$ac_try;;
14172 esac
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174   (eval "$ac_link") 2>&5
14175   ac_status=$?
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14178   { (case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_try") 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   :
14188 else
14189   echo "$as_me: program exited with status $ac_status" >&5
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ( exit $ac_status )
14194 ol_cv_header_stdc=no
14195 fi
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14197 fi
14198
14199
14200 fi
14201 fi
14202 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14203 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14204 if test $ol_cv_header_stdc = yes; then
14205   cat >>confdefs.h <<\_ACEOF
14206 #define STDC_HEADERS 1
14207 _ACEOF
14208
14209 fi
14210 ac_cv_header_stdc=disable
14211
14212
14213 if test $ol_cv_header_stdc != yes; then
14214         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14215 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14216 fi
14217
14218
14219
14220
14221
14222
14223 ac_header_dirent=no
14224 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14225   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14226 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14227 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 #include <sys/types.h>
14238 #include <$ac_hdr>
14239
14240 int
14241 main ()
14242 {
14243 if ((DIR *) 0)
14244 return 0;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253   *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256   (eval "$ac_compile") 2>conftest.er1
14257   ac_status=$?
14258   grep -v '^ *+' conftest.er1 >conftest.err
14259   rm -f conftest.er1
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } && {
14263          test -z "$ac_c_werror_flag" ||
14264          test ! -s conftest.err
14265        } && test -s conftest.$ac_objext; then
14266   eval "$as_ac_Header=yes"
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271         eval "$as_ac_Header=no"
14272 fi
14273
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 fi
14276 ac_res=`eval echo '${'$as_ac_Header'}'`
14277                { echo "$as_me:$LINENO: result: $ac_res" >&5
14278 echo "${ECHO_T}$ac_res" >&6; }
14279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14280   cat >>confdefs.h <<_ACEOF
14281 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14282 _ACEOF
14283
14284 ac_header_dirent=$ac_hdr; break
14285 fi
14286
14287 done
14288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14289 if test $ac_header_dirent = dirent.h; then
14290   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14291 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14292 if test "${ac_cv_search_opendir+set}" = set; then
14293   echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295   ac_func_search_save_LIBS=$LIBS
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302
14303 /* Override any GCC internal prototype to avoid an error.
14304    Use char because int might match the return type of a GCC
14305    builtin and then its argument prototype would still apply.  */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 char opendir ();
14310 int
14311 main ()
14312 {
14313 return opendir ();
14314   ;
14315   return 0;
14316 }
14317 _ACEOF
14318 for ac_lib in '' dir; do
14319   if test -z "$ac_lib"; then
14320     ac_res="none required"
14321   else
14322     ac_res=-l$ac_lib
14323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14324   fi
14325   rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_link") 2>conftest.er1
14333   ac_status=$?
14334   grep -v '^ *+' conftest.er1 >conftest.err
14335   rm -f conftest.er1
14336   cat conftest.err >&5
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } && {
14339          test -z "$ac_c_werror_flag" ||
14340          test ! -s conftest.err
14341        } && test -s conftest$ac_exeext &&
14342        $as_test_x conftest$ac_exeext; then
14343   ac_cv_search_opendir=$ac_res
14344 else
14345   echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348
14349 fi
14350
14351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14352       conftest$ac_exeext
14353   if test "${ac_cv_search_opendir+set}" = set; then
14354   break
14355 fi
14356 done
14357 if test "${ac_cv_search_opendir+set}" = set; then
14358   :
14359 else
14360   ac_cv_search_opendir=no
14361 fi
14362 rm conftest.$ac_ext
14363 LIBS=$ac_func_search_save_LIBS
14364 fi
14365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14367 ac_res=$ac_cv_search_opendir
14368 if test "$ac_res" != no; then
14369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14370
14371 fi
14372
14373 else
14374   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14376 if test "${ac_cv_search_opendir+set}" = set; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   ac_func_search_save_LIBS=$LIBS
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386
14387 /* Override any GCC internal prototype to avoid an error.
14388    Use char because int might match the return type of a GCC
14389    builtin and then its argument prototype would still apply.  */
14390 #ifdef __cplusplus
14391 extern "C"
14392 #endif
14393 char opendir ();
14394 int
14395 main ()
14396 {
14397 return opendir ();
14398   ;
14399   return 0;
14400 }
14401 _ACEOF
14402 for ac_lib in '' x; do
14403   if test -z "$ac_lib"; then
14404     ac_res="none required"
14405   else
14406     ac_res=-l$ac_lib
14407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14408   fi
14409   rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413   *) ac_try_echo=$ac_try;;
14414 esac
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416   (eval "$ac_link") 2>conftest.er1
14417   ac_status=$?
14418   grep -v '^ *+' conftest.er1 >conftest.err
14419   rm -f conftest.er1
14420   cat conftest.err >&5
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && {
14423          test -z "$ac_c_werror_flag" ||
14424          test ! -s conftest.err
14425        } && test -s conftest$ac_exeext &&
14426        $as_test_x conftest$ac_exeext; then
14427   ac_cv_search_opendir=$ac_res
14428 else
14429   echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432
14433 fi
14434
14435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14436       conftest$ac_exeext
14437   if test "${ac_cv_search_opendir+set}" = set; then
14438   break
14439 fi
14440 done
14441 if test "${ac_cv_search_opendir+set}" = set; then
14442   :
14443 else
14444   ac_cv_search_opendir=no
14445 fi
14446 rm conftest.$ac_ext
14447 LIBS=$ac_func_search_save_LIBS
14448 fi
14449 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14450 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14451 ac_res=$ac_cv_search_opendir
14452 if test "$ac_res" != no; then
14453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14454
14455 fi
14456
14457 fi
14458
14459 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14460 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h.  */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h.  */
14470 #include <sys/types.h>
14471 #include <sys/wait.h>
14472 #ifndef WEXITSTATUS
14473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14474 #endif
14475 #ifndef WIFEXITED
14476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14477 #endif
14478
14479 int
14480 main ()
14481 {
14482   int s;
14483   wait (&s);
14484   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_compile") 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } && {
14503          test -z "$ac_c_werror_flag" ||
14504          test ! -s conftest.err
14505        } && test -s conftest.$ac_objext; then
14506   ac_cv_header_sys_wait_h=yes
14507 else
14508   echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511         ac_cv_header_sys_wait_h=no
14512 fi
14513
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515 fi
14516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14518 if test $ac_cv_header_sys_wait_h = yes; then
14519
14520 cat >>confdefs.h <<\_ACEOF
14521 #define HAVE_SYS_WAIT_H 1
14522 _ACEOF
14523
14524 fi
14525
14526 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14527 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14528 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537 #include <sys/types.h>
14538 #include <termios.h>
14539 #ifdef TIOCGWINSZ
14540   yes
14541 #endif
14542
14543 _ACEOF
14544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14545   $EGREP "yes" >/dev/null 2>&1; then
14546   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14547 else
14548   ac_cv_sys_tiocgwinsz_in_termios_h=no
14549 fi
14550 rm -f conftest*
14551
14552 fi
14553 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14554 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14555
14556 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14557   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14558 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14559 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 #include <sys/types.h>
14569 #include <sys/ioctl.h>
14570 #ifdef TIOCGWINSZ
14571   yes
14572 #endif
14573
14574 _ACEOF
14575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14576   $EGREP "yes" >/dev/null 2>&1; then
14577   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14578 else
14579   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14580 fi
14581 rm -f conftest*
14582
14583 fi
14584 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14585 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14586
14587   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14588
14589 cat >>confdefs.h <<\_ACEOF
14590 #define GWINSZ_IN_SYS_IOCTL 1
14591 _ACEOF
14592
14593   fi
14594 fi
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644 for ac_header in \
14645         arpa/inet.h             \
14646         arpa/nameser.h  \
14647         assert.h                \
14648         bits/types.h    \
14649         conio.h                 \
14650         crypt.h                 \
14651         direct.h                \
14652         errno.h                 \
14653         fcntl.h                 \
14654         filio.h                 \
14655         getopt.h                \
14656         grp.h                   \
14657         io.h                    \
14658         libutil.h               \
14659         limits.h                \
14660         locale.h                \
14661         malloc.h                \
14662         memory.h                \
14663         psap.h                  \
14664         pwd.h                   \
14665         process.h               \
14666         sgtty.h                 \
14667         shadow.h                \
14668         stddef.h                \
14669         string.h                \
14670         strings.h               \
14671         sysexits.h              \
14672         sys/file.h              \
14673         sys/filio.h             \
14674         sys/fstyp.h             \
14675         sys/errno.h             \
14676         sys/ioctl.h             \
14677         sys/param.h             \
14678         sys/privgrp.h   \
14679         sys/resource.h  \
14680         sys/select.h    \
14681         sys/socket.h    \
14682         sys/stat.h              \
14683         sys/syslog.h    \
14684         sys/time.h              \
14685         sys/types.h             \
14686         sys/uio.h               \
14687         sys/vmount.h    \
14688         syslog.h                \
14689         termios.h               \
14690         unistd.h                \
14691         utime.h                 \
14692
14693 do
14694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 fi
14701 ac_res=`eval echo '${'$as_ac_Header'}'`
14702                { echo "$as_me:$LINENO: result: $ac_res" >&5
14703 echo "${ECHO_T}$ac_res" >&6; }
14704 else
14705   # Is the header compilable?
14706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714 $ac_includes_default
14715 #include <$ac_header>
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721   *) ac_try_echo=$ac_try;;
14722 esac
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724   (eval "$ac_compile") 2>conftest.er1
14725   ac_status=$?
14726   grep -v '^ *+' conftest.er1 >conftest.err
14727   rm -f conftest.er1
14728   cat conftest.err >&5
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); } && {
14731          test -z "$ac_c_werror_flag" ||
14732          test ! -s conftest.err
14733        } && test -s conftest.$ac_objext; then
14734   ac_header_compiler=yes
14735 else
14736   echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739         ac_header_compiler=no
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744 echo "${ECHO_T}$ac_header_compiler" >&6; }
14745
14746 # Is the header present?
14747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755 #include <$ac_header>
14756 _ACEOF
14757 if { (ac_try="$ac_cpp conftest.$ac_ext"
14758 case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14764   ac_status=$?
14765   grep -v '^ *+' conftest.er1 >conftest.err
14766   rm -f conftest.er1
14767   cat conftest.err >&5
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); } >/dev/null && {
14770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771          test ! -s conftest.err
14772        }; then
14773   ac_header_preproc=yes
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778   ac_header_preproc=no
14779 fi
14780
14781 rm -f conftest.err conftest.$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6; }
14784
14785 # So?  What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787   yes:no: )
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14792     ac_header_preproc=yes
14793     ;;
14794   no:yes:* )
14795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14807     ( cat <<\_ASBOX
14808 ## --------------------------------------------- ##
14809 ## Report this to <http://www.openldap.org/its/> ##
14810 ## --------------------------------------------- ##
14811 _ASBOX
14812      ) | sed "s/^/$as_me: WARNING:     /" >&2
14813     ;;
14814 esac
14815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   eval "$as_ac_Header=\$ac_header_preproc"
14821 fi
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823                { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14825
14826 fi
14827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14828   cat >>confdefs.h <<_ACEOF
14829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14830 _ACEOF
14831
14832 fi
14833
14834 done
14835
14836
14837 if test "$ac_cv_mingw32" = yes \
14838         -o "$ac_cv_interix" = yes \
14839         -o "$ol_cv_msvc" = yes
14840 then
14841
14842
14843 for ac_header in winsock.h winsock2.h
14844 do
14845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 fi
14852 ac_res=`eval echo '${'$as_ac_Header'}'`
14853                { echo "$as_me:$LINENO: result: $ac_res" >&5
14854 echo "${ECHO_T}$ac_res" >&6; }
14855 else
14856   # Is the header compilable?
14857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 $ac_includes_default
14866 #include <$ac_header>
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (ac_try="$ac_compile"
14870 case "(($ac_try" in
14871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872   *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875   (eval "$ac_compile") 2>conftest.er1
14876   ac_status=$?
14877   grep -v '^ *+' conftest.er1 >conftest.err
14878   rm -f conftest.er1
14879   cat conftest.err >&5
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } && {
14882          test -z "$ac_c_werror_flag" ||
14883          test ! -s conftest.err
14884        } && test -s conftest.$ac_objext; then
14885   ac_header_compiler=yes
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890         ac_header_compiler=no
14891 fi
14892
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14895 echo "${ECHO_T}$ac_header_compiler" >&6; }
14896
14897 # Is the header present?
14898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906 #include <$ac_header>
14907 _ACEOF
14908 if { (ac_try="$ac_cpp conftest.$ac_ext"
14909 case "(($ac_try" in
14910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911   *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14915   ac_status=$?
14916   grep -v '^ *+' conftest.er1 >conftest.err
14917   rm -f conftest.er1
14918   cat conftest.err >&5
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } >/dev/null && {
14921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14922          test ! -s conftest.err
14923        }; then
14924   ac_header_preproc=yes
14925 else
14926   echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929   ac_header_preproc=no
14930 fi
14931
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14935
14936 # So?  What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14938   yes:no: )
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943     ac_header_preproc=yes
14944     ;;
14945   no:yes:* )
14946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14958     ( cat <<\_ASBOX
14959 ## --------------------------------------------- ##
14960 ## Report this to <http://www.openldap.org/its/> ##
14961 ## --------------------------------------------- ##
14962 _ASBOX
14963      ) | sed "s/^/$as_me: WARNING:     /" >&2
14964     ;;
14965 esac
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971   eval "$as_ac_Header=\$ac_header_preproc"
14972 fi
14973 ac_res=`eval echo '${'$as_ac_Header'}'`
14974                { echo "$as_me:$LINENO: result: $ac_res" >&5
14975 echo "${ECHO_T}$ac_res" >&6; }
14976
14977 fi
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979   cat >>confdefs.h <<_ACEOF
14980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14981 _ACEOF
14982
14983 fi
14984
14985 done
14986
14987 fi
14988
14989
14990 for ac_header in resolv.h
14991 do
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004 $ac_includes_default
15005 #include <netinet/in.h>
15006
15007
15008 #include <$ac_header>
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017   (eval "$ac_compile") 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } && {
15024          test -z "$ac_c_werror_flag" ||
15025          test ! -s conftest.err
15026        } && test -s conftest.$ac_objext; then
15027   eval "$as_ac_Header=yes"
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032         eval "$as_ac_Header=no"
15033 fi
15034
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 fi
15037 ac_res=`eval echo '${'$as_ac_Header'}'`
15038                { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041   cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15043 _ACEOF
15044
15045 fi
15046
15047 done
15048
15049
15050
15051 for ac_header in netinet/tcp.h
15052 do
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
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 <netinet/in.h>
15067
15068
15069 #include <$ac_header>
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_compile") 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } && {
15085          test -z "$ac_c_werror_flag" ||
15086          test ! -s conftest.err
15087        } && test -s conftest.$ac_objext; then
15088   eval "$as_ac_Header=yes"
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093         eval "$as_ac_Header=no"
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 fi
15098 ac_res=`eval echo '${'$as_ac_Header'}'`
15099                { echo "$as_me:$LINENO: result: $ac_res" >&5
15100 echo "${ECHO_T}$ac_res" >&6; }
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102   cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15104 _ACEOF
15105
15106 fi
15107
15108 done
15109
15110
15111
15112 for ac_header in sys/ucred.h
15113 do
15114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 $ac_includes_default
15127 #ifdef HAVE_SYS_PARAM_H
15128 #include <sys/param.h>
15129 #endif
15130
15131
15132 #include <$ac_header>
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_compile") 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } && {
15148          test -z "$ac_c_werror_flag" ||
15149          test ! -s conftest.err
15150        } && test -s conftest.$ac_objext; then
15151   eval "$as_ac_Header=yes"
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156         eval "$as_ac_Header=no"
15157 fi
15158
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 fi
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162                { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165   cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15167 _ACEOF
15168
15169 fi
15170
15171 done
15172
15173
15174
15175
15176
15177 for ac_func in sigaction sigset
15178 do
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15193 #define $ac_func innocuous_$ac_func
15194
15195 /* System header to define __stub macros and hopefully few prototypes,
15196     which can conflict with char $ac_func (); below.
15197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198     <limits.h> exists even on freestanding compilers.  */
15199
15200 #ifdef __STDC__
15201 # include <limits.h>
15202 #else
15203 # include <assert.h>
15204 #endif
15205
15206 #undef $ac_func
15207
15208 /* Override any GCC internal prototype to avoid an error.
15209    Use char because int might match the return type of a GCC
15210    builtin and then its argument prototype would still apply.  */
15211 #ifdef __cplusplus
15212 extern "C"
15213 #endif
15214 char $ac_func ();
15215 /* The GNU C library defines this for functions which it implements
15216     to always fail with ENOSYS.  Some functions are actually named
15217     something starting with __ and the normal name is an alias.  */
15218 #if defined __stub_$ac_func || defined __stub___$ac_func
15219 choke me
15220 #endif
15221
15222 int
15223 main ()
15224 {
15225 return $ac_func ();
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_link") 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } && {
15244          test -z "$ac_c_werror_flag" ||
15245          test ! -s conftest.err
15246        } && test -s conftest$ac_exeext &&
15247        $as_test_x conftest$ac_exeext; then
15248   eval "$as_ac_var=yes"
15249 else
15250   echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253         eval "$as_ac_var=no"
15254 fi
15255
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257       conftest$ac_exeext conftest.$ac_ext
15258 fi
15259 ac_res=`eval echo '${'$as_ac_var'}'`
15260                { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_var'}'` = yes; then
15263   cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15265 _ACEOF
15266
15267 fi
15268 done
15269
15270
15271 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15272
15273 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15274 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15275 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lV3  $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286
15287 /* Override any GCC internal prototype to avoid an error.
15288    Use char because int might match the return type of a GCC
15289    builtin and then its argument prototype would still apply.  */
15290 #ifdef __cplusplus
15291 extern "C"
15292 #endif
15293 char sigset ();
15294 int
15295 main ()
15296 {
15297 return sigset ();
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_link") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } && {
15316          test -z "$ac_c_werror_flag" ||
15317          test ! -s conftest.err
15318        } && test -s conftest$ac_exeext &&
15319        $as_test_x conftest$ac_exeext; then
15320   ac_cv_lib_V3_sigset=yes
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325         ac_cv_lib_V3_sigset=no
15326 fi
15327
15328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15329       conftest$ac_exeext conftest.$ac_ext
15330 LIBS=$ac_check_lib_save_LIBS
15331 fi
15332 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15333 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15334 if test $ac_cv_lib_V3_sigset = yes; then
15335   cat >>confdefs.h <<_ACEOF
15336 #define HAVE_LIBV3 1
15337 _ACEOF
15338
15339   LIBS="-lV3 $LIBS"
15340
15341 fi
15342
15343 fi
15344
15345 if test $ol_cv_msvc = yes ; then
15346    ol_cv_winsock=yes
15347 fi
15348
15349 if test "$ac_cv_header_winsock_h" = yes; then
15350         { echo "$as_me:$LINENO: checking for winsock" >&5
15351 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15352 if test "${ol_cv_winsock+set}" = set; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355
15356         save_LIBS="$LIBS"
15357         for curlib in none ws2_32 wsock32; do
15358                 if test $curlib != none ; then
15359                 LIBS="$save_LIBS -l$curlib"
15360                 fi
15361                 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 #include <winsock.h>
15368
15369 int
15370 main ()
15371 {
15372
15373                         socket(0,0,0);
15374                         select(0,NULL,NULL,NULL,NULL);
15375                         closesocket(0);
15376                         gethostname(NULL,0);
15377
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (ac_try="$ac_link"
15384 case "(($ac_try" in
15385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386   *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389   (eval "$ac_link") 2>conftest.er1
15390   ac_status=$?
15391   grep -v '^ *+' conftest.er1 >conftest.err
15392   rm -f conftest.er1
15393   cat conftest.err >&5
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } && {
15396          test -z "$ac_c_werror_flag" ||
15397          test ! -s conftest.err
15398        } && test -s conftest$ac_exeext &&
15399        $as_test_x conftest$ac_exeext; then
15400   ol_cv_winsock=$curlib
15401 else
15402   echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15404
15405         ol_cv_winsock=no
15406 fi
15407
15408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409       conftest$ac_exeext conftest.$ac_ext
15410
15411                 test "$ol_cv_winsock" != no && break
15412         done
15413         LIBS="$save_LIBS"
15414
15415 fi
15416 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15417 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15418
15419         if test $ol_cv_winsock != no ; then
15420
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_WINSOCK 1
15423 _ACEOF
15424
15425         ac_cv_func_socket=yes
15426         ac_cv_func_select=yes
15427         ac_cv_func_closesocket=yes
15428         ac_cv_func_gethostname=yes
15429
15430                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15431                 LIBS="$LIBS -l$ol_cv_winsock"
15432                 fi
15433
15434         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15435
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_WINSOCK2 1
15438 _ACEOF
15439
15440         fi
15441         fi
15442 fi
15443
15444
15445 { echo "$as_me:$LINENO: checking for socket" >&5
15446 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15447 if test "${ac_cv_func_socket+set}" = set; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   cat >conftest.$ac_ext <<_ACEOF
15451 /* confdefs.h.  */
15452 _ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h.  */
15456 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15458 #define socket innocuous_socket
15459
15460 /* System header to define __stub macros and hopefully few prototypes,
15461     which can conflict with char socket (); below.
15462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15463     <limits.h> exists even on freestanding compilers.  */
15464
15465 #ifdef __STDC__
15466 # include <limits.h>
15467 #else
15468 # include <assert.h>
15469 #endif
15470
15471 #undef socket
15472
15473 /* Override any GCC internal prototype to avoid an error.
15474    Use char because int might match the return type of a GCC
15475    builtin and then its argument prototype would still apply.  */
15476 #ifdef __cplusplus
15477 extern "C"
15478 #endif
15479 char socket ();
15480 /* The GNU C library defines this for functions which it implements
15481     to always fail with ENOSYS.  Some functions are actually named
15482     something starting with __ and the normal name is an alias.  */
15483 #if defined __stub_socket || defined __stub___socket
15484 choke me
15485 #endif
15486
15487 int
15488 main ()
15489 {
15490 return socket ();
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_link") 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } && {
15509          test -z "$ac_c_werror_flag" ||
15510          test ! -s conftest.err
15511        } && test -s conftest$ac_exeext &&
15512        $as_test_x conftest$ac_exeext; then
15513   ac_cv_func_socket=yes
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518         ac_cv_func_socket=no
15519 fi
15520
15521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522       conftest$ac_exeext conftest.$ac_ext
15523 fi
15524 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15525 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15526 if test $ac_cv_func_socket = yes; then
15527   :
15528 else
15529
15530
15531 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15532 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15533 if test "${ac_cv_lib_socket_main+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lsocket  $LIBS"
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h.  */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h.  */
15544
15545
15546 int
15547 main ()
15548 {
15549 return main ();
15550   ;
15551   return 0;
15552 }
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_link") 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } && {
15568          test -z "$ac_c_werror_flag" ||
15569          test ! -s conftest.err
15570        } && test -s conftest$ac_exeext &&
15571        $as_test_x conftest$ac_exeext; then
15572   ac_cv_lib_socket_main=yes
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577         ac_cv_lib_socket_main=no
15578 fi
15579
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581       conftest$ac_exeext conftest.$ac_ext
15582 LIBS=$ac_check_lib_save_LIBS
15583 fi
15584 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15585 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15586 if test $ac_cv_lib_socket_main = yes; then
15587   cat >>confdefs.h <<_ACEOF
15588 #define HAVE_LIBSOCKET 1
15589 _ACEOF
15590
15591   LIBS="-lsocket $LIBS"
15592
15593 fi
15594
15595
15596 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15597 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_net_main+set}" = set; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lnet  $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h.  */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h.  */
15609
15610
15611 int
15612 main ()
15613 {
15614 return main ();
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_link") 2>conftest.er1
15627   ac_status=$?
15628   grep -v '^ *+' conftest.er1 >conftest.err
15629   rm -f conftest.er1
15630   cat conftest.err >&5
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); } && {
15633          test -z "$ac_c_werror_flag" ||
15634          test ! -s conftest.err
15635        } && test -s conftest$ac_exeext &&
15636        $as_test_x conftest$ac_exeext; then
15637   ac_cv_lib_net_main=yes
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642         ac_cv_lib_net_main=no
15643 fi
15644
15645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15646       conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15648 fi
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15650 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15651 if test $ac_cv_lib_net_main = yes; then
15652   cat >>confdefs.h <<_ACEOF
15653 #define HAVE_LIBNET 1
15654 _ACEOF
15655
15656   LIBS="-lnet $LIBS"
15657
15658 fi
15659
15660
15661 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15662 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15663 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15664   echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666   ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lnsl_s  $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h.  */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h.  */
15674
15675
15676 int
15677 main ()
15678 {
15679 return main ();
15680   ;
15681   return 0;
15682 }
15683 _ACEOF
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688   *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691   (eval "$ac_link") 2>conftest.er1
15692   ac_status=$?
15693   grep -v '^ *+' conftest.er1 >conftest.err
15694   rm -f conftest.er1
15695   cat conftest.err >&5
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } && {
15698          test -z "$ac_c_werror_flag" ||
15699          test ! -s conftest.err
15700        } && test -s conftest$ac_exeext &&
15701        $as_test_x conftest$ac_exeext; then
15702   ac_cv_lib_nsl_s_main=yes
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707         ac_cv_lib_nsl_s_main=no
15708 fi
15709
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711       conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15713 fi
15714 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15715 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15716 if test $ac_cv_lib_nsl_s_main = yes; then
15717   cat >>confdefs.h <<_ACEOF
15718 #define HAVE_LIBNSL_S 1
15719 _ACEOF
15720
15721   LIBS="-lnsl_s $LIBS"
15722
15723 fi
15724
15725
15726 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15727 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15728 if test "${ac_cv_lib_nsl_main+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   ac_check_lib_save_LIBS=$LIBS
15732 LIBS="-lnsl  $LIBS"
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739
15740
15741 int
15742 main ()
15743 {
15744 return main ();
15745   ;
15746   return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753   *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756   (eval "$ac_link") 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } && {
15763          test -z "$ac_c_werror_flag" ||
15764          test ! -s conftest.err
15765        } && test -s conftest$ac_exeext &&
15766        $as_test_x conftest$ac_exeext; then
15767   ac_cv_lib_nsl_main=yes
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772         ac_cv_lib_nsl_main=no
15773 fi
15774
15775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15776       conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15778 fi
15779 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15780 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15781 if test $ac_cv_lib_nsl_main = yes; then
15782   cat >>confdefs.h <<_ACEOF
15783 #define HAVE_LIBNSL 1
15784 _ACEOF
15785
15786   LIBS="-lnsl $LIBS"
15787
15788 fi
15789
15790
15791 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15792 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15793 if test "${ac_cv_lib_inet_socket+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-linet  $LIBS"
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h.  */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h.  */
15804
15805 /* Override any GCC internal prototype to avoid an error.
15806    Use char because int might match the return type of a GCC
15807    builtin and then its argument prototype would still apply.  */
15808 #ifdef __cplusplus
15809 extern "C"
15810 #endif
15811 char socket ();
15812 int
15813 main ()
15814 {
15815 return socket ();
15816   ;
15817   return 0;
15818 }
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827   (eval "$ac_link") 2>conftest.er1
15828   ac_status=$?
15829   grep -v '^ *+' conftest.er1 >conftest.err
15830   rm -f conftest.er1
15831   cat conftest.err >&5
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } && {
15834          test -z "$ac_c_werror_flag" ||
15835          test ! -s conftest.err
15836        } && test -s conftest$ac_exeext &&
15837        $as_test_x conftest$ac_exeext; then
15838   ac_cv_lib_inet_socket=yes
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843         ac_cv_lib_inet_socket=no
15844 fi
15845
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847       conftest$ac_exeext conftest.$ac_ext
15848 LIBS=$ac_check_lib_save_LIBS
15849 fi
15850 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15851 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15852 if test $ac_cv_lib_inet_socket = yes; then
15853   cat >>confdefs.h <<_ACEOF
15854 #define HAVE_LIBINET 1
15855 _ACEOF
15856
15857   LIBS="-linet $LIBS"
15858
15859 fi
15860
15861
15862 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15863 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15864 if test "${ac_cv_lib_gen_main+set}" = set; then
15865   echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867   ac_check_lib_save_LIBS=$LIBS
15868 LIBS="-lgen  $LIBS"
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h.  */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h.  */
15875
15876
15877 int
15878 main ()
15879 {
15880 return main ();
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (ac_try="$ac_link"
15887 case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_link") 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } && {
15899          test -z "$ac_c_werror_flag" ||
15900          test ! -s conftest.err
15901        } && test -s conftest$ac_exeext &&
15902        $as_test_x conftest$ac_exeext; then
15903   ac_cv_lib_gen_main=yes
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908         ac_cv_lib_gen_main=no
15909 fi
15910
15911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15912       conftest$ac_exeext conftest.$ac_ext
15913 LIBS=$ac_check_lib_save_LIBS
15914 fi
15915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15916 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15917 if test $ac_cv_lib_gen_main = yes; then
15918   cat >>confdefs.h <<_ACEOF
15919 #define HAVE_LIBGEN 1
15920 _ACEOF
15921
15922   LIBS="-lgen $LIBS"
15923
15924 fi
15925
15926
15927 fi
15928
15929
15930 { echo "$as_me:$LINENO: checking for select" >&5
15931 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15932 if test "${ac_cv_func_select+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 /* Define select to an innocuous variant, in case <limits.h> declares select.
15942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15943 #define select innocuous_select
15944
15945 /* System header to define __stub macros and hopefully few prototypes,
15946     which can conflict with char select (); below.
15947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15948     <limits.h> exists even on freestanding compilers.  */
15949
15950 #ifdef __STDC__
15951 # include <limits.h>
15952 #else
15953 # include <assert.h>
15954 #endif
15955
15956 #undef select
15957
15958 /* Override any GCC internal prototype to avoid an error.
15959    Use char because int might match the return type of a GCC
15960    builtin and then its argument prototype would still apply.  */
15961 #ifdef __cplusplus
15962 extern "C"
15963 #endif
15964 char select ();
15965 /* The GNU C library defines this for functions which it implements
15966     to always fail with ENOSYS.  Some functions are actually named
15967     something starting with __ and the normal name is an alias.  */
15968 #if defined __stub_select || defined __stub___select
15969 choke me
15970 #endif
15971
15972 int
15973 main ()
15974 {
15975 return select ();
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987   (eval "$ac_link") 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } && {
15994          test -z "$ac_c_werror_flag" ||
15995          test ! -s conftest.err
15996        } && test -s conftest$ac_exeext &&
15997        $as_test_x conftest$ac_exeext; then
15998   ac_cv_func_select=yes
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003         ac_cv_func_select=no
16004 fi
16005
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007       conftest$ac_exeext conftest.$ac_ext
16008 fi
16009 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16010 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16011 if test $ac_cv_func_select = yes; then
16012   :
16013 else
16014   { { echo "$as_me:$LINENO: error: select() required." >&5
16015 echo "$as_me: error: select() required." >&2;}
16016    { (exit 1); exit 1; }; }
16017 fi
16018
16019
16020 if test "${ac_cv_header_winsock_h}" != yes; then
16021
16022
16023 for ac_header in sys/select.h sys/socket.h
16024 do
16025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 fi
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033                { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16035 else
16036   # Is the header compilable?
16037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045 $ac_includes_default
16046 #include <$ac_header>
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055   (eval "$ac_compile") 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } && {
16062          test -z "$ac_c_werror_flag" ||
16063          test ! -s conftest.err
16064        } && test -s conftest.$ac_objext; then
16065   ac_header_compiler=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070         ac_header_compiler=no
16071 fi
16072
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075 echo "${ECHO_T}$ac_header_compiler" >&6; }
16076
16077 # Is the header present?
16078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 #include <$ac_header>
16087 _ACEOF
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095   ac_status=$?
16096   grep -v '^ *+' conftest.er1 >conftest.err
16097   rm -f conftest.er1
16098   cat conftest.err >&5
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } >/dev/null && {
16101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102          test ! -s conftest.err
16103        }; then
16104   ac_header_preproc=yes
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109   ac_header_preproc=no
16110 fi
16111
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16115
16116 # So?  What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118   yes:no: )
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123     ac_header_preproc=yes
16124     ;;
16125   no:yes:* )
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138     ( cat <<\_ASBOX
16139 ## --------------------------------------------- ##
16140 ## Report this to <http://www.openldap.org/its/> ##
16141 ## --------------------------------------------- ##
16142 _ASBOX
16143      ) | sed "s/^/$as_me: WARNING:     /" >&2
16144     ;;
16145 esac
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   eval "$as_ac_Header=\$ac_header_preproc"
16152 fi
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154                { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16156
16157 fi
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159   cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16161 _ACEOF
16162
16163 fi
16164
16165 done
16166
16167 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16168 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16169 if test "${ac_cv_func_select_args+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16173  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16174   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16175    cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 $ac_includes_default
16182 #ifdef HAVE_SYS_SELECT_H
16183 # include <sys/select.h>
16184 #endif
16185 #ifdef HAVE_SYS_SOCKET_H
16186 # include <sys/socket.h>
16187 #endif
16188
16189 int
16190 main ()
16191 {
16192 extern int select ($ac_arg1,
16193                                             $ac_arg234, $ac_arg234, $ac_arg234,
16194                                             $ac_arg5);
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_compile") 2>conftest.er1
16207   ac_status=$?
16208   grep -v '^ *+' conftest.er1 >conftest.err
16209   rm -f conftest.er1
16210   cat conftest.err >&5
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); } && {
16213          test -z "$ac_c_werror_flag" ||
16214          test ! -s conftest.err
16215        } && test -s conftest.$ac_objext; then
16216   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221
16222 fi
16223
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225   done
16226  done
16227 done
16228 # Provide a safe default value.
16229 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16230
16231 fi
16232 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16233 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16234 ac_save_IFS=$IFS; IFS=','
16235 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16236 IFS=$ac_save_IFS
16237 shift
16238
16239 cat >>confdefs.h <<_ACEOF
16240 #define SELECT_TYPE_ARG1 $1
16241 _ACEOF
16242
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define SELECT_TYPE_ARG234 ($2)
16246 _ACEOF
16247
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define SELECT_TYPE_ARG5 ($3)
16251 _ACEOF
16252
16253 rm -f conftest*
16254
16255 fi
16256
16257
16258
16259 for ac_func in poll
16260 do
16261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16265   echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267   cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h.  */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h.  */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16275 #define $ac_func innocuous_$ac_func
16276
16277 /* System header to define __stub macros and hopefully few prototypes,
16278     which can conflict with char $ac_func (); below.
16279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280     <limits.h> exists even on freestanding compilers.  */
16281
16282 #ifdef __STDC__
16283 # include <limits.h>
16284 #else
16285 # include <assert.h>
16286 #endif
16287
16288 #undef $ac_func
16289
16290 /* Override any GCC internal prototype to avoid an error.
16291    Use char because int might match the return type of a GCC
16292    builtin and then its argument prototype would still apply.  */
16293 #ifdef __cplusplus
16294 extern "C"
16295 #endif
16296 char $ac_func ();
16297 /* The GNU C library defines this for functions which it implements
16298     to always fail with ENOSYS.  Some functions are actually named
16299     something starting with __ and the normal name is an alias.  */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16301 choke me
16302 #endif
16303
16304 int
16305 main ()
16306 {
16307 return $ac_func ();
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316   *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319   (eval "$ac_link") 2>conftest.er1
16320   ac_status=$?
16321   grep -v '^ *+' conftest.er1 >conftest.err
16322   rm -f conftest.er1
16323   cat conftest.err >&5
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); } && {
16326          test -z "$ac_c_werror_flag" ||
16327          test ! -s conftest.err
16328        } && test -s conftest$ac_exeext &&
16329        $as_test_x conftest$ac_exeext; then
16330   eval "$as_ac_var=yes"
16331 else
16332   echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335         eval "$as_ac_var=no"
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339       conftest$ac_exeext conftest.$ac_ext
16340 fi
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342                { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345   cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16347 _ACEOF
16348
16349 fi
16350 done
16351
16352 if test $ac_cv_func_poll = yes; then
16353
16354
16355 for ac_header in poll.h sys/poll.h
16356 do
16357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 fi
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365                { echo "$as_me:$LINENO: result: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16367 else
16368   # Is the header compilable?
16369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h.  */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h.  */
16377 $ac_includes_default
16378 #include <$ac_header>
16379 _ACEOF
16380 rm -f conftest.$ac_objext
16381 if { (ac_try="$ac_compile"
16382 case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387   (eval "$ac_compile") 2>conftest.er1
16388   ac_status=$?
16389   grep -v '^ *+' conftest.er1 >conftest.err
16390   rm -f conftest.er1
16391   cat conftest.err >&5
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); } && {
16394          test -z "$ac_c_werror_flag" ||
16395          test ! -s conftest.err
16396        } && test -s conftest.$ac_objext; then
16397   ac_header_compiler=yes
16398 else
16399   echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402         ac_header_compiler=no
16403 fi
16404
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6; }
16408
16409 # Is the header present?
16410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 #include <$ac_header>
16419 _ACEOF
16420 if { (ac_try="$ac_cpp conftest.$ac_ext"
16421 case "(($ac_try" in
16422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423   *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16427   ac_status=$?
16428   grep -v '^ *+' conftest.er1 >conftest.err
16429   rm -f conftest.er1
16430   cat conftest.err >&5
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } >/dev/null && {
16433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16434          test ! -s conftest.err
16435        }; then
16436   ac_header_preproc=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441   ac_header_preproc=no
16442 fi
16443
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16447
16448 # So?  What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16450   yes:no: )
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455     ac_header_preproc=yes
16456     ;;
16457   no:yes:* )
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16470     ( cat <<\_ASBOX
16471 ## --------------------------------------------- ##
16472 ## Report this to <http://www.openldap.org/its/> ##
16473 ## --------------------------------------------- ##
16474 _ASBOX
16475      ) | sed "s/^/$as_me: WARNING:     /" >&2
16476     ;;
16477 esac
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483   eval "$as_ac_Header=\$ac_header_preproc"
16484 fi
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486                { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16488
16489 fi
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491   cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16493 _ACEOF
16494
16495 fi
16496
16497 done
16498
16499 fi
16500
16501
16502 for ac_header in sys/epoll.h
16503 do
16504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 fi
16511 ac_res=`eval echo '${'$as_ac_Header'}'`
16512                { echo "$as_me:$LINENO: result: $ac_res" >&5
16513 echo "${ECHO_T}$ac_res" >&6; }
16514 else
16515   # Is the header compilable?
16516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 $ac_includes_default
16525 #include <$ac_header>
16526 _ACEOF
16527 rm -f conftest.$ac_objext
16528 if { (ac_try="$ac_compile"
16529 case "(($ac_try" in
16530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531   *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534   (eval "$ac_compile") 2>conftest.er1
16535   ac_status=$?
16536   grep -v '^ *+' conftest.er1 >conftest.err
16537   rm -f conftest.er1
16538   cat conftest.err >&5
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); } && {
16541          test -z "$ac_c_werror_flag" ||
16542          test ! -s conftest.err
16543        } && test -s conftest.$ac_objext; then
16544   ac_header_compiler=yes
16545 else
16546   echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549         ac_header_compiler=no
16550 fi
16551
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16554 echo "${ECHO_T}$ac_header_compiler" >&6; }
16555
16556 # Is the header present?
16557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565 #include <$ac_header>
16566 _ACEOF
16567 if { (ac_try="$ac_cpp conftest.$ac_ext"
16568 case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } >/dev/null && {
16580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16581          test ! -s conftest.err
16582        }; then
16583   ac_header_preproc=yes
16584 else
16585   echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588   ac_header_preproc=no
16589 fi
16590
16591 rm -f conftest.err conftest.$ac_ext
16592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16593 echo "${ECHO_T}$ac_header_preproc" >&6; }
16594
16595 # So?  What about this header?
16596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16597   yes:no: )
16598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16602     ac_header_preproc=yes
16603     ;;
16604   no:yes:* )
16605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16617     ( cat <<\_ASBOX
16618 ## --------------------------------------------- ##
16619 ## Report this to <http://www.openldap.org/its/> ##
16620 ## --------------------------------------------- ##
16621 _ASBOX
16622      ) | sed "s/^/$as_me: WARNING:     /" >&2
16623     ;;
16624 esac
16625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16628   echo $ECHO_N "(cached) $ECHO_C" >&6
16629 else
16630   eval "$as_ac_Header=\$ac_header_preproc"
16631 fi
16632 ac_res=`eval echo '${'$as_ac_Header'}'`
16633                { echo "$as_me:$LINENO: result: $ac_res" >&5
16634 echo "${ECHO_T}$ac_res" >&6; }
16635
16636 fi
16637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16638   cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16640 _ACEOF
16641
16642 fi
16643
16644 done
16645
16646 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16647         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16648 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16649         if test "$cross_compiling" = yes; then
16650   { echo "$as_me:$LINENO: result: no" >&5
16651 echo "${ECHO_T}no" >&6; }
16652 else
16653   cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 int main(int argc, char **argv)
16660 {
16661         int epfd = epoll_create(256);
16662         exit (epfd == -1 ? 1 : 0);
16663 }
16664 _ACEOF
16665 rm -f conftest$ac_exeext
16666 if { (ac_try="$ac_link"
16667 case "(($ac_try" in
16668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669   *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672   (eval "$ac_link") 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16687
16688 cat >>confdefs.h <<\_ACEOF
16689 #define HAVE_EPOLL 1
16690 _ACEOF
16691
16692 else
16693   echo "$as_me: program exited with status $ac_status" >&5
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 ( exit $ac_status )
16698 { echo "$as_me:$LINENO: result: no" >&5
16699 echo "${ECHO_T}no" >&6; }
16700 fi
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16702 fi
16703
16704
16705 fi
16706
16707
16708 for ac_header in sys/devpoll.h
16709 do
16710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715   echo $ECHO_N "(cached) $ECHO_C" >&6
16716 fi
16717 ac_res=`eval echo '${'$as_ac_Header'}'`
16718                { echo "$as_me:$LINENO: result: $ac_res" >&5
16719 echo "${ECHO_T}$ac_res" >&6; }
16720 else
16721   # Is the header compilable?
16722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 $ac_includes_default
16731 #include <$ac_header>
16732 _ACEOF
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737   *) ac_try_echo=$ac_try;;
16738 esac
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740   (eval "$ac_compile") 2>conftest.er1
16741   ac_status=$?
16742   grep -v '^ *+' conftest.er1 >conftest.err
16743   rm -f conftest.er1
16744   cat conftest.err >&5
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); } && {
16747          test -z "$ac_c_werror_flag" ||
16748          test ! -s conftest.err
16749        } && test -s conftest.$ac_objext; then
16750   ac_header_compiler=yes
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755         ac_header_compiler=no
16756 fi
16757
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16760 echo "${ECHO_T}$ac_header_compiler" >&6; }
16761
16762 # Is the header present?
16763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16765 cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h.  */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h.  */
16771 #include <$ac_header>
16772 _ACEOF
16773 if { (ac_try="$ac_cpp conftest.$ac_ext"
16774 case "(($ac_try" in
16775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776   *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } >/dev/null && {
16786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16787          test ! -s conftest.err
16788        }; then
16789   ac_header_preproc=yes
16790 else
16791   echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794   ac_header_preproc=no
16795 fi
16796
16797 rm -f conftest.err conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16799 echo "${ECHO_T}$ac_header_preproc" >&6; }
16800
16801 # So?  What about this header?
16802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16803   yes:no: )
16804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16808     ac_header_preproc=yes
16809     ;;
16810   no:yes:* )
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16823     ( cat <<\_ASBOX
16824 ## --------------------------------------------- ##
16825 ## Report this to <http://www.openldap.org/its/> ##
16826 ## --------------------------------------------- ##
16827 _ASBOX
16828      ) | sed "s/^/$as_me: WARNING:     /" >&2
16829     ;;
16830 esac
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836   eval "$as_ac_Header=\$ac_header_preproc"
16837 fi
16838 ac_res=`eval echo '${'$as_ac_Header'}'`
16839                { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841
16842 fi
16843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16844   cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16846 _ACEOF
16847
16848 fi
16849
16850 done
16851
16852 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16853                 -a "${ac_cv_header_poll_h}" = yes ; \
16854 then
16855         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16856 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16857         if test "$cross_compiling" = yes; then
16858   { echo "$as_me:$LINENO: result: no" >&5
16859 echo "${ECHO_T}no" >&6; }
16860 else
16861   cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 int main(int argc, char **argv)
16868 {
16869         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16870         exit (devpollfd == -1 ? 1 : 0);
16871 }
16872 _ACEOF
16873 rm -f conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_link") 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884   { (case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_try") 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16895
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE_DEVPOLL 1
16898 _ACEOF
16899
16900 else
16901   echo "$as_me: program exited with status $ac_status" >&5
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16904
16905 ( exit $ac_status )
16906 { echo "$as_me:$LINENO: result: no" >&5
16907 echo "${ECHO_T}no" >&6; }
16908 fi
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16910 fi
16911
16912
16913 fi
16914
16915 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16916 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16917 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920
16921         cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h.  */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h.  */
16927
16928 #include <stdio.h>
16929 #include <sys/types.h>
16930 #include <errno.h>
16931 #ifdef _WIN32
16932 #include <stdlib.h>
16933 #endif
16934 int
16935 main ()
16936 {
16937 char *c = (char *) *sys_errlist
16938   ;
16939   return 0;
16940 }
16941 _ACEOF
16942 rm -f conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_compile") 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } && {
16956          test -z "$ac_c_werror_flag" ||
16957          test ! -s conftest.err
16958        } && test -s conftest.$ac_objext; then
16959   ol_cv_dcl_sys_errlist=yes
16960         ol_cv_have_sys_errlist=yes
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965         ol_cv_dcl_sys_errlist=no
16966 fi
16967
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 fi
16970 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16971 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16972 #
16973 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16974 if test $ol_cv_dcl_sys_errlist = no ; then
16975
16976 cat >>confdefs.h <<\_ACEOF
16977 #define DECL_SYS_ERRLIST 1
16978 _ACEOF
16979
16980
16981         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16982 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16983 if test "${ol_cv_have_sys_errlist+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986
16987                 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h.  */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h.  */
16993 #include <errno.h>
16994 int
16995 main ()
16996 {
16997 char *c = (char *) *sys_errlist
16998   ;
16999   return 0;
17000 }
17001 _ACEOF
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_link") 2>conftest.er1
17010   ac_status=$?
17011   grep -v '^ *+' conftest.er1 >conftest.err
17012   rm -f conftest.er1
17013   cat conftest.err >&5
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } && {
17016          test -z "$ac_c_werror_flag" ||
17017          test ! -s conftest.err
17018        } && test -s conftest$ac_exeext &&
17019        $as_test_x conftest$ac_exeext; then
17020   ol_cv_have_sys_errlist=yes
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025         ol_cv_have_sys_errlist=no
17026 fi
17027
17028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17029       conftest$ac_exeext conftest.$ac_ext
17030 fi
17031 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17032 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17033 fi
17034 if test $ol_cv_have_sys_errlist = yes ; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_SYS_ERRLIST 1
17038 _ACEOF
17039
17040 fi
17041
17042
17043 for ac_func in strerror strerror_r
17044 do
17045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051   cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17059 #define $ac_func innocuous_$ac_func
17060
17061 /* System header to define __stub macros and hopefully few prototypes,
17062     which can conflict with char $ac_func (); below.
17063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064     <limits.h> exists even on freestanding compilers.  */
17065
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071
17072 #undef $ac_func
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075    Use char because int might match the return type of a GCC
17076    builtin and then its argument prototype would still apply.  */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char $ac_func ();
17081 /* The GNU C library defines this for functions which it implements
17082     to always fail with ENOSYS.  Some functions are actually named
17083     something starting with __ and the normal name is an alias.  */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17085 choke me
17086 #endif
17087
17088 int
17089 main ()
17090 {
17091 return $ac_func ();
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_link") 2>conftest.er1
17104   ac_status=$?
17105   grep -v '^ *+' conftest.er1 >conftest.err
17106   rm -f conftest.er1
17107   cat conftest.err >&5
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } && {
17110          test -z "$ac_c_werror_flag" ||
17111          test ! -s conftest.err
17112        } && test -s conftest$ac_exeext &&
17113        $as_test_x conftest$ac_exeext; then
17114   eval "$as_ac_var=yes"
17115 else
17116   echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119         eval "$as_ac_var=no"
17120 fi
17121
17122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17123       conftest$ac_exeext conftest.$ac_ext
17124 fi
17125 ac_res=`eval echo '${'$as_ac_var'}'`
17126                { echo "$as_me:$LINENO: result: $ac_res" >&5
17127 echo "${ECHO_T}$ac_res" >&6; }
17128 if test `eval echo '${'$as_ac_var'}'` = yes; then
17129   cat >>confdefs.h <<_ACEOF
17130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17131 _ACEOF
17132
17133 fi
17134 done
17135
17136 ol_cv_func_strerror_r=no
17137 if test "${ac_cv_func_strerror_r}" = yes ; then
17138         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17139 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17140 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143
17144         cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150 #include <string.h>
17151 _ACEOF
17152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17153   $EGREP "strerror_r" >/dev/null 2>&1; then
17154   ol_decl_strerror_r=yes
17155 else
17156   ol_decl_strerror_r=no
17157 fi
17158 rm -f conftest*
17159
17160         if test $ol_decl_strerror_r = yes ; then
17161                 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167 #include <string.h>
17168 int
17169 main ()
17170 {
17171    /* from autoconf 2.59 */
17172                                 char buf[100];
17173                                 char x = *strerror_r (0, buf, sizeof buf);
17174                                 char *p = strerror_r (0, buf, sizeof buf);
17175
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_compile") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } && {
17194          test -z "$ac_c_werror_flag" ||
17195          test ! -s conftest.err
17196        } && test -s conftest.$ac_objext; then
17197   ol_cv_nonposix_strerror_r=yes
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202         ol_cv_nonposix_strerror_r=no
17203 fi
17204
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206         else
17207                 if test "$cross_compiling" = yes; then
17208   ol_cv_nonposix_strerror=no
17209 else
17210   cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217                         main() {
17218                                 char buf[100];
17219                                 buf[0] = 0;
17220                                 strerror_r( 1, buf, sizeof buf );
17221                                 exit( buf[0] == 0 );
17222                         }
17223
17224 _ACEOF
17225 rm -f conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_link") 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   ol_cv_nonposix_strerror_r=yes
17246 else
17247   echo "$as_me: program exited with status $ac_status" >&5
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 ( exit $ac_status )
17252 ol_cv_nonposix_strerror=no
17253 fi
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17255 fi
17256
17257
17258         fi
17259
17260 fi
17261 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17262 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17263 if test $ol_cv_nonposix_strerror_r = yes ; then
17264
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_NONPOSIX_STRERROR_R 1
17267 _ACEOF
17268
17269 fi
17270
17271 elif test "${ac_cv_func_strerror}" = no ; then
17272         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17273 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17274 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277
17278         cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284
17285 #include <stdio.h>
17286 #include <sys/types.h>
17287 #include <errno.h>
17288 #ifdef _WIN32
17289 #include <stdlib.h>
17290 #endif
17291 int
17292 main ()
17293 {
17294 char *c = (char *) *sys_errlist
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_compile") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } && {
17313          test -z "$ac_c_werror_flag" ||
17314          test ! -s conftest.err
17315        } && test -s conftest.$ac_objext; then
17316   ol_cv_dcl_sys_errlist=yes
17317         ol_cv_have_sys_errlist=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         ol_cv_dcl_sys_errlist=no
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 fi
17327 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17328 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17329 #
17330 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17331 if test $ol_cv_dcl_sys_errlist = no ; then
17332
17333 cat >>confdefs.h <<\_ACEOF
17334 #define DECL_SYS_ERRLIST 1
17335 _ACEOF
17336
17337
17338         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17339 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17340 if test "${ol_cv_have_sys_errlist+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343
17344                 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350 #include <errno.h>
17351 int
17352 main ()
17353 {
17354 char *c = (char *) *sys_errlist
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377   ol_cv_have_sys_errlist=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382         ol_cv_have_sys_errlist=no
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386       conftest$ac_exeext conftest.$ac_ext
17387 fi
17388 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17389 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17390 fi
17391 if test $ol_cv_have_sys_errlist = yes ; then
17392
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_SYS_ERRLIST 1
17395 _ACEOF
17396
17397 fi
17398
17399 fi
17400
17401
17402
17403 for ac_header in regex.h
17404 do
17405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411   cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h.  */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h.  */
17417 $ac_includes_default
17418 #ifdef HAVE_SYS_TYPES_H
17419 #include <sys/types.h>
17420 #endif
17421
17422
17423 #include <$ac_header>
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_compile") 2>conftest.er1
17433   ac_status=$?
17434   grep -v '^ *+' conftest.er1 >conftest.err
17435   rm -f conftest.er1
17436   cat conftest.err >&5
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } && {
17439          test -z "$ac_c_werror_flag" ||
17440          test ! -s conftest.err
17441        } && test -s conftest.$ac_objext; then
17442   eval "$as_ac_Header=yes"
17443 else
17444   echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17446
17447         eval "$as_ac_Header=no"
17448 fi
17449
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451 fi
17452 ac_res=`eval echo '${'$as_ac_Header'}'`
17453                { echo "$as_me:$LINENO: result: $ac_res" >&5
17454 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456   cat >>confdefs.h <<_ACEOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17458 _ACEOF
17459
17460 fi
17461
17462 done
17463
17464
17465 if test "$ac_cv_header_regex_h" != yes ; then
17466         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17467 echo "$as_me: error: POSIX regex.h required." >&2;}
17468    { (exit 1); exit 1; }; }
17469 fi
17470 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17471 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17472 if test "${ac_cv_search_regfree+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   ac_func_search_save_LIBS=$LIBS
17476 cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482
17483 /* Override any GCC internal prototype to avoid an error.
17484    Use char because int might match the return type of a GCC
17485    builtin and then its argument prototype would still apply.  */
17486 #ifdef __cplusplus
17487 extern "C"
17488 #endif
17489 char regfree ();
17490 int
17491 main ()
17492 {
17493 return regfree ();
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 for ac_lib in '' regex gnuregex; do
17499   if test -z "$ac_lib"; then
17500     ac_res="none required"
17501   else
17502     ac_res=-l$ac_lib
17503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17504   fi
17505   rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_link") 2>conftest.er1
17513   ac_status=$?
17514   grep -v '^ *+' conftest.er1 >conftest.err
17515   rm -f conftest.er1
17516   cat conftest.err >&5
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } && {
17519          test -z "$ac_c_werror_flag" ||
17520          test ! -s conftest.err
17521        } && test -s conftest$ac_exeext &&
17522        $as_test_x conftest$ac_exeext; then
17523   ac_cv_search_regfree=$ac_res
17524 else
17525   echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17527
17528
17529 fi
17530
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17532       conftest$ac_exeext
17533   if test "${ac_cv_search_regfree+set}" = set; then
17534   break
17535 fi
17536 done
17537 if test "${ac_cv_search_regfree+set}" = set; then
17538   :
17539 else
17540   ac_cv_search_regfree=no
17541 fi
17542 rm conftest.$ac_ext
17543 LIBS=$ac_func_search_save_LIBS
17544 fi
17545 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17546 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17547 ac_res=$ac_cv_search_regfree
17548 if test "$ac_res" != no; then
17549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17550   :
17551 else
17552   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17553 echo "$as_me: error: POSIX regex required." >&2;}
17554    { (exit 1); exit 1; }; }
17555 fi
17556
17557
17558
17559 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17560 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17561 if test "${ol_cv_c_posix_regex+set}" = set; then
17562   echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564
17565         if test "$cross_compiling" = yes; then
17566   ol_cv_c_posix_regex=cross
17567 else
17568   cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h.  */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h.  */
17574
17575 #include <sys/types.h>
17576 #include <regex.h>
17577 static char *pattern, *string;
17578 main()
17579 {
17580         int rc;
17581         regex_t re;
17582
17583         pattern = "^A";
17584
17585         if(regcomp(&re, pattern, 0)) {
17586                 return -1;
17587         }
17588
17589         string = "ALL MATCH";
17590
17591         rc = regexec(&re, string, 0, (void*)0, 0);
17592
17593         regfree(&re);
17594
17595         return rc;
17596 }
17597 _ACEOF
17598 rm -f conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_link") 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17609   { (case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_try") 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; }; then
17618   ol_cv_c_posix_regex=yes
17619 else
17620   echo "$as_me: program exited with status $ac_status" >&5
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 ( exit $ac_status )
17625 ol_cv_c_posix_regex=no
17626 fi
17627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17628 fi
17629
17630
17631 fi
17632 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17633 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17634
17635 if test "$ol_cv_c_posix_regex" = no ; then
17636         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17637 echo "$as_me: error: broken POSIX regex!" >&2;}
17638    { (exit 1); exit 1; }; }
17639 fi
17640
17641
17642 have_uuid=no
17643
17644 for ac_header in sys/uuid.h
17645 do
17646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17651   echo $ECHO_N "(cached) $ECHO_C" >&6
17652 fi
17653 ac_res=`eval echo '${'$as_ac_Header'}'`
17654                { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17656 else
17657   # Is the header compilable?
17658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666 $ac_includes_default
17667 #include <$ac_header>
17668 _ACEOF
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_compile") 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } && {
17683          test -z "$ac_c_werror_flag" ||
17684          test ! -s conftest.err
17685        } && test -s conftest.$ac_objext; then
17686   ac_header_compiler=yes
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691         ac_header_compiler=no
17692 fi
17693
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17696 echo "${ECHO_T}$ac_header_compiler" >&6; }
17697
17698 # Is the header present?
17699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17701 cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707 #include <$ac_header>
17708 _ACEOF
17709 if { (ac_try="$ac_cpp conftest.$ac_ext"
17710 case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } >/dev/null && {
17722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17723          test ! -s conftest.err
17724        }; then
17725   ac_header_preproc=yes
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730   ac_header_preproc=no
17731 fi
17732
17733 rm -f conftest.err conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17735 echo "${ECHO_T}$ac_header_preproc" >&6; }
17736
17737 # So?  What about this header?
17738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17739   yes:no: )
17740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17744     ac_header_preproc=yes
17745     ;;
17746   no:yes:* )
17747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17759     ( cat <<\_ASBOX
17760 ## --------------------------------------------- ##
17761 ## Report this to <http://www.openldap.org/its/> ##
17762 ## --------------------------------------------- ##
17763 _ASBOX
17764      ) | sed "s/^/$as_me: WARNING:     /" >&2
17765     ;;
17766 esac
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   eval "$as_ac_Header=\$ac_header_preproc"
17773 fi
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775                { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777
17778 fi
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780   cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17782 _ACEOF
17783
17784 fi
17785
17786 done
17787
17788 if test $ac_cv_header_sys_uuid_h = yes ; then
17789         save_LIBS="$LIBS"
17790         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17791 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17792 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795   ac_func_search_save_LIBS=$LIBS
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802
17803 /* Override any GCC internal prototype to avoid an error.
17804    Use char because int might match the return type of a GCC
17805    builtin and then its argument prototype would still apply.  */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char uuid_to_str ();
17810 int
17811 main ()
17812 {
17813 return uuid_to_str ();
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 for ac_lib in '' uuid; do
17819   if test -z "$ac_lib"; then
17820     ac_res="none required"
17821   else
17822     ac_res=-l$ac_lib
17823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17824   fi
17825   rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (ac_try="$ac_link"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_link") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_c_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest$ac_exeext &&
17842        $as_test_x conftest$ac_exeext; then
17843   ac_cv_search_uuid_to_str=$ac_res
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848
17849 fi
17850
17851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17852       conftest$ac_exeext
17853   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17854   break
17855 fi
17856 done
17857 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17858   :
17859 else
17860   ac_cv_search_uuid_to_str=no
17861 fi
17862 rm conftest.$ac_ext
17863 LIBS=$ac_func_search_save_LIBS
17864 fi
17865 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17866 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17867 ac_res=$ac_cv_search_uuid_to_str
17868 if test "$ac_res" != no; then
17869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17870   have_uuid=yes
17871 else
17872   :
17873 fi
17874
17875         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17876 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17877 if test "${ac_cv_search_uuid_create+set}" = set; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   ac_func_search_save_LIBS=$LIBS
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h.  */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h.  */
17887
17888 /* Override any GCC internal prototype to avoid an error.
17889    Use char because int might match the return type of a GCC
17890    builtin and then its argument prototype would still apply.  */
17891 #ifdef __cplusplus
17892 extern "C"
17893 #endif
17894 char uuid_create ();
17895 int
17896 main ()
17897 {
17898 return uuid_create ();
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 for ac_lib in '' uuid; do
17904   if test -z "$ac_lib"; then
17905     ac_res="none required"
17906   else
17907     ac_res=-l$ac_lib
17908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17909   fi
17910   rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (ac_try="$ac_link"
17912 case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_link") 2>conftest.er1
17918   ac_status=$?
17919   grep -v '^ *+' conftest.er1 >conftest.err
17920   rm -f conftest.er1
17921   cat conftest.err >&5
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } && {
17924          test -z "$ac_c_werror_flag" ||
17925          test ! -s conftest.err
17926        } && test -s conftest$ac_exeext &&
17927        $as_test_x conftest$ac_exeext; then
17928   ac_cv_search_uuid_create=$ac_res
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17937       conftest$ac_exeext
17938   if test "${ac_cv_search_uuid_create+set}" = set; then
17939   break
17940 fi
17941 done
17942 if test "${ac_cv_search_uuid_create+set}" = set; then
17943   :
17944 else
17945   ac_cv_search_uuid_create=no
17946 fi
17947 rm conftest.$ac_ext
17948 LIBS=$ac_func_search_save_LIBS
17949 fi
17950 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17951 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17952 ac_res=$ac_cv_search_uuid_create
17953 if test "$ac_res" != no; then
17954   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17955   :
17956 else
17957   have_uuid=no
17958 fi
17959
17960         LIBS="$save_LIBS"
17961
17962         if test $have_uuid = yes ; then
17963
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_UUID_TO_STR 1
17966 _ACEOF
17967
17968
17969                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17970                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17971         fi
17972 fi
17973
17974 if test $have_uuid = no ; then
17975
17976 for ac_header in uuid/uuid.h
17977 do
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983   echo $ECHO_N "(cached) $ECHO_C" >&6
17984 fi
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986                { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17988 else
17989   # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h.  */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h.  */
17998 $ac_includes_default
17999 #include <$ac_header>
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_compile") 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } && {
18015          test -z "$ac_c_werror_flag" ||
18016          test ! -s conftest.err
18017        } && test -s conftest.$ac_objext; then
18018   ac_header_compiler=yes
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023         ac_header_compiler=no
18024 fi
18025
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18029
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h.  */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h.  */
18039 #include <$ac_header>
18040 _ACEOF
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
18048   ac_status=$?
18049   grep -v '^ *+' conftest.er1 >conftest.err
18050   rm -f conftest.er1
18051   cat conftest.err >&5
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); } >/dev/null && {
18054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055          test ! -s conftest.err
18056        }; then
18057   ac_header_preproc=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062   ac_header_preproc=no
18063 fi
18064
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18068
18069 # So?  What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071   yes:no: )
18072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18076     ac_header_preproc=yes
18077     ;;
18078   no:yes:* )
18079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18091     ( cat <<\_ASBOX
18092 ## --------------------------------------------- ##
18093 ## Report this to <http://www.openldap.org/its/> ##
18094 ## --------------------------------------------- ##
18095 _ASBOX
18096      ) | sed "s/^/$as_me: WARNING:     /" >&2
18097     ;;
18098 esac
18099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   eval "$as_ac_Header=\$ac_header_preproc"
18105 fi
18106 ac_res=`eval echo '${'$as_ac_Header'}'`
18107                { echo "$as_me:$LINENO: result: $ac_res" >&5
18108 echo "${ECHO_T}$ac_res" >&6; }
18109
18110 fi
18111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18112   cat >>confdefs.h <<_ACEOF
18113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18114 _ACEOF
18115
18116 fi
18117
18118 done
18119
18120         if test $ac_cv_header_uuid_uuid_h = yes ; then
18121                 save_LIBS="$LIBS"
18122                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18123 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18124 if test "${ac_cv_search_uuid_generate+set}" = set; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127   ac_func_search_save_LIBS=$LIBS
18128 cat >conftest.$ac_ext <<_ACEOF
18129 /* confdefs.h.  */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h.  */
18134
18135 /* Override any GCC internal prototype to avoid an error.
18136    Use char because int might match the return type of a GCC
18137    builtin and then its argument prototype would still apply.  */
18138 #ifdef __cplusplus
18139 extern "C"
18140 #endif
18141 char uuid_generate ();
18142 int
18143 main ()
18144 {
18145 return uuid_generate ();
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150 for ac_lib in '' uuid; do
18151   if test -z "$ac_lib"; then
18152     ac_res="none required"
18153   else
18154     ac_res=-l$ac_lib
18155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18156   fi
18157   rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161   *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164   (eval "$ac_link") 2>conftest.er1
18165   ac_status=$?
18166   grep -v '^ *+' conftest.er1 >conftest.err
18167   rm -f conftest.er1
18168   cat conftest.err >&5
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); } && {
18171          test -z "$ac_c_werror_flag" ||
18172          test ! -s conftest.err
18173        } && test -s conftest$ac_exeext &&
18174        $as_test_x conftest$ac_exeext; then
18175   ac_cv_search_uuid_generate=$ac_res
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18184       conftest$ac_exeext
18185   if test "${ac_cv_search_uuid_generate+set}" = set; then
18186   break
18187 fi
18188 done
18189 if test "${ac_cv_search_uuid_generate+set}" = set; then
18190   :
18191 else
18192   ac_cv_search_uuid_generate=no
18193 fi
18194 rm conftest.$ac_ext
18195 LIBS=$ac_func_search_save_LIBS
18196 fi
18197 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18198 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18199 ac_res=$ac_cv_search_uuid_generate
18200 if test "$ac_res" != no; then
18201   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18202   have_uuid=yes
18203 else
18204   :
18205 fi
18206
18207                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18208 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18209 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18210   echo $ECHO_N "(cached) $ECHO_C" >&6
18211 else
18212   ac_func_search_save_LIBS=$LIBS
18213 cat >conftest.$ac_ext <<_ACEOF
18214 /* confdefs.h.  */
18215 _ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h.  */
18219
18220 /* Override any GCC internal prototype to avoid an error.
18221    Use char because int might match the return type of a GCC
18222    builtin and then its argument prototype would still apply.  */
18223 #ifdef __cplusplus
18224 extern "C"
18225 #endif
18226 char uuid_unparse_lower ();
18227 int
18228 main ()
18229 {
18230 return uuid_unparse_lower ();
18231   ;
18232   return 0;
18233 }
18234 _ACEOF
18235 for ac_lib in '' uuid; do
18236   if test -z "$ac_lib"; then
18237     ac_res="none required"
18238   else
18239     ac_res=-l$ac_lib
18240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18241   fi
18242   rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (ac_try="$ac_link"
18244 case "(($ac_try" in
18245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246   *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249   (eval "$ac_link") 2>conftest.er1
18250   ac_status=$?
18251   grep -v '^ *+' conftest.er1 >conftest.err
18252   rm -f conftest.er1
18253   cat conftest.err >&5
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } && {
18256          test -z "$ac_c_werror_flag" ||
18257          test ! -s conftest.err
18258        } && test -s conftest$ac_exeext &&
18259        $as_test_x conftest$ac_exeext; then
18260   ac_cv_search_uuid_unparse_lower=$ac_res
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265
18266 fi
18267
18268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18269       conftest$ac_exeext
18270   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18271   break
18272 fi
18273 done
18274 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18275   :
18276 else
18277   ac_cv_search_uuid_unparse_lower=no
18278 fi
18279 rm conftest.$ac_ext
18280 LIBS=$ac_func_search_save_LIBS
18281 fi
18282 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18283 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18284 ac_res=$ac_cv_search_uuid_unparse_lower
18285 if test "$ac_res" != no; then
18286   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18287   :
18288 else
18289   have_uuid=no
18290 fi
18291
18292                 LIBS="$save_LIBS"
18293
18294                 if test $have_uuid = yes ; then
18295
18296 cat >>confdefs.h <<\_ACEOF
18297 #define HAVE_UUID_GENERATE 1
18298 _ACEOF
18299
18300
18301                         test "$ac_cv_search_uuid_generate" = "none required" || \
18302                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18303                 fi
18304         fi
18305 fi
18306
18307 if test $have_uuid = no ; then
18308         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18309 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18310         save_LIBS="$LIBS"
18311         LIBS="$LIBS -lrpcrt4"
18312         cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h.  */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h.  */
18318
18319                 int __stdcall UuidCreate(void *);
18320                 int __stdcall UuidToStringA(void *,void **);
18321
18322 int
18323 main ()
18324 {
18325
18326                 UuidCreate(0);
18327                 UuidToStringA(0,0);
18328
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340   (eval "$ac_link") 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } && {
18347          test -z "$ac_c_werror_flag" ||
18348          test ! -s conftest.err
18349        } && test -s conftest$ac_exeext &&
18350        $as_test_x conftest$ac_exeext; then
18351   need_rpcrt=yes
18352 else
18353   echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356         need_rpcrt=no
18357 fi
18358
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360       conftest$ac_exeext conftest.$ac_ext
18361         if test $need_rpcrt = yes; then
18362                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18363         fi
18364         LIBS="$save_LIBS"
18365         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18366 echo "${ECHO_T}$need_rpcrt" >&6; }
18367 fi
18368
18369 ol_cv_lib_resolver=no
18370 if test $ol_cv_lib_resolver = no ; then
18371         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18372 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18373 if test "${ol_cv_resolver_none+set}" = set; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376
18377         ol_RESOLVER_LIB=
18378         ol_LIBS=$LIBS
18379         LIBS="$ol_RESOLVER_LIB $LIBS"
18380
18381         cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h.  */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h.  */
18387
18388 #ifdef HAVE_SYS_TYPES_H
18389 #       include <sys/types.h>
18390 #endif
18391 #include <netinet/in.h>
18392 #ifdef HAVE_ARPA_NAMESER_H
18393 #       include <arpa/nameser.h>
18394 #endif
18395 #ifdef HAVE_RESOLV_H
18396 #       include <resolv.h>
18397 #endif
18398
18399 int
18400 main ()
18401 {
18402 {
18403         int len, status;
18404         char *request = NULL;
18405         unsigned char reply[64*1024];
18406         unsigned char host[64*1024];
18407         unsigned char *p;
18408
18409 #ifdef NS_HFIXEDSZ
18410         /* Bind 8/9 interface */
18411         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18412 #else
18413         /* Bind 4 interface */
18414 # ifndef T_SRV
18415 #  define T_SRV 33
18416 # endif
18417         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18418 #endif
18419         p = reply;
18420 #ifdef NS_HFIXEDSZ
18421         /* Bind 8/9 interface */
18422         p += NS_HFIXEDSZ;
18423 #elif defined(HFIXEDSZ)
18424         /* Bind 4 interface w/ HFIXEDSZ */
18425         p += HFIXEDSZ;
18426 #else
18427         /* Bind 4 interface w/o HFIXEDSZ */
18428         p += sizeof(HEADER);
18429 #endif
18430         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18431 }
18432   ;
18433   return 0;
18434 }
18435 _ACEOF
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_link") 2>conftest.er1
18444   ac_status=$?
18445   grep -v '^ *+' conftest.er1 >conftest.err
18446   rm -f conftest.er1
18447   cat conftest.err >&5
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); } && {
18450          test -z "$ac_c_werror_flag" ||
18451          test ! -s conftest.err
18452        } && test -s conftest$ac_exeext &&
18453        $as_test_x conftest$ac_exeext; then
18454   ol_cv_resolver_none=yes
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459         ol_cv_resolver_none=no
18460 fi
18461
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463       conftest$ac_exeext conftest.$ac_ext
18464
18465         LIBS="$ol_LIBS"
18466
18467 fi
18468 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18469 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18470
18471         if test $ol_cv_resolver_none = yes ; then
18472                 ol_cv_lib_resolver=yes
18473         fi
18474 fi
18475
18476 if test $ol_cv_lib_resolver = no ; then
18477         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18478 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18479 if test "${ol_cv_resolver_resolv+set}" = set; then
18480   echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482
18483         ol_RESOLVER_LIB=-lresolv
18484         ol_LIBS=$LIBS
18485         LIBS="$ol_RESOLVER_LIB $LIBS"
18486
18487         cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h.  */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h.  */
18493
18494 #ifdef HAVE_SYS_TYPES_H
18495 #       include <sys/types.h>
18496 #endif
18497 #include <netinet/in.h>
18498 #ifdef HAVE_ARPA_NAMESER_H
18499 #       include <arpa/nameser.h>
18500 #endif
18501 #ifdef HAVE_RESOLV_H
18502 #       include <resolv.h>
18503 #endif
18504
18505 int
18506 main ()
18507 {
18508 {
18509         int len, status;
18510         char *request = NULL;
18511         unsigned char reply[64*1024];
18512         unsigned char host[64*1024];
18513         unsigned char *p;
18514
18515 #ifdef NS_HFIXEDSZ
18516         /* Bind 8/9 interface */
18517         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18518 #else
18519         /* Bind 4 interface */
18520 # ifndef T_SRV
18521 #  define T_SRV 33
18522 # endif
18523         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18524 #endif
18525         p = reply;
18526 #ifdef NS_HFIXEDSZ
18527         /* Bind 8/9 interface */
18528         p += NS_HFIXEDSZ;
18529 #elif defined(HFIXEDSZ)
18530         /* Bind 4 interface w/ HFIXEDSZ */
18531         p += HFIXEDSZ;
18532 #else
18533         /* Bind 4 interface w/o HFIXEDSZ */
18534         p += sizeof(HEADER);
18535 #endif
18536         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18537 }
18538   ;
18539   return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (ac_try="$ac_link"
18544 case "(($ac_try" in
18545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546   *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549   (eval "$ac_link") 2>conftest.er1
18550   ac_status=$?
18551   grep -v '^ *+' conftest.er1 >conftest.err
18552   rm -f conftest.er1
18553   cat conftest.err >&5
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); } && {
18556          test -z "$ac_c_werror_flag" ||
18557          test ! -s conftest.err
18558        } && test -s conftest$ac_exeext &&
18559        $as_test_x conftest$ac_exeext; then
18560   ol_cv_resolver_resolv=yes
18561 else
18562   echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565         ol_cv_resolver_resolv=no
18566 fi
18567
18568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18569       conftest$ac_exeext conftest.$ac_ext
18570
18571         LIBS="$ol_LIBS"
18572
18573 fi
18574 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18575 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18576
18577         if test $ol_cv_resolver_resolv = yes ; then
18578                 ol_cv_lib_resolver=-lresolv
18579         fi
18580 fi
18581
18582 if test $ol_cv_lib_resolver = no ; then
18583         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18584 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18585 if test "${ol_cv_resolver_bind+set}" = set; then
18586   echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588
18589         ol_RESOLVER_LIB=-lbind
18590         ol_LIBS=$LIBS
18591         LIBS="$ol_RESOLVER_LIB $LIBS"
18592
18593         cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599
18600 #ifdef HAVE_SYS_TYPES_H
18601 #       include <sys/types.h>
18602 #endif
18603 #include <netinet/in.h>
18604 #ifdef HAVE_ARPA_NAMESER_H
18605 #       include <arpa/nameser.h>
18606 #endif
18607 #ifdef HAVE_RESOLV_H
18608 #       include <resolv.h>
18609 #endif
18610
18611 int
18612 main ()
18613 {
18614 {
18615         int len, status;
18616         char *request = NULL;
18617         unsigned char reply[64*1024];
18618         unsigned char host[64*1024];
18619         unsigned char *p;
18620
18621 #ifdef NS_HFIXEDSZ
18622         /* Bind 8/9 interface */
18623         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18624 #else
18625         /* Bind 4 interface */
18626 # ifndef T_SRV
18627 #  define T_SRV 33
18628 # endif
18629         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18630 #endif
18631         p = reply;
18632 #ifdef NS_HFIXEDSZ
18633         /* Bind 8/9 interface */
18634         p += NS_HFIXEDSZ;
18635 #elif defined(HFIXEDSZ)
18636         /* Bind 4 interface w/ HFIXEDSZ */
18637         p += HFIXEDSZ;
18638 #else
18639         /* Bind 4 interface w/o HFIXEDSZ */
18640         p += sizeof(HEADER);
18641 #endif
18642         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18643 }
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652   *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655   (eval "$ac_link") 2>conftest.er1
18656   ac_status=$?
18657   grep -v '^ *+' conftest.er1 >conftest.err
18658   rm -f conftest.er1
18659   cat conftest.err >&5
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } && {
18662          test -z "$ac_c_werror_flag" ||
18663          test ! -s conftest.err
18664        } && test -s conftest$ac_exeext &&
18665        $as_test_x conftest$ac_exeext; then
18666   ol_cv_resolver_bind=yes
18667 else
18668   echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671         ol_cv_resolver_bind=no
18672 fi
18673
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675       conftest$ac_exeext conftest.$ac_ext
18676
18677         LIBS="$ol_LIBS"
18678
18679 fi
18680 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18681 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18682
18683         if test $ol_cv_resolver_bind = yes ; then
18684                 ol_cv_lib_resolver=-lbind
18685         fi
18686 fi
18687
18688
18689
18690 ol_link_dnssrv=no
18691 if test "$ol_cv_lib_resolver" != no ; then
18692
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE_RES_QUERY 1
18695 _ACEOF
18696
18697
18698         if test "$ol_enable_dnssrv" != no ; then
18699                 ol_link_dnssrv=yes
18700         fi
18701
18702         if test "$ol_cv_lib_resolver" != yes ; then
18703                 LIBS="$ol_cv_lib_resolver $LIBS"
18704         fi
18705 fi
18706
18707 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18708         if test "$ol_link_dnssrv" = no ; then
18709                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18710 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18711    { (exit 1); exit 1; }; }
18712         fi
18713 else
18714         ol_enable_dnssrv=no
18715 fi
18716
18717
18718 for ac_func in hstrerror
18719 do
18720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h.  */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h.  */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18734 #define $ac_func innocuous_$ac_func
18735
18736 /* System header to define __stub macros and hopefully few prototypes,
18737     which can conflict with char $ac_func (); below.
18738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739     <limits.h> exists even on freestanding compilers.  */
18740
18741 #ifdef __STDC__
18742 # include <limits.h>
18743 #else
18744 # include <assert.h>
18745 #endif
18746
18747 #undef $ac_func
18748
18749 /* Override any GCC internal prototype to avoid an error.
18750    Use char because int might match the return type of a GCC
18751    builtin and then its argument prototype would still apply.  */
18752 #ifdef __cplusplus
18753 extern "C"
18754 #endif
18755 char $ac_func ();
18756 /* The GNU C library defines this for functions which it implements
18757     to always fail with ENOSYS.  Some functions are actually named
18758     something starting with __ and the normal name is an alias.  */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18760 choke me
18761 #endif
18762
18763 int
18764 main ()
18765 {
18766 return $ac_func ();
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775   *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778   (eval "$ac_link") 2>conftest.er1
18779   ac_status=$?
18780   grep -v '^ *+' conftest.er1 >conftest.err
18781   rm -f conftest.er1
18782   cat conftest.err >&5
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } && {
18785          test -z "$ac_c_werror_flag" ||
18786          test ! -s conftest.err
18787        } && test -s conftest$ac_exeext &&
18788        $as_test_x conftest$ac_exeext; then
18789   eval "$as_ac_var=yes"
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794         eval "$as_ac_var=no"
18795 fi
18796
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798       conftest$ac_exeext conftest.$ac_ext
18799 fi
18800 ac_res=`eval echo '${'$as_ac_var'}'`
18801                { echo "$as_me:$LINENO: result: $ac_res" >&5
18802 echo "${ECHO_T}$ac_res" >&6; }
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804   cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806 _ACEOF
18807
18808 fi
18809 done
18810
18811
18812
18813
18814
18815
18816 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18817 do
18818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18822   echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824   cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18832 #define $ac_func innocuous_$ac_func
18833
18834 /* System header to define __stub macros and hopefully few prototypes,
18835     which can conflict with char $ac_func (); below.
18836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837     <limits.h> exists even on freestanding compilers.  */
18838
18839 #ifdef __STDC__
18840 # include <limits.h>
18841 #else
18842 # include <assert.h>
18843 #endif
18844
18845 #undef $ac_func
18846
18847 /* Override any GCC internal prototype to avoid an error.
18848    Use char because int might match the return type of a GCC
18849    builtin and then its argument prototype would still apply.  */
18850 #ifdef __cplusplus
18851 extern "C"
18852 #endif
18853 char $ac_func ();
18854 /* The GNU C library defines this for functions which it implements
18855     to always fail with ENOSYS.  Some functions are actually named
18856     something starting with __ and the normal name is an alias.  */
18857 #if defined __stub_$ac_func || defined __stub___$ac_func
18858 choke me
18859 #endif
18860
18861 int
18862 main ()
18863 {
18864 return $ac_func ();
18865   ;
18866   return 0;
18867 }
18868 _ACEOF
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873   *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876   (eval "$ac_link") 2>conftest.er1
18877   ac_status=$?
18878   grep -v '^ *+' conftest.er1 >conftest.err
18879   rm -f conftest.er1
18880   cat conftest.err >&5
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); } && {
18883          test -z "$ac_c_werror_flag" ||
18884          test ! -s conftest.err
18885        } && test -s conftest$ac_exeext &&
18886        $as_test_x conftest$ac_exeext; then
18887   eval "$as_ac_var=yes"
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892         eval "$as_ac_var=no"
18893 fi
18894
18895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18896       conftest$ac_exeext conftest.$ac_ext
18897 fi
18898 ac_res=`eval echo '${'$as_ac_var'}'`
18899                { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901 if test `eval echo '${'$as_ac_var'}'` = yes; then
18902   cat >>confdefs.h <<_ACEOF
18903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18904 _ACEOF
18905
18906 fi
18907 done
18908
18909
18910 ol_link_ipv6=no
18911 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18912         if test $ol_enable_ipv6 = yes ; then
18913                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18914 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18915    { (exit 1); exit 1; }; }
18916         fi
18917 elif test $ol_enable_ipv6 != no ; then
18918         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18919 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18920 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923
18924                 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h.  */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h.  */
18930
18931 #                       include <netinet/in.h>
18932 #                       ifdef INET6_ADDRSTRLEN
18933                                 __has_inet6_addrstrlen__;
18934 #                       endif
18935
18936 _ACEOF
18937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18938   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18939   ol_cv_inet6_addrstrlen=yes
18940 else
18941   ol_cv_inet6_addrstrlen=no
18942 fi
18943 rm -f conftest*
18944
18945 fi
18946 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18947 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18948
18949
18950         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18951 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18952 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955
18956                 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962
18963 #include <sys/types.h>
18964 #include <sys/socket.h>
18965
18966 int
18967 main ()
18968 {
18969
18970                         struct sockaddr_storage ss;
18971
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (ac_try="$ac_compile"
18978 case "(($ac_try" in
18979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980   *) ac_try_echo=$ac_try;;
18981 esac
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983   (eval "$ac_compile") 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } && {
18990          test -z "$ac_c_werror_flag" ||
18991          test ! -s conftest.err
18992        } && test -s conftest.$ac_objext; then
18993   ol_cv_struct_sockaddr_storage=yes
18994 else
18995   echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998         ol_cv_struct_sockaddr_storage=no
18999 fi
19000
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19002 fi
19003 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19004 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19005
19006         if test $ol_cv_inet6_addrstrlen = yes &&
19007            test $ol_cv_struct_sockaddr_storage = yes ; then
19008                 ol_link_ipv6=yes
19009         elif test $ol_enable_ipv6 = yes &&
19010              test $ol_cv_inet6_addrstrlen = no ; then
19011                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19012 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19013    { (exit 1); exit 1; }; }
19014         elif test $ol_enable_ipv6 = yes &&
19015              test $ol_cv_struct_sockaddr_storage = no ; then
19016                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19017 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19018    { (exit 1); exit 1; }; }
19019         fi
19020 fi
19021
19022 if test $ol_enable_local != no ; then
19023
19024 for ac_header in sys/un.h
19025 do
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19028   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 fi
19033 ac_res=`eval echo '${'$as_ac_Header'}'`
19034                { echo "$as_me:$LINENO: result: $ac_res" >&5
19035 echo "${ECHO_T}$ac_res" >&6; }
19036 else
19037   # Is the header compilable?
19038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h.  */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h.  */
19046 $ac_includes_default
19047 #include <$ac_header>
19048 _ACEOF
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053   *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056   (eval "$ac_compile") 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } && {
19063          test -z "$ac_c_werror_flag" ||
19064          test ! -s conftest.err
19065        } && test -s conftest.$ac_objext; then
19066   ac_header_compiler=yes
19067 else
19068   echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071         ac_header_compiler=no
19072 fi
19073
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076 echo "${ECHO_T}$ac_header_compiler" >&6; }
19077
19078 # Is the header present?
19079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087 #include <$ac_header>
19088 _ACEOF
19089 if { (ac_try="$ac_cpp conftest.$ac_ext"
19090 case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19096   ac_status=$?
19097   grep -v '^ *+' conftest.er1 >conftest.err
19098   rm -f conftest.er1
19099   cat conftest.err >&5
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); } >/dev/null && {
19102          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19103          test ! -s conftest.err
19104        }; then
19105   ac_header_preproc=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110   ac_header_preproc=no
19111 fi
19112
19113 rm -f conftest.err conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6; }
19116
19117 # So?  What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19119   yes:no: )
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124     ac_header_preproc=yes
19125     ;;
19126   no:yes:* )
19127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19139     ( cat <<\_ASBOX
19140 ## --------------------------------------------- ##
19141 ## Report this to <http://www.openldap.org/its/> ##
19142 ## --------------------------------------------- ##
19143 _ASBOX
19144      ) | sed "s/^/$as_me: WARNING:     /" >&2
19145     ;;
19146 esac
19147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150   echo $ECHO_N "(cached) $ECHO_C" >&6
19151 else
19152   eval "$as_ac_Header=\$ac_header_preproc"
19153 fi
19154 ac_res=`eval echo '${'$as_ac_Header'}'`
19155                { echo "$as_me:$LINENO: result: $ac_res" >&5
19156 echo "${ECHO_T}$ac_res" >&6; }
19157
19158 fi
19159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160   cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19162 _ACEOF
19163
19164 fi
19165
19166 done
19167
19168
19169         if test $ol_enable_local = auto ; then
19170                 ol_enable_local=$ac_cv_header_sys_un_h
19171         elif test $ac_cv_header_sys_un_h = no ; then
19172                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19173 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19174    { (exit 1); exit 1; }; }
19175         fi
19176 fi
19177
19178
19179 if test $ol_with_tls = yes ; then
19180         ol_with_tls=auto
19181 fi
19182
19183 ol_link_tls=no
19184 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19185
19186 for ac_header in openssl/ssl.h
19187 do
19188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19193   echo $ECHO_N "(cached) $ECHO_C" >&6
19194 fi
19195 ac_res=`eval echo '${'$as_ac_Header'}'`
19196                { echo "$as_me:$LINENO: result: $ac_res" >&5
19197 echo "${ECHO_T}$ac_res" >&6; }
19198 else
19199   # Is the header compilable?
19200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19202 cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208 $ac_includes_default
19209 #include <$ac_header>
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_compile") 2>conftest.er1
19219   ac_status=$?
19220   grep -v '^ *+' conftest.er1 >conftest.err
19221   rm -f conftest.er1
19222   cat conftest.err >&5
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); } && {
19225          test -z "$ac_c_werror_flag" ||
19226          test ! -s conftest.err
19227        } && test -s conftest.$ac_objext; then
19228   ac_header_compiler=yes
19229 else
19230   echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233         ac_header_compiler=no
19234 fi
19235
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19238 echo "${ECHO_T}$ac_header_compiler" >&6; }
19239
19240 # Is the header present?
19241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19243 cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h.  */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h.  */
19249 #include <$ac_header>
19250 _ACEOF
19251 if { (ac_try="$ac_cpp conftest.$ac_ext"
19252 case "(($ac_try" in
19253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254   *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } >/dev/null && {
19264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19265          test ! -s conftest.err
19266        }; then
19267   ac_header_preproc=yes
19268 else
19269   echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272   ac_header_preproc=no
19273 fi
19274
19275 rm -f conftest.err conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6; }
19278
19279 # So?  What about this header?
19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19281   yes:no: )
19282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19286     ac_header_preproc=yes
19287     ;;
19288   no:yes:* )
19289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19301     ( cat <<\_ASBOX
19302 ## --------------------------------------------- ##
19303 ## Report this to <http://www.openldap.org/its/> ##
19304 ## --------------------------------------------- ##
19305 _ASBOX
19306      ) | sed "s/^/$as_me: WARNING:     /" >&2
19307     ;;
19308 esac
19309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19312   echo $ECHO_N "(cached) $ECHO_C" >&6
19313 else
19314   eval "$as_ac_Header=\$ac_header_preproc"
19315 fi
19316 ac_res=`eval echo '${'$as_ac_Header'}'`
19317                { echo "$as_me:$LINENO: result: $ac_res" >&5
19318 echo "${ECHO_T}$ac_res" >&6; }
19319
19320 fi
19321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19322   cat >>confdefs.h <<_ACEOF
19323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19324 _ACEOF
19325
19326 fi
19327
19328 done
19329
19330
19331         if test $ac_cv_header_openssl_ssl_h = yes ; then
19332                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19333 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lssl -lcrypto $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h.  */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h.  */
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347    Use char because int might match the return type of a GCC
19348    builtin and then its argument prototype would still apply.  */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char SSL_library_init ();
19353 int
19354 main ()
19355 {
19356 return SSL_library_init ();
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365   *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368   (eval "$ac_link") 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } && {
19375          test -z "$ac_c_werror_flag" ||
19376          test ! -s conftest.err
19377        } && test -s conftest$ac_exeext &&
19378        $as_test_x conftest$ac_exeext; then
19379   ac_cv_lib_ssl_SSL_library_init=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384         ac_cv_lib_ssl_SSL_library_init=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388       conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19390 fi
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19392 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19393 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19394   have_openssl=yes
19395                         need_rsaref=no
19396 else
19397   have_openssl=no
19398 fi
19399
19400
19401                 if test $have_openssl = no ; then
19402                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19403 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416 /* Override any GCC internal prototype to avoid an error.
19417    Use char because int might match the return type of a GCC
19418    builtin and then its argument prototype would still apply.  */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char ssl3_accept ();
19423 int
19424 main ()
19425 {
19426 return ssl3_accept ();
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_link") 2>conftest.er1
19439   ac_status=$?
19440   grep -v '^ *+' conftest.er1 >conftest.err
19441   rm -f conftest.er1
19442   cat conftest.err >&5
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); } && {
19445          test -z "$ac_c_werror_flag" ||
19446          test ! -s conftest.err
19447        } && test -s conftest$ac_exeext &&
19448        $as_test_x conftest$ac_exeext; then
19449   ac_cv_lib_ssl_ssl3_accept=yes
19450 else
19451   echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454         ac_cv_lib_ssl_ssl3_accept=no
19455 fi
19456
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458       conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19460 fi
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19462 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19463 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19464   have_openssl=yes
19465                                 need_rsaref=yes
19466 else
19467   have_openssl=no
19468 fi
19469
19470                 fi
19471
19472                 if test $have_openssl = yes ; then
19473                         ol_with_tls=openssl
19474                         ol_link_tls=yes
19475
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_OPENSSL 1
19479 _ACEOF
19480
19481
19482                         if test $need_rsaref = yes; then
19483
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_RSAREF 1
19486 _ACEOF
19487
19488
19489                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19490                         else
19491                                 TLS_LIBS="-lssl -lcrypto"
19492                         fi
19493
19494                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19495 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19496 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19497   echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499
19500                 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506
19507 #ifdef HAVE_OPENSSL_SSL_H
19508 #include <openssl/ssl.h>
19509 #endif
19510
19511 /* Require 0.9.7d+ */
19512 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19513         char *__ssl_compat = "0.9.7d";
19514 #endif
19515
19516 _ACEOF
19517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19518   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19519   ol_cv_ssl_crl_compat=yes
19520 else
19521   ol_cv_ssl_crl_compat=no
19522 fi
19523 rm -f conftest*
19524
19525 fi
19526 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19527 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19528
19529                         if test $ol_cv_ssl_crl_compat = yes ; then
19530
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_OPENSSL_CRL 1
19533 _ACEOF
19534
19535                         fi
19536                 fi
19537         fi
19538 fi
19539
19540 if test $ol_link_tls = no ; then
19541         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19542
19543 for ac_header in gnutls/gnutls.h
19544 do
19545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 fi
19552 ac_res=`eval echo '${'$as_ac_Header'}'`
19553                { echo "$as_me:$LINENO: result: $ac_res" >&5
19554 echo "${ECHO_T}$ac_res" >&6; }
19555 else
19556   # Is the header compilable?
19557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h.  */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h.  */
19565 $ac_includes_default
19566 #include <$ac_header>
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_compile") 2>conftest.er1
19576   ac_status=$?
19577   grep -v '^ *+' conftest.er1 >conftest.err
19578   rm -f conftest.er1
19579   cat conftest.err >&5
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); } && {
19582          test -z "$ac_c_werror_flag" ||
19583          test ! -s conftest.err
19584        } && test -s conftest.$ac_objext; then
19585   ac_header_compiler=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590         ac_header_compiler=no
19591 fi
19592
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595 echo "${ECHO_T}$ac_header_compiler" >&6; }
19596
19597 # Is the header present?
19598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19600 cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h.  */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h.  */
19606 #include <$ac_header>
19607 _ACEOF
19608 if { (ac_try="$ac_cpp conftest.$ac_ext"
19609 case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } >/dev/null && {
19621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19622          test ! -s conftest.err
19623        }; then
19624   ac_header_preproc=yes
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629   ac_header_preproc=no
19630 fi
19631
19632 rm -f conftest.err conftest.$ac_ext
19633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 echo "${ECHO_T}$ac_header_preproc" >&6; }
19635
19636 # So?  What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19638   yes:no: )
19639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19643     ac_header_preproc=yes
19644     ;;
19645   no:yes:* )
19646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19658     ( cat <<\_ASBOX
19659 ## --------------------------------------------- ##
19660 ## Report this to <http://www.openldap.org/its/> ##
19661 ## --------------------------------------------- ##
19662 _ASBOX
19663      ) | sed "s/^/$as_me: WARNING:     /" >&2
19664     ;;
19665 esac
19666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19669   echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671   eval "$as_ac_Header=\$ac_header_preproc"
19672 fi
19673 ac_res=`eval echo '${'$as_ac_Header'}'`
19674                { echo "$as_me:$LINENO: result: $ac_res" >&5
19675 echo "${ECHO_T}$ac_res" >&6; }
19676
19677 fi
19678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19679   cat >>confdefs.h <<_ACEOF
19680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19681 _ACEOF
19682
19683 fi
19684
19685 done
19686
19687
19688                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19689                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19690 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19692   echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694   ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lgnutls  $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702
19703 /* Override any GCC internal prototype to avoid an error.
19704    Use char because int might match the return type of a GCC
19705    builtin and then its argument prototype would still apply.  */
19706 #ifdef __cplusplus
19707 extern "C"
19708 #endif
19709 char gnutls_init ();
19710 int
19711 main ()
19712 {
19713 return gnutls_init ();
19714   ;
19715   return 0;
19716 }
19717 _ACEOF
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722   *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725   (eval "$ac_link") 2>conftest.er1
19726   ac_status=$?
19727   grep -v '^ *+' conftest.er1 >conftest.err
19728   rm -f conftest.er1
19729   cat conftest.err >&5
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } && {
19732          test -z "$ac_c_werror_flag" ||
19733          test ! -s conftest.err
19734        } && test -s conftest$ac_exeext &&
19735        $as_test_x conftest$ac_exeext; then
19736   ac_cv_lib_gnutls_gnutls_init=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741         ac_cv_lib_gnutls_gnutls_init=no
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745       conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19747 fi
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19750 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19751   have_gnutls=yes
19752 else
19753   have_gnutls=no
19754 fi
19755
19756
19757                         if test $have_gnutls = yes ; then
19758                                 ol_with_tls=gnutls
19759                                 ol_link_tls=yes
19760
19761                                 TLS_LIBS="-lgnutls"
19762
19763
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_GNUTLS 1
19766 _ACEOF
19767
19768                         fi
19769                 fi
19770         fi
19771 fi
19772
19773 if test $ol_link_tls = no ; then
19774         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19775                 have_moznss=no
19776
19777 for ac_header in nssutil.h
19778 do
19779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 fi
19786 ac_res=`eval echo '${'$as_ac_Header'}'`
19787                { echo "$as_me:$LINENO: result: $ac_res" >&5
19788 echo "${ECHO_T}$ac_res" >&6; }
19789 else
19790   # Is the header compilable?
19791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 $ac_includes_default
19800 #include <$ac_header>
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (ac_try="$ac_compile"
19804 case "(($ac_try" in
19805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806   *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809   (eval "$ac_compile") 2>conftest.er1
19810   ac_status=$?
19811   grep -v '^ *+' conftest.er1 >conftest.err
19812   rm -f conftest.er1
19813   cat conftest.err >&5
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); } && {
19816          test -z "$ac_c_werror_flag" ||
19817          test ! -s conftest.err
19818        } && test -s conftest.$ac_objext; then
19819   ac_header_compiler=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824         ac_header_compiler=no
19825 fi
19826
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6; }
19830
19831 # Is the header present?
19832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
19841 _ACEOF
19842 if { (ac_try="$ac_cpp conftest.$ac_ext"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } >/dev/null && {
19855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856          test ! -s conftest.err
19857        }; then
19858   ac_header_preproc=yes
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863   ac_header_preproc=no
19864 fi
19865
19866 rm -f conftest.err conftest.$ac_ext
19867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 echo "${ECHO_T}$ac_header_preproc" >&6; }
19869
19870 # So?  What about this header?
19871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19872   yes:no: )
19873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19877     ac_header_preproc=yes
19878     ;;
19879   no:yes:* )
19880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19892     ( cat <<\_ASBOX
19893 ## --------------------------------------------- ##
19894 ## Report this to <http://www.openldap.org/its/> ##
19895 ## --------------------------------------------- ##
19896 _ASBOX
19897      ) | sed "s/^/$as_me: WARNING:     /" >&2
19898     ;;
19899 esac
19900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19903   echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905   eval "$as_ac_Header=\$ac_header_preproc"
19906 fi
19907 ac_res=`eval echo '${'$as_ac_Header'}'`
19908                { echo "$as_me:$LINENO: result: $ac_res" >&5
19909 echo "${ECHO_T}$ac_res" >&6; }
19910
19911 fi
19912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19913   cat >>confdefs.h <<_ACEOF
19914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19915 _ACEOF
19916
19917 fi
19918
19919 done
19920
19921                 if test "$ac_cv_header_nssutil_h" = yes ; then
19922                         { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
19923 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
19924 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
19925   echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927   ac_check_lib_save_LIBS=$LIBS
19928 LIBS="-lnss3  $LIBS"
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935
19936 /* Override any GCC internal prototype to avoid an error.
19937    Use char because int might match the return type of a GCC
19938    builtin and then its argument prototype would still apply.  */
19939 #ifdef __cplusplus
19940 extern "C"
19941 #endif
19942 char NSS_Initialize ();
19943 int
19944 main ()
19945 {
19946 return NSS_Initialize ();
19947   ;
19948   return 0;
19949 }
19950 _ACEOF
19951 rm -f conftest.$ac_objext conftest$ac_exeext
19952 if { (ac_try="$ac_link"
19953 case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_link") 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } && {
19965          test -z "$ac_c_werror_flag" ||
19966          test ! -s conftest.err
19967        } && test -s conftest$ac_exeext &&
19968        $as_test_x conftest$ac_exeext; then
19969   ac_cv_lib_nss3_NSS_Initialize=yes
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974         ac_cv_lib_nss3_NSS_Initialize=no
19975 fi
19976
19977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19978       conftest$ac_exeext conftest.$ac_ext
19979 LIBS=$ac_check_lib_save_LIBS
19980 fi
19981 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
19982 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
19983 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
19984    have_moznss=yes
19985 else
19986    have_moznss=no
19987 fi
19988
19989                 fi
19990
19991                 if test "$have_moznss" = yes ; then
19992                         ol_with_tls=moznss
19993                         ol_link_tls=yes
19994
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_MOZNSS 1
19997 _ACEOF
19998
19999                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
20000                 else
20001                         { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
20002 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
20003    { (exit 1); exit 1; }; }
20004                 fi
20005         fi
20006 fi
20007
20008 WITH_TLS=no
20009 if test $ol_link_tls = yes ; then
20010
20011 cat >>confdefs.h <<\_ACEOF
20012 #define HAVE_TLS 1
20013 _ACEOF
20014
20015         WITH_TLS=yes
20016 elif test $ol_with_tls = auto ; then
20017         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20018 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20019         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20020 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20021 elif test $ol_with_tls != no ; then
20022         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20023 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20024    { (exit 1); exit 1; }; }
20025 else
20026         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20027 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20028 fi
20029
20030 if test $ol_enable_lmpasswd != no; then
20031         if test $ol_link_tls != yes ; then
20032                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20033 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20034    { (exit 1); exit 1; }; }
20035         fi
20036
20037
20038 cat >>confdefs.h <<\_ACEOF
20039 #define SLAPD_LMHASH 1
20040 _ACEOF
20041
20042 fi
20043
20044 ol_link_threads=no
20045
20046 case $ol_with_threads in auto | yes | nt)
20047
20048
20049         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20050 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20051 if test "${ac_cv_func__beginthread+set}" = set; then
20052   echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054   cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20062 #define _beginthread innocuous__beginthread
20063
20064 /* System header to define __stub macros and hopefully few prototypes,
20065     which can conflict with char _beginthread (); below.
20066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20067     <limits.h> exists even on freestanding compilers.  */
20068
20069 #ifdef __STDC__
20070 # include <limits.h>
20071 #else
20072 # include <assert.h>
20073 #endif
20074
20075 #undef _beginthread
20076
20077 /* Override any GCC internal prototype to avoid an error.
20078    Use char because int might match the return type of a GCC
20079    builtin and then its argument prototype would still apply.  */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char _beginthread ();
20084 /* The GNU C library defines this for functions which it implements
20085     to always fail with ENOSYS.  Some functions are actually named
20086     something starting with __ and the normal name is an alias.  */
20087 #if defined __stub__beginthread || defined __stub____beginthread
20088 choke me
20089 #endif
20090
20091 int
20092 main ()
20093 {
20094 return _beginthread ();
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 rm -f conftest.$ac_objext conftest$ac_exeext
20100 if { (ac_try="$ac_link"
20101 case "(($ac_try" in
20102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103   *) ac_try_echo=$ac_try;;
20104 esac
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106   (eval "$ac_link") 2>conftest.er1
20107   ac_status=$?
20108   grep -v '^ *+' conftest.er1 >conftest.err
20109   rm -f conftest.er1
20110   cat conftest.err >&5
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); } && {
20113          test -z "$ac_c_werror_flag" ||
20114          test ! -s conftest.err
20115        } && test -s conftest$ac_exeext &&
20116        $as_test_x conftest$ac_exeext; then
20117   ac_cv_func__beginthread=yes
20118 else
20119   echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122         ac_cv_func__beginthread=no
20123 fi
20124
20125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20126       conftest$ac_exeext conftest.$ac_ext
20127 fi
20128 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20129 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20130
20131
20132         if test $ac_cv_func__beginthread = yes ; then
20133
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_NT_THREADS 1
20136 _ACEOF
20137
20138                 ol_cv_nt_threads=yes
20139         fi
20140
20141
20142         if test "$ol_cv_nt_threads" = yes ; then
20143                 ol_link_threads=nt
20144                 ol_with_threads=found
20145                 ol_with_yielding_select=yes
20146
20147
20148 cat >>confdefs.h <<\_ACEOF
20149 #define HAVE_NT_SERVICE_MANAGER 1
20150 _ACEOF
20151
20152
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_NT_EVENT_LOG 1
20155 _ACEOF
20156
20157         fi
20158
20159         if test $ol_with_threads = nt ; then
20160                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20161 echo "$as_me: error: could not locate NT Threads" >&2;}
20162    { (exit 1); exit 1; }; }
20163         fi
20164         ;;
20165 esac
20166
20167 case $ol_with_threads in auto | yes | posix)
20168
20169
20170 for ac_header in pthread.h
20171 do
20172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 fi
20179 ac_res=`eval echo '${'$as_ac_Header'}'`
20180                { echo "$as_me:$LINENO: result: $ac_res" >&5
20181 echo "${ECHO_T}$ac_res" >&6; }
20182 else
20183   # Is the header compilable?
20184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h.  */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h.  */
20192 $ac_includes_default
20193 #include <$ac_header>
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (ac_try="$ac_compile"
20197 case "(($ac_try" in
20198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199   *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202   (eval "$ac_compile") 2>conftest.er1
20203   ac_status=$?
20204   grep -v '^ *+' conftest.er1 >conftest.err
20205   rm -f conftest.er1
20206   cat conftest.err >&5
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } && {
20209          test -z "$ac_c_werror_flag" ||
20210          test ! -s conftest.err
20211        } && test -s conftest.$ac_objext; then
20212   ac_header_compiler=yes
20213 else
20214   echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217         ac_header_compiler=no
20218 fi
20219
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20222 echo "${ECHO_T}$ac_header_compiler" >&6; }
20223
20224 # Is the header present?
20225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 #include <$ac_header>
20234 _ACEOF
20235 if { (ac_try="$ac_cpp conftest.$ac_ext"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20242   ac_status=$?
20243   grep -v '^ *+' conftest.er1 >conftest.err
20244   rm -f conftest.er1
20245   cat conftest.err >&5
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } >/dev/null && {
20248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20249          test ! -s conftest.err
20250        }; then
20251   ac_header_preproc=yes
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256   ac_header_preproc=no
20257 fi
20258
20259 rm -f conftest.err conftest.$ac_ext
20260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20261 echo "${ECHO_T}$ac_header_preproc" >&6; }
20262
20263 # So?  What about this header?
20264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20265   yes:no: )
20266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20270     ac_header_preproc=yes
20271     ;;
20272   no:yes:* )
20273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20285     ( cat <<\_ASBOX
20286 ## --------------------------------------------- ##
20287 ## Report this to <http://www.openldap.org/its/> ##
20288 ## --------------------------------------------- ##
20289 _ASBOX
20290      ) | sed "s/^/$as_me: WARNING:     /" >&2
20291     ;;
20292 esac
20293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   eval "$as_ac_Header=\$ac_header_preproc"
20299 fi
20300 ac_res=`eval echo '${'$as_ac_Header'}'`
20301                { echo "$as_me:$LINENO: result: $ac_res" >&5
20302 echo "${ECHO_T}$ac_res" >&6; }
20303
20304 fi
20305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20306   cat >>confdefs.h <<_ACEOF
20307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20308 _ACEOF
20309
20310 fi
20311
20312 done
20313
20314
20315         if test $ac_cv_header_pthread_h = yes ; then
20316                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20317 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20318 if test "${ol_cv_pthread_version+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321
20322         cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328
20329 #               include <pthread.h>
20330
20331 int
20332 main ()
20333 {
20334
20335                 int i = PTHREAD_CREATE_JOINABLE;
20336
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (ac_try="$ac_compile"
20343 case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348   (eval "$ac_compile") 2>conftest.er1
20349   ac_status=$?
20350   grep -v '^ *+' conftest.er1 >conftest.err
20351   rm -f conftest.er1
20352   cat conftest.err >&5
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); } && {
20355          test -z "$ac_c_werror_flag" ||
20356          test ! -s conftest.err
20357        } && test -s conftest.$ac_objext; then
20358
20359         cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h.  */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h.  */
20365 #include <pthread.h>
20366
20367 _ACEOF
20368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20369   $EGREP "pthread_detach" >/dev/null 2>&1; then
20370   ol_cv_pthread_version=10
20371 else
20372   ol_cv_pthread_version=8
20373 fi
20374 rm -f conftest*
20375
20376 else
20377   echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20379
20380
20381         cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387
20388 #               include <pthread.h>
20389 #               ifdef PTHREAD_CREATE_UNDETACHED
20390                 draft7
20391 #               endif
20392
20393 _ACEOF
20394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20395   $EGREP "draft7" >/dev/null 2>&1; then
20396   ol_cv_pthread_version=7
20397 else
20398
20399         cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 #include <pthread.h>
20406
20407 _ACEOF
20408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20409   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20410   ol_cv_pthread_version=6
20411 else
20412
20413         cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419
20420 #               include <pthread.h>
20421 #ifdef          PTHREAD_MUTEX_INITIALIZER
20422                 draft5
20423 #endif
20424
20425 _ACEOF
20426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20427   $EGREP "draft5" >/dev/null 2>&1; then
20428   ol_cv_pthread_version=5
20429 else
20430   ol_cv_pthread_version=4
20431 fi
20432 rm -f conftest*
20433
20434 fi
20435 rm -f conftest*
20436
20437 fi
20438 rm -f conftest*
20439
20440 fi
20441
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443
20444 fi
20445 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20446 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20447
20448
20449                 if test $ol_cv_pthread_version != 0 ; then
20450
20451 cat >>confdefs.h <<_ACEOF
20452 #define HAVE_PTHREADS $ol_cv_pthread_version
20453 _ACEOF
20454
20455                 else
20456                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20457 echo "$as_me: error: unknown pthread version" >&2;}
20458    { (exit 1); exit 1; }; }
20459                 fi
20460
20461                 # consider threads found
20462                 ol_with_threads=found
20463
20464
20465         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20466 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20467 if test "${ol_cv_header_linux_threads+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476 #include <pthread.h>
20477 _ACEOF
20478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20479   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20480   ol_cv_header_linux_threads=yes
20481 else
20482   ol_cv_header_linux_threads=no
20483 fi
20484 rm -f conftest*
20485
20486
20487 fi
20488 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20489 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20490         if test $ol_cv_header_linux_threads = yes; then
20491
20492 cat >>confdefs.h <<\_ACEOF
20493 #define HAVE_LINUX_THREADS 1
20494 _ACEOF
20495
20496         fi
20497
20498
20499         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20500 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20501 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504   cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 #include <pthread.h>
20511 #ifdef _POSIX_THREAD_IS_GNU_PTH
20512         __gnu_pth__;
20513 #endif
20514
20515 _ACEOF
20516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20517   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20518   ol_cv_header_gnu_pth_pthread_h=yes
20519 else
20520   ol_cv_header_gnu_pth_pthread_h=no
20521 fi
20522 rm -f conftest*
20523
20524
20525 fi
20526 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20527 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20528
20529
20530                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20531
20532 for ac_header in sched.h
20533 do
20534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20536   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 fi
20541 ac_res=`eval echo '${'$as_ac_Header'}'`
20542                { echo "$as_me:$LINENO: result: $ac_res" >&5
20543 echo "${ECHO_T}$ac_res" >&6; }
20544 else
20545   # Is the header compilable?
20546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20548 cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 $ac_includes_default
20555 #include <$ac_header>
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_compile") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } && {
20571          test -z "$ac_c_werror_flag" ||
20572          test ! -s conftest.err
20573        } && test -s conftest.$ac_objext; then
20574   ac_header_compiler=yes
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579         ac_header_compiler=no
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20584 echo "${ECHO_T}$ac_header_compiler" >&6; }
20585
20586 # Is the header present?
20587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20589 cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 #include <$ac_header>
20596 _ACEOF
20597 if { (ac_try="$ac_cpp conftest.$ac_ext"
20598 case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20604   ac_status=$?
20605   grep -v '^ *+' conftest.er1 >conftest.err
20606   rm -f conftest.er1
20607   cat conftest.err >&5
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); } >/dev/null && {
20610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20611          test ! -s conftest.err
20612        }; then
20613   ac_header_preproc=yes
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618   ac_header_preproc=no
20619 fi
20620
20621 rm -f conftest.err conftest.$ac_ext
20622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20623 echo "${ECHO_T}$ac_header_preproc" >&6; }
20624
20625 # So?  What about this header?
20626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20627   yes:no: )
20628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20632     ac_header_preproc=yes
20633     ;;
20634   no:yes:* )
20635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20647     ( cat <<\_ASBOX
20648 ## --------------------------------------------- ##
20649 ## Report this to <http://www.openldap.org/its/> ##
20650 ## --------------------------------------------- ##
20651 _ASBOX
20652      ) | sed "s/^/$as_me: WARNING:     /" >&2
20653     ;;
20654 esac
20655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660   eval "$as_ac_Header=\$ac_header_preproc"
20661 fi
20662 ac_res=`eval echo '${'$as_ac_Header'}'`
20663                { echo "$as_me:$LINENO: result: $ac_res" >&5
20664 echo "${ECHO_T}$ac_res" >&6; }
20665
20666 fi
20667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20668   cat >>confdefs.h <<_ACEOF
20669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20670 _ACEOF
20671
20672 fi
20673
20674 done
20675
20676                 fi
20677
20678
20679                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20680 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20681 if test "${ol_cv_pthread_create+set}" = set; then
20682   echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684
20685                         if test "$cross_compiling" = yes; then
20686   cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h.  */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h.  */
20692
20693 /* pthread test headers */
20694 #include <pthread.h>
20695 #if HAVE_PTHREADS < 7
20696 #include <errno.h>
20697 #endif
20698 #ifndef NULL
20699 #define NULL (void*)0
20700 #endif
20701
20702 static void *task(p)
20703         void *p;
20704 {
20705         return (void *) (p == NULL);
20706 }
20707
20708 int
20709 main ()
20710 {
20711
20712         /* pthread test function */
20713 #ifndef PTHREAD_CREATE_DETACHED
20714 #define PTHREAD_CREATE_DETACHED 1
20715 #endif
20716         pthread_t t;
20717         int status;
20718         int detach = PTHREAD_CREATE_DETACHED;
20719
20720 #if HAVE_PTHREADS > 4
20721         /* Final pthreads */
20722         pthread_attr_t attr;
20723
20724         status = pthread_attr_init(&attr);
20725         if( status ) return status;
20726
20727 #if HAVE_PTHREADS < 7
20728         status = pthread_attr_setdetachstate(&attr, &detach);
20729         if( status < 0 ) status = errno;
20730 #else
20731         status = pthread_attr_setdetachstate(&attr, detach);
20732 #endif
20733         if( status ) return status;
20734         status = pthread_create( &t, &attr, task, NULL );
20735 #if HAVE_PTHREADS < 7
20736         if( status < 0 ) status = errno;
20737 #endif
20738         if( status ) return status;
20739 #else
20740         /* Draft 4 pthreads */
20741         status = pthread_create( &t, pthread_attr_default, task, NULL );
20742         if( status ) return errno;
20743
20744         /* give thread a chance to complete */
20745         /* it should remain joinable and hence detachable */
20746         sleep( 1 );
20747
20748         status = pthread_detach( &t );
20749         if( status ) return errno;
20750 #endif
20751
20752 #ifdef HAVE_LINUX_THREADS
20753         pthread_kill_other_threads_np();
20754 #endif
20755
20756         return 0;
20757
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766   *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769   (eval "$ac_link") 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } && {
20776          test -z "$ac_c_werror_flag" ||
20777          test ! -s conftest.err
20778        } && test -s conftest$ac_exeext &&
20779        $as_test_x conftest$ac_exeext; then
20780   ol_cv_pthread_create=yes
20781 else
20782   echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20784
20785         ol_cv_pthread_create=no
20786 fi
20787
20788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20789       conftest$ac_exeext conftest.$ac_ext
20790 else
20791   cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797
20798 /* pthread test headers */
20799 #include <pthread.h>
20800 #if HAVE_PTHREADS < 7
20801 #include <errno.h>
20802 #endif
20803 #ifndef NULL
20804 #define NULL (void*)0
20805 #endif
20806
20807 static void *task(p)
20808         void *p;
20809 {
20810         return (void *) (p == NULL);
20811 }
20812
20813
20814 int main(argc, argv)
20815         int argc;
20816         char **argv;
20817 {
20818
20819         /* pthread test function */
20820 #ifndef PTHREAD_CREATE_DETACHED
20821 #define PTHREAD_CREATE_DETACHED 1
20822 #endif
20823         pthread_t t;
20824         int status;
20825         int detach = PTHREAD_CREATE_DETACHED;
20826
20827 #if HAVE_PTHREADS > 4
20828         /* Final pthreads */
20829         pthread_attr_t attr;
20830
20831         status = pthread_attr_init(&attr);
20832         if( status ) return status;
20833
20834 #if HAVE_PTHREADS < 7
20835         status = pthread_attr_setdetachstate(&attr, &detach);
20836         if( status < 0 ) status = errno;
20837 #else
20838         status = pthread_attr_setdetachstate(&attr, detach);
20839 #endif
20840         if( status ) return status;
20841         status = pthread_create( &t, &attr, task, NULL );
20842 #if HAVE_PTHREADS < 7
20843         if( status < 0 ) status = errno;
20844 #endif
20845         if( status ) return status;
20846 #else
20847         /* Draft 4 pthreads */
20848         status = pthread_create( &t, pthread_attr_default, task, NULL );
20849         if( status ) return errno;
20850
20851         /* give thread a chance to complete */
20852         /* it should remain joinable and hence detachable */
20853         sleep( 1 );
20854
20855         status = pthread_detach( &t );
20856         if( status ) return errno;
20857 #endif
20858
20859 #ifdef HAVE_LINUX_THREADS
20860         pthread_kill_other_threads_np();
20861 #endif
20862
20863         return 0;
20864
20865 }
20866
20867 _ACEOF
20868 rm -f conftest$ac_exeext
20869 if { (ac_try="$ac_link"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_link") 2>&5
20876   ac_status=$?
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; }; then
20888   ol_cv_pthread_create=yes
20889 else
20890   echo "$as_me: program exited with status $ac_status" >&5
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 ( exit $ac_status )
20895 ol_cv_pthread_create=no
20896 fi
20897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20898 fi
20899
20900
20901 fi
20902 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20903 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20904
20905                 if test $ol_cv_pthread_create != no ; then
20906                         ol_link_threads=posix
20907                         ol_link_pthreads=""
20908                 fi
20909
20910                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20911 if test "$ol_link_threads" = no ; then
20912         # try -kthread
20913         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20914 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20915 if test "${ol_cv_pthread_kthread+set}" = set; then
20916   echo $ECHO_N "(cached) $ECHO_C" >&6
20917 else
20918
20919                 # save the flags
20920                 ol_LIBS="$LIBS"
20921                 LIBS="-kthread $LIBS"
20922
20923                 if test "$cross_compiling" = yes; then
20924   cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930
20931 /* pthread test headers */
20932 #include <pthread.h>
20933 #if HAVE_PTHREADS < 7
20934 #include <errno.h>
20935 #endif
20936 #ifndef NULL
20937 #define NULL (void*)0
20938 #endif
20939
20940 static void *task(p)
20941         void *p;
20942 {
20943         return (void *) (p == NULL);
20944 }
20945
20946 int
20947 main ()
20948 {
20949
20950         /* pthread test function */
20951 #ifndef PTHREAD_CREATE_DETACHED
20952 #define PTHREAD_CREATE_DETACHED 1
20953 #endif
20954         pthread_t t;
20955         int status;
20956         int detach = PTHREAD_CREATE_DETACHED;
20957
20958 #if HAVE_PTHREADS > 4
20959         /* Final pthreads */
20960         pthread_attr_t attr;
20961
20962         status = pthread_attr_init(&attr);
20963         if( status ) return status;
20964
20965 #if HAVE_PTHREADS < 7
20966         status = pthread_attr_setdetachstate(&attr, &detach);
20967         if( status < 0 ) status = errno;
20968 #else
20969         status = pthread_attr_setdetachstate(&attr, detach);
20970 #endif
20971         if( status ) return status;
20972         status = pthread_create( &t, &attr, task, NULL );
20973 #if HAVE_PTHREADS < 7
20974         if( status < 0 ) status = errno;
20975 #endif
20976         if( status ) return status;
20977 #else
20978         /* Draft 4 pthreads */
20979         status = pthread_create( &t, pthread_attr_default, task, NULL );
20980         if( status ) return errno;
20981
20982         /* give thread a chance to complete */
20983         /* it should remain joinable and hence detachable */
20984         sleep( 1 );
20985
20986         status = pthread_detach( &t );
20987         if( status ) return errno;
20988 #endif
20989
20990 #ifdef HAVE_LINUX_THREADS
20991         pthread_kill_other_threads_np();
20992 #endif
20993
20994         return 0;
20995
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (ac_try="$ac_link"
21002 case "(($ac_try" in
21003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004   *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007   (eval "$ac_link") 2>conftest.er1
21008   ac_status=$?
21009   grep -v '^ *+' conftest.er1 >conftest.err
21010   rm -f conftest.er1
21011   cat conftest.err >&5
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); } && {
21014          test -z "$ac_c_werror_flag" ||
21015          test ! -s conftest.err
21016        } && test -s conftest$ac_exeext &&
21017        $as_test_x conftest$ac_exeext; then
21018   ol_cv_pthread_kthread=yes
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023         ol_cv_pthread_kthread=no
21024 fi
21025
21026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21027       conftest$ac_exeext conftest.$ac_ext
21028 else
21029   cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h.  */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h.  */
21035
21036 /* pthread test headers */
21037 #include <pthread.h>
21038 #if HAVE_PTHREADS < 7
21039 #include <errno.h>
21040 #endif
21041 #ifndef NULL
21042 #define NULL (void*)0
21043 #endif
21044
21045 static void *task(p)
21046         void *p;
21047 {
21048         return (void *) (p == NULL);
21049 }
21050
21051
21052 int main(argc, argv)
21053         int argc;
21054         char **argv;
21055 {
21056
21057         /* pthread test function */
21058 #ifndef PTHREAD_CREATE_DETACHED
21059 #define PTHREAD_CREATE_DETACHED 1
21060 #endif
21061         pthread_t t;
21062         int status;
21063         int detach = PTHREAD_CREATE_DETACHED;
21064
21065 #if HAVE_PTHREADS > 4
21066         /* Final pthreads */
21067         pthread_attr_t attr;
21068
21069         status = pthread_attr_init(&attr);
21070         if( status ) return status;
21071
21072 #if HAVE_PTHREADS < 7
21073         status = pthread_attr_setdetachstate(&attr, &detach);
21074         if( status < 0 ) status = errno;
21075 #else
21076         status = pthread_attr_setdetachstate(&attr, detach);
21077 #endif
21078         if( status ) return status;
21079         status = pthread_create( &t, &attr, task, NULL );
21080 #if HAVE_PTHREADS < 7
21081         if( status < 0 ) status = errno;
21082 #endif
21083         if( status ) return status;
21084 #else
21085         /* Draft 4 pthreads */
21086         status = pthread_create( &t, pthread_attr_default, task, NULL );
21087         if( status ) return errno;
21088
21089         /* give thread a chance to complete */
21090         /* it should remain joinable and hence detachable */
21091         sleep( 1 );
21092
21093         status = pthread_detach( &t );
21094         if( status ) return errno;
21095 #endif
21096
21097 #ifdef HAVE_LINUX_THREADS
21098         pthread_kill_other_threads_np();
21099 #endif
21100
21101         return 0;
21102
21103 }
21104
21105 _ACEOF
21106 rm -f conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113   (eval "$ac_link") 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21117   { (case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_try") 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; }; then
21126   ol_cv_pthread_kthread=yes
21127 else
21128   echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 ( exit $ac_status )
21133 ol_cv_pthread_kthread=no
21134 fi
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21136 fi
21137
21138
21139
21140                 # restore the LIBS
21141                 LIBS="$ol_LIBS"
21142
21143 fi
21144 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21145 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21146
21147         if test $ol_cv_pthread_kthread = yes ; then
21148                 ol_link_pthreads="-kthread"
21149                 ol_link_threads=posix
21150         fi
21151 fi
21152
21153                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21154 if test "$ol_link_threads" = no ; then
21155         # try -pthread
21156         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21157 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21158 if test "${ol_cv_pthread_pthread+set}" = set; then
21159   echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161
21162                 # save the flags
21163                 ol_LIBS="$LIBS"
21164                 LIBS="-pthread $LIBS"
21165
21166                 if test "$cross_compiling" = yes; then
21167   cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h.  */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h.  */
21173
21174 /* pthread test headers */
21175 #include <pthread.h>
21176 #if HAVE_PTHREADS < 7
21177 #include <errno.h>
21178 #endif
21179 #ifndef NULL
21180 #define NULL (void*)0
21181 #endif
21182
21183 static void *task(p)
21184         void *p;
21185 {
21186         return (void *) (p == NULL);
21187 }
21188
21189 int
21190 main ()
21191 {
21192
21193         /* pthread test function */
21194 #ifndef PTHREAD_CREATE_DETACHED
21195 #define PTHREAD_CREATE_DETACHED 1
21196 #endif
21197         pthread_t t;
21198         int status;
21199         int detach = PTHREAD_CREATE_DETACHED;
21200
21201 #if HAVE_PTHREADS > 4
21202         /* Final pthreads */
21203         pthread_attr_t attr;
21204
21205         status = pthread_attr_init(&attr);
21206         if( status ) return status;
21207
21208 #if HAVE_PTHREADS < 7
21209         status = pthread_attr_setdetachstate(&attr, &detach);
21210         if( status < 0 ) status = errno;
21211 #else
21212         status = pthread_attr_setdetachstate(&attr, detach);
21213 #endif
21214         if( status ) return status;
21215         status = pthread_create( &t, &attr, task, NULL );
21216 #if HAVE_PTHREADS < 7
21217         if( status < 0 ) status = errno;
21218 #endif
21219         if( status ) return status;
21220 #else
21221         /* Draft 4 pthreads */
21222         status = pthread_create( &t, pthread_attr_default, task, NULL );
21223         if( status ) return errno;
21224
21225         /* give thread a chance to complete */
21226         /* it should remain joinable and hence detachable */
21227         sleep( 1 );
21228
21229         status = pthread_detach( &t );
21230         if( status ) return errno;
21231 #endif
21232
21233 #ifdef HAVE_LINUX_THREADS
21234         pthread_kill_other_threads_np();
21235 #endif
21236
21237         return 0;
21238
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext conftest$ac_exeext
21244 if { (ac_try="$ac_link"
21245 case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250   (eval "$ac_link") 2>conftest.er1
21251   ac_status=$?
21252   grep -v '^ *+' conftest.er1 >conftest.err
21253   rm -f conftest.er1
21254   cat conftest.err >&5
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); } && {
21257          test -z "$ac_c_werror_flag" ||
21258          test ! -s conftest.err
21259        } && test -s conftest$ac_exeext &&
21260        $as_test_x conftest$ac_exeext; then
21261   ol_cv_pthread_pthread=yes
21262 else
21263   echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266         ol_cv_pthread_pthread=no
21267 fi
21268
21269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21270       conftest$ac_exeext conftest.$ac_ext
21271 else
21272   cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h.  */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h.  */
21278
21279 /* pthread test headers */
21280 #include <pthread.h>
21281 #if HAVE_PTHREADS < 7
21282 #include <errno.h>
21283 #endif
21284 #ifndef NULL
21285 #define NULL (void*)0
21286 #endif
21287
21288 static void *task(p)
21289         void *p;
21290 {
21291         return (void *) (p == NULL);
21292 }
21293
21294
21295 int main(argc, argv)
21296         int argc;
21297         char **argv;
21298 {
21299
21300         /* pthread test function */
21301 #ifndef PTHREAD_CREATE_DETACHED
21302 #define PTHREAD_CREATE_DETACHED 1
21303 #endif
21304         pthread_t t;
21305         int status;
21306         int detach = PTHREAD_CREATE_DETACHED;
21307
21308 #if HAVE_PTHREADS > 4
21309         /* Final pthreads */
21310         pthread_attr_t attr;
21311
21312         status = pthread_attr_init(&attr);
21313         if( status ) return status;
21314
21315 #if HAVE_PTHREADS < 7
21316         status = pthread_attr_setdetachstate(&attr, &detach);
21317         if( status < 0 ) status = errno;
21318 #else
21319         status = pthread_attr_setdetachstate(&attr, detach);
21320 #endif
21321         if( status ) return status;
21322         status = pthread_create( &t, &attr, task, NULL );
21323 #if HAVE_PTHREADS < 7
21324         if( status < 0 ) status = errno;
21325 #endif
21326         if( status ) return status;
21327 #else
21328         /* Draft 4 pthreads */
21329         status = pthread_create( &t, pthread_attr_default, task, NULL );
21330         if( status ) return errno;
21331
21332         /* give thread a chance to complete */
21333         /* it should remain joinable and hence detachable */
21334         sleep( 1 );
21335
21336         status = pthread_detach( &t );
21337         if( status ) return errno;
21338 #endif
21339
21340 #ifdef HAVE_LINUX_THREADS
21341         pthread_kill_other_threads_np();
21342 #endif
21343
21344         return 0;
21345
21346 }
21347
21348 _ACEOF
21349 rm -f conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356   (eval "$ac_link") 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21360   { (case "(($ac_try" in
21361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362   *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365   (eval "$ac_try") 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ol_cv_pthread_pthread=yes
21370 else
21371   echo "$as_me: program exited with status $ac_status" >&5
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ( exit $ac_status )
21376 ol_cv_pthread_pthread=no
21377 fi
21378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21379 fi
21380
21381
21382
21383                 # restore the LIBS
21384                 LIBS="$ol_LIBS"
21385
21386 fi
21387 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21388 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21389
21390         if test $ol_cv_pthread_pthread = yes ; then
21391                 ol_link_pthreads="-pthread"
21392                 ol_link_threads=posix
21393         fi
21394 fi
21395
21396                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21397 if test "$ol_link_threads" = no ; then
21398         # try -pthreads
21399         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21400 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21401 if test "${ol_cv_pthread_pthreads+set}" = set; then
21402   echo $ECHO_N "(cached) $ECHO_C" >&6
21403 else
21404
21405                 # save the flags
21406                 ol_LIBS="$LIBS"
21407                 LIBS="-pthreads $LIBS"
21408
21409                 if test "$cross_compiling" = yes; then
21410   cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416
21417 /* pthread test headers */
21418 #include <pthread.h>
21419 #if HAVE_PTHREADS < 7
21420 #include <errno.h>
21421 #endif
21422 #ifndef NULL
21423 #define NULL (void*)0
21424 #endif
21425
21426 static void *task(p)
21427         void *p;
21428 {
21429         return (void *) (p == NULL);
21430 }
21431
21432 int
21433 main ()
21434 {
21435
21436         /* pthread test function */
21437 #ifndef PTHREAD_CREATE_DETACHED
21438 #define PTHREAD_CREATE_DETACHED 1
21439 #endif
21440         pthread_t t;
21441         int status;
21442         int detach = PTHREAD_CREATE_DETACHED;
21443
21444 #if HAVE_PTHREADS > 4
21445         /* Final pthreads */
21446         pthread_attr_t attr;
21447
21448         status = pthread_attr_init(&attr);
21449         if( status ) return status;
21450
21451 #if HAVE_PTHREADS < 7
21452         status = pthread_attr_setdetachstate(&attr, &detach);
21453         if( status < 0 ) status = errno;
21454 #else
21455         status = pthread_attr_setdetachstate(&attr, detach);
21456 #endif
21457         if( status ) return status;
21458         status = pthread_create( &t, &attr, task, NULL );
21459 #if HAVE_PTHREADS < 7
21460         if( status < 0 ) status = errno;
21461 #endif
21462         if( status ) return status;
21463 #else
21464         /* Draft 4 pthreads */
21465         status = pthread_create( &t, pthread_attr_default, task, NULL );
21466         if( status ) return errno;
21467
21468         /* give thread a chance to complete */
21469         /* it should remain joinable and hence detachable */
21470         sleep( 1 );
21471
21472         status = pthread_detach( &t );
21473         if( status ) return errno;
21474 #endif
21475
21476 #ifdef HAVE_LINUX_THREADS
21477         pthread_kill_other_threads_np();
21478 #endif
21479
21480         return 0;
21481
21482   ;
21483   return 0;
21484 }
21485 _ACEOF
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (ac_try="$ac_link"
21488 case "(($ac_try" in
21489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490   *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493   (eval "$ac_link") 2>conftest.er1
21494   ac_status=$?
21495   grep -v '^ *+' conftest.er1 >conftest.err
21496   rm -f conftest.er1
21497   cat conftest.err >&5
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); } && {
21500          test -z "$ac_c_werror_flag" ||
21501          test ! -s conftest.err
21502        } && test -s conftest$ac_exeext &&
21503        $as_test_x conftest$ac_exeext; then
21504   ol_cv_pthread_pthreads=yes
21505 else
21506   echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21508
21509         ol_cv_pthread_pthreads=no
21510 fi
21511
21512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21513       conftest$ac_exeext conftest.$ac_ext
21514 else
21515   cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521
21522 /* pthread test headers */
21523 #include <pthread.h>
21524 #if HAVE_PTHREADS < 7
21525 #include <errno.h>
21526 #endif
21527 #ifndef NULL
21528 #define NULL (void*)0
21529 #endif
21530
21531 static void *task(p)
21532         void *p;
21533 {
21534         return (void *) (p == NULL);
21535 }
21536
21537
21538 int main(argc, argv)
21539         int argc;
21540         char **argv;
21541 {
21542
21543         /* pthread test function */
21544 #ifndef PTHREAD_CREATE_DETACHED
21545 #define PTHREAD_CREATE_DETACHED 1
21546 #endif
21547         pthread_t t;
21548         int status;
21549         int detach = PTHREAD_CREATE_DETACHED;
21550
21551 #if HAVE_PTHREADS > 4
21552         /* Final pthreads */
21553         pthread_attr_t attr;
21554
21555         status = pthread_attr_init(&attr);
21556         if( status ) return status;
21557
21558 #if HAVE_PTHREADS < 7
21559         status = pthread_attr_setdetachstate(&attr, &detach);
21560         if( status < 0 ) status = errno;
21561 #else
21562         status = pthread_attr_setdetachstate(&attr, detach);
21563 #endif
21564         if( status ) return status;
21565         status = pthread_create( &t, &attr, task, NULL );
21566 #if HAVE_PTHREADS < 7
21567         if( status < 0 ) status = errno;
21568 #endif
21569         if( status ) return status;
21570 #else
21571         /* Draft 4 pthreads */
21572         status = pthread_create( &t, pthread_attr_default, task, NULL );
21573         if( status ) return errno;
21574
21575         /* give thread a chance to complete */
21576         /* it should remain joinable and hence detachable */
21577         sleep( 1 );
21578
21579         status = pthread_detach( &t );
21580         if( status ) return errno;
21581 #endif
21582
21583 #ifdef HAVE_LINUX_THREADS
21584         pthread_kill_other_threads_np();
21585 #endif
21586
21587         return 0;
21588
21589 }
21590
21591 _ACEOF
21592 rm -f conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596   *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599   (eval "$ac_link") 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21603   { (case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_try") 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; }; then
21612   ol_cv_pthread_pthreads=yes
21613 else
21614   echo "$as_me: program exited with status $ac_status" >&5
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618 ( exit $ac_status )
21619 ol_cv_pthread_pthreads=no
21620 fi
21621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21622 fi
21623
21624
21625
21626                 # restore the LIBS
21627                 LIBS="$ol_LIBS"
21628
21629 fi
21630 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21631 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21632
21633         if test $ol_cv_pthread_pthreads = yes ; then
21634                 ol_link_pthreads="-pthreads"
21635                 ol_link_threads=posix
21636         fi
21637 fi
21638
21639                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21640 if test "$ol_link_threads" = no ; then
21641         # try -mthreads
21642         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21643 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21644 if test "${ol_cv_pthread_mthreads+set}" = set; then
21645   echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647
21648                 # save the flags
21649                 ol_LIBS="$LIBS"
21650                 LIBS="-mthreads $LIBS"
21651
21652                 if test "$cross_compiling" = yes; then
21653   cat >conftest.$ac_ext <<_ACEOF
21654 /* confdefs.h.  */
21655 _ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h.  */
21659
21660 /* pthread test headers */
21661 #include <pthread.h>
21662 #if HAVE_PTHREADS < 7
21663 #include <errno.h>
21664 #endif
21665 #ifndef NULL
21666 #define NULL (void*)0
21667 #endif
21668
21669 static void *task(p)
21670         void *p;
21671 {
21672         return (void *) (p == NULL);
21673 }
21674
21675 int
21676 main ()
21677 {
21678
21679         /* pthread test function */
21680 #ifndef PTHREAD_CREATE_DETACHED
21681 #define PTHREAD_CREATE_DETACHED 1
21682 #endif
21683         pthread_t t;
21684         int status;
21685         int detach = PTHREAD_CREATE_DETACHED;
21686
21687 #if HAVE_PTHREADS > 4
21688         /* Final pthreads */
21689         pthread_attr_t attr;
21690
21691         status = pthread_attr_init(&attr);
21692         if( status ) return status;
21693
21694 #if HAVE_PTHREADS < 7
21695         status = pthread_attr_setdetachstate(&attr, &detach);
21696         if( status < 0 ) status = errno;
21697 #else
21698         status = pthread_attr_setdetachstate(&attr, detach);
21699 #endif
21700         if( status ) return status;
21701         status = pthread_create( &t, &attr, task, NULL );
21702 #if HAVE_PTHREADS < 7
21703         if( status < 0 ) status = errno;
21704 #endif
21705         if( status ) return status;
21706 #else
21707         /* Draft 4 pthreads */
21708         status = pthread_create( &t, pthread_attr_default, task, NULL );
21709         if( status ) return errno;
21710
21711         /* give thread a chance to complete */
21712         /* it should remain joinable and hence detachable */
21713         sleep( 1 );
21714
21715         status = pthread_detach( &t );
21716         if( status ) return errno;
21717 #endif
21718
21719 #ifdef HAVE_LINUX_THREADS
21720         pthread_kill_other_threads_np();
21721 #endif
21722
21723         return 0;
21724
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext conftest$ac_exeext
21730 if { (ac_try="$ac_link"
21731 case "(($ac_try" in
21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733   *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736   (eval "$ac_link") 2>conftest.er1
21737   ac_status=$?
21738   grep -v '^ *+' conftest.er1 >conftest.err
21739   rm -f conftest.er1
21740   cat conftest.err >&5
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } && {
21743          test -z "$ac_c_werror_flag" ||
21744          test ! -s conftest.err
21745        } && test -s conftest$ac_exeext &&
21746        $as_test_x conftest$ac_exeext; then
21747   ol_cv_pthread_mthreads=yes
21748 else
21749   echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752         ol_cv_pthread_mthreads=no
21753 fi
21754
21755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21756       conftest$ac_exeext conftest.$ac_ext
21757 else
21758   cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764
21765 /* pthread test headers */
21766 #include <pthread.h>
21767 #if HAVE_PTHREADS < 7
21768 #include <errno.h>
21769 #endif
21770 #ifndef NULL
21771 #define NULL (void*)0
21772 #endif
21773
21774 static void *task(p)
21775         void *p;
21776 {
21777         return (void *) (p == NULL);
21778 }
21779
21780
21781 int main(argc, argv)
21782         int argc;
21783         char **argv;
21784 {
21785
21786         /* pthread test function */
21787 #ifndef PTHREAD_CREATE_DETACHED
21788 #define PTHREAD_CREATE_DETACHED 1
21789 #endif
21790         pthread_t t;
21791         int status;
21792         int detach = PTHREAD_CREATE_DETACHED;
21793
21794 #if HAVE_PTHREADS > 4
21795         /* Final pthreads */
21796         pthread_attr_t attr;
21797
21798         status = pthread_attr_init(&attr);
21799         if( status ) return status;
21800
21801 #if HAVE_PTHREADS < 7
21802         status = pthread_attr_setdetachstate(&attr, &detach);
21803         if( status < 0 ) status = errno;
21804 #else
21805         status = pthread_attr_setdetachstate(&attr, detach);
21806 #endif
21807         if( status ) return status;
21808         status = pthread_create( &t, &attr, task, NULL );
21809 #if HAVE_PTHREADS < 7
21810         if( status < 0 ) status = errno;
21811 #endif
21812         if( status ) return status;
21813 #else
21814         /* Draft 4 pthreads */
21815         status = pthread_create( &t, pthread_attr_default, task, NULL );
21816         if( status ) return errno;
21817
21818         /* give thread a chance to complete */
21819         /* it should remain joinable and hence detachable */
21820         sleep( 1 );
21821
21822         status = pthread_detach( &t );
21823         if( status ) return errno;
21824 #endif
21825
21826 #ifdef HAVE_LINUX_THREADS
21827         pthread_kill_other_threads_np();
21828 #endif
21829
21830         return 0;
21831
21832 }
21833
21834 _ACEOF
21835 rm -f conftest$ac_exeext
21836 if { (ac_try="$ac_link"
21837 case "(($ac_try" in
21838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839   *) ac_try_echo=$ac_try;;
21840 esac
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842   (eval "$ac_link") 2>&5
21843   ac_status=$?
21844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21846   { (case "(($ac_try" in
21847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848   *) ac_try_echo=$ac_try;;
21849 esac
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851   (eval "$ac_try") 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); }; }; then
21855   ol_cv_pthread_mthreads=yes
21856 else
21857   echo "$as_me: program exited with status $ac_status" >&5
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861 ( exit $ac_status )
21862 ol_cv_pthread_mthreads=no
21863 fi
21864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21865 fi
21866
21867
21868
21869                 # restore the LIBS
21870                 LIBS="$ol_LIBS"
21871
21872 fi
21873 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21874 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21875
21876         if test $ol_cv_pthread_mthreads = yes ; then
21877                 ol_link_pthreads="-mthreads"
21878                 ol_link_threads=posix
21879         fi
21880 fi
21881
21882                 # Pthread try link: -thread (ol_cv_pthread_thread)
21883 if test "$ol_link_threads" = no ; then
21884         # try -thread
21885         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21886 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21887 if test "${ol_cv_pthread_thread+set}" = set; then
21888   echo $ECHO_N "(cached) $ECHO_C" >&6
21889 else
21890
21891                 # save the flags
21892                 ol_LIBS="$LIBS"
21893                 LIBS="-thread $LIBS"
21894
21895                 if test "$cross_compiling" = yes; then
21896   cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902
21903 /* pthread test headers */
21904 #include <pthread.h>
21905 #if HAVE_PTHREADS < 7
21906 #include <errno.h>
21907 #endif
21908 #ifndef NULL
21909 #define NULL (void*)0
21910 #endif
21911
21912 static void *task(p)
21913         void *p;
21914 {
21915         return (void *) (p == NULL);
21916 }
21917
21918 int
21919 main ()
21920 {
21921
21922         /* pthread test function */
21923 #ifndef PTHREAD_CREATE_DETACHED
21924 #define PTHREAD_CREATE_DETACHED 1
21925 #endif
21926         pthread_t t;
21927         int status;
21928         int detach = PTHREAD_CREATE_DETACHED;
21929
21930 #if HAVE_PTHREADS > 4
21931         /* Final pthreads */
21932         pthread_attr_t attr;
21933
21934         status = pthread_attr_init(&attr);
21935         if( status ) return status;
21936
21937 #if HAVE_PTHREADS < 7
21938         status = pthread_attr_setdetachstate(&attr, &detach);
21939         if( status < 0 ) status = errno;
21940 #else
21941         status = pthread_attr_setdetachstate(&attr, detach);
21942 #endif
21943         if( status ) return status;
21944         status = pthread_create( &t, &attr, task, NULL );
21945 #if HAVE_PTHREADS < 7
21946         if( status < 0 ) status = errno;
21947 #endif
21948         if( status ) return status;
21949 #else
21950         /* Draft 4 pthreads */
21951         status = pthread_create( &t, pthread_attr_default, task, NULL );
21952         if( status ) return errno;
21953
21954         /* give thread a chance to complete */
21955         /* it should remain joinable and hence detachable */
21956         sleep( 1 );
21957
21958         status = pthread_detach( &t );
21959         if( status ) return errno;
21960 #endif
21961
21962 #ifdef HAVE_LINUX_THREADS
21963         pthread_kill_other_threads_np();
21964 #endif
21965
21966         return 0;
21967
21968   ;
21969   return 0;
21970 }
21971 _ACEOF
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976   *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979   (eval "$ac_link") 2>conftest.er1
21980   ac_status=$?
21981   grep -v '^ *+' conftest.er1 >conftest.err
21982   rm -f conftest.er1
21983   cat conftest.err >&5
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } && {
21986          test -z "$ac_c_werror_flag" ||
21987          test ! -s conftest.err
21988        } && test -s conftest$ac_exeext &&
21989        $as_test_x conftest$ac_exeext; then
21990   ol_cv_pthread_thread=yes
21991 else
21992   echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995         ol_cv_pthread_thread=no
21996 fi
21997
21998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21999       conftest$ac_exeext conftest.$ac_ext
22000 else
22001   cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h.  */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h.  */
22007
22008 /* pthread test headers */
22009 #include <pthread.h>
22010 #if HAVE_PTHREADS < 7
22011 #include <errno.h>
22012 #endif
22013 #ifndef NULL
22014 #define NULL (void*)0
22015 #endif
22016
22017 static void *task(p)
22018         void *p;
22019 {
22020         return (void *) (p == NULL);
22021 }
22022
22023
22024 int main(argc, argv)
22025         int argc;
22026         char **argv;
22027 {
22028
22029         /* pthread test function */
22030 #ifndef PTHREAD_CREATE_DETACHED
22031 #define PTHREAD_CREATE_DETACHED 1
22032 #endif
22033         pthread_t t;
22034         int status;
22035         int detach = PTHREAD_CREATE_DETACHED;
22036
22037 #if HAVE_PTHREADS > 4
22038         /* Final pthreads */
22039         pthread_attr_t attr;
22040
22041         status = pthread_attr_init(&attr);
22042         if( status ) return status;
22043
22044 #if HAVE_PTHREADS < 7
22045         status = pthread_attr_setdetachstate(&attr, &detach);
22046         if( status < 0 ) status = errno;
22047 #else
22048         status = pthread_attr_setdetachstate(&attr, detach);
22049 #endif
22050         if( status ) return status;
22051         status = pthread_create( &t, &attr, task, NULL );
22052 #if HAVE_PTHREADS < 7
22053         if( status < 0 ) status = errno;
22054 #endif
22055         if( status ) return status;
22056 #else
22057         /* Draft 4 pthreads */
22058         status = pthread_create( &t, pthread_attr_default, task, NULL );
22059         if( status ) return errno;
22060
22061         /* give thread a chance to complete */
22062         /* it should remain joinable and hence detachable */
22063         sleep( 1 );
22064
22065         status = pthread_detach( &t );
22066         if( status ) return errno;
22067 #endif
22068
22069 #ifdef HAVE_LINUX_THREADS
22070         pthread_kill_other_threads_np();
22071 #endif
22072
22073         return 0;
22074
22075 }
22076
22077 _ACEOF
22078 rm -f conftest$ac_exeext
22079 if { (ac_try="$ac_link"
22080 case "(($ac_try" in
22081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082   *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085   (eval "$ac_link") 2>&5
22086   ac_status=$?
22087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22089   { (case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_try") 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); }; }; then
22098   ol_cv_pthread_thread=yes
22099 else
22100   echo "$as_me: program exited with status $ac_status" >&5
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104 ( exit $ac_status )
22105 ol_cv_pthread_thread=no
22106 fi
22107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22108 fi
22109
22110
22111
22112                 # restore the LIBS
22113                 LIBS="$ol_LIBS"
22114
22115 fi
22116 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22117 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22118
22119         if test $ol_cv_pthread_thread = yes ; then
22120                 ol_link_pthreads="-thread"
22121                 ol_link_threads=posix
22122         fi
22123 fi
22124
22125
22126                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22127 if test "$ol_link_threads" = no ; then
22128         # try -lpthread -lmach -lexc -lc_r
22129         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22130 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22131 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22132   echo $ECHO_N "(cached) $ECHO_C" >&6
22133 else
22134
22135                 # save the flags
22136                 ol_LIBS="$LIBS"
22137                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22138
22139                 if test "$cross_compiling" = yes; then
22140   cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h.  */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h.  */
22146
22147 /* pthread test headers */
22148 #include <pthread.h>
22149 #if HAVE_PTHREADS < 7
22150 #include <errno.h>
22151 #endif
22152 #ifndef NULL
22153 #define NULL (void*)0
22154 #endif
22155
22156 static void *task(p)
22157         void *p;
22158 {
22159         return (void *) (p == NULL);
22160 }
22161
22162 int
22163 main ()
22164 {
22165
22166         /* pthread test function */
22167 #ifndef PTHREAD_CREATE_DETACHED
22168 #define PTHREAD_CREATE_DETACHED 1
22169 #endif
22170         pthread_t t;
22171         int status;
22172         int detach = PTHREAD_CREATE_DETACHED;
22173
22174 #if HAVE_PTHREADS > 4
22175         /* Final pthreads */
22176         pthread_attr_t attr;
22177
22178         status = pthread_attr_init(&attr);
22179         if( status ) return status;
22180
22181 #if HAVE_PTHREADS < 7
22182         status = pthread_attr_setdetachstate(&attr, &detach);
22183         if( status < 0 ) status = errno;
22184 #else
22185         status = pthread_attr_setdetachstate(&attr, detach);
22186 #endif
22187         if( status ) return status;
22188         status = pthread_create( &t, &attr, task, NULL );
22189 #if HAVE_PTHREADS < 7
22190         if( status < 0 ) status = errno;
22191 #endif
22192         if( status ) return status;
22193 #else
22194         /* Draft 4 pthreads */
22195         status = pthread_create( &t, pthread_attr_default, task, NULL );
22196         if( status ) return errno;
22197
22198         /* give thread a chance to complete */
22199         /* it should remain joinable and hence detachable */
22200         sleep( 1 );
22201
22202         status = pthread_detach( &t );
22203         if( status ) return errno;
22204 #endif
22205
22206 #ifdef HAVE_LINUX_THREADS
22207         pthread_kill_other_threads_np();
22208 #endif
22209
22210         return 0;
22211
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 rm -f conftest.$ac_objext conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220   *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223   (eval "$ac_link") 2>conftest.er1
22224   ac_status=$?
22225   grep -v '^ *+' conftest.er1 >conftest.err
22226   rm -f conftest.er1
22227   cat conftest.err >&5
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); } && {
22230          test -z "$ac_c_werror_flag" ||
22231          test ! -s conftest.err
22232        } && test -s conftest$ac_exeext &&
22233        $as_test_x conftest$ac_exeext; then
22234   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22235 else
22236   echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22238
22239         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22240 fi
22241
22242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243       conftest$ac_exeext conftest.$ac_ext
22244 else
22245   cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h.  */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h.  */
22251
22252 /* pthread test headers */
22253 #include <pthread.h>
22254 #if HAVE_PTHREADS < 7
22255 #include <errno.h>
22256 #endif
22257 #ifndef NULL
22258 #define NULL (void*)0
22259 #endif
22260
22261 static void *task(p)
22262         void *p;
22263 {
22264         return (void *) (p == NULL);
22265 }
22266
22267
22268 int main(argc, argv)
22269         int argc;
22270         char **argv;
22271 {
22272
22273         /* pthread test function */
22274 #ifndef PTHREAD_CREATE_DETACHED
22275 #define PTHREAD_CREATE_DETACHED 1
22276 #endif
22277         pthread_t t;
22278         int status;
22279         int detach = PTHREAD_CREATE_DETACHED;
22280
22281 #if HAVE_PTHREADS > 4
22282         /* Final pthreads */
22283         pthread_attr_t attr;
22284
22285         status = pthread_attr_init(&attr);
22286         if( status ) return status;
22287
22288 #if HAVE_PTHREADS < 7
22289         status = pthread_attr_setdetachstate(&attr, &detach);
22290         if( status < 0 ) status = errno;
22291 #else
22292         status = pthread_attr_setdetachstate(&attr, detach);
22293 #endif
22294         if( status ) return status;
22295         status = pthread_create( &t, &attr, task, NULL );
22296 #if HAVE_PTHREADS < 7
22297         if( status < 0 ) status = errno;
22298 #endif
22299         if( status ) return status;
22300 #else
22301         /* Draft 4 pthreads */
22302         status = pthread_create( &t, pthread_attr_default, task, NULL );
22303         if( status ) return errno;
22304
22305         /* give thread a chance to complete */
22306         /* it should remain joinable and hence detachable */
22307         sleep( 1 );
22308
22309         status = pthread_detach( &t );
22310         if( status ) return errno;
22311 #endif
22312
22313 #ifdef HAVE_LINUX_THREADS
22314         pthread_kill_other_threads_np();
22315 #endif
22316
22317         return 0;
22318
22319 }
22320
22321 _ACEOF
22322 rm -f conftest$ac_exeext
22323 if { (ac_try="$ac_link"
22324 case "(($ac_try" in
22325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326   *) ac_try_echo=$ac_try;;
22327 esac
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329   (eval "$ac_link") 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22333   { (case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_try") 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); }; }; then
22342   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22343 else
22344   echo "$as_me: program exited with status $ac_status" >&5
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 ( exit $ac_status )
22349 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22350 fi
22351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22352 fi
22353
22354
22355
22356                 # restore the LIBS
22357                 LIBS="$ol_LIBS"
22358
22359 fi
22360 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22361 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22362
22363         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22364                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22365                 ol_link_threads=posix
22366         fi
22367 fi
22368
22369                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22370 if test "$ol_link_threads" = no ; then
22371         # try -lpthread -lmach -lexc
22372         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22373 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22374 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377
22378                 # save the flags
22379                 ol_LIBS="$LIBS"
22380                 LIBS="-lpthread -lmach -lexc $LIBS"
22381
22382                 if test "$cross_compiling" = yes; then
22383   cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h.  */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h.  */
22389
22390 /* pthread test headers */
22391 #include <pthread.h>
22392 #if HAVE_PTHREADS < 7
22393 #include <errno.h>
22394 #endif
22395 #ifndef NULL
22396 #define NULL (void*)0
22397 #endif
22398
22399 static void *task(p)
22400         void *p;
22401 {
22402         return (void *) (p == NULL);
22403 }
22404
22405 int
22406 main ()
22407 {
22408
22409         /* pthread test function */
22410 #ifndef PTHREAD_CREATE_DETACHED
22411 #define PTHREAD_CREATE_DETACHED 1
22412 #endif
22413         pthread_t t;
22414         int status;
22415         int detach = PTHREAD_CREATE_DETACHED;
22416
22417 #if HAVE_PTHREADS > 4
22418         /* Final pthreads */
22419         pthread_attr_t attr;
22420
22421         status = pthread_attr_init(&attr);
22422         if( status ) return status;
22423
22424 #if HAVE_PTHREADS < 7
22425         status = pthread_attr_setdetachstate(&attr, &detach);
22426         if( status < 0 ) status = errno;
22427 #else
22428         status = pthread_attr_setdetachstate(&attr, detach);
22429 #endif
22430         if( status ) return status;
22431         status = pthread_create( &t, &attr, task, NULL );
22432 #if HAVE_PTHREADS < 7
22433         if( status < 0 ) status = errno;
22434 #endif
22435         if( status ) return status;
22436 #else
22437         /* Draft 4 pthreads */
22438         status = pthread_create( &t, pthread_attr_default, task, NULL );
22439         if( status ) return errno;
22440
22441         /* give thread a chance to complete */
22442         /* it should remain joinable and hence detachable */
22443         sleep( 1 );
22444
22445         status = pthread_detach( &t );
22446         if( status ) return errno;
22447 #endif
22448
22449 #ifdef HAVE_LINUX_THREADS
22450         pthread_kill_other_threads_np();
22451 #endif
22452
22453         return 0;
22454
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext conftest$ac_exeext
22460 if { (ac_try="$ac_link"
22461 case "(($ac_try" in
22462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463   *) ac_try_echo=$ac_try;;
22464 esac
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466   (eval "$ac_link") 2>conftest.er1
22467   ac_status=$?
22468   grep -v '^ *+' conftest.er1 >conftest.err
22469   rm -f conftest.er1
22470   cat conftest.err >&5
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); } && {
22473          test -z "$ac_c_werror_flag" ||
22474          test ! -s conftest.err
22475        } && test -s conftest$ac_exeext &&
22476        $as_test_x conftest$ac_exeext; then
22477   ol_cv_pthread_lpthread_lmach_lexc=yes
22478 else
22479   echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22481
22482         ol_cv_pthread_lpthread_lmach_lexc=no
22483 fi
22484
22485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22486       conftest$ac_exeext conftest.$ac_ext
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494
22495 /* pthread test headers */
22496 #include <pthread.h>
22497 #if HAVE_PTHREADS < 7
22498 #include <errno.h>
22499 #endif
22500 #ifndef NULL
22501 #define NULL (void*)0
22502 #endif
22503
22504 static void *task(p)
22505         void *p;
22506 {
22507         return (void *) (p == NULL);
22508 }
22509
22510
22511 int main(argc, argv)
22512         int argc;
22513         char **argv;
22514 {
22515
22516         /* pthread test function */
22517 #ifndef PTHREAD_CREATE_DETACHED
22518 #define PTHREAD_CREATE_DETACHED 1
22519 #endif
22520         pthread_t t;
22521         int status;
22522         int detach = PTHREAD_CREATE_DETACHED;
22523
22524 #if HAVE_PTHREADS > 4
22525         /* Final pthreads */
22526         pthread_attr_t attr;
22527
22528         status = pthread_attr_init(&attr);
22529         if( status ) return status;
22530
22531 #if HAVE_PTHREADS < 7
22532         status = pthread_attr_setdetachstate(&attr, &detach);
22533         if( status < 0 ) status = errno;
22534 #else
22535         status = pthread_attr_setdetachstate(&attr, detach);
22536 #endif
22537         if( status ) return status;
22538         status = pthread_create( &t, &attr, task, NULL );
22539 #if HAVE_PTHREADS < 7
22540         if( status < 0 ) status = errno;
22541 #endif
22542         if( status ) return status;
22543 #else
22544         /* Draft 4 pthreads */
22545         status = pthread_create( &t, pthread_attr_default, task, NULL );
22546         if( status ) return errno;
22547
22548         /* give thread a chance to complete */
22549         /* it should remain joinable and hence detachable */
22550         sleep( 1 );
22551
22552         status = pthread_detach( &t );
22553         if( status ) return errno;
22554 #endif
22555
22556 #ifdef HAVE_LINUX_THREADS
22557         pthread_kill_other_threads_np();
22558 #endif
22559
22560         return 0;
22561
22562 }
22563
22564 _ACEOF
22565 rm -f conftest$ac_exeext
22566 if { (ac_try="$ac_link"
22567 case "(($ac_try" in
22568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569   *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572   (eval "$ac_link") 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22576   { (case "(($ac_try" in
22577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578   *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581   (eval "$ac_try") 2>&5
22582   ac_status=$?
22583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584   (exit $ac_status); }; }; then
22585   ol_cv_pthread_lpthread_lmach_lexc=yes
22586 else
22587   echo "$as_me: program exited with status $ac_status" >&5
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 ( exit $ac_status )
22592 ol_cv_pthread_lpthread_lmach_lexc=no
22593 fi
22594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22595 fi
22596
22597
22598
22599                 # restore the LIBS
22600                 LIBS="$ol_LIBS"
22601
22602 fi
22603 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22604 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22605
22606         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22607                 ol_link_pthreads="-lpthread -lmach -lexc"
22608                 ol_link_threads=posix
22609         fi
22610 fi
22611
22612
22613                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22614 if test "$ol_link_threads" = no ; then
22615         # try -lpthread -Wl,-woff,85
22616         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22617 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22618 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22619   echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621
22622                 # save the flags
22623                 ol_LIBS="$LIBS"
22624                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22625
22626                 if test "$cross_compiling" = yes; then
22627   cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h.  */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h.  */
22633
22634 /* pthread test headers */
22635 #include <pthread.h>
22636 #if HAVE_PTHREADS < 7
22637 #include <errno.h>
22638 #endif
22639 #ifndef NULL
22640 #define NULL (void*)0
22641 #endif
22642
22643 static void *task(p)
22644         void *p;
22645 {
22646         return (void *) (p == NULL);
22647 }
22648
22649 int
22650 main ()
22651 {
22652
22653         /* pthread test function */
22654 #ifndef PTHREAD_CREATE_DETACHED
22655 #define PTHREAD_CREATE_DETACHED 1
22656 #endif
22657         pthread_t t;
22658         int status;
22659         int detach = PTHREAD_CREATE_DETACHED;
22660
22661 #if HAVE_PTHREADS > 4
22662         /* Final pthreads */
22663         pthread_attr_t attr;
22664
22665         status = pthread_attr_init(&attr);
22666         if( status ) return status;
22667
22668 #if HAVE_PTHREADS < 7
22669         status = pthread_attr_setdetachstate(&attr, &detach);
22670         if( status < 0 ) status = errno;
22671 #else
22672         status = pthread_attr_setdetachstate(&attr, detach);
22673 #endif
22674         if( status ) return status;
22675         status = pthread_create( &t, &attr, task, NULL );
22676 #if HAVE_PTHREADS < 7
22677         if( status < 0 ) status = errno;
22678 #endif
22679         if( status ) return status;
22680 #else
22681         /* Draft 4 pthreads */
22682         status = pthread_create( &t, pthread_attr_default, task, NULL );
22683         if( status ) return errno;
22684
22685         /* give thread a chance to complete */
22686         /* it should remain joinable and hence detachable */
22687         sleep( 1 );
22688
22689         status = pthread_detach( &t );
22690         if( status ) return errno;
22691 #endif
22692
22693 #ifdef HAVE_LINUX_THREADS
22694         pthread_kill_other_threads_np();
22695 #endif
22696
22697         return 0;
22698
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (ac_try="$ac_link"
22705 case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_link") 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } && {
22717          test -z "$ac_c_werror_flag" ||
22718          test ! -s conftest.err
22719        } && test -s conftest$ac_exeext &&
22720        $as_test_x conftest$ac_exeext; then
22721   ol_cv_pthread_lib_lpthread_woff=yes
22722 else
22723   echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22725
22726         ol_cv_pthread_lib_lpthread_woff=no
22727 fi
22728
22729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22730       conftest$ac_exeext conftest.$ac_ext
22731 else
22732   cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h.  */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h.  */
22738
22739 /* pthread test headers */
22740 #include <pthread.h>
22741 #if HAVE_PTHREADS < 7
22742 #include <errno.h>
22743 #endif
22744 #ifndef NULL
22745 #define NULL (void*)0
22746 #endif
22747
22748 static void *task(p)
22749         void *p;
22750 {
22751         return (void *) (p == NULL);
22752 }
22753
22754
22755 int main(argc, argv)
22756         int argc;
22757         char **argv;
22758 {
22759
22760         /* pthread test function */
22761 #ifndef PTHREAD_CREATE_DETACHED
22762 #define PTHREAD_CREATE_DETACHED 1
22763 #endif
22764         pthread_t t;
22765         int status;
22766         int detach = PTHREAD_CREATE_DETACHED;
22767
22768 #if HAVE_PTHREADS > 4
22769         /* Final pthreads */
22770         pthread_attr_t attr;
22771
22772         status = pthread_attr_init(&attr);
22773         if( status ) return status;
22774
22775 #if HAVE_PTHREADS < 7
22776         status = pthread_attr_setdetachstate(&attr, &detach);
22777         if( status < 0 ) status = errno;
22778 #else
22779         status = pthread_attr_setdetachstate(&attr, detach);
22780 #endif
22781         if( status ) return status;
22782         status = pthread_create( &t, &attr, task, NULL );
22783 #if HAVE_PTHREADS < 7
22784         if( status < 0 ) status = errno;
22785 #endif
22786         if( status ) return status;
22787 #else
22788         /* Draft 4 pthreads */
22789         status = pthread_create( &t, pthread_attr_default, task, NULL );
22790         if( status ) return errno;
22791
22792         /* give thread a chance to complete */
22793         /* it should remain joinable and hence detachable */
22794         sleep( 1 );
22795
22796         status = pthread_detach( &t );
22797         if( status ) return errno;
22798 #endif
22799
22800 #ifdef HAVE_LINUX_THREADS
22801         pthread_kill_other_threads_np();
22802 #endif
22803
22804         return 0;
22805
22806 }
22807
22808 _ACEOF
22809 rm -f conftest$ac_exeext
22810 if { (ac_try="$ac_link"
22811 case "(($ac_try" in
22812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813   *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816   (eval "$ac_link") 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820   { (case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825   (eval "$ac_try") 2>&5
22826   ac_status=$?
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); }; }; then
22829   ol_cv_pthread_lib_lpthread_woff=yes
22830 else
22831   echo "$as_me: program exited with status $ac_status" >&5
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835 ( exit $ac_status )
22836 ol_cv_pthread_lib_lpthread_woff=no
22837 fi
22838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22839 fi
22840
22841
22842
22843                 # restore the LIBS
22844                 LIBS="$ol_LIBS"
22845
22846 fi
22847 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22848 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22849
22850         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22851                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22852                 ol_link_threads=posix
22853         fi
22854 fi
22855
22856
22857                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22858 if test "$ol_link_threads" = no ; then
22859         # try -lpthread
22860         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22861 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22862 if test "${ol_cv_pthread_lpthread+set}" = set; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865
22866                 # save the flags
22867                 ol_LIBS="$LIBS"
22868                 LIBS="-lpthread $LIBS"
22869
22870                 if test "$cross_compiling" = yes; then
22871   cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877
22878 /* pthread test headers */
22879 #include <pthread.h>
22880 #if HAVE_PTHREADS < 7
22881 #include <errno.h>
22882 #endif
22883 #ifndef NULL
22884 #define NULL (void*)0
22885 #endif
22886
22887 static void *task(p)
22888         void *p;
22889 {
22890         return (void *) (p == NULL);
22891 }
22892
22893 int
22894 main ()
22895 {
22896
22897         /* pthread test function */
22898 #ifndef PTHREAD_CREATE_DETACHED
22899 #define PTHREAD_CREATE_DETACHED 1
22900 #endif
22901         pthread_t t;
22902         int status;
22903         int detach = PTHREAD_CREATE_DETACHED;
22904
22905 #if HAVE_PTHREADS > 4
22906         /* Final pthreads */
22907         pthread_attr_t attr;
22908
22909         status = pthread_attr_init(&attr);
22910         if( status ) return status;
22911
22912 #if HAVE_PTHREADS < 7
22913         status = pthread_attr_setdetachstate(&attr, &detach);
22914         if( status < 0 ) status = errno;
22915 #else
22916         status = pthread_attr_setdetachstate(&attr, detach);
22917 #endif
22918         if( status ) return status;
22919         status = pthread_create( &t, &attr, task, NULL );
22920 #if HAVE_PTHREADS < 7
22921         if( status < 0 ) status = errno;
22922 #endif
22923         if( status ) return status;
22924 #else
22925         /* Draft 4 pthreads */
22926         status = pthread_create( &t, pthread_attr_default, task, NULL );
22927         if( status ) return errno;
22928
22929         /* give thread a chance to complete */
22930         /* it should remain joinable and hence detachable */
22931         sleep( 1 );
22932
22933         status = pthread_detach( &t );
22934         if( status ) return errno;
22935 #endif
22936
22937 #ifdef HAVE_LINUX_THREADS
22938         pthread_kill_other_threads_np();
22939 #endif
22940
22941         return 0;
22942
22943   ;
22944   return 0;
22945 }
22946 _ACEOF
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (ac_try="$ac_link"
22949 case "(($ac_try" in
22950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951   *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954   (eval "$ac_link") 2>conftest.er1
22955   ac_status=$?
22956   grep -v '^ *+' conftest.er1 >conftest.err
22957   rm -f conftest.er1
22958   cat conftest.err >&5
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); } && {
22961          test -z "$ac_c_werror_flag" ||
22962          test ! -s conftest.err
22963        } && test -s conftest$ac_exeext &&
22964        $as_test_x conftest$ac_exeext; then
22965   ol_cv_pthread_lpthread=yes
22966 else
22967   echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970         ol_cv_pthread_lpthread=no
22971 fi
22972
22973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22974       conftest$ac_exeext conftest.$ac_ext
22975 else
22976   cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h.  */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h.  */
22982
22983 /* pthread test headers */
22984 #include <pthread.h>
22985 #if HAVE_PTHREADS < 7
22986 #include <errno.h>
22987 #endif
22988 #ifndef NULL
22989 #define NULL (void*)0
22990 #endif
22991
22992 static void *task(p)
22993         void *p;
22994 {
22995         return (void *) (p == NULL);
22996 }
22997
22998
22999 int main(argc, argv)
23000         int argc;
23001         char **argv;
23002 {
23003
23004         /* pthread test function */
23005 #ifndef PTHREAD_CREATE_DETACHED
23006 #define PTHREAD_CREATE_DETACHED 1
23007 #endif
23008         pthread_t t;
23009         int status;
23010         int detach = PTHREAD_CREATE_DETACHED;
23011
23012 #if HAVE_PTHREADS > 4
23013         /* Final pthreads */
23014         pthread_attr_t attr;
23015
23016         status = pthread_attr_init(&attr);
23017         if( status ) return status;
23018
23019 #if HAVE_PTHREADS < 7
23020         status = pthread_attr_setdetachstate(&attr, &detach);
23021         if( status < 0 ) status = errno;
23022 #else
23023         status = pthread_attr_setdetachstate(&attr, detach);
23024 #endif
23025         if( status ) return status;
23026         status = pthread_create( &t, &attr, task, NULL );
23027 #if HAVE_PTHREADS < 7
23028         if( status < 0 ) status = errno;
23029 #endif
23030         if( status ) return status;
23031 #else
23032         /* Draft 4 pthreads */
23033         status = pthread_create( &t, pthread_attr_default, task, NULL );
23034         if( status ) return errno;
23035
23036         /* give thread a chance to complete */
23037         /* it should remain joinable and hence detachable */
23038         sleep( 1 );
23039
23040         status = pthread_detach( &t );
23041         if( status ) return errno;
23042 #endif
23043
23044 #ifdef HAVE_LINUX_THREADS
23045         pthread_kill_other_threads_np();
23046 #endif
23047
23048         return 0;
23049
23050 }
23051
23052 _ACEOF
23053 rm -f conftest$ac_exeext
23054 if { (ac_try="$ac_link"
23055 case "(($ac_try" in
23056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057   *) ac_try_echo=$ac_try;;
23058 esac
23059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060   (eval "$ac_link") 2>&5
23061   ac_status=$?
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23064   { (case "(($ac_try" in
23065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066   *) ac_try_echo=$ac_try;;
23067 esac
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069   (eval "$ac_try") 2>&5
23070   ac_status=$?
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); }; }; then
23073   ol_cv_pthread_lpthread=yes
23074 else
23075   echo "$as_me: program exited with status $ac_status" >&5
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23078
23079 ( exit $ac_status )
23080 ol_cv_pthread_lpthread=no
23081 fi
23082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23083 fi
23084
23085
23086
23087                 # restore the LIBS
23088                 LIBS="$ol_LIBS"
23089
23090 fi
23091 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23092 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23093
23094         if test $ol_cv_pthread_lpthread = yes ; then
23095                 ol_link_pthreads="-lpthread"
23096                 ol_link_threads=posix
23097         fi
23098 fi
23099
23100                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23101 if test "$ol_link_threads" = no ; then
23102         # try -lc_r
23103         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23104 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23105 if test "${ol_cv_pthread_lc_r+set}" = set; then
23106   echo $ECHO_N "(cached) $ECHO_C" >&6
23107 else
23108
23109                 # save the flags
23110                 ol_LIBS="$LIBS"
23111                 LIBS="-lc_r $LIBS"
23112
23113                 if test "$cross_compiling" = yes; then
23114   cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120
23121 /* pthread test headers */
23122 #include <pthread.h>
23123 #if HAVE_PTHREADS < 7
23124 #include <errno.h>
23125 #endif
23126 #ifndef NULL
23127 #define NULL (void*)0
23128 #endif
23129
23130 static void *task(p)
23131         void *p;
23132 {
23133         return (void *) (p == NULL);
23134 }
23135
23136 int
23137 main ()
23138 {
23139
23140         /* pthread test function */
23141 #ifndef PTHREAD_CREATE_DETACHED
23142 #define PTHREAD_CREATE_DETACHED 1
23143 #endif
23144         pthread_t t;
23145         int status;
23146         int detach = PTHREAD_CREATE_DETACHED;
23147
23148 #if HAVE_PTHREADS > 4
23149         /* Final pthreads */
23150         pthread_attr_t attr;
23151
23152         status = pthread_attr_init(&attr);
23153         if( status ) return status;
23154
23155 #if HAVE_PTHREADS < 7
23156         status = pthread_attr_setdetachstate(&attr, &detach);
23157         if( status < 0 ) status = errno;
23158 #else
23159         status = pthread_attr_setdetachstate(&attr, detach);
23160 #endif
23161         if( status ) return status;
23162         status = pthread_create( &t, &attr, task, NULL );
23163 #if HAVE_PTHREADS < 7
23164         if( status < 0 ) status = errno;
23165 #endif
23166         if( status ) return status;
23167 #else
23168         /* Draft 4 pthreads */
23169         status = pthread_create( &t, pthread_attr_default, task, NULL );
23170         if( status ) return errno;
23171
23172         /* give thread a chance to complete */
23173         /* it should remain joinable and hence detachable */
23174         sleep( 1 );
23175
23176         status = pthread_detach( &t );
23177         if( status ) return errno;
23178 #endif
23179
23180 #ifdef HAVE_LINUX_THREADS
23181         pthread_kill_other_threads_np();
23182 #endif
23183
23184         return 0;
23185
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (ac_try="$ac_link"
23192 case "(($ac_try" in
23193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194   *) ac_try_echo=$ac_try;;
23195 esac
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197   (eval "$ac_link") 2>conftest.er1
23198   ac_status=$?
23199   grep -v '^ *+' conftest.er1 >conftest.err
23200   rm -f conftest.er1
23201   cat conftest.err >&5
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); } && {
23204          test -z "$ac_c_werror_flag" ||
23205          test ! -s conftest.err
23206        } && test -s conftest$ac_exeext &&
23207        $as_test_x conftest$ac_exeext; then
23208   ol_cv_pthread_lc_r=yes
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213         ol_cv_pthread_lc_r=no
23214 fi
23215
23216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23217       conftest$ac_exeext conftest.$ac_ext
23218 else
23219   cat >conftest.$ac_ext <<_ACEOF
23220 /* confdefs.h.  */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h.  */
23225
23226 /* pthread test headers */
23227 #include <pthread.h>
23228 #if HAVE_PTHREADS < 7
23229 #include <errno.h>
23230 #endif
23231 #ifndef NULL
23232 #define NULL (void*)0
23233 #endif
23234
23235 static void *task(p)
23236         void *p;
23237 {
23238         return (void *) (p == NULL);
23239 }
23240
23241
23242 int main(argc, argv)
23243         int argc;
23244         char **argv;
23245 {
23246
23247         /* pthread test function */
23248 #ifndef PTHREAD_CREATE_DETACHED
23249 #define PTHREAD_CREATE_DETACHED 1
23250 #endif
23251         pthread_t t;
23252         int status;
23253         int detach = PTHREAD_CREATE_DETACHED;
23254
23255 #if HAVE_PTHREADS > 4
23256         /* Final pthreads */
23257         pthread_attr_t attr;
23258
23259         status = pthread_attr_init(&attr);
23260         if( status ) return status;
23261
23262 #if HAVE_PTHREADS < 7
23263         status = pthread_attr_setdetachstate(&attr, &detach);
23264         if( status < 0 ) status = errno;
23265 #else
23266         status = pthread_attr_setdetachstate(&attr, detach);
23267 #endif
23268         if( status ) return status;
23269         status = pthread_create( &t, &attr, task, NULL );
23270 #if HAVE_PTHREADS < 7
23271         if( status < 0 ) status = errno;
23272 #endif
23273         if( status ) return status;
23274 #else
23275         /* Draft 4 pthreads */
23276         status = pthread_create( &t, pthread_attr_default, task, NULL );
23277         if( status ) return errno;
23278
23279         /* give thread a chance to complete */
23280         /* it should remain joinable and hence detachable */
23281         sleep( 1 );
23282
23283         status = pthread_detach( &t );
23284         if( status ) return errno;
23285 #endif
23286
23287 #ifdef HAVE_LINUX_THREADS
23288         pthread_kill_other_threads_np();
23289 #endif
23290
23291         return 0;
23292
23293 }
23294
23295 _ACEOF
23296 rm -f conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300   *) ac_try_echo=$ac_try;;
23301 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303   (eval "$ac_link") 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307   { (case "(($ac_try" in
23308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309   *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312   (eval "$ac_try") 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); }; }; then
23316   ol_cv_pthread_lc_r=yes
23317 else
23318   echo "$as_me: program exited with status $ac_status" >&5
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23321
23322 ( exit $ac_status )
23323 ol_cv_pthread_lc_r=no
23324 fi
23325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23326 fi
23327
23328
23329
23330                 # restore the LIBS
23331                 LIBS="$ol_LIBS"
23332
23333 fi
23334 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23335 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23336
23337         if test $ol_cv_pthread_lc_r = yes ; then
23338                 ol_link_pthreads="-lc_r"
23339                 ol_link_threads=posix
23340         fi
23341 fi
23342
23343
23344                 # Pthread try link: -threads (ol_cv_pthread_threads)
23345 if test "$ol_link_threads" = no ; then
23346         # try -threads
23347         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23348 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23349 if test "${ol_cv_pthread_threads+set}" = set; then
23350   echo $ECHO_N "(cached) $ECHO_C" >&6
23351 else
23352
23353                 # save the flags
23354                 ol_LIBS="$LIBS"
23355                 LIBS="-threads $LIBS"
23356
23357                 if test "$cross_compiling" = yes; then
23358   cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h.  */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h.  */
23364
23365 /* pthread test headers */
23366 #include <pthread.h>
23367 #if HAVE_PTHREADS < 7
23368 #include <errno.h>
23369 #endif
23370 #ifndef NULL
23371 #define NULL (void*)0
23372 #endif
23373
23374 static void *task(p)
23375         void *p;
23376 {
23377         return (void *) (p == NULL);
23378 }
23379
23380 int
23381 main ()
23382 {
23383
23384         /* pthread test function */
23385 #ifndef PTHREAD_CREATE_DETACHED
23386 #define PTHREAD_CREATE_DETACHED 1
23387 #endif
23388         pthread_t t;
23389         int status;
23390         int detach = PTHREAD_CREATE_DETACHED;
23391
23392 #if HAVE_PTHREADS > 4
23393         /* Final pthreads */
23394         pthread_attr_t attr;
23395
23396         status = pthread_attr_init(&attr);
23397         if( status ) return status;
23398
23399 #if HAVE_PTHREADS < 7
23400         status = pthread_attr_setdetachstate(&attr, &detach);
23401         if( status < 0 ) status = errno;
23402 #else
23403         status = pthread_attr_setdetachstate(&attr, detach);
23404 #endif
23405         if( status ) return status;
23406         status = pthread_create( &t, &attr, task, NULL );
23407 #if HAVE_PTHREADS < 7
23408         if( status < 0 ) status = errno;
23409 #endif
23410         if( status ) return status;
23411 #else
23412         /* Draft 4 pthreads */
23413         status = pthread_create( &t, pthread_attr_default, task, NULL );
23414         if( status ) return errno;
23415
23416         /* give thread a chance to complete */
23417         /* it should remain joinable and hence detachable */
23418         sleep( 1 );
23419
23420         status = pthread_detach( &t );
23421         if( status ) return errno;
23422 #endif
23423
23424 #ifdef HAVE_LINUX_THREADS
23425         pthread_kill_other_threads_np();
23426 #endif
23427
23428         return 0;
23429
23430   ;
23431   return 0;
23432 }
23433 _ACEOF
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (ac_try="$ac_link"
23436 case "(($ac_try" in
23437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438   *) ac_try_echo=$ac_try;;
23439 esac
23440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23441   (eval "$ac_link") 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } && {
23448          test -z "$ac_c_werror_flag" ||
23449          test ! -s conftest.err
23450        } && test -s conftest$ac_exeext &&
23451        $as_test_x conftest$ac_exeext; then
23452   ol_cv_pthread_threads=yes
23453 else
23454   echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23456
23457         ol_cv_pthread_threads=no
23458 fi
23459
23460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23461       conftest$ac_exeext conftest.$ac_ext
23462 else
23463   cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h.  */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h.  */
23469
23470 /* pthread test headers */
23471 #include <pthread.h>
23472 #if HAVE_PTHREADS < 7
23473 #include <errno.h>
23474 #endif
23475 #ifndef NULL
23476 #define NULL (void*)0
23477 #endif
23478
23479 static void *task(p)
23480         void *p;
23481 {
23482         return (void *) (p == NULL);
23483 }
23484
23485
23486 int main(argc, argv)
23487         int argc;
23488         char **argv;
23489 {
23490
23491         /* pthread test function */
23492 #ifndef PTHREAD_CREATE_DETACHED
23493 #define PTHREAD_CREATE_DETACHED 1
23494 #endif
23495         pthread_t t;
23496         int status;
23497         int detach = PTHREAD_CREATE_DETACHED;
23498
23499 #if HAVE_PTHREADS > 4
23500         /* Final pthreads */
23501         pthread_attr_t attr;
23502
23503         status = pthread_attr_init(&attr);
23504         if( status ) return status;
23505
23506 #if HAVE_PTHREADS < 7
23507         status = pthread_attr_setdetachstate(&attr, &detach);
23508         if( status < 0 ) status = errno;
23509 #else
23510         status = pthread_attr_setdetachstate(&attr, detach);
23511 #endif
23512         if( status ) return status;
23513         status = pthread_create( &t, &attr, task, NULL );
23514 #if HAVE_PTHREADS < 7
23515         if( status < 0 ) status = errno;
23516 #endif
23517         if( status ) return status;
23518 #else
23519         /* Draft 4 pthreads */
23520         status = pthread_create( &t, pthread_attr_default, task, NULL );
23521         if( status ) return errno;
23522
23523         /* give thread a chance to complete */
23524         /* it should remain joinable and hence detachable */
23525         sleep( 1 );
23526
23527         status = pthread_detach( &t );
23528         if( status ) return errno;
23529 #endif
23530
23531 #ifdef HAVE_LINUX_THREADS
23532         pthread_kill_other_threads_np();
23533 #endif
23534
23535         return 0;
23536
23537 }
23538
23539 _ACEOF
23540 rm -f conftest$ac_exeext
23541 if { (ac_try="$ac_link"
23542 case "(($ac_try" in
23543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544   *) ac_try_echo=$ac_try;;
23545 esac
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547   (eval "$ac_link") 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23551   { (case "(($ac_try" in
23552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553   *) ac_try_echo=$ac_try;;
23554 esac
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556   (eval "$ac_try") 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); }; }; then
23560   ol_cv_pthread_threads=yes
23561 else
23562   echo "$as_me: program exited with status $ac_status" >&5
23563 echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23565
23566 ( exit $ac_status )
23567 ol_cv_pthread_threads=no
23568 fi
23569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23570 fi
23571
23572
23573
23574                 # restore the LIBS
23575                 LIBS="$ol_LIBS"
23576
23577 fi
23578 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23579 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23580
23581         if test $ol_cv_pthread_threads = yes ; then
23582                 ol_link_pthreads="-threads"
23583                 ol_link_threads=posix
23584         fi
23585 fi
23586
23587
23588                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23589 if test "$ol_link_threads" = no ; then
23590         # try -lpthreads -lmach -lexc -lc_r
23591         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23592 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23593 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23594   echo $ECHO_N "(cached) $ECHO_C" >&6
23595 else
23596
23597                 # save the flags
23598                 ol_LIBS="$LIBS"
23599                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23600
23601                 if test "$cross_compiling" = yes; then
23602   cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608
23609 /* pthread test headers */
23610 #include <pthread.h>
23611 #if HAVE_PTHREADS < 7
23612 #include <errno.h>
23613 #endif
23614 #ifndef NULL
23615 #define NULL (void*)0
23616 #endif
23617
23618 static void *task(p)
23619         void *p;
23620 {
23621         return (void *) (p == NULL);
23622 }
23623
23624 int
23625 main ()
23626 {
23627
23628         /* pthread test function */
23629 #ifndef PTHREAD_CREATE_DETACHED
23630 #define PTHREAD_CREATE_DETACHED 1
23631 #endif
23632         pthread_t t;
23633         int status;
23634         int detach = PTHREAD_CREATE_DETACHED;
23635
23636 #if HAVE_PTHREADS > 4
23637         /* Final pthreads */
23638         pthread_attr_t attr;
23639
23640         status = pthread_attr_init(&attr);
23641         if( status ) return status;
23642
23643 #if HAVE_PTHREADS < 7
23644         status = pthread_attr_setdetachstate(&attr, &detach);
23645         if( status < 0 ) status = errno;
23646 #else
23647         status = pthread_attr_setdetachstate(&attr, detach);
23648 #endif
23649         if( status ) return status;
23650         status = pthread_create( &t, &attr, task, NULL );
23651 #if HAVE_PTHREADS < 7
23652         if( status < 0 ) status = errno;
23653 #endif
23654         if( status ) return status;
23655 #else
23656         /* Draft 4 pthreads */
23657         status = pthread_create( &t, pthread_attr_default, task, NULL );
23658         if( status ) return errno;
23659
23660         /* give thread a chance to complete */
23661         /* it should remain joinable and hence detachable */
23662         sleep( 1 );
23663
23664         status = pthread_detach( &t );
23665         if( status ) return errno;
23666 #endif
23667
23668 #ifdef HAVE_LINUX_THREADS
23669         pthread_kill_other_threads_np();
23670 #endif
23671
23672         return 0;
23673
23674   ;
23675   return 0;
23676 }
23677 _ACEOF
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682   *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685   (eval "$ac_link") 2>conftest.er1
23686   ac_status=$?
23687   grep -v '^ *+' conftest.er1 >conftest.err
23688   rm -f conftest.er1
23689   cat conftest.err >&5
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); } && {
23692          test -z "$ac_c_werror_flag" ||
23693          test ! -s conftest.err
23694        } && test -s conftest$ac_exeext &&
23695        $as_test_x conftest$ac_exeext; then
23696   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23697 else
23698   echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23700
23701         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23702 fi
23703
23704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23705       conftest$ac_exeext conftest.$ac_ext
23706 else
23707   cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713
23714 /* pthread test headers */
23715 #include <pthread.h>
23716 #if HAVE_PTHREADS < 7
23717 #include <errno.h>
23718 #endif
23719 #ifndef NULL
23720 #define NULL (void*)0
23721 #endif
23722
23723 static void *task(p)
23724         void *p;
23725 {
23726         return (void *) (p == NULL);
23727 }
23728
23729
23730 int main(argc, argv)
23731         int argc;
23732         char **argv;
23733 {
23734
23735         /* pthread test function */
23736 #ifndef PTHREAD_CREATE_DETACHED
23737 #define PTHREAD_CREATE_DETACHED 1
23738 #endif
23739         pthread_t t;
23740         int status;
23741         int detach = PTHREAD_CREATE_DETACHED;
23742
23743 #if HAVE_PTHREADS > 4
23744         /* Final pthreads */
23745         pthread_attr_t attr;
23746
23747         status = pthread_attr_init(&attr);
23748         if( status ) return status;
23749
23750 #if HAVE_PTHREADS < 7
23751         status = pthread_attr_setdetachstate(&attr, &detach);
23752         if( status < 0 ) status = errno;
23753 #else
23754         status = pthread_attr_setdetachstate(&attr, detach);
23755 #endif
23756         if( status ) return status;
23757         status = pthread_create( &t, &attr, task, NULL );
23758 #if HAVE_PTHREADS < 7
23759         if( status < 0 ) status = errno;
23760 #endif
23761         if( status ) return status;
23762 #else
23763         /* Draft 4 pthreads */
23764         status = pthread_create( &t, pthread_attr_default, task, NULL );
23765         if( status ) return errno;
23766
23767         /* give thread a chance to complete */
23768         /* it should remain joinable and hence detachable */
23769         sleep( 1 );
23770
23771         status = pthread_detach( &t );
23772         if( status ) return errno;
23773 #endif
23774
23775 #ifdef HAVE_LINUX_THREADS
23776         pthread_kill_other_threads_np();
23777 #endif
23778
23779         return 0;
23780
23781 }
23782
23783 _ACEOF
23784 rm -f conftest$ac_exeext
23785 if { (ac_try="$ac_link"
23786 case "(($ac_try" in
23787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788   *) ac_try_echo=$ac_try;;
23789 esac
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791   (eval "$ac_link") 2>&5
23792   ac_status=$?
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795   { (case "(($ac_try" in
23796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797   *) ac_try_echo=$ac_try;;
23798 esac
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800   (eval "$ac_try") 2>&5
23801   ac_status=$?
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); }; }; then
23804   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23805 else
23806   echo "$as_me: program exited with status $ac_status" >&5
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23809
23810 ( exit $ac_status )
23811 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23812 fi
23813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23814 fi
23815
23816
23817
23818                 # restore the LIBS
23819                 LIBS="$ol_LIBS"
23820
23821 fi
23822 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23823 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23824
23825         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23826                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23827                 ol_link_threads=posix
23828         fi
23829 fi
23830
23831                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23832 if test "$ol_link_threads" = no ; then
23833         # try -lpthreads -lmach -lexc
23834         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23835 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23836 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23837   echo $ECHO_N "(cached) $ECHO_C" >&6
23838 else
23839
23840                 # save the flags
23841                 ol_LIBS="$LIBS"
23842                 LIBS="-lpthreads -lmach -lexc $LIBS"
23843
23844                 if test "$cross_compiling" = yes; then
23845   cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h.  */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h.  */
23851
23852 /* pthread test headers */
23853 #include <pthread.h>
23854 #if HAVE_PTHREADS < 7
23855 #include <errno.h>
23856 #endif
23857 #ifndef NULL
23858 #define NULL (void*)0
23859 #endif
23860
23861 static void *task(p)
23862         void *p;
23863 {
23864         return (void *) (p == NULL);
23865 }
23866
23867 int
23868 main ()
23869 {
23870
23871         /* pthread test function */
23872 #ifndef PTHREAD_CREATE_DETACHED
23873 #define PTHREAD_CREATE_DETACHED 1
23874 #endif
23875         pthread_t t;
23876         int status;
23877         int detach = PTHREAD_CREATE_DETACHED;
23878
23879 #if HAVE_PTHREADS > 4
23880         /* Final pthreads */
23881         pthread_attr_t attr;
23882
23883         status = pthread_attr_init(&attr);
23884         if( status ) return status;
23885
23886 #if HAVE_PTHREADS < 7
23887         status = pthread_attr_setdetachstate(&attr, &detach);
23888         if( status < 0 ) status = errno;
23889 #else
23890         status = pthread_attr_setdetachstate(&attr, detach);
23891 #endif
23892         if( status ) return status;
23893         status = pthread_create( &t, &attr, task, NULL );
23894 #if HAVE_PTHREADS < 7
23895         if( status < 0 ) status = errno;
23896 #endif
23897         if( status ) return status;
23898 #else
23899         /* Draft 4 pthreads */
23900         status = pthread_create( &t, pthread_attr_default, task, NULL );
23901         if( status ) return errno;
23902
23903         /* give thread a chance to complete */
23904         /* it should remain joinable and hence detachable */
23905         sleep( 1 );
23906
23907         status = pthread_detach( &t );
23908         if( status ) return errno;
23909 #endif
23910
23911 #ifdef HAVE_LINUX_THREADS
23912         pthread_kill_other_threads_np();
23913 #endif
23914
23915         return 0;
23916
23917   ;
23918   return 0;
23919 }
23920 _ACEOF
23921 rm -f conftest.$ac_objext conftest$ac_exeext
23922 if { (ac_try="$ac_link"
23923 case "(($ac_try" in
23924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925   *) ac_try_echo=$ac_try;;
23926 esac
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928   (eval "$ac_link") 2>conftest.er1
23929   ac_status=$?
23930   grep -v '^ *+' conftest.er1 >conftest.err
23931   rm -f conftest.er1
23932   cat conftest.err >&5
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); } && {
23935          test -z "$ac_c_werror_flag" ||
23936          test ! -s conftest.err
23937        } && test -s conftest$ac_exeext &&
23938        $as_test_x conftest$ac_exeext; then
23939   ol_cv_pthread_lpthreads_lmach_lexc=yes
23940 else
23941   echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23943
23944         ol_cv_pthread_lpthreads_lmach_lexc=no
23945 fi
23946
23947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23948       conftest$ac_exeext conftest.$ac_ext
23949 else
23950   cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h.  */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h.  */
23956
23957 /* pthread test headers */
23958 #include <pthread.h>
23959 #if HAVE_PTHREADS < 7
23960 #include <errno.h>
23961 #endif
23962 #ifndef NULL
23963 #define NULL (void*)0
23964 #endif
23965
23966 static void *task(p)
23967         void *p;
23968 {
23969         return (void *) (p == NULL);
23970 }
23971
23972
23973 int main(argc, argv)
23974         int argc;
23975         char **argv;
23976 {
23977
23978         /* pthread test function */
23979 #ifndef PTHREAD_CREATE_DETACHED
23980 #define PTHREAD_CREATE_DETACHED 1
23981 #endif
23982         pthread_t t;
23983         int status;
23984         int detach = PTHREAD_CREATE_DETACHED;
23985
23986 #if HAVE_PTHREADS > 4
23987         /* Final pthreads */
23988         pthread_attr_t attr;
23989
23990         status = pthread_attr_init(&attr);
23991         if( status ) return status;
23992
23993 #if HAVE_PTHREADS < 7
23994         status = pthread_attr_setdetachstate(&attr, &detach);
23995         if( status < 0 ) status = errno;
23996 #else
23997         status = pthread_attr_setdetachstate(&attr, detach);
23998 #endif
23999         if( status ) return status;
24000         status = pthread_create( &t, &attr, task, NULL );
24001 #if HAVE_PTHREADS < 7
24002         if( status < 0 ) status = errno;
24003 #endif
24004         if( status ) return status;
24005 #else
24006         /* Draft 4 pthreads */
24007         status = pthread_create( &t, pthread_attr_default, task, NULL );
24008         if( status ) return errno;
24009
24010         /* give thread a chance to complete */
24011         /* it should remain joinable and hence detachable */
24012         sleep( 1 );
24013
24014         status = pthread_detach( &t );
24015         if( status ) return errno;
24016 #endif
24017
24018 #ifdef HAVE_LINUX_THREADS
24019         pthread_kill_other_threads_np();
24020 #endif
24021
24022         return 0;
24023
24024 }
24025
24026 _ACEOF
24027 rm -f conftest$ac_exeext
24028 if { (ac_try="$ac_link"
24029 case "(($ac_try" in
24030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24031   *) ac_try_echo=$ac_try;;
24032 esac
24033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24034   (eval "$ac_link") 2>&5
24035   ac_status=$?
24036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24038   { (case "(($ac_try" in
24039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040   *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043   (eval "$ac_try") 2>&5
24044   ac_status=$?
24045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); }; }; then
24047   ol_cv_pthread_lpthreads_lmach_lexc=yes
24048 else
24049   echo "$as_me: program exited with status $ac_status" >&5
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
24053 ( exit $ac_status )
24054 ol_cv_pthread_lpthreads_lmach_lexc=no
24055 fi
24056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24057 fi
24058
24059
24060
24061                 # restore the LIBS
24062                 LIBS="$ol_LIBS"
24063
24064 fi
24065 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24066 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24067
24068         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24069                 ol_link_pthreads="-lpthreads -lmach -lexc"
24070                 ol_link_threads=posix
24071         fi
24072 fi
24073
24074                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24075 if test "$ol_link_threads" = no ; then
24076         # try -lpthreads -lexc
24077         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24078 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24079 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24080   echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082
24083                 # save the flags
24084                 ol_LIBS="$LIBS"
24085                 LIBS="-lpthreads -lexc $LIBS"
24086
24087                 if test "$cross_compiling" = yes; then
24088   cat >conftest.$ac_ext <<_ACEOF
24089 /* confdefs.h.  */
24090 _ACEOF
24091 cat confdefs.h >>conftest.$ac_ext
24092 cat >>conftest.$ac_ext <<_ACEOF
24093 /* end confdefs.h.  */
24094
24095 /* pthread test headers */
24096 #include <pthread.h>
24097 #if HAVE_PTHREADS < 7
24098 #include <errno.h>
24099 #endif
24100 #ifndef NULL
24101 #define NULL (void*)0
24102 #endif
24103
24104 static void *task(p)
24105         void *p;
24106 {
24107         return (void *) (p == NULL);
24108 }
24109
24110 int
24111 main ()
24112 {
24113
24114         /* pthread test function */
24115 #ifndef PTHREAD_CREATE_DETACHED
24116 #define PTHREAD_CREATE_DETACHED 1
24117 #endif
24118         pthread_t t;
24119         int status;
24120         int detach = PTHREAD_CREATE_DETACHED;
24121
24122 #if HAVE_PTHREADS > 4
24123         /* Final pthreads */
24124         pthread_attr_t attr;
24125
24126         status = pthread_attr_init(&attr);
24127         if( status ) return status;
24128
24129 #if HAVE_PTHREADS < 7
24130         status = pthread_attr_setdetachstate(&attr, &detach);
24131         if( status < 0 ) status = errno;
24132 #else
24133         status = pthread_attr_setdetachstate(&attr, detach);
24134 #endif
24135         if( status ) return status;
24136         status = pthread_create( &t, &attr, task, NULL );
24137 #if HAVE_PTHREADS < 7
24138         if( status < 0 ) status = errno;
24139 #endif
24140         if( status ) return status;
24141 #else
24142         /* Draft 4 pthreads */
24143         status = pthread_create( &t, pthread_attr_default, task, NULL );
24144         if( status ) return errno;
24145
24146         /* give thread a chance to complete */
24147         /* it should remain joinable and hence detachable */
24148         sleep( 1 );
24149
24150         status = pthread_detach( &t );
24151         if( status ) return errno;
24152 #endif
24153
24154 #ifdef HAVE_LINUX_THREADS
24155         pthread_kill_other_threads_np();
24156 #endif
24157
24158         return 0;
24159
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 rm -f conftest.$ac_objext conftest$ac_exeext
24165 if { (ac_try="$ac_link"
24166 case "(($ac_try" in
24167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168   *) ac_try_echo=$ac_try;;
24169 esac
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171   (eval "$ac_link") 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } && {
24178          test -z "$ac_c_werror_flag" ||
24179          test ! -s conftest.err
24180        } && test -s conftest$ac_exeext &&
24181        $as_test_x conftest$ac_exeext; then
24182   ol_cv_pthread_lpthreads_lexc=yes
24183 else
24184   echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24186
24187         ol_cv_pthread_lpthreads_lexc=no
24188 fi
24189
24190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24191       conftest$ac_exeext conftest.$ac_ext
24192 else
24193   cat >conftest.$ac_ext <<_ACEOF
24194 /* confdefs.h.  */
24195 _ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h.  */
24199
24200 /* pthread test headers */
24201 #include <pthread.h>
24202 #if HAVE_PTHREADS < 7
24203 #include <errno.h>
24204 #endif
24205 #ifndef NULL
24206 #define NULL (void*)0
24207 #endif
24208
24209 static void *task(p)
24210         void *p;
24211 {
24212         return (void *) (p == NULL);
24213 }
24214
24215
24216 int main(argc, argv)
24217         int argc;
24218         char **argv;
24219 {
24220
24221         /* pthread test function */
24222 #ifndef PTHREAD_CREATE_DETACHED
24223 #define PTHREAD_CREATE_DETACHED 1
24224 #endif
24225         pthread_t t;
24226         int status;
24227         int detach = PTHREAD_CREATE_DETACHED;
24228
24229 #if HAVE_PTHREADS > 4
24230         /* Final pthreads */
24231         pthread_attr_t attr;
24232
24233         status = pthread_attr_init(&attr);
24234         if( status ) return status;
24235
24236 #if HAVE_PTHREADS < 7
24237         status = pthread_attr_setdetachstate(&attr, &detach);
24238         if( status < 0 ) status = errno;
24239 #else
24240         status = pthread_attr_setdetachstate(&attr, detach);
24241 #endif
24242         if( status ) return status;
24243         status = pthread_create( &t, &attr, task, NULL );
24244 #if HAVE_PTHREADS < 7
24245         if( status < 0 ) status = errno;
24246 #endif
24247         if( status ) return status;
24248 #else
24249         /* Draft 4 pthreads */
24250         status = pthread_create( &t, pthread_attr_default, task, NULL );
24251         if( status ) return errno;
24252
24253         /* give thread a chance to complete */
24254         /* it should remain joinable and hence detachable */
24255         sleep( 1 );
24256
24257         status = pthread_detach( &t );
24258         if( status ) return errno;
24259 #endif
24260
24261 #ifdef HAVE_LINUX_THREADS
24262         pthread_kill_other_threads_np();
24263 #endif
24264
24265         return 0;
24266
24267 }
24268
24269 _ACEOF
24270 rm -f conftest$ac_exeext
24271 if { (ac_try="$ac_link"
24272 case "(($ac_try" in
24273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274   *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277   (eval "$ac_link") 2>&5
24278   ac_status=$?
24279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24281   { (case "(($ac_try" in
24282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283   *) ac_try_echo=$ac_try;;
24284 esac
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286   (eval "$ac_try") 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); }; }; then
24290   ol_cv_pthread_lpthreads_lexc=yes
24291 else
24292   echo "$as_me: program exited with status $ac_status" >&5
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296 ( exit $ac_status )
24297 ol_cv_pthread_lpthreads_lexc=no
24298 fi
24299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24300 fi
24301
24302
24303
24304                 # restore the LIBS
24305                 LIBS="$ol_LIBS"
24306
24307 fi
24308 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24309 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24310
24311         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24312                 ol_link_pthreads="-lpthreads -lexc"
24313                 ol_link_threads=posix
24314         fi
24315 fi
24316
24317
24318                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24319 if test "$ol_link_threads" = no ; then
24320         # try -lpthreads
24321         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24322 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24323 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24324   echo $ECHO_N "(cached) $ECHO_C" >&6
24325 else
24326
24327                 # save the flags
24328                 ol_LIBS="$LIBS"
24329                 LIBS="-lpthreads $LIBS"
24330
24331                 if test "$cross_compiling" = yes; then
24332   cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h.  */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h.  */
24338
24339 /* pthread test headers */
24340 #include <pthread.h>
24341 #if HAVE_PTHREADS < 7
24342 #include <errno.h>
24343 #endif
24344 #ifndef NULL
24345 #define NULL (void*)0
24346 #endif
24347
24348 static void *task(p)
24349         void *p;
24350 {
24351         return (void *) (p == NULL);
24352 }
24353
24354 int
24355 main ()
24356 {
24357
24358         /* pthread test function */
24359 #ifndef PTHREAD_CREATE_DETACHED
24360 #define PTHREAD_CREATE_DETACHED 1
24361 #endif
24362         pthread_t t;
24363         int status;
24364         int detach = PTHREAD_CREATE_DETACHED;
24365
24366 #if HAVE_PTHREADS > 4
24367         /* Final pthreads */
24368         pthread_attr_t attr;
24369
24370         status = pthread_attr_init(&attr);
24371         if( status ) return status;
24372
24373 #if HAVE_PTHREADS < 7
24374         status = pthread_attr_setdetachstate(&attr, &detach);
24375         if( status < 0 ) status = errno;
24376 #else
24377         status = pthread_attr_setdetachstate(&attr, detach);
24378 #endif
24379         if( status ) return status;
24380         status = pthread_create( &t, &attr, task, NULL );
24381 #if HAVE_PTHREADS < 7
24382         if( status < 0 ) status = errno;
24383 #endif
24384         if( status ) return status;
24385 #else
24386         /* Draft 4 pthreads */
24387         status = pthread_create( &t, pthread_attr_default, task, NULL );
24388         if( status ) return errno;
24389
24390         /* give thread a chance to complete */
24391         /* it should remain joinable and hence detachable */
24392         sleep( 1 );
24393
24394         status = pthread_detach( &t );
24395         if( status ) return errno;
24396 #endif
24397
24398 #ifdef HAVE_LINUX_THREADS
24399         pthread_kill_other_threads_np();
24400 #endif
24401
24402         return 0;
24403
24404   ;
24405   return 0;
24406 }
24407 _ACEOF
24408 rm -f conftest.$ac_objext conftest$ac_exeext
24409 if { (ac_try="$ac_link"
24410 case "(($ac_try" in
24411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412   *) ac_try_echo=$ac_try;;
24413 esac
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415   (eval "$ac_link") 2>conftest.er1
24416   ac_status=$?
24417   grep -v '^ *+' conftest.er1 >conftest.err
24418   rm -f conftest.er1
24419   cat conftest.err >&5
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); } && {
24422          test -z "$ac_c_werror_flag" ||
24423          test ! -s conftest.err
24424        } && test -s conftest$ac_exeext &&
24425        $as_test_x conftest$ac_exeext; then
24426   ol_cv_pthread_lib_lpthreads=yes
24427 else
24428   echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24430
24431         ol_cv_pthread_lib_lpthreads=no
24432 fi
24433
24434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24435       conftest$ac_exeext conftest.$ac_ext
24436 else
24437   cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h.  */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h.  */
24443
24444 /* pthread test headers */
24445 #include <pthread.h>
24446 #if HAVE_PTHREADS < 7
24447 #include <errno.h>
24448 #endif
24449 #ifndef NULL
24450 #define NULL (void*)0
24451 #endif
24452
24453 static void *task(p)
24454         void *p;
24455 {
24456         return (void *) (p == NULL);
24457 }
24458
24459
24460 int main(argc, argv)
24461         int argc;
24462         char **argv;
24463 {
24464
24465         /* pthread test function */
24466 #ifndef PTHREAD_CREATE_DETACHED
24467 #define PTHREAD_CREATE_DETACHED 1
24468 #endif
24469         pthread_t t;
24470         int status;
24471         int detach = PTHREAD_CREATE_DETACHED;
24472
24473 #if HAVE_PTHREADS > 4
24474         /* Final pthreads */
24475         pthread_attr_t attr;
24476
24477         status = pthread_attr_init(&attr);
24478         if( status ) return status;
24479
24480 #if HAVE_PTHREADS < 7
24481         status = pthread_attr_setdetachstate(&attr, &detach);
24482         if( status < 0 ) status = errno;
24483 #else
24484         status = pthread_attr_setdetachstate(&attr, detach);
24485 #endif
24486         if( status ) return status;
24487         status = pthread_create( &t, &attr, task, NULL );
24488 #if HAVE_PTHREADS < 7
24489         if( status < 0 ) status = errno;
24490 #endif
24491         if( status ) return status;
24492 #else
24493         /* Draft 4 pthreads */
24494         status = pthread_create( &t, pthread_attr_default, task, NULL );
24495         if( status ) return errno;
24496
24497         /* give thread a chance to complete */
24498         /* it should remain joinable and hence detachable */
24499         sleep( 1 );
24500
24501         status = pthread_detach( &t );
24502         if( status ) return errno;
24503 #endif
24504
24505 #ifdef HAVE_LINUX_THREADS
24506         pthread_kill_other_threads_np();
24507 #endif
24508
24509         return 0;
24510
24511 }
24512
24513 _ACEOF
24514 rm -f conftest$ac_exeext
24515 if { (ac_try="$ac_link"
24516 case "(($ac_try" in
24517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518   *) ac_try_echo=$ac_try;;
24519 esac
24520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24521   (eval "$ac_link") 2>&5
24522   ac_status=$?
24523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24525   { (case "(($ac_try" in
24526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527   *) ac_try_echo=$ac_try;;
24528 esac
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530   (eval "$ac_try") 2>&5
24531   ac_status=$?
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); }; }; then
24534   ol_cv_pthread_lib_lpthreads=yes
24535 else
24536   echo "$as_me: program exited with status $ac_status" >&5
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24539
24540 ( exit $ac_status )
24541 ol_cv_pthread_lib_lpthreads=no
24542 fi
24543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24544 fi
24545
24546
24547
24548                 # restore the LIBS
24549                 LIBS="$ol_LIBS"
24550
24551 fi
24552 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24553 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24554
24555         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24556                 ol_link_pthreads="-lpthreads"
24557                 ol_link_threads=posix
24558         fi
24559 fi
24560
24561
24562                 if test $ol_link_threads != no ; then
24563                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24564
24565                                                 save_CPPFLAGS="$CPPFLAGS"
24566                         save_LIBS="$LIBS"
24567                         LIBS="$LTHREAD_LIBS $LIBS"
24568
24569
24570
24571
24572 for ac_func in sched_yield pthread_yield thr_yield
24573 do
24574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24578   echo $ECHO_N "(cached) $ECHO_C" >&6
24579 else
24580   cat >conftest.$ac_ext <<_ACEOF
24581 /* confdefs.h.  */
24582 _ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h.  */
24586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24588 #define $ac_func innocuous_$ac_func
24589
24590 /* System header to define __stub macros and hopefully few prototypes,
24591     which can conflict with char $ac_func (); below.
24592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24593     <limits.h> exists even on freestanding compilers.  */
24594
24595 #ifdef __STDC__
24596 # include <limits.h>
24597 #else
24598 # include <assert.h>
24599 #endif
24600
24601 #undef $ac_func
24602
24603 /* Override any GCC internal prototype to avoid an error.
24604    Use char because int might match the return type of a GCC
24605    builtin and then its argument prototype would still apply.  */
24606 #ifdef __cplusplus
24607 extern "C"
24608 #endif
24609 char $ac_func ();
24610 /* The GNU C library defines this for functions which it implements
24611     to always fail with ENOSYS.  Some functions are actually named
24612     something starting with __ and the normal name is an alias.  */
24613 #if defined __stub_$ac_func || defined __stub___$ac_func
24614 choke me
24615 #endif
24616
24617 int
24618 main ()
24619 {
24620 return $ac_func ();
24621   ;
24622   return 0;
24623 }
24624 _ACEOF
24625 rm -f conftest.$ac_objext conftest$ac_exeext
24626 if { (ac_try="$ac_link"
24627 case "(($ac_try" in
24628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629   *) ac_try_echo=$ac_try;;
24630 esac
24631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24632   (eval "$ac_link") 2>conftest.er1
24633   ac_status=$?
24634   grep -v '^ *+' conftest.er1 >conftest.err
24635   rm -f conftest.er1
24636   cat conftest.err >&5
24637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638   (exit $ac_status); } && {
24639          test -z "$ac_c_werror_flag" ||
24640          test ! -s conftest.err
24641        } && test -s conftest$ac_exeext &&
24642        $as_test_x conftest$ac_exeext; then
24643   eval "$as_ac_var=yes"
24644 else
24645   echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24647
24648         eval "$as_ac_var=no"
24649 fi
24650
24651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24652       conftest$ac_exeext conftest.$ac_ext
24653 fi
24654 ac_res=`eval echo '${'$as_ac_var'}'`
24655                { echo "$as_me:$LINENO: result: $ac_res" >&5
24656 echo "${ECHO_T}$ac_res" >&6; }
24657 if test `eval echo '${'$as_ac_var'}'` = yes; then
24658   cat >>confdefs.h <<_ACEOF
24659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24660 _ACEOF
24661
24662 fi
24663 done
24664
24665
24666                         if test $ac_cv_func_sched_yield = no &&
24667                            test $ac_cv_func_pthread_yield = no &&
24668                            test $ac_cv_func_thr_yield = no ; then
24669                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24670 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24671 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24672   echo $ECHO_N "(cached) $ECHO_C" >&6
24673 else
24674   ac_check_lib_save_LIBS=$LIBS
24675 LIBS="-lrt  $LIBS"
24676 cat >conftest.$ac_ext <<_ACEOF
24677 /* confdefs.h.  */
24678 _ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h.  */
24682
24683 /* Override any GCC internal prototype to avoid an error.
24684    Use char because int might match the return type of a GCC
24685    builtin and then its argument prototype would still apply.  */
24686 #ifdef __cplusplus
24687 extern "C"
24688 #endif
24689 char sched_yield ();
24690 int
24691 main ()
24692 {
24693 return sched_yield ();
24694   ;
24695   return 0;
24696 }
24697 _ACEOF
24698 rm -f conftest.$ac_objext conftest$ac_exeext
24699 if { (ac_try="$ac_link"
24700 case "(($ac_try" in
24701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702   *) ac_try_echo=$ac_try;;
24703 esac
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705   (eval "$ac_link") 2>conftest.er1
24706   ac_status=$?
24707   grep -v '^ *+' conftest.er1 >conftest.err
24708   rm -f conftest.er1
24709   cat conftest.err >&5
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); } && {
24712          test -z "$ac_c_werror_flag" ||
24713          test ! -s conftest.err
24714        } && test -s conftest$ac_exeext &&
24715        $as_test_x conftest$ac_exeext; then
24716   ac_cv_lib_rt_sched_yield=yes
24717 else
24718   echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24720
24721         ac_cv_lib_rt_sched_yield=no
24722 fi
24723
24724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24725       conftest$ac_exeext conftest.$ac_ext
24726 LIBS=$ac_check_lib_save_LIBS
24727 fi
24728 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24729 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24730 if test $ac_cv_lib_rt_sched_yield = yes; then
24731   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24732
24733 cat >>confdefs.h <<\_ACEOF
24734 #define HAVE_SCHED_YIELD 1
24735 _ACEOF
24736
24737                                         ac_cv_func_sched_yield=yes
24738 else
24739   ac_cv_func_sched_yield=no
24740 fi
24741
24742                         fi
24743                         if test $ac_cv_func_sched_yield = no &&
24744                            test $ac_cv_func_pthread_yield = no &&
24745                            test "$ac_cv_func_thr_yield" = no ; then
24746                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24747 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24748                         fi
24749
24750
24751 for ac_func in pthread_kill
24752 do
24753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24757   echo $ECHO_N "(cached) $ECHO_C" >&6
24758 else
24759   cat >conftest.$ac_ext <<_ACEOF
24760 /* confdefs.h.  */
24761 _ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h.  */
24765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24767 #define $ac_func innocuous_$ac_func
24768
24769 /* System header to define __stub macros and hopefully few prototypes,
24770     which can conflict with char $ac_func (); below.
24771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24772     <limits.h> exists even on freestanding compilers.  */
24773
24774 #ifdef __STDC__
24775 # include <limits.h>
24776 #else
24777 # include <assert.h>
24778 #endif
24779
24780 #undef $ac_func
24781
24782 /* Override any GCC internal prototype to avoid an error.
24783    Use char because int might match the return type of a GCC
24784    builtin and then its argument prototype would still apply.  */
24785 #ifdef __cplusplus
24786 extern "C"
24787 #endif
24788 char $ac_func ();
24789 /* The GNU C library defines this for functions which it implements
24790     to always fail with ENOSYS.  Some functions are actually named
24791     something starting with __ and the normal name is an alias.  */
24792 #if defined __stub_$ac_func || defined __stub___$ac_func
24793 choke me
24794 #endif
24795
24796 int
24797 main ()
24798 {
24799 return $ac_func ();
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 rm -f conftest.$ac_objext conftest$ac_exeext
24805 if { (ac_try="$ac_link"
24806 case "(($ac_try" in
24807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808   *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811   (eval "$ac_link") 2>conftest.er1
24812   ac_status=$?
24813   grep -v '^ *+' conftest.er1 >conftest.err
24814   rm -f conftest.er1
24815   cat conftest.err >&5
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); } && {
24818          test -z "$ac_c_werror_flag" ||
24819          test ! -s conftest.err
24820        } && test -s conftest$ac_exeext &&
24821        $as_test_x conftest$ac_exeext; then
24822   eval "$as_ac_var=yes"
24823 else
24824   echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827         eval "$as_ac_var=no"
24828 fi
24829
24830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24831       conftest$ac_exeext conftest.$ac_ext
24832 fi
24833 ac_res=`eval echo '${'$as_ac_var'}'`
24834                { echo "$as_me:$LINENO: result: $ac_res" >&5
24835 echo "${ECHO_T}$ac_res" >&6; }
24836 if test `eval echo '${'$as_ac_var'}'` = yes; then
24837   cat >>confdefs.h <<_ACEOF
24838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24839 _ACEOF
24840
24841 fi
24842 done
24843
24844
24845                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24846 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24847 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24848   echo $ECHO_N "(cached) $ECHO_C" >&6
24849 else
24850
24851                                                                 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857
24858 #include <pthread.h>
24859 pthread_rwlock_t rwlock;
24860
24861 int
24862 main ()
24863 {
24864 pthread_rwlock_destroy(&rwlock);
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 rm -f conftest.$ac_objext conftest$ac_exeext
24870 if { (ac_try="$ac_link"
24871 case "(($ac_try" in
24872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873   *) ac_try_echo=$ac_try;;
24874 esac
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876   (eval "$ac_link") 2>conftest.er1
24877   ac_status=$?
24878   grep -v '^ *+' conftest.er1 >conftest.err
24879   rm -f conftest.er1
24880   cat conftest.err >&5
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); } && {
24883          test -z "$ac_c_werror_flag" ||
24884          test ! -s conftest.err
24885        } && test -s conftest$ac_exeext &&
24886        $as_test_x conftest$ac_exeext; then
24887   ol_cv_func_pthread_rwlock_destroy=yes
24888 else
24889   echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24891
24892         ol_cv_func_pthread_rwlock_destroy=no
24893 fi
24894
24895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24896       conftest$ac_exeext conftest.$ac_ext
24897
24898 fi
24899 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24900 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24901                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24902
24903 cat >>confdefs.h <<\_ACEOF
24904 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24905 _ACEOF
24906
24907                         fi
24908
24909                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24910 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24911 if test "${ol_cv_func_pthread_detach+set}" = set; then
24912   echo $ECHO_N "(cached) $ECHO_C" >&6
24913 else
24914
24915                                                                 cat >conftest.$ac_ext <<_ACEOF
24916 /* confdefs.h.  */
24917 _ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h.  */
24921
24922 #include <pthread.h>
24923 #ifndef NULL
24924 #define NULL (void*)0
24925 #endif
24926
24927 int
24928 main ()
24929 {
24930 pthread_detach(NULL);
24931   ;
24932   return 0;
24933 }
24934 _ACEOF
24935 rm -f conftest.$ac_objext conftest$ac_exeext
24936 if { (ac_try="$ac_link"
24937 case "(($ac_try" in
24938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939   *) ac_try_echo=$ac_try;;
24940 esac
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942   (eval "$ac_link") 2>conftest.er1
24943   ac_status=$?
24944   grep -v '^ *+' conftest.er1 >conftest.err
24945   rm -f conftest.er1
24946   cat conftest.err >&5
24947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); } && {
24949          test -z "$ac_c_werror_flag" ||
24950          test ! -s conftest.err
24951        } && test -s conftest$ac_exeext &&
24952        $as_test_x conftest$ac_exeext; then
24953   ol_cv_func_pthread_detach=yes
24954 else
24955   echo "$as_me: failed program was:" >&5
24956 sed 's/^/| /' conftest.$ac_ext >&5
24957
24958         ol_cv_func_pthread_detach=no
24959 fi
24960
24961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24962       conftest$ac_exeext conftest.$ac_ext
24963
24964 fi
24965 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24966 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24967
24968                         if test $ol_cv_func_pthread_detach = no ; then
24969                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24970 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24971    { (exit 1); exit 1; }; }
24972                         fi
24973
24974
24975 cat >>confdefs.h <<\_ACEOF
24976 #define HAVE_PTHREAD_DETACH 1
24977 _ACEOF
24978
24979
24980
24981
24982
24983
24984 for ac_func in \
24985                                 pthread_setconcurrency \
24986                                 pthread_getconcurrency \
24987                                 thr_setconcurrency \
24988                                 thr_getconcurrency \
24989
24990 do
24991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997   cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h.  */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h.  */
25003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25005 #define $ac_func innocuous_$ac_func
25006
25007 /* System header to define __stub macros and hopefully few prototypes,
25008     which can conflict with char $ac_func (); below.
25009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25010     <limits.h> exists even on freestanding compilers.  */
25011
25012 #ifdef __STDC__
25013 # include <limits.h>
25014 #else
25015 # include <assert.h>
25016 #endif
25017
25018 #undef $ac_func
25019
25020 /* Override any GCC internal prototype to avoid an error.
25021    Use char because int might match the return type of a GCC
25022    builtin and then its argument prototype would still apply.  */
25023 #ifdef __cplusplus
25024 extern "C"
25025 #endif
25026 char $ac_func ();
25027 /* The GNU C library defines this for functions which it implements
25028     to always fail with ENOSYS.  Some functions are actually named
25029     something starting with __ and the normal name is an alias.  */
25030 #if defined __stub_$ac_func || defined __stub___$ac_func
25031 choke me
25032 #endif
25033
25034 int
25035 main ()
25036 {
25037 return $ac_func ();
25038   ;
25039   return 0;
25040 }
25041 _ACEOF
25042 rm -f conftest.$ac_objext conftest$ac_exeext
25043 if { (ac_try="$ac_link"
25044 case "(($ac_try" in
25045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046   *) ac_try_echo=$ac_try;;
25047 esac
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049   (eval "$ac_link") 2>conftest.er1
25050   ac_status=$?
25051   grep -v '^ *+' conftest.er1 >conftest.err
25052   rm -f conftest.er1
25053   cat conftest.err >&5
25054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055   (exit $ac_status); } && {
25056          test -z "$ac_c_werror_flag" ||
25057          test ! -s conftest.err
25058        } && test -s conftest$ac_exeext &&
25059        $as_test_x conftest$ac_exeext; then
25060   eval "$as_ac_var=yes"
25061 else
25062   echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25064
25065         eval "$as_ac_var=no"
25066 fi
25067
25068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25069       conftest$ac_exeext conftest.$ac_ext
25070 fi
25071 ac_res=`eval echo '${'$as_ac_var'}'`
25072                { echo "$as_me:$LINENO: result: $ac_res" >&5
25073 echo "${ECHO_T}$ac_res" >&6; }
25074 if test `eval echo '${'$as_ac_var'}'` = yes; then
25075   cat >>confdefs.h <<_ACEOF
25076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25077 _ACEOF
25078
25079 fi
25080 done
25081
25082
25083
25084
25085 for ac_func in pthread_kill_other_threads_np
25086 do
25087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25091   echo $ECHO_N "(cached) $ECHO_C" >&6
25092 else
25093   cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h.  */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h.  */
25099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25101 #define $ac_func innocuous_$ac_func
25102
25103 /* System header to define __stub macros and hopefully few prototypes,
25104     which can conflict with char $ac_func (); below.
25105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25106     <limits.h> exists even on freestanding compilers.  */
25107
25108 #ifdef __STDC__
25109 # include <limits.h>
25110 #else
25111 # include <assert.h>
25112 #endif
25113
25114 #undef $ac_func
25115
25116 /* Override any GCC internal prototype to avoid an error.
25117    Use char because int might match the return type of a GCC
25118    builtin and then its argument prototype would still apply.  */
25119 #ifdef __cplusplus
25120 extern "C"
25121 #endif
25122 char $ac_func ();
25123 /* The GNU C library defines this for functions which it implements
25124     to always fail with ENOSYS.  Some functions are actually named
25125     something starting with __ and the normal name is an alias.  */
25126 #if defined __stub_$ac_func || defined __stub___$ac_func
25127 choke me
25128 #endif
25129
25130 int
25131 main ()
25132 {
25133 return $ac_func ();
25134   ;
25135   return 0;
25136 }
25137 _ACEOF
25138 rm -f conftest.$ac_objext conftest$ac_exeext
25139 if { (ac_try="$ac_link"
25140 case "(($ac_try" in
25141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142   *) ac_try_echo=$ac_try;;
25143 esac
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145   (eval "$ac_link") 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } && {
25152          test -z "$ac_c_werror_flag" ||
25153          test ! -s conftest.err
25154        } && test -s conftest$ac_exeext &&
25155        $as_test_x conftest$ac_exeext; then
25156   eval "$as_ac_var=yes"
25157 else
25158   echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161         eval "$as_ac_var=no"
25162 fi
25163
25164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25165       conftest$ac_exeext conftest.$ac_ext
25166 fi
25167 ac_res=`eval echo '${'$as_ac_var'}'`
25168                { echo "$as_me:$LINENO: result: $ac_res" >&5
25169 echo "${ECHO_T}$ac_res" >&6; }
25170 if test `eval echo '${'$as_ac_var'}'` = yes; then
25171   cat >>confdefs.h <<_ACEOF
25172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25173 _ACEOF
25174
25175 fi
25176 done
25177
25178         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25179 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25180 if test "${ol_cv_sys_linux_threads+set}" = set; then
25181   echo $ECHO_N "(cached) $ECHO_C" >&6
25182 else
25183   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25184 fi
25185 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25186 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25187
25188
25189
25190
25191         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25192 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25193 if test "${ol_cv_linux_threads+set}" = set; then
25194   echo $ECHO_N "(cached) $ECHO_C" >&6
25195 else
25196
25197                 if test $ol_cv_header_linux_threads = yes &&
25198                    test $ol_cv_sys_linux_threads = yes; then
25199                         ol_cv_linux_threads=yes
25200                 elif test $ol_cv_header_linux_threads = no &&
25201                      test $ol_cv_sys_linux_threads = no; then
25202                         ol_cv_linux_threads=no
25203                 else
25204                         ol_cv_linux_threads=error
25205                 fi
25206
25207 fi
25208 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25209 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25210
25211
25212                         if test $ol_cv_linux_threads = error; then
25213                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25214 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25215    { (exit 1); exit 1; }; };
25216                         fi
25217
25218                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25219 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25220 if test "${ol_cv_pthread_create_works+set}" = set; then
25221   echo $ECHO_N "(cached) $ECHO_C" >&6
25222 else
25223
25224                         if test "$cross_compiling" = yes; then
25225                                 ol_cv_pthread_create_works=yes
25226 else
25227   cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h.  */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h.  */
25233
25234 /* pthread test headers */
25235 #include <pthread.h>
25236 #if HAVE_PTHREADS < 7
25237 #include <errno.h>
25238 #endif
25239 #ifndef NULL
25240 #define NULL (void*)0
25241 #endif
25242
25243 static void *task(p)
25244         void *p;
25245 {
25246         return (void *) (p == NULL);
25247 }
25248
25249
25250 int main(argc, argv)
25251         int argc;
25252         char **argv;
25253 {
25254
25255         /* pthread test function */
25256 #ifndef PTHREAD_CREATE_DETACHED
25257 #define PTHREAD_CREATE_DETACHED 1
25258 #endif
25259         pthread_t t;
25260         int status;
25261         int detach = PTHREAD_CREATE_DETACHED;
25262
25263 #if HAVE_PTHREADS > 4
25264         /* Final pthreads */
25265         pthread_attr_t attr;
25266
25267         status = pthread_attr_init(&attr);
25268         if( status ) return status;
25269
25270 #if HAVE_PTHREADS < 7
25271         status = pthread_attr_setdetachstate(&attr, &detach);
25272         if( status < 0 ) status = errno;
25273 #else
25274         status = pthread_attr_setdetachstate(&attr, detach);
25275 #endif
25276         if( status ) return status;
25277         status = pthread_create( &t, &attr, task, NULL );
25278 #if HAVE_PTHREADS < 7
25279         if( status < 0 ) status = errno;
25280 #endif
25281         if( status ) return status;
25282 #else
25283         /* Draft 4 pthreads */
25284         status = pthread_create( &t, pthread_attr_default, task, NULL );
25285         if( status ) return errno;
25286
25287         /* give thread a chance to complete */
25288         /* it should remain joinable and hence detachable */
25289         sleep( 1 );
25290
25291         status = pthread_detach( &t );
25292         if( status ) return errno;
25293 #endif
25294
25295 #ifdef HAVE_LINUX_THREADS
25296         pthread_kill_other_threads_np();
25297 #endif
25298
25299         return 0;
25300
25301 }
25302
25303 _ACEOF
25304 rm -f conftest$ac_exeext
25305 if { (ac_try="$ac_link"
25306 case "(($ac_try" in
25307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308   *) ac_try_echo=$ac_try;;
25309 esac
25310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25311   (eval "$ac_link") 2>&5
25312   ac_status=$?
25313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25315   { (case "(($ac_try" in
25316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317   *) ac_try_echo=$ac_try;;
25318 esac
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320   (eval "$ac_try") 2>&5
25321   ac_status=$?
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); }; }; then
25324   ol_cv_pthread_create_works=yes
25325 else
25326   echo "$as_me: program exited with status $ac_status" >&5
25327 echo "$as_me: failed program was:" >&5
25328 sed 's/^/| /' conftest.$ac_ext >&5
25329
25330 ( exit $ac_status )
25331 ol_cv_pthread_create_works=no
25332 fi
25333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25334 fi
25335
25336
25337 fi
25338 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25339 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25340
25341                         if test $ol_cv_pthread_create_works = no ; then
25342                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25343 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25344    { (exit 1); exit 1; }; }
25345                         fi
25346
25347                         ol_replace_broken_yield=no
25348
25349                         if test $ol_replace_broken_yield = yes ; then
25350
25351 cat >>confdefs.h <<\_ACEOF
25352 #define REPLACE_BROKEN_YIELD 1
25353 _ACEOF
25354
25355                         fi
25356
25357                                                 if test $ol_with_yielding_select = auto ; then
25358                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25359 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25360 if test "${ol_cv_pthread_select_yields+set}" = set; then
25361   echo $ECHO_N "(cached) $ECHO_C" >&6
25362 else
25363
25364                                 if test "$cross_compiling" = yes; then
25365   ol_cv_pthread_select_yields=cross
25366 else
25367   cat >conftest.$ac_ext <<_ACEOF
25368 /* confdefs.h.  */
25369 _ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h.  */
25373
25374 #include <sys/types.h>
25375 #include <sys/time.h>
25376 #include <unistd.h>
25377 #include <pthread.h>
25378 #ifndef NULL
25379 #define NULL (void*) 0
25380 #endif
25381
25382 static int fildes[2];
25383
25384 static void *task(p)
25385         void *p;
25386 {
25387         int i;
25388         struct timeval tv;
25389
25390         fd_set rfds;
25391
25392         tv.tv_sec=10;
25393         tv.tv_usec=0;
25394
25395         FD_ZERO(&rfds);
25396         FD_SET(fildes[0], &rfds);
25397
25398         /* we're not interested in any fds */
25399         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25400
25401         if(i < 0) {
25402                 perror("select");
25403                 exit(10);
25404         }
25405
25406         exit(0); /* if we exit here, the select blocked the whole process */
25407 }
25408
25409 int main(argc, argv)
25410         int argc;
25411         char **argv;
25412 {
25413         pthread_t t;
25414
25415         /* create a pipe to select */
25416         if(pipe(&fildes[0])) {
25417                 perror("select");
25418                 exit(1);
25419         }
25420
25421 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25422         (void) pthread_setconcurrency(2);
25423 #else
25424 #ifdef HAVE_THR_SETCONCURRENCY
25425         /* Set Solaris LWP concurrency to 2 */
25426         thr_setconcurrency(2);
25427 #endif
25428 #endif
25429
25430 #if HAVE_PTHREADS < 6
25431         pthread_create(&t, pthread_attr_default, task, NULL);
25432 #else
25433         pthread_create(&t, NULL, task, NULL);
25434 #endif
25435
25436         /* make sure task runs first */
25437 #ifdef HAVE_THR_YIELD
25438         thr_yield();
25439 #elif defined( HAVE_SCHED_YIELD )
25440         sched_yield();
25441 #elif defined( HAVE_PTHREAD_YIELD )
25442         pthread_yield();
25443 #endif
25444
25445         exit(2);
25446 }
25447 _ACEOF
25448 rm -f conftest$ac_exeext
25449 if { (ac_try="$ac_link"
25450 case "(($ac_try" in
25451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452   *) ac_try_echo=$ac_try;;
25453 esac
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455   (eval "$ac_link") 2>&5
25456   ac_status=$?
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25459   { (case "(($ac_try" in
25460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25461   *) ac_try_echo=$ac_try;;
25462 esac
25463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25464   (eval "$ac_try") 2>&5
25465   ac_status=$?
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); }; }; then
25468   ol_cv_pthread_select_yields=no
25469 else
25470   echo "$as_me: program exited with status $ac_status" >&5
25471 echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25473
25474 ( exit $ac_status )
25475 ol_cv_pthread_select_yields=yes
25476 fi
25477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25478 fi
25479
25480
25481 fi
25482 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25483 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25484
25485                                 if test $ol_cv_pthread_select_yields = cross ; then
25486                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25487 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25488    { (exit 1); exit 1; }; }
25489                                 fi
25490
25491                                 if test $ol_cv_pthread_select_yields = yes ; then
25492                                         ol_with_yielding_select=yes
25493                                 fi
25494                         fi
25495
25496                                                 CPPFLAGS="$save_CPPFLAGS"
25497                         LIBS="$save_LIBS"
25498                 else
25499                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25500 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25501    { (exit 1); exit 1; }; }
25502                 fi
25503         fi
25504
25505         if test $ol_with_threads = posix ; then
25506                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25507 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25508    { (exit 1); exit 1; }; }
25509         fi
25510         ;;
25511 esac
25512
25513 case $ol_with_threads in auto | yes | mach)
25514
25515
25516
25517 for ac_header in mach/cthreads.h cthreads.h
25518 do
25519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25524   echo $ECHO_N "(cached) $ECHO_C" >&6
25525 fi
25526 ac_res=`eval echo '${'$as_ac_Header'}'`
25527                { echo "$as_me:$LINENO: result: $ac_res" >&5
25528 echo "${ECHO_T}$ac_res" >&6; }
25529 else
25530   # Is the header compilable?
25531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25533 cat >conftest.$ac_ext <<_ACEOF
25534 /* confdefs.h.  */
25535 _ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h.  */
25539 $ac_includes_default
25540 #include <$ac_header>
25541 _ACEOF
25542 rm -f conftest.$ac_objext
25543 if { (ac_try="$ac_compile"
25544 case "(($ac_try" in
25545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546   *) ac_try_echo=$ac_try;;
25547 esac
25548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25549   (eval "$ac_compile") 2>conftest.er1
25550   ac_status=$?
25551   grep -v '^ *+' conftest.er1 >conftest.err
25552   rm -f conftest.er1
25553   cat conftest.err >&5
25554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555   (exit $ac_status); } && {
25556          test -z "$ac_c_werror_flag" ||
25557          test ! -s conftest.err
25558        } && test -s conftest.$ac_objext; then
25559   ac_header_compiler=yes
25560 else
25561   echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25563
25564         ac_header_compiler=no
25565 fi
25566
25567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25569 echo "${ECHO_T}$ac_header_compiler" >&6; }
25570
25571 # Is the header present?
25572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25574 cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h.  */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h.  */
25580 #include <$ac_header>
25581 _ACEOF
25582 if { (ac_try="$ac_cpp conftest.$ac_ext"
25583 case "(($ac_try" in
25584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585   *) ac_try_echo=$ac_try;;
25586 esac
25587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25589   ac_status=$?
25590   grep -v '^ *+' conftest.er1 >conftest.err
25591   rm -f conftest.er1
25592   cat conftest.err >&5
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } >/dev/null && {
25595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25596          test ! -s conftest.err
25597        }; then
25598   ac_header_preproc=yes
25599 else
25600   echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603   ac_header_preproc=no
25604 fi
25605
25606 rm -f conftest.err conftest.$ac_ext
25607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25608 echo "${ECHO_T}$ac_header_preproc" >&6; }
25609
25610 # So?  What about this header?
25611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25612   yes:no: )
25613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25617     ac_header_preproc=yes
25618     ;;
25619   no:yes:* )
25620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25632     ( cat <<\_ASBOX
25633 ## --------------------------------------------- ##
25634 ## Report this to <http://www.openldap.org/its/> ##
25635 ## --------------------------------------------- ##
25636 _ASBOX
25637      ) | sed "s/^/$as_me: WARNING:     /" >&2
25638     ;;
25639 esac
25640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25643   echo $ECHO_N "(cached) $ECHO_C" >&6
25644 else
25645   eval "$as_ac_Header=\$ac_header_preproc"
25646 fi
25647 ac_res=`eval echo '${'$as_ac_Header'}'`
25648                { echo "$as_me:$LINENO: result: $ac_res" >&5
25649 echo "${ECHO_T}$ac_res" >&6; }
25650
25651 fi
25652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25653   cat >>confdefs.h <<_ACEOF
25654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25655 _ACEOF
25656
25657 fi
25658
25659 done
25660
25661         if test $ac_cv_header_mach_cthreads_h = yes ; then
25662                 ol_with_threads=found
25663
25664                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25665 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25666 if test "${ac_cv_func_cthread_fork+set}" = set; then
25667   echo $ECHO_N "(cached) $ECHO_C" >&6
25668 else
25669   cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h.  */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h.  */
25675 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25677 #define cthread_fork innocuous_cthread_fork
25678
25679 /* System header to define __stub macros and hopefully few prototypes,
25680     which can conflict with char cthread_fork (); below.
25681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25682     <limits.h> exists even on freestanding compilers.  */
25683
25684 #ifdef __STDC__
25685 # include <limits.h>
25686 #else
25687 # include <assert.h>
25688 #endif
25689
25690 #undef cthread_fork
25691
25692 /* Override any GCC internal prototype to avoid an error.
25693    Use char because int might match the return type of a GCC
25694    builtin and then its argument prototype would still apply.  */
25695 #ifdef __cplusplus
25696 extern "C"
25697 #endif
25698 char cthread_fork ();
25699 /* The GNU C library defines this for functions which it implements
25700     to always fail with ENOSYS.  Some functions are actually named
25701     something starting with __ and the normal name is an alias.  */
25702 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25703 choke me
25704 #endif
25705
25706 int
25707 main ()
25708 {
25709 return cthread_fork ();
25710   ;
25711   return 0;
25712 }
25713 _ACEOF
25714 rm -f conftest.$ac_objext conftest$ac_exeext
25715 if { (ac_try="$ac_link"
25716 case "(($ac_try" in
25717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25718   *) ac_try_echo=$ac_try;;
25719 esac
25720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25721   (eval "$ac_link") 2>conftest.er1
25722   ac_status=$?
25723   grep -v '^ *+' conftest.er1 >conftest.err
25724   rm -f conftest.er1
25725   cat conftest.err >&5
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); } && {
25728          test -z "$ac_c_werror_flag" ||
25729          test ! -s conftest.err
25730        } && test -s conftest$ac_exeext &&
25731        $as_test_x conftest$ac_exeext; then
25732   ac_cv_func_cthread_fork=yes
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737         ac_cv_func_cthread_fork=no
25738 fi
25739
25740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25741       conftest$ac_exeext conftest.$ac_ext
25742 fi
25743 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25744 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25745 if test $ac_cv_func_cthread_fork = yes; then
25746   ol_link_threads=yes
25747 fi
25748
25749
25750                 if test $ol_link_threads = no ; then
25751                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25752 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25753 if test "${ol_cv_cthread_all_load+set}" = set; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756
25757                                                                 save_LIBS="$LIBS"
25758                                 LIBS="-all_load $LIBS"
25759                                 cat >conftest.$ac_ext <<_ACEOF
25760 /* confdefs.h.  */
25761 _ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h.  */
25765 #include <mach/cthreads.h>
25766 int
25767 main ()
25768 {
25769
25770                                         cthread_fork((void *)0, (void *)0);
25771
25772   ;
25773   return 0;
25774 }
25775 _ACEOF
25776 rm -f conftest.$ac_objext conftest$ac_exeext
25777 if { (ac_try="$ac_link"
25778 case "(($ac_try" in
25779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780   *) ac_try_echo=$ac_try;;
25781 esac
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783   (eval "$ac_link") 2>conftest.er1
25784   ac_status=$?
25785   grep -v '^ *+' conftest.er1 >conftest.err
25786   rm -f conftest.er1
25787   cat conftest.err >&5
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); } && {
25790          test -z "$ac_c_werror_flag" ||
25791          test ! -s conftest.err
25792        } && test -s conftest$ac_exeext &&
25793        $as_test_x conftest$ac_exeext; then
25794   ol_cv_cthread_all_load=yes
25795 else
25796   echo "$as_me: failed program was:" >&5
25797 sed 's/^/| /' conftest.$ac_ext >&5
25798
25799         ol_cv_cthread_all_load=no
25800 fi
25801
25802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25803       conftest$ac_exeext conftest.$ac_ext
25804                                                                 LIBS="$save_LIBS"
25805
25806 fi
25807 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25808 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25809
25810                         if test $ol_cv_cthread_all_load = yes ; then
25811                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25812                                 ol_link_threads=mach
25813                                 ol_with_threads=found
25814                         fi
25815                 fi
25816
25817         elif test $ac_cv_header_cthreads_h = yes ; then
25818
25819                 ol_with_threads=found
25820
25821                                 save_LIBS="$LIBS"
25822                 LIBS="$LIBS -lthreads"
25823                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25824 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25825 if test "${ac_cv_func_cthread_fork+set}" = set; then
25826   echo $ECHO_N "(cached) $ECHO_C" >&6
25827 else
25828   cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h.  */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h.  */
25834 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25836 #define cthread_fork innocuous_cthread_fork
25837
25838 /* System header to define __stub macros and hopefully few prototypes,
25839     which can conflict with char cthread_fork (); below.
25840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25841     <limits.h> exists even on freestanding compilers.  */
25842
25843 #ifdef __STDC__
25844 # include <limits.h>
25845 #else
25846 # include <assert.h>
25847 #endif
25848
25849 #undef cthread_fork
25850
25851 /* Override any GCC internal prototype to avoid an error.
25852    Use char because int might match the return type of a GCC
25853    builtin and then its argument prototype would still apply.  */
25854 #ifdef __cplusplus
25855 extern "C"
25856 #endif
25857 char cthread_fork ();
25858 /* The GNU C library defines this for functions which it implements
25859     to always fail with ENOSYS.  Some functions are actually named
25860     something starting with __ and the normal name is an alias.  */
25861 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25862 choke me
25863 #endif
25864
25865 int
25866 main ()
25867 {
25868 return cthread_fork ();
25869   ;
25870   return 0;
25871 }
25872 _ACEOF
25873 rm -f conftest.$ac_objext conftest$ac_exeext
25874 if { (ac_try="$ac_link"
25875 case "(($ac_try" in
25876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877   *) ac_try_echo=$ac_try;;
25878 esac
25879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25880   (eval "$ac_link") 2>conftest.er1
25881   ac_status=$?
25882   grep -v '^ *+' conftest.er1 >conftest.err
25883   rm -f conftest.er1
25884   cat conftest.err >&5
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); } && {
25887          test -z "$ac_c_werror_flag" ||
25888          test ! -s conftest.err
25889        } && test -s conftest$ac_exeext &&
25890        $as_test_x conftest$ac_exeext; then
25891   ac_cv_func_cthread_fork=yes
25892 else
25893   echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25895
25896         ac_cv_func_cthread_fork=no
25897 fi
25898
25899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25900       conftest$ac_exeext conftest.$ac_ext
25901 fi
25902 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25903 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25904 if test $ac_cv_func_cthread_fork = yes; then
25905   ol_link_threads=yes
25906 fi
25907
25908                 LIBS="$save_LIBS"
25909
25910                 if test $ol_link_threads = yes ; then
25911                         LTHREAD_LIBS="-lthreads"
25912                         ol_link_threads=mach
25913                         ol_with_threads=found
25914                 else
25915                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25916 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25917    { (exit 1); exit 1; }; }
25918                 fi
25919
25920         elif test $ol_with_threads = mach ; then
25921                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25922 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25923    { (exit 1); exit 1; }; }
25924         fi
25925
25926         if test $ol_link_threads = mach ; then
25927
25928 cat >>confdefs.h <<\_ACEOF
25929 #define HAVE_MACH_CTHREADS 1
25930 _ACEOF
25931
25932         elif test $ol_with_threads = found ; then
25933                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25934 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25935    { (exit 1); exit 1; }; }
25936         fi
25937         ;;
25938 esac
25939
25940 case $ol_with_threads in auto | yes | pth)
25941
25942
25943 for ac_header in pth.h
25944 do
25945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25947   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25950   echo $ECHO_N "(cached) $ECHO_C" >&6
25951 fi
25952 ac_res=`eval echo '${'$as_ac_Header'}'`
25953                { echo "$as_me:$LINENO: result: $ac_res" >&5
25954 echo "${ECHO_T}$ac_res" >&6; }
25955 else
25956   # Is the header compilable?
25957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25959 cat >conftest.$ac_ext <<_ACEOF
25960 /* confdefs.h.  */
25961 _ACEOF
25962 cat confdefs.h >>conftest.$ac_ext
25963 cat >>conftest.$ac_ext <<_ACEOF
25964 /* end confdefs.h.  */
25965 $ac_includes_default
25966 #include <$ac_header>
25967 _ACEOF
25968 rm -f conftest.$ac_objext
25969 if { (ac_try="$ac_compile"
25970 case "(($ac_try" in
25971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972   *) ac_try_echo=$ac_try;;
25973 esac
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975   (eval "$ac_compile") 2>conftest.er1
25976   ac_status=$?
25977   grep -v '^ *+' conftest.er1 >conftest.err
25978   rm -f conftest.er1
25979   cat conftest.err >&5
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); } && {
25982          test -z "$ac_c_werror_flag" ||
25983          test ! -s conftest.err
25984        } && test -s conftest.$ac_objext; then
25985   ac_header_compiler=yes
25986 else
25987   echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25989
25990         ac_header_compiler=no
25991 fi
25992
25993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25995 echo "${ECHO_T}$ac_header_compiler" >&6; }
25996
25997 # Is the header present?
25998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26000 cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h.  */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h.  */
26006 #include <$ac_header>
26007 _ACEOF
26008 if { (ac_try="$ac_cpp conftest.$ac_ext"
26009 case "(($ac_try" in
26010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011   *) ac_try_echo=$ac_try;;
26012 esac
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26015   ac_status=$?
26016   grep -v '^ *+' conftest.er1 >conftest.err
26017   rm -f conftest.er1
26018   cat conftest.err >&5
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); } >/dev/null && {
26021          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26022          test ! -s conftest.err
26023        }; then
26024   ac_header_preproc=yes
26025 else
26026   echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26028
26029   ac_header_preproc=no
26030 fi
26031
26032 rm -f conftest.err conftest.$ac_ext
26033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26034 echo "${ECHO_T}$ac_header_preproc" >&6; }
26035
26036 # So?  What about this header?
26037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26038   yes:no: )
26039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26043     ac_header_preproc=yes
26044     ;;
26045   no:yes:* )
26046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26058     ( cat <<\_ASBOX
26059 ## --------------------------------------------- ##
26060 ## Report this to <http://www.openldap.org/its/> ##
26061 ## --------------------------------------------- ##
26062 _ASBOX
26063      ) | sed "s/^/$as_me: WARNING:     /" >&2
26064     ;;
26065 esac
26066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26069   echo $ECHO_N "(cached) $ECHO_C" >&6
26070 else
26071   eval "$as_ac_Header=\$ac_header_preproc"
26072 fi
26073 ac_res=`eval echo '${'$as_ac_Header'}'`
26074                { echo "$as_me:$LINENO: result: $ac_res" >&5
26075 echo "${ECHO_T}$ac_res" >&6; }
26076
26077 fi
26078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26079   cat >>confdefs.h <<_ACEOF
26080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26081 _ACEOF
26082
26083 fi
26084
26085 done
26086
26087
26088         if test $ac_cv_header_pth_h = yes ; then
26089                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26090 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26091 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26092   echo $ECHO_N "(cached) $ECHO_C" >&6
26093 else
26094   ac_check_lib_save_LIBS=$LIBS
26095 LIBS="-lpth  $LIBS"
26096 cat >conftest.$ac_ext <<_ACEOF
26097 /* confdefs.h.  */
26098 _ACEOF
26099 cat confdefs.h >>conftest.$ac_ext
26100 cat >>conftest.$ac_ext <<_ACEOF
26101 /* end confdefs.h.  */
26102
26103 /* Override any GCC internal prototype to avoid an error.
26104    Use char because int might match the return type of a GCC
26105    builtin and then its argument prototype would still apply.  */
26106 #ifdef __cplusplus
26107 extern "C"
26108 #endif
26109 char pth_version ();
26110 int
26111 main ()
26112 {
26113 return pth_version ();
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest.$ac_objext conftest$ac_exeext
26119 if { (ac_try="$ac_link"
26120 case "(($ac_try" in
26121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122   *) ac_try_echo=$ac_try;;
26123 esac
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125   (eval "$ac_link") 2>conftest.er1
26126   ac_status=$?
26127   grep -v '^ *+' conftest.er1 >conftest.err
26128   rm -f conftest.er1
26129   cat conftest.err >&5
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); } && {
26132          test -z "$ac_c_werror_flag" ||
26133          test ! -s conftest.err
26134        } && test -s conftest$ac_exeext &&
26135        $as_test_x conftest$ac_exeext; then
26136   ac_cv_lib_pth_pth_version=yes
26137 else
26138   echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26140
26141         ac_cv_lib_pth_pth_version=no
26142 fi
26143
26144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26145       conftest$ac_exeext conftest.$ac_ext
26146 LIBS=$ac_check_lib_save_LIBS
26147 fi
26148 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26149 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26150 if test $ac_cv_lib_pth_pth_version = yes; then
26151   have_pth=yes
26152 else
26153   have_pth=no
26154 fi
26155
26156
26157                 if test $have_pth = yes ; then
26158
26159 cat >>confdefs.h <<\_ACEOF
26160 #define HAVE_GNU_PTH 1
26161 _ACEOF
26162
26163                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26164                         ol_link_threads=pth
26165                         ol_with_threads=found
26166
26167                         if test $ol_with_yielding_select = auto ; then
26168                                 ol_with_yielding_select=yes
26169                         fi
26170                 fi
26171         fi
26172         ;;
26173 esac
26174
26175 case $ol_with_threads in auto | yes | lwp)
26176
26177
26178
26179 for ac_header in thread.h synch.h
26180 do
26181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26186   echo $ECHO_N "(cached) $ECHO_C" >&6
26187 fi
26188 ac_res=`eval echo '${'$as_ac_Header'}'`
26189                { echo "$as_me:$LINENO: result: $ac_res" >&5
26190 echo "${ECHO_T}$ac_res" >&6; }
26191 else
26192   # Is the header compilable?
26193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26195 cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 $ac_includes_default
26202 #include <$ac_header>
26203 _ACEOF
26204 rm -f conftest.$ac_objext
26205 if { (ac_try="$ac_compile"
26206 case "(($ac_try" in
26207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26208   *) ac_try_echo=$ac_try;;
26209 esac
26210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26211   (eval "$ac_compile") 2>conftest.er1
26212   ac_status=$?
26213   grep -v '^ *+' conftest.er1 >conftest.err
26214   rm -f conftest.er1
26215   cat conftest.err >&5
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); } && {
26218          test -z "$ac_c_werror_flag" ||
26219          test ! -s conftest.err
26220        } && test -s conftest.$ac_objext; then
26221   ac_header_compiler=yes
26222 else
26223   echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26225
26226         ac_header_compiler=no
26227 fi
26228
26229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26231 echo "${ECHO_T}$ac_header_compiler" >&6; }
26232
26233 # Is the header present?
26234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26236 cat >conftest.$ac_ext <<_ACEOF
26237 /* confdefs.h.  */
26238 _ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h.  */
26242 #include <$ac_header>
26243 _ACEOF
26244 if { (ac_try="$ac_cpp conftest.$ac_ext"
26245 case "(($ac_try" in
26246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26247   *) ac_try_echo=$ac_try;;
26248 esac
26249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26251   ac_status=$?
26252   grep -v '^ *+' conftest.er1 >conftest.err
26253   rm -f conftest.er1
26254   cat conftest.err >&5
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); } >/dev/null && {
26257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26258          test ! -s conftest.err
26259        }; then
26260   ac_header_preproc=yes
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265   ac_header_preproc=no
26266 fi
26267
26268 rm -f conftest.err conftest.$ac_ext
26269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26270 echo "${ECHO_T}$ac_header_preproc" >&6; }
26271
26272 # So?  What about this header?
26273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26274   yes:no: )
26275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26279     ac_header_preproc=yes
26280     ;;
26281   no:yes:* )
26282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26294     ( cat <<\_ASBOX
26295 ## --------------------------------------------- ##
26296 ## Report this to <http://www.openldap.org/its/> ##
26297 ## --------------------------------------------- ##
26298 _ASBOX
26299      ) | sed "s/^/$as_me: WARNING:     /" >&2
26300     ;;
26301 esac
26302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26305   echo $ECHO_N "(cached) $ECHO_C" >&6
26306 else
26307   eval "$as_ac_Header=\$ac_header_preproc"
26308 fi
26309 ac_res=`eval echo '${'$as_ac_Header'}'`
26310                { echo "$as_me:$LINENO: result: $ac_res" >&5
26311 echo "${ECHO_T}$ac_res" >&6; }
26312
26313 fi
26314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26315   cat >>confdefs.h <<_ACEOF
26316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26317 _ACEOF
26318
26319 fi
26320
26321 done
26322
26323         if test $ac_cv_header_thread_h = yes &&
26324            test $ac_cv_header_synch_h = yes ; then
26325                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26326 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26327 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330   ac_check_lib_save_LIBS=$LIBS
26331 LIBS="-lthread  $LIBS"
26332 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h.  */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h.  */
26338
26339 /* Override any GCC internal prototype to avoid an error.
26340    Use char because int might match the return type of a GCC
26341    builtin and then its argument prototype would still apply.  */
26342 #ifdef __cplusplus
26343 extern "C"
26344 #endif
26345 char thr_create ();
26346 int
26347 main ()
26348 {
26349 return thr_create ();
26350   ;
26351   return 0;
26352 }
26353 _ACEOF
26354 rm -f conftest.$ac_objext conftest$ac_exeext
26355 if { (ac_try="$ac_link"
26356 case "(($ac_try" in
26357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358   *) ac_try_echo=$ac_try;;
26359 esac
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361   (eval "$ac_link") 2>conftest.er1
26362   ac_status=$?
26363   grep -v '^ *+' conftest.er1 >conftest.err
26364   rm -f conftest.er1
26365   cat conftest.err >&5
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); } && {
26368          test -z "$ac_c_werror_flag" ||
26369          test ! -s conftest.err
26370        } && test -s conftest$ac_exeext &&
26371        $as_test_x conftest$ac_exeext; then
26372   ac_cv_lib_thread_thr_create=yes
26373 else
26374   echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26376
26377         ac_cv_lib_thread_thr_create=no
26378 fi
26379
26380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26381       conftest$ac_exeext conftest.$ac_ext
26382 LIBS=$ac_check_lib_save_LIBS
26383 fi
26384 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26385 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26386 if test $ac_cv_lib_thread_thr_create = yes; then
26387   have_thr=yes
26388 else
26389   have_thr=no
26390 fi
26391
26392
26393                 if test $have_thr = yes ; then
26394
26395 cat >>confdefs.h <<\_ACEOF
26396 #define HAVE_THR 1
26397 _ACEOF
26398
26399                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26400                         ol_link_threads=thr
26401
26402                         if test $ol_with_yielding_select = auto ; then
26403                                 ol_with_yielding_select=yes
26404                         fi
26405
26406
26407
26408 for ac_func in \
26409                                 thr_setconcurrency \
26410                                 thr_getconcurrency \
26411
26412 do
26413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26417   echo $ECHO_N "(cached) $ECHO_C" >&6
26418 else
26419   cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26427 #define $ac_func innocuous_$ac_func
26428
26429 /* System header to define __stub macros and hopefully few prototypes,
26430     which can conflict with char $ac_func (); below.
26431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26432     <limits.h> exists even on freestanding compilers.  */
26433
26434 #ifdef __STDC__
26435 # include <limits.h>
26436 #else
26437 # include <assert.h>
26438 #endif
26439
26440 #undef $ac_func
26441
26442 /* Override any GCC internal prototype to avoid an error.
26443    Use char because int might match the return type of a GCC
26444    builtin and then its argument prototype would still apply.  */
26445 #ifdef __cplusplus
26446 extern "C"
26447 #endif
26448 char $ac_func ();
26449 /* The GNU C library defines this for functions which it implements
26450     to always fail with ENOSYS.  Some functions are actually named
26451     something starting with __ and the normal name is an alias.  */
26452 #if defined __stub_$ac_func || defined __stub___$ac_func
26453 choke me
26454 #endif
26455
26456 int
26457 main ()
26458 {
26459 return $ac_func ();
26460   ;
26461   return 0;
26462 }
26463 _ACEOF
26464 rm -f conftest.$ac_objext conftest$ac_exeext
26465 if { (ac_try="$ac_link"
26466 case "(($ac_try" in
26467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468   *) ac_try_echo=$ac_try;;
26469 esac
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471   (eval "$ac_link") 2>conftest.er1
26472   ac_status=$?
26473   grep -v '^ *+' conftest.er1 >conftest.err
26474   rm -f conftest.er1
26475   cat conftest.err >&5
26476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477   (exit $ac_status); } && {
26478          test -z "$ac_c_werror_flag" ||
26479          test ! -s conftest.err
26480        } && test -s conftest$ac_exeext &&
26481        $as_test_x conftest$ac_exeext; then
26482   eval "$as_ac_var=yes"
26483 else
26484   echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26486
26487         eval "$as_ac_var=no"
26488 fi
26489
26490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26491       conftest$ac_exeext conftest.$ac_ext
26492 fi
26493 ac_res=`eval echo '${'$as_ac_var'}'`
26494                { echo "$as_me:$LINENO: result: $ac_res" >&5
26495 echo "${ECHO_T}$ac_res" >&6; }
26496 if test `eval echo '${'$as_ac_var'}'` = yes; then
26497   cat >>confdefs.h <<_ACEOF
26498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26499 _ACEOF
26500
26501 fi
26502 done
26503
26504                 fi
26505         fi
26506
26507
26508 for ac_header in lwp/lwp.h
26509 do
26510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26512   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26515   echo $ECHO_N "(cached) $ECHO_C" >&6
26516 fi
26517 ac_res=`eval echo '${'$as_ac_Header'}'`
26518                { echo "$as_me:$LINENO: result: $ac_res" >&5
26519 echo "${ECHO_T}$ac_res" >&6; }
26520 else
26521   # Is the header compilable?
26522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26524 cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530 $ac_includes_default
26531 #include <$ac_header>
26532 _ACEOF
26533 rm -f conftest.$ac_objext
26534 if { (ac_try="$ac_compile"
26535 case "(($ac_try" in
26536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537   *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540   (eval "$ac_compile") 2>conftest.er1
26541   ac_status=$?
26542   grep -v '^ *+' conftest.er1 >conftest.err
26543   rm -f conftest.er1
26544   cat conftest.err >&5
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); } && {
26547          test -z "$ac_c_werror_flag" ||
26548          test ! -s conftest.err
26549        } && test -s conftest.$ac_objext; then
26550   ac_header_compiler=yes
26551 else
26552   echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26554
26555         ac_header_compiler=no
26556 fi
26557
26558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26560 echo "${ECHO_T}$ac_header_compiler" >&6; }
26561
26562 # Is the header present?
26563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26565 cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571 #include <$ac_header>
26572 _ACEOF
26573 if { (ac_try="$ac_cpp conftest.$ac_ext"
26574 case "(($ac_try" in
26575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576   *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26580   ac_status=$?
26581   grep -v '^ *+' conftest.er1 >conftest.err
26582   rm -f conftest.er1
26583   cat conftest.err >&5
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } >/dev/null && {
26586          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26587          test ! -s conftest.err
26588        }; then
26589   ac_header_preproc=yes
26590 else
26591   echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26593
26594   ac_header_preproc=no
26595 fi
26596
26597 rm -f conftest.err conftest.$ac_ext
26598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26599 echo "${ECHO_T}$ac_header_preproc" >&6; }
26600
26601 # So?  What about this header?
26602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26603   yes:no: )
26604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26608     ac_header_preproc=yes
26609     ;;
26610   no:yes:* )
26611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26613     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26614 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26615     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26617     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26618 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26621     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26623     ( cat <<\_ASBOX
26624 ## --------------------------------------------- ##
26625 ## Report this to <http://www.openldap.org/its/> ##
26626 ## --------------------------------------------- ##
26627 _ASBOX
26628      ) | sed "s/^/$as_me: WARNING:     /" >&2
26629     ;;
26630 esac
26631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26634   echo $ECHO_N "(cached) $ECHO_C" >&6
26635 else
26636   eval "$as_ac_Header=\$ac_header_preproc"
26637 fi
26638 ac_res=`eval echo '${'$as_ac_Header'}'`
26639                { echo "$as_me:$LINENO: result: $ac_res" >&5
26640 echo "${ECHO_T}$ac_res" >&6; }
26641
26642 fi
26643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26644   cat >>confdefs.h <<_ACEOF
26645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26646 _ACEOF
26647
26648 fi
26649
26650 done
26651
26652         if test $ac_cv_header_lwp_lwp_h = yes ; then
26653                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26654 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26655 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26656   echo $ECHO_N "(cached) $ECHO_C" >&6
26657 else
26658   ac_check_lib_save_LIBS=$LIBS
26659 LIBS="-llwp  $LIBS"
26660 cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h.  */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h.  */
26666
26667 /* Override any GCC internal prototype to avoid an error.
26668    Use char because int might match the return type of a GCC
26669    builtin and then its argument prototype would still apply.  */
26670 #ifdef __cplusplus
26671 extern "C"
26672 #endif
26673 char lwp_create ();
26674 int
26675 main ()
26676 {
26677 return lwp_create ();
26678   ;
26679   return 0;
26680 }
26681 _ACEOF
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (ac_try="$ac_link"
26684 case "(($ac_try" in
26685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686   *) ac_try_echo=$ac_try;;
26687 esac
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689   (eval "$ac_link") 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } && {
26696          test -z "$ac_c_werror_flag" ||
26697          test ! -s conftest.err
26698        } && test -s conftest$ac_exeext &&
26699        $as_test_x conftest$ac_exeext; then
26700   ac_cv_lib_lwp_lwp_create=yes
26701 else
26702   echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26704
26705         ac_cv_lib_lwp_lwp_create=no
26706 fi
26707
26708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26709       conftest$ac_exeext conftest.$ac_ext
26710 LIBS=$ac_check_lib_save_LIBS
26711 fi
26712 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26713 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26714 if test $ac_cv_lib_lwp_lwp_create = yes; then
26715   have_lwp=yes
26716 else
26717   have_lwp=no
26718 fi
26719
26720
26721                 if test $have_lwp = yes ; then
26722
26723 cat >>confdefs.h <<\_ACEOF
26724 #define HAVE_LWP 1
26725 _ACEOF
26726
26727                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26728                         ol_link_threads=lwp
26729
26730                         if test $ol_with_yielding_select = auto ; then
26731                                 ol_with_yielding_select=no
26732                         fi
26733                 fi
26734         fi
26735         ;;
26736 esac
26737
26738 if test $ol_with_yielding_select = yes ; then
26739
26740 cat >>confdefs.h <<\_ACEOF
26741 #define HAVE_YIELDING_SELECT 1
26742 _ACEOF
26743
26744 fi
26745
26746 if test $ol_with_threads = manual ; then
26747                 ol_link_threads=yes
26748
26749         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26750 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26751
26752
26753
26754 for ac_header in pthread.h sched.h
26755 do
26756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26758   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26761   echo $ECHO_N "(cached) $ECHO_C" >&6
26762 fi
26763 ac_res=`eval echo '${'$as_ac_Header'}'`
26764                { echo "$as_me:$LINENO: result: $ac_res" >&5
26765 echo "${ECHO_T}$ac_res" >&6; }
26766 else
26767   # Is the header compilable?
26768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26770 cat >conftest.$ac_ext <<_ACEOF
26771 /* confdefs.h.  */
26772 _ACEOF
26773 cat confdefs.h >>conftest.$ac_ext
26774 cat >>conftest.$ac_ext <<_ACEOF
26775 /* end confdefs.h.  */
26776 $ac_includes_default
26777 #include <$ac_header>
26778 _ACEOF
26779 rm -f conftest.$ac_objext
26780 if { (ac_try="$ac_compile"
26781 case "(($ac_try" in
26782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26783   *) ac_try_echo=$ac_try;;
26784 esac
26785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26786   (eval "$ac_compile") 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } && {
26793          test -z "$ac_c_werror_flag" ||
26794          test ! -s conftest.err
26795        } && test -s conftest.$ac_objext; then
26796   ac_header_compiler=yes
26797 else
26798   echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26800
26801         ac_header_compiler=no
26802 fi
26803
26804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26806 echo "${ECHO_T}$ac_header_compiler" >&6; }
26807
26808 # Is the header present?
26809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26811 cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 #include <$ac_header>
26818 _ACEOF
26819 if { (ac_try="$ac_cpp conftest.$ac_ext"
26820 case "(($ac_try" in
26821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26822   *) ac_try_echo=$ac_try;;
26823 esac
26824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26826   ac_status=$?
26827   grep -v '^ *+' conftest.er1 >conftest.err
26828   rm -f conftest.er1
26829   cat conftest.err >&5
26830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); } >/dev/null && {
26832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26833          test ! -s conftest.err
26834        }; then
26835   ac_header_preproc=yes
26836 else
26837   echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26839
26840   ac_header_preproc=no
26841 fi
26842
26843 rm -f conftest.err conftest.$ac_ext
26844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26845 echo "${ECHO_T}$ac_header_preproc" >&6; }
26846
26847 # So?  What about this header?
26848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26849   yes:no: )
26850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26854     ac_header_preproc=yes
26855     ;;
26856   no:yes:* )
26857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26869     ( cat <<\_ASBOX
26870 ## --------------------------------------------- ##
26871 ## Report this to <http://www.openldap.org/its/> ##
26872 ## --------------------------------------------- ##
26873 _ASBOX
26874      ) | sed "s/^/$as_me: WARNING:     /" >&2
26875     ;;
26876 esac
26877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26880   echo $ECHO_N "(cached) $ECHO_C" >&6
26881 else
26882   eval "$as_ac_Header=\$ac_header_preproc"
26883 fi
26884 ac_res=`eval echo '${'$as_ac_Header'}'`
26885                { echo "$as_me:$LINENO: result: $ac_res" >&5
26886 echo "${ECHO_T}$ac_res" >&6; }
26887
26888 fi
26889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26890   cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26892 _ACEOF
26893
26894 fi
26895
26896 done
26897
26898
26899
26900 for ac_func in sched_yield pthread_yield
26901 do
26902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908   cat >conftest.$ac_ext <<_ACEOF
26909 /* confdefs.h.  */
26910 _ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h.  */
26914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26916 #define $ac_func innocuous_$ac_func
26917
26918 /* System header to define __stub macros and hopefully few prototypes,
26919     which can conflict with char $ac_func (); below.
26920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26921     <limits.h> exists even on freestanding compilers.  */
26922
26923 #ifdef __STDC__
26924 # include <limits.h>
26925 #else
26926 # include <assert.h>
26927 #endif
26928
26929 #undef $ac_func
26930
26931 /* Override any GCC internal prototype to avoid an error.
26932    Use char because int might match the return type of a GCC
26933    builtin and then its argument prototype would still apply.  */
26934 #ifdef __cplusplus
26935 extern "C"
26936 #endif
26937 char $ac_func ();
26938 /* The GNU C library defines this for functions which it implements
26939     to always fail with ENOSYS.  Some functions are actually named
26940     something starting with __ and the normal name is an alias.  */
26941 #if defined __stub_$ac_func || defined __stub___$ac_func
26942 choke me
26943 #endif
26944
26945 int
26946 main ()
26947 {
26948 return $ac_func ();
26949   ;
26950   return 0;
26951 }
26952 _ACEOF
26953 rm -f conftest.$ac_objext conftest$ac_exeext
26954 if { (ac_try="$ac_link"
26955 case "(($ac_try" in
26956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957   *) ac_try_echo=$ac_try;;
26958 esac
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960   (eval "$ac_link") 2>conftest.er1
26961   ac_status=$?
26962   grep -v '^ *+' conftest.er1 >conftest.err
26963   rm -f conftest.er1
26964   cat conftest.err >&5
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); } && {
26967          test -z "$ac_c_werror_flag" ||
26968          test ! -s conftest.err
26969        } && test -s conftest$ac_exeext &&
26970        $as_test_x conftest$ac_exeext; then
26971   eval "$as_ac_var=yes"
26972 else
26973   echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26975
26976         eval "$as_ac_var=no"
26977 fi
26978
26979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26980       conftest$ac_exeext conftest.$ac_ext
26981 fi
26982 ac_res=`eval echo '${'$as_ac_var'}'`
26983                { echo "$as_me:$LINENO: result: $ac_res" >&5
26984 echo "${ECHO_T}$ac_res" >&6; }
26985 if test `eval echo '${'$as_ac_var'}'` = yes; then
26986   cat >>confdefs.h <<_ACEOF
26987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26988 _ACEOF
26989
26990 fi
26991 done
26992
26993
26994         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26995 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26996 if test "${ol_cv_header_linux_threads+set}" = set; then
26997   echo $ECHO_N "(cached) $ECHO_C" >&6
26998 else
26999   cat >conftest.$ac_ext <<_ACEOF
27000 /* confdefs.h.  */
27001 _ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h.  */
27005 #include <pthread.h>
27006 _ACEOF
27007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27008   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27009   ol_cv_header_linux_threads=yes
27010 else
27011   ol_cv_header_linux_threads=no
27012 fi
27013 rm -f conftest*
27014
27015
27016 fi
27017 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27018 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27019         if test $ol_cv_header_linux_threads = yes; then
27020
27021 cat >>confdefs.h <<\_ACEOF
27022 #define HAVE_LINUX_THREADS 1
27023 _ACEOF
27024
27025         fi
27026
27027
27028
27029 for ac_header in mach/cthreads.h
27030 do
27031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27033   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27036   echo $ECHO_N "(cached) $ECHO_C" >&6
27037 fi
27038 ac_res=`eval echo '${'$as_ac_Header'}'`
27039                { echo "$as_me:$LINENO: result: $ac_res" >&5
27040 echo "${ECHO_T}$ac_res" >&6; }
27041 else
27042   # Is the header compilable?
27043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27045 cat >conftest.$ac_ext <<_ACEOF
27046 /* confdefs.h.  */
27047 _ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h.  */
27051 $ac_includes_default
27052 #include <$ac_header>
27053 _ACEOF
27054 rm -f conftest.$ac_objext
27055 if { (ac_try="$ac_compile"
27056 case "(($ac_try" in
27057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058   *) ac_try_echo=$ac_try;;
27059 esac
27060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061   (eval "$ac_compile") 2>conftest.er1
27062   ac_status=$?
27063   grep -v '^ *+' conftest.er1 >conftest.err
27064   rm -f conftest.er1
27065   cat conftest.err >&5
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); } && {
27068          test -z "$ac_c_werror_flag" ||
27069          test ! -s conftest.err
27070        } && test -s conftest.$ac_objext; then
27071   ac_header_compiler=yes
27072 else
27073   echo "$as_me: failed program was:" >&5
27074 sed 's/^/| /' conftest.$ac_ext >&5
27075
27076         ac_header_compiler=no
27077 fi
27078
27079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27081 echo "${ECHO_T}$ac_header_compiler" >&6; }
27082
27083 # Is the header present?
27084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27086 cat >conftest.$ac_ext <<_ACEOF
27087 /* confdefs.h.  */
27088 _ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h.  */
27092 #include <$ac_header>
27093 _ACEOF
27094 if { (ac_try="$ac_cpp conftest.$ac_ext"
27095 case "(($ac_try" in
27096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097   *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27101   ac_status=$?
27102   grep -v '^ *+' conftest.er1 >conftest.err
27103   rm -f conftest.er1
27104   cat conftest.err >&5
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } >/dev/null && {
27107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27108          test ! -s conftest.err
27109        }; then
27110   ac_header_preproc=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115   ac_header_preproc=no
27116 fi
27117
27118 rm -f conftest.err conftest.$ac_ext
27119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27120 echo "${ECHO_T}$ac_header_preproc" >&6; }
27121
27122 # So?  What about this header?
27123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27124   yes:no: )
27125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27129     ac_header_preproc=yes
27130     ;;
27131   no:yes:* )
27132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27144     ( cat <<\_ASBOX
27145 ## --------------------------------------------- ##
27146 ## Report this to <http://www.openldap.org/its/> ##
27147 ## --------------------------------------------- ##
27148 _ASBOX
27149      ) | sed "s/^/$as_me: WARNING:     /" >&2
27150     ;;
27151 esac
27152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27155   echo $ECHO_N "(cached) $ECHO_C" >&6
27156 else
27157   eval "$as_ac_Header=\$ac_header_preproc"
27158 fi
27159 ac_res=`eval echo '${'$as_ac_Header'}'`
27160                { echo "$as_me:$LINENO: result: $ac_res" >&5
27161 echo "${ECHO_T}$ac_res" >&6; }
27162
27163 fi
27164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27165   cat >>confdefs.h <<_ACEOF
27166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27167 _ACEOF
27168
27169 fi
27170
27171 done
27172
27173
27174 for ac_header in lwp/lwp.h
27175 do
27176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27178   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181   echo $ECHO_N "(cached) $ECHO_C" >&6
27182 fi
27183 ac_res=`eval echo '${'$as_ac_Header'}'`
27184                { echo "$as_me:$LINENO: result: $ac_res" >&5
27185 echo "${ECHO_T}$ac_res" >&6; }
27186 else
27187   # Is the header compilable?
27188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27190 cat >conftest.$ac_ext <<_ACEOF
27191 /* confdefs.h.  */
27192 _ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h.  */
27196 $ac_includes_default
27197 #include <$ac_header>
27198 _ACEOF
27199 rm -f conftest.$ac_objext
27200 if { (ac_try="$ac_compile"
27201 case "(($ac_try" in
27202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203   *) ac_try_echo=$ac_try;;
27204 esac
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206   (eval "$ac_compile") 2>conftest.er1
27207   ac_status=$?
27208   grep -v '^ *+' conftest.er1 >conftest.err
27209   rm -f conftest.er1
27210   cat conftest.err >&5
27211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212   (exit $ac_status); } && {
27213          test -z "$ac_c_werror_flag" ||
27214          test ! -s conftest.err
27215        } && test -s conftest.$ac_objext; then
27216   ac_header_compiler=yes
27217 else
27218   echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27220
27221         ac_header_compiler=no
27222 fi
27223
27224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27226 echo "${ECHO_T}$ac_header_compiler" >&6; }
27227
27228 # Is the header present?
27229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27231 cat >conftest.$ac_ext <<_ACEOF
27232 /* confdefs.h.  */
27233 _ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h.  */
27237 #include <$ac_header>
27238 _ACEOF
27239 if { (ac_try="$ac_cpp conftest.$ac_ext"
27240 case "(($ac_try" in
27241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242   *) ac_try_echo=$ac_try;;
27243 esac
27244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27246   ac_status=$?
27247   grep -v '^ *+' conftest.er1 >conftest.err
27248   rm -f conftest.er1
27249   cat conftest.err >&5
27250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251   (exit $ac_status); } >/dev/null && {
27252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27253          test ! -s conftest.err
27254        }; then
27255   ac_header_preproc=yes
27256 else
27257   echo "$as_me: failed program was:" >&5
27258 sed 's/^/| /' conftest.$ac_ext >&5
27259
27260   ac_header_preproc=no
27261 fi
27262
27263 rm -f conftest.err conftest.$ac_ext
27264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27265 echo "${ECHO_T}$ac_header_preproc" >&6; }
27266
27267 # So?  What about this header?
27268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27269   yes:no: )
27270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27274     ac_header_preproc=yes
27275     ;;
27276   no:yes:* )
27277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27289     ( cat <<\_ASBOX
27290 ## --------------------------------------------- ##
27291 ## Report this to <http://www.openldap.org/its/> ##
27292 ## --------------------------------------------- ##
27293 _ASBOX
27294      ) | sed "s/^/$as_me: WARNING:     /" >&2
27295     ;;
27296 esac
27297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27300   echo $ECHO_N "(cached) $ECHO_C" >&6
27301 else
27302   eval "$as_ac_Header=\$ac_header_preproc"
27303 fi
27304 ac_res=`eval echo '${'$as_ac_Header'}'`
27305                { echo "$as_me:$LINENO: result: $ac_res" >&5
27306 echo "${ECHO_T}$ac_res" >&6; }
27307
27308 fi
27309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27310   cat >>confdefs.h <<_ACEOF
27311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27312 _ACEOF
27313
27314 fi
27315
27316 done
27317
27318
27319
27320 for ac_header in thread.h synch.h
27321 do
27322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27327   echo $ECHO_N "(cached) $ECHO_C" >&6
27328 fi
27329 ac_res=`eval echo '${'$as_ac_Header'}'`
27330                { echo "$as_me:$LINENO: result: $ac_res" >&5
27331 echo "${ECHO_T}$ac_res" >&6; }
27332 else
27333   # Is the header compilable?
27334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27336 cat >conftest.$ac_ext <<_ACEOF
27337 /* confdefs.h.  */
27338 _ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h.  */
27342 $ac_includes_default
27343 #include <$ac_header>
27344 _ACEOF
27345 rm -f conftest.$ac_objext
27346 if { (ac_try="$ac_compile"
27347 case "(($ac_try" in
27348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349   *) ac_try_echo=$ac_try;;
27350 esac
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352   (eval "$ac_compile") 2>conftest.er1
27353   ac_status=$?
27354   grep -v '^ *+' conftest.er1 >conftest.err
27355   rm -f conftest.er1
27356   cat conftest.err >&5
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); } && {
27359          test -z "$ac_c_werror_flag" ||
27360          test ! -s conftest.err
27361        } && test -s conftest.$ac_objext; then
27362   ac_header_compiler=yes
27363 else
27364   echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27366
27367         ac_header_compiler=no
27368 fi
27369
27370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27372 echo "${ECHO_T}$ac_header_compiler" >&6; }
27373
27374 # Is the header present?
27375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27377 cat >conftest.$ac_ext <<_ACEOF
27378 /* confdefs.h.  */
27379 _ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h.  */
27383 #include <$ac_header>
27384 _ACEOF
27385 if { (ac_try="$ac_cpp conftest.$ac_ext"
27386 case "(($ac_try" in
27387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388   *) ac_try_echo=$ac_try;;
27389 esac
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27392   ac_status=$?
27393   grep -v '^ *+' conftest.er1 >conftest.err
27394   rm -f conftest.er1
27395   cat conftest.err >&5
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); } >/dev/null && {
27398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27399          test ! -s conftest.err
27400        }; then
27401   ac_header_preproc=yes
27402 else
27403   echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27405
27406   ac_header_preproc=no
27407 fi
27408
27409 rm -f conftest.err conftest.$ac_ext
27410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27411 echo "${ECHO_T}$ac_header_preproc" >&6; }
27412
27413 # So?  What about this header?
27414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27415   yes:no: )
27416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27420     ac_header_preproc=yes
27421     ;;
27422   no:yes:* )
27423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27435     ( cat <<\_ASBOX
27436 ## --------------------------------------------- ##
27437 ## Report this to <http://www.openldap.org/its/> ##
27438 ## --------------------------------------------- ##
27439 _ASBOX
27440      ) | sed "s/^/$as_me: WARNING:     /" >&2
27441     ;;
27442 esac
27443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27446   echo $ECHO_N "(cached) $ECHO_C" >&6
27447 else
27448   eval "$as_ac_Header=\$ac_header_preproc"
27449 fi
27450 ac_res=`eval echo '${'$as_ac_Header'}'`
27451                { echo "$as_me:$LINENO: result: $ac_res" >&5
27452 echo "${ECHO_T}$ac_res" >&6; }
27453
27454 fi
27455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27456   cat >>confdefs.h <<_ACEOF
27457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27458 _ACEOF
27459
27460 fi
27461
27462 done
27463
27464 fi
27465
27466 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27467                         cat >>confdefs.h <<\_ACEOF
27468 #define REENTRANT 1
27469 _ACEOF
27470
27471         cat >>confdefs.h <<\_ACEOF
27472 #define _REENTRANT 1
27473 _ACEOF
27474
27475         cat >>confdefs.h <<\_ACEOF
27476 #define THREAD_SAFE 1
27477 _ACEOF
27478
27479         cat >>confdefs.h <<\_ACEOF
27480 #define _THREAD_SAFE 1
27481 _ACEOF
27482
27483         cat >>confdefs.h <<\_ACEOF
27484 #define THREADSAFE 1
27485 _ACEOF
27486
27487         cat >>confdefs.h <<\_ACEOF
27488 #define _THREADSAFE 1
27489 _ACEOF
27490
27491         cat >>confdefs.h <<\_ACEOF
27492 #define _SGI_MP_SOURCE 1
27493 _ACEOF
27494
27495
27496                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27497 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27498 if test "${ol_cv_errno_thread_specific+set}" = set; then
27499   echo $ECHO_N "(cached) $ECHO_C" >&6
27500 else
27501
27502                 cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508 #include <errno.h>
27509 int
27510 main ()
27511 {
27512 errno = 0;
27513   ;
27514   return 0;
27515 }
27516 _ACEOF
27517 rm -f conftest.$ac_objext conftest$ac_exeext
27518 if { (ac_try="$ac_link"
27519 case "(($ac_try" in
27520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521   *) ac_try_echo=$ac_try;;
27522 esac
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524   (eval "$ac_link") 2>conftest.er1
27525   ac_status=$?
27526   grep -v '^ *+' conftest.er1 >conftest.err
27527   rm -f conftest.er1
27528   cat conftest.err >&5
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); } && {
27531          test -z "$ac_c_werror_flag" ||
27532          test ! -s conftest.err
27533        } && test -s conftest$ac_exeext &&
27534        $as_test_x conftest$ac_exeext; then
27535   ol_cv_errno_thread_specific=yes
27536 else
27537   echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27539
27540         ol_cv_errno_thread_specific=no
27541 fi
27542
27543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27544       conftest$ac_exeext conftest.$ac_ext
27545
27546 fi
27547 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27548 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27549
27550                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27551 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27552 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27553   echo $ECHO_N "(cached) $ECHO_C" >&6
27554 else
27555
27556                 cat >conftest.$ac_ext <<_ACEOF
27557 /* confdefs.h.  */
27558 _ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h.  */
27562 #include <netdb.h>
27563 int
27564 main ()
27565 {
27566 h_errno = 0;
27567   ;
27568   return 0;
27569 }
27570 _ACEOF
27571 rm -f conftest.$ac_objext conftest$ac_exeext
27572 if { (ac_try="$ac_link"
27573 case "(($ac_try" in
27574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575   *) ac_try_echo=$ac_try;;
27576 esac
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578   (eval "$ac_link") 2>conftest.er1
27579   ac_status=$?
27580   grep -v '^ *+' conftest.er1 >conftest.err
27581   rm -f conftest.er1
27582   cat conftest.err >&5
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); } && {
27585          test -z "$ac_c_werror_flag" ||
27586          test ! -s conftest.err
27587        } && test -s conftest$ac_exeext &&
27588        $as_test_x conftest$ac_exeext; then
27589   ol_cv_h_errno_thread_specific=yes
27590 else
27591   echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594         ol_cv_h_errno_thread_specific=no
27595 fi
27596
27597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27598       conftest$ac_exeext conftest.$ac_ext
27599
27600 fi
27601 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27602 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27603
27604         if test $ol_cv_errno_thread_specific != yes ||
27605            test $ol_cv_h_errno_thread_specific != yes ; then
27606                 LIBS="$LTHREAD_LIBS $LIBS"
27607                 LTHREAD_LIBS=""
27608         fi
27609
27610 fi
27611
27612 if test $ol_link_threads = no ; then
27613         if test $ol_with_threads = yes ; then
27614                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27615 echo "$as_me: error: no suitable thread support" >&2;}
27616    { (exit 1); exit 1; }; }
27617         fi
27618
27619         if test $ol_with_threads = auto ; then
27620                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27621 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27622                 ol_with_threads=no
27623         fi
27624
27625
27626 cat >>confdefs.h <<\_ACEOF
27627 #define NO_THREADS 1
27628 _ACEOF
27629
27630         LTHREAD_LIBS=""
27631         BUILD_THREAD=no
27632 else
27633         BUILD_THREAD=yes
27634 fi
27635
27636 if test $ol_link_threads != no ; then
27637
27638 cat >>confdefs.h <<\_ACEOF
27639 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27640 _ACEOF
27641
27642 fi
27643
27644
27645
27646
27647
27648
27649 for ac_func in \
27650         ctime_r                 \
27651         gmtime_r localtime_r \
27652         gethostbyname_r gethostbyaddr_r \
27653
27654 do
27655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27659   echo $ECHO_N "(cached) $ECHO_C" >&6
27660 else
27661   cat >conftest.$ac_ext <<_ACEOF
27662 /* confdefs.h.  */
27663 _ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h.  */
27667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27669 #define $ac_func innocuous_$ac_func
27670
27671 /* System header to define __stub macros and hopefully few prototypes,
27672     which can conflict with char $ac_func (); below.
27673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27674     <limits.h> exists even on freestanding compilers.  */
27675
27676 #ifdef __STDC__
27677 # include <limits.h>
27678 #else
27679 # include <assert.h>
27680 #endif
27681
27682 #undef $ac_func
27683
27684 /* Override any GCC internal prototype to avoid an error.
27685    Use char because int might match the return type of a GCC
27686    builtin and then its argument prototype would still apply.  */
27687 #ifdef __cplusplus
27688 extern "C"
27689 #endif
27690 char $ac_func ();
27691 /* The GNU C library defines this for functions which it implements
27692     to always fail with ENOSYS.  Some functions are actually named
27693     something starting with __ and the normal name is an alias.  */
27694 #if defined __stub_$ac_func || defined __stub___$ac_func
27695 choke me
27696 #endif
27697
27698 int
27699 main ()
27700 {
27701 return $ac_func ();
27702   ;
27703   return 0;
27704 }
27705 _ACEOF
27706 rm -f conftest.$ac_objext conftest$ac_exeext
27707 if { (ac_try="$ac_link"
27708 case "(($ac_try" in
27709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710   *) ac_try_echo=$ac_try;;
27711 esac
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713   (eval "$ac_link") 2>conftest.er1
27714   ac_status=$?
27715   grep -v '^ *+' conftest.er1 >conftest.err
27716   rm -f conftest.er1
27717   cat conftest.err >&5
27718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719   (exit $ac_status); } && {
27720          test -z "$ac_c_werror_flag" ||
27721          test ! -s conftest.err
27722        } && test -s conftest$ac_exeext &&
27723        $as_test_x conftest$ac_exeext; then
27724   eval "$as_ac_var=yes"
27725 else
27726   echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27728
27729         eval "$as_ac_var=no"
27730 fi
27731
27732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27733       conftest$ac_exeext conftest.$ac_ext
27734 fi
27735 ac_res=`eval echo '${'$as_ac_var'}'`
27736                { echo "$as_me:$LINENO: result: $ac_res" >&5
27737 echo "${ECHO_T}$ac_res" >&6; }
27738 if test `eval echo '${'$as_ac_var'}'` = yes; then
27739   cat >>confdefs.h <<_ACEOF
27740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27741 _ACEOF
27742
27743 fi
27744 done
27745
27746
27747 if test "$ac_cv_func_ctime_r" = no ; then
27748         ol_cv_func_ctime_r_nargs=0
27749 else
27750         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27751 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27752 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27753   echo $ECHO_N "(cached) $ECHO_C" >&6
27754 else
27755   cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h.  */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h.  */
27761 #include <time.h>
27762 int
27763 main ()
27764 {
27765 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27766   ;
27767   return 0;
27768 }
27769 _ACEOF
27770 rm -f conftest.$ac_objext
27771 if { (ac_try="$ac_compile"
27772 case "(($ac_try" in
27773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27774   *) ac_try_echo=$ac_try;;
27775 esac
27776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27777   (eval "$ac_compile") 2>conftest.er1
27778   ac_status=$?
27779   grep -v '^ *+' conftest.er1 >conftest.err
27780   rm -f conftest.er1
27781   cat conftest.err >&5
27782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); } && {
27784          test -z "$ac_c_werror_flag" ||
27785          test ! -s conftest.err
27786        } && test -s conftest.$ac_objext; then
27787   ol_cv_func_ctime_r_nargs3=yes
27788 else
27789   echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27791
27792         ol_cv_func_ctime_r_nargs3=no
27793 fi
27794
27795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27796
27797         cat >conftest.$ac_ext <<_ACEOF
27798 /* confdefs.h.  */
27799 _ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h.  */
27803 #include <time.h>
27804 int
27805 main ()
27806 {
27807 time_t ti; char *buffer; ctime_r(&ti,buffer);
27808   ;
27809   return 0;
27810 }
27811 _ACEOF
27812 rm -f conftest.$ac_objext
27813 if { (ac_try="$ac_compile"
27814 case "(($ac_try" in
27815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27816   *) ac_try_echo=$ac_try;;
27817 esac
27818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27819   (eval "$ac_compile") 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } && {
27826          test -z "$ac_c_werror_flag" ||
27827          test ! -s conftest.err
27828        } && test -s conftest.$ac_objext; then
27829   ol_cv_func_ctime_r_nargs2=yes
27830 else
27831   echo "$as_me: failed program was:" >&5
27832 sed 's/^/| /' conftest.$ac_ext >&5
27833
27834         ol_cv_func_ctime_r_nargs2=no
27835 fi
27836
27837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27838
27839         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27840            test $ol_cv_func_ctime_r_nargs2 = no ; then
27841
27842                 ol_cv_func_ctime_r_nargs=3
27843
27844         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27845              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27846
27847                 ol_cv_func_ctime_r_nargs=2
27848
27849         else
27850                 ol_cv_func_ctime_r_nargs=0
27851         fi
27852
27853 fi
27854 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27855 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27856
27857   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27858
27859 cat >>confdefs.h <<_ACEOF
27860 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27861 _ACEOF
27862
27863   fi
27864
27865 fi
27866
27867 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27868         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27869 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27870 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27871   echo $ECHO_N "(cached) $ECHO_C" >&6
27872 else
27873   cat >conftest.$ac_ext <<_ACEOF
27874 /* confdefs.h.  */
27875 _ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h.  */
27879 #include <sys/types.h>
27880 #include <sys/socket.h>
27881 #include <netinet/in.h>
27882 #include <netdb.h>
27883 #define BUFSIZE (sizeof(struct hostent)+10)
27884 int
27885 main ()
27886 {
27887 struct hostent hent; char buffer[BUFSIZE];
27888                 int bufsize=BUFSIZE;int h_errno;
27889                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27890                         buffer, bufsize, &h_errno);
27891   ;
27892   return 0;
27893 }
27894 _ACEOF
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_compile") 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } && {
27909          test -z "$ac_c_werror_flag" ||
27910          test ! -s conftest.err
27911        } && test -s conftest.$ac_objext; then
27912   ol_cv_func_gethostbyname_r_nargs5=yes
27913 else
27914   echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27916
27917         ol_cv_func_gethostbyname_r_nargs5=no
27918 fi
27919
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921
27922         cat >conftest.$ac_ext <<_ACEOF
27923 /* confdefs.h.  */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h.  */
27928 #include <sys/types.h>
27929 #include <sys/socket.h>
27930 #include <netinet/in.h>
27931 #include <netdb.h>
27932 #define BUFSIZE (sizeof(struct hostent)+10)
27933 int
27934 main ()
27935 {
27936 struct hostent hent;struct hostent *rhent;
27937                 char buffer[BUFSIZE];
27938                 int bufsize=BUFSIZE;int h_errno;
27939                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27940                         &rhent, &h_errno);
27941   ;
27942   return 0;
27943 }
27944 _ACEOF
27945 rm -f conftest.$ac_objext
27946 if { (ac_try="$ac_compile"
27947 case "(($ac_try" in
27948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949   *) ac_try_echo=$ac_try;;
27950 esac
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952   (eval "$ac_compile") 2>conftest.er1
27953   ac_status=$?
27954   grep -v '^ *+' conftest.er1 >conftest.err
27955   rm -f conftest.er1
27956   cat conftest.err >&5
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); } && {
27959          test -z "$ac_c_werror_flag" ||
27960          test ! -s conftest.err
27961        } && test -s conftest.$ac_objext; then
27962   ol_cv_func_gethostbyname_r_nargs6=yes
27963 else
27964   echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967         ol_cv_func_gethostbyname_r_nargs6=no
27968 fi
27969
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27971
27972         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27973            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27974
27975                 ol_cv_func_gethostbyname_r_nargs=5
27976
27977         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27978              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27979
27980                 ol_cv_func_gethostbyname_r_nargs=6
27981
27982         else
27983                 ol_cv_func_gethostbyname_r_nargs=0
27984         fi
27985
27986 fi
27987 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27988 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27989   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27990
27991 cat >>confdefs.h <<_ACEOF
27992 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27993 _ACEOF
27994
27995   fi
27996
27997 else
27998         ol_cv_func_gethostbyname_r_nargs=0
27999 fi
28000
28001 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28002         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28003 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
28004 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28005   echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007   cat >conftest.$ac_ext <<_ACEOF
28008 /* confdefs.h.  */
28009 _ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h.  */
28013 #include <sys/types.h>
28014 #include <sys/socket.h>
28015 #include <netinet/in.h>
28016 #include <netdb.h>
28017 #define BUFSIZE (sizeof(struct hostent)+10)
28018 int
28019 main ()
28020 {
28021 struct hostent hent; char buffer[BUFSIZE];
28022             struct in_addr add;
28023             size_t alen=sizeof(struct in_addr);
28024             int bufsize=BUFSIZE;int h_errno;
28025                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28026                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28027   ;
28028   return 0;
28029 }
28030 _ACEOF
28031 rm -f conftest.$ac_objext
28032 if { (ac_try="$ac_compile"
28033 case "(($ac_try" in
28034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28035   *) ac_try_echo=$ac_try;;
28036 esac
28037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28038   (eval "$ac_compile") 2>conftest.er1
28039   ac_status=$?
28040   grep -v '^ *+' conftest.er1 >conftest.err
28041   rm -f conftest.er1
28042   cat conftest.err >&5
28043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); } && {
28045          test -z "$ac_c_werror_flag" ||
28046          test ! -s conftest.err
28047        } && test -s conftest.$ac_objext; then
28048   ol_cv_func_gethostbyaddr_r_nargs7=yes
28049 else
28050   echo "$as_me: failed program was:" >&5
28051 sed 's/^/| /' conftest.$ac_ext >&5
28052
28053         ol_cv_func_gethostbyaddr_r_nargs7=no
28054 fi
28055
28056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28057
28058         cat >conftest.$ac_ext <<_ACEOF
28059 /* confdefs.h.  */
28060 _ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h.  */
28064 #include <sys/types.h>
28065 #include <sys/socket.h>
28066 #include <netinet/in.h>
28067 #include <netdb.h>
28068 #define BUFSIZE (sizeof(struct hostent)+10)
28069 int
28070 main ()
28071 {
28072 struct hostent hent;
28073                 struct hostent *rhent; char buffer[BUFSIZE];
28074                 struct in_addr add;
28075                 size_t alen=sizeof(struct in_addr);
28076                 int bufsize=BUFSIZE;int h_errno;
28077                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28078                         alen, AF_INET, &hent, buffer, bufsize,
28079                         &rhent, &h_errno);
28080   ;
28081   return 0;
28082 }
28083 _ACEOF
28084 rm -f conftest.$ac_objext
28085 if { (ac_try="$ac_compile"
28086 case "(($ac_try" in
28087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088   *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091   (eval "$ac_compile") 2>conftest.er1
28092   ac_status=$?
28093   grep -v '^ *+' conftest.er1 >conftest.err
28094   rm -f conftest.er1
28095   cat conftest.err >&5
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); } && {
28098          test -z "$ac_c_werror_flag" ||
28099          test ! -s conftest.err
28100        } && test -s conftest.$ac_objext; then
28101   ol_cv_func_gethostbyaddr_r_nargs8=yes
28102 else
28103   echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28105
28106         ol_cv_func_gethostbyaddr_r_nargs8=no
28107 fi
28108
28109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28110
28111         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28112            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28113
28114                 ol_cv_func_gethostbyaddr_r_nargs=7
28115
28116         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28117              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28118
28119                 ol_cv_func_gethostbyaddr_r_nargs=8
28120
28121         else
28122                 ol_cv_func_gethostbyaddr_r_nargs=0
28123         fi
28124
28125 fi
28126 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28127 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28128   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28129
28130 cat >>confdefs.h <<_ACEOF
28131 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28132 _ACEOF
28133
28134   fi
28135
28136 else
28137         ol_cv_func_gethostbyaddr_r_nargs=0
28138 fi
28139
28140 ol_link_bdb=no
28141
28142 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28143         ol_cv_berkeley_db=no
28144
28145 for ac_header in db.h
28146 do
28147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28149   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28152   echo $ECHO_N "(cached) $ECHO_C" >&6
28153 fi
28154 ac_res=`eval echo '${'$as_ac_Header'}'`
28155                { echo "$as_me:$LINENO: result: $ac_res" >&5
28156 echo "${ECHO_T}$ac_res" >&6; }
28157 else
28158   # Is the header compilable?
28159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28161 cat >conftest.$ac_ext <<_ACEOF
28162 /* confdefs.h.  */
28163 _ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h.  */
28167 $ac_includes_default
28168 #include <$ac_header>
28169 _ACEOF
28170 rm -f conftest.$ac_objext
28171 if { (ac_try="$ac_compile"
28172 case "(($ac_try" in
28173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174   *) ac_try_echo=$ac_try;;
28175 esac
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177   (eval "$ac_compile") 2>conftest.er1
28178   ac_status=$?
28179   grep -v '^ *+' conftest.er1 >conftest.err
28180   rm -f conftest.er1
28181   cat conftest.err >&5
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } && {
28184          test -z "$ac_c_werror_flag" ||
28185          test ! -s conftest.err
28186        } && test -s conftest.$ac_objext; then
28187   ac_header_compiler=yes
28188 else
28189   echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28191
28192         ac_header_compiler=no
28193 fi
28194
28195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28197 echo "${ECHO_T}$ac_header_compiler" >&6; }
28198
28199 # Is the header present?
28200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28202 cat >conftest.$ac_ext <<_ACEOF
28203 /* confdefs.h.  */
28204 _ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h.  */
28208 #include <$ac_header>
28209 _ACEOF
28210 if { (ac_try="$ac_cpp conftest.$ac_ext"
28211 case "(($ac_try" in
28212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213   *) ac_try_echo=$ac_try;;
28214 esac
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28217   ac_status=$?
28218   grep -v '^ *+' conftest.er1 >conftest.err
28219   rm -f conftest.er1
28220   cat conftest.err >&5
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); } >/dev/null && {
28223          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28224          test ! -s conftest.err
28225        }; then
28226   ac_header_preproc=yes
28227 else
28228   echo "$as_me: failed program was:" >&5
28229 sed 's/^/| /' conftest.$ac_ext >&5
28230
28231   ac_header_preproc=no
28232 fi
28233
28234 rm -f conftest.err conftest.$ac_ext
28235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28236 echo "${ECHO_T}$ac_header_preproc" >&6; }
28237
28238 # So?  What about this header?
28239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28240   yes:no: )
28241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28245     ac_header_preproc=yes
28246     ;;
28247   no:yes:* )
28248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28260     ( cat <<\_ASBOX
28261 ## --------------------------------------------- ##
28262 ## Report this to <http://www.openldap.org/its/> ##
28263 ## --------------------------------------------- ##
28264 _ASBOX
28265      ) | sed "s/^/$as_me: WARNING:     /" >&2
28266     ;;
28267 esac
28268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28271   echo $ECHO_N "(cached) $ECHO_C" >&6
28272 else
28273   eval "$as_ac_Header=\$ac_header_preproc"
28274 fi
28275 ac_res=`eval echo '${'$as_ac_Header'}'`
28276                { echo "$as_me:$LINENO: result: $ac_res" >&5
28277 echo "${ECHO_T}$ac_res" >&6; }
28278
28279 fi
28280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28281   cat >>confdefs.h <<_ACEOF
28282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28283 _ACEOF
28284
28285 fi
28286
28287 done
28288
28289 if test $ac_cv_header_db_h = yes; then
28290         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28291 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28292 if test "${ol_cv_bdb_major+set}" = set; then
28293   echo $ECHO_N "(cached) $ECHO_C" >&6
28294 else
28295
28296         cat >conftest.$ac_ext <<_ACEOF
28297
28298 #include <db.h>
28299 #ifndef DB_VERSION_MAJOR
28300 #       define DB_VERSION_MAJOR 1
28301 #endif
28302 __db_version DB_VERSION_MAJOR
28303
28304 _ACEOF
28305         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28306         ol_cv_bdb_major=${3}
28307
28308 fi
28309 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28310 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28311 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28312         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28313 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28314    { (exit 1); exit 1; }; } ;;
28315 esac
28316
28317 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28318 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28319 if test "${ol_cv_bdb_minor+set}" = set; then
28320   echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28322
28323         cat >conftest.$ac_ext <<_ACEOF
28324
28325 #include <db.h>
28326 #ifndef DB_VERSION_MINOR
28327 #       define DB_VERSION_MINOR 0
28328 #endif
28329 __db_version DB_VERSION_MINOR
28330
28331 _ACEOF
28332         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28333         ol_cv_bdb_minor=${3}
28334
28335 fi
28336 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28337 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28338 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28339         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28340 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28341    { (exit 1); exit 1; }; } ;;
28342 esac
28343
28344         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28345 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28346 if test "${ol_cv_bdb_compat+set}" = set; then
28347   echo $ECHO_N "(cached) $ECHO_C" >&6
28348 else
28349
28350         cat >conftest.$ac_ext <<_ACEOF
28351 /* confdefs.h.  */
28352 _ACEOF
28353 cat confdefs.h >>conftest.$ac_ext
28354 cat >>conftest.$ac_ext <<_ACEOF
28355 /* end confdefs.h.  */
28356
28357 #include <db.h>
28358
28359  /* this check could be improved */
28360 #ifndef DB_VERSION_MAJOR
28361 #       define DB_VERSION_MAJOR 1
28362 #endif
28363 #ifndef DB_VERSION_MINOR
28364 #       define DB_VERSION_MINOR 0
28365 #endif
28366
28367 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28368
28369 /* require 4.4 or later */
28370 #if DB_VERSION_MM >= 0x0404
28371         __db_version_compat
28372 #endif
28373
28374 _ACEOF
28375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28376   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28377   ol_cv_bdb_compat=yes
28378 else
28379   ol_cv_bdb_compat=no
28380 fi
28381 rm -f conftest*
28382
28383 fi
28384 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28385 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28386
28387
28388         if test $ol_cv_bdb_compat != yes ; then
28389                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28390 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28391    { (exit 1); exit 1; }; }
28392         fi
28393
28394         ol_cv_lib_db=no
28395
28396 if test $ol_cv_bdb_major = 4 ; then
28397         if test $ol_cv_lib_db = no ; then
28398         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28399 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28400 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28401   echo $ECHO_N "(cached) $ECHO_C" >&6
28402 else
28403
28404         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28405         ol_LIBS=$LIBS
28406         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28407
28408         cat >conftest.$ac_ext <<_ACEOF
28409 /* confdefs.h.  */
28410 _ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h.  */
28414
28415 #ifdef HAVE_DB_185_H
28416 # include <db_185.h>
28417 #else
28418 # include <db.h>
28419 #endif
28420
28421 #ifndef DB_VERSION_MAJOR
28422 # define DB_VERSION_MAJOR 1
28423 #endif
28424
28425 #ifndef NULL
28426 #define NULL ((void*)0)
28427 #endif
28428
28429 int
28430 main ()
28431 {
28432
28433 #if DB_VERSION_MAJOR > 2
28434         db_env_create( NULL, 0 );
28435 #elif DB_VERSION_MAJOR > 1
28436         db_appexit( NULL );
28437 #else
28438         (void) dbopen( NULL, 0, 0, 0, NULL);
28439 #endif
28440
28441   ;
28442   return 0;
28443 }
28444 _ACEOF
28445 rm -f conftest.$ac_objext conftest$ac_exeext
28446 if { (ac_try="$ac_link"
28447 case "(($ac_try" in
28448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28449   *) ac_try_echo=$ac_try;;
28450 esac
28451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28452   (eval "$ac_link") 2>conftest.er1
28453   ac_status=$?
28454   grep -v '^ *+' conftest.er1 >conftest.err
28455   rm -f conftest.er1
28456   cat conftest.err >&5
28457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458   (exit $ac_status); } && {
28459          test -z "$ac_c_werror_flag" ||
28460          test ! -s conftest.err
28461        } && test -s conftest$ac_exeext &&
28462        $as_test_x conftest$ac_exeext; then
28463   ol_cv_db_db_4_dot_m=yes
28464 else
28465   echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28467
28468         ol_cv_db_db_4_dot_m=no
28469 fi
28470
28471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28472       conftest$ac_exeext conftest.$ac_ext
28473
28474         LIBS="$ol_LIBS"
28475
28476 fi
28477 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28478 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28479
28480         if test $ol_cv_db_db_4_dot_m = yes ; then
28481                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28482         fi
28483 fi
28484
28485         if test $ol_cv_lib_db = no ; then
28486         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28487 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28488 if test "${ol_cv_db_db4m+set}" = set; then
28489   echo $ECHO_N "(cached) $ECHO_C" >&6
28490 else
28491
28492         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28493         ol_LIBS=$LIBS
28494         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28495
28496         cat >conftest.$ac_ext <<_ACEOF
28497 /* confdefs.h.  */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h.  */
28502
28503 #ifdef HAVE_DB_185_H
28504 # include <db_185.h>
28505 #else
28506 # include <db.h>
28507 #endif
28508
28509 #ifndef DB_VERSION_MAJOR
28510 # define DB_VERSION_MAJOR 1
28511 #endif
28512
28513 #ifndef NULL
28514 #define NULL ((void*)0)
28515 #endif
28516
28517 int
28518 main ()
28519 {
28520
28521 #if DB_VERSION_MAJOR > 2
28522         db_env_create( NULL, 0 );
28523 #elif DB_VERSION_MAJOR > 1
28524         db_appexit( NULL );
28525 #else
28526         (void) dbopen( NULL, 0, 0, 0, NULL);
28527 #endif
28528
28529   ;
28530   return 0;
28531 }
28532 _ACEOF
28533 rm -f conftest.$ac_objext conftest$ac_exeext
28534 if { (ac_try="$ac_link"
28535 case "(($ac_try" in
28536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537   *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540   (eval "$ac_link") 2>conftest.er1
28541   ac_status=$?
28542   grep -v '^ *+' conftest.er1 >conftest.err
28543   rm -f conftest.er1
28544   cat conftest.err >&5
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); } && {
28547          test -z "$ac_c_werror_flag" ||
28548          test ! -s conftest.err
28549        } && test -s conftest$ac_exeext &&
28550        $as_test_x conftest$ac_exeext; then
28551   ol_cv_db_db4m=yes
28552 else
28553   echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28555
28556         ol_cv_db_db4m=no
28557 fi
28558
28559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28560       conftest$ac_exeext conftest.$ac_ext
28561
28562         LIBS="$ol_LIBS"
28563
28564 fi
28565 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28566 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28567
28568         if test $ol_cv_db_db4m = yes ; then
28569                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28570         fi
28571 fi
28572
28573         if test $ol_cv_lib_db = no ; then
28574         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28575 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28576 if test "${ol_cv_db_db_4m+set}" = set; then
28577   echo $ECHO_N "(cached) $ECHO_C" >&6
28578 else
28579
28580         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28581         ol_LIBS=$LIBS
28582         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28583
28584         cat >conftest.$ac_ext <<_ACEOF
28585 /* confdefs.h.  */
28586 _ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h.  */
28590
28591 #ifdef HAVE_DB_185_H
28592 # include <db_185.h>
28593 #else
28594 # include <db.h>
28595 #endif
28596
28597 #ifndef DB_VERSION_MAJOR
28598 # define DB_VERSION_MAJOR 1
28599 #endif
28600
28601 #ifndef NULL
28602 #define NULL ((void*)0)
28603 #endif
28604
28605 int
28606 main ()
28607 {
28608
28609 #if DB_VERSION_MAJOR > 2
28610         db_env_create( NULL, 0 );
28611 #elif DB_VERSION_MAJOR > 1
28612         db_appexit( NULL );
28613 #else
28614         (void) dbopen( NULL, 0, 0, 0, NULL);
28615 #endif
28616
28617   ;
28618   return 0;
28619 }
28620 _ACEOF
28621 rm -f conftest.$ac_objext conftest$ac_exeext
28622 if { (ac_try="$ac_link"
28623 case "(($ac_try" in
28624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625   *) ac_try_echo=$ac_try;;
28626 esac
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628   (eval "$ac_link") 2>conftest.er1
28629   ac_status=$?
28630   grep -v '^ *+' conftest.er1 >conftest.err
28631   rm -f conftest.er1
28632   cat conftest.err >&5
28633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); } && {
28635          test -z "$ac_c_werror_flag" ||
28636          test ! -s conftest.err
28637        } && test -s conftest$ac_exeext &&
28638        $as_test_x conftest$ac_exeext; then
28639   ol_cv_db_db_4m=yes
28640 else
28641   echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28643
28644         ol_cv_db_db_4m=no
28645 fi
28646
28647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28648       conftest$ac_exeext conftest.$ac_ext
28649
28650         LIBS="$ol_LIBS"
28651
28652 fi
28653 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28654 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28655
28656         if test $ol_cv_db_db_4m = yes ; then
28657                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28658         fi
28659 fi
28660
28661         if test $ol_cv_lib_db = no ; then
28662         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28663 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28664 if test "${ol_cv_db_db_4_m+set}" = set; then
28665   echo $ECHO_N "(cached) $ECHO_C" >&6
28666 else
28667
28668         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28669         ol_LIBS=$LIBS
28670         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28671
28672         cat >conftest.$ac_ext <<_ACEOF
28673 /* confdefs.h.  */
28674 _ACEOF
28675 cat confdefs.h >>conftest.$ac_ext
28676 cat >>conftest.$ac_ext <<_ACEOF
28677 /* end confdefs.h.  */
28678
28679 #ifdef HAVE_DB_185_H
28680 # include <db_185.h>
28681 #else
28682 # include <db.h>
28683 #endif
28684
28685 #ifndef DB_VERSION_MAJOR
28686 # define DB_VERSION_MAJOR 1
28687 #endif
28688
28689 #ifndef NULL
28690 #define NULL ((void*)0)
28691 #endif
28692
28693 int
28694 main ()
28695 {
28696
28697 #if DB_VERSION_MAJOR > 2
28698         db_env_create( NULL, 0 );
28699 #elif DB_VERSION_MAJOR > 1
28700         db_appexit( NULL );
28701 #else
28702         (void) dbopen( NULL, 0, 0, 0, NULL);
28703 #endif
28704
28705   ;
28706   return 0;
28707 }
28708 _ACEOF
28709 rm -f conftest.$ac_objext conftest$ac_exeext
28710 if { (ac_try="$ac_link"
28711 case "(($ac_try" in
28712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713   *) ac_try_echo=$ac_try;;
28714 esac
28715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716   (eval "$ac_link") 2>conftest.er1
28717   ac_status=$?
28718   grep -v '^ *+' conftest.er1 >conftest.err
28719   rm -f conftest.er1
28720   cat conftest.err >&5
28721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722   (exit $ac_status); } && {
28723          test -z "$ac_c_werror_flag" ||
28724          test ! -s conftest.err
28725        } && test -s conftest$ac_exeext &&
28726        $as_test_x conftest$ac_exeext; then
28727   ol_cv_db_db_4_m=yes
28728 else
28729   echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28731
28732         ol_cv_db_db_4_m=no
28733 fi
28734
28735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28736       conftest$ac_exeext conftest.$ac_ext
28737
28738         LIBS="$ol_LIBS"
28739
28740 fi
28741 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28742 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28743
28744         if test $ol_cv_db_db_4_m = yes ; then
28745                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28746         fi
28747 fi
28748
28749         if test $ol_cv_lib_db = no ; then
28750         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28751 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28752 if test "${ol_cv_db_db_4+set}" = set; then
28753   echo $ECHO_N "(cached) $ECHO_C" >&6
28754 else
28755
28756         ol_DB_LIB=-ldb-4
28757         ol_LIBS=$LIBS
28758         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28759
28760         cat >conftest.$ac_ext <<_ACEOF
28761 /* confdefs.h.  */
28762 _ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h.  */
28766
28767 #ifdef HAVE_DB_185_H
28768 # include <db_185.h>
28769 #else
28770 # include <db.h>
28771 #endif
28772
28773 #ifndef DB_VERSION_MAJOR
28774 # define DB_VERSION_MAJOR 1
28775 #endif
28776
28777 #ifndef NULL
28778 #define NULL ((void*)0)
28779 #endif
28780
28781 int
28782 main ()
28783 {
28784
28785 #if DB_VERSION_MAJOR > 2
28786         db_env_create( NULL, 0 );
28787 #elif DB_VERSION_MAJOR > 1
28788         db_appexit( NULL );
28789 #else
28790         (void) dbopen( NULL, 0, 0, 0, NULL);
28791 #endif
28792
28793   ;
28794   return 0;
28795 }
28796 _ACEOF
28797 rm -f conftest.$ac_objext conftest$ac_exeext
28798 if { (ac_try="$ac_link"
28799 case "(($ac_try" in
28800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801   *) ac_try_echo=$ac_try;;
28802 esac
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804   (eval "$ac_link") 2>conftest.er1
28805   ac_status=$?
28806   grep -v '^ *+' conftest.er1 >conftest.err
28807   rm -f conftest.er1
28808   cat conftest.err >&5
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); } && {
28811          test -z "$ac_c_werror_flag" ||
28812          test ! -s conftest.err
28813        } && test -s conftest$ac_exeext &&
28814        $as_test_x conftest$ac_exeext; then
28815   ol_cv_db_db_4=yes
28816 else
28817   echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28819
28820         ol_cv_db_db_4=no
28821 fi
28822
28823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28824       conftest$ac_exeext conftest.$ac_ext
28825
28826         LIBS="$ol_LIBS"
28827
28828 fi
28829 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28830 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28831
28832         if test $ol_cv_db_db_4 = yes ; then
28833                 ol_cv_lib_db=-ldb-4
28834         fi
28835 fi
28836
28837         if test $ol_cv_lib_db = no ; then
28838         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28839 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28840 if test "${ol_cv_db_db4+set}" = set; then
28841   echo $ECHO_N "(cached) $ECHO_C" >&6
28842 else
28843
28844         ol_DB_LIB=-ldb4
28845         ol_LIBS=$LIBS
28846         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28847
28848         cat >conftest.$ac_ext <<_ACEOF
28849 /* confdefs.h.  */
28850 _ACEOF
28851 cat confdefs.h >>conftest.$ac_ext
28852 cat >>conftest.$ac_ext <<_ACEOF
28853 /* end confdefs.h.  */
28854
28855 #ifdef HAVE_DB_185_H
28856 # include <db_185.h>
28857 #else
28858 # include <db.h>
28859 #endif
28860
28861 #ifndef DB_VERSION_MAJOR
28862 # define DB_VERSION_MAJOR 1
28863 #endif
28864
28865 #ifndef NULL
28866 #define NULL ((void*)0)
28867 #endif
28868
28869 int
28870 main ()
28871 {
28872
28873 #if DB_VERSION_MAJOR > 2
28874         db_env_create( NULL, 0 );
28875 #elif DB_VERSION_MAJOR > 1
28876         db_appexit( NULL );
28877 #else
28878         (void) dbopen( NULL, 0, 0, 0, NULL);
28879 #endif
28880
28881   ;
28882   return 0;
28883 }
28884 _ACEOF
28885 rm -f conftest.$ac_objext conftest$ac_exeext
28886 if { (ac_try="$ac_link"
28887 case "(($ac_try" in
28888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889   *) ac_try_echo=$ac_try;;
28890 esac
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892   (eval "$ac_link") 2>conftest.er1
28893   ac_status=$?
28894   grep -v '^ *+' conftest.er1 >conftest.err
28895   rm -f conftest.er1
28896   cat conftest.err >&5
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); } && {
28899          test -z "$ac_c_werror_flag" ||
28900          test ! -s conftest.err
28901        } && test -s conftest$ac_exeext &&
28902        $as_test_x conftest$ac_exeext; then
28903   ol_cv_db_db4=yes
28904 else
28905   echo "$as_me: failed program was:" >&5
28906 sed 's/^/| /' conftest.$ac_ext >&5
28907
28908         ol_cv_db_db4=no
28909 fi
28910
28911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28912       conftest$ac_exeext conftest.$ac_ext
28913
28914         LIBS="$ol_LIBS"
28915
28916 fi
28917 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28918 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28919
28920         if test $ol_cv_db_db4 = yes ; then
28921                 ol_cv_lib_db=-ldb4
28922         fi
28923 fi
28924
28925         if test $ol_cv_lib_db = no ; then
28926         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28927 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28928 if test "${ol_cv_db_db+set}" = set; then
28929   echo $ECHO_N "(cached) $ECHO_C" >&6
28930 else
28931
28932         ol_DB_LIB=-ldb
28933         ol_LIBS=$LIBS
28934         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28935
28936         cat >conftest.$ac_ext <<_ACEOF
28937 /* confdefs.h.  */
28938 _ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h.  */
28942
28943 #ifdef HAVE_DB_185_H
28944 # include <db_185.h>
28945 #else
28946 # include <db.h>
28947 #endif
28948
28949 #ifndef DB_VERSION_MAJOR
28950 # define DB_VERSION_MAJOR 1
28951 #endif
28952
28953 #ifndef NULL
28954 #define NULL ((void*)0)
28955 #endif
28956
28957 int
28958 main ()
28959 {
28960
28961 #if DB_VERSION_MAJOR > 2
28962         db_env_create( NULL, 0 );
28963 #elif DB_VERSION_MAJOR > 1
28964         db_appexit( NULL );
28965 #else
28966         (void) dbopen( NULL, 0, 0, 0, NULL);
28967 #endif
28968
28969   ;
28970   return 0;
28971 }
28972 _ACEOF
28973 rm -f conftest.$ac_objext conftest$ac_exeext
28974 if { (ac_try="$ac_link"
28975 case "(($ac_try" in
28976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977   *) ac_try_echo=$ac_try;;
28978 esac
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980   (eval "$ac_link") 2>conftest.er1
28981   ac_status=$?
28982   grep -v '^ *+' conftest.er1 >conftest.err
28983   rm -f conftest.er1
28984   cat conftest.err >&5
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); } && {
28987          test -z "$ac_c_werror_flag" ||
28988          test ! -s conftest.err
28989        } && test -s conftest$ac_exeext &&
28990        $as_test_x conftest$ac_exeext; then
28991   ol_cv_db_db=yes
28992 else
28993   echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28995
28996         ol_cv_db_db=no
28997 fi
28998
28999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29000       conftest$ac_exeext conftest.$ac_ext
29001
29002         LIBS="$ol_LIBS"
29003
29004 fi
29005 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29006 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29007
29008         if test $ol_cv_db_db = yes ; then
29009                 ol_cv_lib_db=-ldb
29010         fi
29011 fi
29012
29013 fi
29014 if test $ol_cv_lib_db = no ; then
29015         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29016 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29017 if test "${ol_cv_db_none+set}" = set; then
29018   echo $ECHO_N "(cached) $ECHO_C" >&6
29019 else
29020
29021         ol_DB_LIB=
29022         ol_LIBS=$LIBS
29023         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29024
29025         cat >conftest.$ac_ext <<_ACEOF
29026 /* confdefs.h.  */
29027 _ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h.  */
29031
29032 #ifdef HAVE_DB_185_H
29033 # include <db_185.h>
29034 #else
29035 # include <db.h>
29036 #endif
29037
29038 #ifndef DB_VERSION_MAJOR
29039 # define DB_VERSION_MAJOR 1
29040 #endif
29041
29042 #ifndef NULL
29043 #define NULL ((void*)0)
29044 #endif
29045
29046 int
29047 main ()
29048 {
29049
29050 #if DB_VERSION_MAJOR > 2
29051         db_env_create( NULL, 0 );
29052 #elif DB_VERSION_MAJOR > 1
29053         db_appexit( NULL );
29054 #else
29055         (void) dbopen( NULL, 0, 0, 0, NULL);
29056 #endif
29057
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 rm -f conftest.$ac_objext conftest$ac_exeext
29063 if { (ac_try="$ac_link"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069   (eval "$ac_link") 2>conftest.er1
29070   ac_status=$?
29071   grep -v '^ *+' conftest.er1 >conftest.err
29072   rm -f conftest.er1
29073   cat conftest.err >&5
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } && {
29076          test -z "$ac_c_werror_flag" ||
29077          test ! -s conftest.err
29078        } && test -s conftest$ac_exeext &&
29079        $as_test_x conftest$ac_exeext; then
29080   ol_cv_db_none=yes
29081 else
29082   echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29084
29085         ol_cv_db_none=no
29086 fi
29087
29088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29089       conftest$ac_exeext conftest.$ac_ext
29090
29091         LIBS="$ol_LIBS"
29092
29093 fi
29094 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29095 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29096
29097         if test $ol_cv_db_none = yes ; then
29098                 ol_cv_lib_db=yes
29099         fi
29100 fi
29101
29102
29103         if test "$ol_cv_lib_db" != no ; then
29104                 ol_cv_berkeley_db=yes
29105                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29106 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29107 if test "${ol_cv_berkeley_db_version+set}" = set; then
29108   echo $ECHO_N "(cached) $ECHO_C" >&6
29109 else
29110
29111         ol_LIBS="$LIBS"
29112         LIBS="$LTHREAD_LIBS $LIBS"
29113         if test $ol_cv_lib_db != yes ; then
29114                 LIBS="$ol_cv_lib_db $LIBS"
29115         fi
29116
29117         if test "$cross_compiling" = yes; then
29118   ol_cv_berkeley_db_version=cross
29119 else
29120   cat >conftest.$ac_ext <<_ACEOF
29121 /* confdefs.h.  */
29122 _ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h.  */
29126
29127 #ifdef HAVE_DB_185_H
29128         choke me;
29129 #else
29130 #include <db.h>
29131 #endif
29132 #ifndef DB_VERSION_MAJOR
29133 # define DB_VERSION_MAJOR 1
29134 #endif
29135 #ifndef NULL
29136 #define NULL ((void *)0)
29137 #endif
29138 main()
29139 {
29140 #if DB_VERSION_MAJOR > 1
29141         char *version;
29142         int major, minor, patch;
29143
29144         version = db_version( &major, &minor, &patch );
29145
29146         if( major != DB_VERSION_MAJOR ||
29147                 minor != DB_VERSION_MINOR ||
29148                 patch != DB_VERSION_PATCH )
29149         {
29150                 printf("Berkeley DB version mismatch\n"
29151                         "\theader: %s\n\tlibrary: %s\n",
29152                         DB_VERSION_STRING, version);
29153                 return 1;
29154         }
29155 #endif
29156
29157         return 0;
29158 }
29159 _ACEOF
29160 rm -f conftest$ac_exeext
29161 if { (ac_try="$ac_link"
29162 case "(($ac_try" in
29163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164   *) ac_try_echo=$ac_try;;
29165 esac
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167   (eval "$ac_link") 2>&5
29168   ac_status=$?
29169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29171   { (case "(($ac_try" in
29172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173   *) ac_try_echo=$ac_try;;
29174 esac
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176   (eval "$ac_try") 2>&5
29177   ac_status=$?
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); }; }; then
29180   ol_cv_berkeley_db_version=yes
29181 else
29182   echo "$as_me: program exited with status $ac_status" >&5
29183 echo "$as_me: failed program was:" >&5
29184 sed 's/^/| /' conftest.$ac_ext >&5
29185
29186 ( exit $ac_status )
29187 ol_cv_berkeley_db_version=no
29188 fi
29189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29190 fi
29191
29192
29193
29194         LIBS="$ol_LIBS"
29195
29196 fi
29197 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29198 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29199
29200         if test $ol_cv_berkeley_db_version = no ; then
29201                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29202 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29203    { (exit 1); exit 1; }; }
29204         fi
29205
29206                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29207 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29208 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29209   echo $ECHO_N "(cached) $ECHO_C" >&6
29210 else
29211
29212         ol_LIBS="$LIBS"
29213         LIBS="$LTHREAD_LIBS $LIBS"
29214         if test $ol_cv_lib_db != yes ; then
29215                 LIBS="$ol_cv_lib_db $LIBS"
29216         fi
29217
29218         if test "$cross_compiling" = yes; then
29219   ol_cv_berkeley_db_thread=cross
29220 else
29221   cat >conftest.$ac_ext <<_ACEOF
29222 /* confdefs.h.  */
29223 _ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h.  */
29227
29228 #ifdef HAVE_DB_185_H
29229         choke me;
29230 #else
29231 #include <db.h>
29232 #endif
29233 #ifndef NULL
29234 #define NULL ((void *)0)
29235 #endif
29236 main()
29237 {
29238         int rc;
29239         u_int32_t flags = DB_CREATE |
29240 #ifdef DB_PRIVATE
29241                 DB_PRIVATE |
29242 #endif
29243                 DB_THREAD;
29244
29245 #if DB_VERSION_MAJOR > 2
29246         DB_ENV *env = NULL;
29247
29248         rc = db_env_create( &env, 0 );
29249
29250         flags |= DB_INIT_MPOOL;
29251 #ifdef DB_MPOOL_PRIVATE
29252         flags |= DB_MPOOL_PRIVATE;
29253 #endif
29254
29255         if( rc ) {
29256                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29257                 return rc;
29258         }
29259
29260 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29261         rc = (env->open)( env, NULL, flags, 0 );
29262 #else
29263         rc = (env->open)( env, NULL, NULL, flags, 0 );
29264 #endif
29265
29266         if ( rc == 0 ) {
29267                 rc = env->close( env, 0 );
29268         }
29269
29270         if( rc ) {
29271                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29272                 return rc;
29273         }
29274
29275 #else
29276         DB_ENV env;
29277         memset( &env, '\0', sizeof(env) );
29278
29279         rc = db_appinit( NULL, NULL, &env, flags );
29280
29281         if( rc == 0 ) {
29282                 db_appexit( &env );
29283         }
29284
29285         unlink("__db_mpool.share");
29286         unlink("__db_lock.share");
29287 #endif
29288
29289         return rc;
29290 }
29291 _ACEOF
29292 rm -f conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296   *) ac_try_echo=$ac_try;;
29297 esac
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299   (eval "$ac_link") 2>&5
29300   ac_status=$?
29301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29303   { (case "(($ac_try" in
29304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305   *) ac_try_echo=$ac_try;;
29306 esac
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308   (eval "$ac_try") 2>&5
29309   ac_status=$?
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); }; }; then
29312   ol_cv_berkeley_db_thread=yes
29313 else
29314   echo "$as_me: program exited with status $ac_status" >&5
29315 echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318 ( exit $ac_status )
29319 ol_cv_berkeley_db_thread=no
29320 fi
29321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29322 fi
29323
29324
29325
29326         LIBS="$ol_LIBS"
29327
29328 fi
29329 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29330 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29331
29332         if test $ol_cv_berkeley_db_thread != no ; then
29333
29334 cat >>confdefs.h <<\_ACEOF
29335 #define HAVE_BERKELEY_DB_THREAD 1
29336 _ACEOF
29337
29338         fi
29339
29340         fi
29341 fi
29342
29343
29344         if test $ol_cv_berkeley_db = no ; then
29345                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29346 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29347    { (exit 1); exit 1; }; }
29348         fi
29349
29350
29351 cat >>confdefs.h <<\_ACEOF
29352 #define HAVE_BERKELEY_DB 1
29353 _ACEOF
29354
29355
29356                         if test $ol_cv_lib_db != yes ; then
29357                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29358         fi
29359
29360         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29361
29362         ol_link_bdb=yes
29363 fi
29364
29365
29366 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29367         BUILD_LIBS_DYNAMIC=shared
29368
29369 cat >>confdefs.h <<\_ACEOF
29370 #define LDAP_LIBS_DYNAMIC 1
29371 _ACEOF
29372
29373         LTSTATIC=""
29374 else
29375         BUILD_LIBS_DYNAMIC=static
29376         LTSTATIC="-static"
29377 fi
29378
29379 if test $ol_enable_wrappers != no ; then
29380
29381 for ac_header in tcpd.h
29382 do
29383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29385   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388   echo $ECHO_N "(cached) $ECHO_C" >&6
29389 fi
29390 ac_res=`eval echo '${'$as_ac_Header'}'`
29391                { echo "$as_me:$LINENO: result: $ac_res" >&5
29392 echo "${ECHO_T}$ac_res" >&6; }
29393 else
29394   # Is the header compilable?
29395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29397 cat >conftest.$ac_ext <<_ACEOF
29398 /* confdefs.h.  */
29399 _ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h.  */
29403 $ac_includes_default
29404 #include <$ac_header>
29405 _ACEOF
29406 rm -f conftest.$ac_objext
29407 if { (ac_try="$ac_compile"
29408 case "(($ac_try" in
29409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410   *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413   (eval "$ac_compile") 2>conftest.er1
29414   ac_status=$?
29415   grep -v '^ *+' conftest.er1 >conftest.err
29416   rm -f conftest.er1
29417   cat conftest.err >&5
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); } && {
29420          test -z "$ac_c_werror_flag" ||
29421          test ! -s conftest.err
29422        } && test -s conftest.$ac_objext; then
29423   ac_header_compiler=yes
29424 else
29425   echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29427
29428         ac_header_compiler=no
29429 fi
29430
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29433 echo "${ECHO_T}$ac_header_compiler" >&6; }
29434
29435 # Is the header present?
29436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29438 cat >conftest.$ac_ext <<_ACEOF
29439 /* confdefs.h.  */
29440 _ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h.  */
29444 #include <$ac_header>
29445 _ACEOF
29446 if { (ac_try="$ac_cpp conftest.$ac_ext"
29447 case "(($ac_try" in
29448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449   *) ac_try_echo=$ac_try;;
29450 esac
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29453   ac_status=$?
29454   grep -v '^ *+' conftest.er1 >conftest.err
29455   rm -f conftest.er1
29456   cat conftest.err >&5
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); } >/dev/null && {
29459          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29460          test ! -s conftest.err
29461        }; then
29462   ac_header_preproc=yes
29463 else
29464   echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29466
29467   ac_header_preproc=no
29468 fi
29469
29470 rm -f conftest.err conftest.$ac_ext
29471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29472 echo "${ECHO_T}$ac_header_preproc" >&6; }
29473
29474 # So?  What about this header?
29475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29476   yes:no: )
29477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29481     ac_header_preproc=yes
29482     ;;
29483   no:yes:* )
29484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29496     ( cat <<\_ASBOX
29497 ## --------------------------------------------- ##
29498 ## Report this to <http://www.openldap.org/its/> ##
29499 ## --------------------------------------------- ##
29500 _ASBOX
29501      ) | sed "s/^/$as_me: WARNING:     /" >&2
29502     ;;
29503 esac
29504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29507   echo $ECHO_N "(cached) $ECHO_C" >&6
29508 else
29509   eval "$as_ac_Header=\$ac_header_preproc"
29510 fi
29511 ac_res=`eval echo '${'$as_ac_Header'}'`
29512                { echo "$as_me:$LINENO: result: $ac_res" >&5
29513 echo "${ECHO_T}$ac_res" >&6; }
29514
29515 fi
29516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29517   cat >>confdefs.h <<_ACEOF
29518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29519 _ACEOF
29520
29521                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29522 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29523                 save_LIBS="$LIBS"
29524                 LIBS="$LIBS -lwrap"
29525                 cat >conftest.$ac_ext <<_ACEOF
29526 /* confdefs.h.  */
29527 _ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h.  */
29531
29532 #include <tcpd.h>
29533 int allow_severity = 0;
29534 int deny_severity  = 0;
29535
29536 struct request_info *req;
29537
29538 int
29539 main ()
29540 {
29541
29542 hosts_access(req)
29543
29544   ;
29545   return 0;
29546 }
29547 _ACEOF
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (ac_try="$ac_link"
29550 case "(($ac_try" in
29551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552   *) ac_try_echo=$ac_try;;
29553 esac
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555   (eval "$ac_link") 2>conftest.er1
29556   ac_status=$?
29557   grep -v '^ *+' conftest.er1 >conftest.err
29558   rm -f conftest.er1
29559   cat conftest.err >&5
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); } && {
29562          test -z "$ac_c_werror_flag" ||
29563          test ! -s conftest.err
29564        } && test -s conftest$ac_exeext &&
29565        $as_test_x conftest$ac_exeext; then
29566   { echo "$as_me:$LINENO: result: -lwrap" >&5
29567 echo "${ECHO_T}-lwrap" >&6; }
29568                 have_wrappers=yes
29569                 LIBS="$save_LIBS"
29570 else
29571   echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29573
29574
29575                                 LIBS="$LIBS -lnsl"
29576                 cat >conftest.$ac_ext <<_ACEOF
29577 /* confdefs.h.  */
29578 _ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h.  */
29582
29583 #include <tcpd.h>
29584 int allow_severity = 0;
29585 int deny_severity  = 0;
29586
29587 struct request_info *req;
29588
29589 int
29590 main ()
29591 {
29592
29593 hosts_access(req)
29594
29595   ;
29596   return 0;
29597 }
29598 _ACEOF
29599 rm -f conftest.$ac_objext conftest$ac_exeext
29600 if { (ac_try="$ac_link"
29601 case "(($ac_try" in
29602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603   *) ac_try_echo=$ac_try;;
29604 esac
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606   (eval "$ac_link") 2>conftest.er1
29607   ac_status=$?
29608   grep -v '^ *+' conftest.er1 >conftest.err
29609   rm -f conftest.er1
29610   cat conftest.err >&5
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); } && {
29613          test -z "$ac_c_werror_flag" ||
29614          test ! -s conftest.err
29615        } && test -s conftest$ac_exeext &&
29616        $as_test_x conftest$ac_exeext; then
29617   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29618 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29619                 have_wrappers=yes
29620                 LIBS="$save_LIBS -lnsl"
29621 else
29622   echo "$as_me: failed program was:" >&5
29623 sed 's/^/| /' conftest.$ac_ext >&5
29624
29625
29626                 { echo "$as_me:$LINENO: result: no" >&5
29627 echo "${ECHO_T}no" >&6; }
29628                 have_wrappers=no
29629                 LIBS=$save_LIBS
29630 fi
29631
29632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29633       conftest$ac_exeext conftest.$ac_ext
29634 fi
29635
29636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29637       conftest$ac_exeext conftest.$ac_ext
29638 else
29639   have_wrappers=no
29640 fi
29641
29642 done
29643
29644
29645         if test $have_wrappers = yes ; then
29646
29647 cat >>confdefs.h <<\_ACEOF
29648 #define HAVE_TCPD 1
29649 _ACEOF
29650
29651                 WRAP_LIBS="-lwrap"
29652         elif test $ol_enable_wrappers = yes ; then
29653                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29654 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29655    { (exit 1); exit 1; }; }
29656         else
29657                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29658 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29659                 WRAP_LIBS=""
29660         fi
29661 fi
29662
29663 if test $ol_enable_syslog != no ; then
29664         { echo "$as_me:$LINENO: checking for openlog" >&5
29665 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29666 if test "${ac_cv_func_openlog+set}" = set; then
29667   echo $ECHO_N "(cached) $ECHO_C" >&6
29668 else
29669   cat >conftest.$ac_ext <<_ACEOF
29670 /* confdefs.h.  */
29671 _ACEOF
29672 cat confdefs.h >>conftest.$ac_ext
29673 cat >>conftest.$ac_ext <<_ACEOF
29674 /* end confdefs.h.  */
29675 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29677 #define openlog innocuous_openlog
29678
29679 /* System header to define __stub macros and hopefully few prototypes,
29680     which can conflict with char openlog (); below.
29681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29682     <limits.h> exists even on freestanding compilers.  */
29683
29684 #ifdef __STDC__
29685 # include <limits.h>
29686 #else
29687 # include <assert.h>
29688 #endif
29689
29690 #undef openlog
29691
29692 /* Override any GCC internal prototype to avoid an error.
29693    Use char because int might match the return type of a GCC
29694    builtin and then its argument prototype would still apply.  */
29695 #ifdef __cplusplus
29696 extern "C"
29697 #endif
29698 char openlog ();
29699 /* The GNU C library defines this for functions which it implements
29700     to always fail with ENOSYS.  Some functions are actually named
29701     something starting with __ and the normal name is an alias.  */
29702 #if defined __stub_openlog || defined __stub___openlog
29703 choke me
29704 #endif
29705
29706 int
29707 main ()
29708 {
29709 return openlog ();
29710   ;
29711   return 0;
29712 }
29713 _ACEOF
29714 rm -f conftest.$ac_objext conftest$ac_exeext
29715 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29722   ac_status=$?
29723   grep -v '^ *+' conftest.er1 >conftest.err
29724   rm -f conftest.er1
29725   cat conftest.err >&5
29726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727   (exit $ac_status); } && {
29728          test -z "$ac_c_werror_flag" ||
29729          test ! -s conftest.err
29730        } && test -s conftest$ac_exeext &&
29731        $as_test_x conftest$ac_exeext; then
29732   ac_cv_func_openlog=yes
29733 else
29734   echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737         ac_cv_func_openlog=no
29738 fi
29739
29740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29741       conftest$ac_exeext conftest.$ac_ext
29742 fi
29743 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29744 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29745
29746         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29747                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29748 echo "$as_me: error: could not find syslog" >&2;}
29749    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29750         fi
29751         ol_enable_syslog=$ac_cv_func_openlog
29752 fi
29753
29754 ol_link_sql=no
29755 if test $ol_enable_sql != no ; then
29756
29757
29758 for ac_header in sql.h sqlext.h
29759 do
29760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29762   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29765   echo $ECHO_N "(cached) $ECHO_C" >&6
29766 fi
29767 ac_res=`eval echo '${'$as_ac_Header'}'`
29768                { echo "$as_me:$LINENO: result: $ac_res" >&5
29769 echo "${ECHO_T}$ac_res" >&6; }
29770 else
29771   # Is the header compilable?
29772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29774 cat >conftest.$ac_ext <<_ACEOF
29775 /* confdefs.h.  */
29776 _ACEOF
29777 cat confdefs.h >>conftest.$ac_ext
29778 cat >>conftest.$ac_ext <<_ACEOF
29779 /* end confdefs.h.  */
29780 $ac_includes_default
29781 #include <$ac_header>
29782 _ACEOF
29783 rm -f conftest.$ac_objext
29784 if { (ac_try="$ac_compile"
29785 case "(($ac_try" in
29786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29787   *) ac_try_echo=$ac_try;;
29788 esac
29789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29790   (eval "$ac_compile") 2>conftest.er1
29791   ac_status=$?
29792   grep -v '^ *+' conftest.er1 >conftest.err
29793   rm -f conftest.er1
29794   cat conftest.err >&5
29795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796   (exit $ac_status); } && {
29797          test -z "$ac_c_werror_flag" ||
29798          test ! -s conftest.err
29799        } && test -s conftest.$ac_objext; then
29800   ac_header_compiler=yes
29801 else
29802   echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29804
29805         ac_header_compiler=no
29806 fi
29807
29808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29810 echo "${ECHO_T}$ac_header_compiler" >&6; }
29811
29812 # Is the header present?
29813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29815 cat >conftest.$ac_ext <<_ACEOF
29816 /* confdefs.h.  */
29817 _ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h.  */
29821 #include <$ac_header>
29822 _ACEOF
29823 if { (ac_try="$ac_cpp conftest.$ac_ext"
29824 case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29830   ac_status=$?
29831   grep -v '^ *+' conftest.er1 >conftest.err
29832   rm -f conftest.er1
29833   cat conftest.err >&5
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); } >/dev/null && {
29836          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29837          test ! -s conftest.err
29838        }; then
29839   ac_header_preproc=yes
29840 else
29841   echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844   ac_header_preproc=no
29845 fi
29846
29847 rm -f conftest.err conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29849 echo "${ECHO_T}$ac_header_preproc" >&6; }
29850
29851 # So?  What about this header?
29852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29853   yes:no: )
29854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29858     ac_header_preproc=yes
29859     ;;
29860   no:yes:* )
29861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29873     ( cat <<\_ASBOX
29874 ## --------------------------------------------- ##
29875 ## Report this to <http://www.openldap.org/its/> ##
29876 ## --------------------------------------------- ##
29877 _ASBOX
29878      ) | sed "s/^/$as_me: WARNING:     /" >&2
29879     ;;
29880 esac
29881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29884   echo $ECHO_N "(cached) $ECHO_C" >&6
29885 else
29886   eval "$as_ac_Header=\$ac_header_preproc"
29887 fi
29888 ac_res=`eval echo '${'$as_ac_Header'}'`
29889                { echo "$as_me:$LINENO: result: $ac_res" >&5
29890 echo "${ECHO_T}$ac_res" >&6; }
29891
29892 fi
29893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29894   cat >>confdefs.h <<_ACEOF
29895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29896 _ACEOF
29897
29898 else
29899
29900                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29901 echo "$as_me: error: could not locate SQL headers" >&2;}
29902    { (exit 1); exit 1; }; }
29903
29904 fi
29905
29906 done
29907
29908
29909         sql_LIBS="$LIBS"
29910         LIBS="$LTHREAD_LIBS"
29911
29912         if test $ol_with_odbc = auto ; then
29913                 ol_with_odbc="iodbc unixodbc odbc32"
29914         fi
29915
29916         for odbc in $ol_with_odbc ; do
29917                 if test $ol_link_sql = no ; then
29918                         case $odbc in
29919                         iodbc)
29920                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29921 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29922 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29923   echo $ECHO_N "(cached) $ECHO_C" >&6
29924 else
29925   ac_check_lib_save_LIBS=$LIBS
29926 LIBS="-liodbc  $LIBS"
29927 cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h.  */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h.  */
29933
29934 /* Override any GCC internal prototype to avoid an error.
29935    Use char because int might match the return type of a GCC
29936    builtin and then its argument prototype would still apply.  */
29937 #ifdef __cplusplus
29938 extern "C"
29939 #endif
29940 char SQLDriverConnect ();
29941 int
29942 main ()
29943 {
29944 return SQLDriverConnect ();
29945   ;
29946   return 0;
29947 }
29948 _ACEOF
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (ac_try="$ac_link"
29951 case "(($ac_try" in
29952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953   *) ac_try_echo=$ac_try;;
29954 esac
29955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29956   (eval "$ac_link") 2>conftest.er1
29957   ac_status=$?
29958   grep -v '^ *+' conftest.er1 >conftest.err
29959   rm -f conftest.er1
29960   cat conftest.err >&5
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); } && {
29963          test -z "$ac_c_werror_flag" ||
29964          test ! -s conftest.err
29965        } && test -s conftest$ac_exeext &&
29966        $as_test_x conftest$ac_exeext; then
29967   ac_cv_lib_iodbc_SQLDriverConnect=yes
29968 else
29969   echo "$as_me: failed program was:" >&5
29970 sed 's/^/| /' conftest.$ac_ext >&5
29971
29972         ac_cv_lib_iodbc_SQLDriverConnect=no
29973 fi
29974
29975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29976       conftest$ac_exeext conftest.$ac_ext
29977 LIBS=$ac_check_lib_save_LIBS
29978 fi
29979 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29980 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29981 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29982   have_iodbc=yes
29983 else
29984   have_iodbc=no
29985 fi
29986
29987                                 if test $have_iodbc = yes ; then
29988                                         ol_link_sql="-liodbc"
29989                                 fi
29990                                 ;;
29991
29992                         unixodbc)
29993                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29994 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29995 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29996   echo $ECHO_N "(cached) $ECHO_C" >&6
29997 else
29998   ac_check_lib_save_LIBS=$LIBS
29999 LIBS="-lodbc  $LIBS"
30000 cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h.  */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h.  */
30006
30007 /* Override any GCC internal prototype to avoid an error.
30008    Use char because int might match the return type of a GCC
30009    builtin and then its argument prototype would still apply.  */
30010 #ifdef __cplusplus
30011 extern "C"
30012 #endif
30013 char SQLDriverConnect ();
30014 int
30015 main ()
30016 {
30017 return SQLDriverConnect ();
30018   ;
30019   return 0;
30020 }
30021 _ACEOF
30022 rm -f conftest.$ac_objext conftest$ac_exeext
30023 if { (ac_try="$ac_link"
30024 case "(($ac_try" in
30025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026   *) ac_try_echo=$ac_try;;
30027 esac
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029   (eval "$ac_link") 2>conftest.er1
30030   ac_status=$?
30031   grep -v '^ *+' conftest.er1 >conftest.err
30032   rm -f conftest.er1
30033   cat conftest.err >&5
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); } && {
30036          test -z "$ac_c_werror_flag" ||
30037          test ! -s conftest.err
30038        } && test -s conftest$ac_exeext &&
30039        $as_test_x conftest$ac_exeext; then
30040   ac_cv_lib_odbc_SQLDriverConnect=yes
30041 else
30042   echo "$as_me: failed program was:" >&5
30043 sed 's/^/| /' conftest.$ac_ext >&5
30044
30045         ac_cv_lib_odbc_SQLDriverConnect=no
30046 fi
30047
30048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30049       conftest$ac_exeext conftest.$ac_ext
30050 LIBS=$ac_check_lib_save_LIBS
30051 fi
30052 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30053 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30054 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30055   have_odbc=yes
30056 else
30057   have_odbc=no
30058 fi
30059
30060                                 if test $have_odbc = yes ; then
30061                                         ol_link_sql="-lodbc"
30062                                 fi
30063                                 ;;
30064
30065                         odbc32)
30066                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30067 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30068 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30069   echo $ECHO_N "(cached) $ECHO_C" >&6
30070 else
30071   ac_check_lib_save_LIBS=$LIBS
30072 LIBS="-lodbc32  $LIBS"
30073 cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079
30080 /* Override any GCC internal prototype to avoid an error.
30081    Use char because int might match the return type of a GCC
30082    builtin and then its argument prototype would still apply.  */
30083 #ifdef __cplusplus
30084 extern "C"
30085 #endif
30086 char SQLDriverConnect ();
30087 int
30088 main ()
30089 {
30090 return SQLDriverConnect ();
30091   ;
30092   return 0;
30093 }
30094 _ACEOF
30095 rm -f conftest.$ac_objext conftest$ac_exeext
30096 if { (ac_try="$ac_link"
30097 case "(($ac_try" in
30098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099   *) ac_try_echo=$ac_try;;
30100 esac
30101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102   (eval "$ac_link") 2>conftest.er1
30103   ac_status=$?
30104   grep -v '^ *+' conftest.er1 >conftest.err
30105   rm -f conftest.er1
30106   cat conftest.err >&5
30107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108   (exit $ac_status); } && {
30109          test -z "$ac_c_werror_flag" ||
30110          test ! -s conftest.err
30111        } && test -s conftest$ac_exeext &&
30112        $as_test_x conftest$ac_exeext; then
30113   ac_cv_lib_odbc32_SQLDriverConnect=yes
30114 else
30115   echo "$as_me: failed program was:" >&5
30116 sed 's/^/| /' conftest.$ac_ext >&5
30117
30118         ac_cv_lib_odbc32_SQLDriverConnect=no
30119 fi
30120
30121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30122       conftest$ac_exeext conftest.$ac_ext
30123 LIBS=$ac_check_lib_save_LIBS
30124 fi
30125 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30126 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30127 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30128   have_odbc32=yes
30129 else
30130   have_odbc32=no
30131 fi
30132
30133                                 if test $have_odbc32 = yes ; then
30134                                         ol_link_sql="-lodbc32"
30135                                 fi
30136                                 ;;
30137
30138                         *)
30139                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30140 echo "$as_me: error: unknown ODBC library" >&2;}
30141    { (exit 1); exit 1; }; }
30142                                 ;;
30143                         esac
30144                 fi
30145         done
30146
30147         LIBS="$sql_LIBS"
30148
30149         if test $ol_link_sql != no ; then
30150                 SLAPD_SQL_LIBS="$ol_link_sql"
30151
30152         elif test $ol_enable_sql != auto ; then
30153                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30154 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30155    { (exit 1); exit 1; }; }
30156         fi
30157 fi
30158
30159 ol_link_ndb=no
30160 if test $ol_enable_ndb != no ; then
30161         # Extract the first word of "mysql_config", so it can be a program name with args.
30162 set dummy mysql_config; ac_word=$2
30163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30165 if test "${ac_cv_prog_MYSQL+set}" = set; then
30166   echo $ECHO_N "(cached) $ECHO_C" >&6
30167 else
30168   if test -n "$MYSQL"; then
30169   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30170 else
30171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30172 for as_dir in $PATH
30173 do
30174   IFS=$as_save_IFS
30175   test -z "$as_dir" && as_dir=.
30176   for ac_exec_ext in '' $ac_executable_extensions; do
30177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30178     ac_cv_prog_MYSQL="yes"
30179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30180     break 2
30181   fi
30182 done
30183 done
30184 IFS=$as_save_IFS
30185
30186 fi
30187 fi
30188 MYSQL=$ac_cv_prog_MYSQL
30189 if test -n "$MYSQL"; then
30190   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30191 echo "${ECHO_T}$MYSQL" >&6; }
30192 else
30193   { echo "$as_me:$LINENO: result: no" >&5
30194 echo "${ECHO_T}no" >&6; }
30195 fi
30196
30197
30198         if test "$MYSQL" != yes ; then
30199                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30200 echo "$as_me: error: could not locate mysql_config" >&2;}
30201    { (exit 1); exit 1; }; }
30202         fi
30203
30204         SQL_INC=`mysql_config --include`
30205         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30206
30207         save_CPPFLAGS="$CPPFLAGS"
30208         CPPFLAGS="$SLAPD_NDB_INCS"
30209         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30210 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30211         cat >conftest.$ac_ext <<_ACEOF
30212 /* confdefs.h.  */
30213 _ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h.  */
30217 #include <NdbApi.hpp>
30218 _ACEOF
30219 if { (ac_try="$ac_cpp conftest.$ac_ext"
30220 case "(($ac_try" in
30221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222   *) ac_try_echo=$ac_try;;
30223 esac
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30226   ac_status=$?
30227   grep -v '^ *+' conftest.er1 >conftest.err
30228   rm -f conftest.er1
30229   cat conftest.err >&5
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); } >/dev/null && {
30232          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30233          test ! -s conftest.err
30234        }; then
30235   { echo "$as_me:$LINENO: result: yes" >&5
30236 echo "${ECHO_T}yes" >&6; }
30237 else
30238   echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30240
30241   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30242 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30243    { (exit 1); exit 1; }; }
30244
30245 fi
30246
30247 rm -f conftest.err conftest.$ac_ext
30248         CPPFLAGS="$save_CPPFLAGS"
30249
30250         SQL_LIB=`mysql_config --libs_r`
30251         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30252
30253         save_LDFLAGS="$LDFLAGS"
30254         save_LIBS="$LIBS"
30255         LDFLAGS="$SQL_LIB"
30256         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30257 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30258 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30259   echo $ECHO_N "(cached) $ECHO_C" >&6
30260 else
30261   ac_check_lib_save_LIBS=$LIBS
30262 LIBS="-lndbclient -lstdc++ $LIBS"
30263 cat >conftest.$ac_ext <<_ACEOF
30264 /* confdefs.h.  */
30265 _ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h.  */
30269
30270 /* Override any GCC internal prototype to avoid an error.
30271    Use char because int might match the return type of a GCC
30272    builtin and then its argument prototype would still apply.  */
30273 #ifdef __cplusplus
30274 extern "C"
30275 #endif
30276 char ndb_init ();
30277 int
30278 main ()
30279 {
30280 return ndb_init ();
30281   ;
30282   return 0;
30283 }
30284 _ACEOF
30285 rm -f conftest.$ac_objext conftest$ac_exeext
30286 if { (ac_try="$ac_link"
30287 case "(($ac_try" in
30288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289   *) ac_try_echo=$ac_try;;
30290 esac
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292   (eval "$ac_link") 2>conftest.er1
30293   ac_status=$?
30294   grep -v '^ *+' conftest.er1 >conftest.err
30295   rm -f conftest.er1
30296   cat conftest.err >&5
30297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298   (exit $ac_status); } && {
30299          test -z "$ac_c_werror_flag" ||
30300          test ! -s conftest.err
30301        } && test -s conftest$ac_exeext &&
30302        $as_test_x conftest$ac_exeext; then
30303   ac_cv_lib_ndbclient_ndb_init=yes
30304 else
30305   echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30307
30308         ac_cv_lib_ndbclient_ndb_init=no
30309 fi
30310
30311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30312       conftest$ac_exeext conftest.$ac_ext
30313 LIBS=$ac_check_lib_save_LIBS
30314 fi
30315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30316 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30317 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30318   : ok
30319 else
30320
30321                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30322 echo "$as_me: error: could not locate ndbclient library" >&2;}
30323    { (exit 1); exit 1; }; }
30324
30325 fi
30326
30327         LIBS="$save_LIBS"
30328         LDFLAGS="$save_LDFLAGS"
30329
30330         if test "$ol_enable_ndb" = yes ; then
30331                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30332         fi
30333 fi
30334
30335 ol_icu=no
30336
30337 for ac_header in unicode/utypes.h
30338 do
30339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30341   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30344   echo $ECHO_N "(cached) $ECHO_C" >&6
30345 fi
30346 ac_res=`eval echo '${'$as_ac_Header'}'`
30347                { echo "$as_me:$LINENO: result: $ac_res" >&5
30348 echo "${ECHO_T}$ac_res" >&6; }
30349 else
30350   # Is the header compilable?
30351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30353 cat >conftest.$ac_ext <<_ACEOF
30354 /* confdefs.h.  */
30355 _ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h.  */
30359 $ac_includes_default
30360 #include <$ac_header>
30361 _ACEOF
30362 rm -f conftest.$ac_objext
30363 if { (ac_try="$ac_compile"
30364 case "(($ac_try" in
30365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366   *) ac_try_echo=$ac_try;;
30367 esac
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369   (eval "$ac_compile") 2>conftest.er1
30370   ac_status=$?
30371   grep -v '^ *+' conftest.er1 >conftest.err
30372   rm -f conftest.er1
30373   cat conftest.err >&5
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); } && {
30376          test -z "$ac_c_werror_flag" ||
30377          test ! -s conftest.err
30378        } && test -s conftest.$ac_objext; then
30379   ac_header_compiler=yes
30380 else
30381   echo "$as_me: failed program was:" >&5
30382 sed 's/^/| /' conftest.$ac_ext >&5
30383
30384         ac_header_compiler=no
30385 fi
30386
30387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30389 echo "${ECHO_T}$ac_header_compiler" >&6; }
30390
30391 # Is the header present?
30392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30394 cat >conftest.$ac_ext <<_ACEOF
30395 /* confdefs.h.  */
30396 _ACEOF
30397 cat confdefs.h >>conftest.$ac_ext
30398 cat >>conftest.$ac_ext <<_ACEOF
30399 /* end confdefs.h.  */
30400 #include <$ac_header>
30401 _ACEOF
30402 if { (ac_try="$ac_cpp conftest.$ac_ext"
30403 case "(($ac_try" in
30404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30405   *) ac_try_echo=$ac_try;;
30406 esac
30407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30409   ac_status=$?
30410   grep -v '^ *+' conftest.er1 >conftest.err
30411   rm -f conftest.er1
30412   cat conftest.err >&5
30413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414   (exit $ac_status); } >/dev/null && {
30415          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30416          test ! -s conftest.err
30417        }; then
30418   ac_header_preproc=yes
30419 else
30420   echo "$as_me: failed program was:" >&5
30421 sed 's/^/| /' conftest.$ac_ext >&5
30422
30423   ac_header_preproc=no
30424 fi
30425
30426 rm -f conftest.err conftest.$ac_ext
30427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30428 echo "${ECHO_T}$ac_header_preproc" >&6; }
30429
30430 # So?  What about this header?
30431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30432   yes:no: )
30433     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30437     ac_header_preproc=yes
30438     ;;
30439   no:yes:* )
30440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30442     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30443 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30444     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30446     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30447 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30450     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30452     ( cat <<\_ASBOX
30453 ## --------------------------------------------- ##
30454 ## Report this to <http://www.openldap.org/its/> ##
30455 ## --------------------------------------------- ##
30456 _ASBOX
30457      ) | sed "s/^/$as_me: WARNING:     /" >&2
30458     ;;
30459 esac
30460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30463   echo $ECHO_N "(cached) $ECHO_C" >&6
30464 else
30465   eval "$as_ac_Header=\$ac_header_preproc"
30466 fi
30467 ac_res=`eval echo '${'$as_ac_Header'}'`
30468                { echo "$as_me:$LINENO: result: $ac_res" >&5
30469 echo "${ECHO_T}$ac_res" >&6; }
30470
30471 fi
30472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30473   cat >>confdefs.h <<_ACEOF
30474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30475 _ACEOF
30476
30477 fi
30478
30479 done
30480
30481 if test $ac_cv_header_unicode_utypes_h = yes ; then
30482                 OL_ICULIBS="-licuuc -licudata"
30483
30484         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30485 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30486 if test "${ol_cv_lib_icu+set}" = set; then
30487   echo $ECHO_N "(cached) $ECHO_C" >&6
30488 else
30489
30490                 ol_LIBS="$LIBS"
30491                 LIBS="$OL_ICULIBS $LIBS"
30492                 cat >conftest.$ac_ext <<_ACEOF
30493 /* confdefs.h.  */
30494 _ACEOF
30495 cat confdefs.h >>conftest.$ac_ext
30496 cat >>conftest.$ac_ext <<_ACEOF
30497 /* end confdefs.h.  */
30498
30499 #include <unicode/utypes.h>
30500
30501 int
30502 main ()
30503 {
30504
30505 (void) u_errorName(0);
30506
30507   ;
30508   return 0;
30509 }
30510 _ACEOF
30511 rm -f conftest.$ac_objext conftest$ac_exeext
30512 if { (ac_try="$ac_link"
30513 case "(($ac_try" in
30514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515   *) ac_try_echo=$ac_try;;
30516 esac
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518   (eval "$ac_link") 2>conftest.er1
30519   ac_status=$?
30520   grep -v '^ *+' conftest.er1 >conftest.err
30521   rm -f conftest.er1
30522   cat conftest.err >&5
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); } && {
30525          test -z "$ac_c_werror_flag" ||
30526          test ! -s conftest.err
30527        } && test -s conftest$ac_exeext &&
30528        $as_test_x conftest$ac_exeext; then
30529   ol_cv_lib_icu=yes
30530 else
30531   echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30533
30534         ol_cv_lib_icu=no
30535 fi
30536
30537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30538       conftest$ac_exeext conftest.$ac_ext
30539                 LIBS="$ol_LIBS"
30540
30541 fi
30542 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30543 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30544
30545         if test $ol_cv_lib_icu != no ; then
30546                 ol_icu="$OL_ICULIBS"
30547
30548 cat >>confdefs.h <<\_ACEOF
30549 #define HAVE_ICU 1
30550 _ACEOF
30551
30552         fi
30553 fi
30554
30555 if test "$ol_icu" = no ; then
30556         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30557 echo "$as_me: WARNING: ICU not available" >&2;}
30558 else
30559         ICU_LIBS="$ol_icu"
30560 fi
30561 WITH_SASL=no
30562 ol_link_sasl=no
30563 ol_link_spasswd=no
30564 if test $ol_with_cyrus_sasl != no ; then
30565
30566
30567 for ac_header in sasl/sasl.h sasl.h
30568 do
30569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30571   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30574   echo $ECHO_N "(cached) $ECHO_C" >&6
30575 fi
30576 ac_res=`eval echo '${'$as_ac_Header'}'`
30577                { echo "$as_me:$LINENO: result: $ac_res" >&5
30578 echo "${ECHO_T}$ac_res" >&6; }
30579 else
30580   # Is the header compilable?
30581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30583 cat >conftest.$ac_ext <<_ACEOF
30584 /* confdefs.h.  */
30585 _ACEOF
30586 cat confdefs.h >>conftest.$ac_ext
30587 cat >>conftest.$ac_ext <<_ACEOF
30588 /* end confdefs.h.  */
30589 $ac_includes_default
30590 #include <$ac_header>
30591 _ACEOF
30592 rm -f conftest.$ac_objext
30593 if { (ac_try="$ac_compile"
30594 case "(($ac_try" in
30595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596   *) ac_try_echo=$ac_try;;
30597 esac
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599   (eval "$ac_compile") 2>conftest.er1
30600   ac_status=$?
30601   grep -v '^ *+' conftest.er1 >conftest.err
30602   rm -f conftest.er1
30603   cat conftest.err >&5
30604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605   (exit $ac_status); } && {
30606          test -z "$ac_c_werror_flag" ||
30607          test ! -s conftest.err
30608        } && test -s conftest.$ac_objext; then
30609   ac_header_compiler=yes
30610 else
30611   echo "$as_me: failed program was:" >&5
30612 sed 's/^/| /' conftest.$ac_ext >&5
30613
30614         ac_header_compiler=no
30615 fi
30616
30617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30619 echo "${ECHO_T}$ac_header_compiler" >&6; }
30620
30621 # Is the header present?
30622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30624 cat >conftest.$ac_ext <<_ACEOF
30625 /* confdefs.h.  */
30626 _ACEOF
30627 cat confdefs.h >>conftest.$ac_ext
30628 cat >>conftest.$ac_ext <<_ACEOF
30629 /* end confdefs.h.  */
30630 #include <$ac_header>
30631 _ACEOF
30632 if { (ac_try="$ac_cpp conftest.$ac_ext"
30633 case "(($ac_try" in
30634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635   *) ac_try_echo=$ac_try;;
30636 esac
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30639   ac_status=$?
30640   grep -v '^ *+' conftest.er1 >conftest.err
30641   rm -f conftest.er1
30642   cat conftest.err >&5
30643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644   (exit $ac_status); } >/dev/null && {
30645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30646          test ! -s conftest.err
30647        }; then
30648   ac_header_preproc=yes
30649 else
30650   echo "$as_me: failed program was:" >&5
30651 sed 's/^/| /' conftest.$ac_ext >&5
30652
30653   ac_header_preproc=no
30654 fi
30655
30656 rm -f conftest.err conftest.$ac_ext
30657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30658 echo "${ECHO_T}$ac_header_preproc" >&6; }
30659
30660 # So?  What about this header?
30661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30662   yes:no: )
30663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30667     ac_header_preproc=yes
30668     ;;
30669   no:yes:* )
30670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30682     ( cat <<\_ASBOX
30683 ## --------------------------------------------- ##
30684 ## Report this to <http://www.openldap.org/its/> ##
30685 ## --------------------------------------------- ##
30686 _ASBOX
30687      ) | sed "s/^/$as_me: WARNING:     /" >&2
30688     ;;
30689 esac
30690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30693   echo $ECHO_N "(cached) $ECHO_C" >&6
30694 else
30695   eval "$as_ac_Header=\$ac_header_preproc"
30696 fi
30697 ac_res=`eval echo '${'$as_ac_Header'}'`
30698                { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30700
30701 fi
30702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30703   cat >>confdefs.h <<_ACEOF
30704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30705 _ACEOF
30706
30707 fi
30708
30709 done
30710
30711
30712         if test $ac_cv_header_sasl_sasl_h = yes ||
30713            test $ac_cv_header_sasl_h = yes; then
30714                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30715 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30716 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30717   echo $ECHO_N "(cached) $ECHO_C" >&6
30718 else
30719   ac_check_lib_save_LIBS=$LIBS
30720 LIBS="-lsasl2  $LIBS"
30721 cat >conftest.$ac_ext <<_ACEOF
30722 /* confdefs.h.  */
30723 _ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h.  */
30727
30728 /* Override any GCC internal prototype to avoid an error.
30729    Use char because int might match the return type of a GCC
30730    builtin and then its argument prototype would still apply.  */
30731 #ifdef __cplusplus
30732 extern "C"
30733 #endif
30734 char sasl_client_init ();
30735 int
30736 main ()
30737 {
30738 return sasl_client_init ();
30739   ;
30740   return 0;
30741 }
30742 _ACEOF
30743 rm -f conftest.$ac_objext conftest$ac_exeext
30744 if { (ac_try="$ac_link"
30745 case "(($ac_try" in
30746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30747   *) ac_try_echo=$ac_try;;
30748 esac
30749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30750   (eval "$ac_link") 2>conftest.er1
30751   ac_status=$?
30752   grep -v '^ *+' conftest.er1 >conftest.err
30753   rm -f conftest.er1
30754   cat conftest.err >&5
30755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756   (exit $ac_status); } && {
30757          test -z "$ac_c_werror_flag" ||
30758          test ! -s conftest.err
30759        } && test -s conftest$ac_exeext &&
30760        $as_test_x conftest$ac_exeext; then
30761   ac_cv_lib_sasl2_sasl_client_init=yes
30762 else
30763   echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30765
30766         ac_cv_lib_sasl2_sasl_client_init=no
30767 fi
30768
30769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30770       conftest$ac_exeext conftest.$ac_ext
30771 LIBS=$ac_check_lib_save_LIBS
30772 fi
30773 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30774 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30775 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30776   ol_link_sasl="-lsasl2"
30777 else
30778   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30779 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30780 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30781   echo $ECHO_N "(cached) $ECHO_C" >&6
30782 else
30783   ac_check_lib_save_LIBS=$LIBS
30784 LIBS="-lsasl  $LIBS"
30785 cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h.  */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h.  */
30791
30792 /* Override any GCC internal prototype to avoid an error.
30793    Use char because int might match the return type of a GCC
30794    builtin and then its argument prototype would still apply.  */
30795 #ifdef __cplusplus
30796 extern "C"
30797 #endif
30798 char sasl_client_init ();
30799 int
30800 main ()
30801 {
30802 return sasl_client_init ();
30803   ;
30804   return 0;
30805 }
30806 _ACEOF
30807 rm -f conftest.$ac_objext conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811   *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814   (eval "$ac_link") 2>conftest.er1
30815   ac_status=$?
30816   grep -v '^ *+' conftest.er1 >conftest.err
30817   rm -f conftest.er1
30818   cat conftest.err >&5
30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820   (exit $ac_status); } && {
30821          test -z "$ac_c_werror_flag" ||
30822          test ! -s conftest.err
30823        } && test -s conftest$ac_exeext &&
30824        $as_test_x conftest$ac_exeext; then
30825   ac_cv_lib_sasl_sasl_client_init=yes
30826 else
30827   echo "$as_me: failed program was:" >&5
30828 sed 's/^/| /' conftest.$ac_ext >&5
30829
30830         ac_cv_lib_sasl_sasl_client_init=no
30831 fi
30832
30833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30834       conftest$ac_exeext conftest.$ac_ext
30835 LIBS=$ac_check_lib_save_LIBS
30836 fi
30837 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30838 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30839 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30840   ol_link_sasl="-lsasl"
30841 fi
30842
30843 fi
30844
30845         fi
30846
30847         if test $ol_link_sasl = no ; then
30848                 if test $ol_with_cyrus_sasl != auto ; then
30849                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30850 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30851    { (exit 1); exit 1; }; }
30852                 else
30853                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30854 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30855                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30856 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30857                         if test $ol_link_tls = no ; then
30858                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30859 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30860                         fi
30861                 fi
30862         else
30863                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30864 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30865 if test "${ol_cv_sasl_compat+set}" = set; then
30866   echo $ECHO_N "(cached) $ECHO_C" >&6
30867 else
30868
30869         cat >conftest.$ac_ext <<_ACEOF
30870 /* confdefs.h.  */
30871 _ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h.  */
30875
30876 #ifdef HAVE_SASL_SASL_H
30877 #include <sasl/sasl.h>
30878 #else
30879 #include <sasl.h>
30880 #endif
30881
30882 /* Require 2.1.15+ */
30883 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30884         char *__sasl_compat = "2.2+ or better okay (we guess)";
30885 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30886         && SASL_VERSION_STEP >=15
30887         char *__sasl_compat = "2.1.15+ or better okay";
30888 #endif
30889
30890 _ACEOF
30891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30892   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30893   ol_cv_sasl_compat=yes
30894 else
30895   ol_cv_sasl_compat=no
30896 fi
30897 rm -f conftest*
30898
30899 fi
30900 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30901 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30902
30903                 if test $ol_cv_sasl_compat = no ; then
30904                         ol_link_sasl=no
30905                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30906 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30907    { (exit 1); exit 1; }; }
30908                 fi
30909
30910
30911 cat >>confdefs.h <<\_ACEOF
30912 #define HAVE_CYRUS_SASL 1
30913 _ACEOF
30914
30915                 SASL_LIBS="$ol_link_sasl"
30916                 if test $ol_enable_spasswd != no ; then
30917                         ol_link_spasswd=yes
30918                 fi
30919
30920                 ac_save_LIBS="$LIBS"
30921                 LIBS="$LIBS $ol_link_sasl"
30922                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30923 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30924 if test "${ac_cv_func_sasl_version+set}" = set; then
30925   echo $ECHO_N "(cached) $ECHO_C" >&6
30926 else
30927   cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h.  */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h.  */
30933 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30935 #define sasl_version innocuous_sasl_version
30936
30937 /* System header to define __stub macros and hopefully few prototypes,
30938     which can conflict with char sasl_version (); below.
30939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30940     <limits.h> exists even on freestanding compilers.  */
30941
30942 #ifdef __STDC__
30943 # include <limits.h>
30944 #else
30945 # include <assert.h>
30946 #endif
30947
30948 #undef sasl_version
30949
30950 /* Override any GCC internal prototype to avoid an error.
30951    Use char because int might match the return type of a GCC
30952    builtin and then its argument prototype would still apply.  */
30953 #ifdef __cplusplus
30954 extern "C"
30955 #endif
30956 char sasl_version ();
30957 /* The GNU C library defines this for functions which it implements
30958     to always fail with ENOSYS.  Some functions are actually named
30959     something starting with __ and the normal name is an alias.  */
30960 #if defined __stub_sasl_version || defined __stub___sasl_version
30961 choke me
30962 #endif
30963
30964 int
30965 main ()
30966 {
30967 return sasl_version ();
30968   ;
30969   return 0;
30970 }
30971 _ACEOF
30972 rm -f conftest.$ac_objext conftest$ac_exeext
30973 if { (ac_try="$ac_link"
30974 case "(($ac_try" in
30975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30976   *) ac_try_echo=$ac_try;;
30977 esac
30978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30979   (eval "$ac_link") 2>conftest.er1
30980   ac_status=$?
30981   grep -v '^ *+' conftest.er1 >conftest.err
30982   rm -f conftest.er1
30983   cat conftest.err >&5
30984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985   (exit $ac_status); } && {
30986          test -z "$ac_c_werror_flag" ||
30987          test ! -s conftest.err
30988        } && test -s conftest$ac_exeext &&
30989        $as_test_x conftest$ac_exeext; then
30990   ac_cv_func_sasl_version=yes
30991 else
30992   echo "$as_me: failed program was:" >&5
30993 sed 's/^/| /' conftest.$ac_ext >&5
30994
30995         ac_cv_func_sasl_version=no
30996 fi
30997
30998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30999       conftest$ac_exeext conftest.$ac_ext
31000 fi
31001 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31002 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31003 if test $ac_cv_func_sasl_version = yes; then
31004
31005 cat >>confdefs.h <<\_ACEOF
31006 #define HAVE_SASL_VERSION 1
31007 _ACEOF
31008
31009 fi
31010
31011                 LIBS="$ac_save_LIBS"
31012
31013                 WITH_SASL=yes
31014         fi
31015
31016 else
31017         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31018 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31019         if test $ol_link_tls = no ; then
31020                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31021 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31022         fi
31023 fi
31024
31025 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31026         dev=no
31027         if test -r /dev/urandom ; then
31028                 dev="/dev/urandom";
31029         elif test -r /idev/urandom ; then
31030                 dev="/idev/urandom";
31031         elif test -r /dev/srandom ; then
31032                 dev="/dev/srandom";
31033         elif test -r /dev/random ; then
31034                 dev="/dev/random";
31035         elif test -r /idev/random ; then
31036                 dev="/idev/random";
31037         fi
31038
31039         if test $dev != no ; then
31040
31041 cat >>confdefs.h <<_ACEOF
31042 #define URANDOM_DEVICE "$dev"
31043 _ACEOF
31044
31045         fi
31046 fi
31047
31048 ol_link_fetch=no
31049 if test $ol_with_fetch != no ; then
31050         ol_LIBS=$LIBS
31051 LIBS="-lfetch -lcom_err $LIBS"
31052 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31053 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31054 if test "${ol_cv_lib_fetch+set}" = set; then
31055   echo $ECHO_N "(cached) $ECHO_C" >&6
31056 else
31057
31058         cat >conftest.$ac_ext <<_ACEOF
31059 /* confdefs.h.  */
31060 _ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h.  */
31064
31065 #ifdef HAVE_SYS_PARAM_H
31066 #include <sys/param.h>
31067 #endif
31068 #include <stdio.h>
31069 #include <fetch.h>
31070 int
31071 main ()
31072 {
31073 struct url *u = fetchParseURL("file:///");
31074   ;
31075   return 0;
31076 }
31077 _ACEOF
31078 rm -f conftest.$ac_objext conftest$ac_exeext
31079 if { (ac_try="$ac_link"
31080 case "(($ac_try" in
31081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31082   *) ac_try_echo=$ac_try;;
31083 esac
31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085   (eval "$ac_link") 2>conftest.er1
31086   ac_status=$?
31087   grep -v '^ *+' conftest.er1 >conftest.err
31088   rm -f conftest.er1
31089   cat conftest.err >&5
31090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091   (exit $ac_status); } && {
31092          test -z "$ac_c_werror_flag" ||
31093          test ! -s conftest.err
31094        } && test -s conftest$ac_exeext &&
31095        $as_test_x conftest$ac_exeext; then
31096   ol_cv_lib_fetch=yes
31097 else
31098   echo "$as_me: failed program was:" >&5
31099 sed 's/^/| /' conftest.$ac_ext >&5
31100
31101         ol_cv_lib_fetch=no
31102 fi
31103
31104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31105       conftest$ac_exeext conftest.$ac_ext
31106 fi
31107 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31108 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31109 LIBS=$ol_LIBS
31110 if test $ol_cv_lib_fetch != no ; then
31111         ol_link_fetch="-lfetch -lcom_err"
31112
31113 cat >>confdefs.h <<\_ACEOF
31114 #define HAVE_FETCH 1
31115 _ACEOF
31116
31117 fi
31118
31119
31120         if test $ol_cv_lib_fetch != no ; then
31121                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31122                 ol_link_fetch=freebsd
31123
31124         elif test $ol_with_fetch != auto ; then
31125                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31126 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31127    { (exit 1); exit 1; }; }
31128         fi
31129 fi
31130
31131 if test $ol_enable_crypt != no ; then
31132         save_LIBS="$LIBS"
31133         LIBS="$TLS_LIBS $LIBS"
31134
31135         { echo "$as_me:$LINENO: checking for crypt" >&5
31136 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31137 if test "${ac_cv_func_crypt+set}" = set; then
31138   echo $ECHO_N "(cached) $ECHO_C" >&6
31139 else
31140   cat >conftest.$ac_ext <<_ACEOF
31141 /* confdefs.h.  */
31142 _ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h.  */
31146 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31148 #define crypt innocuous_crypt
31149
31150 /* System header to define __stub macros and hopefully few prototypes,
31151     which can conflict with char crypt (); below.
31152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31153     <limits.h> exists even on freestanding compilers.  */
31154
31155 #ifdef __STDC__
31156 # include <limits.h>
31157 #else
31158 # include <assert.h>
31159 #endif
31160
31161 #undef crypt
31162
31163 /* Override any GCC internal prototype to avoid an error.
31164    Use char because int might match the return type of a GCC
31165    builtin and then its argument prototype would still apply.  */
31166 #ifdef __cplusplus
31167 extern "C"
31168 #endif
31169 char crypt ();
31170 /* The GNU C library defines this for functions which it implements
31171     to always fail with ENOSYS.  Some functions are actually named
31172     something starting with __ and the normal name is an alias.  */
31173 #if defined __stub_crypt || defined __stub___crypt
31174 choke me
31175 #endif
31176
31177 int
31178 main ()
31179 {
31180 return crypt ();
31181   ;
31182   return 0;
31183 }
31184 _ACEOF
31185 rm -f conftest.$ac_objext conftest$ac_exeext
31186 if { (ac_try="$ac_link"
31187 case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_link") 2>conftest.er1
31193   ac_status=$?
31194   grep -v '^ *+' conftest.er1 >conftest.err
31195   rm -f conftest.er1
31196   cat conftest.err >&5
31197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198   (exit $ac_status); } && {
31199          test -z "$ac_c_werror_flag" ||
31200          test ! -s conftest.err
31201        } && test -s conftest$ac_exeext &&
31202        $as_test_x conftest$ac_exeext; then
31203   ac_cv_func_crypt=yes
31204 else
31205   echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31207
31208         ac_cv_func_crypt=no
31209 fi
31210
31211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31212       conftest$ac_exeext conftest.$ac_ext
31213 fi
31214 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31215 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31216 if test $ac_cv_func_crypt = yes; then
31217   have_crypt=yes
31218 else
31219
31220                 LIBS="$save_LIBS"
31221                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31222 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31223 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31224   echo $ECHO_N "(cached) $ECHO_C" >&6
31225 else
31226   ac_check_lib_save_LIBS=$LIBS
31227 LIBS="-lcrypt  $LIBS"
31228 cat >conftest.$ac_ext <<_ACEOF
31229 /* confdefs.h.  */
31230 _ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h.  */
31234
31235 /* Override any GCC internal prototype to avoid an error.
31236    Use char because int might match the return type of a GCC
31237    builtin and then its argument prototype would still apply.  */
31238 #ifdef __cplusplus
31239 extern "C"
31240 #endif
31241 char crypt ();
31242 int
31243 main ()
31244 {
31245 return crypt ();
31246   ;
31247   return 0;
31248 }
31249 _ACEOF
31250 rm -f conftest.$ac_objext conftest$ac_exeext
31251 if { (ac_try="$ac_link"
31252 case "(($ac_try" in
31253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254   *) ac_try_echo=$ac_try;;
31255 esac
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257   (eval "$ac_link") 2>conftest.er1
31258   ac_status=$?
31259   grep -v '^ *+' conftest.er1 >conftest.err
31260   rm -f conftest.er1
31261   cat conftest.err >&5
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } && {
31264          test -z "$ac_c_werror_flag" ||
31265          test ! -s conftest.err
31266        } && test -s conftest$ac_exeext &&
31267        $as_test_x conftest$ac_exeext; then
31268   ac_cv_lib_crypt_crypt=yes
31269 else
31270   echo "$as_me: failed program was:" >&5
31271 sed 's/^/| /' conftest.$ac_ext >&5
31272
31273         ac_cv_lib_crypt_crypt=no
31274 fi
31275
31276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31277       conftest$ac_exeext conftest.$ac_ext
31278 LIBS=$ac_check_lib_save_LIBS
31279 fi
31280 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31281 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31282 if test $ac_cv_lib_crypt_crypt = yes; then
31283   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31284                         have_crypt=yes
31285 else
31286   have_crypt=no
31287 fi
31288
31289 fi
31290
31291
31292         LIBS="$save_LIBS"
31293
31294         if test $have_crypt = yes ; then
31295
31296 cat >>confdefs.h <<\_ACEOF
31297 #define HAVE_CRYPT 1
31298 _ACEOF
31299
31300         else
31301                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31302 echo "$as_me: WARNING: could not find crypt" >&2;}
31303                 if test $ol_enable_crypt = yes ; then
31304                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31305 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31306    { (exit 1); exit 1; }; }
31307                 fi
31308
31309                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31310 echo "$as_me: WARNING: disabling crypt support" >&2;}
31311                 ol_enable_crypt=no
31312         fi
31313 fi
31314
31315 if test $ol_enable_proctitle != no ; then
31316         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31317 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31318 if test "${ac_cv_func_setproctitle+set}" = set; then
31319   echo $ECHO_N "(cached) $ECHO_C" >&6
31320 else
31321   cat >conftest.$ac_ext <<_ACEOF
31322 /* confdefs.h.  */
31323 _ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h.  */
31327 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31329 #define setproctitle innocuous_setproctitle
31330
31331 /* System header to define __stub macros and hopefully few prototypes,
31332     which can conflict with char setproctitle (); below.
31333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31334     <limits.h> exists even on freestanding compilers.  */
31335
31336 #ifdef __STDC__
31337 # include <limits.h>
31338 #else
31339 # include <assert.h>
31340 #endif
31341
31342 #undef setproctitle
31343
31344 /* Override any GCC internal prototype to avoid an error.
31345    Use char because int might match the return type of a GCC
31346    builtin and then its argument prototype would still apply.  */
31347 #ifdef __cplusplus
31348 extern "C"
31349 #endif
31350 char setproctitle ();
31351 /* The GNU C library defines this for functions which it implements
31352     to always fail with ENOSYS.  Some functions are actually named
31353     something starting with __ and the normal name is an alias.  */
31354 #if defined __stub_setproctitle || defined __stub___setproctitle
31355 choke me
31356 #endif
31357
31358 int
31359 main ()
31360 {
31361 return setproctitle ();
31362   ;
31363   return 0;
31364 }
31365 _ACEOF
31366 rm -f conftest.$ac_objext conftest$ac_exeext
31367 if { (ac_try="$ac_link"
31368 case "(($ac_try" in
31369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31370   *) ac_try_echo=$ac_try;;
31371 esac
31372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31373   (eval "$ac_link") 2>conftest.er1
31374   ac_status=$?
31375   grep -v '^ *+' conftest.er1 >conftest.err
31376   rm -f conftest.er1
31377   cat conftest.err >&5
31378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379   (exit $ac_status); } && {
31380          test -z "$ac_c_werror_flag" ||
31381          test ! -s conftest.err
31382        } && test -s conftest$ac_exeext &&
31383        $as_test_x conftest$ac_exeext; then
31384   ac_cv_func_setproctitle=yes
31385 else
31386   echo "$as_me: failed program was:" >&5
31387 sed 's/^/| /' conftest.$ac_ext >&5
31388
31389         ac_cv_func_setproctitle=no
31390 fi
31391
31392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31393       conftest$ac_exeext conftest.$ac_ext
31394 fi
31395 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31396 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31397 if test $ac_cv_func_setproctitle = yes; then
31398   have_setproctitle=yes
31399 else
31400
31401                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31402 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31403 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31404   echo $ECHO_N "(cached) $ECHO_C" >&6
31405 else
31406   ac_check_lib_save_LIBS=$LIBS
31407 LIBS="-lutil  $LIBS"
31408 cat >conftest.$ac_ext <<_ACEOF
31409 /* confdefs.h.  */
31410 _ACEOF
31411 cat confdefs.h >>conftest.$ac_ext
31412 cat >>conftest.$ac_ext <<_ACEOF
31413 /* end confdefs.h.  */
31414
31415 /* Override any GCC internal prototype to avoid an error.
31416    Use char because int might match the return type of a GCC
31417    builtin and then its argument prototype would still apply.  */
31418 #ifdef __cplusplus
31419 extern "C"
31420 #endif
31421 char setproctitle ();
31422 int
31423 main ()
31424 {
31425 return setproctitle ();
31426   ;
31427   return 0;
31428 }
31429 _ACEOF
31430 rm -f conftest.$ac_objext conftest$ac_exeext
31431 if { (ac_try="$ac_link"
31432 case "(($ac_try" in
31433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434   *) ac_try_echo=$ac_try;;
31435 esac
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437   (eval "$ac_link") 2>conftest.er1
31438   ac_status=$?
31439   grep -v '^ *+' conftest.er1 >conftest.err
31440   rm -f conftest.er1
31441   cat conftest.err >&5
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); } && {
31444          test -z "$ac_c_werror_flag" ||
31445          test ! -s conftest.err
31446        } && test -s conftest$ac_exeext &&
31447        $as_test_x conftest$ac_exeext; then
31448   ac_cv_lib_util_setproctitle=yes
31449 else
31450   echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31452
31453         ac_cv_lib_util_setproctitle=no
31454 fi
31455
31456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31457       conftest$ac_exeext conftest.$ac_ext
31458 LIBS=$ac_check_lib_save_LIBS
31459 fi
31460 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31461 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31462 if test $ac_cv_lib_util_setproctitle = yes; then
31463   have_setproctitle=yes
31464                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31465 else
31466   have_setproctitle=no
31467                         case " $LIBOBJS " in
31468   *" setproctitle.$ac_objext "* ) ;;
31469   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31470  ;;
31471 esac
31472
31473                         LIBSRCS="$LIBSRCS setproctitle.c"
31474 fi
31475
31476 fi
31477
31478
31479         if test $have_setproctitle = yes ; then
31480
31481 cat >>confdefs.h <<\_ACEOF
31482 #define HAVE_SETPROCTITLE 1
31483 _ACEOF
31484
31485         fi
31486 fi
31487
31488 if test $ol_enable_slp != no ; then
31489
31490 for ac_header in slp.h
31491 do
31492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31494   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31497   echo $ECHO_N "(cached) $ECHO_C" >&6
31498 fi
31499 ac_res=`eval echo '${'$as_ac_Header'}'`
31500                { echo "$as_me:$LINENO: result: $ac_res" >&5
31501 echo "${ECHO_T}$ac_res" >&6; }
31502 else
31503   # Is the header compilable?
31504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31506 cat >conftest.$ac_ext <<_ACEOF
31507 /* confdefs.h.  */
31508 _ACEOF
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h.  */
31512 $ac_includes_default
31513 #include <$ac_header>
31514 _ACEOF
31515 rm -f conftest.$ac_objext
31516 if { (ac_try="$ac_compile"
31517 case "(($ac_try" in
31518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31519   *) ac_try_echo=$ac_try;;
31520 esac
31521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31522   (eval "$ac_compile") 2>conftest.er1
31523   ac_status=$?
31524   grep -v '^ *+' conftest.er1 >conftest.err
31525   rm -f conftest.er1
31526   cat conftest.err >&5
31527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528   (exit $ac_status); } && {
31529          test -z "$ac_c_werror_flag" ||
31530          test ! -s conftest.err
31531        } && test -s conftest.$ac_objext; then
31532   ac_header_compiler=yes
31533 else
31534   echo "$as_me: failed program was:" >&5
31535 sed 's/^/| /' conftest.$ac_ext >&5
31536
31537         ac_header_compiler=no
31538 fi
31539
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31542 echo "${ECHO_T}$ac_header_compiler" >&6; }
31543
31544 # Is the header present?
31545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31547 cat >conftest.$ac_ext <<_ACEOF
31548 /* confdefs.h.  */
31549 _ACEOF
31550 cat confdefs.h >>conftest.$ac_ext
31551 cat >>conftest.$ac_ext <<_ACEOF
31552 /* end confdefs.h.  */
31553 #include <$ac_header>
31554 _ACEOF
31555 if { (ac_try="$ac_cpp conftest.$ac_ext"
31556 case "(($ac_try" in
31557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558   *) ac_try_echo=$ac_try;;
31559 esac
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31562   ac_status=$?
31563   grep -v '^ *+' conftest.er1 >conftest.err
31564   rm -f conftest.er1
31565   cat conftest.err >&5
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); } >/dev/null && {
31568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31569          test ! -s conftest.err
31570        }; then
31571   ac_header_preproc=yes
31572 else
31573   echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31575
31576   ac_header_preproc=no
31577 fi
31578
31579 rm -f conftest.err conftest.$ac_ext
31580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31581 echo "${ECHO_T}$ac_header_preproc" >&6; }
31582
31583 # So?  What about this header?
31584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31585   yes:no: )
31586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31590     ac_header_preproc=yes
31591     ;;
31592   no:yes:* )
31593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31605     ( cat <<\_ASBOX
31606 ## --------------------------------------------- ##
31607 ## Report this to <http://www.openldap.org/its/> ##
31608 ## --------------------------------------------- ##
31609 _ASBOX
31610      ) | sed "s/^/$as_me: WARNING:     /" >&2
31611     ;;
31612 esac
31613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31616   echo $ECHO_N "(cached) $ECHO_C" >&6
31617 else
31618   eval "$as_ac_Header=\$ac_header_preproc"
31619 fi
31620 ac_res=`eval echo '${'$as_ac_Header'}'`
31621                { echo "$as_me:$LINENO: result: $ac_res" >&5
31622 echo "${ECHO_T}$ac_res" >&6; }
31623
31624 fi
31625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31626   cat >>confdefs.h <<_ACEOF
31627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31628 _ACEOF
31629
31630 fi
31631
31632 done
31633
31634
31635         if test $ac_cv_header_slp_h = yes ; then
31636                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31637 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31638 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31639   echo $ECHO_N "(cached) $ECHO_C" >&6
31640 else
31641   ac_check_lib_save_LIBS=$LIBS
31642 LIBS="-lslp  $LIBS"
31643 cat >conftest.$ac_ext <<_ACEOF
31644 /* confdefs.h.  */
31645 _ACEOF
31646 cat confdefs.h >>conftest.$ac_ext
31647 cat >>conftest.$ac_ext <<_ACEOF
31648 /* end confdefs.h.  */
31649
31650 /* Override any GCC internal prototype to avoid an error.
31651    Use char because int might match the return type of a GCC
31652    builtin and then its argument prototype would still apply.  */
31653 #ifdef __cplusplus
31654 extern "C"
31655 #endif
31656 char SLPOpen ();
31657 int
31658 main ()
31659 {
31660 return SLPOpen ();
31661   ;
31662   return 0;
31663 }
31664 _ACEOF
31665 rm -f conftest.$ac_objext conftest$ac_exeext
31666 if { (ac_try="$ac_link"
31667 case "(($ac_try" in
31668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669   *) ac_try_echo=$ac_try;;
31670 esac
31671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672   (eval "$ac_link") 2>conftest.er1
31673   ac_status=$?
31674   grep -v '^ *+' conftest.er1 >conftest.err
31675   rm -f conftest.er1
31676   cat conftest.err >&5
31677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678   (exit $ac_status); } && {
31679          test -z "$ac_c_werror_flag" ||
31680          test ! -s conftest.err
31681        } && test -s conftest$ac_exeext &&
31682        $as_test_x conftest$ac_exeext; then
31683   ac_cv_lib_slp_SLPOpen=yes
31684 else
31685   echo "$as_me: failed program was:" >&5
31686 sed 's/^/| /' conftest.$ac_ext >&5
31687
31688         ac_cv_lib_slp_SLPOpen=no
31689 fi
31690
31691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31692       conftest$ac_exeext conftest.$ac_ext
31693 LIBS=$ac_check_lib_save_LIBS
31694 fi
31695 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31696 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31697 if test $ac_cv_lib_slp_SLPOpen = yes; then
31698   have_slp=yes
31699 else
31700   have_slp=no
31701 fi
31702
31703                 if test $have_slp = yes ; then
31704
31705 cat >>confdefs.h <<\_ACEOF
31706 #define HAVE_SLP 1
31707 _ACEOF
31708
31709                         SLAPD_SLP_LIBS=-lslp
31710                 fi
31711
31712         elif test $ol_enable_slp = yes ; then
31713                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31714 echo "$as_me: error: SLP not found" >&2;}
31715    { (exit 1); exit 1; }; }
31716         fi
31717 fi
31718
31719
31720 { echo "$as_me:$LINENO: checking for mode_t" >&5
31721 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31722 if test "${ac_cv_type_mode_t+set}" = set; then
31723   echo $ECHO_N "(cached) $ECHO_C" >&6
31724 else
31725   cat >conftest.$ac_ext <<_ACEOF
31726 /* confdefs.h.  */
31727 _ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h.  */
31731 $ac_includes_default
31732 typedef mode_t ac__type_new_;
31733 int
31734 main ()
31735 {
31736 if ((ac__type_new_ *) 0)
31737   return 0;
31738 if (sizeof (ac__type_new_))
31739   return 0;
31740   ;
31741   return 0;
31742 }
31743 _ACEOF
31744 rm -f conftest.$ac_objext
31745 if { (ac_try="$ac_compile"
31746 case "(($ac_try" in
31747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748   *) ac_try_echo=$ac_try;;
31749 esac
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751   (eval "$ac_compile") 2>conftest.er1
31752   ac_status=$?
31753   grep -v '^ *+' conftest.er1 >conftest.err
31754   rm -f conftest.er1
31755   cat conftest.err >&5
31756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757   (exit $ac_status); } && {
31758          test -z "$ac_c_werror_flag" ||
31759          test ! -s conftest.err
31760        } && test -s conftest.$ac_objext; then
31761   ac_cv_type_mode_t=yes
31762 else
31763   echo "$as_me: failed program was:" >&5
31764 sed 's/^/| /' conftest.$ac_ext >&5
31765
31766         ac_cv_type_mode_t=no
31767 fi
31768
31769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31770 fi
31771 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31772 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31773 if test $ac_cv_type_mode_t = yes; then
31774   :
31775 else
31776
31777 cat >>confdefs.h <<_ACEOF
31778 #define mode_t int
31779 _ACEOF
31780
31781 fi
31782
31783 { echo "$as_me:$LINENO: checking for off_t" >&5
31784 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31785 if test "${ac_cv_type_off_t+set}" = set; then
31786   echo $ECHO_N "(cached) $ECHO_C" >&6
31787 else
31788   cat >conftest.$ac_ext <<_ACEOF
31789 /* confdefs.h.  */
31790 _ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h.  */
31794 $ac_includes_default
31795 typedef off_t ac__type_new_;
31796 int
31797 main ()
31798 {
31799 if ((ac__type_new_ *) 0)
31800   return 0;
31801 if (sizeof (ac__type_new_))
31802   return 0;
31803   ;
31804   return 0;
31805 }
31806 _ACEOF
31807 rm -f conftest.$ac_objext
31808 if { (ac_try="$ac_compile"
31809 case "(($ac_try" in
31810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811   *) ac_try_echo=$ac_try;;
31812 esac
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814   (eval "$ac_compile") 2>conftest.er1
31815   ac_status=$?
31816   grep -v '^ *+' conftest.er1 >conftest.err
31817   rm -f conftest.er1
31818   cat conftest.err >&5
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); } && {
31821          test -z "$ac_c_werror_flag" ||
31822          test ! -s conftest.err
31823        } && test -s conftest.$ac_objext; then
31824   ac_cv_type_off_t=yes
31825 else
31826   echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31828
31829         ac_cv_type_off_t=no
31830 fi
31831
31832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31833 fi
31834 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31835 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31836 if test $ac_cv_type_off_t = yes; then
31837   :
31838 else
31839
31840 cat >>confdefs.h <<_ACEOF
31841 #define off_t long
31842 _ACEOF
31843
31844 fi
31845
31846 { echo "$as_me:$LINENO: checking for pid_t" >&5
31847 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31848 if test "${ac_cv_type_pid_t+set}" = set; then
31849   echo $ECHO_N "(cached) $ECHO_C" >&6
31850 else
31851   cat >conftest.$ac_ext <<_ACEOF
31852 /* confdefs.h.  */
31853 _ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h.  */
31857 $ac_includes_default
31858 typedef pid_t ac__type_new_;
31859 int
31860 main ()
31861 {
31862 if ((ac__type_new_ *) 0)
31863   return 0;
31864 if (sizeof (ac__type_new_))
31865   return 0;
31866   ;
31867   return 0;
31868 }
31869 _ACEOF
31870 rm -f conftest.$ac_objext
31871 if { (ac_try="$ac_compile"
31872 case "(($ac_try" in
31873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874   *) ac_try_echo=$ac_try;;
31875 esac
31876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31877   (eval "$ac_compile") 2>conftest.er1
31878   ac_status=$?
31879   grep -v '^ *+' conftest.er1 >conftest.err
31880   rm -f conftest.er1
31881   cat conftest.err >&5
31882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883   (exit $ac_status); } && {
31884          test -z "$ac_c_werror_flag" ||
31885          test ! -s conftest.err
31886        } && test -s conftest.$ac_objext; then
31887   ac_cv_type_pid_t=yes
31888 else
31889   echo "$as_me: failed program was:" >&5
31890 sed 's/^/| /' conftest.$ac_ext >&5
31891
31892         ac_cv_type_pid_t=no
31893 fi
31894
31895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31896 fi
31897 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31898 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31899 if test $ac_cv_type_pid_t = yes; then
31900   :
31901 else
31902
31903 cat >>confdefs.h <<_ACEOF
31904 #define pid_t int
31905 _ACEOF
31906
31907 fi
31908
31909 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31910 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31911 if test "${ac_cv_type_ssize_t+set}" = set; then
31912   echo $ECHO_N "(cached) $ECHO_C" >&6
31913 else
31914   cat >conftest.$ac_ext <<_ACEOF
31915 /* confdefs.h.  */
31916 _ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h.  */
31920 $ac_includes_default
31921 typedef ssize_t ac__type_new_;
31922 int
31923 main ()
31924 {
31925 if ((ac__type_new_ *) 0)
31926   return 0;
31927 if (sizeof (ac__type_new_))
31928   return 0;
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_compile") 2>conftest.er1
31941   ac_status=$?
31942   grep -v '^ *+' conftest.er1 >conftest.err
31943   rm -f conftest.er1
31944   cat conftest.err >&5
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); } && {
31947          test -z "$ac_c_werror_flag" ||
31948          test ! -s conftest.err
31949        } && test -s conftest.$ac_objext; then
31950   ac_cv_type_ssize_t=yes
31951 else
31952   echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31954
31955         ac_cv_type_ssize_t=no
31956 fi
31957
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 fi
31960 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31961 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31962 if test $ac_cv_type_ssize_t = yes; then
31963   :
31964 else
31965
31966 cat >>confdefs.h <<_ACEOF
31967 #define ssize_t signed int
31968 _ACEOF
31969
31970 fi
31971
31972 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31973 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31974 if test "${ac_cv_type_caddr_t+set}" = set; then
31975   echo $ECHO_N "(cached) $ECHO_C" >&6
31976 else
31977   cat >conftest.$ac_ext <<_ACEOF
31978 /* confdefs.h.  */
31979 _ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h.  */
31983 $ac_includes_default
31984 typedef caddr_t ac__type_new_;
31985 int
31986 main ()
31987 {
31988 if ((ac__type_new_ *) 0)
31989   return 0;
31990 if (sizeof (ac__type_new_))
31991   return 0;
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext
31997 if { (ac_try="$ac_compile"
31998 case "(($ac_try" in
31999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000   *) ac_try_echo=$ac_try;;
32001 esac
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003   (eval "$ac_compile") 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } && {
32010          test -z "$ac_c_werror_flag" ||
32011          test ! -s conftest.err
32012        } && test -s conftest.$ac_objext; then
32013   ac_cv_type_caddr_t=yes
32014 else
32015   echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32017
32018         ac_cv_type_caddr_t=no
32019 fi
32020
32021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32022 fi
32023 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32024 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32025 if test $ac_cv_type_caddr_t = yes; then
32026   :
32027 else
32028
32029 cat >>confdefs.h <<_ACEOF
32030 #define caddr_t char *
32031 _ACEOF
32032
32033 fi
32034
32035 { echo "$as_me:$LINENO: checking for size_t" >&5
32036 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32037 if test "${ac_cv_type_size_t+set}" = set; then
32038   echo $ECHO_N "(cached) $ECHO_C" >&6
32039 else
32040   cat >conftest.$ac_ext <<_ACEOF
32041 /* confdefs.h.  */
32042 _ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h.  */
32046 $ac_includes_default
32047 typedef size_t ac__type_new_;
32048 int
32049 main ()
32050 {
32051 if ((ac__type_new_ *) 0)
32052   return 0;
32053 if (sizeof (ac__type_new_))
32054   return 0;
32055   ;
32056   return 0;
32057 }
32058 _ACEOF
32059 rm -f conftest.$ac_objext
32060 if { (ac_try="$ac_compile"
32061 case "(($ac_try" in
32062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063   *) ac_try_echo=$ac_try;;
32064 esac
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066   (eval "$ac_compile") 2>conftest.er1
32067   ac_status=$?
32068   grep -v '^ *+' conftest.er1 >conftest.err
32069   rm -f conftest.er1
32070   cat conftest.err >&5
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); } && {
32073          test -z "$ac_c_werror_flag" ||
32074          test ! -s conftest.err
32075        } && test -s conftest.$ac_objext; then
32076   ac_cv_type_size_t=yes
32077 else
32078   echo "$as_me: failed program was:" >&5
32079 sed 's/^/| /' conftest.$ac_ext >&5
32080
32081         ac_cv_type_size_t=no
32082 fi
32083
32084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32085 fi
32086 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32087 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32088 if test $ac_cv_type_size_t = yes; then
32089   :
32090 else
32091
32092 cat >>confdefs.h <<_ACEOF
32093 #define size_t unsigned
32094 _ACEOF
32095
32096 fi
32097
32098
32099 { echo "$as_me:$LINENO: checking for long long" >&5
32100 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32101 if test "${ac_cv_type_long_long+set}" = set; then
32102   echo $ECHO_N "(cached) $ECHO_C" >&6
32103 else
32104   cat >conftest.$ac_ext <<_ACEOF
32105 /* confdefs.h.  */
32106 _ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h.  */
32110 $ac_includes_default
32111 typedef long long ac__type_new_;
32112 int
32113 main ()
32114 {
32115 if ((ac__type_new_ *) 0)
32116   return 0;
32117 if (sizeof (ac__type_new_))
32118   return 0;
32119   ;
32120   return 0;
32121 }
32122 _ACEOF
32123 rm -f conftest.$ac_objext
32124 if { (ac_try="$ac_compile"
32125 case "(($ac_try" in
32126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32127   *) ac_try_echo=$ac_try;;
32128 esac
32129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32130   (eval "$ac_compile") 2>conftest.er1
32131   ac_status=$?
32132   grep -v '^ *+' conftest.er1 >conftest.err
32133   rm -f conftest.er1
32134   cat conftest.err >&5
32135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136   (exit $ac_status); } && {
32137          test -z "$ac_c_werror_flag" ||
32138          test ! -s conftest.err
32139        } && test -s conftest.$ac_objext; then
32140   ac_cv_type_long_long=yes
32141 else
32142   echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32144
32145         ac_cv_type_long_long=no
32146 fi
32147
32148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32149 fi
32150 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32151 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32152 if test $ac_cv_type_long_long = yes; then
32153
32154 cat >>confdefs.h <<_ACEOF
32155 #define HAVE_LONG_LONG 1
32156 _ACEOF
32157
32158
32159 fi
32160
32161 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32162 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32163 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32164   echo $ECHO_N "(cached) $ECHO_C" >&6
32165 else
32166   cat >conftest.$ac_ext <<_ACEOF
32167 /* confdefs.h.  */
32168 _ACEOF
32169 cat confdefs.h >>conftest.$ac_ext
32170 cat >>conftest.$ac_ext <<_ACEOF
32171 /* end confdefs.h.  */
32172 $ac_includes_default
32173 typedef ptrdiff_t ac__type_new_;
32174 int
32175 main ()
32176 {
32177 if ((ac__type_new_ *) 0)
32178   return 0;
32179 if (sizeof (ac__type_new_))
32180   return 0;
32181   ;
32182   return 0;
32183 }
32184 _ACEOF
32185 rm -f conftest.$ac_objext
32186 if { (ac_try="$ac_compile"
32187 case "(($ac_try" in
32188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32189   *) ac_try_echo=$ac_try;;
32190 esac
32191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32192   (eval "$ac_compile") 2>conftest.er1
32193   ac_status=$?
32194   grep -v '^ *+' conftest.er1 >conftest.err
32195   rm -f conftest.er1
32196   cat conftest.err >&5
32197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198   (exit $ac_status); } && {
32199          test -z "$ac_c_werror_flag" ||
32200          test ! -s conftest.err
32201        } && test -s conftest.$ac_objext; then
32202   ac_cv_type_ptrdiff_t=yes
32203 else
32204   echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32206
32207         ac_cv_type_ptrdiff_t=no
32208 fi
32209
32210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32211 fi
32212 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32213 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32214 if test $ac_cv_type_ptrdiff_t = yes; then
32215
32216 cat >>confdefs.h <<_ACEOF
32217 #define HAVE_PTRDIFF_T 1
32218 _ACEOF
32219
32220
32221 fi
32222
32223
32224
32225 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32226 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32227 if test "${ac_cv_type_socklen_t+set}" = set; then
32228   echo $ECHO_N "(cached) $ECHO_C" >&6
32229 else
32230   cat >conftest.$ac_ext <<_ACEOF
32231 /* confdefs.h.  */
32232 _ACEOF
32233 cat confdefs.h >>conftest.$ac_ext
32234 cat >>conftest.$ac_ext <<_ACEOF
32235 /* end confdefs.h.  */
32236 $ac_includes_default
32237 #ifdef HAVE_SYS_SOCKET_H
32238 #include <sys/socket.h>
32239 #endif
32240
32241 typedef socklen_t ac__type_new_;
32242 int
32243 main ()
32244 {
32245 if ((ac__type_new_ *) 0)
32246   return 0;
32247 if (sizeof (ac__type_new_))
32248   return 0;
32249   ;
32250   return 0;
32251 }
32252 _ACEOF
32253 rm -f conftest.$ac_objext
32254 if { (ac_try="$ac_compile"
32255 case "(($ac_try" in
32256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257   *) ac_try_echo=$ac_try;;
32258 esac
32259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260   (eval "$ac_compile") 2>conftest.er1
32261   ac_status=$?
32262   grep -v '^ *+' conftest.er1 >conftest.err
32263   rm -f conftest.er1
32264   cat conftest.err >&5
32265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266   (exit $ac_status); } && {
32267          test -z "$ac_c_werror_flag" ||
32268          test ! -s conftest.err
32269        } && test -s conftest.$ac_objext; then
32270   ac_cv_type_socklen_t=yes
32271 else
32272   echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275         ac_cv_type_socklen_t=no
32276 fi
32277
32278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32279 fi
32280 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32281 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32282
32283
32284 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32285 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32286 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32287   echo $ECHO_N "(cached) $ECHO_C" >&6
32288 else
32289
32290         set socklen_t int unsigned "unsigned long" long size_t
32291         test "$ac_cv_type_socklen_t" = yes || shift
32292         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32293         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32294                 cat >conftest.$ac_ext <<_ACEOF
32295 /* confdefs.h.  */
32296 _ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h.  */
32300 $ac_includes_default
32301 #ifdef HAVE_SYS_SOCKET_H
32302 #include <sys/socket.h>
32303 #endif
32304 extern int accept(int s, $addrtype *ap, $lentype *lp);
32305
32306 int
32307 main ()
32308 {
32309
32310 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32311
32312   ;
32313   return 0;
32314 }
32315 _ACEOF
32316 rm -f conftest.$ac_objext
32317 if { (ac_try="$ac_compile"
32318 case "(($ac_try" in
32319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320   *) ac_try_echo=$ac_try;;
32321 esac
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323   (eval "$ac_compile") 2>conftest.er1
32324   ac_status=$?
32325   grep -v '^ *+' conftest.er1 >conftest.err
32326   rm -f conftest.er1
32327   cat conftest.err >&5
32328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329   (exit $ac_status); } && {
32330          test -z "$ac_c_werror_flag" ||
32331          test ! -s conftest.err
32332        } && test -s conftest.$ac_objext; then
32333   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32334 else
32335   echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32337
32338
32339 fi
32340
32341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32342         done ; done
32343 fi
32344
32345 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32346 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32347
32348 cat >>confdefs.h <<_ACEOF
32349 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32350 _ACEOF
32351
32352
32353 if test "$ac_cv_type_socklen_t" != yes; then
32354
32355 cat >>confdefs.h <<_ACEOF
32356 #define socklen_t $ol_cv_type_ber_socklen_t
32357 _ACEOF
32358
32359 fi
32360
32361
32362 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32363 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32364 if test "${ac_cv_type_signal+set}" = set; then
32365   echo $ECHO_N "(cached) $ECHO_C" >&6
32366 else
32367   cat >conftest.$ac_ext <<_ACEOF
32368 /* confdefs.h.  */
32369 _ACEOF
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h.  */
32373 #include <sys/types.h>
32374 #include <signal.h>
32375
32376 int
32377 main ()
32378 {
32379 return *(signal (0, 0)) (0) == 1;
32380   ;
32381   return 0;
32382 }
32383 _ACEOF
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388   *) ac_try_echo=$ac_try;;
32389 esac
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391   (eval "$ac_compile") 2>conftest.er1
32392   ac_status=$?
32393   grep -v '^ *+' conftest.er1 >conftest.err
32394   rm -f conftest.er1
32395   cat conftest.err >&5
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); } && {
32398          test -z "$ac_c_werror_flag" ||
32399          test ! -s conftest.err
32400        } && test -s conftest.$ac_objext; then
32401   ac_cv_type_signal=int
32402 else
32403   echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32405
32406         ac_cv_type_signal=void
32407 fi
32408
32409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32410 fi
32411 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32412 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32413
32414 cat >>confdefs.h <<_ACEOF
32415 #define RETSIGTYPE $ac_cv_type_signal
32416 _ACEOF
32417
32418
32419
32420 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32421 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32422 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32423   echo $ECHO_N "(cached) $ECHO_C" >&6
32424 else
32425   cat >conftest.$ac_ext <<_ACEOF
32426 /* confdefs.h.  */
32427 _ACEOF
32428 cat confdefs.h >>conftest.$ac_ext
32429 cat >>conftest.$ac_ext <<_ACEOF
32430 /* end confdefs.h.  */
32431 $ac_includes_default
32432 #include <signal.h>
32433
32434
32435 typedef sig_atomic_t ac__type_new_;
32436 int
32437 main ()
32438 {
32439 if ((ac__type_new_ *) 0)
32440   return 0;
32441 if (sizeof (ac__type_new_))
32442   return 0;
32443   ;
32444   return 0;
32445 }
32446 _ACEOF
32447 rm -f conftest.$ac_objext
32448 if { (ac_try="$ac_compile"
32449 case "(($ac_try" in
32450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32451   *) ac_try_echo=$ac_try;;
32452 esac
32453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32454   (eval "$ac_compile") 2>conftest.er1
32455   ac_status=$?
32456   grep -v '^ *+' conftest.er1 >conftest.err
32457   rm -f conftest.er1
32458   cat conftest.err >&5
32459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460   (exit $ac_status); } && {
32461          test -z "$ac_c_werror_flag" ||
32462          test ! -s conftest.err
32463        } && test -s conftest.$ac_objext; then
32464   ac_cv_type_sig_atomic_t=yes
32465 else
32466   echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32468
32469         ac_cv_type_sig_atomic_t=no
32470 fi
32471
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473 fi
32474 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32475 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32476 if test $ac_cv_type_sig_atomic_t = yes; then
32477   :
32478 else
32479
32480 cat >>confdefs.h <<_ACEOF
32481 #define sig_atomic_t int
32482 _ACEOF
32483
32484 fi
32485
32486
32487 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32488 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32489 if test "${ac_cv_type_uid_t+set}" = set; then
32490   echo $ECHO_N "(cached) $ECHO_C" >&6
32491 else
32492   cat >conftest.$ac_ext <<_ACEOF
32493 /* confdefs.h.  */
32494 _ACEOF
32495 cat confdefs.h >>conftest.$ac_ext
32496 cat >>conftest.$ac_ext <<_ACEOF
32497 /* end confdefs.h.  */
32498 #include <sys/types.h>
32499
32500 _ACEOF
32501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32502   $EGREP "uid_t" >/dev/null 2>&1; then
32503   ac_cv_type_uid_t=yes
32504 else
32505   ac_cv_type_uid_t=no
32506 fi
32507 rm -f conftest*
32508
32509 fi
32510 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32511 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32512 if test $ac_cv_type_uid_t = no; then
32513
32514 cat >>confdefs.h <<\_ACEOF
32515 #define uid_t int
32516 _ACEOF
32517
32518
32519 cat >>confdefs.h <<\_ACEOF
32520 #define gid_t int
32521 _ACEOF
32522
32523 fi
32524
32525
32526 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32527 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32528 if test "${ac_cv_header_time+set}" = set; then
32529   echo $ECHO_N "(cached) $ECHO_C" >&6
32530 else
32531   cat >conftest.$ac_ext <<_ACEOF
32532 /* confdefs.h.  */
32533 _ACEOF
32534 cat confdefs.h >>conftest.$ac_ext
32535 cat >>conftest.$ac_ext <<_ACEOF
32536 /* end confdefs.h.  */
32537 #include <sys/types.h>
32538 #include <sys/time.h>
32539 #include <time.h>
32540
32541 int
32542 main ()
32543 {
32544 if ((struct tm *) 0)
32545 return 0;
32546   ;
32547   return 0;
32548 }
32549 _ACEOF
32550 rm -f conftest.$ac_objext
32551 if { (ac_try="$ac_compile"
32552 case "(($ac_try" in
32553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554   *) ac_try_echo=$ac_try;;
32555 esac
32556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557   (eval "$ac_compile") 2>conftest.er1
32558   ac_status=$?
32559   grep -v '^ *+' conftest.er1 >conftest.err
32560   rm -f conftest.er1
32561   cat conftest.err >&5
32562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563   (exit $ac_status); } && {
32564          test -z "$ac_c_werror_flag" ||
32565          test ! -s conftest.err
32566        } && test -s conftest.$ac_objext; then
32567   ac_cv_header_time=yes
32568 else
32569   echo "$as_me: failed program was:" >&5
32570 sed 's/^/| /' conftest.$ac_ext >&5
32571
32572         ac_cv_header_time=no
32573 fi
32574
32575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32576 fi
32577 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32578 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32579 if test $ac_cv_header_time = yes; then
32580
32581 cat >>confdefs.h <<\_ACEOF
32582 #define TIME_WITH_SYS_TIME 1
32583 _ACEOF
32584
32585 fi
32586
32587 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32588 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32589 if test "${ac_cv_struct_tm+set}" = set; then
32590   echo $ECHO_N "(cached) $ECHO_C" >&6
32591 else
32592   cat >conftest.$ac_ext <<_ACEOF
32593 /* confdefs.h.  */
32594 _ACEOF
32595 cat confdefs.h >>conftest.$ac_ext
32596 cat >>conftest.$ac_ext <<_ACEOF
32597 /* end confdefs.h.  */
32598 #include <sys/types.h>
32599 #include <time.h>
32600
32601 int
32602 main ()
32603 {
32604 struct tm tm;
32605                                      int *p = &tm.tm_sec;
32606                                      return !p;
32607   ;
32608   return 0;
32609 }
32610 _ACEOF
32611 rm -f conftest.$ac_objext
32612 if { (ac_try="$ac_compile"
32613 case "(($ac_try" in
32614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615   *) ac_try_echo=$ac_try;;
32616 esac
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618   (eval "$ac_compile") 2>conftest.er1
32619   ac_status=$?
32620   grep -v '^ *+' conftest.er1 >conftest.err
32621   rm -f conftest.er1
32622   cat conftest.err >&5
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); } && {
32625          test -z "$ac_c_werror_flag" ||
32626          test ! -s conftest.err
32627        } && test -s conftest.$ac_objext; then
32628   ac_cv_struct_tm=time.h
32629 else
32630   echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32632
32633         ac_cv_struct_tm=sys/time.h
32634 fi
32635
32636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32637 fi
32638 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32639 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32640 if test $ac_cv_struct_tm = sys/time.h; then
32641
32642 cat >>confdefs.h <<\_ACEOF
32643 #define TM_IN_SYS_TIME 1
32644 _ACEOF
32645
32646 fi
32647
32648 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32649 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32650 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32651   echo $ECHO_N "(cached) $ECHO_C" >&6
32652 else
32653   cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659 $ac_includes_default
32660 int
32661 main ()
32662 {
32663 static struct stat ac_aggr;
32664 if (ac_aggr.st_blksize)
32665 return 0;
32666   ;
32667   return 0;
32668 }
32669 _ACEOF
32670 rm -f conftest.$ac_objext
32671 if { (ac_try="$ac_compile"
32672 case "(($ac_try" in
32673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674   *) ac_try_echo=$ac_try;;
32675 esac
32676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677   (eval "$ac_compile") 2>conftest.er1
32678   ac_status=$?
32679   grep -v '^ *+' conftest.er1 >conftest.err
32680   rm -f conftest.er1
32681   cat conftest.err >&5
32682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683   (exit $ac_status); } && {
32684          test -z "$ac_c_werror_flag" ||
32685          test ! -s conftest.err
32686        } && test -s conftest.$ac_objext; then
32687   ac_cv_member_struct_stat_st_blksize=yes
32688 else
32689   echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692         cat >conftest.$ac_ext <<_ACEOF
32693 /* confdefs.h.  */
32694 _ACEOF
32695 cat confdefs.h >>conftest.$ac_ext
32696 cat >>conftest.$ac_ext <<_ACEOF
32697 /* end confdefs.h.  */
32698 $ac_includes_default
32699 int
32700 main ()
32701 {
32702 static struct stat ac_aggr;
32703 if (sizeof ac_aggr.st_blksize)
32704 return 0;
32705   ;
32706   return 0;
32707 }
32708 _ACEOF
32709 rm -f conftest.$ac_objext
32710 if { (ac_try="$ac_compile"
32711 case "(($ac_try" in
32712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713   *) ac_try_echo=$ac_try;;
32714 esac
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716   (eval "$ac_compile") 2>conftest.er1
32717   ac_status=$?
32718   grep -v '^ *+' conftest.er1 >conftest.err
32719   rm -f conftest.er1
32720   cat conftest.err >&5
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); } && {
32723          test -z "$ac_c_werror_flag" ||
32724          test ! -s conftest.err
32725        } && test -s conftest.$ac_objext; then
32726   ac_cv_member_struct_stat_st_blksize=yes
32727 else
32728   echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32730
32731         ac_cv_member_struct_stat_st_blksize=no
32732 fi
32733
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735 fi
32736
32737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32738 fi
32739 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32740 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32741 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32742
32743 cat >>confdefs.h <<_ACEOF
32744 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32745 _ACEOF
32746
32747
32748 fi
32749
32750 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32751 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32752 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32753   echo $ECHO_N "(cached) $ECHO_C" >&6
32754 else
32755   cat >conftest.$ac_ext <<_ACEOF
32756 /* confdefs.h.  */
32757 _ACEOF
32758 cat confdefs.h >>conftest.$ac_ext
32759 cat >>conftest.$ac_ext <<_ACEOF
32760 /* end confdefs.h.  */
32761 $ac_includes_default
32762 #include <pwd.h>
32763
32764 int
32765 main ()
32766 {
32767 static struct passwd ac_aggr;
32768 if (ac_aggr.pw_gecos)
32769 return 0;
32770   ;
32771   return 0;
32772 }
32773 _ACEOF
32774 rm -f conftest.$ac_objext
32775 if { (ac_try="$ac_compile"
32776 case "(($ac_try" in
32777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778   *) ac_try_echo=$ac_try;;
32779 esac
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781   (eval "$ac_compile") 2>conftest.er1
32782   ac_status=$?
32783   grep -v '^ *+' conftest.er1 >conftest.err
32784   rm -f conftest.er1
32785   cat conftest.err >&5
32786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787   (exit $ac_status); } && {
32788          test -z "$ac_c_werror_flag" ||
32789          test ! -s conftest.err
32790        } && test -s conftest.$ac_objext; then
32791   ac_cv_member_struct_passwd_pw_gecos=yes
32792 else
32793   echo "$as_me: failed program was:" >&5
32794 sed 's/^/| /' conftest.$ac_ext >&5
32795
32796         cat >conftest.$ac_ext <<_ACEOF
32797 /* confdefs.h.  */
32798 _ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h.  */
32802 $ac_includes_default
32803 #include <pwd.h>
32804
32805 int
32806 main ()
32807 {
32808 static struct passwd ac_aggr;
32809 if (sizeof ac_aggr.pw_gecos)
32810 return 0;
32811   ;
32812   return 0;
32813 }
32814 _ACEOF
32815 rm -f conftest.$ac_objext
32816 if { (ac_try="$ac_compile"
32817 case "(($ac_try" in
32818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819   *) ac_try_echo=$ac_try;;
32820 esac
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822   (eval "$ac_compile") 2>conftest.er1
32823   ac_status=$?
32824   grep -v '^ *+' conftest.er1 >conftest.err
32825   rm -f conftest.er1
32826   cat conftest.err >&5
32827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828   (exit $ac_status); } && {
32829          test -z "$ac_c_werror_flag" ||
32830          test ! -s conftest.err
32831        } && test -s conftest.$ac_objext; then
32832   ac_cv_member_struct_passwd_pw_gecos=yes
32833 else
32834   echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32836
32837         ac_cv_member_struct_passwd_pw_gecos=no
32838 fi
32839
32840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32841 fi
32842
32843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32844 fi
32845 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32846 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32847 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32848
32849 cat >>confdefs.h <<_ACEOF
32850 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32851 _ACEOF
32852
32853
32854 fi
32855
32856 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32857 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32858 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32859   echo $ECHO_N "(cached) $ECHO_C" >&6
32860 else
32861   cat >conftest.$ac_ext <<_ACEOF
32862 /* confdefs.h.  */
32863 _ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h.  */
32867 $ac_includes_default
32868 #include <pwd.h>
32869
32870 int
32871 main ()
32872 {
32873 static struct passwd ac_aggr;
32874 if (ac_aggr.pw_passwd)
32875 return 0;
32876   ;
32877   return 0;
32878 }
32879 _ACEOF
32880 rm -f conftest.$ac_objext
32881 if { (ac_try="$ac_compile"
32882 case "(($ac_try" in
32883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884   *) ac_try_echo=$ac_try;;
32885 esac
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887   (eval "$ac_compile") 2>conftest.er1
32888   ac_status=$?
32889   grep -v '^ *+' conftest.er1 >conftest.err
32890   rm -f conftest.er1
32891   cat conftest.err >&5
32892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893   (exit $ac_status); } && {
32894          test -z "$ac_c_werror_flag" ||
32895          test ! -s conftest.err
32896        } && test -s conftest.$ac_objext; then
32897   ac_cv_member_struct_passwd_pw_passwd=yes
32898 else
32899   echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32901
32902         cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h.  */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h.  */
32908 $ac_includes_default
32909 #include <pwd.h>
32910
32911 int
32912 main ()
32913 {
32914 static struct passwd ac_aggr;
32915 if (sizeof ac_aggr.pw_passwd)
32916 return 0;
32917   ;
32918   return 0;
32919 }
32920 _ACEOF
32921 rm -f conftest.$ac_objext
32922 if { (ac_try="$ac_compile"
32923 case "(($ac_try" in
32924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925   *) ac_try_echo=$ac_try;;
32926 esac
32927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928   (eval "$ac_compile") 2>conftest.er1
32929   ac_status=$?
32930   grep -v '^ *+' conftest.er1 >conftest.err
32931   rm -f conftest.er1
32932   cat conftest.err >&5
32933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934   (exit $ac_status); } && {
32935          test -z "$ac_c_werror_flag" ||
32936          test ! -s conftest.err
32937        } && test -s conftest.$ac_objext; then
32938   ac_cv_member_struct_passwd_pw_passwd=yes
32939 else
32940   echo "$as_me: failed program was:" >&5
32941 sed 's/^/| /' conftest.$ac_ext >&5
32942
32943         ac_cv_member_struct_passwd_pw_passwd=no
32944 fi
32945
32946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32947 fi
32948
32949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32950 fi
32951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32952 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32953 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32954
32955 cat >>confdefs.h <<_ACEOF
32956 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32957 _ACEOF
32958
32959
32960 fi
32961
32962
32963 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32964 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32965 if test "${ol_cv_c_upper_lower+set}" = set; then
32966   echo $ECHO_N "(cached) $ECHO_C" >&6
32967 else
32968
32969         if test "$cross_compiling" = yes; then
32970   ol_cv_c_upper_lower=safe
32971 else
32972   cat >conftest.$ac_ext <<_ACEOF
32973 /* confdefs.h.  */
32974 _ACEOF
32975 cat confdefs.h >>conftest.$ac_ext
32976 cat >>conftest.$ac_ext <<_ACEOF
32977 /* end confdefs.h.  */
32978
32979 #include <ctype.h>
32980 main()
32981 {
32982         if ('C' == toupper('C'))
32983                 exit(0);
32984         else
32985                 exit(1);
32986 }
32987 _ACEOF
32988 rm -f conftest$ac_exeext
32989 if { (ac_try="$ac_link"
32990 case "(($ac_try" in
32991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992   *) ac_try_echo=$ac_try;;
32993 esac
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995   (eval "$ac_link") 2>&5
32996   ac_status=$?
32997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32999   { (case "(($ac_try" in
33000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001   *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004   (eval "$ac_try") 2>&5
33005   ac_status=$?
33006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007   (exit $ac_status); }; }; then
33008   ol_cv_c_upper_lower=no
33009 else
33010   echo "$as_me: program exited with status $ac_status" >&5
33011 echo "$as_me: failed program was:" >&5
33012 sed 's/^/| /' conftest.$ac_ext >&5
33013
33014 ( exit $ac_status )
33015 ol_cv_c_upper_lower=yes
33016 fi
33017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33018 fi
33019
33020
33021 fi
33022 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33023 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33024 if test $ol_cv_c_upper_lower != no ; then
33025
33026 cat >>confdefs.h <<\_ACEOF
33027 #define C_UPPER_LOWER 1
33028 _ACEOF
33029
33030 fi
33031
33032 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33033 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33034 if test "${ac_cv_c_const+set}" = set; then
33035   echo $ECHO_N "(cached) $ECHO_C" >&6
33036 else
33037   cat >conftest.$ac_ext <<_ACEOF
33038 /* confdefs.h.  */
33039 _ACEOF
33040 cat confdefs.h >>conftest.$ac_ext
33041 cat >>conftest.$ac_ext <<_ACEOF
33042 /* end confdefs.h.  */
33043
33044 int
33045 main ()
33046 {
33047 /* FIXME: Include the comments suggested by Paul. */
33048 #ifndef __cplusplus
33049   /* Ultrix mips cc rejects this.  */
33050   typedef int charset[2];
33051   const charset cs;
33052   /* SunOS 4.1.1 cc rejects this.  */
33053   char const *const *pcpcc;
33054   char **ppc;
33055   /* NEC SVR4.0.2 mips cc rejects this.  */
33056   struct point {int x, y;};
33057   static struct point const zero = {0,0};
33058   /* AIX XL C 1.02.0.0 rejects this.
33059      It does not let you subtract one const X* pointer from another in
33060      an arm of an if-expression whose if-part is not a constant
33061      expression */
33062   const char *g = "string";
33063   pcpcc = &g + (g ? g-g : 0);
33064   /* HPUX 7.0 cc rejects these. */
33065   ++pcpcc;
33066   ppc = (char**) pcpcc;
33067   pcpcc = (char const *const *) ppc;
33068   { /* SCO 3.2v4 cc rejects this.  */
33069     char *t;
33070     char const *s = 0 ? (char *) 0 : (char const *) 0;
33071
33072     *t++ = 0;
33073     if (s) return 0;
33074   }
33075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33076     int x[] = {25, 17};
33077     const int *foo = &x[0];
33078     ++foo;
33079   }
33080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33081     typedef const int *iptr;
33082     iptr p = 0;
33083     ++p;
33084   }
33085   { /* AIX XL C 1.02.0.0 rejects this saying
33086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33087     struct s { int j; const int *ap[3]; };
33088     struct s *b; b->j = 5;
33089   }
33090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33091     const int foo = 10;
33092     if (!foo) return 0;
33093   }
33094   return !cs[0] && !zero.x;
33095 #endif
33096
33097   ;
33098   return 0;
33099 }
33100 _ACEOF
33101 rm -f conftest.$ac_objext
33102 if { (ac_try="$ac_compile"
33103 case "(($ac_try" in
33104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105   *) ac_try_echo=$ac_try;;
33106 esac
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108   (eval "$ac_compile") 2>conftest.er1
33109   ac_status=$?
33110   grep -v '^ *+' conftest.er1 >conftest.err
33111   rm -f conftest.er1
33112   cat conftest.err >&5
33113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114   (exit $ac_status); } && {
33115          test -z "$ac_c_werror_flag" ||
33116          test ! -s conftest.err
33117        } && test -s conftest.$ac_objext; then
33118   ac_cv_c_const=yes
33119 else
33120   echo "$as_me: failed program was:" >&5
33121 sed 's/^/| /' conftest.$ac_ext >&5
33122
33123         ac_cv_c_const=no
33124 fi
33125
33126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33127 fi
33128 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33129 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33130 if test $ac_cv_c_const = no; then
33131
33132 cat >>confdefs.h <<\_ACEOF
33133 #define const
33134 _ACEOF
33135
33136 fi
33137
33138 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33139 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33140 if test "${ol_cv_c_volatile+set}" = set; then
33141   echo $ECHO_N "(cached) $ECHO_C" >&6
33142 else
33143   cat >conftest.$ac_ext <<_ACEOF
33144 /* confdefs.h.  */
33145 _ACEOF
33146 cat confdefs.h >>conftest.$ac_ext
33147 cat >>conftest.$ac_ext <<_ACEOF
33148 /* end confdefs.h.  */
33149 int x, y, z;
33150 int
33151 main ()
33152 {
33153 volatile int a; int * volatile b = x ? &y : &z;
33154       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33155       *b = 0;
33156   ;
33157   return 0;
33158 }
33159 _ACEOF
33160 rm -f conftest.$ac_objext
33161 if { (ac_try="$ac_compile"
33162 case "(($ac_try" in
33163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164   *) ac_try_echo=$ac_try;;
33165 esac
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167   (eval "$ac_compile") 2>conftest.er1
33168   ac_status=$?
33169   grep -v '^ *+' conftest.er1 >conftest.err
33170   rm -f conftest.er1
33171   cat conftest.err >&5
33172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173   (exit $ac_status); } && {
33174          test -z "$ac_c_werror_flag" ||
33175          test ! -s conftest.err
33176        } && test -s conftest.$ac_objext; then
33177   ol_cv_c_volatile=yes
33178 else
33179   echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33181
33182         ol_cv_c_volatile=no
33183 fi
33184
33185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33186 fi
33187 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33188 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33189   if test $ol_cv_c_volatile = yes; then
33190     :
33191   else
33192
33193 cat >>confdefs.h <<\_ACEOF
33194 #define volatile
33195 _ACEOF
33196
33197   fi
33198
33199
33200 if test $cross_compiling = yes ; then
33201         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33202 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33203
33204 cat >>confdefs.h <<\_ACEOF
33205 #define CROSS_COMPILING 1
33206 _ACEOF
33207
33208 else
33209         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33210 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33211 if test "${ac_cv_c_bigendian+set}" = set; then
33212   echo $ECHO_N "(cached) $ECHO_C" >&6
33213 else
33214   # See if sys/param.h defines the BYTE_ORDER macro.
33215 cat >conftest.$ac_ext <<_ACEOF
33216 /* confdefs.h.  */
33217 _ACEOF
33218 cat confdefs.h >>conftest.$ac_ext
33219 cat >>conftest.$ac_ext <<_ACEOF
33220 /* end confdefs.h.  */
33221 #include <sys/types.h>
33222 #include <sys/param.h>
33223
33224 int
33225 main ()
33226 {
33227 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33228         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33229  bogus endian macros
33230 #endif
33231
33232   ;
33233   return 0;
33234 }
33235 _ACEOF
33236 rm -f conftest.$ac_objext
33237 if { (ac_try="$ac_compile"
33238 case "(($ac_try" in
33239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240   *) ac_try_echo=$ac_try;;
33241 esac
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243   (eval "$ac_compile") 2>conftest.er1
33244   ac_status=$?
33245   grep -v '^ *+' conftest.er1 >conftest.err
33246   rm -f conftest.er1
33247   cat conftest.err >&5
33248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249   (exit $ac_status); } && {
33250          test -z "$ac_c_werror_flag" ||
33251          test ! -s conftest.err
33252        } && test -s conftest.$ac_objext; then
33253   # It does; now see whether it defined to BIG_ENDIAN or not.
33254 cat >conftest.$ac_ext <<_ACEOF
33255 /* confdefs.h.  */
33256 _ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h.  */
33260 #include <sys/types.h>
33261 #include <sys/param.h>
33262
33263 int
33264 main ()
33265 {
33266 #if BYTE_ORDER != BIG_ENDIAN
33267  not big endian
33268 #endif
33269
33270   ;
33271   return 0;
33272 }
33273 _ACEOF
33274 rm -f conftest.$ac_objext
33275 if { (ac_try="$ac_compile"
33276 case "(($ac_try" in
33277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33278   *) ac_try_echo=$ac_try;;
33279 esac
33280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33281   (eval "$ac_compile") 2>conftest.er1
33282   ac_status=$?
33283   grep -v '^ *+' conftest.er1 >conftest.err
33284   rm -f conftest.er1
33285   cat conftest.err >&5
33286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287   (exit $ac_status); } && {
33288          test -z "$ac_c_werror_flag" ||
33289          test ! -s conftest.err
33290        } && test -s conftest.$ac_objext; then
33291   ac_cv_c_bigendian=yes
33292 else
33293   echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33295
33296         ac_cv_c_bigendian=no
33297 fi
33298
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 else
33301   echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304         # It does not; compile a test program.
33305 if test "$cross_compiling" = yes; then
33306   # try to guess the endianness by grepping values into an object file
33307   ac_cv_c_bigendian=unknown
33308   cat >conftest.$ac_ext <<_ACEOF
33309 /* confdefs.h.  */
33310 _ACEOF
33311 cat confdefs.h >>conftest.$ac_ext
33312 cat >>conftest.$ac_ext <<_ACEOF
33313 /* end confdefs.h.  */
33314 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33315 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33316 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33317 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33318 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33319 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33320 int
33321 main ()
33322 {
33323  _ascii (); _ebcdic ();
33324   ;
33325   return 0;
33326 }
33327 _ACEOF
33328 rm -f conftest.$ac_objext
33329 if { (ac_try="$ac_compile"
33330 case "(($ac_try" in
33331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33332   *) ac_try_echo=$ac_try;;
33333 esac
33334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33335   (eval "$ac_compile") 2>conftest.er1
33336   ac_status=$?
33337   grep -v '^ *+' conftest.er1 >conftest.err
33338   rm -f conftest.er1
33339   cat conftest.err >&5
33340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341   (exit $ac_status); } && {
33342          test -z "$ac_c_werror_flag" ||
33343          test ! -s conftest.err
33344        } && test -s conftest.$ac_objext; then
33345   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33346   ac_cv_c_bigendian=yes
33347 fi
33348 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33349   if test "$ac_cv_c_bigendian" = unknown; then
33350     ac_cv_c_bigendian=no
33351   else
33352     # finding both strings is unlikely to happen, but who knows?
33353     ac_cv_c_bigendian=unknown
33354   fi
33355 fi
33356 else
33357   echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33359
33360
33361 fi
33362
33363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33364 else
33365   cat >conftest.$ac_ext <<_ACEOF
33366 /* confdefs.h.  */
33367 _ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h.  */
33371 $ac_includes_default
33372 int
33373 main ()
33374 {
33375
33376   /* Are we little or big endian?  From Harbison&Steele.  */
33377   union
33378   {
33379     long int l;
33380     char c[sizeof (long int)];
33381   } u;
33382   u.l = 1;
33383   return u.c[sizeof (long int) - 1] == 1;
33384
33385   ;
33386   return 0;
33387 }
33388 _ACEOF
33389 rm -f conftest$ac_exeext
33390 if { (ac_try="$ac_link"
33391 case "(($ac_try" in
33392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393   *) ac_try_echo=$ac_try;;
33394 esac
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396   (eval "$ac_link") 2>&5
33397   ac_status=$?
33398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33400   { (case "(($ac_try" in
33401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402   *) ac_try_echo=$ac_try;;
33403 esac
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405   (eval "$ac_try") 2>&5
33406   ac_status=$?
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); }; }; then
33409   ac_cv_c_bigendian=no
33410 else
33411   echo "$as_me: program exited with status $ac_status" >&5
33412 echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33414
33415 ( exit $ac_status )
33416 ac_cv_c_bigendian=yes
33417 fi
33418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33419 fi
33420
33421
33422 fi
33423
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425 fi
33426 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33427 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33428 case $ac_cv_c_bigendian in
33429   yes)
33430
33431 cat >>confdefs.h <<\_ACEOF
33432 #define WORDS_BIGENDIAN 1
33433 _ACEOF
33434  ;;
33435   no)
33436      ;;
33437   *)
33438     { { echo "$as_me:$LINENO: error: unknown endianness
33439 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33440 echo "$as_me: error: unknown endianness
33441 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33442    { (exit 1); exit 1; }; } ;;
33443 esac
33444
33445 fi
33446
33447 { echo "$as_me:$LINENO: checking for short" >&5
33448 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33449 if test "${ac_cv_type_short+set}" = set; then
33450   echo $ECHO_N "(cached) $ECHO_C" >&6
33451 else
33452   cat >conftest.$ac_ext <<_ACEOF
33453 /* confdefs.h.  */
33454 _ACEOF
33455 cat confdefs.h >>conftest.$ac_ext
33456 cat >>conftest.$ac_ext <<_ACEOF
33457 /* end confdefs.h.  */
33458 $ac_includes_default
33459 typedef short ac__type_new_;
33460 int
33461 main ()
33462 {
33463 if ((ac__type_new_ *) 0)
33464   return 0;
33465 if (sizeof (ac__type_new_))
33466   return 0;
33467   ;
33468   return 0;
33469 }
33470 _ACEOF
33471 rm -f conftest.$ac_objext
33472 if { (ac_try="$ac_compile"
33473 case "(($ac_try" in
33474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33475   *) ac_try_echo=$ac_try;;
33476 esac
33477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33478   (eval "$ac_compile") 2>conftest.er1
33479   ac_status=$?
33480   grep -v '^ *+' conftest.er1 >conftest.err
33481   rm -f conftest.er1
33482   cat conftest.err >&5
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); } && {
33485          test -z "$ac_c_werror_flag" ||
33486          test ! -s conftest.err
33487        } && test -s conftest.$ac_objext; then
33488   ac_cv_type_short=yes
33489 else
33490   echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33492
33493         ac_cv_type_short=no
33494 fi
33495
33496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33497 fi
33498 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33499 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33500
33501 # The cast to long int works around a bug in the HP C Compiler
33502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33504 # This bug is HP SR number 8606223364.
33505 { echo "$as_me:$LINENO: checking size of short" >&5
33506 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33507 if test "${ac_cv_sizeof_short+set}" = set; then
33508   echo $ECHO_N "(cached) $ECHO_C" >&6
33509 else
33510   if test "$cross_compiling" = yes; then
33511   # Depending upon the size, compute the lo and hi bounds.
33512 cat >conftest.$ac_ext <<_ACEOF
33513 /* confdefs.h.  */
33514 _ACEOF
33515 cat confdefs.h >>conftest.$ac_ext
33516 cat >>conftest.$ac_ext <<_ACEOF
33517 /* end confdefs.h.  */
33518 $ac_includes_default
33519    typedef short ac__type_sizeof_;
33520 int
33521 main ()
33522 {
33523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33524 test_array [0] = 0
33525
33526   ;
33527   return 0;
33528 }
33529 _ACEOF
33530 rm -f conftest.$ac_objext
33531 if { (ac_try="$ac_compile"
33532 case "(($ac_try" in
33533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534   *) ac_try_echo=$ac_try;;
33535 esac
33536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33537   (eval "$ac_compile") 2>conftest.er1
33538   ac_status=$?
33539   grep -v '^ *+' conftest.er1 >conftest.err
33540   rm -f conftest.er1
33541   cat conftest.err >&5
33542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543   (exit $ac_status); } && {
33544          test -z "$ac_c_werror_flag" ||
33545          test ! -s conftest.err
33546        } && test -s conftest.$ac_objext; then
33547   ac_lo=0 ac_mid=0
33548   while :; do
33549     cat >conftest.$ac_ext <<_ACEOF
33550 /* confdefs.h.  */
33551 _ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h.  */
33555 $ac_includes_default
33556    typedef short ac__type_sizeof_;
33557 int
33558 main ()
33559 {
33560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33561 test_array [0] = 0
33562
33563   ;
33564   return 0;
33565 }
33566 _ACEOF
33567 rm -f conftest.$ac_objext
33568 if { (ac_try="$ac_compile"
33569 case "(($ac_try" in
33570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571   *) ac_try_echo=$ac_try;;
33572 esac
33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574   (eval "$ac_compile") 2>conftest.er1
33575   ac_status=$?
33576   grep -v '^ *+' conftest.er1 >conftest.err
33577   rm -f conftest.er1
33578   cat conftest.err >&5
33579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580   (exit $ac_status); } && {
33581          test -z "$ac_c_werror_flag" ||
33582          test ! -s conftest.err
33583        } && test -s conftest.$ac_objext; then
33584   ac_hi=$ac_mid; break
33585 else
33586   echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33588
33589         ac_lo=`expr $ac_mid + 1`
33590                         if test $ac_lo -le $ac_mid; then
33591                           ac_lo= ac_hi=
33592                           break
33593                         fi
33594                         ac_mid=`expr 2 '*' $ac_mid + 1`
33595 fi
33596
33597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33598   done
33599 else
33600   echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33602
33603         cat >conftest.$ac_ext <<_ACEOF
33604 /* confdefs.h.  */
33605 _ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h.  */
33609 $ac_includes_default
33610    typedef short ac__type_sizeof_;
33611 int
33612 main ()
33613 {
33614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33615 test_array [0] = 0
33616
33617   ;
33618   return 0;
33619 }
33620 _ACEOF
33621 rm -f conftest.$ac_objext
33622 if { (ac_try="$ac_compile"
33623 case "(($ac_try" in
33624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625   *) ac_try_echo=$ac_try;;
33626 esac
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628   (eval "$ac_compile") 2>conftest.er1
33629   ac_status=$?
33630   grep -v '^ *+' conftest.er1 >conftest.err
33631   rm -f conftest.er1
33632   cat conftest.err >&5
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); } && {
33635          test -z "$ac_c_werror_flag" ||
33636          test ! -s conftest.err
33637        } && test -s conftest.$ac_objext; then
33638   ac_hi=-1 ac_mid=-1
33639   while :; do
33640     cat >conftest.$ac_ext <<_ACEOF
33641 /* confdefs.h.  */
33642 _ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h.  */
33646 $ac_includes_default
33647    typedef short ac__type_sizeof_;
33648 int
33649 main ()
33650 {
33651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33652 test_array [0] = 0
33653
33654   ;
33655   return 0;
33656 }
33657 _ACEOF
33658 rm -f conftest.$ac_objext
33659 if { (ac_try="$ac_compile"
33660 case "(($ac_try" in
33661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662   *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665   (eval "$ac_compile") 2>conftest.er1
33666   ac_status=$?
33667   grep -v '^ *+' conftest.er1 >conftest.err
33668   rm -f conftest.er1
33669   cat conftest.err >&5
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); } && {
33672          test -z "$ac_c_werror_flag" ||
33673          test ! -s conftest.err
33674        } && test -s conftest.$ac_objext; then
33675   ac_lo=$ac_mid; break
33676 else
33677   echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33679
33680         ac_hi=`expr '(' $ac_mid ')' - 1`
33681                         if test $ac_mid -le $ac_hi; then
33682                           ac_lo= ac_hi=
33683                           break
33684                         fi
33685                         ac_mid=`expr 2 '*' $ac_mid`
33686 fi
33687
33688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33689   done
33690 else
33691   echo "$as_me: failed program was:" >&5
33692 sed 's/^/| /' conftest.$ac_ext >&5
33693
33694         ac_lo= ac_hi=
33695 fi
33696
33697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33698 fi
33699
33700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33701 # Binary search between lo and hi bounds.
33702 while test "x$ac_lo" != "x$ac_hi"; do
33703   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33704   cat >conftest.$ac_ext <<_ACEOF
33705 /* confdefs.h.  */
33706 _ACEOF
33707 cat confdefs.h >>conftest.$ac_ext
33708 cat >>conftest.$ac_ext <<_ACEOF
33709 /* end confdefs.h.  */
33710 $ac_includes_default
33711    typedef short ac__type_sizeof_;
33712 int
33713 main ()
33714 {
33715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33716 test_array [0] = 0
33717
33718   ;
33719   return 0;
33720 }
33721 _ACEOF
33722 rm -f conftest.$ac_objext
33723 if { (ac_try="$ac_compile"
33724 case "(($ac_try" in
33725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726   *) ac_try_echo=$ac_try;;
33727 esac
33728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33729   (eval "$ac_compile") 2>conftest.er1
33730   ac_status=$?
33731   grep -v '^ *+' conftest.er1 >conftest.err
33732   rm -f conftest.er1
33733   cat conftest.err >&5
33734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735   (exit $ac_status); } && {
33736          test -z "$ac_c_werror_flag" ||
33737          test ! -s conftest.err
33738        } && test -s conftest.$ac_objext; then
33739   ac_hi=$ac_mid
33740 else
33741   echo "$as_me: failed program was:" >&5
33742 sed 's/^/| /' conftest.$ac_ext >&5
33743
33744         ac_lo=`expr '(' $ac_mid ')' + 1`
33745 fi
33746
33747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33748 done
33749 case $ac_lo in
33750 ?*) ac_cv_sizeof_short=$ac_lo;;
33751 '') if test "$ac_cv_type_short" = yes; then
33752      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33753 See \`config.log' for more details." >&5
33754 echo "$as_me: error: cannot compute sizeof (short)
33755 See \`config.log' for more details." >&2;}
33756    { (exit 77); exit 77; }; }
33757    else
33758      ac_cv_sizeof_short=0
33759    fi ;;
33760 esac
33761 else
33762   cat >conftest.$ac_ext <<_ACEOF
33763 /* confdefs.h.  */
33764 _ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h.  */
33768 $ac_includes_default
33769    typedef short ac__type_sizeof_;
33770 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33771 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33772 #include <stdio.h>
33773 #include <stdlib.h>
33774 int
33775 main ()
33776 {
33777
33778   FILE *f = fopen ("conftest.val", "w");
33779   if (! f)
33780     return 1;
33781   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33782     {
33783       long int i = longval ();
33784       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33785         return 1;
33786       fprintf (f, "%ld\n", i);
33787     }
33788   else
33789     {
33790       unsigned long int i = ulongval ();
33791       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33792         return 1;
33793       fprintf (f, "%lu\n", i);
33794     }
33795   return ferror (f) || fclose (f) != 0;
33796
33797   ;
33798   return 0;
33799 }
33800 _ACEOF
33801 rm -f conftest$ac_exeext
33802 if { (ac_try="$ac_link"
33803 case "(($ac_try" in
33804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805   *) ac_try_echo=$ac_try;;
33806 esac
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808   (eval "$ac_link") 2>&5
33809   ac_status=$?
33810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33812   { (case "(($ac_try" in
33813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814   *) ac_try_echo=$ac_try;;
33815 esac
33816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33817   (eval "$ac_try") 2>&5
33818   ac_status=$?
33819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820   (exit $ac_status); }; }; then
33821   ac_cv_sizeof_short=`cat conftest.val`
33822 else
33823   echo "$as_me: program exited with status $ac_status" >&5
33824 echo "$as_me: failed program was:" >&5
33825 sed 's/^/| /' conftest.$ac_ext >&5
33826
33827 ( exit $ac_status )
33828 if test "$ac_cv_type_short" = yes; then
33829      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33830 See \`config.log' for more details." >&5
33831 echo "$as_me: error: cannot compute sizeof (short)
33832 See \`config.log' for more details." >&2;}
33833    { (exit 77); exit 77; }; }
33834    else
33835      ac_cv_sizeof_short=0
33836    fi
33837 fi
33838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33839 fi
33840 rm -f conftest.val
33841 fi
33842 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33843 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33844
33845
33846
33847 cat >>confdefs.h <<_ACEOF
33848 #define SIZEOF_SHORT $ac_cv_sizeof_short
33849 _ACEOF
33850
33851
33852 { echo "$as_me:$LINENO: checking for int" >&5
33853 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33854 if test "${ac_cv_type_int+set}" = set; then
33855   echo $ECHO_N "(cached) $ECHO_C" >&6
33856 else
33857   cat >conftest.$ac_ext <<_ACEOF
33858 /* confdefs.h.  */
33859 _ACEOF
33860 cat confdefs.h >>conftest.$ac_ext
33861 cat >>conftest.$ac_ext <<_ACEOF
33862 /* end confdefs.h.  */
33863 $ac_includes_default
33864 typedef int ac__type_new_;
33865 int
33866 main ()
33867 {
33868 if ((ac__type_new_ *) 0)
33869   return 0;
33870 if (sizeof (ac__type_new_))
33871   return 0;
33872   ;
33873   return 0;
33874 }
33875 _ACEOF
33876 rm -f conftest.$ac_objext
33877 if { (ac_try="$ac_compile"
33878 case "(($ac_try" in
33879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880   *) ac_try_echo=$ac_try;;
33881 esac
33882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33883   (eval "$ac_compile") 2>conftest.er1
33884   ac_status=$?
33885   grep -v '^ *+' conftest.er1 >conftest.err
33886   rm -f conftest.er1
33887   cat conftest.err >&5
33888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889   (exit $ac_status); } && {
33890          test -z "$ac_c_werror_flag" ||
33891          test ! -s conftest.err
33892        } && test -s conftest.$ac_objext; then
33893   ac_cv_type_int=yes
33894 else
33895   echo "$as_me: failed program was:" >&5
33896 sed 's/^/| /' conftest.$ac_ext >&5
33897
33898         ac_cv_type_int=no
33899 fi
33900
33901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33902 fi
33903 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33904 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33905
33906 # The cast to long int works around a bug in the HP C Compiler
33907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33909 # This bug is HP SR number 8606223364.
33910 { echo "$as_me:$LINENO: checking size of int" >&5
33911 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33912 if test "${ac_cv_sizeof_int+set}" = set; then
33913   echo $ECHO_N "(cached) $ECHO_C" >&6
33914 else
33915   if test "$cross_compiling" = yes; then
33916   # Depending upon the size, compute the lo and hi bounds.
33917 cat >conftest.$ac_ext <<_ACEOF
33918 /* confdefs.h.  */
33919 _ACEOF
33920 cat confdefs.h >>conftest.$ac_ext
33921 cat >>conftest.$ac_ext <<_ACEOF
33922 /* end confdefs.h.  */
33923 $ac_includes_default
33924    typedef int ac__type_sizeof_;
33925 int
33926 main ()
33927 {
33928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33929 test_array [0] = 0
33930
33931   ;
33932   return 0;
33933 }
33934 _ACEOF
33935 rm -f conftest.$ac_objext
33936 if { (ac_try="$ac_compile"
33937 case "(($ac_try" in
33938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939   *) ac_try_echo=$ac_try;;
33940 esac
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942   (eval "$ac_compile") 2>conftest.er1
33943   ac_status=$?
33944   grep -v '^ *+' conftest.er1 >conftest.err
33945   rm -f conftest.er1
33946   cat conftest.err >&5
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); } && {
33949          test -z "$ac_c_werror_flag" ||
33950          test ! -s conftest.err
33951        } && test -s conftest.$ac_objext; then
33952   ac_lo=0 ac_mid=0
33953   while :; do
33954     cat >conftest.$ac_ext <<_ACEOF
33955 /* confdefs.h.  */
33956 _ACEOF
33957 cat confdefs.h >>conftest.$ac_ext
33958 cat >>conftest.$ac_ext <<_ACEOF
33959 /* end confdefs.h.  */
33960 $ac_includes_default
33961    typedef int ac__type_sizeof_;
33962 int
33963 main ()
33964 {
33965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33966 test_array [0] = 0
33967
33968   ;
33969   return 0;
33970 }
33971 _ACEOF
33972 rm -f conftest.$ac_objext
33973 if { (ac_try="$ac_compile"
33974 case "(($ac_try" in
33975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976   *) ac_try_echo=$ac_try;;
33977 esac
33978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979   (eval "$ac_compile") 2>conftest.er1
33980   ac_status=$?
33981   grep -v '^ *+' conftest.er1 >conftest.err
33982   rm -f conftest.er1
33983   cat conftest.err >&5
33984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985   (exit $ac_status); } && {
33986          test -z "$ac_c_werror_flag" ||
33987          test ! -s conftest.err
33988        } && test -s conftest.$ac_objext; then
33989   ac_hi=$ac_mid; break
33990 else
33991   echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33993
33994         ac_lo=`expr $ac_mid + 1`
33995                         if test $ac_lo -le $ac_mid; then
33996                           ac_lo= ac_hi=
33997                           break
33998                         fi
33999                         ac_mid=`expr 2 '*' $ac_mid + 1`
34000 fi
34001
34002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34003   done
34004 else
34005   echo "$as_me: failed program was:" >&5
34006 sed 's/^/| /' conftest.$ac_ext >&5
34007
34008         cat >conftest.$ac_ext <<_ACEOF
34009 /* confdefs.h.  */
34010 _ACEOF
34011 cat confdefs.h >>conftest.$ac_ext
34012 cat >>conftest.$ac_ext <<_ACEOF
34013 /* end confdefs.h.  */
34014 $ac_includes_default
34015    typedef int ac__type_sizeof_;
34016 int
34017 main ()
34018 {
34019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34020 test_array [0] = 0
34021
34022   ;
34023   return 0;
34024 }
34025 _ACEOF
34026 rm -f conftest.$ac_objext
34027 if { (ac_try="$ac_compile"
34028 case "(($ac_try" in
34029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030   *) ac_try_echo=$ac_try;;
34031 esac
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033   (eval "$ac_compile") 2>conftest.er1
34034   ac_status=$?
34035   grep -v '^ *+' conftest.er1 >conftest.err
34036   rm -f conftest.er1
34037   cat conftest.err >&5
34038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039   (exit $ac_status); } && {
34040          test -z "$ac_c_werror_flag" ||
34041          test ! -s conftest.err
34042        } && test -s conftest.$ac_objext; then
34043   ac_hi=-1 ac_mid=-1
34044   while :; do
34045     cat >conftest.$ac_ext <<_ACEOF
34046 /* confdefs.h.  */
34047 _ACEOF
34048 cat confdefs.h >>conftest.$ac_ext
34049 cat >>conftest.$ac_ext <<_ACEOF
34050 /* end confdefs.h.  */
34051 $ac_includes_default
34052    typedef int ac__type_sizeof_;
34053 int
34054 main ()
34055 {
34056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34057 test_array [0] = 0
34058
34059   ;
34060   return 0;
34061 }
34062 _ACEOF
34063 rm -f conftest.$ac_objext
34064 if { (ac_try="$ac_compile"
34065 case "(($ac_try" in
34066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34067   *) ac_try_echo=$ac_try;;
34068 esac
34069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34070   (eval "$ac_compile") 2>conftest.er1
34071   ac_status=$?
34072   grep -v '^ *+' conftest.er1 >conftest.err
34073   rm -f conftest.er1
34074   cat conftest.err >&5
34075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076   (exit $ac_status); } && {
34077          test -z "$ac_c_werror_flag" ||
34078          test ! -s conftest.err
34079        } && test -s conftest.$ac_objext; then
34080   ac_lo=$ac_mid; break
34081 else
34082   echo "$as_me: failed program was:" >&5
34083 sed 's/^/| /' conftest.$ac_ext >&5
34084
34085         ac_hi=`expr '(' $ac_mid ')' - 1`
34086                         if test $ac_mid -le $ac_hi; then
34087                           ac_lo= ac_hi=
34088                           break
34089                         fi
34090                         ac_mid=`expr 2 '*' $ac_mid`
34091 fi
34092
34093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34094   done
34095 else
34096   echo "$as_me: failed program was:" >&5
34097 sed 's/^/| /' conftest.$ac_ext >&5
34098
34099         ac_lo= ac_hi=
34100 fi
34101
34102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34103 fi
34104
34105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34106 # Binary search between lo and hi bounds.
34107 while test "x$ac_lo" != "x$ac_hi"; do
34108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34109   cat >conftest.$ac_ext <<_ACEOF
34110 /* confdefs.h.  */
34111 _ACEOF
34112 cat confdefs.h >>conftest.$ac_ext
34113 cat >>conftest.$ac_ext <<_ACEOF
34114 /* end confdefs.h.  */
34115 $ac_includes_default
34116    typedef int ac__type_sizeof_;
34117 int
34118 main ()
34119 {
34120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34121 test_array [0] = 0
34122
34123   ;
34124   return 0;
34125 }
34126 _ACEOF
34127 rm -f conftest.$ac_objext
34128 if { (ac_try="$ac_compile"
34129 case "(($ac_try" in
34130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131   *) ac_try_echo=$ac_try;;
34132 esac
34133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134   (eval "$ac_compile") 2>conftest.er1
34135   ac_status=$?
34136   grep -v '^ *+' conftest.er1 >conftest.err
34137   rm -f conftest.er1
34138   cat conftest.err >&5
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); } && {
34141          test -z "$ac_c_werror_flag" ||
34142          test ! -s conftest.err
34143        } && test -s conftest.$ac_objext; then
34144   ac_hi=$ac_mid
34145 else
34146   echo "$as_me: failed program was:" >&5
34147 sed 's/^/| /' conftest.$ac_ext >&5
34148
34149         ac_lo=`expr '(' $ac_mid ')' + 1`
34150 fi
34151
34152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34153 done
34154 case $ac_lo in
34155 ?*) ac_cv_sizeof_int=$ac_lo;;
34156 '') if test "$ac_cv_type_int" = yes; then
34157      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34158 See \`config.log' for more details." >&5
34159 echo "$as_me: error: cannot compute sizeof (int)
34160 See \`config.log' for more details." >&2;}
34161    { (exit 77); exit 77; }; }
34162    else
34163      ac_cv_sizeof_int=0
34164    fi ;;
34165 esac
34166 else
34167   cat >conftest.$ac_ext <<_ACEOF
34168 /* confdefs.h.  */
34169 _ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h.  */
34173 $ac_includes_default
34174    typedef int ac__type_sizeof_;
34175 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34176 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34177 #include <stdio.h>
34178 #include <stdlib.h>
34179 int
34180 main ()
34181 {
34182
34183   FILE *f = fopen ("conftest.val", "w");
34184   if (! f)
34185     return 1;
34186   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34187     {
34188       long int i = longval ();
34189       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34190         return 1;
34191       fprintf (f, "%ld\n", i);
34192     }
34193   else
34194     {
34195       unsigned long int i = ulongval ();
34196       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34197         return 1;
34198       fprintf (f, "%lu\n", i);
34199     }
34200   return ferror (f) || fclose (f) != 0;
34201
34202   ;
34203   return 0;
34204 }
34205 _ACEOF
34206 rm -f conftest$ac_exeext
34207 if { (ac_try="$ac_link"
34208 case "(($ac_try" in
34209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34210   *) ac_try_echo=$ac_try;;
34211 esac
34212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34213   (eval "$ac_link") 2>&5
34214   ac_status=$?
34215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34217   { (case "(($ac_try" in
34218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34219   *) ac_try_echo=$ac_try;;
34220 esac
34221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34222   (eval "$ac_try") 2>&5
34223   ac_status=$?
34224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225   (exit $ac_status); }; }; then
34226   ac_cv_sizeof_int=`cat conftest.val`
34227 else
34228   echo "$as_me: program exited with status $ac_status" >&5
34229 echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34231
34232 ( exit $ac_status )
34233 if test "$ac_cv_type_int" = yes; then
34234      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34235 See \`config.log' for more details." >&5
34236 echo "$as_me: error: cannot compute sizeof (int)
34237 See \`config.log' for more details." >&2;}
34238    { (exit 77); exit 77; }; }
34239    else
34240      ac_cv_sizeof_int=0
34241    fi
34242 fi
34243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34244 fi
34245 rm -f conftest.val
34246 fi
34247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34248 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34249
34250
34251
34252 cat >>confdefs.h <<_ACEOF
34253 #define SIZEOF_INT $ac_cv_sizeof_int
34254 _ACEOF
34255
34256
34257 { echo "$as_me:$LINENO: checking for long" >&5
34258 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34259 if test "${ac_cv_type_long+set}" = set; then
34260   echo $ECHO_N "(cached) $ECHO_C" >&6
34261 else
34262   cat >conftest.$ac_ext <<_ACEOF
34263 /* confdefs.h.  */
34264 _ACEOF
34265 cat confdefs.h >>conftest.$ac_ext
34266 cat >>conftest.$ac_ext <<_ACEOF
34267 /* end confdefs.h.  */
34268 $ac_includes_default
34269 typedef long ac__type_new_;
34270 int
34271 main ()
34272 {
34273 if ((ac__type_new_ *) 0)
34274   return 0;
34275 if (sizeof (ac__type_new_))
34276   return 0;
34277   ;
34278   return 0;
34279 }
34280 _ACEOF
34281 rm -f conftest.$ac_objext
34282 if { (ac_try="$ac_compile"
34283 case "(($ac_try" in
34284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34285   *) ac_try_echo=$ac_try;;
34286 esac
34287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34288   (eval "$ac_compile") 2>conftest.er1
34289   ac_status=$?
34290   grep -v '^ *+' conftest.er1 >conftest.err
34291   rm -f conftest.er1
34292   cat conftest.err >&5
34293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294   (exit $ac_status); } && {
34295          test -z "$ac_c_werror_flag" ||
34296          test ! -s conftest.err
34297        } && test -s conftest.$ac_objext; then
34298   ac_cv_type_long=yes
34299 else
34300   echo "$as_me: failed program was:" >&5
34301 sed 's/^/| /' conftest.$ac_ext >&5
34302
34303         ac_cv_type_long=no
34304 fi
34305
34306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34307 fi
34308 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34309 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34310
34311 # The cast to long int works around a bug in the HP C Compiler
34312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34314 # This bug is HP SR number 8606223364.
34315 { echo "$as_me:$LINENO: checking size of long" >&5
34316 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34317 if test "${ac_cv_sizeof_long+set}" = set; then
34318   echo $ECHO_N "(cached) $ECHO_C" >&6
34319 else
34320   if test "$cross_compiling" = yes; then
34321   # Depending upon the size, compute the lo and hi bounds.
34322 cat >conftest.$ac_ext <<_ACEOF
34323 /* confdefs.h.  */
34324 _ACEOF
34325 cat confdefs.h >>conftest.$ac_ext
34326 cat >>conftest.$ac_ext <<_ACEOF
34327 /* end confdefs.h.  */
34328 $ac_includes_default
34329    typedef long ac__type_sizeof_;
34330 int
34331 main ()
34332 {
34333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34334 test_array [0] = 0
34335
34336   ;
34337   return 0;
34338 }
34339 _ACEOF
34340 rm -f conftest.$ac_objext
34341 if { (ac_try="$ac_compile"
34342 case "(($ac_try" in
34343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34344   *) ac_try_echo=$ac_try;;
34345 esac
34346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34347   (eval "$ac_compile") 2>conftest.er1
34348   ac_status=$?
34349   grep -v '^ *+' conftest.er1 >conftest.err
34350   rm -f conftest.er1
34351   cat conftest.err >&5
34352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353   (exit $ac_status); } && {
34354          test -z "$ac_c_werror_flag" ||
34355          test ! -s conftest.err
34356        } && test -s conftest.$ac_objext; then
34357   ac_lo=0 ac_mid=0
34358   while :; do
34359     cat >conftest.$ac_ext <<_ACEOF
34360 /* confdefs.h.  */
34361 _ACEOF
34362 cat confdefs.h >>conftest.$ac_ext
34363 cat >>conftest.$ac_ext <<_ACEOF
34364 /* end confdefs.h.  */
34365 $ac_includes_default
34366    typedef long ac__type_sizeof_;
34367 int
34368 main ()
34369 {
34370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34371 test_array [0] = 0
34372
34373   ;
34374   return 0;
34375 }
34376 _ACEOF
34377 rm -f conftest.$ac_objext
34378 if { (ac_try="$ac_compile"
34379 case "(($ac_try" in
34380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34381   *) ac_try_echo=$ac_try;;
34382 esac
34383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34384   (eval "$ac_compile") 2>conftest.er1
34385   ac_status=$?
34386   grep -v '^ *+' conftest.er1 >conftest.err
34387   rm -f conftest.er1
34388   cat conftest.err >&5
34389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390   (exit $ac_status); } && {
34391          test -z "$ac_c_werror_flag" ||
34392          test ! -s conftest.err
34393        } && test -s conftest.$ac_objext; then
34394   ac_hi=$ac_mid; break
34395 else
34396   echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34398
34399         ac_lo=`expr $ac_mid + 1`
34400                         if test $ac_lo -le $ac_mid; then
34401                           ac_lo= ac_hi=
34402                           break
34403                         fi
34404                         ac_mid=`expr 2 '*' $ac_mid + 1`
34405 fi
34406
34407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34408   done
34409 else
34410   echo "$as_me: failed program was:" >&5
34411 sed 's/^/| /' conftest.$ac_ext >&5
34412
34413         cat >conftest.$ac_ext <<_ACEOF
34414 /* confdefs.h.  */
34415 _ACEOF
34416 cat confdefs.h >>conftest.$ac_ext
34417 cat >>conftest.$ac_ext <<_ACEOF
34418 /* end confdefs.h.  */
34419 $ac_includes_default
34420    typedef long ac__type_sizeof_;
34421 int
34422 main ()
34423 {
34424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34425 test_array [0] = 0
34426
34427   ;
34428   return 0;
34429 }
34430 _ACEOF
34431 rm -f conftest.$ac_objext
34432 if { (ac_try="$ac_compile"
34433 case "(($ac_try" in
34434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435   *) ac_try_echo=$ac_try;;
34436 esac
34437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438   (eval "$ac_compile") 2>conftest.er1
34439   ac_status=$?
34440   grep -v '^ *+' conftest.er1 >conftest.err
34441   rm -f conftest.er1
34442   cat conftest.err >&5
34443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444   (exit $ac_status); } && {
34445          test -z "$ac_c_werror_flag" ||
34446          test ! -s conftest.err
34447        } && test -s conftest.$ac_objext; then
34448   ac_hi=-1 ac_mid=-1
34449   while :; do
34450     cat >conftest.$ac_ext <<_ACEOF
34451 /* confdefs.h.  */
34452 _ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h.  */
34456 $ac_includes_default
34457    typedef long ac__type_sizeof_;
34458 int
34459 main ()
34460 {
34461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34462 test_array [0] = 0
34463
34464   ;
34465   return 0;
34466 }
34467 _ACEOF
34468 rm -f conftest.$ac_objext
34469 if { (ac_try="$ac_compile"
34470 case "(($ac_try" in
34471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34472   *) ac_try_echo=$ac_try;;
34473 esac
34474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34475   (eval "$ac_compile") 2>conftest.er1
34476   ac_status=$?
34477   grep -v '^ *+' conftest.er1 >conftest.err
34478   rm -f conftest.er1
34479   cat conftest.err >&5
34480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481   (exit $ac_status); } && {
34482          test -z "$ac_c_werror_flag" ||
34483          test ! -s conftest.err
34484        } && test -s conftest.$ac_objext; then
34485   ac_lo=$ac_mid; break
34486 else
34487   echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34489
34490         ac_hi=`expr '(' $ac_mid ')' - 1`
34491                         if test $ac_mid -le $ac_hi; then
34492                           ac_lo= ac_hi=
34493                           break
34494                         fi
34495                         ac_mid=`expr 2 '*' $ac_mid`
34496 fi
34497
34498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34499   done
34500 else
34501   echo "$as_me: failed program was:" >&5
34502 sed 's/^/| /' conftest.$ac_ext >&5
34503
34504         ac_lo= ac_hi=
34505 fi
34506
34507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34508 fi
34509
34510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34511 # Binary search between lo and hi bounds.
34512 while test "x$ac_lo" != "x$ac_hi"; do
34513   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34514   cat >conftest.$ac_ext <<_ACEOF
34515 /* confdefs.h.  */
34516 _ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h.  */
34520 $ac_includes_default
34521    typedef long ac__type_sizeof_;
34522 int
34523 main ()
34524 {
34525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34526 test_array [0] = 0
34527
34528   ;
34529   return 0;
34530 }
34531 _ACEOF
34532 rm -f conftest.$ac_objext
34533 if { (ac_try="$ac_compile"
34534 case "(($ac_try" in
34535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34536   *) ac_try_echo=$ac_try;;
34537 esac
34538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34539   (eval "$ac_compile") 2>conftest.er1
34540   ac_status=$?
34541   grep -v '^ *+' conftest.er1 >conftest.err
34542   rm -f conftest.er1
34543   cat conftest.err >&5
34544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545   (exit $ac_status); } && {
34546          test -z "$ac_c_werror_flag" ||
34547          test ! -s conftest.err
34548        } && test -s conftest.$ac_objext; then
34549   ac_hi=$ac_mid
34550 else
34551   echo "$as_me: failed program was:" >&5
34552 sed 's/^/| /' conftest.$ac_ext >&5
34553
34554         ac_lo=`expr '(' $ac_mid ')' + 1`
34555 fi
34556
34557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34558 done
34559 case $ac_lo in
34560 ?*) ac_cv_sizeof_long=$ac_lo;;
34561 '') if test "$ac_cv_type_long" = yes; then
34562      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34563 See \`config.log' for more details." >&5
34564 echo "$as_me: error: cannot compute sizeof (long)
34565 See \`config.log' for more details." >&2;}
34566    { (exit 77); exit 77; }; }
34567    else
34568      ac_cv_sizeof_long=0
34569    fi ;;
34570 esac
34571 else
34572   cat >conftest.$ac_ext <<_ACEOF
34573 /* confdefs.h.  */
34574 _ACEOF
34575 cat confdefs.h >>conftest.$ac_ext
34576 cat >>conftest.$ac_ext <<_ACEOF
34577 /* end confdefs.h.  */
34578 $ac_includes_default
34579    typedef long ac__type_sizeof_;
34580 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34581 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34582 #include <stdio.h>
34583 #include <stdlib.h>
34584 int
34585 main ()
34586 {
34587
34588   FILE *f = fopen ("conftest.val", "w");
34589   if (! f)
34590     return 1;
34591   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34592     {
34593       long int i = longval ();
34594       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34595         return 1;
34596       fprintf (f, "%ld\n", i);
34597     }
34598   else
34599     {
34600       unsigned long int i = ulongval ();
34601       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34602         return 1;
34603       fprintf (f, "%lu\n", i);
34604     }
34605   return ferror (f) || fclose (f) != 0;
34606
34607   ;
34608   return 0;
34609 }
34610 _ACEOF
34611 rm -f conftest$ac_exeext
34612 if { (ac_try="$ac_link"
34613 case "(($ac_try" in
34614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34615   *) ac_try_echo=$ac_try;;
34616 esac
34617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34618   (eval "$ac_link") 2>&5
34619   ac_status=$?
34620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34622   { (case "(($ac_try" in
34623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34624   *) ac_try_echo=$ac_try;;
34625 esac
34626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34627   (eval "$ac_try") 2>&5
34628   ac_status=$?
34629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630   (exit $ac_status); }; }; then
34631   ac_cv_sizeof_long=`cat conftest.val`
34632 else
34633   echo "$as_me: program exited with status $ac_status" >&5
34634 echo "$as_me: failed program was:" >&5
34635 sed 's/^/| /' conftest.$ac_ext >&5
34636
34637 ( exit $ac_status )
34638 if test "$ac_cv_type_long" = yes; then
34639      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34640 See \`config.log' for more details." >&5
34641 echo "$as_me: error: cannot compute sizeof (long)
34642 See \`config.log' for more details." >&2;}
34643    { (exit 77); exit 77; }; }
34644    else
34645      ac_cv_sizeof_long=0
34646    fi
34647 fi
34648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34649 fi
34650 rm -f conftest.val
34651 fi
34652 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34653 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34654
34655
34656
34657 cat >>confdefs.h <<_ACEOF
34658 #define SIZEOF_LONG $ac_cv_sizeof_long
34659 _ACEOF
34660
34661
34662 { echo "$as_me:$LINENO: checking for long long" >&5
34663 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34664 if test "${ac_cv_type_long_long+set}" = set; then
34665   echo $ECHO_N "(cached) $ECHO_C" >&6
34666 else
34667   cat >conftest.$ac_ext <<_ACEOF
34668 /* confdefs.h.  */
34669 _ACEOF
34670 cat confdefs.h >>conftest.$ac_ext
34671 cat >>conftest.$ac_ext <<_ACEOF
34672 /* end confdefs.h.  */
34673 $ac_includes_default
34674 typedef long long ac__type_new_;
34675 int
34676 main ()
34677 {
34678 if ((ac__type_new_ *) 0)
34679   return 0;
34680 if (sizeof (ac__type_new_))
34681   return 0;
34682   ;
34683   return 0;
34684 }
34685 _ACEOF
34686 rm -f conftest.$ac_objext
34687 if { (ac_try="$ac_compile"
34688 case "(($ac_try" in
34689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34690   *) ac_try_echo=$ac_try;;
34691 esac
34692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34693   (eval "$ac_compile") 2>conftest.er1
34694   ac_status=$?
34695   grep -v '^ *+' conftest.er1 >conftest.err
34696   rm -f conftest.er1
34697   cat conftest.err >&5
34698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699   (exit $ac_status); } && {
34700          test -z "$ac_c_werror_flag" ||
34701          test ! -s conftest.err
34702        } && test -s conftest.$ac_objext; then
34703   ac_cv_type_long_long=yes
34704 else
34705   echo "$as_me: failed program was:" >&5
34706 sed 's/^/| /' conftest.$ac_ext >&5
34707
34708         ac_cv_type_long_long=no
34709 fi
34710
34711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34712 fi
34713 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34714 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34715
34716 # The cast to long int works around a bug in the HP C Compiler
34717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34719 # This bug is HP SR number 8606223364.
34720 { echo "$as_me:$LINENO: checking size of long long" >&5
34721 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34722 if test "${ac_cv_sizeof_long_long+set}" = set; then
34723   echo $ECHO_N "(cached) $ECHO_C" >&6
34724 else
34725   if test "$cross_compiling" = yes; then
34726   # Depending upon the size, compute the lo and hi bounds.
34727 cat >conftest.$ac_ext <<_ACEOF
34728 /* confdefs.h.  */
34729 _ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h.  */
34733 $ac_includes_default
34734    typedef long long ac__type_sizeof_;
34735 int
34736 main ()
34737 {
34738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34739 test_array [0] = 0
34740
34741   ;
34742   return 0;
34743 }
34744 _ACEOF
34745 rm -f conftest.$ac_objext
34746 if { (ac_try="$ac_compile"
34747 case "(($ac_try" in
34748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34749   *) ac_try_echo=$ac_try;;
34750 esac
34751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34752   (eval "$ac_compile") 2>conftest.er1
34753   ac_status=$?
34754   grep -v '^ *+' conftest.er1 >conftest.err
34755   rm -f conftest.er1
34756   cat conftest.err >&5
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); } && {
34759          test -z "$ac_c_werror_flag" ||
34760          test ! -s conftest.err
34761        } && test -s conftest.$ac_objext; then
34762   ac_lo=0 ac_mid=0
34763   while :; do
34764     cat >conftest.$ac_ext <<_ACEOF
34765 /* confdefs.h.  */
34766 _ACEOF
34767 cat confdefs.h >>conftest.$ac_ext
34768 cat >>conftest.$ac_ext <<_ACEOF
34769 /* end confdefs.h.  */
34770 $ac_includes_default
34771    typedef long long ac__type_sizeof_;
34772 int
34773 main ()
34774 {
34775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34776 test_array [0] = 0
34777
34778   ;
34779   return 0;
34780 }
34781 _ACEOF
34782 rm -f conftest.$ac_objext
34783 if { (ac_try="$ac_compile"
34784 case "(($ac_try" in
34785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34786   *) ac_try_echo=$ac_try;;
34787 esac
34788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34789   (eval "$ac_compile") 2>conftest.er1
34790   ac_status=$?
34791   grep -v '^ *+' conftest.er1 >conftest.err
34792   rm -f conftest.er1
34793   cat conftest.err >&5
34794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795   (exit $ac_status); } && {
34796          test -z "$ac_c_werror_flag" ||
34797          test ! -s conftest.err
34798        } && test -s conftest.$ac_objext; then
34799   ac_hi=$ac_mid; break
34800 else
34801   echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34803
34804         ac_lo=`expr $ac_mid + 1`
34805                         if test $ac_lo -le $ac_mid; then
34806                           ac_lo= ac_hi=
34807                           break
34808                         fi
34809                         ac_mid=`expr 2 '*' $ac_mid + 1`
34810 fi
34811
34812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34813   done
34814 else
34815   echo "$as_me: failed program was:" >&5
34816 sed 's/^/| /' conftest.$ac_ext >&5
34817
34818         cat >conftest.$ac_ext <<_ACEOF
34819 /* confdefs.h.  */
34820 _ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h.  */
34824 $ac_includes_default
34825    typedef long long ac__type_sizeof_;
34826 int
34827 main ()
34828 {
34829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34830 test_array [0] = 0
34831
34832   ;
34833   return 0;
34834 }
34835 _ACEOF
34836 rm -f conftest.$ac_objext
34837 if { (ac_try="$ac_compile"
34838 case "(($ac_try" in
34839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34840   *) ac_try_echo=$ac_try;;
34841 esac
34842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34843   (eval "$ac_compile") 2>conftest.er1
34844   ac_status=$?
34845   grep -v '^ *+' conftest.er1 >conftest.err
34846   rm -f conftest.er1
34847   cat conftest.err >&5
34848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849   (exit $ac_status); } && {
34850          test -z "$ac_c_werror_flag" ||
34851          test ! -s conftest.err
34852        } && test -s conftest.$ac_objext; then
34853   ac_hi=-1 ac_mid=-1
34854   while :; do
34855     cat >conftest.$ac_ext <<_ACEOF
34856 /* confdefs.h.  */
34857 _ACEOF
34858 cat confdefs.h >>conftest.$ac_ext
34859 cat >>conftest.$ac_ext <<_ACEOF
34860 /* end confdefs.h.  */
34861 $ac_includes_default
34862    typedef long long ac__type_sizeof_;
34863 int
34864 main ()
34865 {
34866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34867 test_array [0] = 0
34868
34869   ;
34870   return 0;
34871 }
34872 _ACEOF
34873 rm -f conftest.$ac_objext
34874 if { (ac_try="$ac_compile"
34875 case "(($ac_try" in
34876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34877   *) ac_try_echo=$ac_try;;
34878 esac
34879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34880   (eval "$ac_compile") 2>conftest.er1
34881   ac_status=$?
34882   grep -v '^ *+' conftest.er1 >conftest.err
34883   rm -f conftest.er1
34884   cat conftest.err >&5
34885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886   (exit $ac_status); } && {
34887          test -z "$ac_c_werror_flag" ||
34888          test ! -s conftest.err
34889        } && test -s conftest.$ac_objext; then
34890   ac_lo=$ac_mid; break
34891 else
34892   echo "$as_me: failed program was:" >&5
34893 sed 's/^/| /' conftest.$ac_ext >&5
34894
34895         ac_hi=`expr '(' $ac_mid ')' - 1`
34896                         if test $ac_mid -le $ac_hi; then
34897                           ac_lo= ac_hi=
34898                           break
34899                         fi
34900                         ac_mid=`expr 2 '*' $ac_mid`
34901 fi
34902
34903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34904   done
34905 else
34906   echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34908
34909         ac_lo= ac_hi=
34910 fi
34911
34912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34913 fi
34914
34915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34916 # Binary search between lo and hi bounds.
34917 while test "x$ac_lo" != "x$ac_hi"; do
34918   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34919   cat >conftest.$ac_ext <<_ACEOF
34920 /* confdefs.h.  */
34921 _ACEOF
34922 cat confdefs.h >>conftest.$ac_ext
34923 cat >>conftest.$ac_ext <<_ACEOF
34924 /* end confdefs.h.  */
34925 $ac_includes_default
34926    typedef long long ac__type_sizeof_;
34927 int
34928 main ()
34929 {
34930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34931 test_array [0] = 0
34932
34933   ;
34934   return 0;
34935 }
34936 _ACEOF
34937 rm -f conftest.$ac_objext
34938 if { (ac_try="$ac_compile"
34939 case "(($ac_try" in
34940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941   *) ac_try_echo=$ac_try;;
34942 esac
34943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944   (eval "$ac_compile") 2>conftest.er1
34945   ac_status=$?
34946   grep -v '^ *+' conftest.er1 >conftest.err
34947   rm -f conftest.er1
34948   cat conftest.err >&5
34949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950   (exit $ac_status); } && {
34951          test -z "$ac_c_werror_flag" ||
34952          test ! -s conftest.err
34953        } && test -s conftest.$ac_objext; then
34954   ac_hi=$ac_mid
34955 else
34956   echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34958
34959         ac_lo=`expr '(' $ac_mid ')' + 1`
34960 fi
34961
34962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34963 done
34964 case $ac_lo in
34965 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34966 '') if test "$ac_cv_type_long_long" = yes; then
34967      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34968 See \`config.log' for more details." >&5
34969 echo "$as_me: error: cannot compute sizeof (long long)
34970 See \`config.log' for more details." >&2;}
34971    { (exit 77); exit 77; }; }
34972    else
34973      ac_cv_sizeof_long_long=0
34974    fi ;;
34975 esac
34976 else
34977   cat >conftest.$ac_ext <<_ACEOF
34978 /* confdefs.h.  */
34979 _ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h.  */
34983 $ac_includes_default
34984    typedef long long ac__type_sizeof_;
34985 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34986 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34987 #include <stdio.h>
34988 #include <stdlib.h>
34989 int
34990 main ()
34991 {
34992
34993   FILE *f = fopen ("conftest.val", "w");
34994   if (! f)
34995     return 1;
34996   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34997     {
34998       long int i = longval ();
34999       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35000         return 1;
35001       fprintf (f, "%ld\n", i);
35002     }
35003   else
35004     {
35005       unsigned long int i = ulongval ();
35006       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35007         return 1;
35008       fprintf (f, "%lu\n", i);
35009     }
35010   return ferror (f) || fclose (f) != 0;
35011
35012   ;
35013   return 0;
35014 }
35015 _ACEOF
35016 rm -f conftest$ac_exeext
35017 if { (ac_try="$ac_link"
35018 case "(($ac_try" in
35019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35020   *) ac_try_echo=$ac_try;;
35021 esac
35022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35023   (eval "$ac_link") 2>&5
35024   ac_status=$?
35025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35027   { (case "(($ac_try" in
35028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35029   *) ac_try_echo=$ac_try;;
35030 esac
35031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35032   (eval "$ac_try") 2>&5
35033   ac_status=$?
35034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35035   (exit $ac_status); }; }; then
35036   ac_cv_sizeof_long_long=`cat conftest.val`
35037 else
35038   echo "$as_me: program exited with status $ac_status" >&5
35039 echo "$as_me: failed program was:" >&5
35040 sed 's/^/| /' conftest.$ac_ext >&5
35041
35042 ( exit $ac_status )
35043 if test "$ac_cv_type_long_long" = yes; then
35044      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35045 See \`config.log' for more details." >&5
35046 echo "$as_me: error: cannot compute sizeof (long long)
35047 See \`config.log' for more details." >&2;}
35048    { (exit 77); exit 77; }; }
35049    else
35050      ac_cv_sizeof_long_long=0
35051    fi
35052 fi
35053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35054 fi
35055 rm -f conftest.val
35056 fi
35057 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35058 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35059
35060
35061
35062 cat >>confdefs.h <<_ACEOF
35063 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35064 _ACEOF
35065
35066
35067 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35068 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35069 if test "${ac_cv_type_wchar_t+set}" = set; then
35070   echo $ECHO_N "(cached) $ECHO_C" >&6
35071 else
35072   cat >conftest.$ac_ext <<_ACEOF
35073 /* confdefs.h.  */
35074 _ACEOF
35075 cat confdefs.h >>conftest.$ac_ext
35076 cat >>conftest.$ac_ext <<_ACEOF
35077 /* end confdefs.h.  */
35078 $ac_includes_default
35079 typedef wchar_t ac__type_new_;
35080 int
35081 main ()
35082 {
35083 if ((ac__type_new_ *) 0)
35084   return 0;
35085 if (sizeof (ac__type_new_))
35086   return 0;
35087   ;
35088   return 0;
35089 }
35090 _ACEOF
35091 rm -f conftest.$ac_objext
35092 if { (ac_try="$ac_compile"
35093 case "(($ac_try" in
35094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35095   *) ac_try_echo=$ac_try;;
35096 esac
35097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35098   (eval "$ac_compile") 2>conftest.er1
35099   ac_status=$?
35100   grep -v '^ *+' conftest.er1 >conftest.err
35101   rm -f conftest.er1
35102   cat conftest.err >&5
35103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104   (exit $ac_status); } && {
35105          test -z "$ac_c_werror_flag" ||
35106          test ! -s conftest.err
35107        } && test -s conftest.$ac_objext; then
35108   ac_cv_type_wchar_t=yes
35109 else
35110   echo "$as_me: failed program was:" >&5
35111 sed 's/^/| /' conftest.$ac_ext >&5
35112
35113         ac_cv_type_wchar_t=no
35114 fi
35115
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35117 fi
35118 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35119 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35120
35121 # The cast to long int works around a bug in the HP C Compiler
35122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35124 # This bug is HP SR number 8606223364.
35125 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35126 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35127 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35128   echo $ECHO_N "(cached) $ECHO_C" >&6
35129 else
35130   if test "$cross_compiling" = yes; then
35131   # Depending upon the size, compute the lo and hi bounds.
35132 cat >conftest.$ac_ext <<_ACEOF
35133 /* confdefs.h.  */
35134 _ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h.  */
35138 $ac_includes_default
35139    typedef wchar_t ac__type_sizeof_;
35140 int
35141 main ()
35142 {
35143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35144 test_array [0] = 0
35145
35146   ;
35147   return 0;
35148 }
35149 _ACEOF
35150 rm -f conftest.$ac_objext
35151 if { (ac_try="$ac_compile"
35152 case "(($ac_try" in
35153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35154   *) ac_try_echo=$ac_try;;
35155 esac
35156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35157   (eval "$ac_compile") 2>conftest.er1
35158   ac_status=$?
35159   grep -v '^ *+' conftest.er1 >conftest.err
35160   rm -f conftest.er1
35161   cat conftest.err >&5
35162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163   (exit $ac_status); } && {
35164          test -z "$ac_c_werror_flag" ||
35165          test ! -s conftest.err
35166        } && test -s conftest.$ac_objext; then
35167   ac_lo=0 ac_mid=0
35168   while :; do
35169     cat >conftest.$ac_ext <<_ACEOF
35170 /* confdefs.h.  */
35171 _ACEOF
35172 cat confdefs.h >>conftest.$ac_ext
35173 cat >>conftest.$ac_ext <<_ACEOF
35174 /* end confdefs.h.  */
35175 $ac_includes_default
35176    typedef wchar_t ac__type_sizeof_;
35177 int
35178 main ()
35179 {
35180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35181 test_array [0] = 0
35182
35183   ;
35184   return 0;
35185 }
35186 _ACEOF
35187 rm -f conftest.$ac_objext
35188 if { (ac_try="$ac_compile"
35189 case "(($ac_try" in
35190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191   *) ac_try_echo=$ac_try;;
35192 esac
35193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35194   (eval "$ac_compile") 2>conftest.er1
35195   ac_status=$?
35196   grep -v '^ *+' conftest.er1 >conftest.err
35197   rm -f conftest.er1
35198   cat conftest.err >&5
35199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200   (exit $ac_status); } && {
35201          test -z "$ac_c_werror_flag" ||
35202          test ! -s conftest.err
35203        } && test -s conftest.$ac_objext; then
35204   ac_hi=$ac_mid; break
35205 else
35206   echo "$as_me: failed program was:" >&5
35207 sed 's/^/| /' conftest.$ac_ext >&5
35208
35209         ac_lo=`expr $ac_mid + 1`
35210                         if test $ac_lo -le $ac_mid; then
35211                           ac_lo= ac_hi=
35212                           break
35213                         fi
35214                         ac_mid=`expr 2 '*' $ac_mid + 1`
35215 fi
35216
35217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35218   done
35219 else
35220   echo "$as_me: failed program was:" >&5
35221 sed 's/^/| /' conftest.$ac_ext >&5
35222
35223         cat >conftest.$ac_ext <<_ACEOF
35224 /* confdefs.h.  */
35225 _ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h.  */
35229 $ac_includes_default
35230    typedef wchar_t ac__type_sizeof_;
35231 int
35232 main ()
35233 {
35234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35235 test_array [0] = 0
35236
35237   ;
35238   return 0;
35239 }
35240 _ACEOF
35241 rm -f conftest.$ac_objext
35242 if { (ac_try="$ac_compile"
35243 case "(($ac_try" in
35244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35245   *) ac_try_echo=$ac_try;;
35246 esac
35247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35248   (eval "$ac_compile") 2>conftest.er1
35249   ac_status=$?
35250   grep -v '^ *+' conftest.er1 >conftest.err
35251   rm -f conftest.er1
35252   cat conftest.err >&5
35253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254   (exit $ac_status); } && {
35255          test -z "$ac_c_werror_flag" ||
35256          test ! -s conftest.err
35257        } && test -s conftest.$ac_objext; then
35258   ac_hi=-1 ac_mid=-1
35259   while :; do
35260     cat >conftest.$ac_ext <<_ACEOF
35261 /* confdefs.h.  */
35262 _ACEOF
35263 cat confdefs.h >>conftest.$ac_ext
35264 cat >>conftest.$ac_ext <<_ACEOF
35265 /* end confdefs.h.  */
35266 $ac_includes_default
35267    typedef wchar_t ac__type_sizeof_;
35268 int
35269 main ()
35270 {
35271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35272 test_array [0] = 0
35273
35274   ;
35275   return 0;
35276 }
35277 _ACEOF
35278 rm -f conftest.$ac_objext
35279 if { (ac_try="$ac_compile"
35280 case "(($ac_try" in
35281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35282   *) ac_try_echo=$ac_try;;
35283 esac
35284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35285   (eval "$ac_compile") 2>conftest.er1
35286   ac_status=$?
35287   grep -v '^ *+' conftest.er1 >conftest.err
35288   rm -f conftest.er1
35289   cat conftest.err >&5
35290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291   (exit $ac_status); } && {
35292          test -z "$ac_c_werror_flag" ||
35293          test ! -s conftest.err
35294        } && test -s conftest.$ac_objext; then
35295   ac_lo=$ac_mid; break
35296 else
35297   echo "$as_me: failed program was:" >&5
35298 sed 's/^/| /' conftest.$ac_ext >&5
35299
35300         ac_hi=`expr '(' $ac_mid ')' - 1`
35301                         if test $ac_mid -le $ac_hi; then
35302                           ac_lo= ac_hi=
35303                           break
35304                         fi
35305                         ac_mid=`expr 2 '*' $ac_mid`
35306 fi
35307
35308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35309   done
35310 else
35311   echo "$as_me: failed program was:" >&5
35312 sed 's/^/| /' conftest.$ac_ext >&5
35313
35314         ac_lo= ac_hi=
35315 fi
35316
35317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35318 fi
35319
35320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35321 # Binary search between lo and hi bounds.
35322 while test "x$ac_lo" != "x$ac_hi"; do
35323   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35324   cat >conftest.$ac_ext <<_ACEOF
35325 /* confdefs.h.  */
35326 _ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h.  */
35330 $ac_includes_default
35331    typedef wchar_t ac__type_sizeof_;
35332 int
35333 main ()
35334 {
35335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35336 test_array [0] = 0
35337
35338   ;
35339   return 0;
35340 }
35341 _ACEOF
35342 rm -f conftest.$ac_objext
35343 if { (ac_try="$ac_compile"
35344 case "(($ac_try" in
35345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35346   *) ac_try_echo=$ac_try;;
35347 esac
35348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35349   (eval "$ac_compile") 2>conftest.er1
35350   ac_status=$?
35351   grep -v '^ *+' conftest.er1 >conftest.err
35352   rm -f conftest.er1
35353   cat conftest.err >&5
35354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355   (exit $ac_status); } && {
35356          test -z "$ac_c_werror_flag" ||
35357          test ! -s conftest.err
35358        } && test -s conftest.$ac_objext; then
35359   ac_hi=$ac_mid
35360 else
35361   echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35363
35364         ac_lo=`expr '(' $ac_mid ')' + 1`
35365 fi
35366
35367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35368 done
35369 case $ac_lo in
35370 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35371 '') if test "$ac_cv_type_wchar_t" = yes; then
35372      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35373 See \`config.log' for more details." >&5
35374 echo "$as_me: error: cannot compute sizeof (wchar_t)
35375 See \`config.log' for more details." >&2;}
35376    { (exit 77); exit 77; }; }
35377    else
35378      ac_cv_sizeof_wchar_t=0
35379    fi ;;
35380 esac
35381 else
35382   cat >conftest.$ac_ext <<_ACEOF
35383 /* confdefs.h.  */
35384 _ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h.  */
35388 $ac_includes_default
35389    typedef wchar_t ac__type_sizeof_;
35390 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35391 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35392 #include <stdio.h>
35393 #include <stdlib.h>
35394 int
35395 main ()
35396 {
35397
35398   FILE *f = fopen ("conftest.val", "w");
35399   if (! f)
35400     return 1;
35401   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35402     {
35403       long int i = longval ();
35404       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35405         return 1;
35406       fprintf (f, "%ld\n", i);
35407     }
35408   else
35409     {
35410       unsigned long int i = ulongval ();
35411       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35412         return 1;
35413       fprintf (f, "%lu\n", i);
35414     }
35415   return ferror (f) || fclose (f) != 0;
35416
35417   ;
35418   return 0;
35419 }
35420 _ACEOF
35421 rm -f conftest$ac_exeext
35422 if { (ac_try="$ac_link"
35423 case "(($ac_try" in
35424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35425   *) ac_try_echo=$ac_try;;
35426 esac
35427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35428   (eval "$ac_link") 2>&5
35429   ac_status=$?
35430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35432   { (case "(($ac_try" in
35433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35434   *) ac_try_echo=$ac_try;;
35435 esac
35436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35437   (eval "$ac_try") 2>&5
35438   ac_status=$?
35439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440   (exit $ac_status); }; }; then
35441   ac_cv_sizeof_wchar_t=`cat conftest.val`
35442 else
35443   echo "$as_me: program exited with status $ac_status" >&5
35444 echo "$as_me: failed program was:" >&5
35445 sed 's/^/| /' conftest.$ac_ext >&5
35446
35447 ( exit $ac_status )
35448 if test "$ac_cv_type_wchar_t" = yes; then
35449      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35450 See \`config.log' for more details." >&5
35451 echo "$as_me: error: cannot compute sizeof (wchar_t)
35452 See \`config.log' for more details." >&2;}
35453    { (exit 77); exit 77; }; }
35454    else
35455      ac_cv_sizeof_wchar_t=0
35456    fi
35457 fi
35458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35459 fi
35460 rm -f conftest.val
35461 fi
35462 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35463 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35464
35465
35466
35467 cat >>confdefs.h <<_ACEOF
35468 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35469 _ACEOF
35470
35471
35472
35473 if test "$ac_cv_sizeof_int" -lt 4 ; then
35474         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35475 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35476
35477
35478 cat >>confdefs.h <<\_ACEOF
35479 #define LBER_INT_T long
35480 _ACEOF
35481
35482 else
35483
35484 cat >>confdefs.h <<\_ACEOF
35485 #define LBER_INT_T int
35486 _ACEOF
35487
35488 fi
35489
35490
35491 cat >>confdefs.h <<\_ACEOF
35492 #define LBER_LEN_T long
35493 _ACEOF
35494
35495
35496 cat >>confdefs.h <<\_ACEOF
35497 #define LBER_SOCKET_T int
35498 _ACEOF
35499
35500
35501 cat >>confdefs.h <<\_ACEOF
35502 #define LBER_TAG_T long
35503 _ACEOF
35504
35505
35506 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35507         if test $ac_cv_sizeof_long_long -gt 4 ; then
35508                 ol_with_mp=longlong
35509
35510 cat >>confdefs.h <<\_ACEOF
35511 #define USE_MP_LONG_LONG 1
35512 _ACEOF
35513
35514         elif test $ol_with_mp = longlong ; then
35515                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35516 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35517    { (exit 1); exit 1; }; }
35518         fi
35519 fi
35520 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35521         if test $ac_cv_sizeof_long -gt 4 ; then
35522                 ol_with_mp=long
35523
35524 cat >>confdefs.h <<\_ACEOF
35525 #define USE_MP_LONG 1
35526 _ACEOF
35527
35528         elif test $ol_with_mp = long ; then
35529                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35530 echo "$as_me: error: long unusable for multiple precision" >&2;}
35531    { (exit 1); exit 1; }; }
35532         fi
35533 fi
35534 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35535
35536 for ac_header in openssl/bn.h
35537 do
35538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35540   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35543   echo $ECHO_N "(cached) $ECHO_C" >&6
35544 fi
35545 ac_res=`eval echo '${'$as_ac_Header'}'`
35546                { echo "$as_me:$LINENO: result: $ac_res" >&5
35547 echo "${ECHO_T}$ac_res" >&6; }
35548 else
35549   # Is the header compilable?
35550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35552 cat >conftest.$ac_ext <<_ACEOF
35553 /* confdefs.h.  */
35554 _ACEOF
35555 cat confdefs.h >>conftest.$ac_ext
35556 cat >>conftest.$ac_ext <<_ACEOF
35557 /* end confdefs.h.  */
35558 $ac_includes_default
35559 #include <$ac_header>
35560 _ACEOF
35561 rm -f conftest.$ac_objext
35562 if { (ac_try="$ac_compile"
35563 case "(($ac_try" in
35564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35565   *) ac_try_echo=$ac_try;;
35566 esac
35567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35568   (eval "$ac_compile") 2>conftest.er1
35569   ac_status=$?
35570   grep -v '^ *+' conftest.er1 >conftest.err
35571   rm -f conftest.er1
35572   cat conftest.err >&5
35573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574   (exit $ac_status); } && {
35575          test -z "$ac_c_werror_flag" ||
35576          test ! -s conftest.err
35577        } && test -s conftest.$ac_objext; then
35578   ac_header_compiler=yes
35579 else
35580   echo "$as_me: failed program was:" >&5
35581 sed 's/^/| /' conftest.$ac_ext >&5
35582
35583         ac_header_compiler=no
35584 fi
35585
35586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35588 echo "${ECHO_T}$ac_header_compiler" >&6; }
35589
35590 # Is the header present?
35591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35593 cat >conftest.$ac_ext <<_ACEOF
35594 /* confdefs.h.  */
35595 _ACEOF
35596 cat confdefs.h >>conftest.$ac_ext
35597 cat >>conftest.$ac_ext <<_ACEOF
35598 /* end confdefs.h.  */
35599 #include <$ac_header>
35600 _ACEOF
35601 if { (ac_try="$ac_cpp conftest.$ac_ext"
35602 case "(($ac_try" in
35603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604   *) ac_try_echo=$ac_try;;
35605 esac
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35608   ac_status=$?
35609   grep -v '^ *+' conftest.er1 >conftest.err
35610   rm -f conftest.er1
35611   cat conftest.err >&5
35612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613   (exit $ac_status); } >/dev/null && {
35614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35615          test ! -s conftest.err
35616        }; then
35617   ac_header_preproc=yes
35618 else
35619   echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35621
35622   ac_header_preproc=no
35623 fi
35624
35625 rm -f conftest.err conftest.$ac_ext
35626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35627 echo "${ECHO_T}$ac_header_preproc" >&6; }
35628
35629 # So?  What about this header?
35630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35631   yes:no: )
35632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35636     ac_header_preproc=yes
35637     ;;
35638   no:yes:* )
35639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35651     ( cat <<\_ASBOX
35652 ## --------------------------------------------- ##
35653 ## Report this to <http://www.openldap.org/its/> ##
35654 ## --------------------------------------------- ##
35655 _ASBOX
35656      ) | sed "s/^/$as_me: WARNING:     /" >&2
35657     ;;
35658 esac
35659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35662   echo $ECHO_N "(cached) $ECHO_C" >&6
35663 else
35664   eval "$as_ac_Header=\$ac_header_preproc"
35665 fi
35666 ac_res=`eval echo '${'$as_ac_Header'}'`
35667                { echo "$as_me:$LINENO: result: $ac_res" >&5
35668 echo "${ECHO_T}$ac_res" >&6; }
35669
35670 fi
35671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35672   cat >>confdefs.h <<_ACEOF
35673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35674 _ACEOF
35675
35676 fi
35677
35678 done
35679
35680
35681 for ac_header in openssl/crypto.h
35682 do
35683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35685   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35688   echo $ECHO_N "(cached) $ECHO_C" >&6
35689 fi
35690 ac_res=`eval echo '${'$as_ac_Header'}'`
35691                { echo "$as_me:$LINENO: result: $ac_res" >&5
35692 echo "${ECHO_T}$ac_res" >&6; }
35693 else
35694   # Is the header compilable?
35695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35697 cat >conftest.$ac_ext <<_ACEOF
35698 /* confdefs.h.  */
35699 _ACEOF
35700 cat confdefs.h >>conftest.$ac_ext
35701 cat >>conftest.$ac_ext <<_ACEOF
35702 /* end confdefs.h.  */
35703 $ac_includes_default
35704 #include <$ac_header>
35705 _ACEOF
35706 rm -f conftest.$ac_objext
35707 if { (ac_try="$ac_compile"
35708 case "(($ac_try" in
35709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35710   *) ac_try_echo=$ac_try;;
35711 esac
35712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35713   (eval "$ac_compile") 2>conftest.er1
35714   ac_status=$?
35715   grep -v '^ *+' conftest.er1 >conftest.err
35716   rm -f conftest.er1
35717   cat conftest.err >&5
35718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719   (exit $ac_status); } && {
35720          test -z "$ac_c_werror_flag" ||
35721          test ! -s conftest.err
35722        } && test -s conftest.$ac_objext; then
35723   ac_header_compiler=yes
35724 else
35725   echo "$as_me: failed program was:" >&5
35726 sed 's/^/| /' conftest.$ac_ext >&5
35727
35728         ac_header_compiler=no
35729 fi
35730
35731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35733 echo "${ECHO_T}$ac_header_compiler" >&6; }
35734
35735 # Is the header present?
35736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35738 cat >conftest.$ac_ext <<_ACEOF
35739 /* confdefs.h.  */
35740 _ACEOF
35741 cat confdefs.h >>conftest.$ac_ext
35742 cat >>conftest.$ac_ext <<_ACEOF
35743 /* end confdefs.h.  */
35744 #include <$ac_header>
35745 _ACEOF
35746 if { (ac_try="$ac_cpp conftest.$ac_ext"
35747 case "(($ac_try" in
35748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35749   *) ac_try_echo=$ac_try;;
35750 esac
35751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35753   ac_status=$?
35754   grep -v '^ *+' conftest.er1 >conftest.err
35755   rm -f conftest.er1
35756   cat conftest.err >&5
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); } >/dev/null && {
35759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35760          test ! -s conftest.err
35761        }; then
35762   ac_header_preproc=yes
35763 else
35764   echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35766
35767   ac_header_preproc=no
35768 fi
35769
35770 rm -f conftest.err conftest.$ac_ext
35771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35772 echo "${ECHO_T}$ac_header_preproc" >&6; }
35773
35774 # So?  What about this header?
35775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35776   yes:no: )
35777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35781     ac_header_preproc=yes
35782     ;;
35783   no:yes:* )
35784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35796     ( cat <<\_ASBOX
35797 ## --------------------------------------------- ##
35798 ## Report this to <http://www.openldap.org/its/> ##
35799 ## --------------------------------------------- ##
35800 _ASBOX
35801      ) | sed "s/^/$as_me: WARNING:     /" >&2
35802     ;;
35803 esac
35804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35807   echo $ECHO_N "(cached) $ECHO_C" >&6
35808 else
35809   eval "$as_ac_Header=\$ac_header_preproc"
35810 fi
35811 ac_res=`eval echo '${'$as_ac_Header'}'`
35812                { echo "$as_me:$LINENO: result: $ac_res" >&5
35813 echo "${ECHO_T}$ac_res" >&6; }
35814
35815 fi
35816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35817   cat >>confdefs.h <<_ACEOF
35818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35819 _ACEOF
35820
35821 fi
35822
35823 done
35824
35825         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35826                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35827                 test "$ol_with_tls" = "found" ; then
35828                 ol_with_mp=bignum
35829
35830 cat >>confdefs.h <<\_ACEOF
35831 #define USE_MP_BIGNUM 1
35832 _ACEOF
35833
35834         elif test $ol_with_mp = bignum ; then
35835                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35836 echo "$as_me: error: bignum not available" >&2;}
35837    { (exit 1); exit 1; }; }
35838         fi
35839 fi
35840 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35841
35842 for ac_header in gmp.h
35843 do
35844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35846   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35849   echo $ECHO_N "(cached) $ECHO_C" >&6
35850 fi
35851 ac_res=`eval echo '${'$as_ac_Header'}'`
35852                { echo "$as_me:$LINENO: result: $ac_res" >&5
35853 echo "${ECHO_T}$ac_res" >&6; }
35854 else
35855   # Is the header compilable?
35856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35858 cat >conftest.$ac_ext <<_ACEOF
35859 /* confdefs.h.  */
35860 _ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h.  */
35864 $ac_includes_default
35865 #include <$ac_header>
35866 _ACEOF
35867 rm -f conftest.$ac_objext
35868 if { (ac_try="$ac_compile"
35869 case "(($ac_try" in
35870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871   *) ac_try_echo=$ac_try;;
35872 esac
35873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874   (eval "$ac_compile") 2>conftest.er1
35875   ac_status=$?
35876   grep -v '^ *+' conftest.er1 >conftest.err
35877   rm -f conftest.er1
35878   cat conftest.err >&5
35879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880   (exit $ac_status); } && {
35881          test -z "$ac_c_werror_flag" ||
35882          test ! -s conftest.err
35883        } && test -s conftest.$ac_objext; then
35884   ac_header_compiler=yes
35885 else
35886   echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35888
35889         ac_header_compiler=no
35890 fi
35891
35892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35894 echo "${ECHO_T}$ac_header_compiler" >&6; }
35895
35896 # Is the header present?
35897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35899 cat >conftest.$ac_ext <<_ACEOF
35900 /* confdefs.h.  */
35901 _ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h.  */
35905 #include <$ac_header>
35906 _ACEOF
35907 if { (ac_try="$ac_cpp conftest.$ac_ext"
35908 case "(($ac_try" in
35909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35910   *) ac_try_echo=$ac_try;;
35911 esac
35912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35914   ac_status=$?
35915   grep -v '^ *+' conftest.er1 >conftest.err
35916   rm -f conftest.er1
35917   cat conftest.err >&5
35918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919   (exit $ac_status); } >/dev/null && {
35920          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35921          test ! -s conftest.err
35922        }; then
35923   ac_header_preproc=yes
35924 else
35925   echo "$as_me: failed program was:" >&5
35926 sed 's/^/| /' conftest.$ac_ext >&5
35927
35928   ac_header_preproc=no
35929 fi
35930
35931 rm -f conftest.err conftest.$ac_ext
35932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35933 echo "${ECHO_T}$ac_header_preproc" >&6; }
35934
35935 # So?  What about this header?
35936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35937   yes:no: )
35938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35942     ac_header_preproc=yes
35943     ;;
35944   no:yes:* )
35945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35957     ( cat <<\_ASBOX
35958 ## --------------------------------------------- ##
35959 ## Report this to <http://www.openldap.org/its/> ##
35960 ## --------------------------------------------- ##
35961 _ASBOX
35962      ) | sed "s/^/$as_me: WARNING:     /" >&2
35963     ;;
35964 esac
35965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35968   echo $ECHO_N "(cached) $ECHO_C" >&6
35969 else
35970   eval "$as_ac_Header=\$ac_header_preproc"
35971 fi
35972 ac_res=`eval echo '${'$as_ac_Header'}'`
35973                { echo "$as_me:$LINENO: result: $ac_res" >&5
35974 echo "${ECHO_T}$ac_res" >&6; }
35975
35976 fi
35977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35978   cat >>confdefs.h <<_ACEOF
35979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35980 _ACEOF
35981
35982 fi
35983
35984 done
35985
35986
35987 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35988 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35989 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35990   echo $ECHO_N "(cached) $ECHO_C" >&6
35991 else
35992   ac_check_lib_save_LIBS=$LIBS
35993 LIBS="-lgmp  $LIBS"
35994 cat >conftest.$ac_ext <<_ACEOF
35995 /* confdefs.h.  */
35996 _ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h.  */
36000
36001 /* Override any GCC internal prototype to avoid an error.
36002    Use char because int might match the return type of a GCC
36003    builtin and then its argument prototype would still apply.  */
36004 #ifdef __cplusplus
36005 extern "C"
36006 #endif
36007 char __gmpz_add_ui ();
36008 int
36009 main ()
36010 {
36011 return __gmpz_add_ui ();
36012   ;
36013   return 0;
36014 }
36015 _ACEOF
36016 rm -f conftest.$ac_objext conftest$ac_exeext
36017 if { (ac_try="$ac_link"
36018 case "(($ac_try" in
36019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36020   *) ac_try_echo=$ac_try;;
36021 esac
36022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36023   (eval "$ac_link") 2>conftest.er1
36024   ac_status=$?
36025   grep -v '^ *+' conftest.er1 >conftest.err
36026   rm -f conftest.er1
36027   cat conftest.err >&5
36028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029   (exit $ac_status); } && {
36030          test -z "$ac_c_werror_flag" ||
36031          test ! -s conftest.err
36032        } && test -s conftest$ac_exeext &&
36033        $as_test_x conftest$ac_exeext; then
36034   ac_cv_lib_gmp___gmpz_add_ui=yes
36035 else
36036   echo "$as_me: failed program was:" >&5
36037 sed 's/^/| /' conftest.$ac_ext >&5
36038
36039         ac_cv_lib_gmp___gmpz_add_ui=no
36040 fi
36041
36042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36043       conftest$ac_exeext conftest.$ac_ext
36044 LIBS=$ac_check_lib_save_LIBS
36045 fi
36046 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36047 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36048 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36049   cat >>confdefs.h <<_ACEOF
36050 #define HAVE_LIBGMP 1
36051 _ACEOF
36052
36053   LIBS="-lgmp $LIBS"
36054
36055 fi
36056
36057         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36058
36059 cat >>confdefs.h <<\_ACEOF
36060 #define USE_MP_GMP 1
36061 _ACEOF
36062
36063                 ol_with_mp=gmp
36064         elif test $ol_with_mp = gmp ; then
36065                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36066 echo "$as_me: error: gmp not available" >&2;}
36067    { (exit 1); exit 1; }; }
36068         fi
36069 fi
36070 if test $ol_with_mp = auto ; then
36071         ol_with_mp=no
36072 fi
36073
36074 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36075 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36076 if test "${ac_cv_func_memcmp_working+set}" = set; then
36077   echo $ECHO_N "(cached) $ECHO_C" >&6
36078 else
36079   if test "$cross_compiling" = yes; then
36080   ac_cv_func_memcmp_working=no
36081 else
36082   cat >conftest.$ac_ext <<_ACEOF
36083 /* confdefs.h.  */
36084 _ACEOF
36085 cat confdefs.h >>conftest.$ac_ext
36086 cat >>conftest.$ac_ext <<_ACEOF
36087 /* end confdefs.h.  */
36088 $ac_includes_default
36089 int
36090 main ()
36091 {
36092
36093   /* Some versions of memcmp are not 8-bit clean.  */
36094   char c0 = '\100', c1 = '\200', c2 = '\201';
36095   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36096     return 1;
36097
36098   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36099      or more and with at least one buffer not starting on a 4-byte boundary.
36100      William Lewis provided this test program.   */
36101   {
36102     char foo[21];
36103     char bar[21];
36104     int i;
36105     for (i = 0; i < 4; i++)
36106       {
36107         char *a = foo + i;
36108         char *b = bar + i;
36109         strcpy (a, "--------01111111");
36110         strcpy (b, "--------10000000");
36111         if (memcmp (a, b, 16) >= 0)
36112           return 1;
36113       }
36114     return 0;
36115   }
36116
36117   ;
36118   return 0;
36119 }
36120 _ACEOF
36121 rm -f conftest$ac_exeext
36122 if { (ac_try="$ac_link"
36123 case "(($ac_try" in
36124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36125   *) ac_try_echo=$ac_try;;
36126 esac
36127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36128   (eval "$ac_link") 2>&5
36129   ac_status=$?
36130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36132   { (case "(($ac_try" in
36133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134   *) ac_try_echo=$ac_try;;
36135 esac
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137   (eval "$ac_try") 2>&5
36138   ac_status=$?
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); }; }; then
36141   ac_cv_func_memcmp_working=yes
36142 else
36143   echo "$as_me: program exited with status $ac_status" >&5
36144 echo "$as_me: failed program was:" >&5
36145 sed 's/^/| /' conftest.$ac_ext >&5
36146
36147 ( exit $ac_status )
36148 ac_cv_func_memcmp_working=no
36149 fi
36150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36151 fi
36152
36153
36154 fi
36155 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36156 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36157 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36158   *" memcmp.$ac_objext "* ) ;;
36159   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36160  ;;
36161 esac
36162
36163
36164
36165 if test $ac_cv_func_memcmp_working = no ; then
36166
36167 cat >>confdefs.h <<\_ACEOF
36168 #define NEED_MEMCMP_REPLACEMENT 1
36169 _ACEOF
36170
36171 fi
36172
36173
36174 for ac_func in strftime
36175 do
36176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36180   echo $ECHO_N "(cached) $ECHO_C" >&6
36181 else
36182   cat >conftest.$ac_ext <<_ACEOF
36183 /* confdefs.h.  */
36184 _ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h.  */
36188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36190 #define $ac_func innocuous_$ac_func
36191
36192 /* System header to define __stub macros and hopefully few prototypes,
36193     which can conflict with char $ac_func (); below.
36194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36195     <limits.h> exists even on freestanding compilers.  */
36196
36197 #ifdef __STDC__
36198 # include <limits.h>
36199 #else
36200 # include <assert.h>
36201 #endif
36202
36203 #undef $ac_func
36204
36205 /* Override any GCC internal prototype to avoid an error.
36206    Use char because int might match the return type of a GCC
36207    builtin and then its argument prototype would still apply.  */
36208 #ifdef __cplusplus
36209 extern "C"
36210 #endif
36211 char $ac_func ();
36212 /* The GNU C library defines this for functions which it implements
36213     to always fail with ENOSYS.  Some functions are actually named
36214     something starting with __ and the normal name is an alias.  */
36215 #if defined __stub_$ac_func || defined __stub___$ac_func
36216 choke me
36217 #endif
36218
36219 int
36220 main ()
36221 {
36222 return $ac_func ();
36223   ;
36224   return 0;
36225 }
36226 _ACEOF
36227 rm -f conftest.$ac_objext conftest$ac_exeext
36228 if { (ac_try="$ac_link"
36229 case "(($ac_try" in
36230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36231   *) ac_try_echo=$ac_try;;
36232 esac
36233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36234   (eval "$ac_link") 2>conftest.er1
36235   ac_status=$?
36236   grep -v '^ *+' conftest.er1 >conftest.err
36237   rm -f conftest.er1
36238   cat conftest.err >&5
36239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240   (exit $ac_status); } && {
36241          test -z "$ac_c_werror_flag" ||
36242          test ! -s conftest.err
36243        } && test -s conftest$ac_exeext &&
36244        $as_test_x conftest$ac_exeext; then
36245   eval "$as_ac_var=yes"
36246 else
36247   echo "$as_me: failed program was:" >&5
36248 sed 's/^/| /' conftest.$ac_ext >&5
36249
36250         eval "$as_ac_var=no"
36251 fi
36252
36253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36254       conftest$ac_exeext conftest.$ac_ext
36255 fi
36256 ac_res=`eval echo '${'$as_ac_var'}'`
36257                { echo "$as_me:$LINENO: result: $ac_res" >&5
36258 echo "${ECHO_T}$ac_res" >&6; }
36259 if test `eval echo '${'$as_ac_var'}'` = yes; then
36260   cat >>confdefs.h <<_ACEOF
36261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36262 _ACEOF
36263
36264 else
36265   # strftime is in -lintl on SCO UNIX.
36266 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36267 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36268 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36269   echo $ECHO_N "(cached) $ECHO_C" >&6
36270 else
36271   ac_check_lib_save_LIBS=$LIBS
36272 LIBS="-lintl  $LIBS"
36273 cat >conftest.$ac_ext <<_ACEOF
36274 /* confdefs.h.  */
36275 _ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h.  */
36279
36280 /* Override any GCC internal prototype to avoid an error.
36281    Use char because int might match the return type of a GCC
36282    builtin and then its argument prototype would still apply.  */
36283 #ifdef __cplusplus
36284 extern "C"
36285 #endif
36286 char strftime ();
36287 int
36288 main ()
36289 {
36290 return strftime ();
36291   ;
36292   return 0;
36293 }
36294 _ACEOF
36295 rm -f conftest.$ac_objext conftest$ac_exeext
36296 if { (ac_try="$ac_link"
36297 case "(($ac_try" in
36298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36299   *) ac_try_echo=$ac_try;;
36300 esac
36301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36302   (eval "$ac_link") 2>conftest.er1
36303   ac_status=$?
36304   grep -v '^ *+' conftest.er1 >conftest.err
36305   rm -f conftest.er1
36306   cat conftest.err >&5
36307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308   (exit $ac_status); } && {
36309          test -z "$ac_c_werror_flag" ||
36310          test ! -s conftest.err
36311        } && test -s conftest$ac_exeext &&
36312        $as_test_x conftest$ac_exeext; then
36313   ac_cv_lib_intl_strftime=yes
36314 else
36315   echo "$as_me: failed program was:" >&5
36316 sed 's/^/| /' conftest.$ac_ext >&5
36317
36318         ac_cv_lib_intl_strftime=no
36319 fi
36320
36321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36322       conftest$ac_exeext conftest.$ac_ext
36323 LIBS=$ac_check_lib_save_LIBS
36324 fi
36325 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36326 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36327 if test $ac_cv_lib_intl_strftime = yes; then
36328   cat >>confdefs.h <<\_ACEOF
36329 #define HAVE_STRFTIME 1
36330 _ACEOF
36331
36332 LIBS="-lintl $LIBS"
36333 fi
36334
36335 fi
36336 done
36337
36338
36339 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36340 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36341 if test "${ol_cv_func_inet_aton+set}" = set; then
36342   echo $ECHO_N "(cached) $ECHO_C" >&6
36343 else
36344   cat >conftest.$ac_ext <<_ACEOF
36345 /* confdefs.h.  */
36346 _ACEOF
36347 cat confdefs.h >>conftest.$ac_ext
36348 cat >>conftest.$ac_ext <<_ACEOF
36349 /* end confdefs.h.  */
36350
36351 #ifdef HAVE_SYS_TYPES_H
36352 #       include <sys/types.h>
36353 #endif
36354 #ifdef HAVE_SYS_SOCKET_H
36355 #       include <sys/socket.h>
36356 #       ifdef HAVE_SYS_SELECT_H
36357 #               include <sys/select.h>
36358 #       endif
36359 #       include <netinet/in.h>
36360 #       ifdef HAVE_ARPA_INET_H
36361 #               include <arpa/inet.h>
36362 #       endif
36363 #endif
36364
36365 int
36366 main ()
36367 {
36368 struct in_addr in;
36369 int rc = inet_aton( "255.255.255.255", &in );
36370   ;
36371   return 0;
36372 }
36373 _ACEOF
36374 rm -f conftest.$ac_objext conftest$ac_exeext
36375 if { (ac_try="$ac_link"
36376 case "(($ac_try" in
36377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378   *) ac_try_echo=$ac_try;;
36379 esac
36380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36381   (eval "$ac_link") 2>conftest.er1
36382   ac_status=$?
36383   grep -v '^ *+' conftest.er1 >conftest.err
36384   rm -f conftest.er1
36385   cat conftest.err >&5
36386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387   (exit $ac_status); } && {
36388          test -z "$ac_c_werror_flag" ||
36389          test ! -s conftest.err
36390        } && test -s conftest$ac_exeext &&
36391        $as_test_x conftest$ac_exeext; then
36392   ol_cv_func_inet_aton=yes
36393 else
36394   echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36396
36397         ol_cv_func_inet_aton=no
36398 fi
36399
36400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36401       conftest$ac_exeext conftest.$ac_ext
36402 fi
36403 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36404 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36405   if test $ol_cv_func_inet_aton != no; then
36406
36407 cat >>confdefs.h <<\_ACEOF
36408 #define HAVE_INET_ATON 1
36409 _ACEOF
36410
36411   fi
36412
36413
36414 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36415 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36416 if test "${ac_cv_func__spawnlp+set}" = set; then
36417   echo $ECHO_N "(cached) $ECHO_C" >&6
36418 else
36419   cat >conftest.$ac_ext <<_ACEOF
36420 /* confdefs.h.  */
36421 _ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h.  */
36425 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36427 #define _spawnlp innocuous__spawnlp
36428
36429 /* System header to define __stub macros and hopefully few prototypes,
36430     which can conflict with char _spawnlp (); below.
36431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36432     <limits.h> exists even on freestanding compilers.  */
36433
36434 #ifdef __STDC__
36435 # include <limits.h>
36436 #else
36437 # include <assert.h>
36438 #endif
36439
36440 #undef _spawnlp
36441
36442 /* Override any GCC internal prototype to avoid an error.
36443    Use char because int might match the return type of a GCC
36444    builtin and then its argument prototype would still apply.  */
36445 #ifdef __cplusplus
36446 extern "C"
36447 #endif
36448 char _spawnlp ();
36449 /* The GNU C library defines this for functions which it implements
36450     to always fail with ENOSYS.  Some functions are actually named
36451     something starting with __ and the normal name is an alias.  */
36452 #if defined __stub__spawnlp || defined __stub____spawnlp
36453 choke me
36454 #endif
36455
36456 int
36457 main ()
36458 {
36459 return _spawnlp ();
36460   ;
36461   return 0;
36462 }
36463 _ACEOF
36464 rm -f conftest.$ac_objext conftest$ac_exeext
36465 if { (ac_try="$ac_link"
36466 case "(($ac_try" in
36467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36468   *) ac_try_echo=$ac_try;;
36469 esac
36470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36471   (eval "$ac_link") 2>conftest.er1
36472   ac_status=$?
36473   grep -v '^ *+' conftest.er1 >conftest.err
36474   rm -f conftest.er1
36475   cat conftest.err >&5
36476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477   (exit $ac_status); } && {
36478          test -z "$ac_c_werror_flag" ||
36479          test ! -s conftest.err
36480        } && test -s conftest$ac_exeext &&
36481        $as_test_x conftest$ac_exeext; then
36482   ac_cv_func__spawnlp=yes
36483 else
36484   echo "$as_me: failed program was:" >&5
36485 sed 's/^/| /' conftest.$ac_ext >&5
36486
36487         ac_cv_func__spawnlp=no
36488 fi
36489
36490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36491       conftest$ac_exeext conftest.$ac_ext
36492 fi
36493 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36494 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36495 if test $ac_cv_func__spawnlp = yes; then
36496
36497 cat >>confdefs.h <<\_ACEOF
36498 #define HAVE_SPAWNLP 1
36499 _ACEOF
36500
36501 fi
36502
36503
36504 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36505 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36506 if test "${ac_cv_func__snprintf+set}" = set; then
36507   echo $ECHO_N "(cached) $ECHO_C" >&6
36508 else
36509   cat >conftest.$ac_ext <<_ACEOF
36510 /* confdefs.h.  */
36511 _ACEOF
36512 cat confdefs.h >>conftest.$ac_ext
36513 cat >>conftest.$ac_ext <<_ACEOF
36514 /* end confdefs.h.  */
36515 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36517 #define _snprintf innocuous__snprintf
36518
36519 /* System header to define __stub macros and hopefully few prototypes,
36520     which can conflict with char _snprintf (); below.
36521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36522     <limits.h> exists even on freestanding compilers.  */
36523
36524 #ifdef __STDC__
36525 # include <limits.h>
36526 #else
36527 # include <assert.h>
36528 #endif
36529
36530 #undef _snprintf
36531
36532 /* Override any GCC internal prototype to avoid an error.
36533    Use char because int might match the return type of a GCC
36534    builtin and then its argument prototype would still apply.  */
36535 #ifdef __cplusplus
36536 extern "C"
36537 #endif
36538 char _snprintf ();
36539 /* The GNU C library defines this for functions which it implements
36540     to always fail with ENOSYS.  Some functions are actually named
36541     something starting with __ and the normal name is an alias.  */
36542 #if defined __stub__snprintf || defined __stub____snprintf
36543 choke me
36544 #endif
36545
36546 int
36547 main ()
36548 {
36549 return _snprintf ();
36550   ;
36551   return 0;
36552 }
36553 _ACEOF
36554 rm -f conftest.$ac_objext conftest$ac_exeext
36555 if { (ac_try="$ac_link"
36556 case "(($ac_try" in
36557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558   *) ac_try_echo=$ac_try;;
36559 esac
36560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561   (eval "$ac_link") 2>conftest.er1
36562   ac_status=$?
36563   grep -v '^ *+' conftest.er1 >conftest.err
36564   rm -f conftest.er1
36565   cat conftest.err >&5
36566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567   (exit $ac_status); } && {
36568          test -z "$ac_c_werror_flag" ||
36569          test ! -s conftest.err
36570        } && test -s conftest$ac_exeext &&
36571        $as_test_x conftest$ac_exeext; then
36572   ac_cv_func__snprintf=yes
36573 else
36574   echo "$as_me: failed program was:" >&5
36575 sed 's/^/| /' conftest.$ac_ext >&5
36576
36577         ac_cv_func__snprintf=no
36578 fi
36579
36580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36581       conftest$ac_exeext conftest.$ac_ext
36582 fi
36583 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36584 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36585 if test $ac_cv_func__snprintf = yes; then
36586   ac_cv_func_snprintf=yes
36587
36588 cat >>confdefs.h <<\_ACEOF
36589 #define snprintf _snprintf
36590 _ACEOF
36591
36592
36593 fi
36594
36595
36596
36597
36598 for ac_func in vsnprintf _vsnprintf
36599 do
36600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36604   echo $ECHO_N "(cached) $ECHO_C" >&6
36605 else
36606   cat >conftest.$ac_ext <<_ACEOF
36607 /* confdefs.h.  */
36608 _ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h.  */
36612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36614 #define $ac_func innocuous_$ac_func
36615
36616 /* System header to define __stub macros and hopefully few prototypes,
36617     which can conflict with char $ac_func (); below.
36618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36619     <limits.h> exists even on freestanding compilers.  */
36620
36621 #ifdef __STDC__
36622 # include <limits.h>
36623 #else
36624 # include <assert.h>
36625 #endif
36626
36627 #undef $ac_func
36628
36629 /* Override any GCC internal prototype to avoid an error.
36630    Use char because int might match the return type of a GCC
36631    builtin and then its argument prototype would still apply.  */
36632 #ifdef __cplusplus
36633 extern "C"
36634 #endif
36635 char $ac_func ();
36636 /* The GNU C library defines this for functions which it implements
36637     to always fail with ENOSYS.  Some functions are actually named
36638     something starting with __ and the normal name is an alias.  */
36639 #if defined __stub_$ac_func || defined __stub___$ac_func
36640 choke me
36641 #endif
36642
36643 int
36644 main ()
36645 {
36646 return $ac_func ();
36647   ;
36648   return 0;
36649 }
36650 _ACEOF
36651 rm -f conftest.$ac_objext conftest$ac_exeext
36652 if { (ac_try="$ac_link"
36653 case "(($ac_try" in
36654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36655   *) ac_try_echo=$ac_try;;
36656 esac
36657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36658   (eval "$ac_link") 2>conftest.er1
36659   ac_status=$?
36660   grep -v '^ *+' conftest.er1 >conftest.err
36661   rm -f conftest.er1
36662   cat conftest.err >&5
36663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664   (exit $ac_status); } && {
36665          test -z "$ac_c_werror_flag" ||
36666          test ! -s conftest.err
36667        } && test -s conftest$ac_exeext &&
36668        $as_test_x conftest$ac_exeext; then
36669   eval "$as_ac_var=yes"
36670 else
36671   echo "$as_me: failed program was:" >&5
36672 sed 's/^/| /' conftest.$ac_ext >&5
36673
36674         eval "$as_ac_var=no"
36675 fi
36676
36677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36678       conftest$ac_exeext conftest.$ac_ext
36679 fi
36680 ac_res=`eval echo '${'$as_ac_var'}'`
36681                { echo "$as_me:$LINENO: result: $ac_res" >&5
36682 echo "${ECHO_T}$ac_res" >&6; }
36683 if test `eval echo '${'$as_ac_var'}'` = yes; then
36684   cat >>confdefs.h <<_ACEOF
36685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36686 _ACEOF
36687
36688 fi
36689 done
36690
36691
36692 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36693         ac_cv_func_vsnprintf=yes
36694
36695 cat >>confdefs.h <<\_ACEOF
36696 #define vsnprintf _vsnprintf
36697 _ACEOF
36698
36699 fi
36700
36701
36702 for ac_func in vprintf
36703 do
36704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36708   echo $ECHO_N "(cached) $ECHO_C" >&6
36709 else
36710   cat >conftest.$ac_ext <<_ACEOF
36711 /* confdefs.h.  */
36712 _ACEOF
36713 cat confdefs.h >>conftest.$ac_ext
36714 cat >>conftest.$ac_ext <<_ACEOF
36715 /* end confdefs.h.  */
36716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36718 #define $ac_func innocuous_$ac_func
36719
36720 /* System header to define __stub macros and hopefully few prototypes,
36721     which can conflict with char $ac_func (); below.
36722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36723     <limits.h> exists even on freestanding compilers.  */
36724
36725 #ifdef __STDC__
36726 # include <limits.h>
36727 #else
36728 # include <assert.h>
36729 #endif
36730
36731 #undef $ac_func
36732
36733 /* Override any GCC internal prototype to avoid an error.
36734    Use char because int might match the return type of a GCC
36735    builtin and then its argument prototype would still apply.  */
36736 #ifdef __cplusplus
36737 extern "C"
36738 #endif
36739 char $ac_func ();
36740 /* The GNU C library defines this for functions which it implements
36741     to always fail with ENOSYS.  Some functions are actually named
36742     something starting with __ and the normal name is an alias.  */
36743 #if defined __stub_$ac_func || defined __stub___$ac_func
36744 choke me
36745 #endif
36746
36747 int
36748 main ()
36749 {
36750 return $ac_func ();
36751   ;
36752   return 0;
36753 }
36754 _ACEOF
36755 rm -f conftest.$ac_objext conftest$ac_exeext
36756 if { (ac_try="$ac_link"
36757 case "(($ac_try" in
36758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36759   *) ac_try_echo=$ac_try;;
36760 esac
36761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36762   (eval "$ac_link") 2>conftest.er1
36763   ac_status=$?
36764   grep -v '^ *+' conftest.er1 >conftest.err
36765   rm -f conftest.er1
36766   cat conftest.err >&5
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); } && {
36769          test -z "$ac_c_werror_flag" ||
36770          test ! -s conftest.err
36771        } && test -s conftest$ac_exeext &&
36772        $as_test_x conftest$ac_exeext; then
36773   eval "$as_ac_var=yes"
36774 else
36775   echo "$as_me: failed program was:" >&5
36776 sed 's/^/| /' conftest.$ac_ext >&5
36777
36778         eval "$as_ac_var=no"
36779 fi
36780
36781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36782       conftest$ac_exeext conftest.$ac_ext
36783 fi
36784 ac_res=`eval echo '${'$as_ac_var'}'`
36785                { echo "$as_me:$LINENO: result: $ac_res" >&5
36786 echo "${ECHO_T}$ac_res" >&6; }
36787 if test `eval echo '${'$as_ac_var'}'` = yes; then
36788   cat >>confdefs.h <<_ACEOF
36789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36790 _ACEOF
36791
36792 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36793 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36794 if test "${ac_cv_func__doprnt+set}" = set; then
36795   echo $ECHO_N "(cached) $ECHO_C" >&6
36796 else
36797   cat >conftest.$ac_ext <<_ACEOF
36798 /* confdefs.h.  */
36799 _ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h.  */
36803 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36805 #define _doprnt innocuous__doprnt
36806
36807 /* System header to define __stub macros and hopefully few prototypes,
36808     which can conflict with char _doprnt (); below.
36809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36810     <limits.h> exists even on freestanding compilers.  */
36811
36812 #ifdef __STDC__
36813 # include <limits.h>
36814 #else
36815 # include <assert.h>
36816 #endif
36817
36818 #undef _doprnt
36819
36820 /* Override any GCC internal prototype to avoid an error.
36821    Use char because int might match the return type of a GCC
36822    builtin and then its argument prototype would still apply.  */
36823 #ifdef __cplusplus
36824 extern "C"
36825 #endif
36826 char _doprnt ();
36827 /* The GNU C library defines this for functions which it implements
36828     to always fail with ENOSYS.  Some functions are actually named
36829     something starting with __ and the normal name is an alias.  */
36830 #if defined __stub__doprnt || defined __stub____doprnt
36831 choke me
36832 #endif
36833
36834 int
36835 main ()
36836 {
36837 return _doprnt ();
36838   ;
36839   return 0;
36840 }
36841 _ACEOF
36842 rm -f conftest.$ac_objext conftest$ac_exeext
36843 if { (ac_try="$ac_link"
36844 case "(($ac_try" in
36845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846   *) ac_try_echo=$ac_try;;
36847 esac
36848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36849   (eval "$ac_link") 2>conftest.er1
36850   ac_status=$?
36851   grep -v '^ *+' conftest.er1 >conftest.err
36852   rm -f conftest.er1
36853   cat conftest.err >&5
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); } && {
36856          test -z "$ac_c_werror_flag" ||
36857          test ! -s conftest.err
36858        } && test -s conftest$ac_exeext &&
36859        $as_test_x conftest$ac_exeext; then
36860   ac_cv_func__doprnt=yes
36861 else
36862   echo "$as_me: failed program was:" >&5
36863 sed 's/^/| /' conftest.$ac_ext >&5
36864
36865         ac_cv_func__doprnt=no
36866 fi
36867
36868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36869       conftest$ac_exeext conftest.$ac_ext
36870 fi
36871 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36872 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36873 if test $ac_cv_func__doprnt = yes; then
36874
36875 cat >>confdefs.h <<\_ACEOF
36876 #define HAVE_DOPRNT 1
36877 _ACEOF
36878
36879 fi
36880
36881 fi
36882 done
36883
36884
36885
36886 if test $ac_cv_func_vprintf = yes ; then
36887
36888
36889 for ac_func in snprintf vsnprintf
36890 do
36891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36895   echo $ECHO_N "(cached) $ECHO_C" >&6
36896 else
36897   cat >conftest.$ac_ext <<_ACEOF
36898 /* confdefs.h.  */
36899 _ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h.  */
36903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36905 #define $ac_func innocuous_$ac_func
36906
36907 /* System header to define __stub macros and hopefully few prototypes,
36908     which can conflict with char $ac_func (); below.
36909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36910     <limits.h> exists even on freestanding compilers.  */
36911
36912 #ifdef __STDC__
36913 # include <limits.h>
36914 #else
36915 # include <assert.h>
36916 #endif
36917
36918 #undef $ac_func
36919
36920 /* Override any GCC internal prototype to avoid an error.
36921    Use char because int might match the return type of a GCC
36922    builtin and then its argument prototype would still apply.  */
36923 #ifdef __cplusplus
36924 extern "C"
36925 #endif
36926 char $ac_func ();
36927 /* The GNU C library defines this for functions which it implements
36928     to always fail with ENOSYS.  Some functions are actually named
36929     something starting with __ and the normal name is an alias.  */
36930 #if defined __stub_$ac_func || defined __stub___$ac_func
36931 choke me
36932 #endif
36933
36934 int
36935 main ()
36936 {
36937 return $ac_func ();
36938   ;
36939   return 0;
36940 }
36941 _ACEOF
36942 rm -f conftest.$ac_objext conftest$ac_exeext
36943 if { (ac_try="$ac_link"
36944 case "(($ac_try" in
36945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36946   *) ac_try_echo=$ac_try;;
36947 esac
36948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36949   (eval "$ac_link") 2>conftest.er1
36950   ac_status=$?
36951   grep -v '^ *+' conftest.er1 >conftest.err
36952   rm -f conftest.er1
36953   cat conftest.err >&5
36954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955   (exit $ac_status); } && {
36956          test -z "$ac_c_werror_flag" ||
36957          test ! -s conftest.err
36958        } && test -s conftest$ac_exeext &&
36959        $as_test_x conftest$ac_exeext; then
36960   eval "$as_ac_var=yes"
36961 else
36962   echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36964
36965         eval "$as_ac_var=no"
36966 fi
36967
36968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36969       conftest$ac_exeext conftest.$ac_ext
36970 fi
36971 ac_res=`eval echo '${'$as_ac_var'}'`
36972                { echo "$as_me:$LINENO: result: $ac_res" >&5
36973 echo "${ECHO_T}$ac_res" >&6; }
36974 if test `eval echo '${'$as_ac_var'}'` = yes; then
36975   cat >>confdefs.h <<_ACEOF
36976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36977 _ACEOF
36978
36979 fi
36980 done
36981
36982 fi
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039 for ac_func in \
37040         bcopy                   \
37041         closesocket             \
37042         chroot                  \
37043         endgrent                \
37044         endpwent                \
37045         fcntl                   \
37046         flock                   \
37047         fstat                   \
37048         getdtablesize           \
37049         geteuid                 \
37050         getgrgid                \
37051         gethostname             \
37052         getpassphrase           \
37053         getpwuid                \
37054         getpwnam                \
37055         getspnam                \
37056         gettimeofday            \
37057         initgroups              \
37058         inet_ntoa_b             \
37059         ioctl                   \
37060         lockf                   \
37061         memcpy                  \
37062         memmove                 \
37063         memrchr                 \
37064         mkstemp                 \
37065         mktemp                  \
37066         pipe                    \
37067         read                    \
37068         recv                    \
37069         recvfrom                \
37070         setpwfile               \
37071         setgid                  \
37072         setegid                 \
37073         setsid                  \
37074         setuid                  \
37075         seteuid                 \
37076         signal                  \
37077         strdup                  \
37078         strpbrk                 \
37079         strrchr                 \
37080         strsep                  \
37081         strstr                  \
37082         strtol                  \
37083         strtoul                 \
37084         strtoq                  \
37085         strtouq                 \
37086         strtoll                 \
37087         strspn                  \
37088         sysconf                 \
37089         waitpid                 \
37090         wait4                   \
37091         write                   \
37092         send                    \
37093         sendmsg                 \
37094         sendto                  \
37095
37096 do
37097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37101   echo $ECHO_N "(cached) $ECHO_C" >&6
37102 else
37103   cat >conftest.$ac_ext <<_ACEOF
37104 /* confdefs.h.  */
37105 _ACEOF
37106 cat confdefs.h >>conftest.$ac_ext
37107 cat >>conftest.$ac_ext <<_ACEOF
37108 /* end confdefs.h.  */
37109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37111 #define $ac_func innocuous_$ac_func
37112
37113 /* System header to define __stub macros and hopefully few prototypes,
37114     which can conflict with char $ac_func (); below.
37115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37116     <limits.h> exists even on freestanding compilers.  */
37117
37118 #ifdef __STDC__
37119 # include <limits.h>
37120 #else
37121 # include <assert.h>
37122 #endif
37123
37124 #undef $ac_func
37125
37126 /* Override any GCC internal prototype to avoid an error.
37127    Use char because int might match the return type of a GCC
37128    builtin and then its argument prototype would still apply.  */
37129 #ifdef __cplusplus
37130 extern "C"
37131 #endif
37132 char $ac_func ();
37133 /* The GNU C library defines this for functions which it implements
37134     to always fail with ENOSYS.  Some functions are actually named
37135     something starting with __ and the normal name is an alias.  */
37136 #if defined __stub_$ac_func || defined __stub___$ac_func
37137 choke me
37138 #endif
37139
37140 int
37141 main ()
37142 {
37143 return $ac_func ();
37144   ;
37145   return 0;
37146 }
37147 _ACEOF
37148 rm -f conftest.$ac_objext conftest$ac_exeext
37149 if { (ac_try="$ac_link"
37150 case "(($ac_try" in
37151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152   *) ac_try_echo=$ac_try;;
37153 esac
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155   (eval "$ac_link") 2>conftest.er1
37156   ac_status=$?
37157   grep -v '^ *+' conftest.er1 >conftest.err
37158   rm -f conftest.er1
37159   cat conftest.err >&5
37160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161   (exit $ac_status); } && {
37162          test -z "$ac_c_werror_flag" ||
37163          test ! -s conftest.err
37164        } && test -s conftest$ac_exeext &&
37165        $as_test_x conftest$ac_exeext; then
37166   eval "$as_ac_var=yes"
37167 else
37168   echo "$as_me: failed program was:" >&5
37169 sed 's/^/| /' conftest.$ac_ext >&5
37170
37171         eval "$as_ac_var=no"
37172 fi
37173
37174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37175       conftest$ac_exeext conftest.$ac_ext
37176 fi
37177 ac_res=`eval echo '${'$as_ac_var'}'`
37178                { echo "$as_me:$LINENO: result: $ac_res" >&5
37179 echo "${ECHO_T}$ac_res" >&6; }
37180 if test `eval echo '${'$as_ac_var'}'` = yes; then
37181   cat >>confdefs.h <<_ACEOF
37182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37183 _ACEOF
37184
37185 fi
37186 done
37187
37188
37189
37190
37191 for ac_func in getopt getpeereid
37192 do
37193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37197   echo $ECHO_N "(cached) $ECHO_C" >&6
37198 else
37199   cat >conftest.$ac_ext <<_ACEOF
37200 /* confdefs.h.  */
37201 _ACEOF
37202 cat confdefs.h >>conftest.$ac_ext
37203 cat >>conftest.$ac_ext <<_ACEOF
37204 /* end confdefs.h.  */
37205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37207 #define $ac_func innocuous_$ac_func
37208
37209 /* System header to define __stub macros and hopefully few prototypes,
37210     which can conflict with char $ac_func (); below.
37211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37212     <limits.h> exists even on freestanding compilers.  */
37213
37214 #ifdef __STDC__
37215 # include <limits.h>
37216 #else
37217 # include <assert.h>
37218 #endif
37219
37220 #undef $ac_func
37221
37222 /* Override any GCC internal prototype to avoid an error.
37223    Use char because int might match the return type of a GCC
37224    builtin and then its argument prototype would still apply.  */
37225 #ifdef __cplusplus
37226 extern "C"
37227 #endif
37228 char $ac_func ();
37229 /* The GNU C library defines this for functions which it implements
37230     to always fail with ENOSYS.  Some functions are actually named
37231     something starting with __ and the normal name is an alias.  */
37232 #if defined __stub_$ac_func || defined __stub___$ac_func
37233 choke me
37234 #endif
37235
37236 int
37237 main ()
37238 {
37239 return $ac_func ();
37240   ;
37241   return 0;
37242 }
37243 _ACEOF
37244 rm -f conftest.$ac_objext conftest$ac_exeext
37245 if { (ac_try="$ac_link"
37246 case "(($ac_try" in
37247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37248   *) ac_try_echo=$ac_try;;
37249 esac
37250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37251   (eval "$ac_link") 2>conftest.er1
37252   ac_status=$?
37253   grep -v '^ *+' conftest.er1 >conftest.err
37254   rm -f conftest.er1
37255   cat conftest.err >&5
37256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257   (exit $ac_status); } && {
37258          test -z "$ac_c_werror_flag" ||
37259          test ! -s conftest.err
37260        } && test -s conftest$ac_exeext &&
37261        $as_test_x conftest$ac_exeext; then
37262   eval "$as_ac_var=yes"
37263 else
37264   echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37266
37267         eval "$as_ac_var=no"
37268 fi
37269
37270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37271       conftest$ac_exeext conftest.$ac_ext
37272 fi
37273 ac_res=`eval echo '${'$as_ac_var'}'`
37274                { echo "$as_me:$LINENO: result: $ac_res" >&5
37275 echo "${ECHO_T}$ac_res" >&6; }
37276 if test `eval echo '${'$as_ac_var'}'` = yes; then
37277   cat >>confdefs.h <<_ACEOF
37278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37279 _ACEOF
37280
37281 else
37282   case " $LIBOBJS " in
37283   *" $ac_func.$ac_objext "* ) ;;
37284   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37285  ;;
37286 esac
37287
37288 fi
37289 done
37290
37291
37292
37293 if test "$ac_cv_func_getopt" != yes; then
37294         LIBSRCS="$LIBSRCS getopt.c"
37295 fi
37296
37297 if test "$ac_cv_func_getpeereid" != yes; then
37298
37299 for ac_func in getpeerucred
37300 do
37301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37305   echo $ECHO_N "(cached) $ECHO_C" >&6
37306 else
37307   cat >conftest.$ac_ext <<_ACEOF
37308 /* confdefs.h.  */
37309 _ACEOF
37310 cat confdefs.h >>conftest.$ac_ext
37311 cat >>conftest.$ac_ext <<_ACEOF
37312 /* end confdefs.h.  */
37313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37315 #define $ac_func innocuous_$ac_func
37316
37317 /* System header to define __stub macros and hopefully few prototypes,
37318     which can conflict with char $ac_func (); below.
37319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37320     <limits.h> exists even on freestanding compilers.  */
37321
37322 #ifdef __STDC__
37323 # include <limits.h>
37324 #else
37325 # include <assert.h>
37326 #endif
37327
37328 #undef $ac_func
37329
37330 /* Override any GCC internal prototype to avoid an error.
37331    Use char because int might match the return type of a GCC
37332    builtin and then its argument prototype would still apply.  */
37333 #ifdef __cplusplus
37334 extern "C"
37335 #endif
37336 char $ac_func ();
37337 /* The GNU C library defines this for functions which it implements
37338     to always fail with ENOSYS.  Some functions are actually named
37339     something starting with __ and the normal name is an alias.  */
37340 #if defined __stub_$ac_func || defined __stub___$ac_func
37341 choke me
37342 #endif
37343
37344 int
37345 main ()
37346 {
37347 return $ac_func ();
37348   ;
37349   return 0;
37350 }
37351 _ACEOF
37352 rm -f conftest.$ac_objext conftest$ac_exeext
37353 if { (ac_try="$ac_link"
37354 case "(($ac_try" in
37355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37356   *) ac_try_echo=$ac_try;;
37357 esac
37358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37359   (eval "$ac_link") 2>conftest.er1
37360   ac_status=$?
37361   grep -v '^ *+' conftest.er1 >conftest.err
37362   rm -f conftest.er1
37363   cat conftest.err >&5
37364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365   (exit $ac_status); } && {
37366          test -z "$ac_c_werror_flag" ||
37367          test ! -s conftest.err
37368        } && test -s conftest$ac_exeext &&
37369        $as_test_x conftest$ac_exeext; then
37370   eval "$as_ac_var=yes"
37371 else
37372   echo "$as_me: failed program was:" >&5
37373 sed 's/^/| /' conftest.$ac_ext >&5
37374
37375         eval "$as_ac_var=no"
37376 fi
37377
37378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37379       conftest$ac_exeext conftest.$ac_ext
37380 fi
37381 ac_res=`eval echo '${'$as_ac_var'}'`
37382                { echo "$as_me:$LINENO: result: $ac_res" >&5
37383 echo "${ECHO_T}$ac_res" >&6; }
37384 if test `eval echo '${'$as_ac_var'}'` = yes; then
37385   cat >>confdefs.h <<_ACEOF
37386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37387 _ACEOF
37388
37389 fi
37390 done
37391
37392         if test "$ac_cv_func_getpeerucred" != yes ; then
37393                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37394 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37395 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37396   echo $ECHO_N "(cached) $ECHO_C" >&6
37397 else
37398   cat >conftest.$ac_ext <<_ACEOF
37399 /* confdefs.h.  */
37400 _ACEOF
37401 cat confdefs.h >>conftest.$ac_ext
37402 cat >>conftest.$ac_ext <<_ACEOF
37403 /* end confdefs.h.  */
37404 $ac_includes_default
37405 #ifdef HAVE_SYS_SOCKET_H
37406 #include <sys/socket.h>
37407 #endif
37408
37409 int
37410 main ()
37411 {
37412 static struct msghdr ac_aggr;
37413 if (ac_aggr.msg_accrightslen)
37414 return 0;
37415   ;
37416   return 0;
37417 }
37418 _ACEOF
37419 rm -f conftest.$ac_objext
37420 if { (ac_try="$ac_compile"
37421 case "(($ac_try" in
37422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37423   *) ac_try_echo=$ac_try;;
37424 esac
37425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37426   (eval "$ac_compile") 2>conftest.er1
37427   ac_status=$?
37428   grep -v '^ *+' conftest.er1 >conftest.err
37429   rm -f conftest.er1
37430   cat conftest.err >&5
37431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432   (exit $ac_status); } && {
37433          test -z "$ac_c_werror_flag" ||
37434          test ! -s conftest.err
37435        } && test -s conftest.$ac_objext; then
37436   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37437 else
37438   echo "$as_me: failed program was:" >&5
37439 sed 's/^/| /' conftest.$ac_ext >&5
37440
37441         cat >conftest.$ac_ext <<_ACEOF
37442 /* confdefs.h.  */
37443 _ACEOF
37444 cat confdefs.h >>conftest.$ac_ext
37445 cat >>conftest.$ac_ext <<_ACEOF
37446 /* end confdefs.h.  */
37447 $ac_includes_default
37448 #ifdef HAVE_SYS_SOCKET_H
37449 #include <sys/socket.h>
37450 #endif
37451
37452 int
37453 main ()
37454 {
37455 static struct msghdr ac_aggr;
37456 if (sizeof ac_aggr.msg_accrightslen)
37457 return 0;
37458   ;
37459   return 0;
37460 }
37461 _ACEOF
37462 rm -f conftest.$ac_objext
37463 if { (ac_try="$ac_compile"
37464 case "(($ac_try" in
37465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37466   *) ac_try_echo=$ac_try;;
37467 esac
37468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37469   (eval "$ac_compile") 2>conftest.er1
37470   ac_status=$?
37471   grep -v '^ *+' conftest.er1 >conftest.err
37472   rm -f conftest.er1
37473   cat conftest.err >&5
37474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475   (exit $ac_status); } && {
37476          test -z "$ac_c_werror_flag" ||
37477          test ! -s conftest.err
37478        } && test -s conftest.$ac_objext; then
37479   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37480 else
37481   echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37483
37484         ac_cv_member_struct_msghdr_msg_accrightslen=no
37485 fi
37486
37487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37488 fi
37489
37490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37491 fi
37492 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37493 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37494 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37495
37496 cat >>confdefs.h <<_ACEOF
37497 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37498 _ACEOF
37499
37500
37501 fi
37502
37503                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37504                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37505 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37506 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37507   echo $ECHO_N "(cached) $ECHO_C" >&6
37508 else
37509   cat >conftest.$ac_ext <<_ACEOF
37510 /* confdefs.h.  */
37511 _ACEOF
37512 cat confdefs.h >>conftest.$ac_ext
37513 cat >>conftest.$ac_ext <<_ACEOF
37514 /* end confdefs.h.  */
37515 $ac_includes_default
37516 #ifdef HAVE_SYS_SOCKET_H
37517 #include <sys/socket.h>
37518 #endif
37519
37520 int
37521 main ()
37522 {
37523 static struct msghdr ac_aggr;
37524 if (ac_aggr.msg_control)
37525 return 0;
37526   ;
37527   return 0;
37528 }
37529 _ACEOF
37530 rm -f conftest.$ac_objext
37531 if { (ac_try="$ac_compile"
37532 case "(($ac_try" in
37533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37534   *) ac_try_echo=$ac_try;;
37535 esac
37536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37537   (eval "$ac_compile") 2>conftest.er1
37538   ac_status=$?
37539   grep -v '^ *+' conftest.er1 >conftest.err
37540   rm -f conftest.er1
37541   cat conftest.err >&5
37542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543   (exit $ac_status); } && {
37544          test -z "$ac_c_werror_flag" ||
37545          test ! -s conftest.err
37546        } && test -s conftest.$ac_objext; then
37547   ac_cv_member_struct_msghdr_msg_control=yes
37548 else
37549   echo "$as_me: failed program was:" >&5
37550 sed 's/^/| /' conftest.$ac_ext >&5
37551
37552         cat >conftest.$ac_ext <<_ACEOF
37553 /* confdefs.h.  */
37554 _ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h.  */
37558 $ac_includes_default
37559 #ifdef HAVE_SYS_SOCKET_H
37560 #include <sys/socket.h>
37561 #endif
37562
37563 int
37564 main ()
37565 {
37566 static struct msghdr ac_aggr;
37567 if (sizeof ac_aggr.msg_control)
37568 return 0;
37569   ;
37570   return 0;
37571 }
37572 _ACEOF
37573 rm -f conftest.$ac_objext
37574 if { (ac_try="$ac_compile"
37575 case "(($ac_try" in
37576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37577   *) ac_try_echo=$ac_try;;
37578 esac
37579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37580   (eval "$ac_compile") 2>conftest.er1
37581   ac_status=$?
37582   grep -v '^ *+' conftest.er1 >conftest.err
37583   rm -f conftest.er1
37584   cat conftest.err >&5
37585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586   (exit $ac_status); } && {
37587          test -z "$ac_c_werror_flag" ||
37588          test ! -s conftest.err
37589        } && test -s conftest.$ac_objext; then
37590   ac_cv_member_struct_msghdr_msg_control=yes
37591 else
37592   echo "$as_me: failed program was:" >&5
37593 sed 's/^/| /' conftest.$ac_ext >&5
37594
37595         ac_cv_member_struct_msghdr_msg_control=no
37596 fi
37597
37598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37599 fi
37600
37601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37602 fi
37603 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37604 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37605 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37606
37607 cat >>confdefs.h <<_ACEOF
37608 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37609 _ACEOF
37610
37611
37612 fi
37613
37614                 fi
37615                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37616 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37617 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37618   echo $ECHO_N "(cached) $ECHO_C" >&6
37619 else
37620   cat >conftest.$ac_ext <<_ACEOF
37621 /* confdefs.h.  */
37622 _ACEOF
37623 cat confdefs.h >>conftest.$ac_ext
37624 cat >>conftest.$ac_ext <<_ACEOF
37625 /* end confdefs.h.  */
37626 $ac_includes_default
37627 int
37628 main ()
37629 {
37630 static struct stat ac_aggr;
37631 if (ac_aggr.st_fstype)
37632 return 0;
37633   ;
37634   return 0;
37635 }
37636 _ACEOF
37637 rm -f conftest.$ac_objext
37638 if { (ac_try="$ac_compile"
37639 case "(($ac_try" in
37640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37641   *) ac_try_echo=$ac_try;;
37642 esac
37643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37644   (eval "$ac_compile") 2>conftest.er1
37645   ac_status=$?
37646   grep -v '^ *+' conftest.er1 >conftest.err
37647   rm -f conftest.er1
37648   cat conftest.err >&5
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); } && {
37651          test -z "$ac_c_werror_flag" ||
37652          test ! -s conftest.err
37653        } && test -s conftest.$ac_objext; then
37654   ac_cv_member_struct_stat_st_fstype=yes
37655 else
37656   echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37658
37659         cat >conftest.$ac_ext <<_ACEOF
37660 /* confdefs.h.  */
37661 _ACEOF
37662 cat confdefs.h >>conftest.$ac_ext
37663 cat >>conftest.$ac_ext <<_ACEOF
37664 /* end confdefs.h.  */
37665 $ac_includes_default
37666 int
37667 main ()
37668 {
37669 static struct stat ac_aggr;
37670 if (sizeof ac_aggr.st_fstype)
37671 return 0;
37672   ;
37673   return 0;
37674 }
37675 _ACEOF
37676 rm -f conftest.$ac_objext
37677 if { (ac_try="$ac_compile"
37678 case "(($ac_try" in
37679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37680   *) ac_try_echo=$ac_try;;
37681 esac
37682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37683   (eval "$ac_compile") 2>conftest.er1
37684   ac_status=$?
37685   grep -v '^ *+' conftest.er1 >conftest.err
37686   rm -f conftest.er1
37687   cat conftest.err >&5
37688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689   (exit $ac_status); } && {
37690          test -z "$ac_c_werror_flag" ||
37691          test ! -s conftest.err
37692        } && test -s conftest.$ac_objext; then
37693   ac_cv_member_struct_stat_st_fstype=yes
37694 else
37695   echo "$as_me: failed program was:" >&5
37696 sed 's/^/| /' conftest.$ac_ext >&5
37697
37698         ac_cv_member_struct_stat_st_fstype=no
37699 fi
37700
37701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37702 fi
37703
37704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37705 fi
37706 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37707 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37708 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37709
37710 cat >>confdefs.h <<_ACEOF
37711 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37712 _ACEOF
37713
37714
37715 fi
37716 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37717 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37718 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37719   echo $ECHO_N "(cached) $ECHO_C" >&6
37720 else
37721   cat >conftest.$ac_ext <<_ACEOF
37722 /* confdefs.h.  */
37723 _ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h.  */
37727 $ac_includes_default
37728 int
37729 main ()
37730 {
37731 static struct stat ac_aggr;
37732 if (ac_aggr.st_vfstype)
37733 return 0;
37734   ;
37735   return 0;
37736 }
37737 _ACEOF
37738 rm -f conftest.$ac_objext
37739 if { (ac_try="$ac_compile"
37740 case "(($ac_try" in
37741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37742   *) ac_try_echo=$ac_try;;
37743 esac
37744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37745   (eval "$ac_compile") 2>conftest.er1
37746   ac_status=$?
37747   grep -v '^ *+' conftest.er1 >conftest.err
37748   rm -f conftest.er1
37749   cat conftest.err >&5
37750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751   (exit $ac_status); } && {
37752          test -z "$ac_c_werror_flag" ||
37753          test ! -s conftest.err
37754        } && test -s conftest.$ac_objext; then
37755   ac_cv_member_struct_stat_st_vfstype=yes
37756 else
37757   echo "$as_me: failed program was:" >&5
37758 sed 's/^/| /' conftest.$ac_ext >&5
37759
37760         cat >conftest.$ac_ext <<_ACEOF
37761 /* confdefs.h.  */
37762 _ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h.  */
37766 $ac_includes_default
37767 int
37768 main ()
37769 {
37770 static struct stat ac_aggr;
37771 if (sizeof ac_aggr.st_vfstype)
37772 return 0;
37773   ;
37774   return 0;
37775 }
37776 _ACEOF
37777 rm -f conftest.$ac_objext
37778 if { (ac_try="$ac_compile"
37779 case "(($ac_try" in
37780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37781   *) ac_try_echo=$ac_try;;
37782 esac
37783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37784   (eval "$ac_compile") 2>conftest.er1
37785   ac_status=$?
37786   grep -v '^ *+' conftest.er1 >conftest.err
37787   rm -f conftest.er1
37788   cat conftest.err >&5
37789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790   (exit $ac_status); } && {
37791          test -z "$ac_c_werror_flag" ||
37792          test ! -s conftest.err
37793        } && test -s conftest.$ac_objext; then
37794   ac_cv_member_struct_stat_st_vfstype=yes
37795 else
37796   echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37798
37799         ac_cv_member_struct_stat_st_vfstype=no
37800 fi
37801
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803 fi
37804
37805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37806 fi
37807 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37808 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37809 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37810
37811 cat >>confdefs.h <<_ACEOF
37812 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37813 _ACEOF
37814
37815
37816 fi
37817
37818                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37819                         cat >conftest.$ac_ext <<_ACEOF
37820 struct stat st; char *ptr=st.st_fstype;
37821 _ACEOF
37822 rm -f conftest.$ac_objext
37823 if { (ac_try="$ac_compile"
37824 case "(($ac_try" in
37825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37826   *) ac_try_echo=$ac_try;;
37827 esac
37828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37829   (eval "$ac_compile") 2>conftest.er1
37830   ac_status=$?
37831   grep -v '^ *+' conftest.er1 >conftest.err
37832   rm -f conftest.er1
37833   cat conftest.err >&5
37834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835   (exit $ac_status); } && {
37836          test -z "$ac_c_werror_flag" ||
37837          test ! -s conftest.err
37838        } && test -s conftest.$ac_objext; then
37839
37840 cat >>confdefs.h <<\_ACEOF
37841 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37842 _ACEOF
37843
37844 else
37845   echo "$as_me: failed program was:" >&5
37846 sed 's/^/| /' conftest.$ac_ext >&5
37847
37848
37849 cat >>confdefs.h <<\_ACEOF
37850 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37851 _ACEOF
37852
37853 fi
37854
37855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37856                 fi
37857         fi
37858         LIBSRCS="$LIBSRCS getpeereid.c"
37859 fi
37860
37861 if test "$ac_cv_func_snprintf" != yes ||
37862    test "$ac_cv_func_vsnprintf" != yes; then
37863         if test "$ac_cv_func_snprintf" != yes; then
37864
37865 cat >>confdefs.h <<\_ACEOF
37866 #define snprintf ber_pvt_snprintf
37867 _ACEOF
37868
37869         fi
37870         if test "$ac_cv_func_vsnprintf" != yes; then
37871
37872 cat >>confdefs.h <<\_ACEOF
37873 #define vsnprintf ber_pvt_vsnprintf
37874 _ACEOF
37875
37876         fi
37877 fi
37878
37879
37880 if test "$ol_enable_slapi" != no ; then
37881
37882 for ac_header in ltdl.h
37883 do
37884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37886   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37889   echo $ECHO_N "(cached) $ECHO_C" >&6
37890 fi
37891 ac_res=`eval echo '${'$as_ac_Header'}'`
37892                { echo "$as_me:$LINENO: result: $ac_res" >&5
37893 echo "${ECHO_T}$ac_res" >&6; }
37894 else
37895   # Is the header compilable?
37896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37898 cat >conftest.$ac_ext <<_ACEOF
37899 /* confdefs.h.  */
37900 _ACEOF
37901 cat confdefs.h >>conftest.$ac_ext
37902 cat >>conftest.$ac_ext <<_ACEOF
37903 /* end confdefs.h.  */
37904 $ac_includes_default
37905 #include <$ac_header>
37906 _ACEOF
37907 rm -f conftest.$ac_objext
37908 if { (ac_try="$ac_compile"
37909 case "(($ac_try" in
37910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37911   *) ac_try_echo=$ac_try;;
37912 esac
37913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37914   (eval "$ac_compile") 2>conftest.er1
37915   ac_status=$?
37916   grep -v '^ *+' conftest.er1 >conftest.err
37917   rm -f conftest.er1
37918   cat conftest.err >&5
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); } && {
37921          test -z "$ac_c_werror_flag" ||
37922          test ! -s conftest.err
37923        } && test -s conftest.$ac_objext; then
37924   ac_header_compiler=yes
37925 else
37926   echo "$as_me: failed program was:" >&5
37927 sed 's/^/| /' conftest.$ac_ext >&5
37928
37929         ac_header_compiler=no
37930 fi
37931
37932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37934 echo "${ECHO_T}$ac_header_compiler" >&6; }
37935
37936 # Is the header present?
37937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37939 cat >conftest.$ac_ext <<_ACEOF
37940 /* confdefs.h.  */
37941 _ACEOF
37942 cat confdefs.h >>conftest.$ac_ext
37943 cat >>conftest.$ac_ext <<_ACEOF
37944 /* end confdefs.h.  */
37945 #include <$ac_header>
37946 _ACEOF
37947 if { (ac_try="$ac_cpp conftest.$ac_ext"
37948 case "(($ac_try" in
37949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37950   *) ac_try_echo=$ac_try;;
37951 esac
37952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37954   ac_status=$?
37955   grep -v '^ *+' conftest.er1 >conftest.err
37956   rm -f conftest.er1
37957   cat conftest.err >&5
37958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37959   (exit $ac_status); } >/dev/null && {
37960          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37961          test ! -s conftest.err
37962        }; then
37963   ac_header_preproc=yes
37964 else
37965   echo "$as_me: failed program was:" >&5
37966 sed 's/^/| /' conftest.$ac_ext >&5
37967
37968   ac_header_preproc=no
37969 fi
37970
37971 rm -f conftest.err conftest.$ac_ext
37972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37973 echo "${ECHO_T}$ac_header_preproc" >&6; }
37974
37975 # So?  What about this header?
37976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37977   yes:no: )
37978     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37982     ac_header_preproc=yes
37983     ;;
37984   no:yes:* )
37985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37987     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37988 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37989     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37991     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37992 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37995     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37997     ( cat <<\_ASBOX
37998 ## --------------------------------------------- ##
37999 ## Report this to <http://www.openldap.org/its/> ##
38000 ## --------------------------------------------- ##
38001 _ASBOX
38002      ) | sed "s/^/$as_me: WARNING:     /" >&2
38003     ;;
38004 esac
38005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38008   echo $ECHO_N "(cached) $ECHO_C" >&6
38009 else
38010   eval "$as_ac_Header=\$ac_header_preproc"
38011 fi
38012 ac_res=`eval echo '${'$as_ac_Header'}'`
38013                { echo "$as_me:$LINENO: result: $ac_res" >&5
38014 echo "${ECHO_T}$ac_res" >&6; }
38015
38016 fi
38017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38018   cat >>confdefs.h <<_ACEOF
38019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38020 _ACEOF
38021
38022 fi
38023
38024 done
38025
38026
38027         if test $ac_cv_header_ltdl_h != yes ; then
38028                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38029 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38030    { (exit 1); exit 1; }; }
38031         fi
38032         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38033 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38034 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38035   echo $ECHO_N "(cached) $ECHO_C" >&6
38036 else
38037   ac_check_lib_save_LIBS=$LIBS
38038 LIBS="-lltdl  $LIBS"
38039 cat >conftest.$ac_ext <<_ACEOF
38040 /* confdefs.h.  */
38041 _ACEOF
38042 cat confdefs.h >>conftest.$ac_ext
38043 cat >>conftest.$ac_ext <<_ACEOF
38044 /* end confdefs.h.  */
38045
38046 /* Override any GCC internal prototype to avoid an error.
38047    Use char because int might match the return type of a GCC
38048    builtin and then its argument prototype would still apply.  */
38049 #ifdef __cplusplus
38050 extern "C"
38051 #endif
38052 char lt_dlinit ();
38053 int
38054 main ()
38055 {
38056 return lt_dlinit ();
38057   ;
38058   return 0;
38059 }
38060 _ACEOF
38061 rm -f conftest.$ac_objext conftest$ac_exeext
38062 if { (ac_try="$ac_link"
38063 case "(($ac_try" in
38064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38065   *) ac_try_echo=$ac_try;;
38066 esac
38067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38068   (eval "$ac_link") 2>conftest.er1
38069   ac_status=$?
38070   grep -v '^ *+' conftest.er1 >conftest.err
38071   rm -f conftest.er1
38072   cat conftest.err >&5
38073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074   (exit $ac_status); } && {
38075          test -z "$ac_c_werror_flag" ||
38076          test ! -s conftest.err
38077        } && test -s conftest$ac_exeext &&
38078        $as_test_x conftest$ac_exeext; then
38079   ac_cv_lib_ltdl_lt_dlinit=yes
38080 else
38081   echo "$as_me: failed program was:" >&5
38082 sed 's/^/| /' conftest.$ac_ext >&5
38083
38084         ac_cv_lib_ltdl_lt_dlinit=no
38085 fi
38086
38087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38088       conftest$ac_exeext conftest.$ac_ext
38089 LIBS=$ac_check_lib_save_LIBS
38090 fi
38091 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38092 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38093 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38094
38095                 SLAPI_LIBS=-lltdl
38096                 LIBSLAPI=libslapi.a
38097                 LIBSLAPITOOLS=../libslapi.a
38098
38099 cat >>confdefs.h <<\_ACEOF
38100 #define HAVE_LIBLTDL 1
38101 _ACEOF
38102
38103
38104 else
38105   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38106 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38107    { (exit 1); exit 1; }; }
38108 fi
38109
38110
38111
38112 cat >>confdefs.h <<\_ACEOF
38113 #define LDAP_SLAPI 1
38114 _ACEOF
38115
38116 fi
38117
38118 if test "$ol_enable_debug" != no ; then
38119         if test "$ol_enable_debug" = traditional; then
38120
38121 cat >>confdefs.h <<\_ACEOF
38122 #define OLD_DEBUG 1
38123 _ACEOF
38124
38125         fi
38126
38127 cat >>confdefs.h <<\_ACEOF
38128 #define LDAP_DEBUG 1
38129 _ACEOF
38130
38131 fi
38132 if test "$ol_enable_syslog" = yes ; then
38133
38134 cat >>confdefs.h <<\_ACEOF
38135 #define LDAP_SYSLOG 1
38136 _ACEOF
38137
38138 fi
38139 if test "$ol_enable_proctitle" != no ; then
38140
38141 cat >>confdefs.h <<\_ACEOF
38142 #define LDAP_PROCTITLE 1
38143 _ACEOF
38144
38145 fi
38146 if test "$ol_enable_referrals" != no ; then
38147
38148 cat >>confdefs.h <<\_ACEOF
38149 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38150 _ACEOF
38151
38152 fi
38153 if test "$ol_enable_local" != no; then
38154
38155 cat >>confdefs.h <<\_ACEOF
38156 #define LDAP_PF_LOCAL 1
38157 _ACEOF
38158
38159 fi
38160 if test "$ol_link_ipv6" != no; then
38161
38162 cat >>confdefs.h <<\_ACEOF
38163 #define LDAP_PF_INET6 1
38164 _ACEOF
38165
38166 fi
38167 if test "$ol_enable_cleartext" != no ; then
38168
38169 cat >>confdefs.h <<\_ACEOF
38170 #define SLAPD_CLEARTEXT 1
38171 _ACEOF
38172
38173 fi
38174 if test "$ol_enable_crypt" != no ; then
38175
38176 cat >>confdefs.h <<\_ACEOF
38177 #define SLAPD_CRYPT 1
38178 _ACEOF
38179
38180 fi
38181 if test "$ol_link_spasswd" != no ; then
38182
38183 cat >>confdefs.h <<\_ACEOF
38184 #define SLAPD_SPASSWD 1
38185 _ACEOF
38186
38187 fi
38188 if test "$ol_enable_rlookups" != no ; then
38189
38190 cat >>confdefs.h <<\_ACEOF
38191 #define SLAPD_RLOOKUPS 1
38192 _ACEOF
38193
38194 fi
38195 if test "$ol_enable_aci" != no ; then
38196         if test $ol_enable_dynacl = no ; then
38197                 ol_enable_dynacl=yes
38198                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38199 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38200         fi
38201         if test "$ol_enable_aci" = mod ; then
38202                 MFLAG=SLAPD_MOD_DYNAMIC
38203                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38204 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38205    { (exit 1); exit 1; }; }
38206         else
38207                 MFLAG=SLAPD_MOD_STATIC
38208         fi
38209         WITH_ACI_ENABLED=$ol_enable_aci
38210
38211 cat >>confdefs.h <<_ACEOF
38212 #define SLAPD_ACI_ENABLED $MFLAG
38213 _ACEOF
38214
38215 else
38216         WITH_ACI_ENABLED=no
38217 fi
38218 if test "$ol_enable_dynacl" != no ; then
38219
38220 cat >>confdefs.h <<\_ACEOF
38221 #define SLAP_DYNACL 1
38222 _ACEOF
38223
38224 fi
38225
38226 if test "$ol_link_modules" != no ; then
38227
38228 cat >>confdefs.h <<\_ACEOF
38229 #define SLAPD_MODULES 1
38230 _ACEOF
38231
38232         BUILD_SLAPD=yes
38233         SLAPD_MODULES_LDFLAGS="-dlopen self"
38234 fi
38235
38236
38237 cat >>confdefs.h <<\_ACEOF
38238 #define SLAPD_MOD_STATIC 1
38239 _ACEOF
38240
38241
38242 cat >>confdefs.h <<\_ACEOF
38243 #define SLAPD_MOD_DYNAMIC 2
38244 _ACEOF
38245
38246
38247 if test "$ol_enable_monitor" != no ; then
38248         BUILD_SLAPD=yes
38249         BUILD_MONITOR=$ol_enable_monitor
38250         if test "$ol_enable_monitor" = mod ; then
38251                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38252                 MFLAG=SLAPD_MOD_DYNAMIC
38253         else
38254                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38255                 MFLAG=SLAPD_MOD_STATIC
38256         fi
38257
38258 cat >>confdefs.h <<_ACEOF
38259 #define SLAPD_MONITOR $MFLAG
38260 _ACEOF
38261
38262 fi
38263
38264 if test "$ol_enable_bdb" != no ; then
38265         BUILD_SLAPD=yes
38266         BUILD_BDB=$ol_enable_bdb
38267         if test "$ol_enable_bdb" = mod ; then
38268                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38269                 MFLAG=SLAPD_MOD_DYNAMIC
38270         else
38271                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38272                 MFLAG=SLAPD_MOD_STATIC
38273         fi
38274
38275 cat >>confdefs.h <<_ACEOF
38276 #define SLAPD_BDB $MFLAG
38277 _ACEOF
38278
38279 fi
38280
38281 if test "$ol_enable_dnssrv" != no ; then
38282         BUILD_SLAPD=yes
38283         BUILD_DNSSRV=$ol_enable_dnssrv
38284         if test "$ol_enable_dnssrv" = mod ; then
38285                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38286                 MFLAG=SLAPD_MOD_DYNAMIC
38287         else
38288                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38289                 MFLAG=SLAPD_MOD_STATIC
38290         fi
38291
38292 cat >>confdefs.h <<_ACEOF
38293 #define SLAPD_DNSSRV $MFLAG
38294 _ACEOF
38295
38296 fi
38297
38298 if test "$ol_enable_hdb" != no ; then
38299         BUILD_SLAPD=yes
38300         BUILD_HDB=$ol_enable_hdb
38301         if test "$ol_enable_hdb" = mod ; then
38302                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38303                 MFLAG=SLAPD_MOD_DYNAMIC
38304         else
38305                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38306                 MFLAG=SLAPD_MOD_STATIC
38307         fi
38308
38309 cat >>confdefs.h <<_ACEOF
38310 #define SLAPD_HDB $MFLAG
38311 _ACEOF
38312
38313 fi
38314
38315 if test "$ol_enable_ldap" != no ; then
38316         BUILD_SLAPD=yes
38317         BUILD_LDAP=$ol_enable_ldap
38318         if test "$ol_enable_ldap" = mod ; then
38319                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38320                 MFLAG=SLAPD_MOD_DYNAMIC
38321         else
38322                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38323                 MFLAG=SLAPD_MOD_STATIC
38324         fi
38325
38326 cat >>confdefs.h <<_ACEOF
38327 #define SLAPD_LDAP $MFLAG
38328 _ACEOF
38329
38330 fi
38331
38332 if test "$ol_enable_meta" != no ; then
38333         BUILD_SLAPD=yes
38334         BUILD_META=$ol_enable_meta
38335         BUILD_REWRITE=yes
38336         if test "$ol_enable_meta" = mod ; then
38337                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38338                 MFLAG=SLAPD_MOD_DYNAMIC
38339         else
38340                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38341                 MFLAG=SLAPD_MOD_STATIC
38342         fi
38343
38344 cat >>confdefs.h <<_ACEOF
38345 #define SLAPD_META $MFLAG
38346 _ACEOF
38347
38348 fi
38349
38350 if test "$ol_enable_ndb" != no ; then
38351         BUILD_SLAPD=yes
38352         BUILD_NDB=$ol_enable_ndb
38353         if test "$ol_enable_ndb" = mod ; then
38354                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38355                 MFLAG=SLAPD_MOD_DYNAMIC
38356         else
38357                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38358                 MFLAG=SLAPD_MOD_STATIC
38359         fi
38360
38361 cat >>confdefs.h <<_ACEOF
38362 #define SLAPD_NDB $MFLAG
38363 _ACEOF
38364
38365 fi
38366
38367 if test "$ol_enable_null" != no ; then
38368         BUILD_SLAPD=yes
38369         BUILD_NULL=$ol_enable_null
38370         if test "$ol_enable_null" = mod ; then
38371                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38372                 MFLAG=SLAPD_MOD_DYNAMIC
38373         else
38374                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38375                 MFLAG=SLAPD_MOD_STATIC
38376         fi
38377
38378 cat >>confdefs.h <<_ACEOF
38379 #define SLAPD_NULL $MFLAG
38380 _ACEOF
38381
38382 fi
38383
38384 if test "$ol_enable_passwd" != no ; then
38385         BUILD_SLAPD=yes
38386         BUILD_PASSWD=$ol_enable_passwd
38387         if test "$ol_enable_passwd" = mod ; then
38388                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38389                 MFLAG=SLAPD_MOD_DYNAMIC
38390         else
38391                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38392                 MFLAG=SLAPD_MOD_STATIC
38393         fi
38394
38395 cat >>confdefs.h <<_ACEOF
38396 #define SLAPD_PASSWD $MFLAG
38397 _ACEOF
38398
38399 fi
38400
38401 if test "$ol_link_perl" != no ; then
38402         BUILD_SLAPD=yes
38403         BUILD_PERL=$ol_enable_perl
38404         if test "$ol_enable_perl" = mod ; then
38405                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38406                 MFLAG=SLAPD_MOD_DYNAMIC
38407         else
38408                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38409                 MFLAG=SLAPD_MOD_STATIC
38410         fi
38411
38412 cat >>confdefs.h <<_ACEOF
38413 #define SLAPD_PERL $MFLAG
38414 _ACEOF
38415
38416 fi
38417
38418 if test "$ol_enable_relay" != no ; then
38419         BUILD_SLAPD=yes
38420         BUILD_RELAY=$ol_enable_relay
38421         if test "$ol_enable_relay" = mod ; then
38422                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38423                 MFLAG=SLAPD_MOD_DYNAMIC
38424         else
38425                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38426                 MFLAG=SLAPD_MOD_STATIC
38427         fi
38428
38429 cat >>confdefs.h <<_ACEOF
38430 #define SLAPD_RELAY $MFLAG
38431 _ACEOF
38432
38433 fi
38434
38435 if test "$ol_enable_shell" != no ; then
38436         if test "$ol_link_threads" != no ; then
38437                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38438 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38439         fi
38440         BUILD_SLAPD=yes
38441         BUILD_SHELL=$ol_enable_shell
38442         if test "$ol_enable_shell" = mod ; then
38443                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38444                 MFLAG=SLAPD_MOD_DYNAMIC
38445         else
38446                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38447                 MFLAG=SLAPD_MOD_STATIC
38448         fi
38449
38450 cat >>confdefs.h <<_ACEOF
38451 #define SLAPD_SHELL $MFLAG
38452 _ACEOF
38453
38454 fi
38455
38456 if test "$ol_enable_sock" != no ; then
38457         BUILD_SLAPD=yes
38458         BUILD_SOCK=$ol_enable_sock
38459         if test "$ol_enable_sock" = mod ; then
38460                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38461                 MFLAG=SLAPD_MOD_DYNAMIC
38462         else
38463                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38464                 MFLAG=SLAPD_MOD_STATIC
38465         fi
38466
38467 cat >>confdefs.h <<_ACEOF
38468 #define SLAPD_SOCK $MFLAG
38469 _ACEOF
38470
38471 fi
38472
38473 if test "$ol_link_sql" != no ; then
38474         BUILD_SLAPD=yes
38475         BUILD_SQL=$ol_enable_sql
38476         if test "$ol_enable_sql" = mod; then
38477                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38478                 MFLAG=SLAPD_MOD_DYNAMIC
38479         else
38480                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38481                 MFLAG=SLAPD_MOD_STATIC
38482         fi
38483
38484 cat >>confdefs.h <<_ACEOF
38485 #define SLAPD_SQL $MFLAG
38486 _ACEOF
38487
38488 fi
38489
38490 if test "$ol_enable_accesslog" != no ; then
38491         BUILD_ACCESSLOG=$ol_enable_accesslog
38492         if test "$ol_enable_accesslog" = mod ; then
38493                 MFLAG=SLAPD_MOD_DYNAMIC
38494                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38495         else
38496                 MFLAG=SLAPD_MOD_STATIC
38497                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38498         fi
38499
38500 cat >>confdefs.h <<_ACEOF
38501 #define SLAPD_OVER_ACCESSLOG $MFLAG
38502 _ACEOF
38503
38504 fi
38505
38506 if test "$ol_enable_auditlog" != no ; then
38507         BUILD_AUDITLOG=$ol_enable_auditlog
38508         if test "$ol_enable_auditlog" = mod ; then
38509                 MFLAG=SLAPD_MOD_DYNAMIC
38510                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38511         else
38512                 MFLAG=SLAPD_MOD_STATIC
38513                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38514         fi
38515
38516 cat >>confdefs.h <<_ACEOF
38517 #define SLAPD_OVER_AUDITLOG $MFLAG
38518 _ACEOF
38519
38520 fi
38521
38522 if test "$ol_enable_collect" != no ; then
38523         BUILD_COLLECT=$ol_enable_collect
38524         if test "$ol_enable_collect" = mod ; then
38525                 MFLAG=SLAPD_MOD_DYNAMIC
38526                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38527         else
38528                 MFLAG=SLAPD_MOD_STATIC
38529                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38530         fi
38531
38532 cat >>confdefs.h <<_ACEOF
38533 #define SLAPD_OVER_COLLECT $MFLAG
38534 _ACEOF
38535
38536 fi
38537
38538 if test "$ol_enable_constraint" != no ; then
38539         BUILD_CONSTRAINT=$ol_enable_constraint
38540         if test "$ol_enable_constraint" = mod ; then
38541                 MFLAG=SLAPD_MOD_DYNAMIC
38542                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38543         else
38544                 MFLAG=SLAPD_MOD_STATIC
38545                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38546         fi
38547
38548 cat >>confdefs.h <<_ACEOF
38549 #define SLAPD_OVER_CONSTRAINT $MFLAG
38550 _ACEOF
38551
38552 fi
38553
38554 if test "$ol_enable_dds" != no ; then
38555         BUILD_DDS=$ol_enable_dds
38556         if test "$ol_enable_dds" = mod ; then
38557                 MFLAG=SLAPD_MOD_DYNAMIC
38558                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38559         else
38560                 MFLAG=SLAPD_MOD_STATIC
38561                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38562         fi
38563
38564 cat >>confdefs.h <<_ACEOF
38565 #define SLAPD_OVER_DDS $MFLAG
38566 _ACEOF
38567
38568 fi
38569
38570 if test "$ol_enable_deref" != no ; then
38571         BUILD_DEREF=$ol_enable_deref
38572         if test "$ol_enable_deref" = mod ; then
38573                 MFLAG=SLAPD_MOD_DYNAMIC
38574                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38575         else
38576                 MFLAG=SLAPD_MOD_STATIC
38577                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38578         fi
38579
38580 cat >>confdefs.h <<_ACEOF
38581 #define SLAPD_OVER_DEREF $MFLAG
38582 _ACEOF
38583
38584 fi
38585
38586 if test "$ol_enable_dyngroup" != no ; then
38587         BUILD_DYNGROUP=$ol_enable_dyngroup
38588         if test "$ol_enable_dyngroup" = mod ; then
38589                 MFLAG=SLAPD_MOD_DYNAMIC
38590                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38591         else
38592                 MFLAG=SLAPD_MOD_STATIC
38593                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38594         fi
38595
38596 cat >>confdefs.h <<_ACEOF
38597 #define SLAPD_OVER_DYNGROUP $MFLAG
38598 _ACEOF
38599
38600 fi
38601
38602 if test "$ol_enable_dynlist" != no ; then
38603         BUILD_DYNLIST=$ol_enable_dynlist
38604         if test "$ol_enable_dynlist" = mod ; then
38605                 MFLAG=SLAPD_MOD_DYNAMIC
38606                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38607         else
38608                 MFLAG=SLAPD_MOD_STATIC
38609                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38610         fi
38611
38612 cat >>confdefs.h <<_ACEOF
38613 #define SLAPD_OVER_DYNLIST $MFLAG
38614 _ACEOF
38615
38616 fi
38617
38618 if test "$ol_enable_memberof" != no ; then
38619         BUILD_MEMBEROF=$ol_enable_memberof
38620         if test "$ol_enable_memberof" = mod ; then
38621                 MFLAG=SLAPD_MOD_DYNAMIC
38622                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38623         else
38624                 MFLAG=SLAPD_MOD_STATIC
38625                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38626         fi
38627
38628 cat >>confdefs.h <<_ACEOF
38629 #define SLAPD_OVER_MEMBEROF $MFLAG
38630 _ACEOF
38631
38632 fi
38633
38634 if test "$ol_enable_ppolicy" != no ; then
38635         BUILD_PPOLICY=$ol_enable_ppolicy
38636         if test "$ol_enable_ppolicy" = mod ; then
38637                 MFLAG=SLAPD_MOD_DYNAMIC
38638                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38639         else
38640                 MFLAG=SLAPD_MOD_STATIC
38641                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38642         fi
38643
38644 cat >>confdefs.h <<_ACEOF
38645 #define SLAPD_OVER_PPOLICY $MFLAG
38646 _ACEOF
38647
38648 fi
38649
38650 if test "$ol_enable_proxycache" != no ; then
38651         BUILD_PROXYCACHE=$ol_enable_proxycache
38652         if test "$ol_enable_proxycache" = mod ; then
38653                 MFLAG=SLAPD_MOD_DYNAMIC
38654                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38655         else
38656                 MFLAG=SLAPD_MOD_STATIC
38657                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38658         fi
38659
38660 cat >>confdefs.h <<_ACEOF
38661 #define SLAPD_OVER_PROXYCACHE $MFLAG
38662 _ACEOF
38663
38664 fi
38665
38666 if test "$ol_enable_refint" != no ; then
38667         BUILD_REFINT=$ol_enable_refint
38668         if test "$ol_enable_refint" = mod ; then
38669                 MFLAG=SLAPD_MOD_DYNAMIC
38670                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38671         else
38672                 MFLAG=SLAPD_MOD_STATIC
38673                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38674         fi
38675
38676 cat >>confdefs.h <<_ACEOF
38677 #define SLAPD_OVER_REFINT $MFLAG
38678 _ACEOF
38679
38680 fi
38681
38682 if test "$ol_enable_retcode" != no ; then
38683         BUILD_RETCODE=$ol_enable_retcode
38684         if test "$ol_enable_retcode" = mod ; then
38685                 MFLAG=SLAPD_MOD_DYNAMIC
38686                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38687         else
38688                 MFLAG=SLAPD_MOD_STATIC
38689                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38690         fi
38691
38692 cat >>confdefs.h <<_ACEOF
38693 #define SLAPD_OVER_RETCODE $MFLAG
38694 _ACEOF
38695
38696 fi
38697
38698 if test "$ol_enable_rwm" != no ; then
38699         BUILD_REWRITE=yes
38700         BUILD_RWM=$ol_enable_rwm
38701         if test "$ol_enable_rwm" = mod ; then
38702                 MFLAG=SLAPD_MOD_DYNAMIC
38703                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38704         else
38705                 MFLAG=SLAPD_MOD_STATIC
38706                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38707         fi
38708
38709 cat >>confdefs.h <<_ACEOF
38710 #define SLAPD_OVER_RWM $MFLAG
38711 _ACEOF
38712
38713 fi
38714
38715 if test "$ol_enable_seqmod" != no ; then
38716         BUILD_SEQMOD=$ol_enable_seqmod
38717         if test "$ol_enable_seqmod" = mod ; then
38718                 MFLAG=SLAPD_MOD_DYNAMIC
38719                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38720         else
38721                 MFLAG=SLAPD_MOD_STATIC
38722                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38723         fi
38724
38725 cat >>confdefs.h <<_ACEOF
38726 #define SLAPD_OVER_SEQMOD $MFLAG
38727 _ACEOF
38728
38729 fi
38730
38731 if test "$ol_enable_sssvlv" != no ; then
38732         BUILD_SSSVLV=$ol_enable_sssvlv
38733         if test "$ol_enable_sssvlv" = mod ; then
38734                 MFLAG=SLAPD_MOD_DYNAMIC
38735                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38736         else
38737                 MFLAG=SLAPD_MOD_STATIC
38738                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38739         fi
38740
38741 cat >>confdefs.h <<_ACEOF
38742 #define SLAPD_OVER_SSSVLV $MFLAG
38743 _ACEOF
38744
38745 fi
38746
38747 if test "$ol_enable_syncprov" != no ; then
38748         BUILD_SYNCPROV=$ol_enable_syncprov
38749         if test "$ol_enable_syncprov" = mod ; then
38750                 MFLAG=SLAPD_MOD_DYNAMIC
38751                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38752         else
38753                 MFLAG=SLAPD_MOD_STATIC
38754                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38755         fi
38756
38757 cat >>confdefs.h <<_ACEOF
38758 #define SLAPD_OVER_SYNCPROV $MFLAG
38759 _ACEOF
38760
38761 fi
38762
38763 if test "$ol_enable_translucent" != no ; then
38764         BUILD_TRANSLUCENT=$ol_enable_translucent
38765         if test "$ol_enable_translucent" = mod ; then
38766                 MFLAG=SLAPD_MOD_DYNAMIC
38767                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38768         else
38769                 MFLAG=SLAPD_MOD_STATIC
38770                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38771         fi
38772
38773 cat >>confdefs.h <<_ACEOF
38774 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38775 _ACEOF
38776
38777 fi
38778
38779 if test "$ol_enable_unique" != no ; then
38780         BUILD_UNIQUE=$ol_enable_unique
38781         if test "$ol_enable_unique" = mod ; then
38782                 MFLAG=SLAPD_MOD_DYNAMIC
38783                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38784         else
38785                 MFLAG=SLAPD_MOD_STATIC
38786                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38787         fi
38788
38789 cat >>confdefs.h <<_ACEOF
38790 #define SLAPD_OVER_UNIQUE $MFLAG
38791 _ACEOF
38792
38793 fi
38794
38795 if test "$ol_enable_valsort" != no ; then
38796         BUILD_VALSORT=$ol_enable_valsort
38797         if test "$ol_enable_valsort" = mod ; then
38798                 MFLAG=SLAPD_MOD_DYNAMIC
38799                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38800         else
38801                 MFLAG=SLAPD_MOD_STATIC
38802                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38803         fi
38804
38805 cat >>confdefs.h <<_ACEOF
38806 #define SLAPD_OVER_VALSORT $MFLAG
38807 _ACEOF
38808
38809 fi
38810
38811 if test "$ol_enable_rewrite" != no ; then
38812
38813 cat >>confdefs.h <<\_ACEOF
38814 #define ENABLE_REWRITE 1
38815 _ACEOF
38816
38817         BUILD_REWRITE=yes
38818 fi
38819
38820 if test "$ol_enable_slapi" != no ; then
38821
38822 cat >>confdefs.h <<\_ACEOF
38823 #define ENABLE_SLAPI 1
38824 _ACEOF
38825
38826         BUILD_SLAPI=yes
38827         SLAPD_SLAPI_DEPEND=libslapi.a
38828 fi
38829
38830
38831
38832 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38833         PLAT=NT
38834         SLAPD_MODULES_LDFLAGS=
38835 else
38836         PLAT=UNIX
38837 fi
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929 # Check whether --with-xxinstall was given.
38930 if test "${with_xxinstall+set}" = set; then
38931   withval=$with_xxinstall;
38932 fi
38933
38934
38935
38936 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
38937
38938
38939 ac_config_commands="$ac_config_commands default"
38940
38941
38942
38943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38944 # Let make expand exec_prefix.
38945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38946
38947 DEFS=-DHAVE_CONFIG_H
38948
38949 ac_libobjs=
38950 ac_ltlibobjs=
38951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38952   # 1. Remove the extension, and $U if already installed.
38953   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38954   ac_i=`echo "$ac_i" | sed "$ac_script"`
38955   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38956   #    will be set to the directory where LIBOBJS objects are built.
38957   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38958   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38959 done
38960 LIBOBJS=$ac_libobjs
38961
38962 LTLIBOBJS=$ac_ltlibobjs
38963
38964
38965 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38966   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38967 Usually this means the macro was only invoked conditionally." >&5
38968 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38969 Usually this means the macro was only invoked conditionally." >&2;}
38970    { (exit 1); exit 1; }; }
38971 fi
38972 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38973   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38974 Usually this means the macro was only invoked conditionally." >&5
38975 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38976 Usually this means the macro was only invoked conditionally." >&2;}
38977    { (exit 1); exit 1; }; }
38978 fi
38979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38980   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38981 Usually this means the macro was only invoked conditionally." >&5
38982 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38983 Usually this means the macro was only invoked conditionally." >&2;}
38984    { (exit 1); exit 1; }; }
38985 fi
38986
38987 : ${CONFIG_STATUS=./config.status}
38988 ac_clean_files_save=$ac_clean_files
38989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38992 cat >$CONFIG_STATUS <<_ACEOF
38993 #! $SHELL
38994 # Generated by $as_me.
38995 # Run this file to recreate the current configuration.
38996 # Compiler output produced by configure, useful for debugging
38997 # configure, is in config.log if it exists.
38998
38999 debug=false
39000 ac_cs_recheck=false
39001 ac_cs_silent=false
39002 SHELL=\${CONFIG_SHELL-$SHELL}
39003 _ACEOF
39004
39005 cat >>$CONFIG_STATUS <<\_ACEOF
39006 ## --------------------- ##
39007 ## M4sh Initialization.  ##
39008 ## --------------------- ##
39009
39010 # Be more Bourne compatible
39011 DUALCASE=1; export DUALCASE # for MKS sh
39012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39013   emulate sh
39014   NULLCMD=:
39015   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39016   # is contrary to our usage.  Disable this feature.
39017   alias -g '${1+"$@"}'='"$@"'
39018   setopt NO_GLOB_SUBST
39019 else
39020   case `(set -o) 2>/dev/null` in
39021   *posix*) set -o posix ;;
39022 esac
39023
39024 fi
39025
39026
39027
39028
39029 # PATH needs CR
39030 # Avoid depending upon Character Ranges.
39031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39034 as_cr_digits='0123456789'
39035 as_cr_alnum=$as_cr_Letters$as_cr_digits
39036
39037 # The user is always right.
39038 if test "${PATH_SEPARATOR+set}" != set; then
39039   echo "#! /bin/sh" >conf$$.sh
39040   echo  "exit 0"   >>conf$$.sh
39041   chmod +x conf$$.sh
39042   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39043     PATH_SEPARATOR=';'
39044   else
39045     PATH_SEPARATOR=:
39046   fi
39047   rm -f conf$$.sh
39048 fi
39049
39050 # Support unset when possible.
39051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39052   as_unset=unset
39053 else
39054   as_unset=false
39055 fi
39056
39057
39058 # IFS
39059 # We need space, tab and new line, in precisely that order.  Quoting is
39060 # there to prevent editors from complaining about space-tab.
39061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39062 # splitting by setting IFS to empty value.)
39063 as_nl='
39064 '
39065 IFS=" ""        $as_nl"
39066
39067 # Find who we are.  Look in the path if we contain no directory separator.
39068 case $0 in
39069   *[\\/]* ) as_myself=$0 ;;
39070   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39071 for as_dir in $PATH
39072 do
39073   IFS=$as_save_IFS
39074   test -z "$as_dir" && as_dir=.
39075   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39076 done
39077 IFS=$as_save_IFS
39078
39079      ;;
39080 esac
39081 # We did not find ourselves, most probably we were run as `sh COMMAND'
39082 # in which case we are not to be found in the path.
39083 if test "x$as_myself" = x; then
39084   as_myself=$0
39085 fi
39086 if test ! -f "$as_myself"; then
39087   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39088   { (exit 1); exit 1; }
39089 fi
39090
39091 # Work around bugs in pre-3.0 UWIN ksh.
39092 for as_var in ENV MAIL MAILPATH
39093 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39094 done
39095 PS1='$ '
39096 PS2='> '
39097 PS4='+ '
39098
39099 # NLS nuisances.
39100 for as_var in \
39101   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39102   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39103   LC_TELEPHONE LC_TIME
39104 do
39105   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39106     eval $as_var=C; export $as_var
39107   else
39108     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39109   fi
39110 done
39111
39112 # Required to use basename.
39113 if expr a : '\(a\)' >/dev/null 2>&1 &&
39114    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39115   as_expr=expr
39116 else
39117   as_expr=false
39118 fi
39119
39120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39121   as_basename=basename
39122 else
39123   as_basename=false
39124 fi
39125
39126
39127 # Name of the executable.
39128 as_me=`$as_basename -- "$0" ||
39129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39130          X"$0" : 'X\(//\)$' \| \
39131          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39132 echo X/"$0" |
39133     sed '/^.*\/\([^/][^/]*\)\/*$/{
39134             s//\1/
39135             q
39136           }
39137           /^X\/\(\/\/\)$/{
39138             s//\1/
39139             q
39140           }
39141           /^X\/\(\/\).*/{
39142             s//\1/
39143             q
39144           }
39145           s/.*/./; q'`
39146
39147 # CDPATH.
39148 $as_unset CDPATH
39149
39150
39151
39152   as_lineno_1=$LINENO
39153   as_lineno_2=$LINENO
39154   test "x$as_lineno_1" != "x$as_lineno_2" &&
39155   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39156
39157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39158   # uniformly replaced by the line number.  The first 'sed' inserts a
39159   # line-number line after each line using $LINENO; the second 'sed'
39160   # does the real work.  The second script uses 'N' to pair each
39161   # line-number line with the line containing $LINENO, and appends
39162   # trailing '-' during substitution so that $LINENO is not a special
39163   # case at line end.
39164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39165   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39166   # E. McMahon (1931-1989) for sed's syntax.  :-)
39167   sed -n '
39168     p
39169     /[$]LINENO/=
39170   ' <$as_myself |
39171     sed '
39172       s/[$]LINENO.*/&-/
39173       t lineno
39174       b
39175       :lineno
39176       N
39177       :loop
39178       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39179       t loop
39180       s/-\n.*//
39181     ' >$as_me.lineno &&
39182   chmod +x "$as_me.lineno" ||
39183     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39184    { (exit 1); exit 1; }; }
39185
39186   # Don't try to exec as it changes $[0], causing all sort of problems
39187   # (the dirname of $[0] is not the place where we might find the
39188   # original and so on.  Autoconf is especially sensitive to this).
39189   . "./$as_me.lineno"
39190   # Exit status is that of the last command.
39191   exit
39192 }
39193
39194
39195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39196   as_dirname=dirname
39197 else
39198   as_dirname=false
39199 fi
39200
39201 ECHO_C= ECHO_N= ECHO_T=
39202 case `echo -n x` in
39203 -n*)
39204   case `echo 'x\c'` in
39205   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39206   *)   ECHO_C='\c';;
39207   esac;;
39208 *)
39209   ECHO_N='-n';;
39210 esac
39211
39212 if expr a : '\(a\)' >/dev/null 2>&1 &&
39213    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39214   as_expr=expr
39215 else
39216   as_expr=false
39217 fi
39218
39219 rm -f conf$$ conf$$.exe conf$$.file
39220 if test -d conf$$.dir; then
39221   rm -f conf$$.dir/conf$$.file
39222 else
39223   rm -f conf$$.dir
39224   mkdir conf$$.dir
39225 fi
39226 echo >conf$$.file
39227 if ln -s conf$$.file conf$$ 2>/dev/null; then
39228   as_ln_s='ln -s'
39229   # ... but there are two gotchas:
39230   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39231   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39232   # In both cases, we have to default to `cp -p'.
39233   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39234     as_ln_s='cp -p'
39235 elif ln conf$$.file conf$$ 2>/dev/null; then
39236   as_ln_s=ln
39237 else
39238   as_ln_s='cp -p'
39239 fi
39240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39241 rmdir conf$$.dir 2>/dev/null
39242
39243 if mkdir -p . 2>/dev/null; then
39244   as_mkdir_p=:
39245 else
39246   test -d ./-p && rmdir ./-p
39247   as_mkdir_p=false
39248 fi
39249
39250 if test -x / >/dev/null 2>&1; then
39251   as_test_x='test -x'
39252 else
39253   if ls -dL / >/dev/null 2>&1; then
39254     as_ls_L_option=L
39255   else
39256     as_ls_L_option=
39257   fi
39258   as_test_x='
39259     eval sh -c '\''
39260       if test -d "$1"; then
39261         test -d "$1/.";
39262       else
39263         case $1 in
39264         -*)set "./$1";;
39265         esac;
39266         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39267         ???[sx]*):;;*)false;;esac;fi
39268     '\'' sh
39269   '
39270 fi
39271 as_executable_p=$as_test_x
39272
39273 # Sed expression to map a string onto a valid CPP name.
39274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39275
39276 # Sed expression to map a string onto a valid variable name.
39277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39278
39279
39280 exec 6>&1
39281
39282 # Save the log message, to keep $[0] and so on meaningful, and to
39283 # report actual input values of CONFIG_FILES etc. instead of their
39284 # values after options handling.
39285 ac_log="
39286 This file was extended by $as_me, which was
39287 generated by GNU Autoconf 2.61.  Invocation command line was
39288
39289   CONFIG_FILES    = $CONFIG_FILES
39290   CONFIG_HEADERS  = $CONFIG_HEADERS
39291   CONFIG_LINKS    = $CONFIG_LINKS
39292   CONFIG_COMMANDS = $CONFIG_COMMANDS
39293   $ $0 $@
39294
39295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39296 "
39297
39298 _ACEOF
39299
39300 cat >>$CONFIG_STATUS <<_ACEOF
39301 # Files that config.status was made for.
39302 config_files="$ac_config_files"
39303 config_headers="$ac_config_headers"
39304 config_commands="$ac_config_commands"
39305
39306 _ACEOF
39307
39308 cat >>$CONFIG_STATUS <<\_ACEOF
39309 ac_cs_usage="\
39310 \`$as_me' instantiates files from templates according to the
39311 current configuration.
39312
39313 Usage: $0 [OPTIONS] [FILE]...
39314
39315   -h, --help       print this help, then exit
39316   -V, --version    print version number and configuration settings, then exit
39317   -q, --quiet      do not print progress messages
39318   -d, --debug      don't remove temporary files
39319       --recheck    update $as_me by reconfiguring in the same conditions
39320   --file=FILE[:TEMPLATE]
39321                    instantiate the configuration file FILE
39322   --header=FILE[:TEMPLATE]
39323                    instantiate the configuration header FILE
39324
39325 Configuration files:
39326 $config_files
39327
39328 Configuration headers:
39329 $config_headers
39330
39331 Configuration commands:
39332 $config_commands
39333
39334 Report bugs to <bug-autoconf@gnu.org>."
39335
39336 _ACEOF
39337 cat >>$CONFIG_STATUS <<_ACEOF
39338 ac_cs_version="\\
39339 config.status
39340 configured by $0, generated by GNU Autoconf 2.61,
39341   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39342
39343 Copyright (C) 2006 Free Software Foundation, Inc.
39344 This config.status script is free software; the Free Software Foundation
39345 gives unlimited permission to copy, distribute and modify it."
39346
39347 ac_pwd='$ac_pwd'
39348 srcdir='$srcdir'
39349 INSTALL='$INSTALL'
39350 _ACEOF
39351
39352 cat >>$CONFIG_STATUS <<\_ACEOF
39353 # If no file are specified by the user, then we need to provide default
39354 # value.  By we need to know if files were specified by the user.
39355 ac_need_defaults=:
39356 while test $# != 0
39357 do
39358   case $1 in
39359   --*=*)
39360     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39361     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39362     ac_shift=:
39363     ;;
39364   *)
39365     ac_option=$1
39366     ac_optarg=$2
39367     ac_shift=shift
39368     ;;
39369   esac
39370
39371   case $ac_option in
39372   # Handling of the options.
39373   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39374     ac_cs_recheck=: ;;
39375   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39376     echo "$ac_cs_version"; exit ;;
39377   --debug | --debu | --deb | --de | --d | -d )
39378     debug=: ;;
39379   --file | --fil | --fi | --f )
39380     $ac_shift
39381     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39382     ac_need_defaults=false;;
39383   --header | --heade | --head | --hea )
39384     $ac_shift
39385     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39386     ac_need_defaults=false;;
39387   --he | --h)
39388     # Conflict between --help and --header
39389     { echo "$as_me: error: ambiguous option: $1
39390 Try \`$0 --help' for more information." >&2
39391    { (exit 1); exit 1; }; };;
39392   --help | --hel | -h )
39393     echo "$ac_cs_usage"; exit ;;
39394   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39395   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39396     ac_cs_silent=: ;;
39397
39398   # This is an error.
39399   -*) { echo "$as_me: error: unrecognized option: $1
39400 Try \`$0 --help' for more information." >&2
39401    { (exit 1); exit 1; }; } ;;
39402
39403   *) ac_config_targets="$ac_config_targets $1"
39404      ac_need_defaults=false ;;
39405
39406   esac
39407   shift
39408 done
39409
39410 ac_configure_extra_args=
39411
39412 if $ac_cs_silent; then
39413   exec 6>/dev/null
39414   ac_configure_extra_args="$ac_configure_extra_args --silent"
39415 fi
39416
39417 _ACEOF
39418 cat >>$CONFIG_STATUS <<_ACEOF
39419 if \$ac_cs_recheck; then
39420   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39421   CONFIG_SHELL=$SHELL
39422   export CONFIG_SHELL
39423   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39424 fi
39425
39426 _ACEOF
39427 cat >>$CONFIG_STATUS <<\_ACEOF
39428 exec 5>>config.log
39429 {
39430   echo
39431   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39432 ## Running $as_me. ##
39433 _ASBOX
39434   echo "$ac_log"
39435 } >&5
39436
39437 _ACEOF
39438 cat >>$CONFIG_STATUS <<_ACEOF
39439 #
39440 # INIT-COMMANDS
39441 #
39442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39443
39444 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39445 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39446
39447
39448 _ACEOF
39449
39450 cat >>$CONFIG_STATUS <<\_ACEOF
39451
39452 # Handling of arguments.
39453 for ac_config_target in $ac_config_targets
39454 do
39455   case $ac_config_target in
39456     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39457     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39458     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39459     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39460     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39461     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39462     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39463     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39464     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39465     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39466     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39467     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39468     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39469     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39470     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39471     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39472     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39473     "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" ;;
39474     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39475     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39476     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39477     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39478     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39479     "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" ;;
39480     "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" ;;
39481     "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" ;;
39482     "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" ;;
39483     "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" ;;
39484     "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" ;;
39485     "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" ;;
39486     "servers/slapd/back-ndb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
39487     "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" ;;
39488     "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" ;;
39489     "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" ;;
39490     "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" ;;
39491     "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" ;;
39492     "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
39493     "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" ;;
39494     "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" ;;
39495     "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" ;;
39496     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39497     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39498     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39499     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39500     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39501
39502   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39504    { (exit 1); exit 1; }; };;
39505   esac
39506 done
39507
39508
39509 # If the user did not use the arguments to specify the items to instantiate,
39510 # then the envvar interface is used.  Set only those that are not.
39511 # We use the long form for the default assignment because of an extremely
39512 # bizarre bug on SunOS 4.1.3.
39513 if $ac_need_defaults; then
39514   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39515   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39516   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39517 fi
39518
39519 # Have a temporary directory for convenience.  Make it in the build tree
39520 # simply because there is no reason against having it here, and in addition,
39521 # creating and moving files from /tmp can sometimes cause problems.
39522 # Hook for its removal unless debugging.
39523 # Note that there is a small window in which the directory will not be cleaned:
39524 # after its creation but before its name has been assigned to `$tmp'.
39525 $debug ||
39526 {
39527   tmp=
39528   trap 'exit_status=$?
39529   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39530 ' 0
39531   trap '{ (exit 1); exit 1; }' 1 2 13 15
39532 }
39533 # Create a (secure) tmp directory for tmp files.
39534
39535 {
39536   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39537   test -n "$tmp" && test -d "$tmp"
39538 }  ||
39539 {
39540   tmp=./conf$$-$RANDOM
39541   (umask 077 && mkdir "$tmp")
39542 } ||
39543 {
39544    echo "$me: cannot create a temporary directory in ." >&2
39545    { (exit 1); exit 1; }
39546 }
39547
39548 #
39549 # Set up the sed scripts for CONFIG_FILES section.
39550 #
39551
39552 # No need to generate the scripts if there are no CONFIG_FILES.
39553 # This happens for instance when ./config.status config.h
39554 if test -n "$CONFIG_FILES"; then
39555
39556 _ACEOF
39557
39558
39559
39560 ac_delim='%!_!# '
39561 for ac_last_try in false false false false false :; do
39562   cat >conf$$subs.sed <<_ACEOF
39563 SHELL!$SHELL$ac_delim
39564 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39565 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39566 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39567 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39568 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39569 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39570 exec_prefix!$exec_prefix$ac_delim
39571 prefix!$prefix$ac_delim
39572 program_transform_name!$program_transform_name$ac_delim
39573 bindir!$bindir$ac_delim
39574 sbindir!$sbindir$ac_delim
39575 libexecdir!$libexecdir$ac_delim
39576 datarootdir!$datarootdir$ac_delim
39577 datadir!$datadir$ac_delim
39578 sysconfdir!$sysconfdir$ac_delim
39579 sharedstatedir!$sharedstatedir$ac_delim
39580 localstatedir!$localstatedir$ac_delim
39581 includedir!$includedir$ac_delim
39582 oldincludedir!$oldincludedir$ac_delim
39583 docdir!$docdir$ac_delim
39584 infodir!$infodir$ac_delim
39585 htmldir!$htmldir$ac_delim
39586 dvidir!$dvidir$ac_delim
39587 pdfdir!$pdfdir$ac_delim
39588 psdir!$psdir$ac_delim
39589 libdir!$libdir$ac_delim
39590 localedir!$localedir$ac_delim
39591 mandir!$mandir$ac_delim
39592 DEFS!$DEFS$ac_delim
39593 ECHO_C!$ECHO_C$ac_delim
39594 ECHO_N!$ECHO_N$ac_delim
39595 ECHO_T!$ECHO_T$ac_delim
39596 LIBS!$LIBS$ac_delim
39597 build_alias!$build_alias$ac_delim
39598 host_alias!$host_alias$ac_delim
39599 target_alias!$target_alias$ac_delim
39600 build!$build$ac_delim
39601 build_cpu!$build_cpu$ac_delim
39602 build_vendor!$build_vendor$ac_delim
39603 build_os!$build_os$ac_delim
39604 host!$host$ac_delim
39605 host_cpu!$host_cpu$ac_delim
39606 host_vendor!$host_vendor$ac_delim
39607 host_os!$host_os$ac_delim
39608 target!$target$ac_delim
39609 target_cpu!$target_cpu$ac_delim
39610 target_vendor!$target_vendor$ac_delim
39611 target_os!$target_os$ac_delim
39612 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39613 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39614 INSTALL_DATA!$INSTALL_DATA$ac_delim
39615 CYGPATH_W!$CYGPATH_W$ac_delim
39616 PACKAGE!$PACKAGE$ac_delim
39617 VERSION!$VERSION$ac_delim
39618 ACLOCAL!$ACLOCAL$ac_delim
39619 AUTOCONF!$AUTOCONF$ac_delim
39620 AUTOMAKE!$AUTOMAKE$ac_delim
39621 AUTOHEADER!$AUTOHEADER$ac_delim
39622 MAKEINFO!$MAKEINFO$ac_delim
39623 install_sh!$install_sh$ac_delim
39624 STRIP!$STRIP$ac_delim
39625 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39626 mkdir_p!$mkdir_p$ac_delim
39627 AWK!$AWK$ac_delim
39628 SET_MAKE!$SET_MAKE$ac_delim
39629 am__leading_dot!$am__leading_dot$ac_delim
39630 AMTAR!$AMTAR$ac_delim
39631 am__tar!$am__tar$ac_delim
39632 am__untar!$am__untar$ac_delim
39633 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39634 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39635 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39636 top_builddir!$top_builddir$ac_delim
39637 ldap_subdir!$ldap_subdir$ac_delim
39638 CC!$CC$ac_delim
39639 AR!$AR$ac_delim
39640 CFLAGS!$CFLAGS$ac_delim
39641 LDFLAGS!$LDFLAGS$ac_delim
39642 CPPFLAGS!$CPPFLAGS$ac_delim
39643 ac_ct_CC!$ac_ct_CC$ac_delim
39644 EXEEXT!$EXEEXT$ac_delim
39645 OBJEXT!$OBJEXT$ac_delim
39646 DEPDIR!$DEPDIR$ac_delim
39647 am__include!$am__include$ac_delim
39648 am__quote!$am__quote$ac_delim
39649 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39650 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39651 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39652 CCDEPMODE!$CCDEPMODE$ac_delim
39653 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39654 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39655 GREP!$GREP$ac_delim
39656 EGREP!$EGREP$ac_delim
39657 LN_S!$LN_S$ac_delim
39658 ECHO!$ECHO$ac_delim
39659 RANLIB!$RANLIB$ac_delim
39660 _ACEOF
39661
39662   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39663     break
39664   elif $ac_last_try; then
39665     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39667    { (exit 1); exit 1; }; }
39668   else
39669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39670   fi
39671 done
39672
39673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39674 if test -n "$ac_eof"; then
39675   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39676   ac_eof=`expr $ac_eof + 1`
39677 fi
39678
39679 cat >>$CONFIG_STATUS <<_ACEOF
39680 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39682 _ACEOF
39683 sed '
39684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39685 s/^/s,@/; s/!/@,|#_!!_#|/
39686 :n
39687 t n
39688 s/'"$ac_delim"'$/,g/; t
39689 s/$/\\/; p
39690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39691 ' >>$CONFIG_STATUS <conf$$subs.sed
39692 rm -f conf$$subs.sed
39693 cat >>$CONFIG_STATUS <<_ACEOF
39694 CEOF$ac_eof
39695 _ACEOF
39696
39697
39698 ac_delim='%!_!# '
39699 for ac_last_try in false false false false false :; do
39700   cat >conf$$subs.sed <<_ACEOF
39701 DLLTOOL!$DLLTOOL$ac_delim
39702 AS!$AS$ac_delim
39703 OBJDUMP!$OBJDUMP$ac_delim
39704 CPP!$CPP$ac_delim
39705 LIBTOOL!$LIBTOOL$ac_delim
39706 PERLBIN!$PERLBIN$ac_delim
39707 OL_MKDEP!$OL_MKDEP$ac_delim
39708 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39709 LTSTATIC!$LTSTATIC$ac_delim
39710 MYSQL!$MYSQL$ac_delim
39711 LIBOBJS!$LIBOBJS$ac_delim
39712 LIBSRCS!$LIBSRCS$ac_delim
39713 PLAT!$PLAT$ac_delim
39714 WITH_SASL!$WITH_SASL$ac_delim
39715 WITH_TLS!$WITH_TLS$ac_delim
39716 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39717 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39718 BUILD_THREAD!$BUILD_THREAD$ac_delim
39719 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39720 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39721 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39722 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39723 BUILD_BDB!$BUILD_BDB$ac_delim
39724 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39725 BUILD_HDB!$BUILD_HDB$ac_delim
39726 BUILD_LDAP!$BUILD_LDAP$ac_delim
39727 BUILD_META!$BUILD_META$ac_delim
39728 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39729 BUILD_NDB!$BUILD_NDB$ac_delim
39730 BUILD_NULL!$BUILD_NULL$ac_delim
39731 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39732 BUILD_RELAY!$BUILD_RELAY$ac_delim
39733 BUILD_PERL!$BUILD_PERL$ac_delim
39734 BUILD_SHELL!$BUILD_SHELL$ac_delim
39735 BUILD_SOCK!$BUILD_SOCK$ac_delim
39736 BUILD_SQL!$BUILD_SQL$ac_delim
39737 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39738 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39739 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39740 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39741 BUILD_DDS!$BUILD_DDS$ac_delim
39742 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39743 BUILD_DEREF!$BUILD_DEREF$ac_delim
39744 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39745 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39746 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39747 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39748 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39749 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39750 BUILD_REFINT!$BUILD_REFINT$ac_delim
39751 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39752 BUILD_RWM!$BUILD_RWM$ac_delim
39753 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39754 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39755 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39756 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39757 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39758 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39759 LDAP_LIBS!$LDAP_LIBS$ac_delim
39760 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39761 BDB_LIBS!$BDB_LIBS$ac_delim
39762 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39763 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39764 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39765 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39766 WRAP_LIBS!$WRAP_LIBS$ac_delim
39767 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39768 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39769 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39770 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39771 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39772 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39773 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39774 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39775 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39776 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39777 KRB4_LIBS!$KRB4_LIBS$ac_delim
39778 KRB5_LIBS!$KRB5_LIBS$ac_delim
39779 SASL_LIBS!$SASL_LIBS$ac_delim
39780 TLS_LIBS!$TLS_LIBS$ac_delim
39781 MODULES_LIBS!$MODULES_LIBS$ac_delim
39782 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39783 LIBSLAPI!$LIBSLAPI$ac_delim
39784 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39785 AUTH_LIBS!$AUTH_LIBS$ac_delim
39786 ICU_LIBS!$ICU_LIBS$ac_delim
39787 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39788 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39789 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39790 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39791 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39792 LTLIBOBJS!$LTLIBOBJS$ac_delim
39793 _ACEOF
39794
39795   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
39796     break
39797   elif $ac_last_try; then
39798     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39799 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39800    { (exit 1); exit 1; }; }
39801   else
39802     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39803   fi
39804 done
39805
39806 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39807 if test -n "$ac_eof"; then
39808   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39809   ac_eof=`expr $ac_eof + 1`
39810 fi
39811
39812 cat >>$CONFIG_STATUS <<_ACEOF
39813 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39815 _ACEOF
39816 sed '
39817 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39818 s/^/s,@/; s/!/@,|#_!!_#|/
39819 :n
39820 t n
39821 s/'"$ac_delim"'$/,g/; t
39822 s/$/\\/; p
39823 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39824 ' >>$CONFIG_STATUS <conf$$subs.sed
39825 rm -f conf$$subs.sed
39826 cat >>$CONFIG_STATUS <<_ACEOF
39827 :end
39828 s/|#_!!_#|//g
39829 CEOF$ac_eof
39830 _ACEOF
39831
39832
39833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39835 # trailing colons and then remove the whole line if VPATH becomes empty
39836 # (actually we leave an empty line to preserve line numbers).
39837 if test "x$srcdir" = x.; then
39838   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39839 s/:*\$(srcdir):*/:/
39840 s/:*\${srcdir}:*/:/
39841 s/:*@srcdir@:*/:/
39842 s/^\([^=]*=[     ]*\):*/\1/
39843 s/:*$//
39844 s/^[^=]*=[       ]*$//
39845 }'
39846 fi
39847
39848 cat >>$CONFIG_STATUS <<\_ACEOF
39849 fi # test -n "$CONFIG_FILES"
39850
39851
39852 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39853 do
39854   case $ac_tag in
39855   :[FHLC]) ac_mode=$ac_tag; continue;;
39856   esac
39857   case $ac_mode$ac_tag in
39858   :[FHL]*:*);;
39859   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39860 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39861    { (exit 1); exit 1; }; };;
39862   :[FH]-) ac_tag=-:-;;
39863   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39864   esac
39865   ac_save_IFS=$IFS
39866   IFS=:
39867   set x $ac_tag
39868   IFS=$ac_save_IFS
39869   shift
39870   ac_file=$1
39871   shift
39872
39873   case $ac_mode in
39874   :L) ac_source=$1;;
39875   :[FH])
39876     ac_file_inputs=
39877     for ac_f
39878     do
39879       case $ac_f in
39880       -) ac_f="$tmp/stdin";;
39881       *) # Look for the file first in the build tree, then in the source tree
39882          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39883          # because $ac_f cannot contain `:'.
39884          test -f "$ac_f" ||
39885            case $ac_f in
39886            [\\/$]*) false;;
39887            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39888            esac ||
39889            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39890 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39891    { (exit 1); exit 1; }; };;
39892       esac
39893       ac_file_inputs="$ac_file_inputs $ac_f"
39894     done
39895
39896     # Let's still pretend it is `configure' which instantiates (i.e., don't
39897     # use $as_me), people would be surprised to read:
39898     #    /* config.h.  Generated by config.status.  */
39899     configure_input="Generated from "`IFS=:
39900           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39901     if test x"$ac_file" != x-; then
39902       configure_input="$ac_file.  $configure_input"
39903       { echo "$as_me:$LINENO: creating $ac_file" >&5
39904 echo "$as_me: creating $ac_file" >&6;}
39905     fi
39906
39907     case $ac_tag in
39908     *:-:* | *:-) cat >"$tmp/stdin";;
39909     esac
39910     ;;
39911   esac
39912
39913   ac_dir=`$as_dirname -- "$ac_file" ||
39914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39915          X"$ac_file" : 'X\(//\)[^/]' \| \
39916          X"$ac_file" : 'X\(//\)$' \| \
39917          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39918 echo X"$ac_file" |
39919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39920             s//\1/
39921             q
39922           }
39923           /^X\(\/\/\)[^/].*/{
39924             s//\1/
39925             q
39926           }
39927           /^X\(\/\/\)$/{
39928             s//\1/
39929             q
39930           }
39931           /^X\(\/\).*/{
39932             s//\1/
39933             q
39934           }
39935           s/.*/./; q'`
39936   { as_dir="$ac_dir"
39937   case $as_dir in #(
39938   -*) as_dir=./$as_dir;;
39939   esac
39940   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39941     as_dirs=
39942     while :; do
39943       case $as_dir in #(
39944       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39945       *) as_qdir=$as_dir;;
39946       esac
39947       as_dirs="'$as_qdir' $as_dirs"
39948       as_dir=`$as_dirname -- "$as_dir" ||
39949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39950          X"$as_dir" : 'X\(//\)[^/]' \| \
39951          X"$as_dir" : 'X\(//\)$' \| \
39952          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39953 echo X"$as_dir" |
39954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39955             s//\1/
39956             q
39957           }
39958           /^X\(\/\/\)[^/].*/{
39959             s//\1/
39960             q
39961           }
39962           /^X\(\/\/\)$/{
39963             s//\1/
39964             q
39965           }
39966           /^X\(\/\).*/{
39967             s//\1/
39968             q
39969           }
39970           s/.*/./; q'`
39971       test -d "$as_dir" && break
39972     done
39973     test -z "$as_dirs" || eval "mkdir $as_dirs"
39974   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39975 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39976    { (exit 1); exit 1; }; }; }
39977   ac_builddir=.
39978
39979 case "$ac_dir" in
39980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39981 *)
39982   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39983   # A ".." for each directory in $ac_dir_suffix.
39984   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39985   case $ac_top_builddir_sub in
39986   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39987   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39988   esac ;;
39989 esac
39990 ac_abs_top_builddir=$ac_pwd
39991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39992 # for backward compatibility:
39993 ac_top_builddir=$ac_top_build_prefix
39994
39995 case $srcdir in
39996   .)  # We are building in place.
39997     ac_srcdir=.
39998     ac_top_srcdir=$ac_top_builddir_sub
39999     ac_abs_top_srcdir=$ac_pwd ;;
40000   [\\/]* | ?:[\\/]* )  # Absolute name.
40001     ac_srcdir=$srcdir$ac_dir_suffix;
40002     ac_top_srcdir=$srcdir
40003     ac_abs_top_srcdir=$srcdir ;;
40004   *) # Relative name.
40005     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40006     ac_top_srcdir=$ac_top_build_prefix$srcdir
40007     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40008 esac
40009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40010
40011
40012   case $ac_mode in
40013   :F)
40014   #
40015   # CONFIG_FILE
40016   #
40017
40018   case $INSTALL in
40019   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40020   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40021   esac
40022 _ACEOF
40023
40024 cat >>$CONFIG_STATUS <<\_ACEOF
40025 # If the template does not know about datarootdir, expand it.
40026 # FIXME: This hack should be removed a few years after 2.60.
40027 ac_datarootdir_hack=; ac_datarootdir_seen=
40028
40029 case `sed -n '/datarootdir/ {
40030   p
40031   q
40032 }
40033 /@datadir@/p
40034 /@docdir@/p
40035 /@infodir@/p
40036 /@localedir@/p
40037 /@mandir@/p
40038 ' $ac_file_inputs` in
40039 *datarootdir*) ac_datarootdir_seen=yes;;
40040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40041   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40042 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40043 _ACEOF
40044 cat >>$CONFIG_STATUS <<_ACEOF
40045   ac_datarootdir_hack='
40046   s&@datadir@&$datadir&g
40047   s&@docdir@&$docdir&g
40048   s&@infodir@&$infodir&g
40049   s&@localedir@&$localedir&g
40050   s&@mandir@&$mandir&g
40051     s&\\\${datarootdir}&$datarootdir&g' ;;
40052 esac
40053 _ACEOF
40054
40055 # Neutralize VPATH when `$srcdir' = `.'.
40056 # Shell code in configure.ac might set extrasub.
40057 # FIXME: do we really want to maintain this feature?
40058 cat >>$CONFIG_STATUS <<_ACEOF
40059   sed "$ac_vpsub
40060 $extrasub
40061 _ACEOF
40062 cat >>$CONFIG_STATUS <<\_ACEOF
40063 :t
40064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40065 s&@configure_input@&$configure_input&;t t
40066 s&@top_builddir@&$ac_top_builddir_sub&;t t
40067 s&@srcdir@&$ac_srcdir&;t t
40068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40069 s&@top_srcdir@&$ac_top_srcdir&;t t
40070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40071 s&@builddir@&$ac_builddir&;t t
40072 s&@abs_builddir@&$ac_abs_builddir&;t t
40073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40074 s&@INSTALL@&$ac_INSTALL&;t t
40075 $ac_datarootdir_hack
40076 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40077
40078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40079   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40080   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40081   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40082 which seems to be undefined.  Please make sure it is defined." >&5
40083 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40084 which seems to be undefined.  Please make sure it is defined." >&2;}
40085
40086   rm -f "$tmp/stdin"
40087   case $ac_file in
40088   -) cat "$tmp/out"; rm -f "$tmp/out";;
40089   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40090   esac
40091  ;;
40092   :H)
40093   #
40094   # CONFIG_HEADER
40095   #
40096 _ACEOF
40097
40098 # Transform confdefs.h into a sed script `conftest.defines', that
40099 # substitutes the proper values into config.h.in to produce config.h.
40100 rm -f conftest.defines conftest.tail
40101 # First, append a space to every undef/define line, to ease matching.
40102 echo 's/$/ /' >conftest.defines
40103 # Then, protect against being on the right side of a sed subst, or in
40104 # an unquoted here document, in config.status.  If some macros were
40105 # called several times there might be several #defines for the same
40106 # symbol, which is useless.  But do not sort them, since the last
40107 # AC_DEFINE must be honored.
40108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40109 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40110 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40111 # PARAMS is the parameter list in the macro definition--in most cases, it's
40112 # just an empty string.
40113 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40114 ac_dB='\\)[      (].*,\\1define\\2'
40115 ac_dC=' '
40116 ac_dD=' ,'
40117
40118 uniq confdefs.h |
40119   sed -n '
40120         t rset
40121         :rset
40122         s/^[     ]*#[    ]*define[       ][      ]*//
40123         t ok
40124         d
40125         :ok
40126         s/[\\&,]/\\&/g
40127         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40128         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40129   ' >>conftest.defines
40130
40131 # Remove the space that was appended to ease matching.
40132 # Then replace #undef with comments.  This is necessary, for
40133 # example, in the case of _POSIX_SOURCE, which is predefined and required
40134 # on some systems where configure will not decide to define it.
40135 # (The regexp can be short, since the line contains either #define or #undef.)
40136 echo 's/ $//
40137 s,^[     #]*u.*,/* & */,' >>conftest.defines
40138
40139 # Break up conftest.defines:
40140 ac_max_sed_lines=50
40141
40142 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40143 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40144 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40145 # et cetera.
40146 ac_in='$ac_file_inputs'
40147 ac_out='"$tmp/out1"'
40148 ac_nxt='"$tmp/out2"'
40149
40150 while :
40151 do
40152   # Write a here document:
40153     cat >>$CONFIG_STATUS <<_ACEOF
40154     # First, check the format of the line:
40155     cat >"\$tmp/defines.sed" <<\\CEOF
40156 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40157 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40158 b
40159 :def
40160 _ACEOF
40161   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40162   echo 'CEOF
40163     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40164   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40165   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40166   grep . conftest.tail >/dev/null || break
40167   rm -f conftest.defines
40168   mv conftest.tail conftest.defines
40169 done
40170 rm -f conftest.defines conftest.tail
40171
40172 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40173 cat >>$CONFIG_STATUS <<\_ACEOF
40174   if test x"$ac_file" != x-; then
40175     echo "/* $configure_input  */" >"$tmp/config.h"
40176     cat "$ac_result" >>"$tmp/config.h"
40177     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40178       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40179 echo "$as_me: $ac_file is unchanged" >&6;}
40180     else
40181       rm -f $ac_file
40182       mv "$tmp/config.h" $ac_file
40183     fi
40184   else
40185     echo "/* $configure_input  */"
40186     cat "$ac_result"
40187   fi
40188   rm -f "$tmp/out12"
40189 # Compute $ac_file's index in $config_headers.
40190 _am_stamp_count=1
40191 for _am_header in $config_headers :; do
40192   case $_am_header in
40193     $ac_file | $ac_file:* )
40194       break ;;
40195     * )
40196       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40197   esac
40198 done
40199 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40200 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40201          X$ac_file : 'X\(//\)[^/]' \| \
40202          X$ac_file : 'X\(//\)$' \| \
40203          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40204 echo X$ac_file |
40205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40206             s//\1/
40207             q
40208           }
40209           /^X\(\/\/\)[^/].*/{
40210             s//\1/
40211             q
40212           }
40213           /^X\(\/\/\)$/{
40214             s//\1/
40215             q
40216           }
40217           /^X\(\/\).*/{
40218             s//\1/
40219             q
40220           }
40221           s/.*/./; q'`/stamp-h$_am_stamp_count
40222  ;;
40223
40224   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40225 echo "$as_me: executing $ac_file commands" >&6;}
40226  ;;
40227   esac
40228
40229
40230   case $ac_file$ac_mode in
40231     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40232   # Strip MF so we end up with the name of the file.
40233   mf=`echo "$mf" | sed -e 's/:.*$//'`
40234   # Check whether this is an Automake generated Makefile or not.
40235   # We used to match only the files named `Makefile.in', but
40236   # some people rename them; so instead we look at the file content.
40237   # Grep'ing the first line is not enough: some people post-process
40238   # each Makefile.in and add a new line on top of each file to say so.
40239   # So let's grep whole file.
40240   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40241     dirpart=`$as_dirname -- "$mf" ||
40242 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40243          X"$mf" : 'X\(//\)[^/]' \| \
40244          X"$mf" : 'X\(//\)$' \| \
40245          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40246 echo X"$mf" |
40247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40248             s//\1/
40249             q
40250           }
40251           /^X\(\/\/\)[^/].*/{
40252             s//\1/
40253             q
40254           }
40255           /^X\(\/\/\)$/{
40256             s//\1/
40257             q
40258           }
40259           /^X\(\/\).*/{
40260             s//\1/
40261             q
40262           }
40263           s/.*/./; q'`
40264   else
40265     continue
40266   fi
40267   # Extract the definition of DEPDIR, am__include, and am__quote
40268   # from the Makefile without running `make'.
40269   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40270   test -z "$DEPDIR" && continue
40271   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40272   test -z "am__include" && continue
40273   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40274   # When using ansi2knr, U may be empty or an underscore; expand it
40275   U=`sed -n 's/^U = //p' < "$mf"`
40276   # Find all dependency output files, they are included files with
40277   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40278   # simplest approach to changing $(DEPDIR) to its actual value in the
40279   # expansion.
40280   for file in `sed -n "
40281     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40282        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40283     # Make sure the directory exists.
40284     test -f "$dirpart/$file" && continue
40285     fdir=`$as_dirname -- "$file" ||
40286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40287          X"$file" : 'X\(//\)[^/]' \| \
40288          X"$file" : 'X\(//\)$' \| \
40289          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40290 echo X"$file" |
40291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40292             s//\1/
40293             q
40294           }
40295           /^X\(\/\/\)[^/].*/{
40296             s//\1/
40297             q
40298           }
40299           /^X\(\/\/\)$/{
40300             s//\1/
40301             q
40302           }
40303           /^X\(\/\).*/{
40304             s//\1/
40305             q
40306           }
40307           s/.*/./; q'`
40308     { as_dir=$dirpart/$fdir
40309   case $as_dir in #(
40310   -*) as_dir=./$as_dir;;
40311   esac
40312   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40313     as_dirs=
40314     while :; do
40315       case $as_dir in #(
40316       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40317       *) as_qdir=$as_dir;;
40318       esac
40319       as_dirs="'$as_qdir' $as_dirs"
40320       as_dir=`$as_dirname -- "$as_dir" ||
40321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40322          X"$as_dir" : 'X\(//\)[^/]' \| \
40323          X"$as_dir" : 'X\(//\)$' \| \
40324          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40325 echo X"$as_dir" |
40326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40327             s//\1/
40328             q
40329           }
40330           /^X\(\/\/\)[^/].*/{
40331             s//\1/
40332             q
40333           }
40334           /^X\(\/\/\)$/{
40335             s//\1/
40336             q
40337           }
40338           /^X\(\/\).*/{
40339             s//\1/
40340             q
40341           }
40342           s/.*/./; q'`
40343       test -d "$as_dir" && break
40344     done
40345     test -z "$as_dirs" || eval "mkdir $as_dirs"
40346   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40347 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40348    { (exit 1); exit 1; }; }; }
40349     # echo "creating $dirpart/$file"
40350     echo '# dummy' > "$dirpart/$file"
40351   done
40352 done
40353  ;;
40354     "default":C)
40355 chmod +x tests/run
40356 date > stamp-h
40357 BACKENDSC="servers/slapd/backends.c"
40358 echo "Making $BACKENDSC"
40359 rm -f $BACKENDSC
40360 cat > $BACKENDSC << ENDX
40361 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40362  *
40363  * Copyright 1998-2009 The OpenLDAP Foundation.
40364  * All rights reserved.
40365  *
40366  * Redistribution and use in source and binary forms, with or without
40367  * modification, are permitted only as authorized by the OpenLDAP
40368  * Public License.
40369  *
40370  * A copy of this license is available in the file LICENSE in the
40371  * top-level directory of the distribution or, alternatively, at
40372  * <http://www.OpenLDAP.org/license.html>.
40373  */
40374 /* This file is automatically generated by configure; please do not edit. */
40375
40376 #include "portable.h"
40377 #include "slap.h"
40378
40379 ENDX
40380 if test "${STATIC_BACKENDS}"; then
40381         for b in config ${STATIC_BACKENDS}; do
40382                 bb=`echo "${b}" | sed -e 's/back-//'`
40383                 cat >> $BACKENDSC << ENDX
40384 extern BI_init ${bb}_back_initialize;
40385 ENDX
40386         done
40387
40388         cat >> $BACKENDSC << ENDX
40389
40390 BackendInfo slap_binfo[] = {
40391 ENDX
40392
40393         for b in config ${STATIC_BACKENDS}; do
40394                 bb=`echo "${b}" | sed -e 's/back-//'`
40395                 echo "    Add ${bb} ..."
40396                 cat >> $BACKENDSC << ENDX
40397         { "${bb}", ${bb}_back_initialize },
40398 ENDX
40399         done
40400
40401         cat >> $BACKENDSC << ENDX
40402         { NULL, NULL },
40403 };
40404
40405 /* end of generated file */
40406 ENDX
40407 fi
40408 OVERLAYSC="servers/slapd/overlays/statover.c"
40409 echo "Making $OVERLAYSC"
40410 rm -f $OVERLAYSC
40411 cat > $OVERLAYSC << ENDX
40412 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40413  *
40414  * Copyright 1998-2009 The OpenLDAP Foundation.
40415  * All rights reserved.
40416  *
40417  * Redistribution and use in source and binary forms, with or without
40418  * modification, are permitted only as authorized by the OpenLDAP
40419  * Public License.
40420  *
40421  * A copy of this license is available in the file LICENSE in the
40422  * top-level directory of the distribution or, alternatively, at
40423  * <http://www.OpenLDAP.org/license.html>.
40424  */
40425 /* This file is automatically generated by configure; please do not edit. */
40426
40427 #include "portable.h"
40428 #include "slap.h"
40429
40430 ENDX
40431 if test "${STATIC_OVERLAYS}"; then
40432         for o in ${STATIC_OVERLAYS}; do
40433                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40434                 cat >> $OVERLAYSC << ENDX
40435 extern OV_init ${oo}_initialize;
40436 ENDX
40437         done
40438 fi
40439
40440 cat >> $OVERLAYSC << ENDX
40441
40442 OverlayInit slap_oinfo[] = {
40443 ENDX
40444
40445 if test "${STATIC_OVERLAYS}"; then
40446         for o in ${STATIC_OVERLAYS}; do
40447                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40448                 echo "    Add ${oo} ..."
40449                 cat >> $OVERLAYSC << ENDX
40450         { "${oo}", ${oo}_initialize },
40451 ENDX
40452         done
40453 fi
40454
40455         cat >> $OVERLAYSC << ENDX
40456         { NULL, NULL },
40457 };
40458
40459 /* end of generated file */
40460 ENDX
40461
40462 if test "${ol_cv_mkdep}" = no; then
40463         echo '(Do not "make depend"; we do not know how to build dependencies)'
40464 else
40465         echo 'Please run "make depend" to build dependencies'
40466 fi
40467  ;;
40468
40469   esac
40470 done # for ac_tag
40471
40472
40473 { (exit 0); exit 0; }
40474 _ACEOF
40475 chmod +x $CONFIG_STATUS
40476 ac_clean_files=$ac_clean_files_save
40477
40478
40479 # configure is writing to config.log, and then calls config.status.
40480 # config.status does its own redirection, appending to config.log.
40481 # Unfortunately, on DOS this fails, as config.log is still kept open
40482 # by configure, so config.status won't be able to write to it; its
40483 # output is simply discarded.  So we exec the FD to /dev/null,
40484 # effectively closing config.log, so it can be properly (re)opened and
40485 # appended to by config.status.  When coming back to configure, we
40486 # need to make the FD available again.
40487 if test "$no_create" != yes; then
40488   ac_cs_success=:
40489   ac_config_status_args=
40490   test "$silent" = yes &&
40491     ac_config_status_args="$ac_config_status_args --quiet"
40492   exec 5>/dev/null
40493   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40494   exec 5>>config.log
40495   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40496   # would make configure fail if this is the last instruction.
40497   $ac_cs_success || { (exit 1); exit 1; }
40498 fi
40499