]> git.sur5r.net Git - openldap/blob - configure
Don't set bi_db_config since we have no config options
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.29 2010/04/19 16:53:00 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2010 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 [yes]
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 [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-2010 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 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:-yes}
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 WITH_TLS=no
19774 if test $ol_link_tls = yes ; then
19775
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE_TLS 1
19778 _ACEOF
19779
19780         WITH_TLS=yes
19781 elif test $ol_with_tls = auto ; then
19782         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19783 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19784         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19785 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19786 elif test $ol_with_tls != no ; then
19787         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19788 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19789    { (exit 1); exit 1; }; }
19790 else
19791         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19792 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19793 fi
19794
19795 if test $ol_enable_lmpasswd != no; then
19796         if test $ol_link_tls != yes ; then
19797                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19798 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19799    { (exit 1); exit 1; }; }
19800         fi
19801
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define SLAPD_LMHASH 1
19805 _ACEOF
19806
19807 fi
19808
19809 ol_link_threads=no
19810
19811 case $ol_with_threads in auto | yes | nt)
19812
19813
19814         { echo "$as_me:$LINENO: checking for _beginthread" >&5
19815 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19816 if test "${ac_cv_func__beginthread+set}" = set; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819   cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19827 #define _beginthread innocuous__beginthread
19828
19829 /* System header to define __stub macros and hopefully few prototypes,
19830     which can conflict with char _beginthread (); below.
19831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19832     <limits.h> exists even on freestanding compilers.  */
19833
19834 #ifdef __STDC__
19835 # include <limits.h>
19836 #else
19837 # include <assert.h>
19838 #endif
19839
19840 #undef _beginthread
19841
19842 /* Override any GCC internal prototype to avoid an error.
19843    Use char because int might match the return type of a GCC
19844    builtin and then its argument prototype would still apply.  */
19845 #ifdef __cplusplus
19846 extern "C"
19847 #endif
19848 char _beginthread ();
19849 /* The GNU C library defines this for functions which it implements
19850     to always fail with ENOSYS.  Some functions are actually named
19851     something starting with __ and the normal name is an alias.  */
19852 #if defined __stub__beginthread || defined __stub____beginthread
19853 choke me
19854 #endif
19855
19856 int
19857 main ()
19858 {
19859 return _beginthread ();
19860   ;
19861   return 0;
19862 }
19863 _ACEOF
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_link") 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } && {
19878          test -z "$ac_c_werror_flag" ||
19879          test ! -s conftest.err
19880        } && test -s conftest$ac_exeext &&
19881        $as_test_x conftest$ac_exeext; then
19882   ac_cv_func__beginthread=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887         ac_cv_func__beginthread=no
19888 fi
19889
19890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19891       conftest$ac_exeext conftest.$ac_ext
19892 fi
19893 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19894 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19895
19896
19897         if test $ac_cv_func__beginthread = yes ; then
19898
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_NT_THREADS 1
19901 _ACEOF
19902
19903                 ol_cv_nt_threads=yes
19904         fi
19905
19906
19907         if test "$ol_cv_nt_threads" = yes ; then
19908                 ol_link_threads=nt
19909                 ol_with_threads=found
19910                 ol_with_yielding_select=yes
19911
19912
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_NT_SERVICE_MANAGER 1
19915 _ACEOF
19916
19917
19918 cat >>confdefs.h <<\_ACEOF
19919 #define HAVE_NT_EVENT_LOG 1
19920 _ACEOF
19921
19922         fi
19923
19924         if test $ol_with_threads = nt ; then
19925                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19926 echo "$as_me: error: could not locate NT Threads" >&2;}
19927    { (exit 1); exit 1; }; }
19928         fi
19929         ;;
19930 esac
19931
19932 case $ol_with_threads in auto | yes | posix)
19933
19934
19935 for ac_header in pthread.h
19936 do
19937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 fi
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945                { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19947 else
19948   # Is the header compilable?
19949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957 $ac_includes_default
19958 #include <$ac_header>
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_compile") 2>conftest.er1
19968   ac_status=$?
19969   grep -v '^ *+' conftest.er1 >conftest.err
19970   rm -f conftest.er1
19971   cat conftest.err >&5
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } && {
19974          test -z "$ac_c_werror_flag" ||
19975          test ! -s conftest.err
19976        } && test -s conftest.$ac_objext; then
19977   ac_header_compiler=yes
19978 else
19979   echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19981
19982         ac_header_compiler=no
19983 fi
19984
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987 echo "${ECHO_T}$ac_header_compiler" >&6; }
19988
19989 # Is the header present?
19990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998 #include <$ac_header>
19999 _ACEOF
20000 if { (ac_try="$ac_cpp conftest.$ac_ext"
20001 case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } >/dev/null && {
20013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20014          test ! -s conftest.err
20015        }; then
20016   ac_header_preproc=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021   ac_header_preproc=no
20022 fi
20023
20024 rm -f conftest.err conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6; }
20027
20028 # So?  What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20030   yes:no: )
20031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035     ac_header_preproc=yes
20036     ;;
20037   no:yes:* )
20038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20050     ( cat <<\_ASBOX
20051 ## --------------------------------------------- ##
20052 ## Report this to <http://www.openldap.org/its/> ##
20053 ## --------------------------------------------- ##
20054 _ASBOX
20055      ) | sed "s/^/$as_me: WARNING:     /" >&2
20056     ;;
20057 esac
20058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061   echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063   eval "$as_ac_Header=\$ac_header_preproc"
20064 fi
20065 ac_res=`eval echo '${'$as_ac_Header'}'`
20066                { echo "$as_me:$LINENO: result: $ac_res" >&5
20067 echo "${ECHO_T}$ac_res" >&6; }
20068
20069 fi
20070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20071   cat >>confdefs.h <<_ACEOF
20072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20073 _ACEOF
20074
20075 fi
20076
20077 done
20078
20079
20080         if test $ac_cv_header_pthread_h = yes ; then
20081                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20082 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20083 if test "${ol_cv_pthread_version+set}" = set; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086
20087         cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h.  */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h.  */
20093
20094 #               include <pthread.h>
20095
20096 int
20097 main ()
20098 {
20099
20100                 int i = PTHREAD_CREATE_JOINABLE;
20101
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110   *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113   (eval "$ac_compile") 2>conftest.er1
20114   ac_status=$?
20115   grep -v '^ *+' conftest.er1 >conftest.err
20116   rm -f conftest.er1
20117   cat conftest.err >&5
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } && {
20120          test -z "$ac_c_werror_flag" ||
20121          test ! -s conftest.err
20122        } && test -s conftest.$ac_objext; then
20123
20124         cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h.  */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h.  */
20130 #include <pthread.h>
20131
20132 _ACEOF
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134   $EGREP "pthread_detach" >/dev/null 2>&1; then
20135   ol_cv_pthread_version=10
20136 else
20137   ol_cv_pthread_version=8
20138 fi
20139 rm -f conftest*
20140
20141 else
20142   echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145
20146         cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 #               include <pthread.h>
20154 #               ifdef PTHREAD_CREATE_UNDETACHED
20155                 draft7
20156 #               endif
20157
20158 _ACEOF
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160   $EGREP "draft7" >/dev/null 2>&1; then
20161   ol_cv_pthread_version=7
20162 else
20163
20164         cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170 #include <pthread.h>
20171
20172 _ACEOF
20173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20174   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20175   ol_cv_pthread_version=6
20176 else
20177
20178         cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184
20185 #               include <pthread.h>
20186 #ifdef          PTHREAD_MUTEX_INITIALIZER
20187                 draft5
20188 #endif
20189
20190 _ACEOF
20191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20192   $EGREP "draft5" >/dev/null 2>&1; then
20193   ol_cv_pthread_version=5
20194 else
20195   ol_cv_pthread_version=4
20196 fi
20197 rm -f conftest*
20198
20199 fi
20200 rm -f conftest*
20201
20202 fi
20203 rm -f conftest*
20204
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208
20209 fi
20210 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20211 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20212
20213
20214                 if test $ol_cv_pthread_version != 0 ; then
20215
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_PTHREADS $ol_cv_pthread_version
20218 _ACEOF
20219
20220                 else
20221                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20222 echo "$as_me: error: unknown pthread version" >&2;}
20223    { (exit 1); exit 1; }; }
20224                 fi
20225
20226                 # consider threads found
20227                 ol_with_threads=found
20228
20229
20230         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20231 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20232 if test "${ol_cv_header_linux_threads+set}" = set; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235   cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h.  */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h.  */
20241 #include <pthread.h>
20242 _ACEOF
20243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20244   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20245   ol_cv_header_linux_threads=yes
20246 else
20247   ol_cv_header_linux_threads=no
20248 fi
20249 rm -f conftest*
20250
20251
20252 fi
20253 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20254 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20255         if test $ol_cv_header_linux_threads = yes; then
20256
20257 cat >>confdefs.h <<\_ACEOF
20258 #define HAVE_LINUX_THREADS 1
20259 _ACEOF
20260
20261         fi
20262
20263
20264         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20265 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20266 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269   cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 #include <pthread.h>
20276 #ifdef _POSIX_THREAD_IS_GNU_PTH
20277         __gnu_pth__;
20278 #endif
20279
20280 _ACEOF
20281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20282   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20283   ol_cv_header_gnu_pth_pthread_h=yes
20284 else
20285   ol_cv_header_gnu_pth_pthread_h=no
20286 fi
20287 rm -f conftest*
20288
20289
20290 fi
20291 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20292 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20293
20294
20295                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20296
20297 for ac_header in sched.h
20298 do
20299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 fi
20306 ac_res=`eval echo '${'$as_ac_Header'}'`
20307                { echo "$as_me:$LINENO: result: $ac_res" >&5
20308 echo "${ECHO_T}$ac_res" >&6; }
20309 else
20310   # Is the header compilable?
20311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319 $ac_includes_default
20320 #include <$ac_header>
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_compile") 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } && {
20336          test -z "$ac_c_werror_flag" ||
20337          test ! -s conftest.err
20338        } && test -s conftest.$ac_objext; then
20339   ac_header_compiler=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344         ac_header_compiler=no
20345 fi
20346
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20349 echo "${ECHO_T}$ac_header_compiler" >&6; }
20350
20351 # Is the header present?
20352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 #include <$ac_header>
20361 _ACEOF
20362 if { (ac_try="$ac_cpp conftest.$ac_ext"
20363 case "(($ac_try" in
20364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365   *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20369   ac_status=$?
20370   grep -v '^ *+' conftest.er1 >conftest.err
20371   rm -f conftest.er1
20372   cat conftest.err >&5
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } >/dev/null && {
20375          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20376          test ! -s conftest.err
20377        }; then
20378   ac_header_preproc=yes
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383   ac_header_preproc=no
20384 fi
20385
20386 rm -f conftest.err conftest.$ac_ext
20387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20388 echo "${ECHO_T}$ac_header_preproc" >&6; }
20389
20390 # So?  What about this header?
20391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20392   yes:no: )
20393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20397     ac_header_preproc=yes
20398     ;;
20399   no:yes:* )
20400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20412     ( cat <<\_ASBOX
20413 ## --------------------------------------------- ##
20414 ## Report this to <http://www.openldap.org/its/> ##
20415 ## --------------------------------------------- ##
20416 _ASBOX
20417      ) | sed "s/^/$as_me: WARNING:     /" >&2
20418     ;;
20419 esac
20420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425   eval "$as_ac_Header=\$ac_header_preproc"
20426 fi
20427 ac_res=`eval echo '${'$as_ac_Header'}'`
20428                { echo "$as_me:$LINENO: result: $ac_res" >&5
20429 echo "${ECHO_T}$ac_res" >&6; }
20430
20431 fi
20432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20433   cat >>confdefs.h <<_ACEOF
20434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20435 _ACEOF
20436
20437 fi
20438
20439 done
20440
20441                 fi
20442
20443
20444                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20445 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20446 if test "${ol_cv_pthread_create+set}" = set; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449
20450                         if test "$cross_compiling" = yes; then
20451   cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h.  */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h.  */
20457
20458 /* pthread test headers */
20459 #include <pthread.h>
20460 #if HAVE_PTHREADS < 7
20461 #include <errno.h>
20462 #endif
20463 #ifndef NULL
20464 #define NULL (void*)0
20465 #endif
20466
20467 static void *task(p)
20468         void *p;
20469 {
20470         return (void *) (p == NULL);
20471 }
20472
20473 int
20474 main ()
20475 {
20476
20477         /* pthread test function */
20478 #ifndef PTHREAD_CREATE_DETACHED
20479 #define PTHREAD_CREATE_DETACHED 1
20480 #endif
20481         pthread_t t;
20482         int status;
20483         int detach = PTHREAD_CREATE_DETACHED;
20484
20485 #if HAVE_PTHREADS > 4
20486         /* Final pthreads */
20487         pthread_attr_t attr;
20488
20489         status = pthread_attr_init(&attr);
20490         if( status ) return status;
20491
20492 #if HAVE_PTHREADS < 7
20493         status = pthread_attr_setdetachstate(&attr, &detach);
20494         if( status < 0 ) status = errno;
20495 #else
20496         status = pthread_attr_setdetachstate(&attr, detach);
20497 #endif
20498         if( status ) return status;
20499         status = pthread_create( &t, &attr, task, NULL );
20500 #if HAVE_PTHREADS < 7
20501         if( status < 0 ) status = errno;
20502 #endif
20503         if( status ) return status;
20504 #else
20505         /* Draft 4 pthreads */
20506         status = pthread_create( &t, pthread_attr_default, task, NULL );
20507         if( status ) return errno;
20508
20509         /* give thread a chance to complete */
20510         /* it should remain joinable and hence detachable */
20511         sleep( 1 );
20512
20513         status = pthread_detach( &t );
20514         if( status ) return errno;
20515 #endif
20516
20517 #ifdef HAVE_LINUX_THREADS
20518         pthread_kill_other_threads_np();
20519 #endif
20520
20521         return 0;
20522
20523   ;
20524   return 0;
20525 }
20526 _ACEOF
20527 rm -f conftest.$ac_objext conftest$ac_exeext
20528 if { (ac_try="$ac_link"
20529 case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_link") 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } && {
20541          test -z "$ac_c_werror_flag" ||
20542          test ! -s conftest.err
20543        } && test -s conftest$ac_exeext &&
20544        $as_test_x conftest$ac_exeext; then
20545   ol_cv_pthread_create=yes
20546 else
20547   echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550         ol_cv_pthread_create=no
20551 fi
20552
20553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20554       conftest$ac_exeext conftest.$ac_ext
20555 else
20556   cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562
20563 /* pthread test headers */
20564 #include <pthread.h>
20565 #if HAVE_PTHREADS < 7
20566 #include <errno.h>
20567 #endif
20568 #ifndef NULL
20569 #define NULL (void*)0
20570 #endif
20571
20572 static void *task(p)
20573         void *p;
20574 {
20575         return (void *) (p == NULL);
20576 }
20577
20578
20579 int main(argc, argv)
20580         int argc;
20581         char **argv;
20582 {
20583
20584         /* pthread test function */
20585 #ifndef PTHREAD_CREATE_DETACHED
20586 #define PTHREAD_CREATE_DETACHED 1
20587 #endif
20588         pthread_t t;
20589         int status;
20590         int detach = PTHREAD_CREATE_DETACHED;
20591
20592 #if HAVE_PTHREADS > 4
20593         /* Final pthreads */
20594         pthread_attr_t attr;
20595
20596         status = pthread_attr_init(&attr);
20597         if( status ) return status;
20598
20599 #if HAVE_PTHREADS < 7
20600         status = pthread_attr_setdetachstate(&attr, &detach);
20601         if( status < 0 ) status = errno;
20602 #else
20603         status = pthread_attr_setdetachstate(&attr, detach);
20604 #endif
20605         if( status ) return status;
20606         status = pthread_create( &t, &attr, task, NULL );
20607 #if HAVE_PTHREADS < 7
20608         if( status < 0 ) status = errno;
20609 #endif
20610         if( status ) return status;
20611 #else
20612         /* Draft 4 pthreads */
20613         status = pthread_create( &t, pthread_attr_default, task, NULL );
20614         if( status ) return errno;
20615
20616         /* give thread a chance to complete */
20617         /* it should remain joinable and hence detachable */
20618         sleep( 1 );
20619
20620         status = pthread_detach( &t );
20621         if( status ) return errno;
20622 #endif
20623
20624 #ifdef HAVE_LINUX_THREADS
20625         pthread_kill_other_threads_np();
20626 #endif
20627
20628         return 0;
20629
20630 }
20631
20632 _ACEOF
20633 rm -f conftest$ac_exeext
20634 if { (ac_try="$ac_link"
20635 case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_link") 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   ol_cv_pthread_create=yes
20654 else
20655   echo "$as_me: program exited with status $ac_status" >&5
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659 ( exit $ac_status )
20660 ol_cv_pthread_create=no
20661 fi
20662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20663 fi
20664
20665
20666 fi
20667 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20668 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20669
20670                 if test $ol_cv_pthread_create != no ; then
20671                         ol_link_threads=posix
20672                         ol_link_pthreads=""
20673                 fi
20674
20675                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20676 if test "$ol_link_threads" = no ; then
20677         # try -kthread
20678         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20679 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20680 if test "${ol_cv_pthread_kthread+set}" = set; then
20681   echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683
20684                 # save the flags
20685                 ol_LIBS="$LIBS"
20686                 LIBS="-kthread $LIBS"
20687
20688                 if test "$cross_compiling" = yes; then
20689   cat >conftest.$ac_ext <<_ACEOF
20690 /* confdefs.h.  */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h.  */
20695
20696 /* pthread test headers */
20697 #include <pthread.h>
20698 #if HAVE_PTHREADS < 7
20699 #include <errno.h>
20700 #endif
20701 #ifndef NULL
20702 #define NULL (void*)0
20703 #endif
20704
20705 static void *task(p)
20706         void *p;
20707 {
20708         return (void *) (p == NULL);
20709 }
20710
20711 int
20712 main ()
20713 {
20714
20715         /* pthread test function */
20716 #ifndef PTHREAD_CREATE_DETACHED
20717 #define PTHREAD_CREATE_DETACHED 1
20718 #endif
20719         pthread_t t;
20720         int status;
20721         int detach = PTHREAD_CREATE_DETACHED;
20722
20723 #if HAVE_PTHREADS > 4
20724         /* Final pthreads */
20725         pthread_attr_t attr;
20726
20727         status = pthread_attr_init(&attr);
20728         if( status ) return status;
20729
20730 #if HAVE_PTHREADS < 7
20731         status = pthread_attr_setdetachstate(&attr, &detach);
20732         if( status < 0 ) status = errno;
20733 #else
20734         status = pthread_attr_setdetachstate(&attr, detach);
20735 #endif
20736         if( status ) return status;
20737         status = pthread_create( &t, &attr, task, NULL );
20738 #if HAVE_PTHREADS < 7
20739         if( status < 0 ) status = errno;
20740 #endif
20741         if( status ) return status;
20742 #else
20743         /* Draft 4 pthreads */
20744         status = pthread_create( &t, pthread_attr_default, task, NULL );
20745         if( status ) return errno;
20746
20747         /* give thread a chance to complete */
20748         /* it should remain joinable and hence detachable */
20749         sleep( 1 );
20750
20751         status = pthread_detach( &t );
20752         if( status ) return errno;
20753 #endif
20754
20755 #ifdef HAVE_LINUX_THREADS
20756         pthread_kill_other_threads_np();
20757 #endif
20758
20759         return 0;
20760
20761   ;
20762   return 0;
20763 }
20764 _ACEOF
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772   (eval "$ac_link") 2>conftest.er1
20773   ac_status=$?
20774   grep -v '^ *+' conftest.er1 >conftest.err
20775   rm -f conftest.er1
20776   cat conftest.err >&5
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } && {
20779          test -z "$ac_c_werror_flag" ||
20780          test ! -s conftest.err
20781        } && test -s conftest$ac_exeext &&
20782        $as_test_x conftest$ac_exeext; then
20783   ol_cv_pthread_kthread=yes
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788         ol_cv_pthread_kthread=no
20789 fi
20790
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792       conftest$ac_exeext conftest.$ac_ext
20793 else
20794   cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800
20801 /* pthread test headers */
20802 #include <pthread.h>
20803 #if HAVE_PTHREADS < 7
20804 #include <errno.h>
20805 #endif
20806 #ifndef NULL
20807 #define NULL (void*)0
20808 #endif
20809
20810 static void *task(p)
20811         void *p;
20812 {
20813         return (void *) (p == NULL);
20814 }
20815
20816
20817 int main(argc, argv)
20818         int argc;
20819         char **argv;
20820 {
20821
20822         /* pthread test function */
20823 #ifndef PTHREAD_CREATE_DETACHED
20824 #define PTHREAD_CREATE_DETACHED 1
20825 #endif
20826         pthread_t t;
20827         int status;
20828         int detach = PTHREAD_CREATE_DETACHED;
20829
20830 #if HAVE_PTHREADS > 4
20831         /* Final pthreads */
20832         pthread_attr_t attr;
20833
20834         status = pthread_attr_init(&attr);
20835         if( status ) return status;
20836
20837 #if HAVE_PTHREADS < 7
20838         status = pthread_attr_setdetachstate(&attr, &detach);
20839         if( status < 0 ) status = errno;
20840 #else
20841         status = pthread_attr_setdetachstate(&attr, detach);
20842 #endif
20843         if( status ) return status;
20844         status = pthread_create( &t, &attr, task, NULL );
20845 #if HAVE_PTHREADS < 7
20846         if( status < 0 ) status = errno;
20847 #endif
20848         if( status ) return status;
20849 #else
20850         /* Draft 4 pthreads */
20851         status = pthread_create( &t, pthread_attr_default, task, NULL );
20852         if( status ) return errno;
20853
20854         /* give thread a chance to complete */
20855         /* it should remain joinable and hence detachable */
20856         sleep( 1 );
20857
20858         status = pthread_detach( &t );
20859         if( status ) return errno;
20860 #endif
20861
20862 #ifdef HAVE_LINUX_THREADS
20863         pthread_kill_other_threads_np();
20864 #endif
20865
20866         return 0;
20867
20868 }
20869
20870 _ACEOF
20871 rm -f conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_link") 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20882   { (case "(($ac_try" in
20883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884   *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887   (eval "$ac_try") 2>&5
20888   ac_status=$?
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); }; }; then
20891   ol_cv_pthread_kthread=yes
20892 else
20893   echo "$as_me: program exited with status $ac_status" >&5
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897 ( exit $ac_status )
20898 ol_cv_pthread_kthread=no
20899 fi
20900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20901 fi
20902
20903
20904
20905                 # restore the LIBS
20906                 LIBS="$ol_LIBS"
20907
20908 fi
20909 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20910 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20911
20912         if test $ol_cv_pthread_kthread = yes ; then
20913                 ol_link_pthreads="-kthread"
20914                 ol_link_threads=posix
20915         fi
20916 fi
20917
20918                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20919 if test "$ol_link_threads" = no ; then
20920         # try -pthread
20921         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20922 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20923 if test "${ol_cv_pthread_pthread+set}" = set; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926
20927                 # save the flags
20928                 ol_LIBS="$LIBS"
20929                 LIBS="-pthread $LIBS"
20930
20931                 if test "$cross_compiling" = yes; then
20932   cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938
20939 /* pthread test headers */
20940 #include <pthread.h>
20941 #if HAVE_PTHREADS < 7
20942 #include <errno.h>
20943 #endif
20944 #ifndef NULL
20945 #define NULL (void*)0
20946 #endif
20947
20948 static void *task(p)
20949         void *p;
20950 {
20951         return (void *) (p == NULL);
20952 }
20953
20954 int
20955 main ()
20956 {
20957
20958         /* pthread test function */
20959 #ifndef PTHREAD_CREATE_DETACHED
20960 #define PTHREAD_CREATE_DETACHED 1
20961 #endif
20962         pthread_t t;
20963         int status;
20964         int detach = PTHREAD_CREATE_DETACHED;
20965
20966 #if HAVE_PTHREADS > 4
20967         /* Final pthreads */
20968         pthread_attr_t attr;
20969
20970         status = pthread_attr_init(&attr);
20971         if( status ) return status;
20972
20973 #if HAVE_PTHREADS < 7
20974         status = pthread_attr_setdetachstate(&attr, &detach);
20975         if( status < 0 ) status = errno;
20976 #else
20977         status = pthread_attr_setdetachstate(&attr, detach);
20978 #endif
20979         if( status ) return status;
20980         status = pthread_create( &t, &attr, task, NULL );
20981 #if HAVE_PTHREADS < 7
20982         if( status < 0 ) status = errno;
20983 #endif
20984         if( status ) return status;
20985 #else
20986         /* Draft 4 pthreads */
20987         status = pthread_create( &t, pthread_attr_default, task, NULL );
20988         if( status ) return errno;
20989
20990         /* give thread a chance to complete */
20991         /* it should remain joinable and hence detachable */
20992         sleep( 1 );
20993
20994         status = pthread_detach( &t );
20995         if( status ) return errno;
20996 #endif
20997
20998 #ifdef HAVE_LINUX_THREADS
20999         pthread_kill_other_threads_np();
21000 #endif
21001
21002         return 0;
21003
21004   ;
21005   return 0;
21006 }
21007 _ACEOF
21008 rm -f conftest.$ac_objext conftest$ac_exeext
21009 if { (ac_try="$ac_link"
21010 case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_link") 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } && {
21022          test -z "$ac_c_werror_flag" ||
21023          test ! -s conftest.err
21024        } && test -s conftest$ac_exeext &&
21025        $as_test_x conftest$ac_exeext; then
21026   ol_cv_pthread_pthread=yes
21027 else
21028   echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031         ol_cv_pthread_pthread=no
21032 fi
21033
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035       conftest$ac_exeext conftest.$ac_ext
21036 else
21037   cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043
21044 /* pthread test headers */
21045 #include <pthread.h>
21046 #if HAVE_PTHREADS < 7
21047 #include <errno.h>
21048 #endif
21049 #ifndef NULL
21050 #define NULL (void*)0
21051 #endif
21052
21053 static void *task(p)
21054         void *p;
21055 {
21056         return (void *) (p == NULL);
21057 }
21058
21059
21060 int main(argc, argv)
21061         int argc;
21062         char **argv;
21063 {
21064
21065         /* pthread test function */
21066 #ifndef PTHREAD_CREATE_DETACHED
21067 #define PTHREAD_CREATE_DETACHED 1
21068 #endif
21069         pthread_t t;
21070         int status;
21071         int detach = PTHREAD_CREATE_DETACHED;
21072
21073 #if HAVE_PTHREADS > 4
21074         /* Final pthreads */
21075         pthread_attr_t attr;
21076
21077         status = pthread_attr_init(&attr);
21078         if( status ) return status;
21079
21080 #if HAVE_PTHREADS < 7
21081         status = pthread_attr_setdetachstate(&attr, &detach);
21082         if( status < 0 ) status = errno;
21083 #else
21084         status = pthread_attr_setdetachstate(&attr, detach);
21085 #endif
21086         if( status ) return status;
21087         status = pthread_create( &t, &attr, task, NULL );
21088 #if HAVE_PTHREADS < 7
21089         if( status < 0 ) status = errno;
21090 #endif
21091         if( status ) return status;
21092 #else
21093         /* Draft 4 pthreads */
21094         status = pthread_create( &t, pthread_attr_default, task, NULL );
21095         if( status ) return errno;
21096
21097         /* give thread a chance to complete */
21098         /* it should remain joinable and hence detachable */
21099         sleep( 1 );
21100
21101         status = pthread_detach( &t );
21102         if( status ) return errno;
21103 #endif
21104
21105 #ifdef HAVE_LINUX_THREADS
21106         pthread_kill_other_threads_np();
21107 #endif
21108
21109         return 0;
21110
21111 }
21112
21113 _ACEOF
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_link") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21125   { (case "(($ac_try" in
21126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127   *) ac_try_echo=$ac_try;;
21128 esac
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130   (eval "$ac_try") 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); }; }; then
21134   ol_cv_pthread_pthread=yes
21135 else
21136   echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 ( exit $ac_status )
21141 ol_cv_pthread_pthread=no
21142 fi
21143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21144 fi
21145
21146
21147
21148                 # restore the LIBS
21149                 LIBS="$ol_LIBS"
21150
21151 fi
21152 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21153 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21154
21155         if test $ol_cv_pthread_pthread = yes ; then
21156                 ol_link_pthreads="-pthread"
21157                 ol_link_threads=posix
21158         fi
21159 fi
21160
21161                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21162 if test "$ol_link_threads" = no ; then
21163         # try -pthreads
21164         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21165 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21166 if test "${ol_cv_pthread_pthreads+set}" = set; then
21167   echo $ECHO_N "(cached) $ECHO_C" >&6
21168 else
21169
21170                 # save the flags
21171                 ol_LIBS="$LIBS"
21172                 LIBS="-pthreads $LIBS"
21173
21174                 if test "$cross_compiling" = yes; then
21175   cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181
21182 /* pthread test headers */
21183 #include <pthread.h>
21184 #if HAVE_PTHREADS < 7
21185 #include <errno.h>
21186 #endif
21187 #ifndef NULL
21188 #define NULL (void*)0
21189 #endif
21190
21191 static void *task(p)
21192         void *p;
21193 {
21194         return (void *) (p == NULL);
21195 }
21196
21197 int
21198 main ()
21199 {
21200
21201         /* pthread test function */
21202 #ifndef PTHREAD_CREATE_DETACHED
21203 #define PTHREAD_CREATE_DETACHED 1
21204 #endif
21205         pthread_t t;
21206         int status;
21207         int detach = PTHREAD_CREATE_DETACHED;
21208
21209 #if HAVE_PTHREADS > 4
21210         /* Final pthreads */
21211         pthread_attr_t attr;
21212
21213         status = pthread_attr_init(&attr);
21214         if( status ) return status;
21215
21216 #if HAVE_PTHREADS < 7
21217         status = pthread_attr_setdetachstate(&attr, &detach);
21218         if( status < 0 ) status = errno;
21219 #else
21220         status = pthread_attr_setdetachstate(&attr, detach);
21221 #endif
21222         if( status ) return status;
21223         status = pthread_create( &t, &attr, task, NULL );
21224 #if HAVE_PTHREADS < 7
21225         if( status < 0 ) status = errno;
21226 #endif
21227         if( status ) return status;
21228 #else
21229         /* Draft 4 pthreads */
21230         status = pthread_create( &t, pthread_attr_default, task, NULL );
21231         if( status ) return errno;
21232
21233         /* give thread a chance to complete */
21234         /* it should remain joinable and hence detachable */
21235         sleep( 1 );
21236
21237         status = pthread_detach( &t );
21238         if( status ) return errno;
21239 #endif
21240
21241 #ifdef HAVE_LINUX_THREADS
21242         pthread_kill_other_threads_np();
21243 #endif
21244
21245         return 0;
21246
21247   ;
21248   return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258   (eval "$ac_link") 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && {
21265          test -z "$ac_c_werror_flag" ||
21266          test ! -s conftest.err
21267        } && test -s conftest$ac_exeext &&
21268        $as_test_x conftest$ac_exeext; then
21269   ol_cv_pthread_pthreads=yes
21270 else
21271   echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274         ol_cv_pthread_pthreads=no
21275 fi
21276
21277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21278       conftest$ac_exeext conftest.$ac_ext
21279 else
21280   cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h.  */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h.  */
21286
21287 /* pthread test headers */
21288 #include <pthread.h>
21289 #if HAVE_PTHREADS < 7
21290 #include <errno.h>
21291 #endif
21292 #ifndef NULL
21293 #define NULL (void*)0
21294 #endif
21295
21296 static void *task(p)
21297         void *p;
21298 {
21299         return (void *) (p == NULL);
21300 }
21301
21302
21303 int main(argc, argv)
21304         int argc;
21305         char **argv;
21306 {
21307
21308         /* pthread test function */
21309 #ifndef PTHREAD_CREATE_DETACHED
21310 #define PTHREAD_CREATE_DETACHED 1
21311 #endif
21312         pthread_t t;
21313         int status;
21314         int detach = PTHREAD_CREATE_DETACHED;
21315
21316 #if HAVE_PTHREADS > 4
21317         /* Final pthreads */
21318         pthread_attr_t attr;
21319
21320         status = pthread_attr_init(&attr);
21321         if( status ) return status;
21322
21323 #if HAVE_PTHREADS < 7
21324         status = pthread_attr_setdetachstate(&attr, &detach);
21325         if( status < 0 ) status = errno;
21326 #else
21327         status = pthread_attr_setdetachstate(&attr, detach);
21328 #endif
21329         if( status ) return status;
21330         status = pthread_create( &t, &attr, task, NULL );
21331 #if HAVE_PTHREADS < 7
21332         if( status < 0 ) status = errno;
21333 #endif
21334         if( status ) return status;
21335 #else
21336         /* Draft 4 pthreads */
21337         status = pthread_create( &t, pthread_attr_default, task, NULL );
21338         if( status ) return errno;
21339
21340         /* give thread a chance to complete */
21341         /* it should remain joinable and hence detachable */
21342         sleep( 1 );
21343
21344         status = pthread_detach( &t );
21345         if( status ) return errno;
21346 #endif
21347
21348 #ifdef HAVE_LINUX_THREADS
21349         pthread_kill_other_threads_np();
21350 #endif
21351
21352         return 0;
21353
21354 }
21355
21356 _ACEOF
21357 rm -f conftest$ac_exeext
21358 if { (ac_try="$ac_link"
21359 case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_link") 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21368   { (case "(($ac_try" in
21369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370   *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373   (eval "$ac_try") 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; }; then
21377   ol_cv_pthread_pthreads=yes
21378 else
21379   echo "$as_me: program exited with status $ac_status" >&5
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383 ( exit $ac_status )
21384 ol_cv_pthread_pthreads=no
21385 fi
21386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21387 fi
21388
21389
21390
21391                 # restore the LIBS
21392                 LIBS="$ol_LIBS"
21393
21394 fi
21395 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21396 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21397
21398         if test $ol_cv_pthread_pthreads = yes ; then
21399                 ol_link_pthreads="-pthreads"
21400                 ol_link_threads=posix
21401         fi
21402 fi
21403
21404                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21405 if test "$ol_link_threads" = no ; then
21406         # try -mthreads
21407         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21408 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21409 if test "${ol_cv_pthread_mthreads+set}" = set; then
21410   echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412
21413                 # save the flags
21414                 ol_LIBS="$LIBS"
21415                 LIBS="-mthreads $LIBS"
21416
21417                 if test "$cross_compiling" = yes; then
21418   cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424
21425 /* pthread test headers */
21426 #include <pthread.h>
21427 #if HAVE_PTHREADS < 7
21428 #include <errno.h>
21429 #endif
21430 #ifndef NULL
21431 #define NULL (void*)0
21432 #endif
21433
21434 static void *task(p)
21435         void *p;
21436 {
21437         return (void *) (p == NULL);
21438 }
21439
21440 int
21441 main ()
21442 {
21443
21444         /* pthread test function */
21445 #ifndef PTHREAD_CREATE_DETACHED
21446 #define PTHREAD_CREATE_DETACHED 1
21447 #endif
21448         pthread_t t;
21449         int status;
21450         int detach = PTHREAD_CREATE_DETACHED;
21451
21452 #if HAVE_PTHREADS > 4
21453         /* Final pthreads */
21454         pthread_attr_t attr;
21455
21456         status = pthread_attr_init(&attr);
21457         if( status ) return status;
21458
21459 #if HAVE_PTHREADS < 7
21460         status = pthread_attr_setdetachstate(&attr, &detach);
21461         if( status < 0 ) status = errno;
21462 #else
21463         status = pthread_attr_setdetachstate(&attr, detach);
21464 #endif
21465         if( status ) return status;
21466         status = pthread_create( &t, &attr, task, NULL );
21467 #if HAVE_PTHREADS < 7
21468         if( status < 0 ) status = errno;
21469 #endif
21470         if( status ) return status;
21471 #else
21472         /* Draft 4 pthreads */
21473         status = pthread_create( &t, pthread_attr_default, task, NULL );
21474         if( status ) return errno;
21475
21476         /* give thread a chance to complete */
21477         /* it should remain joinable and hence detachable */
21478         sleep( 1 );
21479
21480         status = pthread_detach( &t );
21481         if( status ) return errno;
21482 #endif
21483
21484 #ifdef HAVE_LINUX_THREADS
21485         pthread_kill_other_threads_np();
21486 #endif
21487
21488         return 0;
21489
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501   (eval "$ac_link") 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } && {
21508          test -z "$ac_c_werror_flag" ||
21509          test ! -s conftest.err
21510        } && test -s conftest$ac_exeext &&
21511        $as_test_x conftest$ac_exeext; then
21512   ol_cv_pthread_mthreads=yes
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517         ol_cv_pthread_mthreads=no
21518 fi
21519
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521       conftest$ac_exeext conftest.$ac_ext
21522 else
21523   cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h.  */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h.  */
21529
21530 /* pthread test headers */
21531 #include <pthread.h>
21532 #if HAVE_PTHREADS < 7
21533 #include <errno.h>
21534 #endif
21535 #ifndef NULL
21536 #define NULL (void*)0
21537 #endif
21538
21539 static void *task(p)
21540         void *p;
21541 {
21542         return (void *) (p == NULL);
21543 }
21544
21545
21546 int main(argc, argv)
21547         int argc;
21548         char **argv;
21549 {
21550
21551         /* pthread test function */
21552 #ifndef PTHREAD_CREATE_DETACHED
21553 #define PTHREAD_CREATE_DETACHED 1
21554 #endif
21555         pthread_t t;
21556         int status;
21557         int detach = PTHREAD_CREATE_DETACHED;
21558
21559 #if HAVE_PTHREADS > 4
21560         /* Final pthreads */
21561         pthread_attr_t attr;
21562
21563         status = pthread_attr_init(&attr);
21564         if( status ) return status;
21565
21566 #if HAVE_PTHREADS < 7
21567         status = pthread_attr_setdetachstate(&attr, &detach);
21568         if( status < 0 ) status = errno;
21569 #else
21570         status = pthread_attr_setdetachstate(&attr, detach);
21571 #endif
21572         if( status ) return status;
21573         status = pthread_create( &t, &attr, task, NULL );
21574 #if HAVE_PTHREADS < 7
21575         if( status < 0 ) status = errno;
21576 #endif
21577         if( status ) return status;
21578 #else
21579         /* Draft 4 pthreads */
21580         status = pthread_create( &t, pthread_attr_default, task, NULL );
21581         if( status ) return errno;
21582
21583         /* give thread a chance to complete */
21584         /* it should remain joinable and hence detachable */
21585         sleep( 1 );
21586
21587         status = pthread_detach( &t );
21588         if( status ) return errno;
21589 #endif
21590
21591 #ifdef HAVE_LINUX_THREADS
21592         pthread_kill_other_threads_np();
21593 #endif
21594
21595         return 0;
21596
21597 }
21598
21599 _ACEOF
21600 rm -f conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_link") 2>&5
21608   ac_status=$?
21609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21611   { (case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_try") 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; }; then
21620   ol_cv_pthread_mthreads=yes
21621 else
21622   echo "$as_me: program exited with status $ac_status" >&5
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626 ( exit $ac_status )
21627 ol_cv_pthread_mthreads=no
21628 fi
21629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21630 fi
21631
21632
21633
21634                 # restore the LIBS
21635                 LIBS="$ol_LIBS"
21636
21637 fi
21638 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21639 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21640
21641         if test $ol_cv_pthread_mthreads = yes ; then
21642                 ol_link_pthreads="-mthreads"
21643                 ol_link_threads=posix
21644         fi
21645 fi
21646
21647                 # Pthread try link: -thread (ol_cv_pthread_thread)
21648 if test "$ol_link_threads" = no ; then
21649         # try -thread
21650         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21651 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21652 if test "${ol_cv_pthread_thread+set}" = set; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655
21656                 # save the flags
21657                 ol_LIBS="$LIBS"
21658                 LIBS="-thread $LIBS"
21659
21660                 if test "$cross_compiling" = yes; then
21661   cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667
21668 /* pthread test headers */
21669 #include <pthread.h>
21670 #if HAVE_PTHREADS < 7
21671 #include <errno.h>
21672 #endif
21673 #ifndef NULL
21674 #define NULL (void*)0
21675 #endif
21676
21677 static void *task(p)
21678         void *p;
21679 {
21680         return (void *) (p == NULL);
21681 }
21682
21683 int
21684 main ()
21685 {
21686
21687         /* pthread test function */
21688 #ifndef PTHREAD_CREATE_DETACHED
21689 #define PTHREAD_CREATE_DETACHED 1
21690 #endif
21691         pthread_t t;
21692         int status;
21693         int detach = PTHREAD_CREATE_DETACHED;
21694
21695 #if HAVE_PTHREADS > 4
21696         /* Final pthreads */
21697         pthread_attr_t attr;
21698
21699         status = pthread_attr_init(&attr);
21700         if( status ) return status;
21701
21702 #if HAVE_PTHREADS < 7
21703         status = pthread_attr_setdetachstate(&attr, &detach);
21704         if( status < 0 ) status = errno;
21705 #else
21706         status = pthread_attr_setdetachstate(&attr, detach);
21707 #endif
21708         if( status ) return status;
21709         status = pthread_create( &t, &attr, task, NULL );
21710 #if HAVE_PTHREADS < 7
21711         if( status < 0 ) status = errno;
21712 #endif
21713         if( status ) return status;
21714 #else
21715         /* Draft 4 pthreads */
21716         status = pthread_create( &t, pthread_attr_default, task, NULL );
21717         if( status ) return errno;
21718
21719         /* give thread a chance to complete */
21720         /* it should remain joinable and hence detachable */
21721         sleep( 1 );
21722
21723         status = pthread_detach( &t );
21724         if( status ) return errno;
21725 #endif
21726
21727 #ifdef HAVE_LINUX_THREADS
21728         pthread_kill_other_threads_np();
21729 #endif
21730
21731         return 0;
21732
21733   ;
21734   return 0;
21735 }
21736 _ACEOF
21737 rm -f conftest.$ac_objext conftest$ac_exeext
21738 if { (ac_try="$ac_link"
21739 case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_link") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest$ac_exeext &&
21754        $as_test_x conftest$ac_exeext; then
21755   ol_cv_pthread_thread=yes
21756 else
21757   echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760         ol_cv_pthread_thread=no
21761 fi
21762
21763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21764       conftest$ac_exeext conftest.$ac_ext
21765 else
21766   cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772
21773 /* pthread test headers */
21774 #include <pthread.h>
21775 #if HAVE_PTHREADS < 7
21776 #include <errno.h>
21777 #endif
21778 #ifndef NULL
21779 #define NULL (void*)0
21780 #endif
21781
21782 static void *task(p)
21783         void *p;
21784 {
21785         return (void *) (p == NULL);
21786 }
21787
21788
21789 int main(argc, argv)
21790         int argc;
21791         char **argv;
21792 {
21793
21794         /* pthread test function */
21795 #ifndef PTHREAD_CREATE_DETACHED
21796 #define PTHREAD_CREATE_DETACHED 1
21797 #endif
21798         pthread_t t;
21799         int status;
21800         int detach = PTHREAD_CREATE_DETACHED;
21801
21802 #if HAVE_PTHREADS > 4
21803         /* Final pthreads */
21804         pthread_attr_t attr;
21805
21806         status = pthread_attr_init(&attr);
21807         if( status ) return status;
21808
21809 #if HAVE_PTHREADS < 7
21810         status = pthread_attr_setdetachstate(&attr, &detach);
21811         if( status < 0 ) status = errno;
21812 #else
21813         status = pthread_attr_setdetachstate(&attr, detach);
21814 #endif
21815         if( status ) return status;
21816         status = pthread_create( &t, &attr, task, NULL );
21817 #if HAVE_PTHREADS < 7
21818         if( status < 0 ) status = errno;
21819 #endif
21820         if( status ) return status;
21821 #else
21822         /* Draft 4 pthreads */
21823         status = pthread_create( &t, pthread_attr_default, task, NULL );
21824         if( status ) return errno;
21825
21826         /* give thread a chance to complete */
21827         /* it should remain joinable and hence detachable */
21828         sleep( 1 );
21829
21830         status = pthread_detach( &t );
21831         if( status ) return errno;
21832 #endif
21833
21834 #ifdef HAVE_LINUX_THREADS
21835         pthread_kill_other_threads_np();
21836 #endif
21837
21838         return 0;
21839
21840 }
21841
21842 _ACEOF
21843 rm -f conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847   *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850   (eval "$ac_link") 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21854   { (case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_try") 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; }; then
21863   ol_cv_pthread_thread=yes
21864 else
21865   echo "$as_me: program exited with status $ac_status" >&5
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21868
21869 ( exit $ac_status )
21870 ol_cv_pthread_thread=no
21871 fi
21872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21873 fi
21874
21875
21876
21877                 # restore the LIBS
21878                 LIBS="$ol_LIBS"
21879
21880 fi
21881 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21882 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21883
21884         if test $ol_cv_pthread_thread = yes ; then
21885                 ol_link_pthreads="-thread"
21886                 ol_link_threads=posix
21887         fi
21888 fi
21889
21890
21891                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21892 if test "$ol_link_threads" = no ; then
21893         # try -lpthread -lmach -lexc -lc_r
21894         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21895 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21896 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899
21900                 # save the flags
21901                 ol_LIBS="$LIBS"
21902                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21903
21904                 if test "$cross_compiling" = yes; then
21905   cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911
21912 /* pthread test headers */
21913 #include <pthread.h>
21914 #if HAVE_PTHREADS < 7
21915 #include <errno.h>
21916 #endif
21917 #ifndef NULL
21918 #define NULL (void*)0
21919 #endif
21920
21921 static void *task(p)
21922         void *p;
21923 {
21924         return (void *) (p == NULL);
21925 }
21926
21927 int
21928 main ()
21929 {
21930
21931         /* pthread test function */
21932 #ifndef PTHREAD_CREATE_DETACHED
21933 #define PTHREAD_CREATE_DETACHED 1
21934 #endif
21935         pthread_t t;
21936         int status;
21937         int detach = PTHREAD_CREATE_DETACHED;
21938
21939 #if HAVE_PTHREADS > 4
21940         /* Final pthreads */
21941         pthread_attr_t attr;
21942
21943         status = pthread_attr_init(&attr);
21944         if( status ) return status;
21945
21946 #if HAVE_PTHREADS < 7
21947         status = pthread_attr_setdetachstate(&attr, &detach);
21948         if( status < 0 ) status = errno;
21949 #else
21950         status = pthread_attr_setdetachstate(&attr, detach);
21951 #endif
21952         if( status ) return status;
21953         status = pthread_create( &t, &attr, task, NULL );
21954 #if HAVE_PTHREADS < 7
21955         if( status < 0 ) status = errno;
21956 #endif
21957         if( status ) return status;
21958 #else
21959         /* Draft 4 pthreads */
21960         status = pthread_create( &t, pthread_attr_default, task, NULL );
21961         if( status ) return errno;
21962
21963         /* give thread a chance to complete */
21964         /* it should remain joinable and hence detachable */
21965         sleep( 1 );
21966
21967         status = pthread_detach( &t );
21968         if( status ) return errno;
21969 #endif
21970
21971 #ifdef HAVE_LINUX_THREADS
21972         pthread_kill_other_threads_np();
21973 #endif
21974
21975         return 0;
21976
21977   ;
21978   return 0;
21979 }
21980 _ACEOF
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (ac_try="$ac_link"
21983 case "(($ac_try" in
21984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985   *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988   (eval "$ac_link") 2>conftest.er1
21989   ac_status=$?
21990   grep -v '^ *+' conftest.er1 >conftest.err
21991   rm -f conftest.er1
21992   cat conftest.err >&5
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } && {
21995          test -z "$ac_c_werror_flag" ||
21996          test ! -s conftest.err
21997        } && test -s conftest$ac_exeext &&
21998        $as_test_x conftest$ac_exeext; then
21999   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22000 else
22001   echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22003
22004         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22005 fi
22006
22007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22008       conftest$ac_exeext conftest.$ac_ext
22009 else
22010   cat >conftest.$ac_ext <<_ACEOF
22011 /* confdefs.h.  */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h.  */
22016
22017 /* pthread test headers */
22018 #include <pthread.h>
22019 #if HAVE_PTHREADS < 7
22020 #include <errno.h>
22021 #endif
22022 #ifndef NULL
22023 #define NULL (void*)0
22024 #endif
22025
22026 static void *task(p)
22027         void *p;
22028 {
22029         return (void *) (p == NULL);
22030 }
22031
22032
22033 int main(argc, argv)
22034         int argc;
22035         char **argv;
22036 {
22037
22038         /* pthread test function */
22039 #ifndef PTHREAD_CREATE_DETACHED
22040 #define PTHREAD_CREATE_DETACHED 1
22041 #endif
22042         pthread_t t;
22043         int status;
22044         int detach = PTHREAD_CREATE_DETACHED;
22045
22046 #if HAVE_PTHREADS > 4
22047         /* Final pthreads */
22048         pthread_attr_t attr;
22049
22050         status = pthread_attr_init(&attr);
22051         if( status ) return status;
22052
22053 #if HAVE_PTHREADS < 7
22054         status = pthread_attr_setdetachstate(&attr, &detach);
22055         if( status < 0 ) status = errno;
22056 #else
22057         status = pthread_attr_setdetachstate(&attr, detach);
22058 #endif
22059         if( status ) return status;
22060         status = pthread_create( &t, &attr, task, NULL );
22061 #if HAVE_PTHREADS < 7
22062         if( status < 0 ) status = errno;
22063 #endif
22064         if( status ) return status;
22065 #else
22066         /* Draft 4 pthreads */
22067         status = pthread_create( &t, pthread_attr_default, task, NULL );
22068         if( status ) return errno;
22069
22070         /* give thread a chance to complete */
22071         /* it should remain joinable and hence detachable */
22072         sleep( 1 );
22073
22074         status = pthread_detach( &t );
22075         if( status ) return errno;
22076 #endif
22077
22078 #ifdef HAVE_LINUX_THREADS
22079         pthread_kill_other_threads_np();
22080 #endif
22081
22082         return 0;
22083
22084 }
22085
22086 _ACEOF
22087 rm -f conftest$ac_exeext
22088 if { (ac_try="$ac_link"
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_link") 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22098   { (case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_try") 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); }; }; then
22107   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22108 else
22109   echo "$as_me: program exited with status $ac_status" >&5
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 ( exit $ac_status )
22114 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22115 fi
22116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22117 fi
22118
22119
22120
22121                 # restore the LIBS
22122                 LIBS="$ol_LIBS"
22123
22124 fi
22125 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22126 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22127
22128         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22129                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22130                 ol_link_threads=posix
22131         fi
22132 fi
22133
22134                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22135 if test "$ol_link_threads" = no ; then
22136         # try -lpthread -lmach -lexc
22137         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22138 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22139 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22140   echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22142
22143                 # save the flags
22144                 ol_LIBS="$LIBS"
22145                 LIBS="-lpthread -lmach -lexc $LIBS"
22146
22147                 if test "$cross_compiling" = yes; then
22148   cat >conftest.$ac_ext <<_ACEOF
22149 /* confdefs.h.  */
22150 _ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h.  */
22154
22155 /* pthread test headers */
22156 #include <pthread.h>
22157 #if HAVE_PTHREADS < 7
22158 #include <errno.h>
22159 #endif
22160 #ifndef NULL
22161 #define NULL (void*)0
22162 #endif
22163
22164 static void *task(p)
22165         void *p;
22166 {
22167         return (void *) (p == NULL);
22168 }
22169
22170 int
22171 main ()
22172 {
22173
22174         /* pthread test function */
22175 #ifndef PTHREAD_CREATE_DETACHED
22176 #define PTHREAD_CREATE_DETACHED 1
22177 #endif
22178         pthread_t t;
22179         int status;
22180         int detach = PTHREAD_CREATE_DETACHED;
22181
22182 #if HAVE_PTHREADS > 4
22183         /* Final pthreads */
22184         pthread_attr_t attr;
22185
22186         status = pthread_attr_init(&attr);
22187         if( status ) return status;
22188
22189 #if HAVE_PTHREADS < 7
22190         status = pthread_attr_setdetachstate(&attr, &detach);
22191         if( status < 0 ) status = errno;
22192 #else
22193         status = pthread_attr_setdetachstate(&attr, detach);
22194 #endif
22195         if( status ) return status;
22196         status = pthread_create( &t, &attr, task, NULL );
22197 #if HAVE_PTHREADS < 7
22198         if( status < 0 ) status = errno;
22199 #endif
22200         if( status ) return status;
22201 #else
22202         /* Draft 4 pthreads */
22203         status = pthread_create( &t, pthread_attr_default, task, NULL );
22204         if( status ) return errno;
22205
22206         /* give thread a chance to complete */
22207         /* it should remain joinable and hence detachable */
22208         sleep( 1 );
22209
22210         status = pthread_detach( &t );
22211         if( status ) return errno;
22212 #endif
22213
22214 #ifdef HAVE_LINUX_THREADS
22215         pthread_kill_other_threads_np();
22216 #endif
22217
22218         return 0;
22219
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228   *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231   (eval "$ac_link") 2>conftest.er1
22232   ac_status=$?
22233   grep -v '^ *+' conftest.er1 >conftest.err
22234   rm -f conftest.er1
22235   cat conftest.err >&5
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } && {
22238          test -z "$ac_c_werror_flag" ||
22239          test ! -s conftest.err
22240        } && test -s conftest$ac_exeext &&
22241        $as_test_x conftest$ac_exeext; then
22242   ol_cv_pthread_lpthread_lmach_lexc=yes
22243 else
22244   echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247         ol_cv_pthread_lpthread_lmach_lexc=no
22248 fi
22249
22250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22251       conftest$ac_exeext conftest.$ac_ext
22252 else
22253   cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259
22260 /* pthread test headers */
22261 #include <pthread.h>
22262 #if HAVE_PTHREADS < 7
22263 #include <errno.h>
22264 #endif
22265 #ifndef NULL
22266 #define NULL (void*)0
22267 #endif
22268
22269 static void *task(p)
22270         void *p;
22271 {
22272         return (void *) (p == NULL);
22273 }
22274
22275
22276 int main(argc, argv)
22277         int argc;
22278         char **argv;
22279 {
22280
22281         /* pthread test function */
22282 #ifndef PTHREAD_CREATE_DETACHED
22283 #define PTHREAD_CREATE_DETACHED 1
22284 #endif
22285         pthread_t t;
22286         int status;
22287         int detach = PTHREAD_CREATE_DETACHED;
22288
22289 #if HAVE_PTHREADS > 4
22290         /* Final pthreads */
22291         pthread_attr_t attr;
22292
22293         status = pthread_attr_init(&attr);
22294         if( status ) return status;
22295
22296 #if HAVE_PTHREADS < 7
22297         status = pthread_attr_setdetachstate(&attr, &detach);
22298         if( status < 0 ) status = errno;
22299 #else
22300         status = pthread_attr_setdetachstate(&attr, detach);
22301 #endif
22302         if( status ) return status;
22303         status = pthread_create( &t, &attr, task, NULL );
22304 #if HAVE_PTHREADS < 7
22305         if( status < 0 ) status = errno;
22306 #endif
22307         if( status ) return status;
22308 #else
22309         /* Draft 4 pthreads */
22310         status = pthread_create( &t, pthread_attr_default, task, NULL );
22311         if( status ) return errno;
22312
22313         /* give thread a chance to complete */
22314         /* it should remain joinable and hence detachable */
22315         sleep( 1 );
22316
22317         status = pthread_detach( &t );
22318         if( status ) return errno;
22319 #endif
22320
22321 #ifdef HAVE_LINUX_THREADS
22322         pthread_kill_other_threads_np();
22323 #endif
22324
22325         return 0;
22326
22327 }
22328
22329 _ACEOF
22330 rm -f conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334   *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337   (eval "$ac_link") 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22341   { (case "(($ac_try" in
22342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343   *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346   (eval "$ac_try") 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); }; }; then
22350   ol_cv_pthread_lpthread_lmach_lexc=yes
22351 else
22352   echo "$as_me: program exited with status $ac_status" >&5
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356 ( exit $ac_status )
22357 ol_cv_pthread_lpthread_lmach_lexc=no
22358 fi
22359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22360 fi
22361
22362
22363
22364                 # restore the LIBS
22365                 LIBS="$ol_LIBS"
22366
22367 fi
22368 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22369 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22370
22371         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22372                 ol_link_pthreads="-lpthread -lmach -lexc"
22373                 ol_link_threads=posix
22374         fi
22375 fi
22376
22377
22378                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22379 if test "$ol_link_threads" = no ; then
22380         # try -lpthread -Wl,-woff,85
22381         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22382 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22383 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22384   echo $ECHO_N "(cached) $ECHO_C" >&6
22385 else
22386
22387                 # save the flags
22388                 ol_LIBS="$LIBS"
22389                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22390
22391                 if test "$cross_compiling" = yes; then
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398
22399 /* pthread test headers */
22400 #include <pthread.h>
22401 #if HAVE_PTHREADS < 7
22402 #include <errno.h>
22403 #endif
22404 #ifndef NULL
22405 #define NULL (void*)0
22406 #endif
22407
22408 static void *task(p)
22409         void *p;
22410 {
22411         return (void *) (p == NULL);
22412 }
22413
22414 int
22415 main ()
22416 {
22417
22418         /* pthread test function */
22419 #ifndef PTHREAD_CREATE_DETACHED
22420 #define PTHREAD_CREATE_DETACHED 1
22421 #endif
22422         pthread_t t;
22423         int status;
22424         int detach = PTHREAD_CREATE_DETACHED;
22425
22426 #if HAVE_PTHREADS > 4
22427         /* Final pthreads */
22428         pthread_attr_t attr;
22429
22430         status = pthread_attr_init(&attr);
22431         if( status ) return status;
22432
22433 #if HAVE_PTHREADS < 7
22434         status = pthread_attr_setdetachstate(&attr, &detach);
22435         if( status < 0 ) status = errno;
22436 #else
22437         status = pthread_attr_setdetachstate(&attr, detach);
22438 #endif
22439         if( status ) return status;
22440         status = pthread_create( &t, &attr, task, NULL );
22441 #if HAVE_PTHREADS < 7
22442         if( status < 0 ) status = errno;
22443 #endif
22444         if( status ) return status;
22445 #else
22446         /* Draft 4 pthreads */
22447         status = pthread_create( &t, pthread_attr_default, task, NULL );
22448         if( status ) return errno;
22449
22450         /* give thread a chance to complete */
22451         /* it should remain joinable and hence detachable */
22452         sleep( 1 );
22453
22454         status = pthread_detach( &t );
22455         if( status ) return errno;
22456 #endif
22457
22458 #ifdef HAVE_LINUX_THREADS
22459         pthread_kill_other_threads_np();
22460 #endif
22461
22462         return 0;
22463
22464   ;
22465   return 0;
22466 }
22467 _ACEOF
22468 rm -f conftest.$ac_objext conftest$ac_exeext
22469 if { (ac_try="$ac_link"
22470 case "(($ac_try" in
22471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472   *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475   (eval "$ac_link") 2>conftest.er1
22476   ac_status=$?
22477   grep -v '^ *+' conftest.er1 >conftest.err
22478   rm -f conftest.er1
22479   cat conftest.err >&5
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); } && {
22482          test -z "$ac_c_werror_flag" ||
22483          test ! -s conftest.err
22484        } && test -s conftest$ac_exeext &&
22485        $as_test_x conftest$ac_exeext; then
22486   ol_cv_pthread_lib_lpthread_woff=yes
22487 else
22488   echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22490
22491         ol_cv_pthread_lib_lpthread_woff=no
22492 fi
22493
22494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22495       conftest$ac_exeext conftest.$ac_ext
22496 else
22497   cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503
22504 /* pthread test headers */
22505 #include <pthread.h>
22506 #if HAVE_PTHREADS < 7
22507 #include <errno.h>
22508 #endif
22509 #ifndef NULL
22510 #define NULL (void*)0
22511 #endif
22512
22513 static void *task(p)
22514         void *p;
22515 {
22516         return (void *) (p == NULL);
22517 }
22518
22519
22520 int main(argc, argv)
22521         int argc;
22522         char **argv;
22523 {
22524
22525         /* pthread test function */
22526 #ifndef PTHREAD_CREATE_DETACHED
22527 #define PTHREAD_CREATE_DETACHED 1
22528 #endif
22529         pthread_t t;
22530         int status;
22531         int detach = PTHREAD_CREATE_DETACHED;
22532
22533 #if HAVE_PTHREADS > 4
22534         /* Final pthreads */
22535         pthread_attr_t attr;
22536
22537         status = pthread_attr_init(&attr);
22538         if( status ) return status;
22539
22540 #if HAVE_PTHREADS < 7
22541         status = pthread_attr_setdetachstate(&attr, &detach);
22542         if( status < 0 ) status = errno;
22543 #else
22544         status = pthread_attr_setdetachstate(&attr, detach);
22545 #endif
22546         if( status ) return status;
22547         status = pthread_create( &t, &attr, task, NULL );
22548 #if HAVE_PTHREADS < 7
22549         if( status < 0 ) status = errno;
22550 #endif
22551         if( status ) return status;
22552 #else
22553         /* Draft 4 pthreads */
22554         status = pthread_create( &t, pthread_attr_default, task, NULL );
22555         if( status ) return errno;
22556
22557         /* give thread a chance to complete */
22558         /* it should remain joinable and hence detachable */
22559         sleep( 1 );
22560
22561         status = pthread_detach( &t );
22562         if( status ) return errno;
22563 #endif
22564
22565 #ifdef HAVE_LINUX_THREADS
22566         pthread_kill_other_threads_np();
22567 #endif
22568
22569         return 0;
22570
22571 }
22572
22573 _ACEOF
22574 rm -f conftest$ac_exeext
22575 if { (ac_try="$ac_link"
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_link") 2>&5
22582   ac_status=$?
22583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22585   { (case "(($ac_try" in
22586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587   *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590   (eval "$ac_try") 2>&5
22591   ac_status=$?
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); }; }; then
22594   ol_cv_pthread_lib_lpthread_woff=yes
22595 else
22596   echo "$as_me: program exited with status $ac_status" >&5
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22599
22600 ( exit $ac_status )
22601 ol_cv_pthread_lib_lpthread_woff=no
22602 fi
22603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22604 fi
22605
22606
22607
22608                 # restore the LIBS
22609                 LIBS="$ol_LIBS"
22610
22611 fi
22612 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22613 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22614
22615         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22616                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22617                 ol_link_threads=posix
22618         fi
22619 fi
22620
22621
22622                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22623 if test "$ol_link_threads" = no ; then
22624         # try -lpthread
22625         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22626 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22627 if test "${ol_cv_pthread_lpthread+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630
22631                 # save the flags
22632                 ol_LIBS="$LIBS"
22633                 LIBS="-lpthread $LIBS"
22634
22635                 if test "$cross_compiling" = yes; then
22636   cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h.  */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h.  */
22642
22643 /* pthread test headers */
22644 #include <pthread.h>
22645 #if HAVE_PTHREADS < 7
22646 #include <errno.h>
22647 #endif
22648 #ifndef NULL
22649 #define NULL (void*)0
22650 #endif
22651
22652 static void *task(p)
22653         void *p;
22654 {
22655         return (void *) (p == NULL);
22656 }
22657
22658 int
22659 main ()
22660 {
22661
22662         /* pthread test function */
22663 #ifndef PTHREAD_CREATE_DETACHED
22664 #define PTHREAD_CREATE_DETACHED 1
22665 #endif
22666         pthread_t t;
22667         int status;
22668         int detach = PTHREAD_CREATE_DETACHED;
22669
22670 #if HAVE_PTHREADS > 4
22671         /* Final pthreads */
22672         pthread_attr_t attr;
22673
22674         status = pthread_attr_init(&attr);
22675         if( status ) return status;
22676
22677 #if HAVE_PTHREADS < 7
22678         status = pthread_attr_setdetachstate(&attr, &detach);
22679         if( status < 0 ) status = errno;
22680 #else
22681         status = pthread_attr_setdetachstate(&attr, detach);
22682 #endif
22683         if( status ) return status;
22684         status = pthread_create( &t, &attr, task, NULL );
22685 #if HAVE_PTHREADS < 7
22686         if( status < 0 ) status = errno;
22687 #endif
22688         if( status ) return status;
22689 #else
22690         /* Draft 4 pthreads */
22691         status = pthread_create( &t, pthread_attr_default, task, NULL );
22692         if( status ) return errno;
22693
22694         /* give thread a chance to complete */
22695         /* it should remain joinable and hence detachable */
22696         sleep( 1 );
22697
22698         status = pthread_detach( &t );
22699         if( status ) return errno;
22700 #endif
22701
22702 #ifdef HAVE_LINUX_THREADS
22703         pthread_kill_other_threads_np();
22704 #endif
22705
22706         return 0;
22707
22708   ;
22709   return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (ac_try="$ac_link"
22714 case "(($ac_try" in
22715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716   *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719   (eval "$ac_link") 2>conftest.er1
22720   ac_status=$?
22721   grep -v '^ *+' conftest.er1 >conftest.err
22722   rm -f conftest.er1
22723   cat conftest.err >&5
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); } && {
22726          test -z "$ac_c_werror_flag" ||
22727          test ! -s conftest.err
22728        } && test -s conftest$ac_exeext &&
22729        $as_test_x conftest$ac_exeext; then
22730   ol_cv_pthread_lpthread=yes
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735         ol_cv_pthread_lpthread=no
22736 fi
22737
22738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739       conftest$ac_exeext conftest.$ac_ext
22740 else
22741   cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h.  */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h.  */
22747
22748 /* pthread test headers */
22749 #include <pthread.h>
22750 #if HAVE_PTHREADS < 7
22751 #include <errno.h>
22752 #endif
22753 #ifndef NULL
22754 #define NULL (void*)0
22755 #endif
22756
22757 static void *task(p)
22758         void *p;
22759 {
22760         return (void *) (p == NULL);
22761 }
22762
22763
22764 int main(argc, argv)
22765         int argc;
22766         char **argv;
22767 {
22768
22769         /* pthread test function */
22770 #ifndef PTHREAD_CREATE_DETACHED
22771 #define PTHREAD_CREATE_DETACHED 1
22772 #endif
22773         pthread_t t;
22774         int status;
22775         int detach = PTHREAD_CREATE_DETACHED;
22776
22777 #if HAVE_PTHREADS > 4
22778         /* Final pthreads */
22779         pthread_attr_t attr;
22780
22781         status = pthread_attr_init(&attr);
22782         if( status ) return status;
22783
22784 #if HAVE_PTHREADS < 7
22785         status = pthread_attr_setdetachstate(&attr, &detach);
22786         if( status < 0 ) status = errno;
22787 #else
22788         status = pthread_attr_setdetachstate(&attr, detach);
22789 #endif
22790         if( status ) return status;
22791         status = pthread_create( &t, &attr, task, NULL );
22792 #if HAVE_PTHREADS < 7
22793         if( status < 0 ) status = errno;
22794 #endif
22795         if( status ) return status;
22796 #else
22797         /* Draft 4 pthreads */
22798         status = pthread_create( &t, pthread_attr_default, task, NULL );
22799         if( status ) return errno;
22800
22801         /* give thread a chance to complete */
22802         /* it should remain joinable and hence detachable */
22803         sleep( 1 );
22804
22805         status = pthread_detach( &t );
22806         if( status ) return errno;
22807 #endif
22808
22809 #ifdef HAVE_LINUX_THREADS
22810         pthread_kill_other_threads_np();
22811 #endif
22812
22813         return 0;
22814
22815 }
22816
22817 _ACEOF
22818 rm -f conftest$ac_exeext
22819 if { (ac_try="$ac_link"
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_link") 2>&5
22826   ac_status=$?
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22829   { (case "(($ac_try" in
22830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831   *) ac_try_echo=$ac_try;;
22832 esac
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834   (eval "$ac_try") 2>&5
22835   ac_status=$?
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); }; }; then
22838   ol_cv_pthread_lpthread=yes
22839 else
22840   echo "$as_me: program exited with status $ac_status" >&5
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844 ( exit $ac_status )
22845 ol_cv_pthread_lpthread=no
22846 fi
22847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22848 fi
22849
22850
22851
22852                 # restore the LIBS
22853                 LIBS="$ol_LIBS"
22854
22855 fi
22856 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22857 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22858
22859         if test $ol_cv_pthread_lpthread = yes ; then
22860                 ol_link_pthreads="-lpthread"
22861                 ol_link_threads=posix
22862         fi
22863 fi
22864
22865                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22866 if test "$ol_link_threads" = no ; then
22867         # try -lc_r
22868         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22869 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22870 if test "${ol_cv_pthread_lc_r+set}" = set; then
22871   echo $ECHO_N "(cached) $ECHO_C" >&6
22872 else
22873
22874                 # save the flags
22875                 ol_LIBS="$LIBS"
22876                 LIBS="-lc_r $LIBS"
22877
22878                 if test "$cross_compiling" = yes; then
22879   cat >conftest.$ac_ext <<_ACEOF
22880 /* confdefs.h.  */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h.  */
22885
22886 /* pthread test headers */
22887 #include <pthread.h>
22888 #if HAVE_PTHREADS < 7
22889 #include <errno.h>
22890 #endif
22891 #ifndef NULL
22892 #define NULL (void*)0
22893 #endif
22894
22895 static void *task(p)
22896         void *p;
22897 {
22898         return (void *) (p == NULL);
22899 }
22900
22901 int
22902 main ()
22903 {
22904
22905         /* pthread test function */
22906 #ifndef PTHREAD_CREATE_DETACHED
22907 #define PTHREAD_CREATE_DETACHED 1
22908 #endif
22909         pthread_t t;
22910         int status;
22911         int detach = PTHREAD_CREATE_DETACHED;
22912
22913 #if HAVE_PTHREADS > 4
22914         /* Final pthreads */
22915         pthread_attr_t attr;
22916
22917         status = pthread_attr_init(&attr);
22918         if( status ) return status;
22919
22920 #if HAVE_PTHREADS < 7
22921         status = pthread_attr_setdetachstate(&attr, &detach);
22922         if( status < 0 ) status = errno;
22923 #else
22924         status = pthread_attr_setdetachstate(&attr, detach);
22925 #endif
22926         if( status ) return status;
22927         status = pthread_create( &t, &attr, task, NULL );
22928 #if HAVE_PTHREADS < 7
22929         if( status < 0 ) status = errno;
22930 #endif
22931         if( status ) return status;
22932 #else
22933         /* Draft 4 pthreads */
22934         status = pthread_create( &t, pthread_attr_default, task, NULL );
22935         if( status ) return errno;
22936
22937         /* give thread a chance to complete */
22938         /* it should remain joinable and hence detachable */
22939         sleep( 1 );
22940
22941         status = pthread_detach( &t );
22942         if( status ) return errno;
22943 #endif
22944
22945 #ifdef HAVE_LINUX_THREADS
22946         pthread_kill_other_threads_np();
22947 #endif
22948
22949         return 0;
22950
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 rm -f conftest.$ac_objext conftest$ac_exeext
22956 if { (ac_try="$ac_link"
22957 case "(($ac_try" in
22958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959   *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962   (eval "$ac_link") 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && {
22969          test -z "$ac_c_werror_flag" ||
22970          test ! -s conftest.err
22971        } && test -s conftest$ac_exeext &&
22972        $as_test_x conftest$ac_exeext; then
22973   ol_cv_pthread_lc_r=yes
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978         ol_cv_pthread_lc_r=no
22979 fi
22980
22981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22982       conftest$ac_exeext conftest.$ac_ext
22983 else
22984   cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990
22991 /* pthread test headers */
22992 #include <pthread.h>
22993 #if HAVE_PTHREADS < 7
22994 #include <errno.h>
22995 #endif
22996 #ifndef NULL
22997 #define NULL (void*)0
22998 #endif
22999
23000 static void *task(p)
23001         void *p;
23002 {
23003         return (void *) (p == NULL);
23004 }
23005
23006
23007 int main(argc, argv)
23008         int argc;
23009         char **argv;
23010 {
23011
23012         /* pthread test function */
23013 #ifndef PTHREAD_CREATE_DETACHED
23014 #define PTHREAD_CREATE_DETACHED 1
23015 #endif
23016         pthread_t t;
23017         int status;
23018         int detach = PTHREAD_CREATE_DETACHED;
23019
23020 #if HAVE_PTHREADS > 4
23021         /* Final pthreads */
23022         pthread_attr_t attr;
23023
23024         status = pthread_attr_init(&attr);
23025         if( status ) return status;
23026
23027 #if HAVE_PTHREADS < 7
23028         status = pthread_attr_setdetachstate(&attr, &detach);
23029         if( status < 0 ) status = errno;
23030 #else
23031         status = pthread_attr_setdetachstate(&attr, detach);
23032 #endif
23033         if( status ) return status;
23034         status = pthread_create( &t, &attr, task, NULL );
23035 #if HAVE_PTHREADS < 7
23036         if( status < 0 ) status = errno;
23037 #endif
23038         if( status ) return status;
23039 #else
23040         /* Draft 4 pthreads */
23041         status = pthread_create( &t, pthread_attr_default, task, NULL );
23042         if( status ) return errno;
23043
23044         /* give thread a chance to complete */
23045         /* it should remain joinable and hence detachable */
23046         sleep( 1 );
23047
23048         status = pthread_detach( &t );
23049         if( status ) return errno;
23050 #endif
23051
23052 #ifdef HAVE_LINUX_THREADS
23053         pthread_kill_other_threads_np();
23054 #endif
23055
23056         return 0;
23057
23058 }
23059
23060 _ACEOF
23061 rm -f conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_link") 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23072   { (case "(($ac_try" in
23073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074   *) ac_try_echo=$ac_try;;
23075 esac
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077   (eval "$ac_try") 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   ol_cv_pthread_lc_r=yes
23082 else
23083   echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087 ( exit $ac_status )
23088 ol_cv_pthread_lc_r=no
23089 fi
23090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23091 fi
23092
23093
23094
23095                 # restore the LIBS
23096                 LIBS="$ol_LIBS"
23097
23098 fi
23099 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23100 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23101
23102         if test $ol_cv_pthread_lc_r = yes ; then
23103                 ol_link_pthreads="-lc_r"
23104                 ol_link_threads=posix
23105         fi
23106 fi
23107
23108
23109                 # Pthread try link: -threads (ol_cv_pthread_threads)
23110 if test "$ol_link_threads" = no ; then
23111         # try -threads
23112         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23113 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23114 if test "${ol_cv_pthread_threads+set}" = set; then
23115   echo $ECHO_N "(cached) $ECHO_C" >&6
23116 else
23117
23118                 # save the flags
23119                 ol_LIBS="$LIBS"
23120                 LIBS="-threads $LIBS"
23121
23122                 if test "$cross_compiling" = yes; then
23123   cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129
23130 /* pthread test headers */
23131 #include <pthread.h>
23132 #if HAVE_PTHREADS < 7
23133 #include <errno.h>
23134 #endif
23135 #ifndef NULL
23136 #define NULL (void*)0
23137 #endif
23138
23139 static void *task(p)
23140         void *p;
23141 {
23142         return (void *) (p == NULL);
23143 }
23144
23145 int
23146 main ()
23147 {
23148
23149         /* pthread test function */
23150 #ifndef PTHREAD_CREATE_DETACHED
23151 #define PTHREAD_CREATE_DETACHED 1
23152 #endif
23153         pthread_t t;
23154         int status;
23155         int detach = PTHREAD_CREATE_DETACHED;
23156
23157 #if HAVE_PTHREADS > 4
23158         /* Final pthreads */
23159         pthread_attr_t attr;
23160
23161         status = pthread_attr_init(&attr);
23162         if( status ) return status;
23163
23164 #if HAVE_PTHREADS < 7
23165         status = pthread_attr_setdetachstate(&attr, &detach);
23166         if( status < 0 ) status = errno;
23167 #else
23168         status = pthread_attr_setdetachstate(&attr, detach);
23169 #endif
23170         if( status ) return status;
23171         status = pthread_create( &t, &attr, task, NULL );
23172 #if HAVE_PTHREADS < 7
23173         if( status < 0 ) status = errno;
23174 #endif
23175         if( status ) return status;
23176 #else
23177         /* Draft 4 pthreads */
23178         status = pthread_create( &t, pthread_attr_default, task, NULL );
23179         if( status ) return errno;
23180
23181         /* give thread a chance to complete */
23182         /* it should remain joinable and hence detachable */
23183         sleep( 1 );
23184
23185         status = pthread_detach( &t );
23186         if( status ) return errno;
23187 #endif
23188
23189 #ifdef HAVE_LINUX_THREADS
23190         pthread_kill_other_threads_np();
23191 #endif
23192
23193         return 0;
23194
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203   *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206   (eval "$ac_link") 2>conftest.er1
23207   ac_status=$?
23208   grep -v '^ *+' conftest.er1 >conftest.err
23209   rm -f conftest.er1
23210   cat conftest.err >&5
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); } && {
23213          test -z "$ac_c_werror_flag" ||
23214          test ! -s conftest.err
23215        } && test -s conftest$ac_exeext &&
23216        $as_test_x conftest$ac_exeext; then
23217   ol_cv_pthread_threads=yes
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222         ol_cv_pthread_threads=no
23223 fi
23224
23225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23226       conftest$ac_exeext conftest.$ac_ext
23227 else
23228   cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h.  */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h.  */
23234
23235 /* pthread test headers */
23236 #include <pthread.h>
23237 #if HAVE_PTHREADS < 7
23238 #include <errno.h>
23239 #endif
23240 #ifndef NULL
23241 #define NULL (void*)0
23242 #endif
23243
23244 static void *task(p)
23245         void *p;
23246 {
23247         return (void *) (p == NULL);
23248 }
23249
23250
23251 int main(argc, argv)
23252         int argc;
23253         char **argv;
23254 {
23255
23256         /* pthread test function */
23257 #ifndef PTHREAD_CREATE_DETACHED
23258 #define PTHREAD_CREATE_DETACHED 1
23259 #endif
23260         pthread_t t;
23261         int status;
23262         int detach = PTHREAD_CREATE_DETACHED;
23263
23264 #if HAVE_PTHREADS > 4
23265         /* Final pthreads */
23266         pthread_attr_t attr;
23267
23268         status = pthread_attr_init(&attr);
23269         if( status ) return status;
23270
23271 #if HAVE_PTHREADS < 7
23272         status = pthread_attr_setdetachstate(&attr, &detach);
23273         if( status < 0 ) status = errno;
23274 #else
23275         status = pthread_attr_setdetachstate(&attr, detach);
23276 #endif
23277         if( status ) return status;
23278         status = pthread_create( &t, &attr, task, NULL );
23279 #if HAVE_PTHREADS < 7
23280         if( status < 0 ) status = errno;
23281 #endif
23282         if( status ) return status;
23283 #else
23284         /* Draft 4 pthreads */
23285         status = pthread_create( &t, pthread_attr_default, task, NULL );
23286         if( status ) return errno;
23287
23288         /* give thread a chance to complete */
23289         /* it should remain joinable and hence detachable */
23290         sleep( 1 );
23291
23292         status = pthread_detach( &t );
23293         if( status ) return errno;
23294 #endif
23295
23296 #ifdef HAVE_LINUX_THREADS
23297         pthread_kill_other_threads_np();
23298 #endif
23299
23300         return 0;
23301
23302 }
23303
23304 _ACEOF
23305 rm -f conftest$ac_exeext
23306 if { (ac_try="$ac_link"
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_link") 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316   { (case "(($ac_try" in
23317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318   *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321   (eval "$ac_try") 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; }; then
23325   ol_cv_pthread_threads=yes
23326 else
23327   echo "$as_me: program exited with status $ac_status" >&5
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 ( exit $ac_status )
23332 ol_cv_pthread_threads=no
23333 fi
23334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23335 fi
23336
23337
23338
23339                 # restore the LIBS
23340                 LIBS="$ol_LIBS"
23341
23342 fi
23343 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23344 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23345
23346         if test $ol_cv_pthread_threads = yes ; then
23347                 ol_link_pthreads="-threads"
23348                 ol_link_threads=posix
23349         fi
23350 fi
23351
23352
23353                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23354 if test "$ol_link_threads" = no ; then
23355         # try -lpthreads -lmach -lexc -lc_r
23356         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23357 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23358 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361
23362                 # save the flags
23363                 ol_LIBS="$LIBS"
23364                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23365
23366                 if test "$cross_compiling" = yes; then
23367   cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h.  */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h.  */
23373
23374 /* pthread test headers */
23375 #include <pthread.h>
23376 #if HAVE_PTHREADS < 7
23377 #include <errno.h>
23378 #endif
23379 #ifndef NULL
23380 #define NULL (void*)0
23381 #endif
23382
23383 static void *task(p)
23384         void *p;
23385 {
23386         return (void *) (p == NULL);
23387 }
23388
23389 int
23390 main ()
23391 {
23392
23393         /* pthread test function */
23394 #ifndef PTHREAD_CREATE_DETACHED
23395 #define PTHREAD_CREATE_DETACHED 1
23396 #endif
23397         pthread_t t;
23398         int status;
23399         int detach = PTHREAD_CREATE_DETACHED;
23400
23401 #if HAVE_PTHREADS > 4
23402         /* Final pthreads */
23403         pthread_attr_t attr;
23404
23405         status = pthread_attr_init(&attr);
23406         if( status ) return status;
23407
23408 #if HAVE_PTHREADS < 7
23409         status = pthread_attr_setdetachstate(&attr, &detach);
23410         if( status < 0 ) status = errno;
23411 #else
23412         status = pthread_attr_setdetachstate(&attr, detach);
23413 #endif
23414         if( status ) return status;
23415         status = pthread_create( &t, &attr, task, NULL );
23416 #if HAVE_PTHREADS < 7
23417         if( status < 0 ) status = errno;
23418 #endif
23419         if( status ) return status;
23420 #else
23421         /* Draft 4 pthreads */
23422         status = pthread_create( &t, pthread_attr_default, task, NULL );
23423         if( status ) return errno;
23424
23425         /* give thread a chance to complete */
23426         /* it should remain joinable and hence detachable */
23427         sleep( 1 );
23428
23429         status = pthread_detach( &t );
23430         if( status ) return errno;
23431 #endif
23432
23433 #ifdef HAVE_LINUX_THREADS
23434         pthread_kill_other_threads_np();
23435 #endif
23436
23437         return 0;
23438
23439   ;
23440   return 0;
23441 }
23442 _ACEOF
23443 rm -f conftest.$ac_objext conftest$ac_exeext
23444 if { (ac_try="$ac_link"
23445 case "(($ac_try" in
23446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447   *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450   (eval "$ac_link") 2>conftest.er1
23451   ac_status=$?
23452   grep -v '^ *+' conftest.er1 >conftest.err
23453   rm -f conftest.er1
23454   cat conftest.err >&5
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); } && {
23457          test -z "$ac_c_werror_flag" ||
23458          test ! -s conftest.err
23459        } && test -s conftest$ac_exeext &&
23460        $as_test_x conftest$ac_exeext; then
23461   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23467 fi
23468
23469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470       conftest$ac_exeext conftest.$ac_ext
23471 else
23472   cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h.  */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h.  */
23478
23479 /* pthread test headers */
23480 #include <pthread.h>
23481 #if HAVE_PTHREADS < 7
23482 #include <errno.h>
23483 #endif
23484 #ifndef NULL
23485 #define NULL (void*)0
23486 #endif
23487
23488 static void *task(p)
23489         void *p;
23490 {
23491         return (void *) (p == NULL);
23492 }
23493
23494
23495 int main(argc, argv)
23496         int argc;
23497         char **argv;
23498 {
23499
23500         /* pthread test function */
23501 #ifndef PTHREAD_CREATE_DETACHED
23502 #define PTHREAD_CREATE_DETACHED 1
23503 #endif
23504         pthread_t t;
23505         int status;
23506         int detach = PTHREAD_CREATE_DETACHED;
23507
23508 #if HAVE_PTHREADS > 4
23509         /* Final pthreads */
23510         pthread_attr_t attr;
23511
23512         status = pthread_attr_init(&attr);
23513         if( status ) return status;
23514
23515 #if HAVE_PTHREADS < 7
23516         status = pthread_attr_setdetachstate(&attr, &detach);
23517         if( status < 0 ) status = errno;
23518 #else
23519         status = pthread_attr_setdetachstate(&attr, detach);
23520 #endif
23521         if( status ) return status;
23522         status = pthread_create( &t, &attr, task, NULL );
23523 #if HAVE_PTHREADS < 7
23524         if( status < 0 ) status = errno;
23525 #endif
23526         if( status ) return status;
23527 #else
23528         /* Draft 4 pthreads */
23529         status = pthread_create( &t, pthread_attr_default, task, NULL );
23530         if( status ) return errno;
23531
23532         /* give thread a chance to complete */
23533         /* it should remain joinable and hence detachable */
23534         sleep( 1 );
23535
23536         status = pthread_detach( &t );
23537         if( status ) return errno;
23538 #endif
23539
23540 #ifdef HAVE_LINUX_THREADS
23541         pthread_kill_other_threads_np();
23542 #endif
23543
23544         return 0;
23545
23546 }
23547
23548 _ACEOF
23549 rm -f conftest$ac_exeext
23550 if { (ac_try="$ac_link"
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_link") 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23560   { (case "(($ac_try" in
23561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562   *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565   (eval "$ac_try") 2>&5
23566   ac_status=$?
23567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568   (exit $ac_status); }; }; then
23569   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23570 else
23571   echo "$as_me: program exited with status $ac_status" >&5
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23574
23575 ( exit $ac_status )
23576 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23577 fi
23578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23579 fi
23580
23581
23582
23583                 # restore the LIBS
23584                 LIBS="$ol_LIBS"
23585
23586 fi
23587 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23588 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23589
23590         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23591                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23592                 ol_link_threads=posix
23593         fi
23594 fi
23595
23596                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23597 if test "$ol_link_threads" = no ; then
23598         # try -lpthreads -lmach -lexc
23599         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23600 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23601 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23602   echo $ECHO_N "(cached) $ECHO_C" >&6
23603 else
23604
23605                 # save the flags
23606                 ol_LIBS="$LIBS"
23607                 LIBS="-lpthreads -lmach -lexc $LIBS"
23608
23609                 if test "$cross_compiling" = yes; then
23610   cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616
23617 /* pthread test headers */
23618 #include <pthread.h>
23619 #if HAVE_PTHREADS < 7
23620 #include <errno.h>
23621 #endif
23622 #ifndef NULL
23623 #define NULL (void*)0
23624 #endif
23625
23626 static void *task(p)
23627         void *p;
23628 {
23629         return (void *) (p == NULL);
23630 }
23631
23632 int
23633 main ()
23634 {
23635
23636         /* pthread test function */
23637 #ifndef PTHREAD_CREATE_DETACHED
23638 #define PTHREAD_CREATE_DETACHED 1
23639 #endif
23640         pthread_t t;
23641         int status;
23642         int detach = PTHREAD_CREATE_DETACHED;
23643
23644 #if HAVE_PTHREADS > 4
23645         /* Final pthreads */
23646         pthread_attr_t attr;
23647
23648         status = pthread_attr_init(&attr);
23649         if( status ) return status;
23650
23651 #if HAVE_PTHREADS < 7
23652         status = pthread_attr_setdetachstate(&attr, &detach);
23653         if( status < 0 ) status = errno;
23654 #else
23655         status = pthread_attr_setdetachstate(&attr, detach);
23656 #endif
23657         if( status ) return status;
23658         status = pthread_create( &t, &attr, task, NULL );
23659 #if HAVE_PTHREADS < 7
23660         if( status < 0 ) status = errno;
23661 #endif
23662         if( status ) return status;
23663 #else
23664         /* Draft 4 pthreads */
23665         status = pthread_create( &t, pthread_attr_default, task, NULL );
23666         if( status ) return errno;
23667
23668         /* give thread a chance to complete */
23669         /* it should remain joinable and hence detachable */
23670         sleep( 1 );
23671
23672         status = pthread_detach( &t );
23673         if( status ) return errno;
23674 #endif
23675
23676 #ifdef HAVE_LINUX_THREADS
23677         pthread_kill_other_threads_np();
23678 #endif
23679
23680         return 0;
23681
23682   ;
23683   return 0;
23684 }
23685 _ACEOF
23686 rm -f conftest.$ac_objext conftest$ac_exeext
23687 if { (ac_try="$ac_link"
23688 case "(($ac_try" in
23689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690   *) ac_try_echo=$ac_try;;
23691 esac
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693   (eval "$ac_link") 2>conftest.er1
23694   ac_status=$?
23695   grep -v '^ *+' conftest.er1 >conftest.err
23696   rm -f conftest.er1
23697   cat conftest.err >&5
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); } && {
23700          test -z "$ac_c_werror_flag" ||
23701          test ! -s conftest.err
23702        } && test -s conftest$ac_exeext &&
23703        $as_test_x conftest$ac_exeext; then
23704   ol_cv_pthread_lpthreads_lmach_lexc=yes
23705 else
23706   echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709         ol_cv_pthread_lpthreads_lmach_lexc=no
23710 fi
23711
23712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23713       conftest$ac_exeext conftest.$ac_ext
23714 else
23715   cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h.  */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h.  */
23721
23722 /* pthread test headers */
23723 #include <pthread.h>
23724 #if HAVE_PTHREADS < 7
23725 #include <errno.h>
23726 #endif
23727 #ifndef NULL
23728 #define NULL (void*)0
23729 #endif
23730
23731 static void *task(p)
23732         void *p;
23733 {
23734         return (void *) (p == NULL);
23735 }
23736
23737
23738 int main(argc, argv)
23739         int argc;
23740         char **argv;
23741 {
23742
23743         /* pthread test function */
23744 #ifndef PTHREAD_CREATE_DETACHED
23745 #define PTHREAD_CREATE_DETACHED 1
23746 #endif
23747         pthread_t t;
23748         int status;
23749         int detach = PTHREAD_CREATE_DETACHED;
23750
23751 #if HAVE_PTHREADS > 4
23752         /* Final pthreads */
23753         pthread_attr_t attr;
23754
23755         status = pthread_attr_init(&attr);
23756         if( status ) return status;
23757
23758 #if HAVE_PTHREADS < 7
23759         status = pthread_attr_setdetachstate(&attr, &detach);
23760         if( status < 0 ) status = errno;
23761 #else
23762         status = pthread_attr_setdetachstate(&attr, detach);
23763 #endif
23764         if( status ) return status;
23765         status = pthread_create( &t, &attr, task, NULL );
23766 #if HAVE_PTHREADS < 7
23767         if( status < 0 ) status = errno;
23768 #endif
23769         if( status ) return status;
23770 #else
23771         /* Draft 4 pthreads */
23772         status = pthread_create( &t, pthread_attr_default, task, NULL );
23773         if( status ) return errno;
23774
23775         /* give thread a chance to complete */
23776         /* it should remain joinable and hence detachable */
23777         sleep( 1 );
23778
23779         status = pthread_detach( &t );
23780         if( status ) return errno;
23781 #endif
23782
23783 #ifdef HAVE_LINUX_THREADS
23784         pthread_kill_other_threads_np();
23785 #endif
23786
23787         return 0;
23788
23789 }
23790
23791 _ACEOF
23792 rm -f conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799   (eval "$ac_link") 2>&5
23800   ac_status=$?
23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23803   { (case "(($ac_try" in
23804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805   *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808   (eval "$ac_try") 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; }; then
23812   ol_cv_pthread_lpthreads_lmach_lexc=yes
23813 else
23814   echo "$as_me: program exited with status $ac_status" >&5
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23817
23818 ( exit $ac_status )
23819 ol_cv_pthread_lpthreads_lmach_lexc=no
23820 fi
23821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23822 fi
23823
23824
23825
23826                 # restore the LIBS
23827                 LIBS="$ol_LIBS"
23828
23829 fi
23830 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23831 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23832
23833         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23834                 ol_link_pthreads="-lpthreads -lmach -lexc"
23835                 ol_link_threads=posix
23836         fi
23837 fi
23838
23839                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23840 if test "$ol_link_threads" = no ; then
23841         # try -lpthreads -lexc
23842         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23843 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23844 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23845   echo $ECHO_N "(cached) $ECHO_C" >&6
23846 else
23847
23848                 # save the flags
23849                 ol_LIBS="$LIBS"
23850                 LIBS="-lpthreads -lexc $LIBS"
23851
23852                 if test "$cross_compiling" = yes; then
23853   cat >conftest.$ac_ext <<_ACEOF
23854 /* confdefs.h.  */
23855 _ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h.  */
23859
23860 /* pthread test headers */
23861 #include <pthread.h>
23862 #if HAVE_PTHREADS < 7
23863 #include <errno.h>
23864 #endif
23865 #ifndef NULL
23866 #define NULL (void*)0
23867 #endif
23868
23869 static void *task(p)
23870         void *p;
23871 {
23872         return (void *) (p == NULL);
23873 }
23874
23875 int
23876 main ()
23877 {
23878
23879         /* pthread test function */
23880 #ifndef PTHREAD_CREATE_DETACHED
23881 #define PTHREAD_CREATE_DETACHED 1
23882 #endif
23883         pthread_t t;
23884         int status;
23885         int detach = PTHREAD_CREATE_DETACHED;
23886
23887 #if HAVE_PTHREADS > 4
23888         /* Final pthreads */
23889         pthread_attr_t attr;
23890
23891         status = pthread_attr_init(&attr);
23892         if( status ) return status;
23893
23894 #if HAVE_PTHREADS < 7
23895         status = pthread_attr_setdetachstate(&attr, &detach);
23896         if( status < 0 ) status = errno;
23897 #else
23898         status = pthread_attr_setdetachstate(&attr, detach);
23899 #endif
23900         if( status ) return status;
23901         status = pthread_create( &t, &attr, task, NULL );
23902 #if HAVE_PTHREADS < 7
23903         if( status < 0 ) status = errno;
23904 #endif
23905         if( status ) return status;
23906 #else
23907         /* Draft 4 pthreads */
23908         status = pthread_create( &t, pthread_attr_default, task, NULL );
23909         if( status ) return errno;
23910
23911         /* give thread a chance to complete */
23912         /* it should remain joinable and hence detachable */
23913         sleep( 1 );
23914
23915         status = pthread_detach( &t );
23916         if( status ) return errno;
23917 #endif
23918
23919 #ifdef HAVE_LINUX_THREADS
23920         pthread_kill_other_threads_np();
23921 #endif
23922
23923         return 0;
23924
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_link") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && {
23943          test -z "$ac_c_werror_flag" ||
23944          test ! -s conftest.err
23945        } && test -s conftest$ac_exeext &&
23946        $as_test_x conftest$ac_exeext; then
23947   ol_cv_pthread_lpthreads_lexc=yes
23948 else
23949   echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23951
23952         ol_cv_pthread_lpthreads_lexc=no
23953 fi
23954
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956       conftest$ac_exeext conftest.$ac_ext
23957 else
23958   cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h.  */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h.  */
23964
23965 /* pthread test headers */
23966 #include <pthread.h>
23967 #if HAVE_PTHREADS < 7
23968 #include <errno.h>
23969 #endif
23970 #ifndef NULL
23971 #define NULL (void*)0
23972 #endif
23973
23974 static void *task(p)
23975         void *p;
23976 {
23977         return (void *) (p == NULL);
23978 }
23979
23980
23981 int main(argc, argv)
23982         int argc;
23983         char **argv;
23984 {
23985
23986         /* pthread test function */
23987 #ifndef PTHREAD_CREATE_DETACHED
23988 #define PTHREAD_CREATE_DETACHED 1
23989 #endif
23990         pthread_t t;
23991         int status;
23992         int detach = PTHREAD_CREATE_DETACHED;
23993
23994 #if HAVE_PTHREADS > 4
23995         /* Final pthreads */
23996         pthread_attr_t attr;
23997
23998         status = pthread_attr_init(&attr);
23999         if( status ) return status;
24000
24001 #if HAVE_PTHREADS < 7
24002         status = pthread_attr_setdetachstate(&attr, &detach);
24003         if( status < 0 ) status = errno;
24004 #else
24005         status = pthread_attr_setdetachstate(&attr, detach);
24006 #endif
24007         if( status ) return status;
24008         status = pthread_create( &t, &attr, task, NULL );
24009 #if HAVE_PTHREADS < 7
24010         if( status < 0 ) status = errno;
24011 #endif
24012         if( status ) return status;
24013 #else
24014         /* Draft 4 pthreads */
24015         status = pthread_create( &t, pthread_attr_default, task, NULL );
24016         if( status ) return errno;
24017
24018         /* give thread a chance to complete */
24019         /* it should remain joinable and hence detachable */
24020         sleep( 1 );
24021
24022         status = pthread_detach( &t );
24023         if( status ) return errno;
24024 #endif
24025
24026 #ifdef HAVE_LINUX_THREADS
24027         pthread_kill_other_threads_np();
24028 #endif
24029
24030         return 0;
24031
24032 }
24033
24034 _ACEOF
24035 rm -f conftest$ac_exeext
24036 if { (ac_try="$ac_link"
24037 case "(($ac_try" in
24038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039   *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042   (eval "$ac_link") 2>&5
24043   ac_status=$?
24044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24046   { (case "(($ac_try" in
24047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048   *) ac_try_echo=$ac_try;;
24049 esac
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051   (eval "$ac_try") 2>&5
24052   ac_status=$?
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); }; }; then
24055   ol_cv_pthread_lpthreads_lexc=yes
24056 else
24057   echo "$as_me: program exited with status $ac_status" >&5
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24060
24061 ( exit $ac_status )
24062 ol_cv_pthread_lpthreads_lexc=no
24063 fi
24064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24065 fi
24066
24067
24068
24069                 # restore the LIBS
24070                 LIBS="$ol_LIBS"
24071
24072 fi
24073 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24074 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24075
24076         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24077                 ol_link_pthreads="-lpthreads -lexc"
24078                 ol_link_threads=posix
24079         fi
24080 fi
24081
24082
24083                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24084 if test "$ol_link_threads" = no ; then
24085         # try -lpthreads
24086         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24087 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24088 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24089   echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091
24092                 # save the flags
24093                 ol_LIBS="$LIBS"
24094                 LIBS="-lpthreads $LIBS"
24095
24096                 if test "$cross_compiling" = yes; then
24097   cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103
24104 /* pthread test headers */
24105 #include <pthread.h>
24106 #if HAVE_PTHREADS < 7
24107 #include <errno.h>
24108 #endif
24109 #ifndef NULL
24110 #define NULL (void*)0
24111 #endif
24112
24113 static void *task(p)
24114         void *p;
24115 {
24116         return (void *) (p == NULL);
24117 }
24118
24119 int
24120 main ()
24121 {
24122
24123         /* pthread test function */
24124 #ifndef PTHREAD_CREATE_DETACHED
24125 #define PTHREAD_CREATE_DETACHED 1
24126 #endif
24127         pthread_t t;
24128         int status;
24129         int detach = PTHREAD_CREATE_DETACHED;
24130
24131 #if HAVE_PTHREADS > 4
24132         /* Final pthreads */
24133         pthread_attr_t attr;
24134
24135         status = pthread_attr_init(&attr);
24136         if( status ) return status;
24137
24138 #if HAVE_PTHREADS < 7
24139         status = pthread_attr_setdetachstate(&attr, &detach);
24140         if( status < 0 ) status = errno;
24141 #else
24142         status = pthread_attr_setdetachstate(&attr, detach);
24143 #endif
24144         if( status ) return status;
24145         status = pthread_create( &t, &attr, task, NULL );
24146 #if HAVE_PTHREADS < 7
24147         if( status < 0 ) status = errno;
24148 #endif
24149         if( status ) return status;
24150 #else
24151         /* Draft 4 pthreads */
24152         status = pthread_create( &t, pthread_attr_default, task, NULL );
24153         if( status ) return errno;
24154
24155         /* give thread a chance to complete */
24156         /* it should remain joinable and hence detachable */
24157         sleep( 1 );
24158
24159         status = pthread_detach( &t );
24160         if( status ) return errno;
24161 #endif
24162
24163 #ifdef HAVE_LINUX_THREADS
24164         pthread_kill_other_threads_np();
24165 #endif
24166
24167         return 0;
24168
24169   ;
24170   return 0;
24171 }
24172 _ACEOF
24173 rm -f conftest.$ac_objext conftest$ac_exeext
24174 if { (ac_try="$ac_link"
24175 case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180   (eval "$ac_link") 2>conftest.er1
24181   ac_status=$?
24182   grep -v '^ *+' conftest.er1 >conftest.err
24183   rm -f conftest.er1
24184   cat conftest.err >&5
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } && {
24187          test -z "$ac_c_werror_flag" ||
24188          test ! -s conftest.err
24189        } && test -s conftest$ac_exeext &&
24190        $as_test_x conftest$ac_exeext; then
24191   ol_cv_pthread_lib_lpthreads=yes
24192 else
24193   echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24195
24196         ol_cv_pthread_lib_lpthreads=no
24197 fi
24198
24199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24200       conftest$ac_exeext conftest.$ac_ext
24201 else
24202   cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h.  */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h.  */
24208
24209 /* pthread test headers */
24210 #include <pthread.h>
24211 #if HAVE_PTHREADS < 7
24212 #include <errno.h>
24213 #endif
24214 #ifndef NULL
24215 #define NULL (void*)0
24216 #endif
24217
24218 static void *task(p)
24219         void *p;
24220 {
24221         return (void *) (p == NULL);
24222 }
24223
24224
24225 int main(argc, argv)
24226         int argc;
24227         char **argv;
24228 {
24229
24230         /* pthread test function */
24231 #ifndef PTHREAD_CREATE_DETACHED
24232 #define PTHREAD_CREATE_DETACHED 1
24233 #endif
24234         pthread_t t;
24235         int status;
24236         int detach = PTHREAD_CREATE_DETACHED;
24237
24238 #if HAVE_PTHREADS > 4
24239         /* Final pthreads */
24240         pthread_attr_t attr;
24241
24242         status = pthread_attr_init(&attr);
24243         if( status ) return status;
24244
24245 #if HAVE_PTHREADS < 7
24246         status = pthread_attr_setdetachstate(&attr, &detach);
24247         if( status < 0 ) status = errno;
24248 #else
24249         status = pthread_attr_setdetachstate(&attr, detach);
24250 #endif
24251         if( status ) return status;
24252         status = pthread_create( &t, &attr, task, NULL );
24253 #if HAVE_PTHREADS < 7
24254         if( status < 0 ) status = errno;
24255 #endif
24256         if( status ) return status;
24257 #else
24258         /* Draft 4 pthreads */
24259         status = pthread_create( &t, pthread_attr_default, task, NULL );
24260         if( status ) return errno;
24261
24262         /* give thread a chance to complete */
24263         /* it should remain joinable and hence detachable */
24264         sleep( 1 );
24265
24266         status = pthread_detach( &t );
24267         if( status ) return errno;
24268 #endif
24269
24270 #ifdef HAVE_LINUX_THREADS
24271         pthread_kill_other_threads_np();
24272 #endif
24273
24274         return 0;
24275
24276 }
24277
24278 _ACEOF
24279 rm -f conftest$ac_exeext
24280 if { (ac_try="$ac_link"
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_link") 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24290   { (case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295   (eval "$ac_try") 2>&5
24296   ac_status=$?
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); }; }; then
24299   ol_cv_pthread_lib_lpthreads=yes
24300 else
24301   echo "$as_me: program exited with status $ac_status" >&5
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24304
24305 ( exit $ac_status )
24306 ol_cv_pthread_lib_lpthreads=no
24307 fi
24308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24309 fi
24310
24311
24312
24313                 # restore the LIBS
24314                 LIBS="$ol_LIBS"
24315
24316 fi
24317 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24318 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24319
24320         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24321                 ol_link_pthreads="-lpthreads"
24322                 ol_link_threads=posix
24323         fi
24324 fi
24325
24326
24327                 if test $ol_link_threads != no ; then
24328                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24329
24330                                                 save_CPPFLAGS="$CPPFLAGS"
24331                         save_LIBS="$LIBS"
24332                         LIBS="$LTHREAD_LIBS $LIBS"
24333
24334
24335
24336
24337 for ac_func in sched_yield pthread_yield thr_yield
24338 do
24339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24343   echo $ECHO_N "(cached) $ECHO_C" >&6
24344 else
24345   cat >conftest.$ac_ext <<_ACEOF
24346 /* confdefs.h.  */
24347 _ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h.  */
24351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24353 #define $ac_func innocuous_$ac_func
24354
24355 /* System header to define __stub macros and hopefully few prototypes,
24356     which can conflict with char $ac_func (); below.
24357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24358     <limits.h> exists even on freestanding compilers.  */
24359
24360 #ifdef __STDC__
24361 # include <limits.h>
24362 #else
24363 # include <assert.h>
24364 #endif
24365
24366 #undef $ac_func
24367
24368 /* Override any GCC internal prototype to avoid an error.
24369    Use char because int might match the return type of a GCC
24370    builtin and then its argument prototype would still apply.  */
24371 #ifdef __cplusplus
24372 extern "C"
24373 #endif
24374 char $ac_func ();
24375 /* The GNU C library defines this for functions which it implements
24376     to always fail with ENOSYS.  Some functions are actually named
24377     something starting with __ and the normal name is an alias.  */
24378 #if defined __stub_$ac_func || defined __stub___$ac_func
24379 choke me
24380 #endif
24381
24382 int
24383 main ()
24384 {
24385 return $ac_func ();
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (ac_try="$ac_link"
24392 case "(($ac_try" in
24393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394   *) ac_try_echo=$ac_try;;
24395 esac
24396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397   (eval "$ac_link") 2>conftest.er1
24398   ac_status=$?
24399   grep -v '^ *+' conftest.er1 >conftest.err
24400   rm -f conftest.er1
24401   cat conftest.err >&5
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); } && {
24404          test -z "$ac_c_werror_flag" ||
24405          test ! -s conftest.err
24406        } && test -s conftest$ac_exeext &&
24407        $as_test_x conftest$ac_exeext; then
24408   eval "$as_ac_var=yes"
24409 else
24410   echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24412
24413         eval "$as_ac_var=no"
24414 fi
24415
24416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24417       conftest$ac_exeext conftest.$ac_ext
24418 fi
24419 ac_res=`eval echo '${'$as_ac_var'}'`
24420                { echo "$as_me:$LINENO: result: $ac_res" >&5
24421 echo "${ECHO_T}$ac_res" >&6; }
24422 if test `eval echo '${'$as_ac_var'}'` = yes; then
24423   cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24425 _ACEOF
24426
24427 fi
24428 done
24429
24430
24431                         if test $ac_cv_func_sched_yield = no &&
24432                            test $ac_cv_func_pthread_yield = no &&
24433                            test $ac_cv_func_thr_yield = no ; then
24434                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24435 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24436 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24437   echo $ECHO_N "(cached) $ECHO_C" >&6
24438 else
24439   ac_check_lib_save_LIBS=$LIBS
24440 LIBS="-lrt  $LIBS"
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h.  */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h.  */
24447
24448 /* Override any GCC internal prototype to avoid an error.
24449    Use char because int might match the return type of a GCC
24450    builtin and then its argument prototype would still apply.  */
24451 #ifdef __cplusplus
24452 extern "C"
24453 #endif
24454 char sched_yield ();
24455 int
24456 main ()
24457 {
24458 return sched_yield ();
24459   ;
24460   return 0;
24461 }
24462 _ACEOF
24463 rm -f conftest.$ac_objext conftest$ac_exeext
24464 if { (ac_try="$ac_link"
24465 case "(($ac_try" in
24466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467   *) ac_try_echo=$ac_try;;
24468 esac
24469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470   (eval "$ac_link") 2>conftest.er1
24471   ac_status=$?
24472   grep -v '^ *+' conftest.er1 >conftest.err
24473   rm -f conftest.er1
24474   cat conftest.err >&5
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); } && {
24477          test -z "$ac_c_werror_flag" ||
24478          test ! -s conftest.err
24479        } && test -s conftest$ac_exeext &&
24480        $as_test_x conftest$ac_exeext; then
24481   ac_cv_lib_rt_sched_yield=yes
24482 else
24483   echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24485
24486         ac_cv_lib_rt_sched_yield=no
24487 fi
24488
24489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24490       conftest$ac_exeext conftest.$ac_ext
24491 LIBS=$ac_check_lib_save_LIBS
24492 fi
24493 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24494 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24495 if test $ac_cv_lib_rt_sched_yield = yes; then
24496   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24497
24498 cat >>confdefs.h <<\_ACEOF
24499 #define HAVE_SCHED_YIELD 1
24500 _ACEOF
24501
24502                                         ac_cv_func_sched_yield=yes
24503 else
24504   ac_cv_func_sched_yield=no
24505 fi
24506
24507                         fi
24508                         if test $ac_cv_func_sched_yield = no &&
24509                            test $ac_cv_func_pthread_yield = no &&
24510                            test "$ac_cv_func_thr_yield" = no ; then
24511                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24512 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24513                         fi
24514
24515
24516 for ac_func in pthread_kill
24517 do
24518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24522   echo $ECHO_N "(cached) $ECHO_C" >&6
24523 else
24524   cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24532 #define $ac_func innocuous_$ac_func
24533
24534 /* System header to define __stub macros and hopefully few prototypes,
24535     which can conflict with char $ac_func (); below.
24536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24537     <limits.h> exists even on freestanding compilers.  */
24538
24539 #ifdef __STDC__
24540 # include <limits.h>
24541 #else
24542 # include <assert.h>
24543 #endif
24544
24545 #undef $ac_func
24546
24547 /* Override any GCC internal prototype to avoid an error.
24548    Use char because int might match the return type of a GCC
24549    builtin and then its argument prototype would still apply.  */
24550 #ifdef __cplusplus
24551 extern "C"
24552 #endif
24553 char $ac_func ();
24554 /* The GNU C library defines this for functions which it implements
24555     to always fail with ENOSYS.  Some functions are actually named
24556     something starting with __ and the normal name is an alias.  */
24557 #if defined __stub_$ac_func || defined __stub___$ac_func
24558 choke me
24559 #endif
24560
24561 int
24562 main ()
24563 {
24564 return $ac_func ();
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_link") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest$ac_exeext &&
24586        $as_test_x conftest$ac_exeext; then
24587   eval "$as_ac_var=yes"
24588 else
24589   echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592         eval "$as_ac_var=no"
24593 fi
24594
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596       conftest$ac_exeext conftest.$ac_ext
24597 fi
24598 ac_res=`eval echo '${'$as_ac_var'}'`
24599                { echo "$as_me:$LINENO: result: $ac_res" >&5
24600 echo "${ECHO_T}$ac_res" >&6; }
24601 if test `eval echo '${'$as_ac_var'}'` = yes; then
24602   cat >>confdefs.h <<_ACEOF
24603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24604 _ACEOF
24605
24606 fi
24607 done
24608
24609
24610                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24611 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24612 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615
24616                                                                 cat >conftest.$ac_ext <<_ACEOF
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622
24623 #include <pthread.h>
24624 pthread_rwlock_t rwlock;
24625
24626 int
24627 main ()
24628 {
24629 pthread_rwlock_destroy(&rwlock);
24630   ;
24631   return 0;
24632 }
24633 _ACEOF
24634 rm -f conftest.$ac_objext conftest$ac_exeext
24635 if { (ac_try="$ac_link"
24636 case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641   (eval "$ac_link") 2>conftest.er1
24642   ac_status=$?
24643   grep -v '^ *+' conftest.er1 >conftest.err
24644   rm -f conftest.er1
24645   cat conftest.err >&5
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); } && {
24648          test -z "$ac_c_werror_flag" ||
24649          test ! -s conftest.err
24650        } && test -s conftest$ac_exeext &&
24651        $as_test_x conftest$ac_exeext; then
24652   ol_cv_func_pthread_rwlock_destroy=yes
24653 else
24654   echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24656
24657         ol_cv_func_pthread_rwlock_destroy=no
24658 fi
24659
24660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24661       conftest$ac_exeext conftest.$ac_ext
24662
24663 fi
24664 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24665 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24666                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24667
24668 cat >>confdefs.h <<\_ACEOF
24669 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24670 _ACEOF
24671
24672                         fi
24673
24674                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24675 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24676 if test "${ol_cv_func_pthread_detach+set}" = set; then
24677   echo $ECHO_N "(cached) $ECHO_C" >&6
24678 else
24679
24680                                                                 cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686
24687 #include <pthread.h>
24688 #ifndef NULL
24689 #define NULL (void*)0
24690 #endif
24691
24692 int
24693 main ()
24694 {
24695 pthread_detach(NULL);
24696   ;
24697   return 0;
24698 }
24699 _ACEOF
24700 rm -f conftest.$ac_objext conftest$ac_exeext
24701 if { (ac_try="$ac_link"
24702 case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707   (eval "$ac_link") 2>conftest.er1
24708   ac_status=$?
24709   grep -v '^ *+' conftest.er1 >conftest.err
24710   rm -f conftest.er1
24711   cat conftest.err >&5
24712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713   (exit $ac_status); } && {
24714          test -z "$ac_c_werror_flag" ||
24715          test ! -s conftest.err
24716        } && test -s conftest$ac_exeext &&
24717        $as_test_x conftest$ac_exeext; then
24718   ol_cv_func_pthread_detach=yes
24719 else
24720   echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24722
24723         ol_cv_func_pthread_detach=no
24724 fi
24725
24726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24727       conftest$ac_exeext conftest.$ac_ext
24728
24729 fi
24730 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24731 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24732
24733                         if test $ol_cv_func_pthread_detach = no ; then
24734                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24735 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24736    { (exit 1); exit 1; }; }
24737                         fi
24738
24739
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_PTHREAD_DETACH 1
24742 _ACEOF
24743
24744
24745
24746
24747
24748
24749 for ac_func in \
24750                                 pthread_setconcurrency \
24751                                 pthread_getconcurrency \
24752                                 thr_setconcurrency \
24753                                 thr_getconcurrency \
24754
24755 do
24756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24760   echo $ECHO_N "(cached) $ECHO_C" >&6
24761 else
24762   cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h.  */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h.  */
24768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24770 #define $ac_func innocuous_$ac_func
24771
24772 /* System header to define __stub macros and hopefully few prototypes,
24773     which can conflict with char $ac_func (); below.
24774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24775     <limits.h> exists even on freestanding compilers.  */
24776
24777 #ifdef __STDC__
24778 # include <limits.h>
24779 #else
24780 # include <assert.h>
24781 #endif
24782
24783 #undef $ac_func
24784
24785 /* Override any GCC internal prototype to avoid an error.
24786    Use char because int might match the return type of a GCC
24787    builtin and then its argument prototype would still apply.  */
24788 #ifdef __cplusplus
24789 extern "C"
24790 #endif
24791 char $ac_func ();
24792 /* The GNU C library defines this for functions which it implements
24793     to always fail with ENOSYS.  Some functions are actually named
24794     something starting with __ and the normal name is an alias.  */
24795 #if defined __stub_$ac_func || defined __stub___$ac_func
24796 choke me
24797 #endif
24798
24799 int
24800 main ()
24801 {
24802 return $ac_func ();
24803   ;
24804   return 0;
24805 }
24806 _ACEOF
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (ac_try="$ac_link"
24809 case "(($ac_try" in
24810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811   *) ac_try_echo=$ac_try;;
24812 esac
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814   (eval "$ac_link") 2>conftest.er1
24815   ac_status=$?
24816   grep -v '^ *+' conftest.er1 >conftest.err
24817   rm -f conftest.er1
24818   cat conftest.err >&5
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); } && {
24821          test -z "$ac_c_werror_flag" ||
24822          test ! -s conftest.err
24823        } && test -s conftest$ac_exeext &&
24824        $as_test_x conftest$ac_exeext; then
24825   eval "$as_ac_var=yes"
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830         eval "$as_ac_var=no"
24831 fi
24832
24833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24834       conftest$ac_exeext conftest.$ac_ext
24835 fi
24836 ac_res=`eval echo '${'$as_ac_var'}'`
24837                { echo "$as_me:$LINENO: result: $ac_res" >&5
24838 echo "${ECHO_T}$ac_res" >&6; }
24839 if test `eval echo '${'$as_ac_var'}'` = yes; then
24840   cat >>confdefs.h <<_ACEOF
24841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24842 _ACEOF
24843
24844 fi
24845 done
24846
24847
24848
24849
24850 for ac_func in pthread_kill_other_threads_np
24851 do
24852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24856   echo $ECHO_N "(cached) $ECHO_C" >&6
24857 else
24858   cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24866 #define $ac_func innocuous_$ac_func
24867
24868 /* System header to define __stub macros and hopefully few prototypes,
24869     which can conflict with char $ac_func (); below.
24870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24871     <limits.h> exists even on freestanding compilers.  */
24872
24873 #ifdef __STDC__
24874 # include <limits.h>
24875 #else
24876 # include <assert.h>
24877 #endif
24878
24879 #undef $ac_func
24880
24881 /* Override any GCC internal prototype to avoid an error.
24882    Use char because int might match the return type of a GCC
24883    builtin and then its argument prototype would still apply.  */
24884 #ifdef __cplusplus
24885 extern "C"
24886 #endif
24887 char $ac_func ();
24888 /* The GNU C library defines this for functions which it implements
24889     to always fail with ENOSYS.  Some functions are actually named
24890     something starting with __ and the normal name is an alias.  */
24891 #if defined __stub_$ac_func || defined __stub___$ac_func
24892 choke me
24893 #endif
24894
24895 int
24896 main ()
24897 {
24898 return $ac_func ();
24899   ;
24900   return 0;
24901 }
24902 _ACEOF
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (ac_try="$ac_link"
24905 case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910   (eval "$ac_link") 2>conftest.er1
24911   ac_status=$?
24912   grep -v '^ *+' conftest.er1 >conftest.err
24913   rm -f conftest.er1
24914   cat conftest.err >&5
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); } && {
24917          test -z "$ac_c_werror_flag" ||
24918          test ! -s conftest.err
24919        } && test -s conftest$ac_exeext &&
24920        $as_test_x conftest$ac_exeext; then
24921   eval "$as_ac_var=yes"
24922 else
24923   echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24925
24926         eval "$as_ac_var=no"
24927 fi
24928
24929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24930       conftest$ac_exeext conftest.$ac_ext
24931 fi
24932 ac_res=`eval echo '${'$as_ac_var'}'`
24933                { echo "$as_me:$LINENO: result: $ac_res" >&5
24934 echo "${ECHO_T}$ac_res" >&6; }
24935 if test `eval echo '${'$as_ac_var'}'` = yes; then
24936   cat >>confdefs.h <<_ACEOF
24937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24938 _ACEOF
24939
24940 fi
24941 done
24942
24943         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24944 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24945 if test "${ol_cv_sys_linux_threads+set}" = set; then
24946   echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24949 fi
24950 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24951 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24952
24953
24954
24955
24956         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24957 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24958 if test "${ol_cv_linux_threads+set}" = set; then
24959   echo $ECHO_N "(cached) $ECHO_C" >&6
24960 else
24961
24962                 if test $ol_cv_header_linux_threads = yes &&
24963                    test $ol_cv_sys_linux_threads = yes; then
24964                         ol_cv_linux_threads=yes
24965                 elif test $ol_cv_header_linux_threads = no &&
24966                      test $ol_cv_sys_linux_threads = no; then
24967                         ol_cv_linux_threads=no
24968                 else
24969                         ol_cv_linux_threads=error
24970                 fi
24971
24972 fi
24973 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24974 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24975
24976
24977                         if test $ol_cv_linux_threads = error; then
24978                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24979 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24980    { (exit 1); exit 1; }; };
24981                         fi
24982
24983                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24984 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24985 if test "${ol_cv_pthread_create_works+set}" = set; then
24986   echo $ECHO_N "(cached) $ECHO_C" >&6
24987 else
24988
24989                         if test "$cross_compiling" = yes; then
24990                                 ol_cv_pthread_create_works=yes
24991 else
24992   cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998
24999 /* pthread test headers */
25000 #include <pthread.h>
25001 #if HAVE_PTHREADS < 7
25002 #include <errno.h>
25003 #endif
25004 #ifndef NULL
25005 #define NULL (void*)0
25006 #endif
25007
25008 static void *task(p)
25009         void *p;
25010 {
25011         return (void *) (p == NULL);
25012 }
25013
25014
25015 int main(argc, argv)
25016         int argc;
25017         char **argv;
25018 {
25019
25020         /* pthread test function */
25021 #ifndef PTHREAD_CREATE_DETACHED
25022 #define PTHREAD_CREATE_DETACHED 1
25023 #endif
25024         pthread_t t;
25025         int status;
25026         int detach = PTHREAD_CREATE_DETACHED;
25027
25028 #if HAVE_PTHREADS > 4
25029         /* Final pthreads */
25030         pthread_attr_t attr;
25031
25032         status = pthread_attr_init(&attr);
25033         if( status ) return status;
25034
25035 #if HAVE_PTHREADS < 7
25036         status = pthread_attr_setdetachstate(&attr, &detach);
25037         if( status < 0 ) status = errno;
25038 #else
25039         status = pthread_attr_setdetachstate(&attr, detach);
25040 #endif
25041         if( status ) return status;
25042         status = pthread_create( &t, &attr, task, NULL );
25043 #if HAVE_PTHREADS < 7
25044         if( status < 0 ) status = errno;
25045 #endif
25046         if( status ) return status;
25047 #else
25048         /* Draft 4 pthreads */
25049         status = pthread_create( &t, pthread_attr_default, task, NULL );
25050         if( status ) return errno;
25051
25052         /* give thread a chance to complete */
25053         /* it should remain joinable and hence detachable */
25054         sleep( 1 );
25055
25056         status = pthread_detach( &t );
25057         if( status ) return errno;
25058 #endif
25059
25060 #ifdef HAVE_LINUX_THREADS
25061         pthread_kill_other_threads_np();
25062 #endif
25063
25064         return 0;
25065
25066 }
25067
25068 _ACEOF
25069 rm -f conftest$ac_exeext
25070 if { (ac_try="$ac_link"
25071 case "(($ac_try" in
25072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073   *) ac_try_echo=$ac_try;;
25074 esac
25075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076   (eval "$ac_link") 2>&5
25077   ac_status=$?
25078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25080   { (case "(($ac_try" in
25081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082   *) ac_try_echo=$ac_try;;
25083 esac
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085   (eval "$ac_try") 2>&5
25086   ac_status=$?
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); }; }; then
25089   ol_cv_pthread_create_works=yes
25090 else
25091   echo "$as_me: program exited with status $ac_status" >&5
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25094
25095 ( exit $ac_status )
25096 ol_cv_pthread_create_works=no
25097 fi
25098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25099 fi
25100
25101
25102 fi
25103 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25104 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25105
25106                         if test $ol_cv_pthread_create_works = no ; then
25107                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25108 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25109    { (exit 1); exit 1; }; }
25110                         fi
25111
25112                         ol_replace_broken_yield=no
25113
25114                         if test $ol_replace_broken_yield = yes ; then
25115
25116 cat >>confdefs.h <<\_ACEOF
25117 #define REPLACE_BROKEN_YIELD 1
25118 _ACEOF
25119
25120                         fi
25121
25122                                                 if test $ol_with_yielding_select = auto ; then
25123                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25124 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25125 if test "${ol_cv_pthread_select_yields+set}" = set; then
25126   echo $ECHO_N "(cached) $ECHO_C" >&6
25127 else
25128
25129                                 if test "$cross_compiling" = yes; then
25130   ol_cv_pthread_select_yields=cross
25131 else
25132   cat >conftest.$ac_ext <<_ACEOF
25133 /* confdefs.h.  */
25134 _ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h.  */
25138
25139 #include <sys/types.h>
25140 #include <sys/time.h>
25141 #include <unistd.h>
25142 #include <pthread.h>
25143 #ifndef NULL
25144 #define NULL (void*) 0
25145 #endif
25146
25147 static int fildes[2];
25148
25149 static void *task(p)
25150         void *p;
25151 {
25152         int i;
25153         struct timeval tv;
25154
25155         fd_set rfds;
25156
25157         tv.tv_sec=10;
25158         tv.tv_usec=0;
25159
25160         FD_ZERO(&rfds);
25161         FD_SET(fildes[0], &rfds);
25162
25163         /* we're not interested in any fds */
25164         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25165
25166         if(i < 0) {
25167                 perror("select");
25168                 exit(10);
25169         }
25170
25171         exit(0); /* if we exit here, the select blocked the whole process */
25172 }
25173
25174 int main(argc, argv)
25175         int argc;
25176         char **argv;
25177 {
25178         pthread_t t;
25179
25180         /* create a pipe to select */
25181         if(pipe(&fildes[0])) {
25182                 perror("select");
25183                 exit(1);
25184         }
25185
25186 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25187         (void) pthread_setconcurrency(2);
25188 #else
25189 #ifdef HAVE_THR_SETCONCURRENCY
25190         /* Set Solaris LWP concurrency to 2 */
25191         thr_setconcurrency(2);
25192 #endif
25193 #endif
25194
25195 #if HAVE_PTHREADS < 6
25196         pthread_create(&t, pthread_attr_default, task, NULL);
25197 #else
25198         pthread_create(&t, NULL, task, NULL);
25199 #endif
25200
25201         /* make sure task runs first */
25202 #ifdef HAVE_THR_YIELD
25203         thr_yield();
25204 #elif defined( HAVE_SCHED_YIELD )
25205         sched_yield();
25206 #elif defined( HAVE_PTHREAD_YIELD )
25207         pthread_yield();
25208 #endif
25209
25210         exit(2);
25211 }
25212 _ACEOF
25213 rm -f conftest$ac_exeext
25214 if { (ac_try="$ac_link"
25215 case "(($ac_try" in
25216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217   *) ac_try_echo=$ac_try;;
25218 esac
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220   (eval "$ac_link") 2>&5
25221   ac_status=$?
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25224   { (case "(($ac_try" in
25225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226   *) ac_try_echo=$ac_try;;
25227 esac
25228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229   (eval "$ac_try") 2>&5
25230   ac_status=$?
25231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232   (exit $ac_status); }; }; then
25233   ol_cv_pthread_select_yields=no
25234 else
25235   echo "$as_me: program exited with status $ac_status" >&5
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25238
25239 ( exit $ac_status )
25240 ol_cv_pthread_select_yields=yes
25241 fi
25242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25243 fi
25244
25245
25246 fi
25247 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25248 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25249
25250                                 if test $ol_cv_pthread_select_yields = cross ; then
25251                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25252 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25253    { (exit 1); exit 1; }; }
25254                                 fi
25255
25256                                 if test $ol_cv_pthread_select_yields = yes ; then
25257                                         ol_with_yielding_select=yes
25258                                 fi
25259                         fi
25260
25261                                                 CPPFLAGS="$save_CPPFLAGS"
25262                         LIBS="$save_LIBS"
25263                 else
25264                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25265 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25266    { (exit 1); exit 1; }; }
25267                 fi
25268         fi
25269
25270         if test $ol_with_threads = posix ; then
25271                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25272 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25273    { (exit 1); exit 1; }; }
25274         fi
25275         ;;
25276 esac
25277
25278 case $ol_with_threads in auto | yes | mach)
25279
25280
25281
25282 for ac_header in mach/cthreads.h cthreads.h
25283 do
25284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25286   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 fi
25291 ac_res=`eval echo '${'$as_ac_Header'}'`
25292                { echo "$as_me:$LINENO: result: $ac_res" >&5
25293 echo "${ECHO_T}$ac_res" >&6; }
25294 else
25295   # Is the header compilable?
25296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h.  */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h.  */
25304 $ac_includes_default
25305 #include <$ac_header>
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311   *) ac_try_echo=$ac_try;;
25312 esac
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314   (eval "$ac_compile") 2>conftest.er1
25315   ac_status=$?
25316   grep -v '^ *+' conftest.er1 >conftest.err
25317   rm -f conftest.er1
25318   cat conftest.err >&5
25319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320   (exit $ac_status); } && {
25321          test -z "$ac_c_werror_flag" ||
25322          test ! -s conftest.err
25323        } && test -s conftest.$ac_objext; then
25324   ac_header_compiler=yes
25325 else
25326   echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25328
25329         ac_header_compiler=no
25330 fi
25331
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25334 echo "${ECHO_T}$ac_header_compiler" >&6; }
25335
25336 # Is the header present?
25337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 #include <$ac_header>
25346 _ACEOF
25347 if { (ac_try="$ac_cpp conftest.$ac_ext"
25348 case "(($ac_try" in
25349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350   *) ac_try_echo=$ac_try;;
25351 esac
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25354   ac_status=$?
25355   grep -v '^ *+' conftest.er1 >conftest.err
25356   rm -f conftest.er1
25357   cat conftest.err >&5
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); } >/dev/null && {
25360          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25361          test ! -s conftest.err
25362        }; then
25363   ac_header_preproc=yes
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368   ac_header_preproc=no
25369 fi
25370
25371 rm -f conftest.err conftest.$ac_ext
25372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25373 echo "${ECHO_T}$ac_header_preproc" >&6; }
25374
25375 # So?  What about this header?
25376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25377   yes:no: )
25378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25382     ac_header_preproc=yes
25383     ;;
25384   no:yes:* )
25385     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25388 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25392 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25397     ( cat <<\_ASBOX
25398 ## --------------------------------------------- ##
25399 ## Report this to <http://www.openldap.org/its/> ##
25400 ## --------------------------------------------- ##
25401 _ASBOX
25402      ) | sed "s/^/$as_me: WARNING:     /" >&2
25403     ;;
25404 esac
25405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408   echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410   eval "$as_ac_Header=\$ac_header_preproc"
25411 fi
25412 ac_res=`eval echo '${'$as_ac_Header'}'`
25413                { echo "$as_me:$LINENO: result: $ac_res" >&5
25414 echo "${ECHO_T}$ac_res" >&6; }
25415
25416 fi
25417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25418   cat >>confdefs.h <<_ACEOF
25419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25420 _ACEOF
25421
25422 fi
25423
25424 done
25425
25426         if test $ac_cv_header_mach_cthreads_h = yes ; then
25427                 ol_with_threads=found
25428
25429                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25430 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25431 if test "${ac_cv_func_cthread_fork+set}" = set; then
25432   echo $ECHO_N "(cached) $ECHO_C" >&6
25433 else
25434   cat >conftest.$ac_ext <<_ACEOF
25435 /* confdefs.h.  */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h.  */
25440 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25442 #define cthread_fork innocuous_cthread_fork
25443
25444 /* System header to define __stub macros and hopefully few prototypes,
25445     which can conflict with char cthread_fork (); below.
25446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25447     <limits.h> exists even on freestanding compilers.  */
25448
25449 #ifdef __STDC__
25450 # include <limits.h>
25451 #else
25452 # include <assert.h>
25453 #endif
25454
25455 #undef cthread_fork
25456
25457 /* Override any GCC internal prototype to avoid an error.
25458    Use char because int might match the return type of a GCC
25459    builtin and then its argument prototype would still apply.  */
25460 #ifdef __cplusplus
25461 extern "C"
25462 #endif
25463 char cthread_fork ();
25464 /* The GNU C library defines this for functions which it implements
25465     to always fail with ENOSYS.  Some functions are actually named
25466     something starting with __ and the normal name is an alias.  */
25467 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25468 choke me
25469 #endif
25470
25471 int
25472 main ()
25473 {
25474 return cthread_fork ();
25475   ;
25476   return 0;
25477 }
25478 _ACEOF
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (ac_try="$ac_link"
25481 case "(($ac_try" in
25482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483   *) ac_try_echo=$ac_try;;
25484 esac
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486   (eval "$ac_link") 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } && {
25493          test -z "$ac_c_werror_flag" ||
25494          test ! -s conftest.err
25495        } && test -s conftest$ac_exeext &&
25496        $as_test_x conftest$ac_exeext; then
25497   ac_cv_func_cthread_fork=yes
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502         ac_cv_func_cthread_fork=no
25503 fi
25504
25505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25506       conftest$ac_exeext conftest.$ac_ext
25507 fi
25508 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25509 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25510 if test $ac_cv_func_cthread_fork = yes; then
25511   ol_link_threads=yes
25512 fi
25513
25514
25515                 if test $ol_link_threads = no ; then
25516                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25517 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25518 if test "${ol_cv_cthread_all_load+set}" = set; then
25519   echo $ECHO_N "(cached) $ECHO_C" >&6
25520 else
25521
25522                                                                 save_LIBS="$LIBS"
25523                                 LIBS="-all_load $LIBS"
25524                                 cat >conftest.$ac_ext <<_ACEOF
25525 /* confdefs.h.  */
25526 _ACEOF
25527 cat confdefs.h >>conftest.$ac_ext
25528 cat >>conftest.$ac_ext <<_ACEOF
25529 /* end confdefs.h.  */
25530 #include <mach/cthreads.h>
25531 int
25532 main ()
25533 {
25534
25535                                         cthread_fork((void *)0, (void *)0);
25536
25537   ;
25538   return 0;
25539 }
25540 _ACEOF
25541 rm -f conftest.$ac_objext conftest$ac_exeext
25542 if { (ac_try="$ac_link"
25543 case "(($ac_try" in
25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545   *) ac_try_echo=$ac_try;;
25546 esac
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548   (eval "$ac_link") 2>conftest.er1
25549   ac_status=$?
25550   grep -v '^ *+' conftest.er1 >conftest.err
25551   rm -f conftest.er1
25552   cat conftest.err >&5
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); } && {
25555          test -z "$ac_c_werror_flag" ||
25556          test ! -s conftest.err
25557        } && test -s conftest$ac_exeext &&
25558        $as_test_x conftest$ac_exeext; then
25559   ol_cv_cthread_all_load=yes
25560 else
25561   echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25563
25564         ol_cv_cthread_all_load=no
25565 fi
25566
25567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25568       conftest$ac_exeext conftest.$ac_ext
25569                                                                 LIBS="$save_LIBS"
25570
25571 fi
25572 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25573 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25574
25575                         if test $ol_cv_cthread_all_load = yes ; then
25576                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25577                                 ol_link_threads=mach
25578                                 ol_with_threads=found
25579                         fi
25580                 fi
25581
25582         elif test $ac_cv_header_cthreads_h = yes ; then
25583
25584                 ol_with_threads=found
25585
25586                                 save_LIBS="$LIBS"
25587                 LIBS="$LIBS -lthreads"
25588                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25589 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25590 if test "${ac_cv_func_cthread_fork+set}" = set; then
25591   echo $ECHO_N "(cached) $ECHO_C" >&6
25592 else
25593   cat >conftest.$ac_ext <<_ACEOF
25594 /* confdefs.h.  */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h.  */
25599 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25601 #define cthread_fork innocuous_cthread_fork
25602
25603 /* System header to define __stub macros and hopefully few prototypes,
25604     which can conflict with char cthread_fork (); below.
25605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25606     <limits.h> exists even on freestanding compilers.  */
25607
25608 #ifdef __STDC__
25609 # include <limits.h>
25610 #else
25611 # include <assert.h>
25612 #endif
25613
25614 #undef cthread_fork
25615
25616 /* Override any GCC internal prototype to avoid an error.
25617    Use char because int might match the return type of a GCC
25618    builtin and then its argument prototype would still apply.  */
25619 #ifdef __cplusplus
25620 extern "C"
25621 #endif
25622 char cthread_fork ();
25623 /* The GNU C library defines this for functions which it implements
25624     to always fail with ENOSYS.  Some functions are actually named
25625     something starting with __ and the normal name is an alias.  */
25626 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25627 choke me
25628 #endif
25629
25630 int
25631 main ()
25632 {
25633 return cthread_fork ();
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
25640 case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_link") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_c_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest$ac_exeext &&
25655        $as_test_x conftest$ac_exeext; then
25656   ac_cv_func_cthread_fork=yes
25657 else
25658   echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25660
25661         ac_cv_func_cthread_fork=no
25662 fi
25663
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665       conftest$ac_exeext conftest.$ac_ext
25666 fi
25667 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25668 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25669 if test $ac_cv_func_cthread_fork = yes; then
25670   ol_link_threads=yes
25671 fi
25672
25673                 LIBS="$save_LIBS"
25674
25675                 if test $ol_link_threads = yes ; then
25676                         LTHREAD_LIBS="-lthreads"
25677                         ol_link_threads=mach
25678                         ol_with_threads=found
25679                 else
25680                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25681 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25682    { (exit 1); exit 1; }; }
25683                 fi
25684
25685         elif test $ol_with_threads = mach ; then
25686                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25687 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25688    { (exit 1); exit 1; }; }
25689         fi
25690
25691         if test $ol_link_threads = mach ; then
25692
25693 cat >>confdefs.h <<\_ACEOF
25694 #define HAVE_MACH_CTHREADS 1
25695 _ACEOF
25696
25697         elif test $ol_with_threads = found ; then
25698                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25699 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25700    { (exit 1); exit 1; }; }
25701         fi
25702         ;;
25703 esac
25704
25705 case $ol_with_threads in auto | yes | pth)
25706
25707
25708 for ac_header in pth.h
25709 do
25710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25715   echo $ECHO_N "(cached) $ECHO_C" >&6
25716 fi
25717 ac_res=`eval echo '${'$as_ac_Header'}'`
25718                { echo "$as_me:$LINENO: result: $ac_res" >&5
25719 echo "${ECHO_T}$ac_res" >&6; }
25720 else
25721   # Is the header compilable?
25722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h.  */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h.  */
25730 $ac_includes_default
25731 #include <$ac_header>
25732 _ACEOF
25733 rm -f conftest.$ac_objext
25734 if { (ac_try="$ac_compile"
25735 case "(($ac_try" in
25736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737   *) ac_try_echo=$ac_try;;
25738 esac
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740   (eval "$ac_compile") 2>conftest.er1
25741   ac_status=$?
25742   grep -v '^ *+' conftest.er1 >conftest.err
25743   rm -f conftest.er1
25744   cat conftest.err >&5
25745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746   (exit $ac_status); } && {
25747          test -z "$ac_c_werror_flag" ||
25748          test ! -s conftest.err
25749        } && test -s conftest.$ac_objext; then
25750   ac_header_compiler=yes
25751 else
25752   echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25754
25755         ac_header_compiler=no
25756 fi
25757
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25760 echo "${ECHO_T}$ac_header_compiler" >&6; }
25761
25762 # Is the header present?
25763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25765 cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h.  */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h.  */
25771 #include <$ac_header>
25772 _ACEOF
25773 if { (ac_try="$ac_cpp conftest.$ac_ext"
25774 case "(($ac_try" in
25775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776   *) ac_try_echo=$ac_try;;
25777 esac
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } >/dev/null && {
25786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25787          test ! -s conftest.err
25788        }; then
25789   ac_header_preproc=yes
25790 else
25791   echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794   ac_header_preproc=no
25795 fi
25796
25797 rm -f conftest.err conftest.$ac_ext
25798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25799 echo "${ECHO_T}$ac_header_preproc" >&6; }
25800
25801 # So?  What about this header?
25802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25803   yes:no: )
25804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25808     ac_header_preproc=yes
25809     ;;
25810   no:yes:* )
25811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25823     ( cat <<\_ASBOX
25824 ## --------------------------------------------- ##
25825 ## Report this to <http://www.openldap.org/its/> ##
25826 ## --------------------------------------------- ##
25827 _ASBOX
25828      ) | sed "s/^/$as_me: WARNING:     /" >&2
25829     ;;
25830 esac
25831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25834   echo $ECHO_N "(cached) $ECHO_C" >&6
25835 else
25836   eval "$as_ac_Header=\$ac_header_preproc"
25837 fi
25838 ac_res=`eval echo '${'$as_ac_Header'}'`
25839                { echo "$as_me:$LINENO: result: $ac_res" >&5
25840 echo "${ECHO_T}$ac_res" >&6; }
25841
25842 fi
25843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25844   cat >>confdefs.h <<_ACEOF
25845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25846 _ACEOF
25847
25848 fi
25849
25850 done
25851
25852
25853         if test $ac_cv_header_pth_h = yes ; then
25854                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25855 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25856 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25857   echo $ECHO_N "(cached) $ECHO_C" >&6
25858 else
25859   ac_check_lib_save_LIBS=$LIBS
25860 LIBS="-lpth  $LIBS"
25861 cat >conftest.$ac_ext <<_ACEOF
25862 /* confdefs.h.  */
25863 _ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h.  */
25867
25868 /* Override any GCC internal prototype to avoid an error.
25869    Use char because int might match the return type of a GCC
25870    builtin and then its argument prototype would still apply.  */
25871 #ifdef __cplusplus
25872 extern "C"
25873 #endif
25874 char pth_version ();
25875 int
25876 main ()
25877 {
25878 return pth_version ();
25879   ;
25880   return 0;
25881 }
25882 _ACEOF
25883 rm -f conftest.$ac_objext conftest$ac_exeext
25884 if { (ac_try="$ac_link"
25885 case "(($ac_try" in
25886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887   *) ac_try_echo=$ac_try;;
25888 esac
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890   (eval "$ac_link") 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } && {
25897          test -z "$ac_c_werror_flag" ||
25898          test ! -s conftest.err
25899        } && test -s conftest$ac_exeext &&
25900        $as_test_x conftest$ac_exeext; then
25901   ac_cv_lib_pth_pth_version=yes
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906         ac_cv_lib_pth_pth_version=no
25907 fi
25908
25909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25910       conftest$ac_exeext conftest.$ac_ext
25911 LIBS=$ac_check_lib_save_LIBS
25912 fi
25913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25914 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25915 if test $ac_cv_lib_pth_pth_version = yes; then
25916   have_pth=yes
25917 else
25918   have_pth=no
25919 fi
25920
25921
25922                 if test $have_pth = yes ; then
25923
25924 cat >>confdefs.h <<\_ACEOF
25925 #define HAVE_GNU_PTH 1
25926 _ACEOF
25927
25928                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25929                         ol_link_threads=pth
25930                         ol_with_threads=found
25931
25932                         if test $ol_with_yielding_select = auto ; then
25933                                 ol_with_yielding_select=yes
25934                         fi
25935                 fi
25936         fi
25937         ;;
25938 esac
25939
25940 case $ol_with_threads in auto | yes | lwp)
25941
25942
25943
25944 for ac_header in thread.h synch.h
25945 do
25946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25951   echo $ECHO_N "(cached) $ECHO_C" >&6
25952 fi
25953 ac_res=`eval echo '${'$as_ac_Header'}'`
25954                { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25956 else
25957   # Is the header compilable?
25958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25960 cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966 $ac_includes_default
25967 #include <$ac_header>
25968 _ACEOF
25969 rm -f conftest.$ac_objext
25970 if { (ac_try="$ac_compile"
25971 case "(($ac_try" in
25972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973   *) ac_try_echo=$ac_try;;
25974 esac
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976   (eval "$ac_compile") 2>conftest.er1
25977   ac_status=$?
25978   grep -v '^ *+' conftest.er1 >conftest.err
25979   rm -f conftest.er1
25980   cat conftest.err >&5
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); } && {
25983          test -z "$ac_c_werror_flag" ||
25984          test ! -s conftest.err
25985        } && test -s conftest.$ac_objext; then
25986   ac_header_compiler=yes
25987 else
25988   echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25990
25991         ac_header_compiler=no
25992 fi
25993
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25996 echo "${ECHO_T}$ac_header_compiler" >&6; }
25997
25998 # Is the header present?
25999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26001 cat >conftest.$ac_ext <<_ACEOF
26002 /* confdefs.h.  */
26003 _ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h.  */
26007 #include <$ac_header>
26008 _ACEOF
26009 if { (ac_try="$ac_cpp conftest.$ac_ext"
26010 case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26016   ac_status=$?
26017   grep -v '^ *+' conftest.er1 >conftest.err
26018   rm -f conftest.er1
26019   cat conftest.err >&5
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); } >/dev/null && {
26022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26023          test ! -s conftest.err
26024        }; then
26025   ac_header_preproc=yes
26026 else
26027   echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26029
26030   ac_header_preproc=no
26031 fi
26032
26033 rm -f conftest.err conftest.$ac_ext
26034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26035 echo "${ECHO_T}$ac_header_preproc" >&6; }
26036
26037 # So?  What about this header?
26038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26039   yes:no: )
26040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26044     ac_header_preproc=yes
26045     ;;
26046   no:yes:* )
26047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26059     ( cat <<\_ASBOX
26060 ## --------------------------------------------- ##
26061 ## Report this to <http://www.openldap.org/its/> ##
26062 ## --------------------------------------------- ##
26063 _ASBOX
26064      ) | sed "s/^/$as_me: WARNING:     /" >&2
26065     ;;
26066 esac
26067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26070   echo $ECHO_N "(cached) $ECHO_C" >&6
26071 else
26072   eval "$as_ac_Header=\$ac_header_preproc"
26073 fi
26074 ac_res=`eval echo '${'$as_ac_Header'}'`
26075                { echo "$as_me:$LINENO: result: $ac_res" >&5
26076 echo "${ECHO_T}$ac_res" >&6; }
26077
26078 fi
26079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26080   cat >>confdefs.h <<_ACEOF
26081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26082 _ACEOF
26083
26084 fi
26085
26086 done
26087
26088         if test $ac_cv_header_thread_h = yes &&
26089            test $ac_cv_header_synch_h = yes ; then
26090                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26091 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26092 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26093   echo $ECHO_N "(cached) $ECHO_C" >&6
26094 else
26095   ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-lthread  $LIBS"
26097 cat >conftest.$ac_ext <<_ACEOF
26098 /* confdefs.h.  */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h.  */
26103
26104 /* Override any GCC internal prototype to avoid an error.
26105    Use char because int might match the return type of a GCC
26106    builtin and then its argument prototype would still apply.  */
26107 #ifdef __cplusplus
26108 extern "C"
26109 #endif
26110 char thr_create ();
26111 int
26112 main ()
26113 {
26114 return thr_create ();
26115   ;
26116   return 0;
26117 }
26118 _ACEOF
26119 rm -f conftest.$ac_objext conftest$ac_exeext
26120 if { (ac_try="$ac_link"
26121 case "(($ac_try" in
26122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123   *) ac_try_echo=$ac_try;;
26124 esac
26125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126   (eval "$ac_link") 2>conftest.er1
26127   ac_status=$?
26128   grep -v '^ *+' conftest.er1 >conftest.err
26129   rm -f conftest.er1
26130   cat conftest.err >&5
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); } && {
26133          test -z "$ac_c_werror_flag" ||
26134          test ! -s conftest.err
26135        } && test -s conftest$ac_exeext &&
26136        $as_test_x conftest$ac_exeext; then
26137   ac_cv_lib_thread_thr_create=yes
26138 else
26139   echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26141
26142         ac_cv_lib_thread_thr_create=no
26143 fi
26144
26145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26146       conftest$ac_exeext conftest.$ac_ext
26147 LIBS=$ac_check_lib_save_LIBS
26148 fi
26149 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26150 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26151 if test $ac_cv_lib_thread_thr_create = yes; then
26152   have_thr=yes
26153 else
26154   have_thr=no
26155 fi
26156
26157
26158                 if test $have_thr = yes ; then
26159
26160 cat >>confdefs.h <<\_ACEOF
26161 #define HAVE_THR 1
26162 _ACEOF
26163
26164                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26165                         ol_link_threads=thr
26166
26167                         if test $ol_with_yielding_select = auto ; then
26168                                 ol_with_yielding_select=yes
26169                         fi
26170
26171
26172
26173 for ac_func in \
26174                                 thr_setconcurrency \
26175                                 thr_getconcurrency \
26176
26177 do
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26182   echo $ECHO_N "(cached) $ECHO_C" >&6
26183 else
26184   cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26192 #define $ac_func innocuous_$ac_func
26193
26194 /* System header to define __stub macros and hopefully few prototypes,
26195     which can conflict with char $ac_func (); below.
26196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197     <limits.h> exists even on freestanding compilers.  */
26198
26199 #ifdef __STDC__
26200 # include <limits.h>
26201 #else
26202 # include <assert.h>
26203 #endif
26204
26205 #undef $ac_func
26206
26207 /* Override any GCC internal prototype to avoid an error.
26208    Use char because int might match the return type of a GCC
26209    builtin and then its argument prototype would still apply.  */
26210 #ifdef __cplusplus
26211 extern "C"
26212 #endif
26213 char $ac_func ();
26214 /* The GNU C library defines this for functions which it implements
26215     to always fail with ENOSYS.  Some functions are actually named
26216     something starting with __ and the normal name is an alias.  */
26217 #if defined __stub_$ac_func || defined __stub___$ac_func
26218 choke me
26219 #endif
26220
26221 int
26222 main ()
26223 {
26224 return $ac_func ();
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236   (eval "$ac_link") 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } && {
26243          test -z "$ac_c_werror_flag" ||
26244          test ! -s conftest.err
26245        } && test -s conftest$ac_exeext &&
26246        $as_test_x conftest$ac_exeext; then
26247   eval "$as_ac_var=yes"
26248 else
26249   echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252         eval "$as_ac_var=no"
26253 fi
26254
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256       conftest$ac_exeext conftest.$ac_ext
26257 fi
26258 ac_res=`eval echo '${'$as_ac_var'}'`
26259                { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26261 if test `eval echo '${'$as_ac_var'}'` = yes; then
26262   cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26264 _ACEOF
26265
26266 fi
26267 done
26268
26269                 fi
26270         fi
26271
26272
26273 for ac_header in lwp/lwp.h
26274 do
26275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26277   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26280   echo $ECHO_N "(cached) $ECHO_C" >&6
26281 fi
26282 ac_res=`eval echo '${'$as_ac_Header'}'`
26283                { echo "$as_me:$LINENO: result: $ac_res" >&5
26284 echo "${ECHO_T}$ac_res" >&6; }
26285 else
26286   # Is the header compilable?
26287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26289 cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h.  */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h.  */
26295 $ac_includes_default
26296 #include <$ac_header>
26297 _ACEOF
26298 rm -f conftest.$ac_objext
26299 if { (ac_try="$ac_compile"
26300 case "(($ac_try" in
26301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302   *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305   (eval "$ac_compile") 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } && {
26312          test -z "$ac_c_werror_flag" ||
26313          test ! -s conftest.err
26314        } && test -s conftest.$ac_objext; then
26315   ac_header_compiler=yes
26316 else
26317   echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320         ac_header_compiler=no
26321 fi
26322
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26325 echo "${ECHO_T}$ac_header_compiler" >&6; }
26326
26327 # Is the header present?
26328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26330 cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h.  */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h.  */
26336 #include <$ac_header>
26337 _ACEOF
26338 if { (ac_try="$ac_cpp conftest.$ac_ext"
26339 case "(($ac_try" in
26340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341   *) ac_try_echo=$ac_try;;
26342 esac
26343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26345   ac_status=$?
26346   grep -v '^ *+' conftest.er1 >conftest.err
26347   rm -f conftest.er1
26348   cat conftest.err >&5
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); } >/dev/null && {
26351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26352          test ! -s conftest.err
26353        }; then
26354   ac_header_preproc=yes
26355 else
26356   echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26358
26359   ac_header_preproc=no
26360 fi
26361
26362 rm -f conftest.err conftest.$ac_ext
26363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26364 echo "${ECHO_T}$ac_header_preproc" >&6; }
26365
26366 # So?  What about this header?
26367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26368   yes:no: )
26369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26373     ac_header_preproc=yes
26374     ;;
26375   no:yes:* )
26376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26388     ( cat <<\_ASBOX
26389 ## --------------------------------------------- ##
26390 ## Report this to <http://www.openldap.org/its/> ##
26391 ## --------------------------------------------- ##
26392 _ASBOX
26393      ) | sed "s/^/$as_me: WARNING:     /" >&2
26394     ;;
26395 esac
26396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26399   echo $ECHO_N "(cached) $ECHO_C" >&6
26400 else
26401   eval "$as_ac_Header=\$ac_header_preproc"
26402 fi
26403 ac_res=`eval echo '${'$as_ac_Header'}'`
26404                { echo "$as_me:$LINENO: result: $ac_res" >&5
26405 echo "${ECHO_T}$ac_res" >&6; }
26406
26407 fi
26408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26409   cat >>confdefs.h <<_ACEOF
26410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26411 _ACEOF
26412
26413 fi
26414
26415 done
26416
26417         if test $ac_cv_header_lwp_lwp_h = yes ; then
26418                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26419 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26420 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26421   echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423   ac_check_lib_save_LIBS=$LIBS
26424 LIBS="-llwp  $LIBS"
26425 cat >conftest.$ac_ext <<_ACEOF
26426 /* confdefs.h.  */
26427 _ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h.  */
26431
26432 /* Override any GCC internal prototype to avoid an error.
26433    Use char because int might match the return type of a GCC
26434    builtin and then its argument prototype would still apply.  */
26435 #ifdef __cplusplus
26436 extern "C"
26437 #endif
26438 char lwp_create ();
26439 int
26440 main ()
26441 {
26442 return lwp_create ();
26443   ;
26444   return 0;
26445 }
26446 _ACEOF
26447 rm -f conftest.$ac_objext conftest$ac_exeext
26448 if { (ac_try="$ac_link"
26449 case "(($ac_try" in
26450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451   *) ac_try_echo=$ac_try;;
26452 esac
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454   (eval "$ac_link") 2>conftest.er1
26455   ac_status=$?
26456   grep -v '^ *+' conftest.er1 >conftest.err
26457   rm -f conftest.er1
26458   cat conftest.err >&5
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); } && {
26461          test -z "$ac_c_werror_flag" ||
26462          test ! -s conftest.err
26463        } && test -s conftest$ac_exeext &&
26464        $as_test_x conftest$ac_exeext; then
26465   ac_cv_lib_lwp_lwp_create=yes
26466 else
26467   echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26469
26470         ac_cv_lib_lwp_lwp_create=no
26471 fi
26472
26473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26474       conftest$ac_exeext conftest.$ac_ext
26475 LIBS=$ac_check_lib_save_LIBS
26476 fi
26477 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26478 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26479 if test $ac_cv_lib_lwp_lwp_create = yes; then
26480   have_lwp=yes
26481 else
26482   have_lwp=no
26483 fi
26484
26485
26486                 if test $have_lwp = yes ; then
26487
26488 cat >>confdefs.h <<\_ACEOF
26489 #define HAVE_LWP 1
26490 _ACEOF
26491
26492                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26493                         ol_link_threads=lwp
26494
26495                         if test $ol_with_yielding_select = auto ; then
26496                                 ol_with_yielding_select=no
26497                         fi
26498                 fi
26499         fi
26500         ;;
26501 esac
26502
26503 if test $ol_with_yielding_select = yes ; then
26504
26505 cat >>confdefs.h <<\_ACEOF
26506 #define HAVE_YIELDING_SELECT 1
26507 _ACEOF
26508
26509 fi
26510
26511 if test $ol_with_threads = manual ; then
26512                 ol_link_threads=yes
26513
26514         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26515 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26516
26517
26518
26519 for ac_header in pthread.h sched.h
26520 do
26521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26523   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26526   echo $ECHO_N "(cached) $ECHO_C" >&6
26527 fi
26528 ac_res=`eval echo '${'$as_ac_Header'}'`
26529                { echo "$as_me:$LINENO: result: $ac_res" >&5
26530 echo "${ECHO_T}$ac_res" >&6; }
26531 else
26532   # Is the header compilable?
26533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26535 cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 $ac_includes_default
26542 #include <$ac_header>
26543 _ACEOF
26544 rm -f conftest.$ac_objext
26545 if { (ac_try="$ac_compile"
26546 case "(($ac_try" in
26547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548   *) ac_try_echo=$ac_try;;
26549 esac
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551   (eval "$ac_compile") 2>conftest.er1
26552   ac_status=$?
26553   grep -v '^ *+' conftest.er1 >conftest.err
26554   rm -f conftest.er1
26555   cat conftest.err >&5
26556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); } && {
26558          test -z "$ac_c_werror_flag" ||
26559          test ! -s conftest.err
26560        } && test -s conftest.$ac_objext; then
26561   ac_header_compiler=yes
26562 else
26563   echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26565
26566         ac_header_compiler=no
26567 fi
26568
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26571 echo "${ECHO_T}$ac_header_compiler" >&6; }
26572
26573 # Is the header present?
26574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26576 cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h.  */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h.  */
26582 #include <$ac_header>
26583 _ACEOF
26584 if { (ac_try="$ac_cpp conftest.$ac_ext"
26585 case "(($ac_try" in
26586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26587   *) ac_try_echo=$ac_try;;
26588 esac
26589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26591   ac_status=$?
26592   grep -v '^ *+' conftest.er1 >conftest.err
26593   rm -f conftest.er1
26594   cat conftest.err >&5
26595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596   (exit $ac_status); } >/dev/null && {
26597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26598          test ! -s conftest.err
26599        }; then
26600   ac_header_preproc=yes
26601 else
26602   echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605   ac_header_preproc=no
26606 fi
26607
26608 rm -f conftest.err conftest.$ac_ext
26609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26610 echo "${ECHO_T}$ac_header_preproc" >&6; }
26611
26612 # So?  What about this header?
26613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26614   yes:no: )
26615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26619     ac_header_preproc=yes
26620     ;;
26621   no:yes:* )
26622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26634     ( cat <<\_ASBOX
26635 ## --------------------------------------------- ##
26636 ## Report this to <http://www.openldap.org/its/> ##
26637 ## --------------------------------------------- ##
26638 _ASBOX
26639      ) | sed "s/^/$as_me: WARNING:     /" >&2
26640     ;;
26641 esac
26642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26645   echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647   eval "$as_ac_Header=\$ac_header_preproc"
26648 fi
26649 ac_res=`eval echo '${'$as_ac_Header'}'`
26650                { echo "$as_me:$LINENO: result: $ac_res" >&5
26651 echo "${ECHO_T}$ac_res" >&6; }
26652
26653 fi
26654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26655   cat >>confdefs.h <<_ACEOF
26656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26657 _ACEOF
26658
26659 fi
26660
26661 done
26662
26663
26664
26665 for ac_func in sched_yield pthread_yield
26666 do
26667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26671   echo $ECHO_N "(cached) $ECHO_C" >&6
26672 else
26673   cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26681 #define $ac_func innocuous_$ac_func
26682
26683 /* System header to define __stub macros and hopefully few prototypes,
26684     which can conflict with char $ac_func (); below.
26685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26686     <limits.h> exists even on freestanding compilers.  */
26687
26688 #ifdef __STDC__
26689 # include <limits.h>
26690 #else
26691 # include <assert.h>
26692 #endif
26693
26694 #undef $ac_func
26695
26696 /* Override any GCC internal prototype to avoid an error.
26697    Use char because int might match the return type of a GCC
26698    builtin and then its argument prototype would still apply.  */
26699 #ifdef __cplusplus
26700 extern "C"
26701 #endif
26702 char $ac_func ();
26703 /* The GNU C library defines this for functions which it implements
26704     to always fail with ENOSYS.  Some functions are actually named
26705     something starting with __ and the normal name is an alias.  */
26706 #if defined __stub_$ac_func || defined __stub___$ac_func
26707 choke me
26708 #endif
26709
26710 int
26711 main ()
26712 {
26713 return $ac_func ();
26714   ;
26715   return 0;
26716 }
26717 _ACEOF
26718 rm -f conftest.$ac_objext conftest$ac_exeext
26719 if { (ac_try="$ac_link"
26720 case "(($ac_try" in
26721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26722   *) ac_try_echo=$ac_try;;
26723 esac
26724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26725   (eval "$ac_link") 2>conftest.er1
26726   ac_status=$?
26727   grep -v '^ *+' conftest.er1 >conftest.err
26728   rm -f conftest.er1
26729   cat conftest.err >&5
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); } && {
26732          test -z "$ac_c_werror_flag" ||
26733          test ! -s conftest.err
26734        } && test -s conftest$ac_exeext &&
26735        $as_test_x conftest$ac_exeext; then
26736   eval "$as_ac_var=yes"
26737 else
26738   echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26740
26741         eval "$as_ac_var=no"
26742 fi
26743
26744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26745       conftest$ac_exeext conftest.$ac_ext
26746 fi
26747 ac_res=`eval echo '${'$as_ac_var'}'`
26748                { echo "$as_me:$LINENO: result: $ac_res" >&5
26749 echo "${ECHO_T}$ac_res" >&6; }
26750 if test `eval echo '${'$as_ac_var'}'` = yes; then
26751   cat >>confdefs.h <<_ACEOF
26752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26753 _ACEOF
26754
26755 fi
26756 done
26757
26758
26759         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26760 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26761 if test "${ol_cv_header_linux_threads+set}" = set; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764   cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770 #include <pthread.h>
26771 _ACEOF
26772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26773   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26774   ol_cv_header_linux_threads=yes
26775 else
26776   ol_cv_header_linux_threads=no
26777 fi
26778 rm -f conftest*
26779
26780
26781 fi
26782 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26783 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26784         if test $ol_cv_header_linux_threads = yes; then
26785
26786 cat >>confdefs.h <<\_ACEOF
26787 #define HAVE_LINUX_THREADS 1
26788 _ACEOF
26789
26790         fi
26791
26792
26793
26794 for ac_header in mach/cthreads.h
26795 do
26796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26798   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 fi
26803 ac_res=`eval echo '${'$as_ac_Header'}'`
26804                { echo "$as_me:$LINENO: result: $ac_res" >&5
26805 echo "${ECHO_T}$ac_res" >&6; }
26806 else
26807   # Is the header compilable?
26808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26810 cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816 $ac_includes_default
26817 #include <$ac_header>
26818 _ACEOF
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823   *) ac_try_echo=$ac_try;;
26824 esac
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826   (eval "$ac_compile") 2>conftest.er1
26827   ac_status=$?
26828   grep -v '^ *+' conftest.er1 >conftest.err
26829   rm -f conftest.er1
26830   cat conftest.err >&5
26831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832   (exit $ac_status); } && {
26833          test -z "$ac_c_werror_flag" ||
26834          test ! -s conftest.err
26835        } && test -s conftest.$ac_objext; then
26836   ac_header_compiler=yes
26837 else
26838   echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26840
26841         ac_header_compiler=no
26842 fi
26843
26844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26846 echo "${ECHO_T}$ac_header_compiler" >&6; }
26847
26848 # Is the header present?
26849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26851 cat >conftest.$ac_ext <<_ACEOF
26852 /* confdefs.h.  */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h.  */
26857 #include <$ac_header>
26858 _ACEOF
26859 if { (ac_try="$ac_cpp conftest.$ac_ext"
26860 case "(($ac_try" in
26861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862   *) ac_try_echo=$ac_try;;
26863 esac
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26866   ac_status=$?
26867   grep -v '^ *+' conftest.er1 >conftest.err
26868   rm -f conftest.er1
26869   cat conftest.err >&5
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); } >/dev/null && {
26872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26873          test ! -s conftest.err
26874        }; then
26875   ac_header_preproc=yes
26876 else
26877   echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26879
26880   ac_header_preproc=no
26881 fi
26882
26883 rm -f conftest.err conftest.$ac_ext
26884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26885 echo "${ECHO_T}$ac_header_preproc" >&6; }
26886
26887 # So?  What about this header?
26888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26889   yes:no: )
26890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26894     ac_header_preproc=yes
26895     ;;
26896   no:yes:* )
26897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26909     ( cat <<\_ASBOX
26910 ## --------------------------------------------- ##
26911 ## Report this to <http://www.openldap.org/its/> ##
26912 ## --------------------------------------------- ##
26913 _ASBOX
26914      ) | sed "s/^/$as_me: WARNING:     /" >&2
26915     ;;
26916 esac
26917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26920   echo $ECHO_N "(cached) $ECHO_C" >&6
26921 else
26922   eval "$as_ac_Header=\$ac_header_preproc"
26923 fi
26924 ac_res=`eval echo '${'$as_ac_Header'}'`
26925                { echo "$as_me:$LINENO: result: $ac_res" >&5
26926 echo "${ECHO_T}$ac_res" >&6; }
26927
26928 fi
26929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26930   cat >>confdefs.h <<_ACEOF
26931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26932 _ACEOF
26933
26934 fi
26935
26936 done
26937
26938
26939 for ac_header in lwp/lwp.h
26940 do
26941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26943   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26946   echo $ECHO_N "(cached) $ECHO_C" >&6
26947 fi
26948 ac_res=`eval echo '${'$as_ac_Header'}'`
26949                { echo "$as_me:$LINENO: result: $ac_res" >&5
26950 echo "${ECHO_T}$ac_res" >&6; }
26951 else
26952   # Is the header compilable?
26953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961 $ac_includes_default
26962 #include <$ac_header>
26963 _ACEOF
26964 rm -f conftest.$ac_objext
26965 if { (ac_try="$ac_compile"
26966 case "(($ac_try" in
26967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968   *) ac_try_echo=$ac_try;;
26969 esac
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971   (eval "$ac_compile") 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } && {
26978          test -z "$ac_c_werror_flag" ||
26979          test ! -s conftest.err
26980        } && test -s conftest.$ac_objext; then
26981   ac_header_compiler=yes
26982 else
26983   echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986         ac_header_compiler=no
26987 fi
26988
26989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26991 echo "${ECHO_T}$ac_header_compiler" >&6; }
26992
26993 # Is the header present?
26994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26996 cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002 #include <$ac_header>
27003 _ACEOF
27004 if { (ac_try="$ac_cpp conftest.$ac_ext"
27005 case "(($ac_try" in
27006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007   *) ac_try_echo=$ac_try;;
27008 esac
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27011   ac_status=$?
27012   grep -v '^ *+' conftest.er1 >conftest.err
27013   rm -f conftest.er1
27014   cat conftest.err >&5
27015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016   (exit $ac_status); } >/dev/null && {
27017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27018          test ! -s conftest.err
27019        }; then
27020   ac_header_preproc=yes
27021 else
27022   echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27024
27025   ac_header_preproc=no
27026 fi
27027
27028 rm -f conftest.err conftest.$ac_ext
27029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27030 echo "${ECHO_T}$ac_header_preproc" >&6; }
27031
27032 # So?  What about this header?
27033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27034   yes:no: )
27035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27039     ac_header_preproc=yes
27040     ;;
27041   no:yes:* )
27042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27054     ( cat <<\_ASBOX
27055 ## --------------------------------------------- ##
27056 ## Report this to <http://www.openldap.org/its/> ##
27057 ## --------------------------------------------- ##
27058 _ASBOX
27059      ) | sed "s/^/$as_me: WARNING:     /" >&2
27060     ;;
27061 esac
27062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27065   echo $ECHO_N "(cached) $ECHO_C" >&6
27066 else
27067   eval "$as_ac_Header=\$ac_header_preproc"
27068 fi
27069 ac_res=`eval echo '${'$as_ac_Header'}'`
27070                { echo "$as_me:$LINENO: result: $ac_res" >&5
27071 echo "${ECHO_T}$ac_res" >&6; }
27072
27073 fi
27074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27075   cat >>confdefs.h <<_ACEOF
27076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27077 _ACEOF
27078
27079 fi
27080
27081 done
27082
27083
27084
27085 for ac_header in thread.h synch.h
27086 do
27087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27089   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27092   echo $ECHO_N "(cached) $ECHO_C" >&6
27093 fi
27094 ac_res=`eval echo '${'$as_ac_Header'}'`
27095                { echo "$as_me:$LINENO: result: $ac_res" >&5
27096 echo "${ECHO_T}$ac_res" >&6; }
27097 else
27098   # Is the header compilable?
27099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27101 cat >conftest.$ac_ext <<_ACEOF
27102 /* confdefs.h.  */
27103 _ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h.  */
27107 $ac_includes_default
27108 #include <$ac_header>
27109 _ACEOF
27110 rm -f conftest.$ac_objext
27111 if { (ac_try="$ac_compile"
27112 case "(($ac_try" in
27113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114   *) ac_try_echo=$ac_try;;
27115 esac
27116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117   (eval "$ac_compile") 2>conftest.er1
27118   ac_status=$?
27119   grep -v '^ *+' conftest.er1 >conftest.err
27120   rm -f conftest.er1
27121   cat conftest.err >&5
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); } && {
27124          test -z "$ac_c_werror_flag" ||
27125          test ! -s conftest.err
27126        } && test -s conftest.$ac_objext; then
27127   ac_header_compiler=yes
27128 else
27129   echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27131
27132         ac_header_compiler=no
27133 fi
27134
27135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27137 echo "${ECHO_T}$ac_header_compiler" >&6; }
27138
27139 # Is the header present?
27140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27142 cat >conftest.$ac_ext <<_ACEOF
27143 /* confdefs.h.  */
27144 _ACEOF
27145 cat confdefs.h >>conftest.$ac_ext
27146 cat >>conftest.$ac_ext <<_ACEOF
27147 /* end confdefs.h.  */
27148 #include <$ac_header>
27149 _ACEOF
27150 if { (ac_try="$ac_cpp conftest.$ac_ext"
27151 case "(($ac_try" in
27152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153   *) ac_try_echo=$ac_try;;
27154 esac
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27157   ac_status=$?
27158   grep -v '^ *+' conftest.er1 >conftest.err
27159   rm -f conftest.er1
27160   cat conftest.err >&5
27161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); } >/dev/null && {
27163          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27164          test ! -s conftest.err
27165        }; then
27166   ac_header_preproc=yes
27167 else
27168   echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27170
27171   ac_header_preproc=no
27172 fi
27173
27174 rm -f conftest.err conftest.$ac_ext
27175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27176 echo "${ECHO_T}$ac_header_preproc" >&6; }
27177
27178 # So?  What about this header?
27179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27180   yes:no: )
27181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27185     ac_header_preproc=yes
27186     ;;
27187   no:yes:* )
27188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27200     ( cat <<\_ASBOX
27201 ## --------------------------------------------- ##
27202 ## Report this to <http://www.openldap.org/its/> ##
27203 ## --------------------------------------------- ##
27204 _ASBOX
27205      ) | sed "s/^/$as_me: WARNING:     /" >&2
27206     ;;
27207 esac
27208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27211   echo $ECHO_N "(cached) $ECHO_C" >&6
27212 else
27213   eval "$as_ac_Header=\$ac_header_preproc"
27214 fi
27215 ac_res=`eval echo '${'$as_ac_Header'}'`
27216                { echo "$as_me:$LINENO: result: $ac_res" >&5
27217 echo "${ECHO_T}$ac_res" >&6; }
27218
27219 fi
27220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27221   cat >>confdefs.h <<_ACEOF
27222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27223 _ACEOF
27224
27225 fi
27226
27227 done
27228
27229 fi
27230
27231 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27232                         cat >>confdefs.h <<\_ACEOF
27233 #define REENTRANT 1
27234 _ACEOF
27235
27236         cat >>confdefs.h <<\_ACEOF
27237 #define _REENTRANT 1
27238 _ACEOF
27239
27240         cat >>confdefs.h <<\_ACEOF
27241 #define THREAD_SAFE 1
27242 _ACEOF
27243
27244         cat >>confdefs.h <<\_ACEOF
27245 #define _THREAD_SAFE 1
27246 _ACEOF
27247
27248         cat >>confdefs.h <<\_ACEOF
27249 #define THREADSAFE 1
27250 _ACEOF
27251
27252         cat >>confdefs.h <<\_ACEOF
27253 #define _THREADSAFE 1
27254 _ACEOF
27255
27256         cat >>confdefs.h <<\_ACEOF
27257 #define _SGI_MP_SOURCE 1
27258 _ACEOF
27259
27260
27261                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27262 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27263 if test "${ol_cv_errno_thread_specific+set}" = set; then
27264   echo $ECHO_N "(cached) $ECHO_C" >&6
27265 else
27266
27267                 cat >conftest.$ac_ext <<_ACEOF
27268 /* confdefs.h.  */
27269 _ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h.  */
27273 #include <errno.h>
27274 int
27275 main ()
27276 {
27277 errno = 0;
27278   ;
27279   return 0;
27280 }
27281 _ACEOF
27282 rm -f conftest.$ac_objext conftest$ac_exeext
27283 if { (ac_try="$ac_link"
27284 case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289   (eval "$ac_link") 2>conftest.er1
27290   ac_status=$?
27291   grep -v '^ *+' conftest.er1 >conftest.err
27292   rm -f conftest.er1
27293   cat conftest.err >&5
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } && {
27296          test -z "$ac_c_werror_flag" ||
27297          test ! -s conftest.err
27298        } && test -s conftest$ac_exeext &&
27299        $as_test_x conftest$ac_exeext; then
27300   ol_cv_errno_thread_specific=yes
27301 else
27302   echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27304
27305         ol_cv_errno_thread_specific=no
27306 fi
27307
27308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27309       conftest$ac_exeext conftest.$ac_ext
27310
27311 fi
27312 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27313 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27314
27315                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27316 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27317 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27318   echo $ECHO_N "(cached) $ECHO_C" >&6
27319 else
27320
27321                 cat >conftest.$ac_ext <<_ACEOF
27322 /* confdefs.h.  */
27323 _ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h.  */
27327 #include <netdb.h>
27328 int
27329 main ()
27330 {
27331 h_errno = 0;
27332   ;
27333   return 0;
27334 }
27335 _ACEOF
27336 rm -f conftest.$ac_objext conftest$ac_exeext
27337 if { (ac_try="$ac_link"
27338 case "(($ac_try" in
27339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340   *) ac_try_echo=$ac_try;;
27341 esac
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343   (eval "$ac_link") 2>conftest.er1
27344   ac_status=$?
27345   grep -v '^ *+' conftest.er1 >conftest.err
27346   rm -f conftest.er1
27347   cat conftest.err >&5
27348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349   (exit $ac_status); } && {
27350          test -z "$ac_c_werror_flag" ||
27351          test ! -s conftest.err
27352        } && test -s conftest$ac_exeext &&
27353        $as_test_x conftest$ac_exeext; then
27354   ol_cv_h_errno_thread_specific=yes
27355 else
27356   echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359         ol_cv_h_errno_thread_specific=no
27360 fi
27361
27362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27363       conftest$ac_exeext conftest.$ac_ext
27364
27365 fi
27366 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27367 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27368
27369         if test $ol_cv_errno_thread_specific != yes ||
27370            test $ol_cv_h_errno_thread_specific != yes ; then
27371                 LIBS="$LTHREAD_LIBS $LIBS"
27372                 LTHREAD_LIBS=""
27373         fi
27374
27375 fi
27376
27377 if test $ol_link_threads = no ; then
27378         if test $ol_with_threads = yes ; then
27379                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27380 echo "$as_me: error: no suitable thread support" >&2;}
27381    { (exit 1); exit 1; }; }
27382         fi
27383
27384         if test $ol_with_threads = auto ; then
27385                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27386 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27387                 ol_with_threads=no
27388         fi
27389
27390
27391 cat >>confdefs.h <<\_ACEOF
27392 #define NO_THREADS 1
27393 _ACEOF
27394
27395         LTHREAD_LIBS=""
27396         BUILD_THREAD=no
27397 else
27398         BUILD_THREAD=yes
27399 fi
27400
27401 if test $ol_link_threads != no ; then
27402
27403 cat >>confdefs.h <<\_ACEOF
27404 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27405 _ACEOF
27406
27407 fi
27408
27409
27410
27411
27412
27413
27414 for ac_func in \
27415         ctime_r                 \
27416         gmtime_r localtime_r \
27417         gethostbyname_r gethostbyaddr_r \
27418
27419 do
27420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426   cat >conftest.$ac_ext <<_ACEOF
27427 /* confdefs.h.  */
27428 _ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h.  */
27432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27434 #define $ac_func innocuous_$ac_func
27435
27436 /* System header to define __stub macros and hopefully few prototypes,
27437     which can conflict with char $ac_func (); below.
27438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27439     <limits.h> exists even on freestanding compilers.  */
27440
27441 #ifdef __STDC__
27442 # include <limits.h>
27443 #else
27444 # include <assert.h>
27445 #endif
27446
27447 #undef $ac_func
27448
27449 /* Override any GCC internal prototype to avoid an error.
27450    Use char because int might match the return type of a GCC
27451    builtin and then its argument prototype would still apply.  */
27452 #ifdef __cplusplus
27453 extern "C"
27454 #endif
27455 char $ac_func ();
27456 /* The GNU C library defines this for functions which it implements
27457     to always fail with ENOSYS.  Some functions are actually named
27458     something starting with __ and the normal name is an alias.  */
27459 #if defined __stub_$ac_func || defined __stub___$ac_func
27460 choke me
27461 #endif
27462
27463 int
27464 main ()
27465 {
27466 return $ac_func ();
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475   *) ac_try_echo=$ac_try;;
27476 esac
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478   (eval "$ac_link") 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } && {
27485          test -z "$ac_c_werror_flag" ||
27486          test ! -s conftest.err
27487        } && test -s conftest$ac_exeext &&
27488        $as_test_x conftest$ac_exeext; then
27489   eval "$as_ac_var=yes"
27490 else
27491   echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494         eval "$as_ac_var=no"
27495 fi
27496
27497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27498       conftest$ac_exeext conftest.$ac_ext
27499 fi
27500 ac_res=`eval echo '${'$as_ac_var'}'`
27501                { echo "$as_me:$LINENO: result: $ac_res" >&5
27502 echo "${ECHO_T}$ac_res" >&6; }
27503 if test `eval echo '${'$as_ac_var'}'` = yes; then
27504   cat >>confdefs.h <<_ACEOF
27505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27506 _ACEOF
27507
27508 fi
27509 done
27510
27511
27512 if test "$ac_cv_func_ctime_r" = no ; then
27513         ol_cv_func_ctime_r_nargs=0
27514 else
27515         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27516 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27517 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27518   echo $ECHO_N "(cached) $ECHO_C" >&6
27519 else
27520   cat >conftest.$ac_ext <<_ACEOF
27521 /* confdefs.h.  */
27522 _ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h.  */
27526 #include <time.h>
27527 int
27528 main ()
27529 {
27530 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27531   ;
27532   return 0;
27533 }
27534 _ACEOF
27535 rm -f conftest.$ac_objext
27536 if { (ac_try="$ac_compile"
27537 case "(($ac_try" in
27538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539   *) ac_try_echo=$ac_try;;
27540 esac
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542   (eval "$ac_compile") 2>conftest.er1
27543   ac_status=$?
27544   grep -v '^ *+' conftest.er1 >conftest.err
27545   rm -f conftest.er1
27546   cat conftest.err >&5
27547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548   (exit $ac_status); } && {
27549          test -z "$ac_c_werror_flag" ||
27550          test ! -s conftest.err
27551        } && test -s conftest.$ac_objext; then
27552   ol_cv_func_ctime_r_nargs3=yes
27553 else
27554   echo "$as_me: failed program was:" >&5
27555 sed 's/^/| /' conftest.$ac_ext >&5
27556
27557         ol_cv_func_ctime_r_nargs3=no
27558 fi
27559
27560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27561
27562         cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h.  */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h.  */
27568 #include <time.h>
27569 int
27570 main ()
27571 {
27572 time_t ti; char *buffer; ctime_r(&ti,buffer);
27573   ;
27574   return 0;
27575 }
27576 _ACEOF
27577 rm -f conftest.$ac_objext
27578 if { (ac_try="$ac_compile"
27579 case "(($ac_try" in
27580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581   *) ac_try_echo=$ac_try;;
27582 esac
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584   (eval "$ac_compile") 2>conftest.er1
27585   ac_status=$?
27586   grep -v '^ *+' conftest.er1 >conftest.err
27587   rm -f conftest.er1
27588   cat conftest.err >&5
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); } && {
27591          test -z "$ac_c_werror_flag" ||
27592          test ! -s conftest.err
27593        } && test -s conftest.$ac_objext; then
27594   ol_cv_func_ctime_r_nargs2=yes
27595 else
27596   echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27598
27599         ol_cv_func_ctime_r_nargs2=no
27600 fi
27601
27602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27603
27604         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27605            test $ol_cv_func_ctime_r_nargs2 = no ; then
27606
27607                 ol_cv_func_ctime_r_nargs=3
27608
27609         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27610              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27611
27612                 ol_cv_func_ctime_r_nargs=2
27613
27614         else
27615                 ol_cv_func_ctime_r_nargs=0
27616         fi
27617
27618 fi
27619 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27620 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27621
27622   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27623
27624 cat >>confdefs.h <<_ACEOF
27625 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27626 _ACEOF
27627
27628   fi
27629
27630 fi
27631
27632 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27633         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27634 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27635 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27636   echo $ECHO_N "(cached) $ECHO_C" >&6
27637 else
27638   cat >conftest.$ac_ext <<_ACEOF
27639 /* confdefs.h.  */
27640 _ACEOF
27641 cat confdefs.h >>conftest.$ac_ext
27642 cat >>conftest.$ac_ext <<_ACEOF
27643 /* end confdefs.h.  */
27644 #include <sys/types.h>
27645 #include <sys/socket.h>
27646 #include <netinet/in.h>
27647 #include <netdb.h>
27648 #define BUFSIZE (sizeof(struct hostent)+10)
27649 int
27650 main ()
27651 {
27652 struct hostent hent; char buffer[BUFSIZE];
27653                 int bufsize=BUFSIZE;int h_errno;
27654                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27655                         buffer, bufsize, &h_errno);
27656   ;
27657   return 0;
27658 }
27659 _ACEOF
27660 rm -f conftest.$ac_objext
27661 if { (ac_try="$ac_compile"
27662 case "(($ac_try" in
27663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664   *) ac_try_echo=$ac_try;;
27665 esac
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667   (eval "$ac_compile") 2>conftest.er1
27668   ac_status=$?
27669   grep -v '^ *+' conftest.er1 >conftest.err
27670   rm -f conftest.er1
27671   cat conftest.err >&5
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); } && {
27674          test -z "$ac_c_werror_flag" ||
27675          test ! -s conftest.err
27676        } && test -s conftest.$ac_objext; then
27677   ol_cv_func_gethostbyname_r_nargs5=yes
27678 else
27679   echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27681
27682         ol_cv_func_gethostbyname_r_nargs5=no
27683 fi
27684
27685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27686
27687         cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h.  */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h.  */
27693 #include <sys/types.h>
27694 #include <sys/socket.h>
27695 #include <netinet/in.h>
27696 #include <netdb.h>
27697 #define BUFSIZE (sizeof(struct hostent)+10)
27698 int
27699 main ()
27700 {
27701 struct hostent hent;struct hostent *rhent;
27702                 char buffer[BUFSIZE];
27703                 int bufsize=BUFSIZE;int h_errno;
27704                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27705                         &rhent, &h_errno);
27706   ;
27707   return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext
27711 if { (ac_try="$ac_compile"
27712 case "(($ac_try" in
27713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714   *) ac_try_echo=$ac_try;;
27715 esac
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717   (eval "$ac_compile") 2>conftest.er1
27718   ac_status=$?
27719   grep -v '^ *+' conftest.er1 >conftest.err
27720   rm -f conftest.er1
27721   cat conftest.err >&5
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); } && {
27724          test -z "$ac_c_werror_flag" ||
27725          test ! -s conftest.err
27726        } && test -s conftest.$ac_objext; then
27727   ol_cv_func_gethostbyname_r_nargs6=yes
27728 else
27729   echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732         ol_cv_func_gethostbyname_r_nargs6=no
27733 fi
27734
27735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736
27737         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27738            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27739
27740                 ol_cv_func_gethostbyname_r_nargs=5
27741
27742         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27743              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27744
27745                 ol_cv_func_gethostbyname_r_nargs=6
27746
27747         else
27748                 ol_cv_func_gethostbyname_r_nargs=0
27749         fi
27750
27751 fi
27752 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27753 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27754   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27755
27756 cat >>confdefs.h <<_ACEOF
27757 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27758 _ACEOF
27759
27760   fi
27761
27762 else
27763         ol_cv_func_gethostbyname_r_nargs=0
27764 fi
27765
27766 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27767         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27768 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27769 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27770   echo $ECHO_N "(cached) $ECHO_C" >&6
27771 else
27772   cat >conftest.$ac_ext <<_ACEOF
27773 /* confdefs.h.  */
27774 _ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h.  */
27778 #include <sys/types.h>
27779 #include <sys/socket.h>
27780 #include <netinet/in.h>
27781 #include <netdb.h>
27782 #define BUFSIZE (sizeof(struct hostent)+10)
27783 int
27784 main ()
27785 {
27786 struct hostent hent; char buffer[BUFSIZE];
27787             struct in_addr add;
27788             size_t alen=sizeof(struct in_addr);
27789             int bufsize=BUFSIZE;int h_errno;
27790                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27791                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27792   ;
27793   return 0;
27794 }
27795 _ACEOF
27796 rm -f conftest.$ac_objext
27797 if { (ac_try="$ac_compile"
27798 case "(($ac_try" in
27799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800   *) ac_try_echo=$ac_try;;
27801 esac
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803   (eval "$ac_compile") 2>conftest.er1
27804   ac_status=$?
27805   grep -v '^ *+' conftest.er1 >conftest.err
27806   rm -f conftest.er1
27807   cat conftest.err >&5
27808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809   (exit $ac_status); } && {
27810          test -z "$ac_c_werror_flag" ||
27811          test ! -s conftest.err
27812        } && test -s conftest.$ac_objext; then
27813   ol_cv_func_gethostbyaddr_r_nargs7=yes
27814 else
27815   echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27817
27818         ol_cv_func_gethostbyaddr_r_nargs7=no
27819 fi
27820
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27822
27823         cat >conftest.$ac_ext <<_ACEOF
27824 /* confdefs.h.  */
27825 _ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h.  */
27829 #include <sys/types.h>
27830 #include <sys/socket.h>
27831 #include <netinet/in.h>
27832 #include <netdb.h>
27833 #define BUFSIZE (sizeof(struct hostent)+10)
27834 int
27835 main ()
27836 {
27837 struct hostent hent;
27838                 struct hostent *rhent; char buffer[BUFSIZE];
27839                 struct in_addr add;
27840                 size_t alen=sizeof(struct in_addr);
27841                 int bufsize=BUFSIZE;int h_errno;
27842                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27843                         alen, AF_INET, &hent, buffer, bufsize,
27844                         &rhent, &h_errno);
27845   ;
27846   return 0;
27847 }
27848 _ACEOF
27849 rm -f conftest.$ac_objext
27850 if { (ac_try="$ac_compile"
27851 case "(($ac_try" in
27852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853   *) ac_try_echo=$ac_try;;
27854 esac
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856   (eval "$ac_compile") 2>conftest.er1
27857   ac_status=$?
27858   grep -v '^ *+' conftest.er1 >conftest.err
27859   rm -f conftest.er1
27860   cat conftest.err >&5
27861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862   (exit $ac_status); } && {
27863          test -z "$ac_c_werror_flag" ||
27864          test ! -s conftest.err
27865        } && test -s conftest.$ac_objext; then
27866   ol_cv_func_gethostbyaddr_r_nargs8=yes
27867 else
27868   echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27870
27871         ol_cv_func_gethostbyaddr_r_nargs8=no
27872 fi
27873
27874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27875
27876         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27877            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27878
27879                 ol_cv_func_gethostbyaddr_r_nargs=7
27880
27881         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27882              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27883
27884                 ol_cv_func_gethostbyaddr_r_nargs=8
27885
27886         else
27887                 ol_cv_func_gethostbyaddr_r_nargs=0
27888         fi
27889
27890 fi
27891 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27892 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27893   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27894
27895 cat >>confdefs.h <<_ACEOF
27896 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27897 _ACEOF
27898
27899   fi
27900
27901 else
27902         ol_cv_func_gethostbyaddr_r_nargs=0
27903 fi
27904
27905 ol_link_bdb=no
27906
27907 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27908         ol_cv_berkeley_db=no
27909
27910 for ac_header in db.h
27911 do
27912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27917   echo $ECHO_N "(cached) $ECHO_C" >&6
27918 fi
27919 ac_res=`eval echo '${'$as_ac_Header'}'`
27920                { echo "$as_me:$LINENO: result: $ac_res" >&5
27921 echo "${ECHO_T}$ac_res" >&6; }
27922 else
27923   # Is the header compilable?
27924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27926 cat >conftest.$ac_ext <<_ACEOF
27927 /* confdefs.h.  */
27928 _ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h.  */
27932 $ac_includes_default
27933 #include <$ac_header>
27934 _ACEOF
27935 rm -f conftest.$ac_objext
27936 if { (ac_try="$ac_compile"
27937 case "(($ac_try" in
27938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939   *) ac_try_echo=$ac_try;;
27940 esac
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942   (eval "$ac_compile") 2>conftest.er1
27943   ac_status=$?
27944   grep -v '^ *+' conftest.er1 >conftest.err
27945   rm -f conftest.er1
27946   cat conftest.err >&5
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); } && {
27949          test -z "$ac_c_werror_flag" ||
27950          test ! -s conftest.err
27951        } && test -s conftest.$ac_objext; then
27952   ac_header_compiler=yes
27953 else
27954   echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27956
27957         ac_header_compiler=no
27958 fi
27959
27960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27962 echo "${ECHO_T}$ac_header_compiler" >&6; }
27963
27964 # Is the header present?
27965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27967 cat >conftest.$ac_ext <<_ACEOF
27968 /* confdefs.h.  */
27969 _ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h.  */
27973 #include <$ac_header>
27974 _ACEOF
27975 if { (ac_try="$ac_cpp conftest.$ac_ext"
27976 case "(($ac_try" in
27977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978   *) ac_try_echo=$ac_try;;
27979 esac
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27982   ac_status=$?
27983   grep -v '^ *+' conftest.er1 >conftest.err
27984   rm -f conftest.er1
27985   cat conftest.err >&5
27986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); } >/dev/null && {
27988          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27989          test ! -s conftest.err
27990        }; then
27991   ac_header_preproc=yes
27992 else
27993   echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27995
27996   ac_header_preproc=no
27997 fi
27998
27999 rm -f conftest.err conftest.$ac_ext
28000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28001 echo "${ECHO_T}$ac_header_preproc" >&6; }
28002
28003 # So?  What about this header?
28004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28005   yes:no: )
28006     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28010     ac_header_preproc=yes
28011     ;;
28012   no:yes:* )
28013     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28015     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28016 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28017     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28019     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28020 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28023     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28025     ( cat <<\_ASBOX
28026 ## --------------------------------------------- ##
28027 ## Report this to <http://www.openldap.org/its/> ##
28028 ## --------------------------------------------- ##
28029 _ASBOX
28030      ) | sed "s/^/$as_me: WARNING:     /" >&2
28031     ;;
28032 esac
28033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28036   echo $ECHO_N "(cached) $ECHO_C" >&6
28037 else
28038   eval "$as_ac_Header=\$ac_header_preproc"
28039 fi
28040 ac_res=`eval echo '${'$as_ac_Header'}'`
28041                { echo "$as_me:$LINENO: result: $ac_res" >&5
28042 echo "${ECHO_T}$ac_res" >&6; }
28043
28044 fi
28045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28046   cat >>confdefs.h <<_ACEOF
28047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28048 _ACEOF
28049
28050 fi
28051
28052 done
28053
28054 if test $ac_cv_header_db_h = yes; then
28055         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28056 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28057 if test "${ol_cv_bdb_major+set}" = set; then
28058   echo $ECHO_N "(cached) $ECHO_C" >&6
28059 else
28060
28061         cat >conftest.$ac_ext <<_ACEOF
28062
28063 #include <db.h>
28064 #ifndef DB_VERSION_MAJOR
28065 #       define DB_VERSION_MAJOR 1
28066 #endif
28067 __db_version DB_VERSION_MAJOR
28068
28069 _ACEOF
28070         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28071         ol_cv_bdb_major=${3}
28072
28073 fi
28074 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28075 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28076 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28077         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28078 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28079    { (exit 1); exit 1; }; } ;;
28080 esac
28081
28082 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28083 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28084 if test "${ol_cv_bdb_minor+set}" = set; then
28085   echo $ECHO_N "(cached) $ECHO_C" >&6
28086 else
28087
28088         cat >conftest.$ac_ext <<_ACEOF
28089
28090 #include <db.h>
28091 #ifndef DB_VERSION_MINOR
28092 #       define DB_VERSION_MINOR 0
28093 #endif
28094 __db_version DB_VERSION_MINOR
28095
28096 _ACEOF
28097         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28098         ol_cv_bdb_minor=${3}
28099
28100 fi
28101 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28102 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28103 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28104         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28105 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28106    { (exit 1); exit 1; }; } ;;
28107 esac
28108
28109         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28110 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28111 if test "${ol_cv_bdb_compat+set}" = set; then
28112   echo $ECHO_N "(cached) $ECHO_C" >&6
28113 else
28114
28115         cat >conftest.$ac_ext <<_ACEOF
28116 /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121
28122 #include <db.h>
28123
28124  /* this check could be improved */
28125 #ifndef DB_VERSION_MAJOR
28126 #       define DB_VERSION_MAJOR 1
28127 #endif
28128 #ifndef DB_VERSION_MINOR
28129 #       define DB_VERSION_MINOR 0
28130 #endif
28131
28132 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28133
28134 /* require 4.4 or later */
28135 #if DB_VERSION_MM >= 0x0404
28136         __db_version_compat
28137 #endif
28138
28139 _ACEOF
28140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28141   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28142   ol_cv_bdb_compat=yes
28143 else
28144   ol_cv_bdb_compat=no
28145 fi
28146 rm -f conftest*
28147
28148 fi
28149 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28150 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28151
28152
28153         if test $ol_cv_bdb_compat != yes ; then
28154                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28155 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28156    { (exit 1); exit 1; }; }
28157         fi
28158
28159         ol_cv_lib_db=no
28160
28161 if test $ol_cv_bdb_major = 4 ; then
28162         if test $ol_cv_lib_db = no ; then
28163         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28164 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28165 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28166   echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168
28169         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28170         ol_LIBS=$LIBS
28171         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28172
28173         cat >conftest.$ac_ext <<_ACEOF
28174 /* confdefs.h.  */
28175 _ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h.  */
28179
28180 #ifdef HAVE_DB_185_H
28181 # include <db_185.h>
28182 #else
28183 # include <db.h>
28184 #endif
28185
28186 #ifndef DB_VERSION_MAJOR
28187 # define DB_VERSION_MAJOR 1
28188 #endif
28189
28190 #ifndef NULL
28191 #define NULL ((void*)0)
28192 #endif
28193
28194 int
28195 main ()
28196 {
28197
28198 #if DB_VERSION_MAJOR > 2
28199         db_env_create( NULL, 0 );
28200 #elif DB_VERSION_MAJOR > 1
28201         db_appexit( NULL );
28202 #else
28203         (void) dbopen( NULL, 0, 0, 0, NULL);
28204 #endif
28205
28206   ;
28207   return 0;
28208 }
28209 _ACEOF
28210 rm -f conftest.$ac_objext conftest$ac_exeext
28211 if { (ac_try="$ac_link"
28212 case "(($ac_try" in
28213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214   *) ac_try_echo=$ac_try;;
28215 esac
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217   (eval "$ac_link") 2>conftest.er1
28218   ac_status=$?
28219   grep -v '^ *+' conftest.er1 >conftest.err
28220   rm -f conftest.er1
28221   cat conftest.err >&5
28222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223   (exit $ac_status); } && {
28224          test -z "$ac_c_werror_flag" ||
28225          test ! -s conftest.err
28226        } && test -s conftest$ac_exeext &&
28227        $as_test_x conftest$ac_exeext; then
28228   ol_cv_db_db_4_dot_m=yes
28229 else
28230   echo "$as_me: failed program was:" >&5
28231 sed 's/^/| /' conftest.$ac_ext >&5
28232
28233         ol_cv_db_db_4_dot_m=no
28234 fi
28235
28236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28237       conftest$ac_exeext conftest.$ac_ext
28238
28239         LIBS="$ol_LIBS"
28240
28241 fi
28242 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28243 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28244
28245         if test $ol_cv_db_db_4_dot_m = yes ; then
28246                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28247         fi
28248 fi
28249
28250         if test $ol_cv_lib_db = no ; then
28251         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28252 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28253 if test "${ol_cv_db_db4m+set}" = set; then
28254   echo $ECHO_N "(cached) $ECHO_C" >&6
28255 else
28256
28257         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28258         ol_LIBS=$LIBS
28259         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28260
28261         cat >conftest.$ac_ext <<_ACEOF
28262 /* confdefs.h.  */
28263 _ACEOF
28264 cat confdefs.h >>conftest.$ac_ext
28265 cat >>conftest.$ac_ext <<_ACEOF
28266 /* end confdefs.h.  */
28267
28268 #ifdef HAVE_DB_185_H
28269 # include <db_185.h>
28270 #else
28271 # include <db.h>
28272 #endif
28273
28274 #ifndef DB_VERSION_MAJOR
28275 # define DB_VERSION_MAJOR 1
28276 #endif
28277
28278 #ifndef NULL
28279 #define NULL ((void*)0)
28280 #endif
28281
28282 int
28283 main ()
28284 {
28285
28286 #if DB_VERSION_MAJOR > 2
28287         db_env_create( NULL, 0 );
28288 #elif DB_VERSION_MAJOR > 1
28289         db_appexit( NULL );
28290 #else
28291         (void) dbopen( NULL, 0, 0, 0, NULL);
28292 #endif
28293
28294   ;
28295   return 0;
28296 }
28297 _ACEOF
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302   *) ac_try_echo=$ac_try;;
28303 esac
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305   (eval "$ac_link") 2>conftest.er1
28306   ac_status=$?
28307   grep -v '^ *+' conftest.er1 >conftest.err
28308   rm -f conftest.er1
28309   cat conftest.err >&5
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); } && {
28312          test -z "$ac_c_werror_flag" ||
28313          test ! -s conftest.err
28314        } && test -s conftest$ac_exeext &&
28315        $as_test_x conftest$ac_exeext; then
28316   ol_cv_db_db4m=yes
28317 else
28318   echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28320
28321         ol_cv_db_db4m=no
28322 fi
28323
28324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28325       conftest$ac_exeext conftest.$ac_ext
28326
28327         LIBS="$ol_LIBS"
28328
28329 fi
28330 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28331 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28332
28333         if test $ol_cv_db_db4m = yes ; then
28334                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28335         fi
28336 fi
28337
28338         if test $ol_cv_lib_db = no ; then
28339         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28340 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28341 if test "${ol_cv_db_db_4m+set}" = set; then
28342   echo $ECHO_N "(cached) $ECHO_C" >&6
28343 else
28344
28345         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28346         ol_LIBS=$LIBS
28347         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28348
28349         cat >conftest.$ac_ext <<_ACEOF
28350 /* confdefs.h.  */
28351 _ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h.  */
28355
28356 #ifdef HAVE_DB_185_H
28357 # include <db_185.h>
28358 #else
28359 # include <db.h>
28360 #endif
28361
28362 #ifndef DB_VERSION_MAJOR
28363 # define DB_VERSION_MAJOR 1
28364 #endif
28365
28366 #ifndef NULL
28367 #define NULL ((void*)0)
28368 #endif
28369
28370 int
28371 main ()
28372 {
28373
28374 #if DB_VERSION_MAJOR > 2
28375         db_env_create( NULL, 0 );
28376 #elif DB_VERSION_MAJOR > 1
28377         db_appexit( NULL );
28378 #else
28379         (void) dbopen( NULL, 0, 0, 0, NULL);
28380 #endif
28381
28382   ;
28383   return 0;
28384 }
28385 _ACEOF
28386 rm -f conftest.$ac_objext conftest$ac_exeext
28387 if { (ac_try="$ac_link"
28388 case "(($ac_try" in
28389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390   *) ac_try_echo=$ac_try;;
28391 esac
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393   (eval "$ac_link") 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } && {
28400          test -z "$ac_c_werror_flag" ||
28401          test ! -s conftest.err
28402        } && test -s conftest$ac_exeext &&
28403        $as_test_x conftest$ac_exeext; then
28404   ol_cv_db_db_4m=yes
28405 else
28406   echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28408
28409         ol_cv_db_db_4m=no
28410 fi
28411
28412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28413       conftest$ac_exeext conftest.$ac_ext
28414
28415         LIBS="$ol_LIBS"
28416
28417 fi
28418 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28419 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28420
28421         if test $ol_cv_db_db_4m = yes ; then
28422                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28423         fi
28424 fi
28425
28426         if test $ol_cv_lib_db = no ; then
28427         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28428 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28429 if test "${ol_cv_db_db_4_m+set}" = set; then
28430   echo $ECHO_N "(cached) $ECHO_C" >&6
28431 else
28432
28433         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28434         ol_LIBS=$LIBS
28435         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28436
28437         cat >conftest.$ac_ext <<_ACEOF
28438 /* confdefs.h.  */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h.  */
28443
28444 #ifdef HAVE_DB_185_H
28445 # include <db_185.h>
28446 #else
28447 # include <db.h>
28448 #endif
28449
28450 #ifndef DB_VERSION_MAJOR
28451 # define DB_VERSION_MAJOR 1
28452 #endif
28453
28454 #ifndef NULL
28455 #define NULL ((void*)0)
28456 #endif
28457
28458 int
28459 main ()
28460 {
28461
28462 #if DB_VERSION_MAJOR > 2
28463         db_env_create( NULL, 0 );
28464 #elif DB_VERSION_MAJOR > 1
28465         db_appexit( NULL );
28466 #else
28467         (void) dbopen( NULL, 0, 0, 0, NULL);
28468 #endif
28469
28470   ;
28471   return 0;
28472 }
28473 _ACEOF
28474 rm -f conftest.$ac_objext conftest$ac_exeext
28475 if { (ac_try="$ac_link"
28476 case "(($ac_try" in
28477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478   *) ac_try_echo=$ac_try;;
28479 esac
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481   (eval "$ac_link") 2>conftest.er1
28482   ac_status=$?
28483   grep -v '^ *+' conftest.er1 >conftest.err
28484   rm -f conftest.er1
28485   cat conftest.err >&5
28486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487   (exit $ac_status); } && {
28488          test -z "$ac_c_werror_flag" ||
28489          test ! -s conftest.err
28490        } && test -s conftest$ac_exeext &&
28491        $as_test_x conftest$ac_exeext; then
28492   ol_cv_db_db_4_m=yes
28493 else
28494   echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28496
28497         ol_cv_db_db_4_m=no
28498 fi
28499
28500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28501       conftest$ac_exeext conftest.$ac_ext
28502
28503         LIBS="$ol_LIBS"
28504
28505 fi
28506 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28507 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28508
28509         if test $ol_cv_db_db_4_m = yes ; then
28510                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28511         fi
28512 fi
28513
28514         if test $ol_cv_lib_db = no ; then
28515         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28516 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28517 if test "${ol_cv_db_db_4+set}" = set; then
28518   echo $ECHO_N "(cached) $ECHO_C" >&6
28519 else
28520
28521         ol_DB_LIB=-ldb-4
28522         ol_LIBS=$LIBS
28523         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28524
28525         cat >conftest.$ac_ext <<_ACEOF
28526 /* confdefs.h.  */
28527 _ACEOF
28528 cat confdefs.h >>conftest.$ac_ext
28529 cat >>conftest.$ac_ext <<_ACEOF
28530 /* end confdefs.h.  */
28531
28532 #ifdef HAVE_DB_185_H
28533 # include <db_185.h>
28534 #else
28535 # include <db.h>
28536 #endif
28537
28538 #ifndef DB_VERSION_MAJOR
28539 # define DB_VERSION_MAJOR 1
28540 #endif
28541
28542 #ifndef NULL
28543 #define NULL ((void*)0)
28544 #endif
28545
28546 int
28547 main ()
28548 {
28549
28550 #if DB_VERSION_MAJOR > 2
28551         db_env_create( NULL, 0 );
28552 #elif DB_VERSION_MAJOR > 1
28553         db_appexit( NULL );
28554 #else
28555         (void) dbopen( NULL, 0, 0, 0, NULL);
28556 #endif
28557
28558   ;
28559   return 0;
28560 }
28561 _ACEOF
28562 rm -f conftest.$ac_objext conftest$ac_exeext
28563 if { (ac_try="$ac_link"
28564 case "(($ac_try" in
28565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566   *) ac_try_echo=$ac_try;;
28567 esac
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569   (eval "$ac_link") 2>conftest.er1
28570   ac_status=$?
28571   grep -v '^ *+' conftest.er1 >conftest.err
28572   rm -f conftest.er1
28573   cat conftest.err >&5
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); } && {
28576          test -z "$ac_c_werror_flag" ||
28577          test ! -s conftest.err
28578        } && test -s conftest$ac_exeext &&
28579        $as_test_x conftest$ac_exeext; then
28580   ol_cv_db_db_4=yes
28581 else
28582   echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28584
28585         ol_cv_db_db_4=no
28586 fi
28587
28588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28589       conftest$ac_exeext conftest.$ac_ext
28590
28591         LIBS="$ol_LIBS"
28592
28593 fi
28594 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28595 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28596
28597         if test $ol_cv_db_db_4 = yes ; then
28598                 ol_cv_lib_db=-ldb-4
28599         fi
28600 fi
28601
28602         if test $ol_cv_lib_db = no ; then
28603         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28604 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28605 if test "${ol_cv_db_db4+set}" = set; then
28606   echo $ECHO_N "(cached) $ECHO_C" >&6
28607 else
28608
28609         ol_DB_LIB=-ldb4
28610         ol_LIBS=$LIBS
28611         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28612
28613         cat >conftest.$ac_ext <<_ACEOF
28614 /* confdefs.h.  */
28615 _ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h.  */
28619
28620 #ifdef HAVE_DB_185_H
28621 # include <db_185.h>
28622 #else
28623 # include <db.h>
28624 #endif
28625
28626 #ifndef DB_VERSION_MAJOR
28627 # define DB_VERSION_MAJOR 1
28628 #endif
28629
28630 #ifndef NULL
28631 #define NULL ((void*)0)
28632 #endif
28633
28634 int
28635 main ()
28636 {
28637
28638 #if DB_VERSION_MAJOR > 2
28639         db_env_create( NULL, 0 );
28640 #elif DB_VERSION_MAJOR > 1
28641         db_appexit( NULL );
28642 #else
28643         (void) dbopen( NULL, 0, 0, 0, NULL);
28644 #endif
28645
28646   ;
28647   return 0;
28648 }
28649 _ACEOF
28650 rm -f conftest.$ac_objext conftest$ac_exeext
28651 if { (ac_try="$ac_link"
28652 case "(($ac_try" in
28653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654   *) ac_try_echo=$ac_try;;
28655 esac
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657   (eval "$ac_link") 2>conftest.er1
28658   ac_status=$?
28659   grep -v '^ *+' conftest.er1 >conftest.err
28660   rm -f conftest.er1
28661   cat conftest.err >&5
28662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663   (exit $ac_status); } && {
28664          test -z "$ac_c_werror_flag" ||
28665          test ! -s conftest.err
28666        } && test -s conftest$ac_exeext &&
28667        $as_test_x conftest$ac_exeext; then
28668   ol_cv_db_db4=yes
28669 else
28670   echo "$as_me: failed program was:" >&5
28671 sed 's/^/| /' conftest.$ac_ext >&5
28672
28673         ol_cv_db_db4=no
28674 fi
28675
28676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28677       conftest$ac_exeext conftest.$ac_ext
28678
28679         LIBS="$ol_LIBS"
28680
28681 fi
28682 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28683 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28684
28685         if test $ol_cv_db_db4 = yes ; then
28686                 ol_cv_lib_db=-ldb4
28687         fi
28688 fi
28689
28690         if test $ol_cv_lib_db = no ; then
28691         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28692 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28693 if test "${ol_cv_db_db+set}" = set; then
28694   echo $ECHO_N "(cached) $ECHO_C" >&6
28695 else
28696
28697         ol_DB_LIB=-ldb
28698         ol_LIBS=$LIBS
28699         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28700
28701         cat >conftest.$ac_ext <<_ACEOF
28702 /* confdefs.h.  */
28703 _ACEOF
28704 cat confdefs.h >>conftest.$ac_ext
28705 cat >>conftest.$ac_ext <<_ACEOF
28706 /* end confdefs.h.  */
28707
28708 #ifdef HAVE_DB_185_H
28709 # include <db_185.h>
28710 #else
28711 # include <db.h>
28712 #endif
28713
28714 #ifndef DB_VERSION_MAJOR
28715 # define DB_VERSION_MAJOR 1
28716 #endif
28717
28718 #ifndef NULL
28719 #define NULL ((void*)0)
28720 #endif
28721
28722 int
28723 main ()
28724 {
28725
28726 #if DB_VERSION_MAJOR > 2
28727         db_env_create( NULL, 0 );
28728 #elif DB_VERSION_MAJOR > 1
28729         db_appexit( NULL );
28730 #else
28731         (void) dbopen( NULL, 0, 0, 0, NULL);
28732 #endif
28733
28734   ;
28735   return 0;
28736 }
28737 _ACEOF
28738 rm -f conftest.$ac_objext conftest$ac_exeext
28739 if { (ac_try="$ac_link"
28740 case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745   (eval "$ac_link") 2>conftest.er1
28746   ac_status=$?
28747   grep -v '^ *+' conftest.er1 >conftest.err
28748   rm -f conftest.er1
28749   cat conftest.err >&5
28750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751   (exit $ac_status); } && {
28752          test -z "$ac_c_werror_flag" ||
28753          test ! -s conftest.err
28754        } && test -s conftest$ac_exeext &&
28755        $as_test_x conftest$ac_exeext; then
28756   ol_cv_db_db=yes
28757 else
28758   echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28760
28761         ol_cv_db_db=no
28762 fi
28763
28764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28765       conftest$ac_exeext conftest.$ac_ext
28766
28767         LIBS="$ol_LIBS"
28768
28769 fi
28770 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28771 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28772
28773         if test $ol_cv_db_db = yes ; then
28774                 ol_cv_lib_db=-ldb
28775         fi
28776 fi
28777
28778 fi
28779 if test $ol_cv_lib_db = no ; then
28780         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28781 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28782 if test "${ol_cv_db_none+set}" = set; then
28783   echo $ECHO_N "(cached) $ECHO_C" >&6
28784 else
28785
28786         ol_DB_LIB=
28787         ol_LIBS=$LIBS
28788         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28789
28790         cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h.  */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h.  */
28796
28797 #ifdef HAVE_DB_185_H
28798 # include <db_185.h>
28799 #else
28800 # include <db.h>
28801 #endif
28802
28803 #ifndef DB_VERSION_MAJOR
28804 # define DB_VERSION_MAJOR 1
28805 #endif
28806
28807 #ifndef NULL
28808 #define NULL ((void*)0)
28809 #endif
28810
28811 int
28812 main ()
28813 {
28814
28815 #if DB_VERSION_MAJOR > 2
28816         db_env_create( NULL, 0 );
28817 #elif DB_VERSION_MAJOR > 1
28818         db_appexit( NULL );
28819 #else
28820         (void) dbopen( NULL, 0, 0, 0, NULL);
28821 #endif
28822
28823   ;
28824   return 0;
28825 }
28826 _ACEOF
28827 rm -f conftest.$ac_objext conftest$ac_exeext
28828 if { (ac_try="$ac_link"
28829 case "(($ac_try" in
28830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831   *) ac_try_echo=$ac_try;;
28832 esac
28833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28834   (eval "$ac_link") 2>conftest.er1
28835   ac_status=$?
28836   grep -v '^ *+' conftest.er1 >conftest.err
28837   rm -f conftest.er1
28838   cat conftest.err >&5
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); } && {
28841          test -z "$ac_c_werror_flag" ||
28842          test ! -s conftest.err
28843        } && test -s conftest$ac_exeext &&
28844        $as_test_x conftest$ac_exeext; then
28845   ol_cv_db_none=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850         ol_cv_db_none=no
28851 fi
28852
28853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28854       conftest$ac_exeext conftest.$ac_ext
28855
28856         LIBS="$ol_LIBS"
28857
28858 fi
28859 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28860 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28861
28862         if test $ol_cv_db_none = yes ; then
28863                 ol_cv_lib_db=yes
28864         fi
28865 fi
28866
28867
28868         if test "$ol_cv_lib_db" != no ; then
28869                 ol_cv_berkeley_db=yes
28870                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28871 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28872 if test "${ol_cv_berkeley_db_version+set}" = set; then
28873   echo $ECHO_N "(cached) $ECHO_C" >&6
28874 else
28875
28876         ol_LIBS="$LIBS"
28877         LIBS="$LTHREAD_LIBS $LIBS"
28878         if test $ol_cv_lib_db != yes ; then
28879                 LIBS="$ol_cv_lib_db $LIBS"
28880         fi
28881
28882         if test "$cross_compiling" = yes; then
28883   ol_cv_berkeley_db_version=cross
28884 else
28885   cat >conftest.$ac_ext <<_ACEOF
28886 /* confdefs.h.  */
28887 _ACEOF
28888 cat confdefs.h >>conftest.$ac_ext
28889 cat >>conftest.$ac_ext <<_ACEOF
28890 /* end confdefs.h.  */
28891
28892 #ifdef HAVE_DB_185_H
28893         choke me;
28894 #else
28895 #include <db.h>
28896 #endif
28897 #ifndef DB_VERSION_MAJOR
28898 # define DB_VERSION_MAJOR 1
28899 #endif
28900 #ifndef NULL
28901 #define NULL ((void *)0)
28902 #endif
28903 main()
28904 {
28905 #if DB_VERSION_MAJOR > 1
28906         char *version;
28907         int major, minor, patch;
28908
28909         version = db_version( &major, &minor, &patch );
28910
28911         if( major != DB_VERSION_MAJOR ||
28912                 minor != DB_VERSION_MINOR ||
28913                 patch != DB_VERSION_PATCH )
28914         {
28915                 printf("Berkeley DB version mismatch\n"
28916                         "\theader: %s\n\tlibrary: %s\n",
28917                         DB_VERSION_STRING, version);
28918                 return 1;
28919         }
28920 #endif
28921
28922         return 0;
28923 }
28924 _ACEOF
28925 rm -f conftest$ac_exeext
28926 if { (ac_try="$ac_link"
28927 case "(($ac_try" in
28928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929   *) ac_try_echo=$ac_try;;
28930 esac
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932   (eval "$ac_link") 2>&5
28933   ac_status=$?
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28936   { (case "(($ac_try" in
28937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938   *) ac_try_echo=$ac_try;;
28939 esac
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941   (eval "$ac_try") 2>&5
28942   ac_status=$?
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); }; }; then
28945   ol_cv_berkeley_db_version=yes
28946 else
28947   echo "$as_me: program exited with status $ac_status" >&5
28948 echo "$as_me: failed program was:" >&5
28949 sed 's/^/| /' conftest.$ac_ext >&5
28950
28951 ( exit $ac_status )
28952 ol_cv_berkeley_db_version=no
28953 fi
28954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28955 fi
28956
28957
28958
28959         LIBS="$ol_LIBS"
28960
28961 fi
28962 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28963 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28964
28965         if test $ol_cv_berkeley_db_version = no ; then
28966                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28967 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28968    { (exit 1); exit 1; }; }
28969         fi
28970
28971                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28972 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28973 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28974   echo $ECHO_N "(cached) $ECHO_C" >&6
28975 else
28976
28977         ol_LIBS="$LIBS"
28978         LIBS="$LTHREAD_LIBS $LIBS"
28979         if test $ol_cv_lib_db != yes ; then
28980                 LIBS="$ol_cv_lib_db $LIBS"
28981         fi
28982
28983         if test "$cross_compiling" = yes; then
28984   ol_cv_berkeley_db_thread=cross
28985 else
28986   cat >conftest.$ac_ext <<_ACEOF
28987 /* confdefs.h.  */
28988 _ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h.  */
28992
28993 #ifdef HAVE_DB_185_H
28994         choke me;
28995 #else
28996 #include <db.h>
28997 #endif
28998 #ifndef NULL
28999 #define NULL ((void *)0)
29000 #endif
29001 main()
29002 {
29003         int rc;
29004         u_int32_t flags = DB_CREATE |
29005 #ifdef DB_PRIVATE
29006                 DB_PRIVATE |
29007 #endif
29008                 DB_THREAD;
29009
29010 #if DB_VERSION_MAJOR > 2
29011         DB_ENV *env = NULL;
29012
29013         rc = db_env_create( &env, 0 );
29014
29015         flags |= DB_INIT_MPOOL;
29016 #ifdef DB_MPOOL_PRIVATE
29017         flags |= DB_MPOOL_PRIVATE;
29018 #endif
29019
29020         if( rc ) {
29021                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29022                 return rc;
29023         }
29024
29025 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29026         rc = (env->open)( env, NULL, flags, 0 );
29027 #else
29028         rc = (env->open)( env, NULL, NULL, flags, 0 );
29029 #endif
29030
29031         if ( rc == 0 ) {
29032                 rc = env->close( env, 0 );
29033         }
29034
29035         if( rc ) {
29036                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29037                 return rc;
29038         }
29039
29040 #else
29041         DB_ENV env;
29042         memset( &env, '\0', sizeof(env) );
29043
29044         rc = db_appinit( NULL, NULL, &env, flags );
29045
29046         if( rc == 0 ) {
29047                 db_appexit( &env );
29048         }
29049
29050         unlink("__db_mpool.share");
29051         unlink("__db_lock.share");
29052 #endif
29053
29054         return rc;
29055 }
29056 _ACEOF
29057 rm -f conftest$ac_exeext
29058 if { (ac_try="$ac_link"
29059 case "(($ac_try" in
29060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061   *) ac_try_echo=$ac_try;;
29062 esac
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064   (eval "$ac_link") 2>&5
29065   ac_status=$?
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29068   { (case "(($ac_try" in
29069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070   *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073   (eval "$ac_try") 2>&5
29074   ac_status=$?
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); }; }; then
29077   ol_cv_berkeley_db_thread=yes
29078 else
29079   echo "$as_me: program exited with status $ac_status" >&5
29080 echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.$ac_ext >&5
29082
29083 ( exit $ac_status )
29084 ol_cv_berkeley_db_thread=no
29085 fi
29086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29087 fi
29088
29089
29090
29091         LIBS="$ol_LIBS"
29092
29093 fi
29094 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29095 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29096
29097         if test $ol_cv_berkeley_db_thread != no ; then
29098
29099 cat >>confdefs.h <<\_ACEOF
29100 #define HAVE_BERKELEY_DB_THREAD 1
29101 _ACEOF
29102
29103         fi
29104
29105         fi
29106 fi
29107
29108
29109         if test $ol_cv_berkeley_db = no ; then
29110                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29111 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29112    { (exit 1); exit 1; }; }
29113         fi
29114
29115
29116 cat >>confdefs.h <<\_ACEOF
29117 #define HAVE_BERKELEY_DB 1
29118 _ACEOF
29119
29120
29121                         if test $ol_cv_lib_db != yes ; then
29122                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29123         fi
29124
29125         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29126
29127         ol_link_bdb=yes
29128 fi
29129
29130
29131 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29132         BUILD_LIBS_DYNAMIC=shared
29133
29134 cat >>confdefs.h <<\_ACEOF
29135 #define LDAP_LIBS_DYNAMIC 1
29136 _ACEOF
29137
29138         LTSTATIC=""
29139 else
29140         BUILD_LIBS_DYNAMIC=static
29141         LTSTATIC="-static"
29142 fi
29143
29144 if test $ol_enable_wrappers != no ; then
29145
29146 for ac_header in tcpd.h
29147 do
29148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29153   echo $ECHO_N "(cached) $ECHO_C" >&6
29154 fi
29155 ac_res=`eval echo '${'$as_ac_Header'}'`
29156                { echo "$as_me:$LINENO: result: $ac_res" >&5
29157 echo "${ECHO_T}$ac_res" >&6; }
29158 else
29159   # Is the header compilable?
29160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29162 cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h.  */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h.  */
29168 $ac_includes_default
29169 #include <$ac_header>
29170 _ACEOF
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175   *) ac_try_echo=$ac_try;;
29176 esac
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178   (eval "$ac_compile") 2>conftest.er1
29179   ac_status=$?
29180   grep -v '^ *+' conftest.er1 >conftest.err
29181   rm -f conftest.er1
29182   cat conftest.err >&5
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); } && {
29185          test -z "$ac_c_werror_flag" ||
29186          test ! -s conftest.err
29187        } && test -s conftest.$ac_objext; then
29188   ac_header_compiler=yes
29189 else
29190   echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29192
29193         ac_header_compiler=no
29194 fi
29195
29196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29198 echo "${ECHO_T}$ac_header_compiler" >&6; }
29199
29200 # Is the header present?
29201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29203 cat >conftest.$ac_ext <<_ACEOF
29204 /* confdefs.h.  */
29205 _ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h.  */
29209 #include <$ac_header>
29210 _ACEOF
29211 if { (ac_try="$ac_cpp conftest.$ac_ext"
29212 case "(($ac_try" in
29213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214   *) ac_try_echo=$ac_try;;
29215 esac
29216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29218   ac_status=$?
29219   grep -v '^ *+' conftest.er1 >conftest.err
29220   rm -f conftest.er1
29221   cat conftest.err >&5
29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223   (exit $ac_status); } >/dev/null && {
29224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29225          test ! -s conftest.err
29226        }; then
29227   ac_header_preproc=yes
29228 else
29229   echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29231
29232   ac_header_preproc=no
29233 fi
29234
29235 rm -f conftest.err conftest.$ac_ext
29236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29237 echo "${ECHO_T}$ac_header_preproc" >&6; }
29238
29239 # So?  What about this header?
29240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29241   yes:no: )
29242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29246     ac_header_preproc=yes
29247     ;;
29248   no:yes:* )
29249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29261     ( cat <<\_ASBOX
29262 ## --------------------------------------------- ##
29263 ## Report this to <http://www.openldap.org/its/> ##
29264 ## --------------------------------------------- ##
29265 _ASBOX
29266      ) | sed "s/^/$as_me: WARNING:     /" >&2
29267     ;;
29268 esac
29269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272   echo $ECHO_N "(cached) $ECHO_C" >&6
29273 else
29274   eval "$as_ac_Header=\$ac_header_preproc"
29275 fi
29276 ac_res=`eval echo '${'$as_ac_Header'}'`
29277                { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29279
29280 fi
29281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29282   cat >>confdefs.h <<_ACEOF
29283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29284 _ACEOF
29285
29286                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29287 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29288                 save_LIBS="$LIBS"
29289                 LIBS="$LIBS -lwrap"
29290                 cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296
29297 #include <tcpd.h>
29298 int allow_severity = 0;
29299 int deny_severity  = 0;
29300
29301 struct request_info *req;
29302
29303 int
29304 main ()
29305 {
29306
29307 hosts_access(req)
29308
29309   ;
29310   return 0;
29311 }
29312 _ACEOF
29313 rm -f conftest.$ac_objext conftest$ac_exeext
29314 if { (ac_try="$ac_link"
29315 case "(($ac_try" in
29316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317   *) ac_try_echo=$ac_try;;
29318 esac
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320   (eval "$ac_link") 2>conftest.er1
29321   ac_status=$?
29322   grep -v '^ *+' conftest.er1 >conftest.err
29323   rm -f conftest.er1
29324   cat conftest.err >&5
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); } && {
29327          test -z "$ac_c_werror_flag" ||
29328          test ! -s conftest.err
29329        } && test -s conftest$ac_exeext &&
29330        $as_test_x conftest$ac_exeext; then
29331   { echo "$as_me:$LINENO: result: -lwrap" >&5
29332 echo "${ECHO_T}-lwrap" >&6; }
29333                 have_wrappers=yes
29334                 LIBS="$save_LIBS"
29335 else
29336   echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29338
29339
29340                                 LIBS="$LIBS -lnsl"
29341                 cat >conftest.$ac_ext <<_ACEOF
29342 /* confdefs.h.  */
29343 _ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h.  */
29347
29348 #include <tcpd.h>
29349 int allow_severity = 0;
29350 int deny_severity  = 0;
29351
29352 struct request_info *req;
29353
29354 int
29355 main ()
29356 {
29357
29358 hosts_access(req)
29359
29360   ;
29361   return 0;
29362 }
29363 _ACEOF
29364 rm -f conftest.$ac_objext conftest$ac_exeext
29365 if { (ac_try="$ac_link"
29366 case "(($ac_try" in
29367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368   *) ac_try_echo=$ac_try;;
29369 esac
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371   (eval "$ac_link") 2>conftest.er1
29372   ac_status=$?
29373   grep -v '^ *+' conftest.er1 >conftest.err
29374   rm -f conftest.er1
29375   cat conftest.err >&5
29376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377   (exit $ac_status); } && {
29378          test -z "$ac_c_werror_flag" ||
29379          test ! -s conftest.err
29380        } && test -s conftest$ac_exeext &&
29381        $as_test_x conftest$ac_exeext; then
29382   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29383 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29384                 have_wrappers=yes
29385                 LIBS="$save_LIBS -lnsl"
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390
29391                 { echo "$as_me:$LINENO: result: no" >&5
29392 echo "${ECHO_T}no" >&6; }
29393                 have_wrappers=no
29394                 LIBS=$save_LIBS
29395 fi
29396
29397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29398       conftest$ac_exeext conftest.$ac_ext
29399 fi
29400
29401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29402       conftest$ac_exeext conftest.$ac_ext
29403 else
29404   have_wrappers=no
29405 fi
29406
29407 done
29408
29409
29410         if test $have_wrappers = yes ; then
29411
29412 cat >>confdefs.h <<\_ACEOF
29413 #define HAVE_TCPD 1
29414 _ACEOF
29415
29416                 WRAP_LIBS="-lwrap"
29417         elif test $ol_enable_wrappers = yes ; then
29418                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29419 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29420    { (exit 1); exit 1; }; }
29421         else
29422                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29423 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29424                 WRAP_LIBS=""
29425         fi
29426 fi
29427
29428 if test $ol_enable_syslog != no ; then
29429         { echo "$as_me:$LINENO: checking for openlog" >&5
29430 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29431 if test "${ac_cv_func_openlog+set}" = set; then
29432   echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434   cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h.  */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h.  */
29440 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29442 #define openlog innocuous_openlog
29443
29444 /* System header to define __stub macros and hopefully few prototypes,
29445     which can conflict with char openlog (); below.
29446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29447     <limits.h> exists even on freestanding compilers.  */
29448
29449 #ifdef __STDC__
29450 # include <limits.h>
29451 #else
29452 # include <assert.h>
29453 #endif
29454
29455 #undef openlog
29456
29457 /* Override any GCC internal prototype to avoid an error.
29458    Use char because int might match the return type of a GCC
29459    builtin and then its argument prototype would still apply.  */
29460 #ifdef __cplusplus
29461 extern "C"
29462 #endif
29463 char openlog ();
29464 /* The GNU C library defines this for functions which it implements
29465     to always fail with ENOSYS.  Some functions are actually named
29466     something starting with __ and the normal name is an alias.  */
29467 #if defined __stub_openlog || defined __stub___openlog
29468 choke me
29469 #endif
29470
29471 int
29472 main ()
29473 {
29474 return openlog ();
29475   ;
29476   return 0;
29477 }
29478 _ACEOF
29479 rm -f conftest.$ac_objext conftest$ac_exeext
29480 if { (ac_try="$ac_link"
29481 case "(($ac_try" in
29482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483   *) ac_try_echo=$ac_try;;
29484 esac
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486   (eval "$ac_link") 2>conftest.er1
29487   ac_status=$?
29488   grep -v '^ *+' conftest.er1 >conftest.err
29489   rm -f conftest.er1
29490   cat conftest.err >&5
29491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492   (exit $ac_status); } && {
29493          test -z "$ac_c_werror_flag" ||
29494          test ! -s conftest.err
29495        } && test -s conftest$ac_exeext &&
29496        $as_test_x conftest$ac_exeext; then
29497   ac_cv_func_openlog=yes
29498 else
29499   echo "$as_me: failed program was:" >&5
29500 sed 's/^/| /' conftest.$ac_ext >&5
29501
29502         ac_cv_func_openlog=no
29503 fi
29504
29505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29506       conftest$ac_exeext conftest.$ac_ext
29507 fi
29508 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29509 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29510
29511         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29512                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29513 echo "$as_me: error: could not find syslog" >&2;}
29514    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29515         fi
29516         ol_enable_syslog=$ac_cv_func_openlog
29517 fi
29518
29519 ol_link_sql=no
29520 if test $ol_enable_sql != no ; then
29521
29522
29523 for ac_header in sql.h sqlext.h
29524 do
29525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29527   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29530   echo $ECHO_N "(cached) $ECHO_C" >&6
29531 fi
29532 ac_res=`eval echo '${'$as_ac_Header'}'`
29533                { echo "$as_me:$LINENO: result: $ac_res" >&5
29534 echo "${ECHO_T}$ac_res" >&6; }
29535 else
29536   # Is the header compilable?
29537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29539 cat >conftest.$ac_ext <<_ACEOF
29540 /* confdefs.h.  */
29541 _ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h.  */
29545 $ac_includes_default
29546 #include <$ac_header>
29547 _ACEOF
29548 rm -f conftest.$ac_objext
29549 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
29565   ac_header_compiler=yes
29566 else
29567   echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29569
29570         ac_header_compiler=no
29571 fi
29572
29573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29575 echo "${ECHO_T}$ac_header_compiler" >&6; }
29576
29577 # Is the header present?
29578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29580 cat >conftest.$ac_ext <<_ACEOF
29581 /* confdefs.h.  */
29582 _ACEOF
29583 cat confdefs.h >>conftest.$ac_ext
29584 cat >>conftest.$ac_ext <<_ACEOF
29585 /* end confdefs.h.  */
29586 #include <$ac_header>
29587 _ACEOF
29588 if { (ac_try="$ac_cpp conftest.$ac_ext"
29589 case "(($ac_try" in
29590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591   *) ac_try_echo=$ac_try;;
29592 esac
29593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29595   ac_status=$?
29596   grep -v '^ *+' conftest.er1 >conftest.err
29597   rm -f conftest.er1
29598   cat conftest.err >&5
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } >/dev/null && {
29601          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29602          test ! -s conftest.err
29603        }; then
29604   ac_header_preproc=yes
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609   ac_header_preproc=no
29610 fi
29611
29612 rm -f conftest.err conftest.$ac_ext
29613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614 echo "${ECHO_T}$ac_header_preproc" >&6; }
29615
29616 # So?  What about this header?
29617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29618   yes:no: )
29619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623     ac_header_preproc=yes
29624     ;;
29625   no:yes:* )
29626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29638     ( cat <<\_ASBOX
29639 ## --------------------------------------------- ##
29640 ## Report this to <http://www.openldap.org/its/> ##
29641 ## --------------------------------------------- ##
29642 _ASBOX
29643      ) | sed "s/^/$as_me: WARNING:     /" >&2
29644     ;;
29645 esac
29646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649   echo $ECHO_N "(cached) $ECHO_C" >&6
29650 else
29651   eval "$as_ac_Header=\$ac_header_preproc"
29652 fi
29653 ac_res=`eval echo '${'$as_ac_Header'}'`
29654                { echo "$as_me:$LINENO: result: $ac_res" >&5
29655 echo "${ECHO_T}$ac_res" >&6; }
29656
29657 fi
29658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29659   cat >>confdefs.h <<_ACEOF
29660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29661 _ACEOF
29662
29663 else
29664
29665                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29666 echo "$as_me: error: could not locate SQL headers" >&2;}
29667    { (exit 1); exit 1; }; }
29668
29669 fi
29670
29671 done
29672
29673
29674         sql_LIBS="$LIBS"
29675         LIBS="$LTHREAD_LIBS"
29676
29677         if test $ol_with_odbc = auto ; then
29678                 ol_with_odbc="iodbc unixodbc odbc32"
29679         fi
29680
29681         for odbc in $ol_with_odbc ; do
29682                 if test $ol_link_sql = no ; then
29683                         case $odbc in
29684                         iodbc)
29685                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29686 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29687 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29688   echo $ECHO_N "(cached) $ECHO_C" >&6
29689 else
29690   ac_check_lib_save_LIBS=$LIBS
29691 LIBS="-liodbc  $LIBS"
29692 cat >conftest.$ac_ext <<_ACEOF
29693 /* confdefs.h.  */
29694 _ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h.  */
29698
29699 /* Override any GCC internal prototype to avoid an error.
29700    Use char because int might match the return type of a GCC
29701    builtin and then its argument prototype would still apply.  */
29702 #ifdef __cplusplus
29703 extern "C"
29704 #endif
29705 char SQLDriverConnect ();
29706 int
29707 main ()
29708 {
29709 return SQLDriverConnect ();
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_lib_iodbc_SQLDriverConnect=yes
29733 else
29734   echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737         ac_cv_lib_iodbc_SQLDriverConnect=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 LIBS=$ac_check_lib_save_LIBS
29743 fi
29744 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29745 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29746 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29747   have_iodbc=yes
29748 else
29749   have_iodbc=no
29750 fi
29751
29752                                 if test $have_iodbc = yes ; then
29753                                         ol_link_sql="-liodbc"
29754                                 fi
29755                                 ;;
29756
29757                         unixodbc)
29758                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29759 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29760 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29761   echo $ECHO_N "(cached) $ECHO_C" >&6
29762 else
29763   ac_check_lib_save_LIBS=$LIBS
29764 LIBS="-lodbc  $LIBS"
29765 cat >conftest.$ac_ext <<_ACEOF
29766 /* confdefs.h.  */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h.  */
29771
29772 /* Override any GCC internal prototype to avoid an error.
29773    Use char because int might match the return type of a GCC
29774    builtin and then its argument prototype would still apply.  */
29775 #ifdef __cplusplus
29776 extern "C"
29777 #endif
29778 char SQLDriverConnect ();
29779 int
29780 main ()
29781 {
29782 return SQLDriverConnect ();
29783   ;
29784   return 0;
29785 }
29786 _ACEOF
29787 rm -f conftest.$ac_objext conftest$ac_exeext
29788 if { (ac_try="$ac_link"
29789 case "(($ac_try" in
29790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791   *) ac_try_echo=$ac_try;;
29792 esac
29793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794   (eval "$ac_link") 2>conftest.er1
29795   ac_status=$?
29796   grep -v '^ *+' conftest.er1 >conftest.err
29797   rm -f conftest.er1
29798   cat conftest.err >&5
29799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800   (exit $ac_status); } && {
29801          test -z "$ac_c_werror_flag" ||
29802          test ! -s conftest.err
29803        } && test -s conftest$ac_exeext &&
29804        $as_test_x conftest$ac_exeext; then
29805   ac_cv_lib_odbc_SQLDriverConnect=yes
29806 else
29807   echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29809
29810         ac_cv_lib_odbc_SQLDriverConnect=no
29811 fi
29812
29813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29814       conftest$ac_exeext conftest.$ac_ext
29815 LIBS=$ac_check_lib_save_LIBS
29816 fi
29817 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29818 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29819 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29820   have_odbc=yes
29821 else
29822   have_odbc=no
29823 fi
29824
29825                                 if test $have_odbc = yes ; then
29826                                         ol_link_sql="-lodbc"
29827                                 fi
29828                                 ;;
29829
29830                         odbc32)
29831                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29832 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29833 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29834   echo $ECHO_N "(cached) $ECHO_C" >&6
29835 else
29836   ac_check_lib_save_LIBS=$LIBS
29837 LIBS="-lodbc32  $LIBS"
29838 cat >conftest.$ac_ext <<_ACEOF
29839 /* confdefs.h.  */
29840 _ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h.  */
29844
29845 /* Override any GCC internal prototype to avoid an error.
29846    Use char because int might match the return type of a GCC
29847    builtin and then its argument prototype would still apply.  */
29848 #ifdef __cplusplus
29849 extern "C"
29850 #endif
29851 char SQLDriverConnect ();
29852 int
29853 main ()
29854 {
29855 return SQLDriverConnect ();
29856   ;
29857   return 0;
29858 }
29859 _ACEOF
29860 rm -f conftest.$ac_objext conftest$ac_exeext
29861 if { (ac_try="$ac_link"
29862 case "(($ac_try" in
29863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864   *) ac_try_echo=$ac_try;;
29865 esac
29866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867   (eval "$ac_link") 2>conftest.er1
29868   ac_status=$?
29869   grep -v '^ *+' conftest.er1 >conftest.err
29870   rm -f conftest.er1
29871   cat conftest.err >&5
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); } && {
29874          test -z "$ac_c_werror_flag" ||
29875          test ! -s conftest.err
29876        } && test -s conftest$ac_exeext &&
29877        $as_test_x conftest$ac_exeext; then
29878   ac_cv_lib_odbc32_SQLDriverConnect=yes
29879 else
29880   echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29882
29883         ac_cv_lib_odbc32_SQLDriverConnect=no
29884 fi
29885
29886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29887       conftest$ac_exeext conftest.$ac_ext
29888 LIBS=$ac_check_lib_save_LIBS
29889 fi
29890 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29891 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29892 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29893   have_odbc32=yes
29894 else
29895   have_odbc32=no
29896 fi
29897
29898                                 if test $have_odbc32 = yes ; then
29899                                         ol_link_sql="-lodbc32"
29900                                 fi
29901                                 ;;
29902
29903                         *)
29904                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29905 echo "$as_me: error: unknown ODBC library" >&2;}
29906    { (exit 1); exit 1; }; }
29907                                 ;;
29908                         esac
29909                 fi
29910         done
29911
29912         LIBS="$sql_LIBS"
29913
29914         if test $ol_link_sql != no ; then
29915                 SLAPD_SQL_LIBS="$ol_link_sql"
29916
29917         elif test $ol_enable_sql != auto ; then
29918                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29919 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29920    { (exit 1); exit 1; }; }
29921         fi
29922 fi
29923
29924 ol_link_ndb=no
29925 if test $ol_enable_ndb != no ; then
29926         # Extract the first word of "mysql_config", so it can be a program name with args.
29927 set dummy mysql_config; ac_word=$2
29928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29930 if test "${ac_cv_prog_MYSQL+set}" = set; then
29931   echo $ECHO_N "(cached) $ECHO_C" >&6
29932 else
29933   if test -n "$MYSQL"; then
29934   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29935 else
29936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29937 for as_dir in $PATH
29938 do
29939   IFS=$as_save_IFS
29940   test -z "$as_dir" && as_dir=.
29941   for ac_exec_ext in '' $ac_executable_extensions; do
29942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29943     ac_cv_prog_MYSQL="yes"
29944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29945     break 2
29946   fi
29947 done
29948 done
29949 IFS=$as_save_IFS
29950
29951 fi
29952 fi
29953 MYSQL=$ac_cv_prog_MYSQL
29954 if test -n "$MYSQL"; then
29955   { echo "$as_me:$LINENO: result: $MYSQL" >&5
29956 echo "${ECHO_T}$MYSQL" >&6; }
29957 else
29958   { echo "$as_me:$LINENO: result: no" >&5
29959 echo "${ECHO_T}no" >&6; }
29960 fi
29961
29962
29963         if test "$MYSQL" != yes ; then
29964                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29965 echo "$as_me: error: could not locate mysql_config" >&2;}
29966    { (exit 1); exit 1; }; }
29967         fi
29968
29969         SQL_INC=`mysql_config --include`
29970         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29971
29972         save_CPPFLAGS="$CPPFLAGS"
29973         CPPFLAGS="$SLAPD_NDB_INCS"
29974         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29975 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29976         cat >conftest.$ac_ext <<_ACEOF
29977 /* confdefs.h.  */
29978 _ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h.  */
29982 #include <NdbApi.hpp>
29983 _ACEOF
29984 if { (ac_try="$ac_cpp conftest.$ac_ext"
29985 case "(($ac_try" in
29986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29987   *) ac_try_echo=$ac_try;;
29988 esac
29989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29991   ac_status=$?
29992   grep -v '^ *+' conftest.er1 >conftest.err
29993   rm -f conftest.er1
29994   cat conftest.err >&5
29995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996   (exit $ac_status); } >/dev/null && {
29997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29998          test ! -s conftest.err
29999        }; then
30000   { echo "$as_me:$LINENO: result: yes" >&5
30001 echo "${ECHO_T}yes" >&6; }
30002 else
30003   echo "$as_me: failed program was:" >&5
30004 sed 's/^/| /' conftest.$ac_ext >&5
30005
30006   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30007 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30008    { (exit 1); exit 1; }; }
30009
30010 fi
30011
30012 rm -f conftest.err conftest.$ac_ext
30013         CPPFLAGS="$save_CPPFLAGS"
30014
30015         SQL_LIB=`mysql_config --libs_r`
30016         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30017
30018         save_LDFLAGS="$LDFLAGS"
30019         save_LIBS="$LIBS"
30020         LDFLAGS="$SQL_LIB"
30021         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30022 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30023 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30024   echo $ECHO_N "(cached) $ECHO_C" >&6
30025 else
30026   ac_check_lib_save_LIBS=$LIBS
30027 LIBS="-lndbclient -lstdc++ $LIBS"
30028 cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034
30035 /* Override any GCC internal prototype to avoid an error.
30036    Use char because int might match the return type of a GCC
30037    builtin and then its argument prototype would still apply.  */
30038 #ifdef __cplusplus
30039 extern "C"
30040 #endif
30041 char ndb_init ();
30042 int
30043 main ()
30044 {
30045 return ndb_init ();
30046   ;
30047   return 0;
30048 }
30049 _ACEOF
30050 rm -f conftest.$ac_objext conftest$ac_exeext
30051 if { (ac_try="$ac_link"
30052 case "(($ac_try" in
30053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054   *) ac_try_echo=$ac_try;;
30055 esac
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057   (eval "$ac_link") 2>conftest.er1
30058   ac_status=$?
30059   grep -v '^ *+' conftest.er1 >conftest.err
30060   rm -f conftest.er1
30061   cat conftest.err >&5
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); } && {
30064          test -z "$ac_c_werror_flag" ||
30065          test ! -s conftest.err
30066        } && test -s conftest$ac_exeext &&
30067        $as_test_x conftest$ac_exeext; then
30068   ac_cv_lib_ndbclient_ndb_init=yes
30069 else
30070   echo "$as_me: failed program was:" >&5
30071 sed 's/^/| /' conftest.$ac_ext >&5
30072
30073         ac_cv_lib_ndbclient_ndb_init=no
30074 fi
30075
30076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30077       conftest$ac_exeext conftest.$ac_ext
30078 LIBS=$ac_check_lib_save_LIBS
30079 fi
30080 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30081 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30082 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30083   : ok
30084 else
30085
30086                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30087 echo "$as_me: error: could not locate ndbclient library" >&2;}
30088    { (exit 1); exit 1; }; }
30089
30090 fi
30091
30092         LIBS="$save_LIBS"
30093         LDFLAGS="$save_LDFLAGS"
30094
30095         if test "$ol_enable_ndb" = yes ; then
30096                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30097         fi
30098 fi
30099
30100 ol_icu=no
30101
30102 for ac_header in unicode/utypes.h
30103 do
30104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30106   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30109   echo $ECHO_N "(cached) $ECHO_C" >&6
30110 fi
30111 ac_res=`eval echo '${'$as_ac_Header'}'`
30112                { echo "$as_me:$LINENO: result: $ac_res" >&5
30113 echo "${ECHO_T}$ac_res" >&6; }
30114 else
30115   # Is the header compilable?
30116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30118 cat >conftest.$ac_ext <<_ACEOF
30119 /* confdefs.h.  */
30120 _ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h.  */
30124 $ac_includes_default
30125 #include <$ac_header>
30126 _ACEOF
30127 rm -f conftest.$ac_objext
30128 if { (ac_try="$ac_compile"
30129 case "(($ac_try" in
30130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131   *) ac_try_echo=$ac_try;;
30132 esac
30133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134   (eval "$ac_compile") 2>conftest.er1
30135   ac_status=$?
30136   grep -v '^ *+' conftest.er1 >conftest.err
30137   rm -f conftest.er1
30138   cat conftest.err >&5
30139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140   (exit $ac_status); } && {
30141          test -z "$ac_c_werror_flag" ||
30142          test ! -s conftest.err
30143        } && test -s conftest.$ac_objext; then
30144   ac_header_compiler=yes
30145 else
30146   echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30148
30149         ac_header_compiler=no
30150 fi
30151
30152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30154 echo "${ECHO_T}$ac_header_compiler" >&6; }
30155
30156 # Is the header present?
30157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30159 cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165 #include <$ac_header>
30166 _ACEOF
30167 if { (ac_try="$ac_cpp conftest.$ac_ext"
30168 case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30174   ac_status=$?
30175   grep -v '^ *+' conftest.er1 >conftest.err
30176   rm -f conftest.er1
30177   cat conftest.err >&5
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); } >/dev/null && {
30180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30181          test ! -s conftest.err
30182        }; then
30183   ac_header_preproc=yes
30184 else
30185   echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30187
30188   ac_header_preproc=no
30189 fi
30190
30191 rm -f conftest.err conftest.$ac_ext
30192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30193 echo "${ECHO_T}$ac_header_preproc" >&6; }
30194
30195 # So?  What about this header?
30196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30197   yes:no: )
30198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30202     ac_header_preproc=yes
30203     ;;
30204   no:yes:* )
30205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30217     ( cat <<\_ASBOX
30218 ## --------------------------------------------- ##
30219 ## Report this to <http://www.openldap.org/its/> ##
30220 ## --------------------------------------------- ##
30221 _ASBOX
30222      ) | sed "s/^/$as_me: WARNING:     /" >&2
30223     ;;
30224 esac
30225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228   echo $ECHO_N "(cached) $ECHO_C" >&6
30229 else
30230   eval "$as_ac_Header=\$ac_header_preproc"
30231 fi
30232 ac_res=`eval echo '${'$as_ac_Header'}'`
30233                { echo "$as_me:$LINENO: result: $ac_res" >&5
30234 echo "${ECHO_T}$ac_res" >&6; }
30235
30236 fi
30237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30238   cat >>confdefs.h <<_ACEOF
30239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30240 _ACEOF
30241
30242 fi
30243
30244 done
30245
30246 if test $ac_cv_header_unicode_utypes_h = yes ; then
30247                 OL_ICULIBS="-licuuc -licudata"
30248
30249         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30250 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30251 if test "${ol_cv_lib_icu+set}" = set; then
30252   echo $ECHO_N "(cached) $ECHO_C" >&6
30253 else
30254
30255                 ol_LIBS="$LIBS"
30256                 LIBS="$OL_ICULIBS $LIBS"
30257                 cat >conftest.$ac_ext <<_ACEOF
30258 /* confdefs.h.  */
30259 _ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h.  */
30263
30264 #include <unicode/utypes.h>
30265
30266 int
30267 main ()
30268 {
30269
30270 (void) u_errorName(0);
30271
30272   ;
30273   return 0;
30274 }
30275 _ACEOF
30276 rm -f conftest.$ac_objext conftest$ac_exeext
30277 if { (ac_try="$ac_link"
30278 case "(($ac_try" in
30279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280   *) ac_try_echo=$ac_try;;
30281 esac
30282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283   (eval "$ac_link") 2>conftest.er1
30284   ac_status=$?
30285   grep -v '^ *+' conftest.er1 >conftest.err
30286   rm -f conftest.er1
30287   cat conftest.err >&5
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); } && {
30290          test -z "$ac_c_werror_flag" ||
30291          test ! -s conftest.err
30292        } && test -s conftest$ac_exeext &&
30293        $as_test_x conftest$ac_exeext; then
30294   ol_cv_lib_icu=yes
30295 else
30296   echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30298
30299         ol_cv_lib_icu=no
30300 fi
30301
30302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30303       conftest$ac_exeext conftest.$ac_ext
30304                 LIBS="$ol_LIBS"
30305
30306 fi
30307 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30308 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30309
30310         if test $ol_cv_lib_icu != no ; then
30311                 ol_icu="$OL_ICULIBS"
30312
30313 cat >>confdefs.h <<\_ACEOF
30314 #define HAVE_ICU 1
30315 _ACEOF
30316
30317         fi
30318 fi
30319
30320 if test "$ol_icu" = no ; then
30321         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30322 echo "$as_me: WARNING: ICU not available" >&2;}
30323 else
30324         ICU_LIBS="$ol_icu"
30325 fi
30326 WITH_SASL=no
30327 ol_link_sasl=no
30328 ol_link_spasswd=no
30329 if test $ol_with_cyrus_sasl != no ; then
30330
30331
30332 for ac_header in sasl/sasl.h sasl.h
30333 do
30334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30339   echo $ECHO_N "(cached) $ECHO_C" >&6
30340 fi
30341 ac_res=`eval echo '${'$as_ac_Header'}'`
30342                { echo "$as_me:$LINENO: result: $ac_res" >&5
30343 echo "${ECHO_T}$ac_res" >&6; }
30344 else
30345   # Is the header compilable?
30346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30348 cat >conftest.$ac_ext <<_ACEOF
30349 /* confdefs.h.  */
30350 _ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h.  */
30354 $ac_includes_default
30355 #include <$ac_header>
30356 _ACEOF
30357 rm -f conftest.$ac_objext
30358 if { (ac_try="$ac_compile"
30359 case "(($ac_try" in
30360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361   *) ac_try_echo=$ac_try;;
30362 esac
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364   (eval "$ac_compile") 2>conftest.er1
30365   ac_status=$?
30366   grep -v '^ *+' conftest.er1 >conftest.err
30367   rm -f conftest.er1
30368   cat conftest.err >&5
30369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370   (exit $ac_status); } && {
30371          test -z "$ac_c_werror_flag" ||
30372          test ! -s conftest.err
30373        } && test -s conftest.$ac_objext; then
30374   ac_header_compiler=yes
30375 else
30376   echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379         ac_header_compiler=no
30380 fi
30381
30382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30384 echo "${ECHO_T}$ac_header_compiler" >&6; }
30385
30386 # Is the header present?
30387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30389 cat >conftest.$ac_ext <<_ACEOF
30390 /* confdefs.h.  */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h.  */
30395 #include <$ac_header>
30396 _ACEOF
30397 if { (ac_try="$ac_cpp conftest.$ac_ext"
30398 case "(($ac_try" in
30399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400   *) ac_try_echo=$ac_try;;
30401 esac
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30404   ac_status=$?
30405   grep -v '^ *+' conftest.er1 >conftest.err
30406   rm -f conftest.er1
30407   cat conftest.err >&5
30408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409   (exit $ac_status); } >/dev/null && {
30410          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30411          test ! -s conftest.err
30412        }; then
30413   ac_header_preproc=yes
30414 else
30415   echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30417
30418   ac_header_preproc=no
30419 fi
30420
30421 rm -f conftest.err conftest.$ac_ext
30422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30423 echo "${ECHO_T}$ac_header_preproc" >&6; }
30424
30425 # So?  What about this header?
30426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30427   yes:no: )
30428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30432     ac_header_preproc=yes
30433     ;;
30434   no:yes:* )
30435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30447     ( cat <<\_ASBOX
30448 ## --------------------------------------------- ##
30449 ## Report this to <http://www.openldap.org/its/> ##
30450 ## --------------------------------------------- ##
30451 _ASBOX
30452      ) | sed "s/^/$as_me: WARNING:     /" >&2
30453     ;;
30454 esac
30455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30458   echo $ECHO_N "(cached) $ECHO_C" >&6
30459 else
30460   eval "$as_ac_Header=\$ac_header_preproc"
30461 fi
30462 ac_res=`eval echo '${'$as_ac_Header'}'`
30463                { echo "$as_me:$LINENO: result: $ac_res" >&5
30464 echo "${ECHO_T}$ac_res" >&6; }
30465
30466 fi
30467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30468   cat >>confdefs.h <<_ACEOF
30469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30470 _ACEOF
30471
30472 fi
30473
30474 done
30475
30476
30477         if test $ac_cv_header_sasl_sasl_h = yes ||
30478            test $ac_cv_header_sasl_h = yes; then
30479                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30480 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30481 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30482   echo $ECHO_N "(cached) $ECHO_C" >&6
30483 else
30484   ac_check_lib_save_LIBS=$LIBS
30485 LIBS="-lsasl2  $LIBS"
30486 cat >conftest.$ac_ext <<_ACEOF
30487 /* confdefs.h.  */
30488 _ACEOF
30489 cat confdefs.h >>conftest.$ac_ext
30490 cat >>conftest.$ac_ext <<_ACEOF
30491 /* end confdefs.h.  */
30492
30493 /* Override any GCC internal prototype to avoid an error.
30494    Use char because int might match the return type of a GCC
30495    builtin and then its argument prototype would still apply.  */
30496 #ifdef __cplusplus
30497 extern "C"
30498 #endif
30499 char sasl_client_init ();
30500 int
30501 main ()
30502 {
30503 return sasl_client_init ();
30504   ;
30505   return 0;
30506 }
30507 _ACEOF
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512   *) ac_try_echo=$ac_try;;
30513 esac
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515   (eval "$ac_link") 2>conftest.er1
30516   ac_status=$?
30517   grep -v '^ *+' conftest.er1 >conftest.err
30518   rm -f conftest.er1
30519   cat conftest.err >&5
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); } && {
30522          test -z "$ac_c_werror_flag" ||
30523          test ! -s conftest.err
30524        } && test -s conftest$ac_exeext &&
30525        $as_test_x conftest$ac_exeext; then
30526   ac_cv_lib_sasl2_sasl_client_init=yes
30527 else
30528   echo "$as_me: failed program was:" >&5
30529 sed 's/^/| /' conftest.$ac_ext >&5
30530
30531         ac_cv_lib_sasl2_sasl_client_init=no
30532 fi
30533
30534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30535       conftest$ac_exeext conftest.$ac_ext
30536 LIBS=$ac_check_lib_save_LIBS
30537 fi
30538 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30539 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30540 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30541   ol_link_sasl="-lsasl2"
30542 else
30543   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30544 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30545 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30546   echo $ECHO_N "(cached) $ECHO_C" >&6
30547 else
30548   ac_check_lib_save_LIBS=$LIBS
30549 LIBS="-lsasl  $LIBS"
30550 cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556
30557 /* Override any GCC internal prototype to avoid an error.
30558    Use char because int might match the return type of a GCC
30559    builtin and then its argument prototype would still apply.  */
30560 #ifdef __cplusplus
30561 extern "C"
30562 #endif
30563 char sasl_client_init ();
30564 int
30565 main ()
30566 {
30567 return sasl_client_init ();
30568   ;
30569   return 0;
30570 }
30571 _ACEOF
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (ac_try="$ac_link"
30574 case "(($ac_try" in
30575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576   *) ac_try_echo=$ac_try;;
30577 esac
30578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579   (eval "$ac_link") 2>conftest.er1
30580   ac_status=$?
30581   grep -v '^ *+' conftest.er1 >conftest.err
30582   rm -f conftest.er1
30583   cat conftest.err >&5
30584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585   (exit $ac_status); } && {
30586          test -z "$ac_c_werror_flag" ||
30587          test ! -s conftest.err
30588        } && test -s conftest$ac_exeext &&
30589        $as_test_x conftest$ac_exeext; then
30590   ac_cv_lib_sasl_sasl_client_init=yes
30591 else
30592   echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30594
30595         ac_cv_lib_sasl_sasl_client_init=no
30596 fi
30597
30598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30599       conftest$ac_exeext conftest.$ac_ext
30600 LIBS=$ac_check_lib_save_LIBS
30601 fi
30602 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30603 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30604 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30605   ol_link_sasl="-lsasl"
30606 fi
30607
30608 fi
30609
30610         fi
30611
30612         if test $ol_link_sasl = no ; then
30613                 if test $ol_with_cyrus_sasl != auto ; then
30614                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30615 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30616    { (exit 1); exit 1; }; }
30617                 else
30618                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30619 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30620                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30621 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30622                         if test $ol_link_tls = no ; then
30623                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30624 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30625                         fi
30626                 fi
30627         else
30628                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30629 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30630 if test "${ol_cv_sasl_compat+set}" = set; then
30631   echo $ECHO_N "(cached) $ECHO_C" >&6
30632 else
30633
30634         cat >conftest.$ac_ext <<_ACEOF
30635 /* confdefs.h.  */
30636 _ACEOF
30637 cat confdefs.h >>conftest.$ac_ext
30638 cat >>conftest.$ac_ext <<_ACEOF
30639 /* end confdefs.h.  */
30640
30641 #ifdef HAVE_SASL_SASL_H
30642 #include <sasl/sasl.h>
30643 #else
30644 #include <sasl.h>
30645 #endif
30646
30647 /* Require 2.1.15+ */
30648 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30649         char *__sasl_compat = "2.2+ or better okay (we guess)";
30650 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30651         && SASL_VERSION_STEP >=15
30652         char *__sasl_compat = "2.1.15+ or better okay";
30653 #endif
30654
30655 _ACEOF
30656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30657   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30658   ol_cv_sasl_compat=yes
30659 else
30660   ol_cv_sasl_compat=no
30661 fi
30662 rm -f conftest*
30663
30664 fi
30665 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30666 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30667
30668                 if test $ol_cv_sasl_compat = no ; then
30669                         ol_link_sasl=no
30670                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30671 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30672    { (exit 1); exit 1; }; }
30673                 fi
30674
30675
30676 cat >>confdefs.h <<\_ACEOF
30677 #define HAVE_CYRUS_SASL 1
30678 _ACEOF
30679
30680                 SASL_LIBS="$ol_link_sasl"
30681                 if test $ol_enable_spasswd != no ; then
30682                         ol_link_spasswd=yes
30683                 fi
30684
30685                 ac_save_LIBS="$LIBS"
30686                 LIBS="$LIBS $ol_link_sasl"
30687                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30688 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30689 if test "${ac_cv_func_sasl_version+set}" = set; then
30690   echo $ECHO_N "(cached) $ECHO_C" >&6
30691 else
30692   cat >conftest.$ac_ext <<_ACEOF
30693 /* confdefs.h.  */
30694 _ACEOF
30695 cat confdefs.h >>conftest.$ac_ext
30696 cat >>conftest.$ac_ext <<_ACEOF
30697 /* end confdefs.h.  */
30698 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30700 #define sasl_version innocuous_sasl_version
30701
30702 /* System header to define __stub macros and hopefully few prototypes,
30703     which can conflict with char sasl_version (); below.
30704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30705     <limits.h> exists even on freestanding compilers.  */
30706
30707 #ifdef __STDC__
30708 # include <limits.h>
30709 #else
30710 # include <assert.h>
30711 #endif
30712
30713 #undef sasl_version
30714
30715 /* Override any GCC internal prototype to avoid an error.
30716    Use char because int might match the return type of a GCC
30717    builtin and then its argument prototype would still apply.  */
30718 #ifdef __cplusplus
30719 extern "C"
30720 #endif
30721 char sasl_version ();
30722 /* The GNU C library defines this for functions which it implements
30723     to always fail with ENOSYS.  Some functions are actually named
30724     something starting with __ and the normal name is an alias.  */
30725 #if defined __stub_sasl_version || defined __stub___sasl_version
30726 choke me
30727 #endif
30728
30729 int
30730 main ()
30731 {
30732 return sasl_version ();
30733   ;
30734   return 0;
30735 }
30736 _ACEOF
30737 rm -f conftest.$ac_objext conftest$ac_exeext
30738 if { (ac_try="$ac_link"
30739 case "(($ac_try" in
30740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741   *) ac_try_echo=$ac_try;;
30742 esac
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744   (eval "$ac_link") 2>conftest.er1
30745   ac_status=$?
30746   grep -v '^ *+' conftest.er1 >conftest.err
30747   rm -f conftest.er1
30748   cat conftest.err >&5
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); } && {
30751          test -z "$ac_c_werror_flag" ||
30752          test ! -s conftest.err
30753        } && test -s conftest$ac_exeext &&
30754        $as_test_x conftest$ac_exeext; then
30755   ac_cv_func_sasl_version=yes
30756 else
30757   echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760         ac_cv_func_sasl_version=no
30761 fi
30762
30763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30764       conftest$ac_exeext conftest.$ac_ext
30765 fi
30766 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30767 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30768 if test $ac_cv_func_sasl_version = yes; then
30769
30770 cat >>confdefs.h <<\_ACEOF
30771 #define HAVE_SASL_VERSION 1
30772 _ACEOF
30773
30774 fi
30775
30776                 LIBS="$ac_save_LIBS"
30777
30778                 WITH_SASL=yes
30779         fi
30780
30781 else
30782         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30783 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30784         if test $ol_link_tls = no ; then
30785                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30786 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30787         fi
30788 fi
30789
30790 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30791         dev=no
30792         if test -r /dev/urandom ; then
30793                 dev="/dev/urandom";
30794         elif test -r /idev/urandom ; then
30795                 dev="/idev/urandom";
30796         elif test -r /dev/srandom ; then
30797                 dev="/dev/srandom";
30798         elif test -r /dev/random ; then
30799                 dev="/dev/random";
30800         elif test -r /idev/random ; then
30801                 dev="/idev/random";
30802         fi
30803
30804         if test $dev != no ; then
30805
30806 cat >>confdefs.h <<_ACEOF
30807 #define URANDOM_DEVICE "$dev"
30808 _ACEOF
30809
30810         fi
30811 fi
30812
30813 ol_link_fetch=no
30814 if test $ol_with_fetch != no ; then
30815         ol_LIBS=$LIBS
30816 LIBS="-lfetch -lcom_err $LIBS"
30817 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30818 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30819 if test "${ol_cv_lib_fetch+set}" = set; then
30820   echo $ECHO_N "(cached) $ECHO_C" >&6
30821 else
30822
30823         cat >conftest.$ac_ext <<_ACEOF
30824 /* confdefs.h.  */
30825 _ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h.  */
30829
30830 #ifdef HAVE_SYS_PARAM_H
30831 #include <sys/param.h>
30832 #endif
30833 #include <stdio.h>
30834 #include <fetch.h>
30835 int
30836 main ()
30837 {
30838 struct url *u = fetchParseURL("file:///");
30839   ;
30840   return 0;
30841 }
30842 _ACEOF
30843 rm -f conftest.$ac_objext conftest$ac_exeext
30844 if { (ac_try="$ac_link"
30845 case "(($ac_try" in
30846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847   *) ac_try_echo=$ac_try;;
30848 esac
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850   (eval "$ac_link") 2>conftest.er1
30851   ac_status=$?
30852   grep -v '^ *+' conftest.er1 >conftest.err
30853   rm -f conftest.er1
30854   cat conftest.err >&5
30855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856   (exit $ac_status); } && {
30857          test -z "$ac_c_werror_flag" ||
30858          test ! -s conftest.err
30859        } && test -s conftest$ac_exeext &&
30860        $as_test_x conftest$ac_exeext; then
30861   ol_cv_lib_fetch=yes
30862 else
30863   echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30865
30866         ol_cv_lib_fetch=no
30867 fi
30868
30869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30870       conftest$ac_exeext conftest.$ac_ext
30871 fi
30872 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30873 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30874 LIBS=$ol_LIBS
30875 if test $ol_cv_lib_fetch != no ; then
30876         ol_link_fetch="-lfetch -lcom_err"
30877
30878 cat >>confdefs.h <<\_ACEOF
30879 #define HAVE_FETCH 1
30880 _ACEOF
30881
30882 fi
30883
30884
30885         if test $ol_cv_lib_fetch != no ; then
30886                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30887                 ol_link_fetch=freebsd
30888
30889         elif test $ol_with_fetch != auto ; then
30890                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30891 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30892    { (exit 1); exit 1; }; }
30893         fi
30894 fi
30895
30896 if test $ol_enable_crypt != no ; then
30897         save_LIBS="$LIBS"
30898         LIBS="$TLS_LIBS $LIBS"
30899
30900         { echo "$as_me:$LINENO: checking for crypt" >&5
30901 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30902 if test "${ac_cv_func_crypt+set}" = set; then
30903   echo $ECHO_N "(cached) $ECHO_C" >&6
30904 else
30905   cat >conftest.$ac_ext <<_ACEOF
30906 /* confdefs.h.  */
30907 _ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h.  */
30911 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30913 #define crypt innocuous_crypt
30914
30915 /* System header to define __stub macros and hopefully few prototypes,
30916     which can conflict with char crypt (); below.
30917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30918     <limits.h> exists even on freestanding compilers.  */
30919
30920 #ifdef __STDC__
30921 # include <limits.h>
30922 #else
30923 # include <assert.h>
30924 #endif
30925
30926 #undef crypt
30927
30928 /* Override any GCC internal prototype to avoid an error.
30929    Use char because int might match the return type of a GCC
30930    builtin and then its argument prototype would still apply.  */
30931 #ifdef __cplusplus
30932 extern "C"
30933 #endif
30934 char crypt ();
30935 /* The GNU C library defines this for functions which it implements
30936     to always fail with ENOSYS.  Some functions are actually named
30937     something starting with __ and the normal name is an alias.  */
30938 #if defined __stub_crypt || defined __stub___crypt
30939 choke me
30940 #endif
30941
30942 int
30943 main ()
30944 {
30945 return crypt ();
30946   ;
30947   return 0;
30948 }
30949 _ACEOF
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (ac_try="$ac_link"
30952 case "(($ac_try" in
30953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954   *) ac_try_echo=$ac_try;;
30955 esac
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957   (eval "$ac_link") 2>conftest.er1
30958   ac_status=$?
30959   grep -v '^ *+' conftest.er1 >conftest.err
30960   rm -f conftest.er1
30961   cat conftest.err >&5
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); } && {
30964          test -z "$ac_c_werror_flag" ||
30965          test ! -s conftest.err
30966        } && test -s conftest$ac_exeext &&
30967        $as_test_x conftest$ac_exeext; then
30968   ac_cv_func_crypt=yes
30969 else
30970   echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30972
30973         ac_cv_func_crypt=no
30974 fi
30975
30976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30977       conftest$ac_exeext conftest.$ac_ext
30978 fi
30979 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30980 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30981 if test $ac_cv_func_crypt = yes; then
30982   have_crypt=yes
30983 else
30984
30985                 LIBS="$save_LIBS"
30986                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30987 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30988 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30989   echo $ECHO_N "(cached) $ECHO_C" >&6
30990 else
30991   ac_check_lib_save_LIBS=$LIBS
30992 LIBS="-lcrypt  $LIBS"
30993 cat >conftest.$ac_ext <<_ACEOF
30994 /* confdefs.h.  */
30995 _ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h.  */
30999
31000 /* Override any GCC internal prototype to avoid an error.
31001    Use char because int might match the return type of a GCC
31002    builtin and then its argument prototype would still apply.  */
31003 #ifdef __cplusplus
31004 extern "C"
31005 #endif
31006 char crypt ();
31007 int
31008 main ()
31009 {
31010 return crypt ();
31011   ;
31012   return 0;
31013 }
31014 _ACEOF
31015 rm -f conftest.$ac_objext conftest$ac_exeext
31016 if { (ac_try="$ac_link"
31017 case "(($ac_try" in
31018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019   *) ac_try_echo=$ac_try;;
31020 esac
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022   (eval "$ac_link") 2>conftest.er1
31023   ac_status=$?
31024   grep -v '^ *+' conftest.er1 >conftest.err
31025   rm -f conftest.er1
31026   cat conftest.err >&5
31027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028   (exit $ac_status); } && {
31029          test -z "$ac_c_werror_flag" ||
31030          test ! -s conftest.err
31031        } && test -s conftest$ac_exeext &&
31032        $as_test_x conftest$ac_exeext; then
31033   ac_cv_lib_crypt_crypt=yes
31034 else
31035   echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31037
31038         ac_cv_lib_crypt_crypt=no
31039 fi
31040
31041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31042       conftest$ac_exeext conftest.$ac_ext
31043 LIBS=$ac_check_lib_save_LIBS
31044 fi
31045 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31046 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31047 if test $ac_cv_lib_crypt_crypt = yes; then
31048   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31049                         have_crypt=yes
31050 else
31051   have_crypt=no
31052 fi
31053
31054 fi
31055
31056
31057         LIBS="$save_LIBS"
31058
31059         if test $have_crypt = yes ; then
31060
31061 cat >>confdefs.h <<\_ACEOF
31062 #define HAVE_CRYPT 1
31063 _ACEOF
31064
31065         else
31066                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31067 echo "$as_me: WARNING: could not find crypt" >&2;}
31068                 if test $ol_enable_crypt = yes ; then
31069                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31070 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31071    { (exit 1); exit 1; }; }
31072                 fi
31073
31074                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31075 echo "$as_me: WARNING: disabling crypt support" >&2;}
31076                 ol_enable_crypt=no
31077         fi
31078 fi
31079
31080 if test $ol_enable_proctitle != no ; then
31081         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31082 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31083 if test "${ac_cv_func_setproctitle+set}" = set; then
31084   echo $ECHO_N "(cached) $ECHO_C" >&6
31085 else
31086   cat >conftest.$ac_ext <<_ACEOF
31087 /* confdefs.h.  */
31088 _ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h.  */
31092 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31094 #define setproctitle innocuous_setproctitle
31095
31096 /* System header to define __stub macros and hopefully few prototypes,
31097     which can conflict with char setproctitle (); below.
31098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31099     <limits.h> exists even on freestanding compilers.  */
31100
31101 #ifdef __STDC__
31102 # include <limits.h>
31103 #else
31104 # include <assert.h>
31105 #endif
31106
31107 #undef setproctitle
31108
31109 /* Override any GCC internal prototype to avoid an error.
31110    Use char because int might match the return type of a GCC
31111    builtin and then its argument prototype would still apply.  */
31112 #ifdef __cplusplus
31113 extern "C"
31114 #endif
31115 char setproctitle ();
31116 /* The GNU C library defines this for functions which it implements
31117     to always fail with ENOSYS.  Some functions are actually named
31118     something starting with __ and the normal name is an alias.  */
31119 #if defined __stub_setproctitle || defined __stub___setproctitle
31120 choke me
31121 #endif
31122
31123 int
31124 main ()
31125 {
31126 return setproctitle ();
31127   ;
31128   return 0;
31129 }
31130 _ACEOF
31131 rm -f conftest.$ac_objext conftest$ac_exeext
31132 if { (ac_try="$ac_link"
31133 case "(($ac_try" in
31134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135   *) ac_try_echo=$ac_try;;
31136 esac
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138   (eval "$ac_link") 2>conftest.er1
31139   ac_status=$?
31140   grep -v '^ *+' conftest.er1 >conftest.err
31141   rm -f conftest.er1
31142   cat conftest.err >&5
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); } && {
31145          test -z "$ac_c_werror_flag" ||
31146          test ! -s conftest.err
31147        } && test -s conftest$ac_exeext &&
31148        $as_test_x conftest$ac_exeext; then
31149   ac_cv_func_setproctitle=yes
31150 else
31151   echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31153
31154         ac_cv_func_setproctitle=no
31155 fi
31156
31157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31158       conftest$ac_exeext conftest.$ac_ext
31159 fi
31160 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31161 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31162 if test $ac_cv_func_setproctitle = yes; then
31163   have_setproctitle=yes
31164 else
31165
31166                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31167 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31168 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31169   echo $ECHO_N "(cached) $ECHO_C" >&6
31170 else
31171   ac_check_lib_save_LIBS=$LIBS
31172 LIBS="-lutil  $LIBS"
31173 cat >conftest.$ac_ext <<_ACEOF
31174 /* confdefs.h.  */
31175 _ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h.  */
31179
31180 /* Override any GCC internal prototype to avoid an error.
31181    Use char because int might match the return type of a GCC
31182    builtin and then its argument prototype would still apply.  */
31183 #ifdef __cplusplus
31184 extern "C"
31185 #endif
31186 char setproctitle ();
31187 int
31188 main ()
31189 {
31190 return setproctitle ();
31191   ;
31192   return 0;
31193 }
31194 _ACEOF
31195 rm -f conftest.$ac_objext conftest$ac_exeext
31196 if { (ac_try="$ac_link"
31197 case "(($ac_try" in
31198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199   *) ac_try_echo=$ac_try;;
31200 esac
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202   (eval "$ac_link") 2>conftest.er1
31203   ac_status=$?
31204   grep -v '^ *+' conftest.er1 >conftest.err
31205   rm -f conftest.er1
31206   cat conftest.err >&5
31207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208   (exit $ac_status); } && {
31209          test -z "$ac_c_werror_flag" ||
31210          test ! -s conftest.err
31211        } && test -s conftest$ac_exeext &&
31212        $as_test_x conftest$ac_exeext; then
31213   ac_cv_lib_util_setproctitle=yes
31214 else
31215   echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31217
31218         ac_cv_lib_util_setproctitle=no
31219 fi
31220
31221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31222       conftest$ac_exeext conftest.$ac_ext
31223 LIBS=$ac_check_lib_save_LIBS
31224 fi
31225 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31226 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31227 if test $ac_cv_lib_util_setproctitle = yes; then
31228   have_setproctitle=yes
31229                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31230 else
31231   have_setproctitle=no
31232                         case " $LIBOBJS " in
31233   *" setproctitle.$ac_objext "* ) ;;
31234   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31235  ;;
31236 esac
31237
31238                         LIBSRCS="$LIBSRCS setproctitle.c"
31239 fi
31240
31241 fi
31242
31243
31244         if test $have_setproctitle = yes ; then
31245
31246 cat >>confdefs.h <<\_ACEOF
31247 #define HAVE_SETPROCTITLE 1
31248 _ACEOF
31249
31250         fi
31251 fi
31252
31253 if test $ol_enable_slp != no ; then
31254
31255 for ac_header in slp.h
31256 do
31257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31259   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31262   echo $ECHO_N "(cached) $ECHO_C" >&6
31263 fi
31264 ac_res=`eval echo '${'$as_ac_Header'}'`
31265                { echo "$as_me:$LINENO: result: $ac_res" >&5
31266 echo "${ECHO_T}$ac_res" >&6; }
31267 else
31268   # Is the header compilable?
31269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31271 cat >conftest.$ac_ext <<_ACEOF
31272 /* confdefs.h.  */
31273 _ACEOF
31274 cat confdefs.h >>conftest.$ac_ext
31275 cat >>conftest.$ac_ext <<_ACEOF
31276 /* end confdefs.h.  */
31277 $ac_includes_default
31278 #include <$ac_header>
31279 _ACEOF
31280 rm -f conftest.$ac_objext
31281 if { (ac_try="$ac_compile"
31282 case "(($ac_try" in
31283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31284   *) ac_try_echo=$ac_try;;
31285 esac
31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287   (eval "$ac_compile") 2>conftest.er1
31288   ac_status=$?
31289   grep -v '^ *+' conftest.er1 >conftest.err
31290   rm -f conftest.er1
31291   cat conftest.err >&5
31292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293   (exit $ac_status); } && {
31294          test -z "$ac_c_werror_flag" ||
31295          test ! -s conftest.err
31296        } && test -s conftest.$ac_objext; then
31297   ac_header_compiler=yes
31298 else
31299   echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31301
31302         ac_header_compiler=no
31303 fi
31304
31305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31307 echo "${ECHO_T}$ac_header_compiler" >&6; }
31308
31309 # Is the header present?
31310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31312 cat >conftest.$ac_ext <<_ACEOF
31313 /* confdefs.h.  */
31314 _ACEOF
31315 cat confdefs.h >>conftest.$ac_ext
31316 cat >>conftest.$ac_ext <<_ACEOF
31317 /* end confdefs.h.  */
31318 #include <$ac_header>
31319 _ACEOF
31320 if { (ac_try="$ac_cpp conftest.$ac_ext"
31321 case "(($ac_try" in
31322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323   *) ac_try_echo=$ac_try;;
31324 esac
31325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31327   ac_status=$?
31328   grep -v '^ *+' conftest.er1 >conftest.err
31329   rm -f conftest.er1
31330   cat conftest.err >&5
31331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332   (exit $ac_status); } >/dev/null && {
31333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31334          test ! -s conftest.err
31335        }; then
31336   ac_header_preproc=yes
31337 else
31338   echo "$as_me: failed program was:" >&5
31339 sed 's/^/| /' conftest.$ac_ext >&5
31340
31341   ac_header_preproc=no
31342 fi
31343
31344 rm -f conftest.err conftest.$ac_ext
31345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31346 echo "${ECHO_T}$ac_header_preproc" >&6; }
31347
31348 # So?  What about this header?
31349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31350   yes:no: )
31351     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31355     ac_header_preproc=yes
31356     ;;
31357   no:yes:* )
31358     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31360     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31361 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31362     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31364     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31365 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31368     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31370     ( cat <<\_ASBOX
31371 ## --------------------------------------------- ##
31372 ## Report this to <http://www.openldap.org/its/> ##
31373 ## --------------------------------------------- ##
31374 _ASBOX
31375      ) | sed "s/^/$as_me: WARNING:     /" >&2
31376     ;;
31377 esac
31378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31381   echo $ECHO_N "(cached) $ECHO_C" >&6
31382 else
31383   eval "$as_ac_Header=\$ac_header_preproc"
31384 fi
31385 ac_res=`eval echo '${'$as_ac_Header'}'`
31386                { echo "$as_me:$LINENO: result: $ac_res" >&5
31387 echo "${ECHO_T}$ac_res" >&6; }
31388
31389 fi
31390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31391   cat >>confdefs.h <<_ACEOF
31392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31393 _ACEOF
31394
31395 fi
31396
31397 done
31398
31399
31400         if test $ac_cv_header_slp_h = yes ; then
31401                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31402 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31403 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31404   echo $ECHO_N "(cached) $ECHO_C" >&6
31405 else
31406   ac_check_lib_save_LIBS=$LIBS
31407 LIBS="-lslp  $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 SLPOpen ();
31422 int
31423 main ()
31424 {
31425 return SLPOpen ();
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_slp_SLPOpen=yes
31449 else
31450   echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31452
31453         ac_cv_lib_slp_SLPOpen=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_slp_SLPOpen" >&5
31461 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31462 if test $ac_cv_lib_slp_SLPOpen = yes; then
31463   have_slp=yes
31464 else
31465   have_slp=no
31466 fi
31467
31468                 if test $have_slp = yes ; then
31469
31470 cat >>confdefs.h <<\_ACEOF
31471 #define HAVE_SLP 1
31472 _ACEOF
31473
31474                         SLAPD_SLP_LIBS=-lslp
31475                 fi
31476
31477         elif test $ol_enable_slp = yes ; then
31478                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31479 echo "$as_me: error: SLP not found" >&2;}
31480    { (exit 1); exit 1; }; }
31481         fi
31482 fi
31483
31484
31485 { echo "$as_me:$LINENO: checking for mode_t" >&5
31486 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31487 if test "${ac_cv_type_mode_t+set}" = set; then
31488   echo $ECHO_N "(cached) $ECHO_C" >&6
31489 else
31490   cat >conftest.$ac_ext <<_ACEOF
31491 /* confdefs.h.  */
31492 _ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h.  */
31496 $ac_includes_default
31497 typedef mode_t ac__type_new_;
31498 int
31499 main ()
31500 {
31501 if ((ac__type_new_ *) 0)
31502   return 0;
31503 if (sizeof (ac__type_new_))
31504   return 0;
31505   ;
31506   return 0;
31507 }
31508 _ACEOF
31509 rm -f conftest.$ac_objext
31510 if { (ac_try="$ac_compile"
31511 case "(($ac_try" in
31512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513   *) ac_try_echo=$ac_try;;
31514 esac
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516   (eval "$ac_compile") 2>conftest.er1
31517   ac_status=$?
31518   grep -v '^ *+' conftest.er1 >conftest.err
31519   rm -f conftest.er1
31520   cat conftest.err >&5
31521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522   (exit $ac_status); } && {
31523          test -z "$ac_c_werror_flag" ||
31524          test ! -s conftest.err
31525        } && test -s conftest.$ac_objext; then
31526   ac_cv_type_mode_t=yes
31527 else
31528   echo "$as_me: failed program was:" >&5
31529 sed 's/^/| /' conftest.$ac_ext >&5
31530
31531         ac_cv_type_mode_t=no
31532 fi
31533
31534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31535 fi
31536 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31537 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31538 if test $ac_cv_type_mode_t = yes; then
31539   :
31540 else
31541
31542 cat >>confdefs.h <<_ACEOF
31543 #define mode_t int
31544 _ACEOF
31545
31546 fi
31547
31548 { echo "$as_me:$LINENO: checking for off_t" >&5
31549 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31550 if test "${ac_cv_type_off_t+set}" = set; then
31551   echo $ECHO_N "(cached) $ECHO_C" >&6
31552 else
31553   cat >conftest.$ac_ext <<_ACEOF
31554 /* confdefs.h.  */
31555 _ACEOF
31556 cat confdefs.h >>conftest.$ac_ext
31557 cat >>conftest.$ac_ext <<_ACEOF
31558 /* end confdefs.h.  */
31559 $ac_includes_default
31560 typedef off_t ac__type_new_;
31561 int
31562 main ()
31563 {
31564 if ((ac__type_new_ *) 0)
31565   return 0;
31566 if (sizeof (ac__type_new_))
31567   return 0;
31568   ;
31569   return 0;
31570 }
31571 _ACEOF
31572 rm -f conftest.$ac_objext
31573 if { (ac_try="$ac_compile"
31574 case "(($ac_try" in
31575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576   *) ac_try_echo=$ac_try;;
31577 esac
31578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579   (eval "$ac_compile") 2>conftest.er1
31580   ac_status=$?
31581   grep -v '^ *+' conftest.er1 >conftest.err
31582   rm -f conftest.er1
31583   cat conftest.err >&5
31584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); } && {
31586          test -z "$ac_c_werror_flag" ||
31587          test ! -s conftest.err
31588        } && test -s conftest.$ac_objext; then
31589   ac_cv_type_off_t=yes
31590 else
31591   echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31593
31594         ac_cv_type_off_t=no
31595 fi
31596
31597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31598 fi
31599 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31600 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31601 if test $ac_cv_type_off_t = yes; then
31602   :
31603 else
31604
31605 cat >>confdefs.h <<_ACEOF
31606 #define off_t long
31607 _ACEOF
31608
31609 fi
31610
31611 { echo "$as_me:$LINENO: checking for pid_t" >&5
31612 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31613 if test "${ac_cv_type_pid_t+set}" = set; then
31614   echo $ECHO_N "(cached) $ECHO_C" >&6
31615 else
31616   cat >conftest.$ac_ext <<_ACEOF
31617 /* confdefs.h.  */
31618 _ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h.  */
31622 $ac_includes_default
31623 typedef pid_t ac__type_new_;
31624 int
31625 main ()
31626 {
31627 if ((ac__type_new_ *) 0)
31628   return 0;
31629 if (sizeof (ac__type_new_))
31630   return 0;
31631   ;
31632   return 0;
31633 }
31634 _ACEOF
31635 rm -f conftest.$ac_objext
31636 if { (ac_try="$ac_compile"
31637 case "(($ac_try" in
31638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639   *) ac_try_echo=$ac_try;;
31640 esac
31641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642   (eval "$ac_compile") 2>conftest.er1
31643   ac_status=$?
31644   grep -v '^ *+' conftest.er1 >conftest.err
31645   rm -f conftest.er1
31646   cat conftest.err >&5
31647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648   (exit $ac_status); } && {
31649          test -z "$ac_c_werror_flag" ||
31650          test ! -s conftest.err
31651        } && test -s conftest.$ac_objext; then
31652   ac_cv_type_pid_t=yes
31653 else
31654   echo "$as_me: failed program was:" >&5
31655 sed 's/^/| /' conftest.$ac_ext >&5
31656
31657         ac_cv_type_pid_t=no
31658 fi
31659
31660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31661 fi
31662 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31663 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31664 if test $ac_cv_type_pid_t = yes; then
31665   :
31666 else
31667
31668 cat >>confdefs.h <<_ACEOF
31669 #define pid_t int
31670 _ACEOF
31671
31672 fi
31673
31674 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31675 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31676 if test "${ac_cv_type_ssize_t+set}" = set; then
31677   echo $ECHO_N "(cached) $ECHO_C" >&6
31678 else
31679   cat >conftest.$ac_ext <<_ACEOF
31680 /* confdefs.h.  */
31681 _ACEOF
31682 cat confdefs.h >>conftest.$ac_ext
31683 cat >>conftest.$ac_ext <<_ACEOF
31684 /* end confdefs.h.  */
31685 $ac_includes_default
31686 typedef ssize_t ac__type_new_;
31687 int
31688 main ()
31689 {
31690 if ((ac__type_new_ *) 0)
31691   return 0;
31692 if (sizeof (ac__type_new_))
31693   return 0;
31694   ;
31695   return 0;
31696 }
31697 _ACEOF
31698 rm -f conftest.$ac_objext
31699 if { (ac_try="$ac_compile"
31700 case "(($ac_try" in
31701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702   *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705   (eval "$ac_compile") 2>conftest.er1
31706   ac_status=$?
31707   grep -v '^ *+' conftest.er1 >conftest.err
31708   rm -f conftest.er1
31709   cat conftest.err >&5
31710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711   (exit $ac_status); } && {
31712          test -z "$ac_c_werror_flag" ||
31713          test ! -s conftest.err
31714        } && test -s conftest.$ac_objext; then
31715   ac_cv_type_ssize_t=yes
31716 else
31717   echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31719
31720         ac_cv_type_ssize_t=no
31721 fi
31722
31723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31724 fi
31725 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31726 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31727 if test $ac_cv_type_ssize_t = yes; then
31728   :
31729 else
31730
31731 cat >>confdefs.h <<_ACEOF
31732 #define ssize_t signed int
31733 _ACEOF
31734
31735 fi
31736
31737 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31738 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31739 if test "${ac_cv_type_caddr_t+set}" = set; then
31740   echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742   cat >conftest.$ac_ext <<_ACEOF
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748 $ac_includes_default
31749 typedef caddr_t ac__type_new_;
31750 int
31751 main ()
31752 {
31753 if ((ac__type_new_ *) 0)
31754   return 0;
31755 if (sizeof (ac__type_new_))
31756   return 0;
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext
31762 if { (ac_try="$ac_compile"
31763 case "(($ac_try" in
31764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765   *) ac_try_echo=$ac_try;;
31766 esac
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768   (eval "$ac_compile") 2>conftest.er1
31769   ac_status=$?
31770   grep -v '^ *+' conftest.er1 >conftest.err
31771   rm -f conftest.er1
31772   cat conftest.err >&5
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); } && {
31775          test -z "$ac_c_werror_flag" ||
31776          test ! -s conftest.err
31777        } && test -s conftest.$ac_objext; then
31778   ac_cv_type_caddr_t=yes
31779 else
31780   echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31782
31783         ac_cv_type_caddr_t=no
31784 fi
31785
31786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31787 fi
31788 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31789 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31790 if test $ac_cv_type_caddr_t = yes; then
31791   :
31792 else
31793
31794 cat >>confdefs.h <<_ACEOF
31795 #define caddr_t char *
31796 _ACEOF
31797
31798 fi
31799
31800 { echo "$as_me:$LINENO: checking for size_t" >&5
31801 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31802 if test "${ac_cv_type_size_t+set}" = set; then
31803   echo $ECHO_N "(cached) $ECHO_C" >&6
31804 else
31805   cat >conftest.$ac_ext <<_ACEOF
31806 /* confdefs.h.  */
31807 _ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h.  */
31811 $ac_includes_default
31812 typedef size_t ac__type_new_;
31813 int
31814 main ()
31815 {
31816 if ((ac__type_new_ *) 0)
31817   return 0;
31818 if (sizeof (ac__type_new_))
31819   return 0;
31820   ;
31821   return 0;
31822 }
31823 _ACEOF
31824 rm -f conftest.$ac_objext
31825 if { (ac_try="$ac_compile"
31826 case "(($ac_try" in
31827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828   *) ac_try_echo=$ac_try;;
31829 esac
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831   (eval "$ac_compile") 2>conftest.er1
31832   ac_status=$?
31833   grep -v '^ *+' conftest.er1 >conftest.err
31834   rm -f conftest.er1
31835   cat conftest.err >&5
31836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837   (exit $ac_status); } && {
31838          test -z "$ac_c_werror_flag" ||
31839          test ! -s conftest.err
31840        } && test -s conftest.$ac_objext; then
31841   ac_cv_type_size_t=yes
31842 else
31843   echo "$as_me: failed program was:" >&5
31844 sed 's/^/| /' conftest.$ac_ext >&5
31845
31846         ac_cv_type_size_t=no
31847 fi
31848
31849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31850 fi
31851 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31852 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31853 if test $ac_cv_type_size_t = yes; then
31854   :
31855 else
31856
31857 cat >>confdefs.h <<_ACEOF
31858 #define size_t unsigned
31859 _ACEOF
31860
31861 fi
31862
31863
31864 { echo "$as_me:$LINENO: checking for long long" >&5
31865 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31866 if test "${ac_cv_type_long_long+set}" = set; then
31867   echo $ECHO_N "(cached) $ECHO_C" >&6
31868 else
31869   cat >conftest.$ac_ext <<_ACEOF
31870 /* confdefs.h.  */
31871 _ACEOF
31872 cat confdefs.h >>conftest.$ac_ext
31873 cat >>conftest.$ac_ext <<_ACEOF
31874 /* end confdefs.h.  */
31875 $ac_includes_default
31876 typedef long long ac__type_new_;
31877 int
31878 main ()
31879 {
31880 if ((ac__type_new_ *) 0)
31881   return 0;
31882 if (sizeof (ac__type_new_))
31883   return 0;
31884   ;
31885   return 0;
31886 }
31887 _ACEOF
31888 rm -f conftest.$ac_objext
31889 if { (ac_try="$ac_compile"
31890 case "(($ac_try" in
31891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892   *) ac_try_echo=$ac_try;;
31893 esac
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895   (eval "$ac_compile") 2>conftest.er1
31896   ac_status=$?
31897   grep -v '^ *+' conftest.er1 >conftest.err
31898   rm -f conftest.er1
31899   cat conftest.err >&5
31900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901   (exit $ac_status); } && {
31902          test -z "$ac_c_werror_flag" ||
31903          test ! -s conftest.err
31904        } && test -s conftest.$ac_objext; then
31905   ac_cv_type_long_long=yes
31906 else
31907   echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31909
31910         ac_cv_type_long_long=no
31911 fi
31912
31913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31914 fi
31915 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31916 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31917 if test $ac_cv_type_long_long = yes; then
31918
31919 cat >>confdefs.h <<_ACEOF
31920 #define HAVE_LONG_LONG 1
31921 _ACEOF
31922
31923
31924 fi
31925
31926 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31927 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31928 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31929   echo $ECHO_N "(cached) $ECHO_C" >&6
31930 else
31931   cat >conftest.$ac_ext <<_ACEOF
31932 /* confdefs.h.  */
31933 _ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h.  */
31937 $ac_includes_default
31938 typedef ptrdiff_t ac__type_new_;
31939 int
31940 main ()
31941 {
31942 if ((ac__type_new_ *) 0)
31943   return 0;
31944 if (sizeof (ac__type_new_))
31945   return 0;
31946   ;
31947   return 0;
31948 }
31949 _ACEOF
31950 rm -f conftest.$ac_objext
31951 if { (ac_try="$ac_compile"
31952 case "(($ac_try" in
31953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954   *) ac_try_echo=$ac_try;;
31955 esac
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957   (eval "$ac_compile") 2>conftest.er1
31958   ac_status=$?
31959   grep -v '^ *+' conftest.er1 >conftest.err
31960   rm -f conftest.er1
31961   cat conftest.err >&5
31962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963   (exit $ac_status); } && {
31964          test -z "$ac_c_werror_flag" ||
31965          test ! -s conftest.err
31966        } && test -s conftest.$ac_objext; then
31967   ac_cv_type_ptrdiff_t=yes
31968 else
31969   echo "$as_me: failed program was:" >&5
31970 sed 's/^/| /' conftest.$ac_ext >&5
31971
31972         ac_cv_type_ptrdiff_t=no
31973 fi
31974
31975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31976 fi
31977 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31978 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31979 if test $ac_cv_type_ptrdiff_t = yes; then
31980
31981 cat >>confdefs.h <<_ACEOF
31982 #define HAVE_PTRDIFF_T 1
31983 _ACEOF
31984
31985
31986 fi
31987
31988
31989
31990 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31991 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31992 if test "${ac_cv_type_socklen_t+set}" = set; then
31993   echo $ECHO_N "(cached) $ECHO_C" >&6
31994 else
31995   cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h.  */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h.  */
32001 $ac_includes_default
32002 #ifdef HAVE_SYS_SOCKET_H
32003 #include <sys/socket.h>
32004 #endif
32005
32006 typedef socklen_t ac__type_new_;
32007 int
32008 main ()
32009 {
32010 if ((ac__type_new_ *) 0)
32011   return 0;
32012 if (sizeof (ac__type_new_))
32013   return 0;
32014   ;
32015   return 0;
32016 }
32017 _ACEOF
32018 rm -f conftest.$ac_objext
32019 if { (ac_try="$ac_compile"
32020 case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025   (eval "$ac_compile") 2>conftest.er1
32026   ac_status=$?
32027   grep -v '^ *+' conftest.er1 >conftest.err
32028   rm -f conftest.er1
32029   cat conftest.err >&5
32030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031   (exit $ac_status); } && {
32032          test -z "$ac_c_werror_flag" ||
32033          test ! -s conftest.err
32034        } && test -s conftest.$ac_objext; then
32035   ac_cv_type_socklen_t=yes
32036 else
32037   echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32039
32040         ac_cv_type_socklen_t=no
32041 fi
32042
32043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32044 fi
32045 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32046 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32047
32048
32049 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32050 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32051 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32052   echo $ECHO_N "(cached) $ECHO_C" >&6
32053 else
32054
32055         set socklen_t int unsigned "unsigned long" long size_t
32056         test "$ac_cv_type_socklen_t" = yes || shift
32057         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32058         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32059                 cat >conftest.$ac_ext <<_ACEOF
32060 /* confdefs.h.  */
32061 _ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h.  */
32065 $ac_includes_default
32066 #ifdef HAVE_SYS_SOCKET_H
32067 #include <sys/socket.h>
32068 #endif
32069 extern int accept(int s, $addrtype *ap, $lentype *lp);
32070
32071 int
32072 main ()
32073 {
32074
32075 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32076
32077   ;
32078   return 0;
32079 }
32080 _ACEOF
32081 rm -f conftest.$ac_objext
32082 if { (ac_try="$ac_compile"
32083 case "(($ac_try" in
32084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085   *) ac_try_echo=$ac_try;;
32086 esac
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088   (eval "$ac_compile") 2>conftest.er1
32089   ac_status=$?
32090   grep -v '^ *+' conftest.er1 >conftest.err
32091   rm -f conftest.er1
32092   cat conftest.err >&5
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); } && {
32095          test -z "$ac_c_werror_flag" ||
32096          test ! -s conftest.err
32097        } && test -s conftest.$ac_objext; then
32098   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32099 else
32100   echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32102
32103
32104 fi
32105
32106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32107         done ; done
32108 fi
32109
32110 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32111 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32112
32113 cat >>confdefs.h <<_ACEOF
32114 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32115 _ACEOF
32116
32117
32118 if test "$ac_cv_type_socklen_t" != yes; then
32119
32120 cat >>confdefs.h <<_ACEOF
32121 #define socklen_t $ol_cv_type_ber_socklen_t
32122 _ACEOF
32123
32124 fi
32125
32126
32127 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32128 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32129 if test "${ac_cv_type_signal+set}" = set; then
32130   echo $ECHO_N "(cached) $ECHO_C" >&6
32131 else
32132   cat >conftest.$ac_ext <<_ACEOF
32133 /* confdefs.h.  */
32134 _ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h.  */
32138 #include <sys/types.h>
32139 #include <signal.h>
32140
32141 int
32142 main ()
32143 {
32144 return *(signal (0, 0)) (0) == 1;
32145   ;
32146   return 0;
32147 }
32148 _ACEOF
32149 rm -f conftest.$ac_objext
32150 if { (ac_try="$ac_compile"
32151 case "(($ac_try" in
32152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153   *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156   (eval "$ac_compile") 2>conftest.er1
32157   ac_status=$?
32158   grep -v '^ *+' conftest.er1 >conftest.err
32159   rm -f conftest.er1
32160   cat conftest.err >&5
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); } && {
32163          test -z "$ac_c_werror_flag" ||
32164          test ! -s conftest.err
32165        } && test -s conftest.$ac_objext; then
32166   ac_cv_type_signal=int
32167 else
32168   echo "$as_me: failed program was:" >&5
32169 sed 's/^/| /' conftest.$ac_ext >&5
32170
32171         ac_cv_type_signal=void
32172 fi
32173
32174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32175 fi
32176 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32177 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32178
32179 cat >>confdefs.h <<_ACEOF
32180 #define RETSIGTYPE $ac_cv_type_signal
32181 _ACEOF
32182
32183
32184
32185 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32186 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32187 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32188   echo $ECHO_N "(cached) $ECHO_C" >&6
32189 else
32190   cat >conftest.$ac_ext <<_ACEOF
32191 /* confdefs.h.  */
32192 _ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h.  */
32196 $ac_includes_default
32197 #include <signal.h>
32198
32199
32200 typedef sig_atomic_t ac__type_new_;
32201 int
32202 main ()
32203 {
32204 if ((ac__type_new_ *) 0)
32205   return 0;
32206 if (sizeof (ac__type_new_))
32207   return 0;
32208   ;
32209   return 0;
32210 }
32211 _ACEOF
32212 rm -f conftest.$ac_objext
32213 if { (ac_try="$ac_compile"
32214 case "(($ac_try" in
32215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216   *) ac_try_echo=$ac_try;;
32217 esac
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219   (eval "$ac_compile") 2>conftest.er1
32220   ac_status=$?
32221   grep -v '^ *+' conftest.er1 >conftest.err
32222   rm -f conftest.er1
32223   cat conftest.err >&5
32224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225   (exit $ac_status); } && {
32226          test -z "$ac_c_werror_flag" ||
32227          test ! -s conftest.err
32228        } && test -s conftest.$ac_objext; then
32229   ac_cv_type_sig_atomic_t=yes
32230 else
32231   echo "$as_me: failed program was:" >&5
32232 sed 's/^/| /' conftest.$ac_ext >&5
32233
32234         ac_cv_type_sig_atomic_t=no
32235 fi
32236
32237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32238 fi
32239 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32240 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32241 if test $ac_cv_type_sig_atomic_t = yes; then
32242   :
32243 else
32244
32245 cat >>confdefs.h <<_ACEOF
32246 #define sig_atomic_t int
32247 _ACEOF
32248
32249 fi
32250
32251
32252 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32253 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32254 if test "${ac_cv_type_uid_t+set}" = set; then
32255   echo $ECHO_N "(cached) $ECHO_C" >&6
32256 else
32257   cat >conftest.$ac_ext <<_ACEOF
32258 /* confdefs.h.  */
32259 _ACEOF
32260 cat confdefs.h >>conftest.$ac_ext
32261 cat >>conftest.$ac_ext <<_ACEOF
32262 /* end confdefs.h.  */
32263 #include <sys/types.h>
32264
32265 _ACEOF
32266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32267   $EGREP "uid_t" >/dev/null 2>&1; then
32268   ac_cv_type_uid_t=yes
32269 else
32270   ac_cv_type_uid_t=no
32271 fi
32272 rm -f conftest*
32273
32274 fi
32275 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32276 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32277 if test $ac_cv_type_uid_t = no; then
32278
32279 cat >>confdefs.h <<\_ACEOF
32280 #define uid_t int
32281 _ACEOF
32282
32283
32284 cat >>confdefs.h <<\_ACEOF
32285 #define gid_t int
32286 _ACEOF
32287
32288 fi
32289
32290
32291 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32292 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32293 if test "${ac_cv_header_time+set}" = set; then
32294   echo $ECHO_N "(cached) $ECHO_C" >&6
32295 else
32296   cat >conftest.$ac_ext <<_ACEOF
32297 /* confdefs.h.  */
32298 _ACEOF
32299 cat confdefs.h >>conftest.$ac_ext
32300 cat >>conftest.$ac_ext <<_ACEOF
32301 /* end confdefs.h.  */
32302 #include <sys/types.h>
32303 #include <sys/time.h>
32304 #include <time.h>
32305
32306 int
32307 main ()
32308 {
32309 if ((struct tm *) 0)
32310 return 0;
32311   ;
32312   return 0;
32313 }
32314 _ACEOF
32315 rm -f conftest.$ac_objext
32316 if { (ac_try="$ac_compile"
32317 case "(($ac_try" in
32318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319   *) ac_try_echo=$ac_try;;
32320 esac
32321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322   (eval "$ac_compile") 2>conftest.er1
32323   ac_status=$?
32324   grep -v '^ *+' conftest.er1 >conftest.err
32325   rm -f conftest.er1
32326   cat conftest.err >&5
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); } && {
32329          test -z "$ac_c_werror_flag" ||
32330          test ! -s conftest.err
32331        } && test -s conftest.$ac_objext; then
32332   ac_cv_header_time=yes
32333 else
32334   echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32336
32337         ac_cv_header_time=no
32338 fi
32339
32340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32341 fi
32342 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32343 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32344 if test $ac_cv_header_time = yes; then
32345
32346 cat >>confdefs.h <<\_ACEOF
32347 #define TIME_WITH_SYS_TIME 1
32348 _ACEOF
32349
32350 fi
32351
32352 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32353 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32354 if test "${ac_cv_struct_tm+set}" = set; then
32355   echo $ECHO_N "(cached) $ECHO_C" >&6
32356 else
32357   cat >conftest.$ac_ext <<_ACEOF
32358 /* confdefs.h.  */
32359 _ACEOF
32360 cat confdefs.h >>conftest.$ac_ext
32361 cat >>conftest.$ac_ext <<_ACEOF
32362 /* end confdefs.h.  */
32363 #include <sys/types.h>
32364 #include <time.h>
32365
32366 int
32367 main ()
32368 {
32369 struct tm tm;
32370                                      int *p = &tm.tm_sec;
32371                                      return !p;
32372   ;
32373   return 0;
32374 }
32375 _ACEOF
32376 rm -f conftest.$ac_objext
32377 if { (ac_try="$ac_compile"
32378 case "(($ac_try" in
32379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380   *) ac_try_echo=$ac_try;;
32381 esac
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383   (eval "$ac_compile") 2>conftest.er1
32384   ac_status=$?
32385   grep -v '^ *+' conftest.er1 >conftest.err
32386   rm -f conftest.er1
32387   cat conftest.err >&5
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); } && {
32390          test -z "$ac_c_werror_flag" ||
32391          test ! -s conftest.err
32392        } && test -s conftest.$ac_objext; then
32393   ac_cv_struct_tm=time.h
32394 else
32395   echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32397
32398         ac_cv_struct_tm=sys/time.h
32399 fi
32400
32401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32402 fi
32403 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32404 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32405 if test $ac_cv_struct_tm = sys/time.h; then
32406
32407 cat >>confdefs.h <<\_ACEOF
32408 #define TM_IN_SYS_TIME 1
32409 _ACEOF
32410
32411 fi
32412
32413 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32414 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32415 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32416   echo $ECHO_N "(cached) $ECHO_C" >&6
32417 else
32418   cat >conftest.$ac_ext <<_ACEOF
32419 /* confdefs.h.  */
32420 _ACEOF
32421 cat confdefs.h >>conftest.$ac_ext
32422 cat >>conftest.$ac_ext <<_ACEOF
32423 /* end confdefs.h.  */
32424 $ac_includes_default
32425 int
32426 main ()
32427 {
32428 static struct stat ac_aggr;
32429 if (ac_aggr.st_blksize)
32430 return 0;
32431   ;
32432   return 0;
32433 }
32434 _ACEOF
32435 rm -f conftest.$ac_objext
32436 if { (ac_try="$ac_compile"
32437 case "(($ac_try" in
32438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439   *) ac_try_echo=$ac_try;;
32440 esac
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442   (eval "$ac_compile") 2>conftest.er1
32443   ac_status=$?
32444   grep -v '^ *+' conftest.er1 >conftest.err
32445   rm -f conftest.er1
32446   cat conftest.err >&5
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); } && {
32449          test -z "$ac_c_werror_flag" ||
32450          test ! -s conftest.err
32451        } && test -s conftest.$ac_objext; then
32452   ac_cv_member_struct_stat_st_blksize=yes
32453 else
32454   echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32456
32457         cat >conftest.$ac_ext <<_ACEOF
32458 /* confdefs.h.  */
32459 _ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h.  */
32463 $ac_includes_default
32464 int
32465 main ()
32466 {
32467 static struct stat ac_aggr;
32468 if (sizeof ac_aggr.st_blksize)
32469 return 0;
32470   ;
32471   return 0;
32472 }
32473 _ACEOF
32474 rm -f conftest.$ac_objext
32475 if { (ac_try="$ac_compile"
32476 case "(($ac_try" in
32477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478   *) ac_try_echo=$ac_try;;
32479 esac
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481   (eval "$ac_compile") 2>conftest.er1
32482   ac_status=$?
32483   grep -v '^ *+' conftest.er1 >conftest.err
32484   rm -f conftest.er1
32485   cat conftest.err >&5
32486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); } && {
32488          test -z "$ac_c_werror_flag" ||
32489          test ! -s conftest.err
32490        } && test -s conftest.$ac_objext; then
32491   ac_cv_member_struct_stat_st_blksize=yes
32492 else
32493   echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496         ac_cv_member_struct_stat_st_blksize=no
32497 fi
32498
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32500 fi
32501
32502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32503 fi
32504 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32505 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32506 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32507
32508 cat >>confdefs.h <<_ACEOF
32509 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32510 _ACEOF
32511
32512
32513 fi
32514
32515 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32516 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32517 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32518   echo $ECHO_N "(cached) $ECHO_C" >&6
32519 else
32520   cat >conftest.$ac_ext <<_ACEOF
32521 /* confdefs.h.  */
32522 _ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h.  */
32526 $ac_includes_default
32527 #include <pwd.h>
32528
32529 int
32530 main ()
32531 {
32532 static struct passwd ac_aggr;
32533 if (ac_aggr.pw_gecos)
32534 return 0;
32535   ;
32536   return 0;
32537 }
32538 _ACEOF
32539 rm -f conftest.$ac_objext
32540 if { (ac_try="$ac_compile"
32541 case "(($ac_try" in
32542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543   *) ac_try_echo=$ac_try;;
32544 esac
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546   (eval "$ac_compile") 2>conftest.er1
32547   ac_status=$?
32548   grep -v '^ *+' conftest.er1 >conftest.err
32549   rm -f conftest.er1
32550   cat conftest.err >&5
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); } && {
32553          test -z "$ac_c_werror_flag" ||
32554          test ! -s conftest.err
32555        } && test -s conftest.$ac_objext; then
32556   ac_cv_member_struct_passwd_pw_gecos=yes
32557 else
32558   echo "$as_me: failed program was:" >&5
32559 sed 's/^/| /' conftest.$ac_ext >&5
32560
32561         cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 $ac_includes_default
32568 #include <pwd.h>
32569
32570 int
32571 main ()
32572 {
32573 static struct passwd ac_aggr;
32574 if (sizeof ac_aggr.pw_gecos)
32575 return 0;
32576   ;
32577   return 0;
32578 }
32579 _ACEOF
32580 rm -f conftest.$ac_objext
32581 if { (ac_try="$ac_compile"
32582 case "(($ac_try" in
32583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584   *) ac_try_echo=$ac_try;;
32585 esac
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587   (eval "$ac_compile") 2>conftest.er1
32588   ac_status=$?
32589   grep -v '^ *+' conftest.er1 >conftest.err
32590   rm -f conftest.er1
32591   cat conftest.err >&5
32592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593   (exit $ac_status); } && {
32594          test -z "$ac_c_werror_flag" ||
32595          test ! -s conftest.err
32596        } && test -s conftest.$ac_objext; then
32597   ac_cv_member_struct_passwd_pw_gecos=yes
32598 else
32599   echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32601
32602         ac_cv_member_struct_passwd_pw_gecos=no
32603 fi
32604
32605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32606 fi
32607
32608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32609 fi
32610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32611 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32612 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32613
32614 cat >>confdefs.h <<_ACEOF
32615 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32616 _ACEOF
32617
32618
32619 fi
32620
32621 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32622 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32623 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32624   echo $ECHO_N "(cached) $ECHO_C" >&6
32625 else
32626   cat >conftest.$ac_ext <<_ACEOF
32627 /* confdefs.h.  */
32628 _ACEOF
32629 cat confdefs.h >>conftest.$ac_ext
32630 cat >>conftest.$ac_ext <<_ACEOF
32631 /* end confdefs.h.  */
32632 $ac_includes_default
32633 #include <pwd.h>
32634
32635 int
32636 main ()
32637 {
32638 static struct passwd ac_aggr;
32639 if (ac_aggr.pw_passwd)
32640 return 0;
32641   ;
32642   return 0;
32643 }
32644 _ACEOF
32645 rm -f conftest.$ac_objext
32646 if { (ac_try="$ac_compile"
32647 case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_compile") 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } && {
32659          test -z "$ac_c_werror_flag" ||
32660          test ! -s conftest.err
32661        } && test -s conftest.$ac_objext; then
32662   ac_cv_member_struct_passwd_pw_passwd=yes
32663 else
32664   echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32666
32667         cat >conftest.$ac_ext <<_ACEOF
32668 /* confdefs.h.  */
32669 _ACEOF
32670 cat confdefs.h >>conftest.$ac_ext
32671 cat >>conftest.$ac_ext <<_ACEOF
32672 /* end confdefs.h.  */
32673 $ac_includes_default
32674 #include <pwd.h>
32675
32676 int
32677 main ()
32678 {
32679 static struct passwd ac_aggr;
32680 if (sizeof ac_aggr.pw_passwd)
32681 return 0;
32682   ;
32683   return 0;
32684 }
32685 _ACEOF
32686 rm -f conftest.$ac_objext
32687 if { (ac_try="$ac_compile"
32688 case "(($ac_try" in
32689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690   *) ac_try_echo=$ac_try;;
32691 esac
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693   (eval "$ac_compile") 2>conftest.er1
32694   ac_status=$?
32695   grep -v '^ *+' conftest.er1 >conftest.err
32696   rm -f conftest.er1
32697   cat conftest.err >&5
32698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699   (exit $ac_status); } && {
32700          test -z "$ac_c_werror_flag" ||
32701          test ! -s conftest.err
32702        } && test -s conftest.$ac_objext; then
32703   ac_cv_member_struct_passwd_pw_passwd=yes
32704 else
32705   echo "$as_me: failed program was:" >&5
32706 sed 's/^/| /' conftest.$ac_ext >&5
32707
32708         ac_cv_member_struct_passwd_pw_passwd=no
32709 fi
32710
32711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32712 fi
32713
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715 fi
32716 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32717 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32718 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32719
32720 cat >>confdefs.h <<_ACEOF
32721 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32722 _ACEOF
32723
32724
32725 fi
32726
32727
32728 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32729 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32730 if test "${ol_cv_c_upper_lower+set}" = set; then
32731   echo $ECHO_N "(cached) $ECHO_C" >&6
32732 else
32733
32734         if test "$cross_compiling" = yes; then
32735   ol_cv_c_upper_lower=safe
32736 else
32737   cat >conftest.$ac_ext <<_ACEOF
32738 /* confdefs.h.  */
32739 _ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h.  */
32743
32744 #include <ctype.h>
32745 main()
32746 {
32747         if ('C' == toupper('C'))
32748                 exit(0);
32749         else
32750                 exit(1);
32751 }
32752 _ACEOF
32753 rm -f conftest$ac_exeext
32754 if { (ac_try="$ac_link"
32755 case "(($ac_try" in
32756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32757   *) ac_try_echo=$ac_try;;
32758 esac
32759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32760   (eval "$ac_link") 2>&5
32761   ac_status=$?
32762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32764   { (case "(($ac_try" in
32765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32766   *) ac_try_echo=$ac_try;;
32767 esac
32768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32769   (eval "$ac_try") 2>&5
32770   ac_status=$?
32771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772   (exit $ac_status); }; }; then
32773   ol_cv_c_upper_lower=no
32774 else
32775   echo "$as_me: program exited with status $ac_status" >&5
32776 echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32778
32779 ( exit $ac_status )
32780 ol_cv_c_upper_lower=yes
32781 fi
32782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32783 fi
32784
32785
32786 fi
32787 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32788 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32789 if test $ol_cv_c_upper_lower != no ; then
32790
32791 cat >>confdefs.h <<\_ACEOF
32792 #define C_UPPER_LOWER 1
32793 _ACEOF
32794
32795 fi
32796
32797 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32798 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32799 if test "${ac_cv_c_const+set}" = set; then
32800   echo $ECHO_N "(cached) $ECHO_C" >&6
32801 else
32802   cat >conftest.$ac_ext <<_ACEOF
32803 /* confdefs.h.  */
32804 _ACEOF
32805 cat confdefs.h >>conftest.$ac_ext
32806 cat >>conftest.$ac_ext <<_ACEOF
32807 /* end confdefs.h.  */
32808
32809 int
32810 main ()
32811 {
32812 /* FIXME: Include the comments suggested by Paul. */
32813 #ifndef __cplusplus
32814   /* Ultrix mips cc rejects this.  */
32815   typedef int charset[2];
32816   const charset cs;
32817   /* SunOS 4.1.1 cc rejects this.  */
32818   char const *const *pcpcc;
32819   char **ppc;
32820   /* NEC SVR4.0.2 mips cc rejects this.  */
32821   struct point {int x, y;};
32822   static struct point const zero = {0,0};
32823   /* AIX XL C 1.02.0.0 rejects this.
32824      It does not let you subtract one const X* pointer from another in
32825      an arm of an if-expression whose if-part is not a constant
32826      expression */
32827   const char *g = "string";
32828   pcpcc = &g + (g ? g-g : 0);
32829   /* HPUX 7.0 cc rejects these. */
32830   ++pcpcc;
32831   ppc = (char**) pcpcc;
32832   pcpcc = (char const *const *) ppc;
32833   { /* SCO 3.2v4 cc rejects this.  */
32834     char *t;
32835     char const *s = 0 ? (char *) 0 : (char const *) 0;
32836
32837     *t++ = 0;
32838     if (s) return 0;
32839   }
32840   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32841     int x[] = {25, 17};
32842     const int *foo = &x[0];
32843     ++foo;
32844   }
32845   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32846     typedef const int *iptr;
32847     iptr p = 0;
32848     ++p;
32849   }
32850   { /* AIX XL C 1.02.0.0 rejects this saying
32851        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32852     struct s { int j; const int *ap[3]; };
32853     struct s *b; b->j = 5;
32854   }
32855   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32856     const int foo = 10;
32857     if (!foo) return 0;
32858   }
32859   return !cs[0] && !zero.x;
32860 #endif
32861
32862   ;
32863   return 0;
32864 }
32865 _ACEOF
32866 rm -f conftest.$ac_objext
32867 if { (ac_try="$ac_compile"
32868 case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_compile") 2>conftest.er1
32874   ac_status=$?
32875   grep -v '^ *+' conftest.er1 >conftest.err
32876   rm -f conftest.er1
32877   cat conftest.err >&5
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); } && {
32880          test -z "$ac_c_werror_flag" ||
32881          test ! -s conftest.err
32882        } && test -s conftest.$ac_objext; then
32883   ac_cv_c_const=yes
32884 else
32885   echo "$as_me: failed program was:" >&5
32886 sed 's/^/| /' conftest.$ac_ext >&5
32887
32888         ac_cv_c_const=no
32889 fi
32890
32891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32892 fi
32893 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32894 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32895 if test $ac_cv_c_const = no; then
32896
32897 cat >>confdefs.h <<\_ACEOF
32898 #define const
32899 _ACEOF
32900
32901 fi
32902
32903 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32904 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32905 if test "${ol_cv_c_volatile+set}" = set; then
32906   echo $ECHO_N "(cached) $ECHO_C" >&6
32907 else
32908   cat >conftest.$ac_ext <<_ACEOF
32909 /* confdefs.h.  */
32910 _ACEOF
32911 cat confdefs.h >>conftest.$ac_ext
32912 cat >>conftest.$ac_ext <<_ACEOF
32913 /* end confdefs.h.  */
32914 int x, y, z;
32915 int
32916 main ()
32917 {
32918 volatile int a; int * volatile b = x ? &y : &z;
32919       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32920       *b = 0;
32921   ;
32922   return 0;
32923 }
32924 _ACEOF
32925 rm -f conftest.$ac_objext
32926 if { (ac_try="$ac_compile"
32927 case "(($ac_try" in
32928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929   *) ac_try_echo=$ac_try;;
32930 esac
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932   (eval "$ac_compile") 2>conftest.er1
32933   ac_status=$?
32934   grep -v '^ *+' conftest.er1 >conftest.err
32935   rm -f conftest.er1
32936   cat conftest.err >&5
32937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938   (exit $ac_status); } && {
32939          test -z "$ac_c_werror_flag" ||
32940          test ! -s conftest.err
32941        } && test -s conftest.$ac_objext; then
32942   ol_cv_c_volatile=yes
32943 else
32944   echo "$as_me: failed program was:" >&5
32945 sed 's/^/| /' conftest.$ac_ext >&5
32946
32947         ol_cv_c_volatile=no
32948 fi
32949
32950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32951 fi
32952 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32953 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32954   if test $ol_cv_c_volatile = yes; then
32955     :
32956   else
32957
32958 cat >>confdefs.h <<\_ACEOF
32959 #define volatile
32960 _ACEOF
32961
32962   fi
32963
32964
32965 if test $cross_compiling = yes ; then
32966         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32967 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32968
32969 cat >>confdefs.h <<\_ACEOF
32970 #define CROSS_COMPILING 1
32971 _ACEOF
32972
32973 else
32974         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32975 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32976 if test "${ac_cv_c_bigendian+set}" = set; then
32977   echo $ECHO_N "(cached) $ECHO_C" >&6
32978 else
32979   # See if sys/param.h defines the BYTE_ORDER macro.
32980 cat >conftest.$ac_ext <<_ACEOF
32981 /* confdefs.h.  */
32982 _ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h.  */
32986 #include <sys/types.h>
32987 #include <sys/param.h>
32988
32989 int
32990 main ()
32991 {
32992 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32993         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32994  bogus endian macros
32995 #endif
32996
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext
33002 if { (ac_try="$ac_compile"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_compile") 2>conftest.er1
33009   ac_status=$?
33010   grep -v '^ *+' conftest.er1 >conftest.err
33011   rm -f conftest.er1
33012   cat conftest.err >&5
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); } && {
33015          test -z "$ac_c_werror_flag" ||
33016          test ! -s conftest.err
33017        } && test -s conftest.$ac_objext; then
33018   # It does; now see whether it defined to BIG_ENDIAN or not.
33019 cat >conftest.$ac_ext <<_ACEOF
33020 /* confdefs.h.  */
33021 _ACEOF
33022 cat confdefs.h >>conftest.$ac_ext
33023 cat >>conftest.$ac_ext <<_ACEOF
33024 /* end confdefs.h.  */
33025 #include <sys/types.h>
33026 #include <sys/param.h>
33027
33028 int
33029 main ()
33030 {
33031 #if BYTE_ORDER != BIG_ENDIAN
33032  not big endian
33033 #endif
33034
33035   ;
33036   return 0;
33037 }
33038 _ACEOF
33039 rm -f conftest.$ac_objext
33040 if { (ac_try="$ac_compile"
33041 case "(($ac_try" in
33042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33043   *) ac_try_echo=$ac_try;;
33044 esac
33045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33046   (eval "$ac_compile") 2>conftest.er1
33047   ac_status=$?
33048   grep -v '^ *+' conftest.er1 >conftest.err
33049   rm -f conftest.er1
33050   cat conftest.err >&5
33051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052   (exit $ac_status); } && {
33053          test -z "$ac_c_werror_flag" ||
33054          test ! -s conftest.err
33055        } && test -s conftest.$ac_objext; then
33056   ac_cv_c_bigendian=yes
33057 else
33058   echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33060
33061         ac_cv_c_bigendian=no
33062 fi
33063
33064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33065 else
33066   echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33068
33069         # It does not; compile a test program.
33070 if test "$cross_compiling" = yes; then
33071   # try to guess the endianness by grepping values into an object file
33072   ac_cv_c_bigendian=unknown
33073   cat >conftest.$ac_ext <<_ACEOF
33074 /* confdefs.h.  */
33075 _ACEOF
33076 cat confdefs.h >>conftest.$ac_ext
33077 cat >>conftest.$ac_ext <<_ACEOF
33078 /* end confdefs.h.  */
33079 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33080 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33081 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33082 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33083 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33084 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33085 int
33086 main ()
33087 {
33088  _ascii (); _ebcdic ();
33089   ;
33090   return 0;
33091 }
33092 _ACEOF
33093 rm -f conftest.$ac_objext
33094 if { (ac_try="$ac_compile"
33095 case "(($ac_try" in
33096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097   *) ac_try_echo=$ac_try;;
33098 esac
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100   (eval "$ac_compile") 2>conftest.er1
33101   ac_status=$?
33102   grep -v '^ *+' conftest.er1 >conftest.err
33103   rm -f conftest.er1
33104   cat conftest.err >&5
33105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106   (exit $ac_status); } && {
33107          test -z "$ac_c_werror_flag" ||
33108          test ! -s conftest.err
33109        } && test -s conftest.$ac_objext; then
33110   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33111   ac_cv_c_bigendian=yes
33112 fi
33113 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33114   if test "$ac_cv_c_bigendian" = unknown; then
33115     ac_cv_c_bigendian=no
33116   else
33117     # finding both strings is unlikely to happen, but who knows?
33118     ac_cv_c_bigendian=unknown
33119   fi
33120 fi
33121 else
33122   echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33124
33125
33126 fi
33127
33128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33129 else
33130   cat >conftest.$ac_ext <<_ACEOF
33131 /* confdefs.h.  */
33132 _ACEOF
33133 cat confdefs.h >>conftest.$ac_ext
33134 cat >>conftest.$ac_ext <<_ACEOF
33135 /* end confdefs.h.  */
33136 $ac_includes_default
33137 int
33138 main ()
33139 {
33140
33141   /* Are we little or big endian?  From Harbison&Steele.  */
33142   union
33143   {
33144     long int l;
33145     char c[sizeof (long int)];
33146   } u;
33147   u.l = 1;
33148   return u.c[sizeof (long int) - 1] == 1;
33149
33150   ;
33151   return 0;
33152 }
33153 _ACEOF
33154 rm -f conftest$ac_exeext
33155 if { (ac_try="$ac_link"
33156 case "(($ac_try" in
33157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33158   *) ac_try_echo=$ac_try;;
33159 esac
33160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33161   (eval "$ac_link") 2>&5
33162   ac_status=$?
33163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33165   { (case "(($ac_try" in
33166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33167   *) ac_try_echo=$ac_try;;
33168 esac
33169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170   (eval "$ac_try") 2>&5
33171   ac_status=$?
33172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173   (exit $ac_status); }; }; then
33174   ac_cv_c_bigendian=no
33175 else
33176   echo "$as_me: program exited with status $ac_status" >&5
33177 echo "$as_me: failed program was:" >&5
33178 sed 's/^/| /' conftest.$ac_ext >&5
33179
33180 ( exit $ac_status )
33181 ac_cv_c_bigendian=yes
33182 fi
33183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33184 fi
33185
33186
33187 fi
33188
33189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33190 fi
33191 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33192 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33193 case $ac_cv_c_bigendian in
33194   yes)
33195
33196 cat >>confdefs.h <<\_ACEOF
33197 #define WORDS_BIGENDIAN 1
33198 _ACEOF
33199  ;;
33200   no)
33201      ;;
33202   *)
33203     { { echo "$as_me:$LINENO: error: unknown endianness
33204 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33205 echo "$as_me: error: unknown endianness
33206 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33207    { (exit 1); exit 1; }; } ;;
33208 esac
33209
33210 fi
33211
33212 { echo "$as_me:$LINENO: checking for short" >&5
33213 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33214 if test "${ac_cv_type_short+set}" = set; then
33215   echo $ECHO_N "(cached) $ECHO_C" >&6
33216 else
33217   cat >conftest.$ac_ext <<_ACEOF
33218 /* confdefs.h.  */
33219 _ACEOF
33220 cat confdefs.h >>conftest.$ac_ext
33221 cat >>conftest.$ac_ext <<_ACEOF
33222 /* end confdefs.h.  */
33223 $ac_includes_default
33224 typedef short ac__type_new_;
33225 int
33226 main ()
33227 {
33228 if ((ac__type_new_ *) 0)
33229   return 0;
33230 if (sizeof (ac__type_new_))
33231   return 0;
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   ac_cv_type_short=yes
33254 else
33255   echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33257
33258         ac_cv_type_short=no
33259 fi
33260
33261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33262 fi
33263 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33264 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33265
33266 # The cast to long int works around a bug in the HP C Compiler
33267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33269 # This bug is HP SR number 8606223364.
33270 { echo "$as_me:$LINENO: checking size of short" >&5
33271 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33272 if test "${ac_cv_sizeof_short+set}" = set; then
33273   echo $ECHO_N "(cached) $ECHO_C" >&6
33274 else
33275   if test "$cross_compiling" = yes; then
33276   # Depending upon the size, compute the lo and hi bounds.
33277 cat >conftest.$ac_ext <<_ACEOF
33278 /* confdefs.h.  */
33279 _ACEOF
33280 cat confdefs.h >>conftest.$ac_ext
33281 cat >>conftest.$ac_ext <<_ACEOF
33282 /* end confdefs.h.  */
33283 $ac_includes_default
33284    typedef short ac__type_sizeof_;
33285 int
33286 main ()
33287 {
33288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33289 test_array [0] = 0
33290
33291   ;
33292   return 0;
33293 }
33294 _ACEOF
33295 rm -f conftest.$ac_objext
33296 if { (ac_try="$ac_compile"
33297 case "(($ac_try" in
33298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299   *) ac_try_echo=$ac_try;;
33300 esac
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302   (eval "$ac_compile") 2>conftest.er1
33303   ac_status=$?
33304   grep -v '^ *+' conftest.er1 >conftest.err
33305   rm -f conftest.er1
33306   cat conftest.err >&5
33307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308   (exit $ac_status); } && {
33309          test -z "$ac_c_werror_flag" ||
33310          test ! -s conftest.err
33311        } && test -s conftest.$ac_objext; then
33312   ac_lo=0 ac_mid=0
33313   while :; do
33314     cat >conftest.$ac_ext <<_ACEOF
33315 /* confdefs.h.  */
33316 _ACEOF
33317 cat confdefs.h >>conftest.$ac_ext
33318 cat >>conftest.$ac_ext <<_ACEOF
33319 /* end confdefs.h.  */
33320 $ac_includes_default
33321    typedef short ac__type_sizeof_;
33322 int
33323 main ()
33324 {
33325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33326 test_array [0] = 0
33327
33328   ;
33329   return 0;
33330 }
33331 _ACEOF
33332 rm -f conftest.$ac_objext
33333 if { (ac_try="$ac_compile"
33334 case "(($ac_try" in
33335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336   *) ac_try_echo=$ac_try;;
33337 esac
33338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339   (eval "$ac_compile") 2>conftest.er1
33340   ac_status=$?
33341   grep -v '^ *+' conftest.er1 >conftest.err
33342   rm -f conftest.er1
33343   cat conftest.err >&5
33344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345   (exit $ac_status); } && {
33346          test -z "$ac_c_werror_flag" ||
33347          test ! -s conftest.err
33348        } && test -s conftest.$ac_objext; then
33349   ac_hi=$ac_mid; break
33350 else
33351   echo "$as_me: failed program was:" >&5
33352 sed 's/^/| /' conftest.$ac_ext >&5
33353
33354         ac_lo=`expr $ac_mid + 1`
33355                         if test $ac_lo -le $ac_mid; then
33356                           ac_lo= ac_hi=
33357                           break
33358                         fi
33359                         ac_mid=`expr 2 '*' $ac_mid + 1`
33360 fi
33361
33362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33363   done
33364 else
33365   echo "$as_me: failed program was:" >&5
33366 sed 's/^/| /' conftest.$ac_ext >&5
33367
33368         cat >conftest.$ac_ext <<_ACEOF
33369 /* confdefs.h.  */
33370 _ACEOF
33371 cat confdefs.h >>conftest.$ac_ext
33372 cat >>conftest.$ac_ext <<_ACEOF
33373 /* end confdefs.h.  */
33374 $ac_includes_default
33375    typedef short ac__type_sizeof_;
33376 int
33377 main ()
33378 {
33379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33380 test_array [0] = 0
33381
33382   ;
33383   return 0;
33384 }
33385 _ACEOF
33386 rm -f conftest.$ac_objext
33387 if { (ac_try="$ac_compile"
33388 case "(($ac_try" in
33389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390   *) ac_try_echo=$ac_try;;
33391 esac
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393   (eval "$ac_compile") 2>conftest.er1
33394   ac_status=$?
33395   grep -v '^ *+' conftest.er1 >conftest.err
33396   rm -f conftest.er1
33397   cat conftest.err >&5
33398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399   (exit $ac_status); } && {
33400          test -z "$ac_c_werror_flag" ||
33401          test ! -s conftest.err
33402        } && test -s conftest.$ac_objext; then
33403   ac_hi=-1 ac_mid=-1
33404   while :; do
33405     cat >conftest.$ac_ext <<_ACEOF
33406 /* confdefs.h.  */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h.  */
33411 $ac_includes_default
33412    typedef short ac__type_sizeof_;
33413 int
33414 main ()
33415 {
33416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33417 test_array [0] = 0
33418
33419   ;
33420   return 0;
33421 }
33422 _ACEOF
33423 rm -f conftest.$ac_objext
33424 if { (ac_try="$ac_compile"
33425 case "(($ac_try" in
33426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427   *) ac_try_echo=$ac_try;;
33428 esac
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430   (eval "$ac_compile") 2>conftest.er1
33431   ac_status=$?
33432   grep -v '^ *+' conftest.er1 >conftest.err
33433   rm -f conftest.er1
33434   cat conftest.err >&5
33435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436   (exit $ac_status); } && {
33437          test -z "$ac_c_werror_flag" ||
33438          test ! -s conftest.err
33439        } && test -s conftest.$ac_objext; then
33440   ac_lo=$ac_mid; break
33441 else
33442   echo "$as_me: failed program was:" >&5
33443 sed 's/^/| /' conftest.$ac_ext >&5
33444
33445         ac_hi=`expr '(' $ac_mid ')' - 1`
33446                         if test $ac_mid -le $ac_hi; then
33447                           ac_lo= ac_hi=
33448                           break
33449                         fi
33450                         ac_mid=`expr 2 '*' $ac_mid`
33451 fi
33452
33453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33454   done
33455 else
33456   echo "$as_me: failed program was:" >&5
33457 sed 's/^/| /' conftest.$ac_ext >&5
33458
33459         ac_lo= ac_hi=
33460 fi
33461
33462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33463 fi
33464
33465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33466 # Binary search between lo and hi bounds.
33467 while test "x$ac_lo" != "x$ac_hi"; do
33468   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33469   cat >conftest.$ac_ext <<_ACEOF
33470 /* confdefs.h.  */
33471 _ACEOF
33472 cat confdefs.h >>conftest.$ac_ext
33473 cat >>conftest.$ac_ext <<_ACEOF
33474 /* end confdefs.h.  */
33475 $ac_includes_default
33476    typedef short ac__type_sizeof_;
33477 int
33478 main ()
33479 {
33480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33481 test_array [0] = 0
33482
33483   ;
33484   return 0;
33485 }
33486 _ACEOF
33487 rm -f conftest.$ac_objext
33488 if { (ac_try="$ac_compile"
33489 case "(($ac_try" in
33490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491   *) ac_try_echo=$ac_try;;
33492 esac
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494   (eval "$ac_compile") 2>conftest.er1
33495   ac_status=$?
33496   grep -v '^ *+' conftest.er1 >conftest.err
33497   rm -f conftest.er1
33498   cat conftest.err >&5
33499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500   (exit $ac_status); } && {
33501          test -z "$ac_c_werror_flag" ||
33502          test ! -s conftest.err
33503        } && test -s conftest.$ac_objext; then
33504   ac_hi=$ac_mid
33505 else
33506   echo "$as_me: failed program was:" >&5
33507 sed 's/^/| /' conftest.$ac_ext >&5
33508
33509         ac_lo=`expr '(' $ac_mid ')' + 1`
33510 fi
33511
33512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33513 done
33514 case $ac_lo in
33515 ?*) ac_cv_sizeof_short=$ac_lo;;
33516 '') if test "$ac_cv_type_short" = yes; then
33517      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33518 See \`config.log' for more details." >&5
33519 echo "$as_me: error: cannot compute sizeof (short)
33520 See \`config.log' for more details." >&2;}
33521    { (exit 77); exit 77; }; }
33522    else
33523      ac_cv_sizeof_short=0
33524    fi ;;
33525 esac
33526 else
33527   cat >conftest.$ac_ext <<_ACEOF
33528 /* confdefs.h.  */
33529 _ACEOF
33530 cat confdefs.h >>conftest.$ac_ext
33531 cat >>conftest.$ac_ext <<_ACEOF
33532 /* end confdefs.h.  */
33533 $ac_includes_default
33534    typedef short ac__type_sizeof_;
33535 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33536 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33537 #include <stdio.h>
33538 #include <stdlib.h>
33539 int
33540 main ()
33541 {
33542
33543   FILE *f = fopen ("conftest.val", "w");
33544   if (! f)
33545     return 1;
33546   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33547     {
33548       long int i = longval ();
33549       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33550         return 1;
33551       fprintf (f, "%ld\n", i);
33552     }
33553   else
33554     {
33555       unsigned long int i = ulongval ();
33556       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33557         return 1;
33558       fprintf (f, "%lu\n", i);
33559     }
33560   return ferror (f) || fclose (f) != 0;
33561
33562   ;
33563   return 0;
33564 }
33565 _ACEOF
33566 rm -f conftest$ac_exeext
33567 if { (ac_try="$ac_link"
33568 case "(($ac_try" in
33569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33570   *) ac_try_echo=$ac_try;;
33571 esac
33572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33573   (eval "$ac_link") 2>&5
33574   ac_status=$?
33575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33577   { (case "(($ac_try" in
33578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33579   *) ac_try_echo=$ac_try;;
33580 esac
33581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33582   (eval "$ac_try") 2>&5
33583   ac_status=$?
33584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585   (exit $ac_status); }; }; then
33586   ac_cv_sizeof_short=`cat conftest.val`
33587 else
33588   echo "$as_me: program exited with status $ac_status" >&5
33589 echo "$as_me: failed program was:" >&5
33590 sed 's/^/| /' conftest.$ac_ext >&5
33591
33592 ( exit $ac_status )
33593 if test "$ac_cv_type_short" = yes; then
33594      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33595 See \`config.log' for more details." >&5
33596 echo "$as_me: error: cannot compute sizeof (short)
33597 See \`config.log' for more details." >&2;}
33598    { (exit 77); exit 77; }; }
33599    else
33600      ac_cv_sizeof_short=0
33601    fi
33602 fi
33603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33604 fi
33605 rm -f conftest.val
33606 fi
33607 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33608 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33609
33610
33611
33612 cat >>confdefs.h <<_ACEOF
33613 #define SIZEOF_SHORT $ac_cv_sizeof_short
33614 _ACEOF
33615
33616
33617 { echo "$as_me:$LINENO: checking for int" >&5
33618 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33619 if test "${ac_cv_type_int+set}" = set; then
33620   echo $ECHO_N "(cached) $ECHO_C" >&6
33621 else
33622   cat >conftest.$ac_ext <<_ACEOF
33623 /* confdefs.h.  */
33624 _ACEOF
33625 cat confdefs.h >>conftest.$ac_ext
33626 cat >>conftest.$ac_ext <<_ACEOF
33627 /* end confdefs.h.  */
33628 $ac_includes_default
33629 typedef int ac__type_new_;
33630 int
33631 main ()
33632 {
33633 if ((ac__type_new_ *) 0)
33634   return 0;
33635 if (sizeof (ac__type_new_))
33636   return 0;
33637   ;
33638   return 0;
33639 }
33640 _ACEOF
33641 rm -f conftest.$ac_objext
33642 if { (ac_try="$ac_compile"
33643 case "(($ac_try" in
33644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645   *) ac_try_echo=$ac_try;;
33646 esac
33647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33648   (eval "$ac_compile") 2>conftest.er1
33649   ac_status=$?
33650   grep -v '^ *+' conftest.er1 >conftest.err
33651   rm -f conftest.er1
33652   cat conftest.err >&5
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); } && {
33655          test -z "$ac_c_werror_flag" ||
33656          test ! -s conftest.err
33657        } && test -s conftest.$ac_objext; then
33658   ac_cv_type_int=yes
33659 else
33660   echo "$as_me: failed program was:" >&5
33661 sed 's/^/| /' conftest.$ac_ext >&5
33662
33663         ac_cv_type_int=no
33664 fi
33665
33666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33667 fi
33668 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33669 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33670
33671 # The cast to long int works around a bug in the HP C Compiler
33672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33674 # This bug is HP SR number 8606223364.
33675 { echo "$as_me:$LINENO: checking size of int" >&5
33676 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33677 if test "${ac_cv_sizeof_int+set}" = set; then
33678   echo $ECHO_N "(cached) $ECHO_C" >&6
33679 else
33680   if test "$cross_compiling" = yes; then
33681   # Depending upon the size, compute the lo and hi bounds.
33682 cat >conftest.$ac_ext <<_ACEOF
33683 /* confdefs.h.  */
33684 _ACEOF
33685 cat confdefs.h >>conftest.$ac_ext
33686 cat >>conftest.$ac_ext <<_ACEOF
33687 /* end confdefs.h.  */
33688 $ac_includes_default
33689    typedef int ac__type_sizeof_;
33690 int
33691 main ()
33692 {
33693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33694 test_array [0] = 0
33695
33696   ;
33697   return 0;
33698 }
33699 _ACEOF
33700 rm -f conftest.$ac_objext
33701 if { (ac_try="$ac_compile"
33702 case "(($ac_try" in
33703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33704   *) ac_try_echo=$ac_try;;
33705 esac
33706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33707   (eval "$ac_compile") 2>conftest.er1
33708   ac_status=$?
33709   grep -v '^ *+' conftest.er1 >conftest.err
33710   rm -f conftest.er1
33711   cat conftest.err >&5
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); } && {
33714          test -z "$ac_c_werror_flag" ||
33715          test ! -s conftest.err
33716        } && test -s conftest.$ac_objext; then
33717   ac_lo=0 ac_mid=0
33718   while :; do
33719     cat >conftest.$ac_ext <<_ACEOF
33720 /* confdefs.h.  */
33721 _ACEOF
33722 cat confdefs.h >>conftest.$ac_ext
33723 cat >>conftest.$ac_ext <<_ACEOF
33724 /* end confdefs.h.  */
33725 $ac_includes_default
33726    typedef int ac__type_sizeof_;
33727 int
33728 main ()
33729 {
33730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33731 test_array [0] = 0
33732
33733   ;
33734   return 0;
33735 }
33736 _ACEOF
33737 rm -f conftest.$ac_objext
33738 if { (ac_try="$ac_compile"
33739 case "(($ac_try" in
33740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33741   *) ac_try_echo=$ac_try;;
33742 esac
33743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33744   (eval "$ac_compile") 2>conftest.er1
33745   ac_status=$?
33746   grep -v '^ *+' conftest.er1 >conftest.err
33747   rm -f conftest.er1
33748   cat conftest.err >&5
33749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750   (exit $ac_status); } && {
33751          test -z "$ac_c_werror_flag" ||
33752          test ! -s conftest.err
33753        } && test -s conftest.$ac_objext; then
33754   ac_hi=$ac_mid; break
33755 else
33756   echo "$as_me: failed program was:" >&5
33757 sed 's/^/| /' conftest.$ac_ext >&5
33758
33759         ac_lo=`expr $ac_mid + 1`
33760                         if test $ac_lo -le $ac_mid; then
33761                           ac_lo= ac_hi=
33762                           break
33763                         fi
33764                         ac_mid=`expr 2 '*' $ac_mid + 1`
33765 fi
33766
33767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33768   done
33769 else
33770   echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33772
33773         cat >conftest.$ac_ext <<_ACEOF
33774 /* confdefs.h.  */
33775 _ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h.  */
33779 $ac_includes_default
33780    typedef int ac__type_sizeof_;
33781 int
33782 main ()
33783 {
33784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33785 test_array [0] = 0
33786
33787   ;
33788   return 0;
33789 }
33790 _ACEOF
33791 rm -f conftest.$ac_objext
33792 if { (ac_try="$ac_compile"
33793 case "(($ac_try" in
33794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795   *) ac_try_echo=$ac_try;;
33796 esac
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798   (eval "$ac_compile") 2>conftest.er1
33799   ac_status=$?
33800   grep -v '^ *+' conftest.er1 >conftest.err
33801   rm -f conftest.er1
33802   cat conftest.err >&5
33803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804   (exit $ac_status); } && {
33805          test -z "$ac_c_werror_flag" ||
33806          test ! -s conftest.err
33807        } && test -s conftest.$ac_objext; then
33808   ac_hi=-1 ac_mid=-1
33809   while :; do
33810     cat >conftest.$ac_ext <<_ACEOF
33811 /* confdefs.h.  */
33812 _ACEOF
33813 cat confdefs.h >>conftest.$ac_ext
33814 cat >>conftest.$ac_ext <<_ACEOF
33815 /* end confdefs.h.  */
33816 $ac_includes_default
33817    typedef int ac__type_sizeof_;
33818 int
33819 main ()
33820 {
33821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33822 test_array [0] = 0
33823
33824   ;
33825   return 0;
33826 }
33827 _ACEOF
33828 rm -f conftest.$ac_objext
33829 if { (ac_try="$ac_compile"
33830 case "(($ac_try" in
33831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832   *) ac_try_echo=$ac_try;;
33833 esac
33834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835   (eval "$ac_compile") 2>conftest.er1
33836   ac_status=$?
33837   grep -v '^ *+' conftest.er1 >conftest.err
33838   rm -f conftest.er1
33839   cat conftest.err >&5
33840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841   (exit $ac_status); } && {
33842          test -z "$ac_c_werror_flag" ||
33843          test ! -s conftest.err
33844        } && test -s conftest.$ac_objext; then
33845   ac_lo=$ac_mid; break
33846 else
33847   echo "$as_me: failed program was:" >&5
33848 sed 's/^/| /' conftest.$ac_ext >&5
33849
33850         ac_hi=`expr '(' $ac_mid ')' - 1`
33851                         if test $ac_mid -le $ac_hi; then
33852                           ac_lo= ac_hi=
33853                           break
33854                         fi
33855                         ac_mid=`expr 2 '*' $ac_mid`
33856 fi
33857
33858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33859   done
33860 else
33861   echo "$as_me: failed program was:" >&5
33862 sed 's/^/| /' conftest.$ac_ext >&5
33863
33864         ac_lo= ac_hi=
33865 fi
33866
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33868 fi
33869
33870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 # Binary search between lo and hi bounds.
33872 while test "x$ac_lo" != "x$ac_hi"; do
33873   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33874   cat >conftest.$ac_ext <<_ACEOF
33875 /* confdefs.h.  */
33876 _ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h.  */
33880 $ac_includes_default
33881    typedef int ac__type_sizeof_;
33882 int
33883 main ()
33884 {
33885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33886 test_array [0] = 0
33887
33888   ;
33889   return 0;
33890 }
33891 _ACEOF
33892 rm -f conftest.$ac_objext
33893 if { (ac_try="$ac_compile"
33894 case "(($ac_try" in
33895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33896   *) ac_try_echo=$ac_try;;
33897 esac
33898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33899   (eval "$ac_compile") 2>conftest.er1
33900   ac_status=$?
33901   grep -v '^ *+' conftest.er1 >conftest.err
33902   rm -f conftest.er1
33903   cat conftest.err >&5
33904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905   (exit $ac_status); } && {
33906          test -z "$ac_c_werror_flag" ||
33907          test ! -s conftest.err
33908        } && test -s conftest.$ac_objext; then
33909   ac_hi=$ac_mid
33910 else
33911   echo "$as_me: failed program was:" >&5
33912 sed 's/^/| /' conftest.$ac_ext >&5
33913
33914         ac_lo=`expr '(' $ac_mid ')' + 1`
33915 fi
33916
33917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33918 done
33919 case $ac_lo in
33920 ?*) ac_cv_sizeof_int=$ac_lo;;
33921 '') if test "$ac_cv_type_int" = yes; then
33922      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33923 See \`config.log' for more details." >&5
33924 echo "$as_me: error: cannot compute sizeof (int)
33925 See \`config.log' for more details." >&2;}
33926    { (exit 77); exit 77; }; }
33927    else
33928      ac_cv_sizeof_int=0
33929    fi ;;
33930 esac
33931 else
33932   cat >conftest.$ac_ext <<_ACEOF
33933 /* confdefs.h.  */
33934 _ACEOF
33935 cat confdefs.h >>conftest.$ac_ext
33936 cat >>conftest.$ac_ext <<_ACEOF
33937 /* end confdefs.h.  */
33938 $ac_includes_default
33939    typedef int ac__type_sizeof_;
33940 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33941 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33942 #include <stdio.h>
33943 #include <stdlib.h>
33944 int
33945 main ()
33946 {
33947
33948   FILE *f = fopen ("conftest.val", "w");
33949   if (! f)
33950     return 1;
33951   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33952     {
33953       long int i = longval ();
33954       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33955         return 1;
33956       fprintf (f, "%ld\n", i);
33957     }
33958   else
33959     {
33960       unsigned long int i = ulongval ();
33961       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33962         return 1;
33963       fprintf (f, "%lu\n", i);
33964     }
33965   return ferror (f) || fclose (f) != 0;
33966
33967   ;
33968   return 0;
33969 }
33970 _ACEOF
33971 rm -f conftest$ac_exeext
33972 if { (ac_try="$ac_link"
33973 case "(($ac_try" in
33974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975   *) ac_try_echo=$ac_try;;
33976 esac
33977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978   (eval "$ac_link") 2>&5
33979   ac_status=$?
33980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33982   { (case "(($ac_try" in
33983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33984   *) ac_try_echo=$ac_try;;
33985 esac
33986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33987   (eval "$ac_try") 2>&5
33988   ac_status=$?
33989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990   (exit $ac_status); }; }; then
33991   ac_cv_sizeof_int=`cat conftest.val`
33992 else
33993   echo "$as_me: program exited with status $ac_status" >&5
33994 echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33996
33997 ( exit $ac_status )
33998 if test "$ac_cv_type_int" = yes; then
33999      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34000 See \`config.log' for more details." >&5
34001 echo "$as_me: error: cannot compute sizeof (int)
34002 See \`config.log' for more details." >&2;}
34003    { (exit 77); exit 77; }; }
34004    else
34005      ac_cv_sizeof_int=0
34006    fi
34007 fi
34008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34009 fi
34010 rm -f conftest.val
34011 fi
34012 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34013 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34014
34015
34016
34017 cat >>confdefs.h <<_ACEOF
34018 #define SIZEOF_INT $ac_cv_sizeof_int
34019 _ACEOF
34020
34021
34022 { echo "$as_me:$LINENO: checking for long" >&5
34023 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34024 if test "${ac_cv_type_long+set}" = set; then
34025   echo $ECHO_N "(cached) $ECHO_C" >&6
34026 else
34027   cat >conftest.$ac_ext <<_ACEOF
34028 /* confdefs.h.  */
34029 _ACEOF
34030 cat confdefs.h >>conftest.$ac_ext
34031 cat >>conftest.$ac_ext <<_ACEOF
34032 /* end confdefs.h.  */
34033 $ac_includes_default
34034 typedef long ac__type_new_;
34035 int
34036 main ()
34037 {
34038 if ((ac__type_new_ *) 0)
34039   return 0;
34040 if (sizeof (ac__type_new_))
34041   return 0;
34042   ;
34043   return 0;
34044 }
34045 _ACEOF
34046 rm -f conftest.$ac_objext
34047 if { (ac_try="$ac_compile"
34048 case "(($ac_try" in
34049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34050   *) ac_try_echo=$ac_try;;
34051 esac
34052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34053   (eval "$ac_compile") 2>conftest.er1
34054   ac_status=$?
34055   grep -v '^ *+' conftest.er1 >conftest.err
34056   rm -f conftest.er1
34057   cat conftest.err >&5
34058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059   (exit $ac_status); } && {
34060          test -z "$ac_c_werror_flag" ||
34061          test ! -s conftest.err
34062        } && test -s conftest.$ac_objext; then
34063   ac_cv_type_long=yes
34064 else
34065   echo "$as_me: failed program was:" >&5
34066 sed 's/^/| /' conftest.$ac_ext >&5
34067
34068         ac_cv_type_long=no
34069 fi
34070
34071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34072 fi
34073 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34074 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34075
34076 # The cast to long int works around a bug in the HP C Compiler
34077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34079 # This bug is HP SR number 8606223364.
34080 { echo "$as_me:$LINENO: checking size of long" >&5
34081 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34082 if test "${ac_cv_sizeof_long+set}" = set; then
34083   echo $ECHO_N "(cached) $ECHO_C" >&6
34084 else
34085   if test "$cross_compiling" = yes; then
34086   # Depending upon the size, compute the lo and hi bounds.
34087 cat >conftest.$ac_ext <<_ACEOF
34088 /* confdefs.h.  */
34089 _ACEOF
34090 cat confdefs.h >>conftest.$ac_ext
34091 cat >>conftest.$ac_ext <<_ACEOF
34092 /* end confdefs.h.  */
34093 $ac_includes_default
34094    typedef long ac__type_sizeof_;
34095 int
34096 main ()
34097 {
34098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34099 test_array [0] = 0
34100
34101   ;
34102   return 0;
34103 }
34104 _ACEOF
34105 rm -f conftest.$ac_objext
34106 if { (ac_try="$ac_compile"
34107 case "(($ac_try" in
34108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34109   *) ac_try_echo=$ac_try;;
34110 esac
34111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34112   (eval "$ac_compile") 2>conftest.er1
34113   ac_status=$?
34114   grep -v '^ *+' conftest.er1 >conftest.err
34115   rm -f conftest.er1
34116   cat conftest.err >&5
34117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118   (exit $ac_status); } && {
34119          test -z "$ac_c_werror_flag" ||
34120          test ! -s conftest.err
34121        } && test -s conftest.$ac_objext; then
34122   ac_lo=0 ac_mid=0
34123   while :; do
34124     cat >conftest.$ac_ext <<_ACEOF
34125 /* confdefs.h.  */
34126 _ACEOF
34127 cat confdefs.h >>conftest.$ac_ext
34128 cat >>conftest.$ac_ext <<_ACEOF
34129 /* end confdefs.h.  */
34130 $ac_includes_default
34131    typedef long ac__type_sizeof_;
34132 int
34133 main ()
34134 {
34135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34136 test_array [0] = 0
34137
34138   ;
34139   return 0;
34140 }
34141 _ACEOF
34142 rm -f conftest.$ac_objext
34143 if { (ac_try="$ac_compile"
34144 case "(($ac_try" in
34145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146   *) ac_try_echo=$ac_try;;
34147 esac
34148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149   (eval "$ac_compile") 2>conftest.er1
34150   ac_status=$?
34151   grep -v '^ *+' conftest.er1 >conftest.err
34152   rm -f conftest.er1
34153   cat conftest.err >&5
34154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155   (exit $ac_status); } && {
34156          test -z "$ac_c_werror_flag" ||
34157          test ! -s conftest.err
34158        } && test -s conftest.$ac_objext; then
34159   ac_hi=$ac_mid; break
34160 else
34161   echo "$as_me: failed program was:" >&5
34162 sed 's/^/| /' conftest.$ac_ext >&5
34163
34164         ac_lo=`expr $ac_mid + 1`
34165                         if test $ac_lo -le $ac_mid; then
34166                           ac_lo= ac_hi=
34167                           break
34168                         fi
34169                         ac_mid=`expr 2 '*' $ac_mid + 1`
34170 fi
34171
34172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34173   done
34174 else
34175   echo "$as_me: failed program was:" >&5
34176 sed 's/^/| /' conftest.$ac_ext >&5
34177
34178         cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184 $ac_includes_default
34185    typedef long ac__type_sizeof_;
34186 int
34187 main ()
34188 {
34189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34190 test_array [0] = 0
34191
34192   ;
34193   return 0;
34194 }
34195 _ACEOF
34196 rm -f conftest.$ac_objext
34197 if { (ac_try="$ac_compile"
34198 case "(($ac_try" in
34199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34200   *) ac_try_echo=$ac_try;;
34201 esac
34202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34203   (eval "$ac_compile") 2>conftest.er1
34204   ac_status=$?
34205   grep -v '^ *+' conftest.er1 >conftest.err
34206   rm -f conftest.er1
34207   cat conftest.err >&5
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); } && {
34210          test -z "$ac_c_werror_flag" ||
34211          test ! -s conftest.err
34212        } && test -s conftest.$ac_objext; then
34213   ac_hi=-1 ac_mid=-1
34214   while :; do
34215     cat >conftest.$ac_ext <<_ACEOF
34216 /* confdefs.h.  */
34217 _ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h.  */
34221 $ac_includes_default
34222    typedef long ac__type_sizeof_;
34223 int
34224 main ()
34225 {
34226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34227 test_array [0] = 0
34228
34229   ;
34230   return 0;
34231 }
34232 _ACEOF
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237   *) ac_try_echo=$ac_try;;
34238 esac
34239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34240   (eval "$ac_compile") 2>conftest.er1
34241   ac_status=$?
34242   grep -v '^ *+' conftest.er1 >conftest.err
34243   rm -f conftest.er1
34244   cat conftest.err >&5
34245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246   (exit $ac_status); } && {
34247          test -z "$ac_c_werror_flag" ||
34248          test ! -s conftest.err
34249        } && test -s conftest.$ac_objext; then
34250   ac_lo=$ac_mid; break
34251 else
34252   echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34254
34255         ac_hi=`expr '(' $ac_mid ')' - 1`
34256                         if test $ac_mid -le $ac_hi; then
34257                           ac_lo= ac_hi=
34258                           break
34259                         fi
34260                         ac_mid=`expr 2 '*' $ac_mid`
34261 fi
34262
34263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34264   done
34265 else
34266   echo "$as_me: failed program was:" >&5
34267 sed 's/^/| /' conftest.$ac_ext >&5
34268
34269         ac_lo= ac_hi=
34270 fi
34271
34272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34273 fi
34274
34275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34276 # Binary search between lo and hi bounds.
34277 while test "x$ac_lo" != "x$ac_hi"; do
34278   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34279   cat >conftest.$ac_ext <<_ACEOF
34280 /* confdefs.h.  */
34281 _ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h.  */
34285 $ac_includes_default
34286    typedef long ac__type_sizeof_;
34287 int
34288 main ()
34289 {
34290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34291 test_array [0] = 0
34292
34293   ;
34294   return 0;
34295 }
34296 _ACEOF
34297 rm -f conftest.$ac_objext
34298 if { (ac_try="$ac_compile"
34299 case "(($ac_try" in
34300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301   *) ac_try_echo=$ac_try;;
34302 esac
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304   (eval "$ac_compile") 2>conftest.er1
34305   ac_status=$?
34306   grep -v '^ *+' conftest.er1 >conftest.err
34307   rm -f conftest.er1
34308   cat conftest.err >&5
34309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310   (exit $ac_status); } && {
34311          test -z "$ac_c_werror_flag" ||
34312          test ! -s conftest.err
34313        } && test -s conftest.$ac_objext; then
34314   ac_hi=$ac_mid
34315 else
34316   echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34318
34319         ac_lo=`expr '(' $ac_mid ')' + 1`
34320 fi
34321
34322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34323 done
34324 case $ac_lo in
34325 ?*) ac_cv_sizeof_long=$ac_lo;;
34326 '') if test "$ac_cv_type_long" = yes; then
34327      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34328 See \`config.log' for more details." >&5
34329 echo "$as_me: error: cannot compute sizeof (long)
34330 See \`config.log' for more details." >&2;}
34331    { (exit 77); exit 77; }; }
34332    else
34333      ac_cv_sizeof_long=0
34334    fi ;;
34335 esac
34336 else
34337   cat >conftest.$ac_ext <<_ACEOF
34338 /* confdefs.h.  */
34339 _ACEOF
34340 cat confdefs.h >>conftest.$ac_ext
34341 cat >>conftest.$ac_ext <<_ACEOF
34342 /* end confdefs.h.  */
34343 $ac_includes_default
34344    typedef long ac__type_sizeof_;
34345 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34346 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34347 #include <stdio.h>
34348 #include <stdlib.h>
34349 int
34350 main ()
34351 {
34352
34353   FILE *f = fopen ("conftest.val", "w");
34354   if (! f)
34355     return 1;
34356   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34357     {
34358       long int i = longval ();
34359       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34360         return 1;
34361       fprintf (f, "%ld\n", i);
34362     }
34363   else
34364     {
34365       unsigned long int i = ulongval ();
34366       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34367         return 1;
34368       fprintf (f, "%lu\n", i);
34369     }
34370   return ferror (f) || fclose (f) != 0;
34371
34372   ;
34373   return 0;
34374 }
34375 _ACEOF
34376 rm -f conftest$ac_exeext
34377 if { (ac_try="$ac_link"
34378 case "(($ac_try" in
34379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380   *) ac_try_echo=$ac_try;;
34381 esac
34382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383   (eval "$ac_link") 2>&5
34384   ac_status=$?
34385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34387   { (case "(($ac_try" in
34388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34389   *) ac_try_echo=$ac_try;;
34390 esac
34391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34392   (eval "$ac_try") 2>&5
34393   ac_status=$?
34394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395   (exit $ac_status); }; }; then
34396   ac_cv_sizeof_long=`cat conftest.val`
34397 else
34398   echo "$as_me: program exited with status $ac_status" >&5
34399 echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.$ac_ext >&5
34401
34402 ( exit $ac_status )
34403 if test "$ac_cv_type_long" = yes; then
34404      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34405 See \`config.log' for more details." >&5
34406 echo "$as_me: error: cannot compute sizeof (long)
34407 See \`config.log' for more details." >&2;}
34408    { (exit 77); exit 77; }; }
34409    else
34410      ac_cv_sizeof_long=0
34411    fi
34412 fi
34413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34414 fi
34415 rm -f conftest.val
34416 fi
34417 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34418 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34419
34420
34421
34422 cat >>confdefs.h <<_ACEOF
34423 #define SIZEOF_LONG $ac_cv_sizeof_long
34424 _ACEOF
34425
34426
34427 { echo "$as_me:$LINENO: checking for long long" >&5
34428 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34429 if test "${ac_cv_type_long_long+set}" = set; then
34430   echo $ECHO_N "(cached) $ECHO_C" >&6
34431 else
34432   cat >conftest.$ac_ext <<_ACEOF
34433 /* confdefs.h.  */
34434 _ACEOF
34435 cat confdefs.h >>conftest.$ac_ext
34436 cat >>conftest.$ac_ext <<_ACEOF
34437 /* end confdefs.h.  */
34438 $ac_includes_default
34439 typedef long long ac__type_new_;
34440 int
34441 main ()
34442 {
34443 if ((ac__type_new_ *) 0)
34444   return 0;
34445 if (sizeof (ac__type_new_))
34446   return 0;
34447   ;
34448   return 0;
34449 }
34450 _ACEOF
34451 rm -f conftest.$ac_objext
34452 if { (ac_try="$ac_compile"
34453 case "(($ac_try" in
34454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455   *) ac_try_echo=$ac_try;;
34456 esac
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458   (eval "$ac_compile") 2>conftest.er1
34459   ac_status=$?
34460   grep -v '^ *+' conftest.er1 >conftest.err
34461   rm -f conftest.er1
34462   cat conftest.err >&5
34463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464   (exit $ac_status); } && {
34465          test -z "$ac_c_werror_flag" ||
34466          test ! -s conftest.err
34467        } && test -s conftest.$ac_objext; then
34468   ac_cv_type_long_long=yes
34469 else
34470   echo "$as_me: failed program was:" >&5
34471 sed 's/^/| /' conftest.$ac_ext >&5
34472
34473         ac_cv_type_long_long=no
34474 fi
34475
34476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34477 fi
34478 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34479 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34480
34481 # The cast to long int works around a bug in the HP C Compiler
34482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34484 # This bug is HP SR number 8606223364.
34485 { echo "$as_me:$LINENO: checking size of long long" >&5
34486 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34487 if test "${ac_cv_sizeof_long_long+set}" = set; then
34488   echo $ECHO_N "(cached) $ECHO_C" >&6
34489 else
34490   if test "$cross_compiling" = yes; then
34491   # Depending upon the size, compute the lo and hi bounds.
34492 cat >conftest.$ac_ext <<_ACEOF
34493 /* confdefs.h.  */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h.  */
34498 $ac_includes_default
34499    typedef long long ac__type_sizeof_;
34500 int
34501 main ()
34502 {
34503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34504 test_array [0] = 0
34505
34506   ;
34507   return 0;
34508 }
34509 _ACEOF
34510 rm -f conftest.$ac_objext
34511 if { (ac_try="$ac_compile"
34512 case "(($ac_try" in
34513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34514   *) ac_try_echo=$ac_try;;
34515 esac
34516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34517   (eval "$ac_compile") 2>conftest.er1
34518   ac_status=$?
34519   grep -v '^ *+' conftest.er1 >conftest.err
34520   rm -f conftest.er1
34521   cat conftest.err >&5
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } && {
34524          test -z "$ac_c_werror_flag" ||
34525          test ! -s conftest.err
34526        } && test -s conftest.$ac_objext; then
34527   ac_lo=0 ac_mid=0
34528   while :; do
34529     cat >conftest.$ac_ext <<_ACEOF
34530 /* confdefs.h.  */
34531 _ACEOF
34532 cat confdefs.h >>conftest.$ac_ext
34533 cat >>conftest.$ac_ext <<_ACEOF
34534 /* end confdefs.h.  */
34535 $ac_includes_default
34536    typedef long long ac__type_sizeof_;
34537 int
34538 main ()
34539 {
34540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34541 test_array [0] = 0
34542
34543   ;
34544   return 0;
34545 }
34546 _ACEOF
34547 rm -f conftest.$ac_objext
34548 if { (ac_try="$ac_compile"
34549 case "(($ac_try" in
34550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34551   *) ac_try_echo=$ac_try;;
34552 esac
34553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34554   (eval "$ac_compile") 2>conftest.er1
34555   ac_status=$?
34556   grep -v '^ *+' conftest.er1 >conftest.err
34557   rm -f conftest.er1
34558   cat conftest.err >&5
34559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560   (exit $ac_status); } && {
34561          test -z "$ac_c_werror_flag" ||
34562          test ! -s conftest.err
34563        } && test -s conftest.$ac_objext; then
34564   ac_hi=$ac_mid; break
34565 else
34566   echo "$as_me: failed program was:" >&5
34567 sed 's/^/| /' conftest.$ac_ext >&5
34568
34569         ac_lo=`expr $ac_mid + 1`
34570                         if test $ac_lo -le $ac_mid; then
34571                           ac_lo= ac_hi=
34572                           break
34573                         fi
34574                         ac_mid=`expr 2 '*' $ac_mid + 1`
34575 fi
34576
34577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34578   done
34579 else
34580   echo "$as_me: failed program was:" >&5
34581 sed 's/^/| /' conftest.$ac_ext >&5
34582
34583         cat >conftest.$ac_ext <<_ACEOF
34584 /* confdefs.h.  */
34585 _ACEOF
34586 cat confdefs.h >>conftest.$ac_ext
34587 cat >>conftest.$ac_ext <<_ACEOF
34588 /* end confdefs.h.  */
34589 $ac_includes_default
34590    typedef long long ac__type_sizeof_;
34591 int
34592 main ()
34593 {
34594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34595 test_array [0] = 0
34596
34597   ;
34598   return 0;
34599 }
34600 _ACEOF
34601 rm -f conftest.$ac_objext
34602 if { (ac_try="$ac_compile"
34603 case "(($ac_try" in
34604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34605   *) ac_try_echo=$ac_try;;
34606 esac
34607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34608   (eval "$ac_compile") 2>conftest.er1
34609   ac_status=$?
34610   grep -v '^ *+' conftest.er1 >conftest.err
34611   rm -f conftest.er1
34612   cat conftest.err >&5
34613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614   (exit $ac_status); } && {
34615          test -z "$ac_c_werror_flag" ||
34616          test ! -s conftest.err
34617        } && test -s conftest.$ac_objext; then
34618   ac_hi=-1 ac_mid=-1
34619   while :; do
34620     cat >conftest.$ac_ext <<_ACEOF
34621 /* confdefs.h.  */
34622 _ACEOF
34623 cat confdefs.h >>conftest.$ac_ext
34624 cat >>conftest.$ac_ext <<_ACEOF
34625 /* end confdefs.h.  */
34626 $ac_includes_default
34627    typedef long long ac__type_sizeof_;
34628 int
34629 main ()
34630 {
34631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34632 test_array [0] = 0
34633
34634   ;
34635   return 0;
34636 }
34637 _ACEOF
34638 rm -f conftest.$ac_objext
34639 if { (ac_try="$ac_compile"
34640 case "(($ac_try" in
34641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34642   *) ac_try_echo=$ac_try;;
34643 esac
34644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34645   (eval "$ac_compile") 2>conftest.er1
34646   ac_status=$?
34647   grep -v '^ *+' conftest.er1 >conftest.err
34648   rm -f conftest.er1
34649   cat conftest.err >&5
34650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651   (exit $ac_status); } && {
34652          test -z "$ac_c_werror_flag" ||
34653          test ! -s conftest.err
34654        } && test -s conftest.$ac_objext; then
34655   ac_lo=$ac_mid; break
34656 else
34657   echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34659
34660         ac_hi=`expr '(' $ac_mid ')' - 1`
34661                         if test $ac_mid -le $ac_hi; then
34662                           ac_lo= ac_hi=
34663                           break
34664                         fi
34665                         ac_mid=`expr 2 '*' $ac_mid`
34666 fi
34667
34668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34669   done
34670 else
34671   echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34673
34674         ac_lo= ac_hi=
34675 fi
34676
34677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34678 fi
34679
34680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34681 # Binary search between lo and hi bounds.
34682 while test "x$ac_lo" != "x$ac_hi"; do
34683   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34684   cat >conftest.$ac_ext <<_ACEOF
34685 /* confdefs.h.  */
34686 _ACEOF
34687 cat confdefs.h >>conftest.$ac_ext
34688 cat >>conftest.$ac_ext <<_ACEOF
34689 /* end confdefs.h.  */
34690 $ac_includes_default
34691    typedef long long ac__type_sizeof_;
34692 int
34693 main ()
34694 {
34695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34696 test_array [0] = 0
34697
34698   ;
34699   return 0;
34700 }
34701 _ACEOF
34702 rm -f conftest.$ac_objext
34703 if { (ac_try="$ac_compile"
34704 case "(($ac_try" in
34705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706   *) ac_try_echo=$ac_try;;
34707 esac
34708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709   (eval "$ac_compile") 2>conftest.er1
34710   ac_status=$?
34711   grep -v '^ *+' conftest.er1 >conftest.err
34712   rm -f conftest.er1
34713   cat conftest.err >&5
34714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715   (exit $ac_status); } && {
34716          test -z "$ac_c_werror_flag" ||
34717          test ! -s conftest.err
34718        } && test -s conftest.$ac_objext; then
34719   ac_hi=$ac_mid
34720 else
34721   echo "$as_me: failed program was:" >&5
34722 sed 's/^/| /' conftest.$ac_ext >&5
34723
34724         ac_lo=`expr '(' $ac_mid ')' + 1`
34725 fi
34726
34727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34728 done
34729 case $ac_lo in
34730 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34731 '') if test "$ac_cv_type_long_long" = yes; then
34732      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34733 See \`config.log' for more details." >&5
34734 echo "$as_me: error: cannot compute sizeof (long long)
34735 See \`config.log' for more details." >&2;}
34736    { (exit 77); exit 77; }; }
34737    else
34738      ac_cv_sizeof_long_long=0
34739    fi ;;
34740 esac
34741 else
34742   cat >conftest.$ac_ext <<_ACEOF
34743 /* confdefs.h.  */
34744 _ACEOF
34745 cat confdefs.h >>conftest.$ac_ext
34746 cat >>conftest.$ac_ext <<_ACEOF
34747 /* end confdefs.h.  */
34748 $ac_includes_default
34749    typedef long long ac__type_sizeof_;
34750 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34751 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34752 #include <stdio.h>
34753 #include <stdlib.h>
34754 int
34755 main ()
34756 {
34757
34758   FILE *f = fopen ("conftest.val", "w");
34759   if (! f)
34760     return 1;
34761   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34762     {
34763       long int i = longval ();
34764       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34765         return 1;
34766       fprintf (f, "%ld\n", i);
34767     }
34768   else
34769     {
34770       unsigned long int i = ulongval ();
34771       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34772         return 1;
34773       fprintf (f, "%lu\n", i);
34774     }
34775   return ferror (f) || fclose (f) != 0;
34776
34777   ;
34778   return 0;
34779 }
34780 _ACEOF
34781 rm -f conftest$ac_exeext
34782 if { (ac_try="$ac_link"
34783 case "(($ac_try" in
34784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34785   *) ac_try_echo=$ac_try;;
34786 esac
34787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34788   (eval "$ac_link") 2>&5
34789   ac_status=$?
34790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34792   { (case "(($ac_try" in
34793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34794   *) ac_try_echo=$ac_try;;
34795 esac
34796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34797   (eval "$ac_try") 2>&5
34798   ac_status=$?
34799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34800   (exit $ac_status); }; }; then
34801   ac_cv_sizeof_long_long=`cat conftest.val`
34802 else
34803   echo "$as_me: program exited with status $ac_status" >&5
34804 echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34806
34807 ( exit $ac_status )
34808 if test "$ac_cv_type_long_long" = yes; then
34809      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34810 See \`config.log' for more details." >&5
34811 echo "$as_me: error: cannot compute sizeof (long long)
34812 See \`config.log' for more details." >&2;}
34813    { (exit 77); exit 77; }; }
34814    else
34815      ac_cv_sizeof_long_long=0
34816    fi
34817 fi
34818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34819 fi
34820 rm -f conftest.val
34821 fi
34822 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34823 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34824
34825
34826
34827 cat >>confdefs.h <<_ACEOF
34828 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34829 _ACEOF
34830
34831
34832 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34833 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34834 if test "${ac_cv_type_wchar_t+set}" = set; then
34835   echo $ECHO_N "(cached) $ECHO_C" >&6
34836 else
34837   cat >conftest.$ac_ext <<_ACEOF
34838 /* confdefs.h.  */
34839 _ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h.  */
34843 $ac_includes_default
34844 typedef wchar_t ac__type_new_;
34845 int
34846 main ()
34847 {
34848 if ((ac__type_new_ *) 0)
34849   return 0;
34850 if (sizeof (ac__type_new_))
34851   return 0;
34852   ;
34853   return 0;
34854 }
34855 _ACEOF
34856 rm -f conftest.$ac_objext
34857 if { (ac_try="$ac_compile"
34858 case "(($ac_try" in
34859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34860   *) ac_try_echo=$ac_try;;
34861 esac
34862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34863   (eval "$ac_compile") 2>conftest.er1
34864   ac_status=$?
34865   grep -v '^ *+' conftest.er1 >conftest.err
34866   rm -f conftest.er1
34867   cat conftest.err >&5
34868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869   (exit $ac_status); } && {
34870          test -z "$ac_c_werror_flag" ||
34871          test ! -s conftest.err
34872        } && test -s conftest.$ac_objext; then
34873   ac_cv_type_wchar_t=yes
34874 else
34875   echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34877
34878         ac_cv_type_wchar_t=no
34879 fi
34880
34881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34882 fi
34883 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34884 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34885
34886 # The cast to long int works around a bug in the HP C Compiler
34887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34889 # This bug is HP SR number 8606223364.
34890 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34891 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34892 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34893   echo $ECHO_N "(cached) $ECHO_C" >&6
34894 else
34895   if test "$cross_compiling" = yes; then
34896   # Depending upon the size, compute the lo and hi bounds.
34897 cat >conftest.$ac_ext <<_ACEOF
34898 /* confdefs.h.  */
34899 _ACEOF
34900 cat confdefs.h >>conftest.$ac_ext
34901 cat >>conftest.$ac_ext <<_ACEOF
34902 /* end confdefs.h.  */
34903 $ac_includes_default
34904    typedef wchar_t ac__type_sizeof_;
34905 int
34906 main ()
34907 {
34908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34909 test_array [0] = 0
34910
34911   ;
34912   return 0;
34913 }
34914 _ACEOF
34915 rm -f conftest.$ac_objext
34916 if { (ac_try="$ac_compile"
34917 case "(($ac_try" in
34918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34919   *) ac_try_echo=$ac_try;;
34920 esac
34921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34922   (eval "$ac_compile") 2>conftest.er1
34923   ac_status=$?
34924   grep -v '^ *+' conftest.er1 >conftest.err
34925   rm -f conftest.er1
34926   cat conftest.err >&5
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); } && {
34929          test -z "$ac_c_werror_flag" ||
34930          test ! -s conftest.err
34931        } && test -s conftest.$ac_objext; then
34932   ac_lo=0 ac_mid=0
34933   while :; do
34934     cat >conftest.$ac_ext <<_ACEOF
34935 /* confdefs.h.  */
34936 _ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h.  */
34940 $ac_includes_default
34941    typedef wchar_t ac__type_sizeof_;
34942 int
34943 main ()
34944 {
34945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34946 test_array [0] = 0
34947
34948   ;
34949   return 0;
34950 }
34951 _ACEOF
34952 rm -f conftest.$ac_objext
34953 if { (ac_try="$ac_compile"
34954 case "(($ac_try" in
34955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34956   *) ac_try_echo=$ac_try;;
34957 esac
34958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959   (eval "$ac_compile") 2>conftest.er1
34960   ac_status=$?
34961   grep -v '^ *+' conftest.er1 >conftest.err
34962   rm -f conftest.er1
34963   cat conftest.err >&5
34964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965   (exit $ac_status); } && {
34966          test -z "$ac_c_werror_flag" ||
34967          test ! -s conftest.err
34968        } && test -s conftest.$ac_objext; then
34969   ac_hi=$ac_mid; break
34970 else
34971   echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974         ac_lo=`expr $ac_mid + 1`
34975                         if test $ac_lo -le $ac_mid; then
34976                           ac_lo= ac_hi=
34977                           break
34978                         fi
34979                         ac_mid=`expr 2 '*' $ac_mid + 1`
34980 fi
34981
34982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34983   done
34984 else
34985   echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34987
34988         cat >conftest.$ac_ext <<_ACEOF
34989 /* confdefs.h.  */
34990 _ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h.  */
34994 $ac_includes_default
34995    typedef wchar_t ac__type_sizeof_;
34996 int
34997 main ()
34998 {
34999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35000 test_array [0] = 0
35001
35002   ;
35003   return 0;
35004 }
35005 _ACEOF
35006 rm -f conftest.$ac_objext
35007 if { (ac_try="$ac_compile"
35008 case "(($ac_try" in
35009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35010   *) ac_try_echo=$ac_try;;
35011 esac
35012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35013   (eval "$ac_compile") 2>conftest.er1
35014   ac_status=$?
35015   grep -v '^ *+' conftest.er1 >conftest.err
35016   rm -f conftest.er1
35017   cat conftest.err >&5
35018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019   (exit $ac_status); } && {
35020          test -z "$ac_c_werror_flag" ||
35021          test ! -s conftest.err
35022        } && test -s conftest.$ac_objext; then
35023   ac_hi=-1 ac_mid=-1
35024   while :; do
35025     cat >conftest.$ac_ext <<_ACEOF
35026 /* confdefs.h.  */
35027 _ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h.  */
35031 $ac_includes_default
35032    typedef wchar_t ac__type_sizeof_;
35033 int
35034 main ()
35035 {
35036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35037 test_array [0] = 0
35038
35039   ;
35040   return 0;
35041 }
35042 _ACEOF
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047   *) ac_try_echo=$ac_try;;
35048 esac
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050   (eval "$ac_compile") 2>conftest.er1
35051   ac_status=$?
35052   grep -v '^ *+' conftest.er1 >conftest.err
35053   rm -f conftest.er1
35054   cat conftest.err >&5
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); } && {
35057          test -z "$ac_c_werror_flag" ||
35058          test ! -s conftest.err
35059        } && test -s conftest.$ac_objext; then
35060   ac_lo=$ac_mid; break
35061 else
35062   echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35064
35065         ac_hi=`expr '(' $ac_mid ')' - 1`
35066                         if test $ac_mid -le $ac_hi; then
35067                           ac_lo= ac_hi=
35068                           break
35069                         fi
35070                         ac_mid=`expr 2 '*' $ac_mid`
35071 fi
35072
35073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35074   done
35075 else
35076   echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35078
35079         ac_lo= ac_hi=
35080 fi
35081
35082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35083 fi
35084
35085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086 # Binary search between lo and hi bounds.
35087 while test "x$ac_lo" != "x$ac_hi"; do
35088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35089   cat >conftest.$ac_ext <<_ACEOF
35090 /* confdefs.h.  */
35091 _ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h.  */
35095 $ac_includes_default
35096    typedef wchar_t ac__type_sizeof_;
35097 int
35098 main ()
35099 {
35100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35101 test_array [0] = 0
35102
35103   ;
35104   return 0;
35105 }
35106 _ACEOF
35107 rm -f conftest.$ac_objext
35108 if { (ac_try="$ac_compile"
35109 case "(($ac_try" in
35110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35111   *) ac_try_echo=$ac_try;;
35112 esac
35113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35114   (eval "$ac_compile") 2>conftest.er1
35115   ac_status=$?
35116   grep -v '^ *+' conftest.er1 >conftest.err
35117   rm -f conftest.er1
35118   cat conftest.err >&5
35119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120   (exit $ac_status); } && {
35121          test -z "$ac_c_werror_flag" ||
35122          test ! -s conftest.err
35123        } && test -s conftest.$ac_objext; then
35124   ac_hi=$ac_mid
35125 else
35126   echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35128
35129         ac_lo=`expr '(' $ac_mid ')' + 1`
35130 fi
35131
35132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35133 done
35134 case $ac_lo in
35135 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35136 '') if test "$ac_cv_type_wchar_t" = yes; then
35137      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35138 See \`config.log' for more details." >&5
35139 echo "$as_me: error: cannot compute sizeof (wchar_t)
35140 See \`config.log' for more details." >&2;}
35141    { (exit 77); exit 77; }; }
35142    else
35143      ac_cv_sizeof_wchar_t=0
35144    fi ;;
35145 esac
35146 else
35147   cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h.  */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h.  */
35153 $ac_includes_default
35154    typedef wchar_t ac__type_sizeof_;
35155 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35156 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35157 #include <stdio.h>
35158 #include <stdlib.h>
35159 int
35160 main ()
35161 {
35162
35163   FILE *f = fopen ("conftest.val", "w");
35164   if (! f)
35165     return 1;
35166   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35167     {
35168       long int i = longval ();
35169       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35170         return 1;
35171       fprintf (f, "%ld\n", i);
35172     }
35173   else
35174     {
35175       unsigned long int i = ulongval ();
35176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35177         return 1;
35178       fprintf (f, "%lu\n", i);
35179     }
35180   return ferror (f) || fclose (f) != 0;
35181
35182   ;
35183   return 0;
35184 }
35185 _ACEOF
35186 rm -f conftest$ac_exeext
35187 if { (ac_try="$ac_link"
35188 case "(($ac_try" in
35189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190   *) ac_try_echo=$ac_try;;
35191 esac
35192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193   (eval "$ac_link") 2>&5
35194   ac_status=$?
35195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35197   { (case "(($ac_try" in
35198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199   *) ac_try_echo=$ac_try;;
35200 esac
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202   (eval "$ac_try") 2>&5
35203   ac_status=$?
35204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205   (exit $ac_status); }; }; then
35206   ac_cv_sizeof_wchar_t=`cat conftest.val`
35207 else
35208   echo "$as_me: program exited with status $ac_status" >&5
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35211
35212 ( exit $ac_status )
35213 if test "$ac_cv_type_wchar_t" = yes; then
35214      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35215 See \`config.log' for more details." >&5
35216 echo "$as_me: error: cannot compute sizeof (wchar_t)
35217 See \`config.log' for more details." >&2;}
35218    { (exit 77); exit 77; }; }
35219    else
35220      ac_cv_sizeof_wchar_t=0
35221    fi
35222 fi
35223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35224 fi
35225 rm -f conftest.val
35226 fi
35227 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35228 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35229
35230
35231
35232 cat >>confdefs.h <<_ACEOF
35233 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35234 _ACEOF
35235
35236
35237
35238 if test "$ac_cv_sizeof_int" -lt 4 ; then
35239         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35240 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35241
35242
35243 cat >>confdefs.h <<\_ACEOF
35244 #define LBER_INT_T long
35245 _ACEOF
35246
35247 else
35248
35249 cat >>confdefs.h <<\_ACEOF
35250 #define LBER_INT_T int
35251 _ACEOF
35252
35253 fi
35254
35255
35256 cat >>confdefs.h <<\_ACEOF
35257 #define LBER_LEN_T long
35258 _ACEOF
35259
35260
35261 cat >>confdefs.h <<\_ACEOF
35262 #define LBER_SOCKET_T int
35263 _ACEOF
35264
35265
35266 cat >>confdefs.h <<\_ACEOF
35267 #define LBER_TAG_T long
35268 _ACEOF
35269
35270
35271 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35272         if test $ac_cv_sizeof_long_long -gt 4 ; then
35273                 ol_with_mp=longlong
35274
35275 cat >>confdefs.h <<\_ACEOF
35276 #define USE_MP_LONG_LONG 1
35277 _ACEOF
35278
35279         elif test $ol_with_mp = longlong ; then
35280                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35281 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35282    { (exit 1); exit 1; }; }
35283         fi
35284 fi
35285 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35286         if test $ac_cv_sizeof_long -gt 4 ; then
35287                 ol_with_mp=long
35288
35289 cat >>confdefs.h <<\_ACEOF
35290 #define USE_MP_LONG 1
35291 _ACEOF
35292
35293         elif test $ol_with_mp = long ; then
35294                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35295 echo "$as_me: error: long unusable for multiple precision" >&2;}
35296    { (exit 1); exit 1; }; }
35297         fi
35298 fi
35299 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35300
35301 for ac_header in openssl/bn.h
35302 do
35303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35308   echo $ECHO_N "(cached) $ECHO_C" >&6
35309 fi
35310 ac_res=`eval echo '${'$as_ac_Header'}'`
35311                { echo "$as_me:$LINENO: result: $ac_res" >&5
35312 echo "${ECHO_T}$ac_res" >&6; }
35313 else
35314   # Is the header compilable?
35315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35317 cat >conftest.$ac_ext <<_ACEOF
35318 /* confdefs.h.  */
35319 _ACEOF
35320 cat confdefs.h >>conftest.$ac_ext
35321 cat >>conftest.$ac_ext <<_ACEOF
35322 /* end confdefs.h.  */
35323 $ac_includes_default
35324 #include <$ac_header>
35325 _ACEOF
35326 rm -f conftest.$ac_objext
35327 if { (ac_try="$ac_compile"
35328 case "(($ac_try" in
35329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35330   *) ac_try_echo=$ac_try;;
35331 esac
35332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35333   (eval "$ac_compile") 2>conftest.er1
35334   ac_status=$?
35335   grep -v '^ *+' conftest.er1 >conftest.err
35336   rm -f conftest.er1
35337   cat conftest.err >&5
35338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339   (exit $ac_status); } && {
35340          test -z "$ac_c_werror_flag" ||
35341          test ! -s conftest.err
35342        } && test -s conftest.$ac_objext; then
35343   ac_header_compiler=yes
35344 else
35345   echo "$as_me: failed program was:" >&5
35346 sed 's/^/| /' conftest.$ac_ext >&5
35347
35348         ac_header_compiler=no
35349 fi
35350
35351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35353 echo "${ECHO_T}$ac_header_compiler" >&6; }
35354
35355 # Is the header present?
35356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35358 cat >conftest.$ac_ext <<_ACEOF
35359 /* confdefs.h.  */
35360 _ACEOF
35361 cat confdefs.h >>conftest.$ac_ext
35362 cat >>conftest.$ac_ext <<_ACEOF
35363 /* end confdefs.h.  */
35364 #include <$ac_header>
35365 _ACEOF
35366 if { (ac_try="$ac_cpp conftest.$ac_ext"
35367 case "(($ac_try" in
35368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35369   *) ac_try_echo=$ac_try;;
35370 esac
35371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35373   ac_status=$?
35374   grep -v '^ *+' conftest.er1 >conftest.err
35375   rm -f conftest.er1
35376   cat conftest.err >&5
35377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378   (exit $ac_status); } >/dev/null && {
35379          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35380          test ! -s conftest.err
35381        }; then
35382   ac_header_preproc=yes
35383 else
35384   echo "$as_me: failed program was:" >&5
35385 sed 's/^/| /' conftest.$ac_ext >&5
35386
35387   ac_header_preproc=no
35388 fi
35389
35390 rm -f conftest.err conftest.$ac_ext
35391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35392 echo "${ECHO_T}$ac_header_preproc" >&6; }
35393
35394 # So?  What about this header?
35395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35396   yes:no: )
35397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35401     ac_header_preproc=yes
35402     ;;
35403   no:yes:* )
35404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35416     ( cat <<\_ASBOX
35417 ## --------------------------------------------- ##
35418 ## Report this to <http://www.openldap.org/its/> ##
35419 ## --------------------------------------------- ##
35420 _ASBOX
35421      ) | sed "s/^/$as_me: WARNING:     /" >&2
35422     ;;
35423 esac
35424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35427   echo $ECHO_N "(cached) $ECHO_C" >&6
35428 else
35429   eval "$as_ac_Header=\$ac_header_preproc"
35430 fi
35431 ac_res=`eval echo '${'$as_ac_Header'}'`
35432                { echo "$as_me:$LINENO: result: $ac_res" >&5
35433 echo "${ECHO_T}$ac_res" >&6; }
35434
35435 fi
35436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35437   cat >>confdefs.h <<_ACEOF
35438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35439 _ACEOF
35440
35441 fi
35442
35443 done
35444
35445
35446 for ac_header in openssl/crypto.h
35447 do
35448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35450   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35453   echo $ECHO_N "(cached) $ECHO_C" >&6
35454 fi
35455 ac_res=`eval echo '${'$as_ac_Header'}'`
35456                { echo "$as_me:$LINENO: result: $ac_res" >&5
35457 echo "${ECHO_T}$ac_res" >&6; }
35458 else
35459   # Is the header compilable?
35460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35462 cat >conftest.$ac_ext <<_ACEOF
35463 /* confdefs.h.  */
35464 _ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h.  */
35468 $ac_includes_default
35469 #include <$ac_header>
35470 _ACEOF
35471 rm -f conftest.$ac_objext
35472 if { (ac_try="$ac_compile"
35473 case "(($ac_try" in
35474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35475   *) ac_try_echo=$ac_try;;
35476 esac
35477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35478   (eval "$ac_compile") 2>conftest.er1
35479   ac_status=$?
35480   grep -v '^ *+' conftest.er1 >conftest.err
35481   rm -f conftest.er1
35482   cat conftest.err >&5
35483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484   (exit $ac_status); } && {
35485          test -z "$ac_c_werror_flag" ||
35486          test ! -s conftest.err
35487        } && test -s conftest.$ac_objext; then
35488   ac_header_compiler=yes
35489 else
35490   echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35492
35493         ac_header_compiler=no
35494 fi
35495
35496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35498 echo "${ECHO_T}$ac_header_compiler" >&6; }
35499
35500 # Is the header present?
35501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35503 cat >conftest.$ac_ext <<_ACEOF
35504 /* confdefs.h.  */
35505 _ACEOF
35506 cat confdefs.h >>conftest.$ac_ext
35507 cat >>conftest.$ac_ext <<_ACEOF
35508 /* end confdefs.h.  */
35509 #include <$ac_header>
35510 _ACEOF
35511 if { (ac_try="$ac_cpp conftest.$ac_ext"
35512 case "(($ac_try" in
35513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35514   *) ac_try_echo=$ac_try;;
35515 esac
35516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35518   ac_status=$?
35519   grep -v '^ *+' conftest.er1 >conftest.err
35520   rm -f conftest.er1
35521   cat conftest.err >&5
35522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523   (exit $ac_status); } >/dev/null && {
35524          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35525          test ! -s conftest.err
35526        }; then
35527   ac_header_preproc=yes
35528 else
35529   echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35531
35532   ac_header_preproc=no
35533 fi
35534
35535 rm -f conftest.err conftest.$ac_ext
35536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35537 echo "${ECHO_T}$ac_header_preproc" >&6; }
35538
35539 # So?  What about this header?
35540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35541   yes:no: )
35542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35546     ac_header_preproc=yes
35547     ;;
35548   no:yes:* )
35549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35551     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35552 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35553     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35555     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35556 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35559     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35561     ( cat <<\_ASBOX
35562 ## --------------------------------------------- ##
35563 ## Report this to <http://www.openldap.org/its/> ##
35564 ## --------------------------------------------- ##
35565 _ASBOX
35566      ) | sed "s/^/$as_me: WARNING:     /" >&2
35567     ;;
35568 esac
35569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35572   echo $ECHO_N "(cached) $ECHO_C" >&6
35573 else
35574   eval "$as_ac_Header=\$ac_header_preproc"
35575 fi
35576 ac_res=`eval echo '${'$as_ac_Header'}'`
35577                { echo "$as_me:$LINENO: result: $ac_res" >&5
35578 echo "${ECHO_T}$ac_res" >&6; }
35579
35580 fi
35581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35582   cat >>confdefs.h <<_ACEOF
35583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35584 _ACEOF
35585
35586 fi
35587
35588 done
35589
35590         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35591                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35592                 test "$ol_with_tls" = "found" ; then
35593                 ol_with_mp=bignum
35594
35595 cat >>confdefs.h <<\_ACEOF
35596 #define USE_MP_BIGNUM 1
35597 _ACEOF
35598
35599         elif test $ol_with_mp = bignum ; then
35600                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35601 echo "$as_me: error: bignum not available" >&2;}
35602    { (exit 1); exit 1; }; }
35603         fi
35604 fi
35605 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35606
35607 for ac_header in gmp.h
35608 do
35609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35611   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35614   echo $ECHO_N "(cached) $ECHO_C" >&6
35615 fi
35616 ac_res=`eval echo '${'$as_ac_Header'}'`
35617                { echo "$as_me:$LINENO: result: $ac_res" >&5
35618 echo "${ECHO_T}$ac_res" >&6; }
35619 else
35620   # Is the header compilable?
35621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35623 cat >conftest.$ac_ext <<_ACEOF
35624 /* confdefs.h.  */
35625 _ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h.  */
35629 $ac_includes_default
35630 #include <$ac_header>
35631 _ACEOF
35632 rm -f conftest.$ac_objext
35633 if { (ac_try="$ac_compile"
35634 case "(($ac_try" in
35635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636   *) ac_try_echo=$ac_try;;
35637 esac
35638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35639   (eval "$ac_compile") 2>conftest.er1
35640   ac_status=$?
35641   grep -v '^ *+' conftest.er1 >conftest.err
35642   rm -f conftest.er1
35643   cat conftest.err >&5
35644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645   (exit $ac_status); } && {
35646          test -z "$ac_c_werror_flag" ||
35647          test ! -s conftest.err
35648        } && test -s conftest.$ac_objext; then
35649   ac_header_compiler=yes
35650 else
35651   echo "$as_me: failed program was:" >&5
35652 sed 's/^/| /' conftest.$ac_ext >&5
35653
35654         ac_header_compiler=no
35655 fi
35656
35657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35659 echo "${ECHO_T}$ac_header_compiler" >&6; }
35660
35661 # Is the header present?
35662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35664 cat >conftest.$ac_ext <<_ACEOF
35665 /* confdefs.h.  */
35666 _ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h.  */
35670 #include <$ac_header>
35671 _ACEOF
35672 if { (ac_try="$ac_cpp conftest.$ac_ext"
35673 case "(($ac_try" in
35674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35675   *) ac_try_echo=$ac_try;;
35676 esac
35677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35679   ac_status=$?
35680   grep -v '^ *+' conftest.er1 >conftest.err
35681   rm -f conftest.er1
35682   cat conftest.err >&5
35683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684   (exit $ac_status); } >/dev/null && {
35685          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35686          test ! -s conftest.err
35687        }; then
35688   ac_header_preproc=yes
35689 else
35690   echo "$as_me: failed program was:" >&5
35691 sed 's/^/| /' conftest.$ac_ext >&5
35692
35693   ac_header_preproc=no
35694 fi
35695
35696 rm -f conftest.err conftest.$ac_ext
35697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35698 echo "${ECHO_T}$ac_header_preproc" >&6; }
35699
35700 # So?  What about this header?
35701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35702   yes:no: )
35703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35707     ac_header_preproc=yes
35708     ;;
35709   no:yes:* )
35710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35722     ( cat <<\_ASBOX
35723 ## --------------------------------------------- ##
35724 ## Report this to <http://www.openldap.org/its/> ##
35725 ## --------------------------------------------- ##
35726 _ASBOX
35727      ) | sed "s/^/$as_me: WARNING:     /" >&2
35728     ;;
35729 esac
35730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35733   echo $ECHO_N "(cached) $ECHO_C" >&6
35734 else
35735   eval "$as_ac_Header=\$ac_header_preproc"
35736 fi
35737 ac_res=`eval echo '${'$as_ac_Header'}'`
35738                { echo "$as_me:$LINENO: result: $ac_res" >&5
35739 echo "${ECHO_T}$ac_res" >&6; }
35740
35741 fi
35742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35743   cat >>confdefs.h <<_ACEOF
35744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35745 _ACEOF
35746
35747 fi
35748
35749 done
35750
35751
35752 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35753 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35754 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35755   echo $ECHO_N "(cached) $ECHO_C" >&6
35756 else
35757   ac_check_lib_save_LIBS=$LIBS
35758 LIBS="-lgmp  $LIBS"
35759 cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h.  */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h.  */
35765
35766 /* Override any GCC internal prototype to avoid an error.
35767    Use char because int might match the return type of a GCC
35768    builtin and then its argument prototype would still apply.  */
35769 #ifdef __cplusplus
35770 extern "C"
35771 #endif
35772 char __gmpz_add_ui ();
35773 int
35774 main ()
35775 {
35776 return __gmpz_add_ui ();
35777   ;
35778   return 0;
35779 }
35780 _ACEOF
35781 rm -f conftest.$ac_objext conftest$ac_exeext
35782 if { (ac_try="$ac_link"
35783 case "(($ac_try" in
35784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35785   *) ac_try_echo=$ac_try;;
35786 esac
35787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35788   (eval "$ac_link") 2>conftest.er1
35789   ac_status=$?
35790   grep -v '^ *+' conftest.er1 >conftest.err
35791   rm -f conftest.er1
35792   cat conftest.err >&5
35793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794   (exit $ac_status); } && {
35795          test -z "$ac_c_werror_flag" ||
35796          test ! -s conftest.err
35797        } && test -s conftest$ac_exeext &&
35798        $as_test_x conftest$ac_exeext; then
35799   ac_cv_lib_gmp___gmpz_add_ui=yes
35800 else
35801   echo "$as_me: failed program was:" >&5
35802 sed 's/^/| /' conftest.$ac_ext >&5
35803
35804         ac_cv_lib_gmp___gmpz_add_ui=no
35805 fi
35806
35807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35808       conftest$ac_exeext conftest.$ac_ext
35809 LIBS=$ac_check_lib_save_LIBS
35810 fi
35811 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35812 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35813 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35814   cat >>confdefs.h <<_ACEOF
35815 #define HAVE_LIBGMP 1
35816 _ACEOF
35817
35818   LIBS="-lgmp $LIBS"
35819
35820 fi
35821
35822         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35823
35824 cat >>confdefs.h <<\_ACEOF
35825 #define USE_MP_GMP 1
35826 _ACEOF
35827
35828                 ol_with_mp=gmp
35829         elif test $ol_with_mp = gmp ; then
35830                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35831 echo "$as_me: error: gmp not available" >&2;}
35832    { (exit 1); exit 1; }; }
35833         fi
35834 fi
35835 if test $ol_with_mp = auto ; then
35836         ol_with_mp=no
35837 fi
35838
35839 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35840 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35841 if test "${ac_cv_func_memcmp_working+set}" = set; then
35842   echo $ECHO_N "(cached) $ECHO_C" >&6
35843 else
35844   if test "$cross_compiling" = yes; then
35845   ac_cv_func_memcmp_working=no
35846 else
35847   cat >conftest.$ac_ext <<_ACEOF
35848 /* confdefs.h.  */
35849 _ACEOF
35850 cat confdefs.h >>conftest.$ac_ext
35851 cat >>conftest.$ac_ext <<_ACEOF
35852 /* end confdefs.h.  */
35853 $ac_includes_default
35854 int
35855 main ()
35856 {
35857
35858   /* Some versions of memcmp are not 8-bit clean.  */
35859   char c0 = '\100', c1 = '\200', c2 = '\201';
35860   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35861     return 1;
35862
35863   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35864      or more and with at least one buffer not starting on a 4-byte boundary.
35865      William Lewis provided this test program.   */
35866   {
35867     char foo[21];
35868     char bar[21];
35869     int i;
35870     for (i = 0; i < 4; i++)
35871       {
35872         char *a = foo + i;
35873         char *b = bar + i;
35874         strcpy (a, "--------01111111");
35875         strcpy (b, "--------10000000");
35876         if (memcmp (a, b, 16) >= 0)
35877           return 1;
35878       }
35879     return 0;
35880   }
35881
35882   ;
35883   return 0;
35884 }
35885 _ACEOF
35886 rm -f conftest$ac_exeext
35887 if { (ac_try="$ac_link"
35888 case "(($ac_try" in
35889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35890   *) ac_try_echo=$ac_try;;
35891 esac
35892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35893   (eval "$ac_link") 2>&5
35894   ac_status=$?
35895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35897   { (case "(($ac_try" in
35898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35899   *) ac_try_echo=$ac_try;;
35900 esac
35901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35902   (eval "$ac_try") 2>&5
35903   ac_status=$?
35904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905   (exit $ac_status); }; }; then
35906   ac_cv_func_memcmp_working=yes
35907 else
35908   echo "$as_me: program exited with status $ac_status" >&5
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35911
35912 ( exit $ac_status )
35913 ac_cv_func_memcmp_working=no
35914 fi
35915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35916 fi
35917
35918
35919 fi
35920 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35921 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35922 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35923   *" memcmp.$ac_objext "* ) ;;
35924   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35925  ;;
35926 esac
35927
35928
35929
35930 if test $ac_cv_func_memcmp_working = no ; then
35931
35932 cat >>confdefs.h <<\_ACEOF
35933 #define NEED_MEMCMP_REPLACEMENT 1
35934 _ACEOF
35935
35936 fi
35937
35938
35939 for ac_func in strftime
35940 do
35941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35945   echo $ECHO_N "(cached) $ECHO_C" >&6
35946 else
35947   cat >conftest.$ac_ext <<_ACEOF
35948 /* confdefs.h.  */
35949 _ACEOF
35950 cat confdefs.h >>conftest.$ac_ext
35951 cat >>conftest.$ac_ext <<_ACEOF
35952 /* end confdefs.h.  */
35953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35955 #define $ac_func innocuous_$ac_func
35956
35957 /* System header to define __stub macros and hopefully few prototypes,
35958     which can conflict with char $ac_func (); below.
35959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35960     <limits.h> exists even on freestanding compilers.  */
35961
35962 #ifdef __STDC__
35963 # include <limits.h>
35964 #else
35965 # include <assert.h>
35966 #endif
35967
35968 #undef $ac_func
35969
35970 /* Override any GCC internal prototype to avoid an error.
35971    Use char because int might match the return type of a GCC
35972    builtin and then its argument prototype would still apply.  */
35973 #ifdef __cplusplus
35974 extern "C"
35975 #endif
35976 char $ac_func ();
35977 /* The GNU C library defines this for functions which it implements
35978     to always fail with ENOSYS.  Some functions are actually named
35979     something starting with __ and the normal name is an alias.  */
35980 #if defined __stub_$ac_func || defined __stub___$ac_func
35981 choke me
35982 #endif
35983
35984 int
35985 main ()
35986 {
35987 return $ac_func ();
35988   ;
35989   return 0;
35990 }
35991 _ACEOF
35992 rm -f conftest.$ac_objext conftest$ac_exeext
35993 if { (ac_try="$ac_link"
35994 case "(($ac_try" in
35995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35996   *) ac_try_echo=$ac_try;;
35997 esac
35998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35999   (eval "$ac_link") 2>conftest.er1
36000   ac_status=$?
36001   grep -v '^ *+' conftest.er1 >conftest.err
36002   rm -f conftest.er1
36003   cat conftest.err >&5
36004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005   (exit $ac_status); } && {
36006          test -z "$ac_c_werror_flag" ||
36007          test ! -s conftest.err
36008        } && test -s conftest$ac_exeext &&
36009        $as_test_x conftest$ac_exeext; then
36010   eval "$as_ac_var=yes"
36011 else
36012   echo "$as_me: failed program was:" >&5
36013 sed 's/^/| /' conftest.$ac_ext >&5
36014
36015         eval "$as_ac_var=no"
36016 fi
36017
36018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36019       conftest$ac_exeext conftest.$ac_ext
36020 fi
36021 ac_res=`eval echo '${'$as_ac_var'}'`
36022                { echo "$as_me:$LINENO: result: $ac_res" >&5
36023 echo "${ECHO_T}$ac_res" >&6; }
36024 if test `eval echo '${'$as_ac_var'}'` = yes; then
36025   cat >>confdefs.h <<_ACEOF
36026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36027 _ACEOF
36028
36029 else
36030   # strftime is in -lintl on SCO UNIX.
36031 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36032 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36033 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36034   echo $ECHO_N "(cached) $ECHO_C" >&6
36035 else
36036   ac_check_lib_save_LIBS=$LIBS
36037 LIBS="-lintl  $LIBS"
36038 cat >conftest.$ac_ext <<_ACEOF
36039 /* confdefs.h.  */
36040 _ACEOF
36041 cat confdefs.h >>conftest.$ac_ext
36042 cat >>conftest.$ac_ext <<_ACEOF
36043 /* end confdefs.h.  */
36044
36045 /* Override any GCC internal prototype to avoid an error.
36046    Use char because int might match the return type of a GCC
36047    builtin and then its argument prototype would still apply.  */
36048 #ifdef __cplusplus
36049 extern "C"
36050 #endif
36051 char strftime ();
36052 int
36053 main ()
36054 {
36055 return strftime ();
36056   ;
36057   return 0;
36058 }
36059 _ACEOF
36060 rm -f conftest.$ac_objext conftest$ac_exeext
36061 if { (ac_try="$ac_link"
36062 case "(($ac_try" in
36063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36064   *) ac_try_echo=$ac_try;;
36065 esac
36066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36067   (eval "$ac_link") 2>conftest.er1
36068   ac_status=$?
36069   grep -v '^ *+' conftest.er1 >conftest.err
36070   rm -f conftest.er1
36071   cat conftest.err >&5
36072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073   (exit $ac_status); } && {
36074          test -z "$ac_c_werror_flag" ||
36075          test ! -s conftest.err
36076        } && test -s conftest$ac_exeext &&
36077        $as_test_x conftest$ac_exeext; then
36078   ac_cv_lib_intl_strftime=yes
36079 else
36080   echo "$as_me: failed program was:" >&5
36081 sed 's/^/| /' conftest.$ac_ext >&5
36082
36083         ac_cv_lib_intl_strftime=no
36084 fi
36085
36086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36087       conftest$ac_exeext conftest.$ac_ext
36088 LIBS=$ac_check_lib_save_LIBS
36089 fi
36090 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36091 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36092 if test $ac_cv_lib_intl_strftime = yes; then
36093   cat >>confdefs.h <<\_ACEOF
36094 #define HAVE_STRFTIME 1
36095 _ACEOF
36096
36097 LIBS="-lintl $LIBS"
36098 fi
36099
36100 fi
36101 done
36102
36103
36104 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36105 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36106 if test "${ol_cv_func_inet_aton+set}" = set; then
36107   echo $ECHO_N "(cached) $ECHO_C" >&6
36108 else
36109   cat >conftest.$ac_ext <<_ACEOF
36110 /* confdefs.h.  */
36111 _ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h.  */
36115
36116 #ifdef HAVE_SYS_TYPES_H
36117 #       include <sys/types.h>
36118 #endif
36119 #ifdef HAVE_SYS_SOCKET_H
36120 #       include <sys/socket.h>
36121 #       ifdef HAVE_SYS_SELECT_H
36122 #               include <sys/select.h>
36123 #       endif
36124 #       include <netinet/in.h>
36125 #       ifdef HAVE_ARPA_INET_H
36126 #               include <arpa/inet.h>
36127 #       endif
36128 #endif
36129
36130 int
36131 main ()
36132 {
36133 struct in_addr in;
36134 int rc = inet_aton( "255.255.255.255", &in );
36135   ;
36136   return 0;
36137 }
36138 _ACEOF
36139 rm -f conftest.$ac_objext conftest$ac_exeext
36140 if { (ac_try="$ac_link"
36141 case "(($ac_try" in
36142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36143   *) ac_try_echo=$ac_try;;
36144 esac
36145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36146   (eval "$ac_link") 2>conftest.er1
36147   ac_status=$?
36148   grep -v '^ *+' conftest.er1 >conftest.err
36149   rm -f conftest.er1
36150   cat conftest.err >&5
36151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152   (exit $ac_status); } && {
36153          test -z "$ac_c_werror_flag" ||
36154          test ! -s conftest.err
36155        } && test -s conftest$ac_exeext &&
36156        $as_test_x conftest$ac_exeext; then
36157   ol_cv_func_inet_aton=yes
36158 else
36159   echo "$as_me: failed program was:" >&5
36160 sed 's/^/| /' conftest.$ac_ext >&5
36161
36162         ol_cv_func_inet_aton=no
36163 fi
36164
36165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36166       conftest$ac_exeext conftest.$ac_ext
36167 fi
36168 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36169 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36170   if test $ol_cv_func_inet_aton != no; then
36171
36172 cat >>confdefs.h <<\_ACEOF
36173 #define HAVE_INET_ATON 1
36174 _ACEOF
36175
36176   fi
36177
36178
36179 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36180 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36181 if test "${ac_cv_func__spawnlp+set}" = set; then
36182   echo $ECHO_N "(cached) $ECHO_C" >&6
36183 else
36184   cat >conftest.$ac_ext <<_ACEOF
36185 /* confdefs.h.  */
36186 _ACEOF
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h.  */
36190 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36192 #define _spawnlp innocuous__spawnlp
36193
36194 /* System header to define __stub macros and hopefully few prototypes,
36195     which can conflict with char _spawnlp (); below.
36196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36197     <limits.h> exists even on freestanding compilers.  */
36198
36199 #ifdef __STDC__
36200 # include <limits.h>
36201 #else
36202 # include <assert.h>
36203 #endif
36204
36205 #undef _spawnlp
36206
36207 /* Override any GCC internal prototype to avoid an error.
36208    Use char because int might match the return type of a GCC
36209    builtin and then its argument prototype would still apply.  */
36210 #ifdef __cplusplus
36211 extern "C"
36212 #endif
36213 char _spawnlp ();
36214 /* The GNU C library defines this for functions which it implements
36215     to always fail with ENOSYS.  Some functions are actually named
36216     something starting with __ and the normal name is an alias.  */
36217 #if defined __stub__spawnlp || defined __stub____spawnlp
36218 choke me
36219 #endif
36220
36221 int
36222 main ()
36223 {
36224 return _spawnlp ();
36225   ;
36226   return 0;
36227 }
36228 _ACEOF
36229 rm -f conftest.$ac_objext conftest$ac_exeext
36230 if { (ac_try="$ac_link"
36231 case "(($ac_try" in
36232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36233   *) ac_try_echo=$ac_try;;
36234 esac
36235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36236   (eval "$ac_link") 2>conftest.er1
36237   ac_status=$?
36238   grep -v '^ *+' conftest.er1 >conftest.err
36239   rm -f conftest.er1
36240   cat conftest.err >&5
36241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242   (exit $ac_status); } && {
36243          test -z "$ac_c_werror_flag" ||
36244          test ! -s conftest.err
36245        } && test -s conftest$ac_exeext &&
36246        $as_test_x conftest$ac_exeext; then
36247   ac_cv_func__spawnlp=yes
36248 else
36249   echo "$as_me: failed program was:" >&5
36250 sed 's/^/| /' conftest.$ac_ext >&5
36251
36252         ac_cv_func__spawnlp=no
36253 fi
36254
36255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36256       conftest$ac_exeext conftest.$ac_ext
36257 fi
36258 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36259 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36260 if test $ac_cv_func__spawnlp = yes; then
36261
36262 cat >>confdefs.h <<\_ACEOF
36263 #define HAVE_SPAWNLP 1
36264 _ACEOF
36265
36266 fi
36267
36268
36269 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36270 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36271 if test "${ac_cv_func__snprintf+set}" = set; then
36272   echo $ECHO_N "(cached) $ECHO_C" >&6
36273 else
36274   cat >conftest.$ac_ext <<_ACEOF
36275 /* confdefs.h.  */
36276 _ACEOF
36277 cat confdefs.h >>conftest.$ac_ext
36278 cat >>conftest.$ac_ext <<_ACEOF
36279 /* end confdefs.h.  */
36280 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36282 #define _snprintf innocuous__snprintf
36283
36284 /* System header to define __stub macros and hopefully few prototypes,
36285     which can conflict with char _snprintf (); below.
36286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36287     <limits.h> exists even on freestanding compilers.  */
36288
36289 #ifdef __STDC__
36290 # include <limits.h>
36291 #else
36292 # include <assert.h>
36293 #endif
36294
36295 #undef _snprintf
36296
36297 /* Override any GCC internal prototype to avoid an error.
36298    Use char because int might match the return type of a GCC
36299    builtin and then its argument prototype would still apply.  */
36300 #ifdef __cplusplus
36301 extern "C"
36302 #endif
36303 char _snprintf ();
36304 /* The GNU C library defines this for functions which it implements
36305     to always fail with ENOSYS.  Some functions are actually named
36306     something starting with __ and the normal name is an alias.  */
36307 #if defined __stub__snprintf || defined __stub____snprintf
36308 choke me
36309 #endif
36310
36311 int
36312 main ()
36313 {
36314 return _snprintf ();
36315   ;
36316   return 0;
36317 }
36318 _ACEOF
36319 rm -f conftest.$ac_objext conftest$ac_exeext
36320 if { (ac_try="$ac_link"
36321 case "(($ac_try" in
36322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323   *) ac_try_echo=$ac_try;;
36324 esac
36325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36326   (eval "$ac_link") 2>conftest.er1
36327   ac_status=$?
36328   grep -v '^ *+' conftest.er1 >conftest.err
36329   rm -f conftest.er1
36330   cat conftest.err >&5
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); } && {
36333          test -z "$ac_c_werror_flag" ||
36334          test ! -s conftest.err
36335        } && test -s conftest$ac_exeext &&
36336        $as_test_x conftest$ac_exeext; then
36337   ac_cv_func__snprintf=yes
36338 else
36339   echo "$as_me: failed program was:" >&5
36340 sed 's/^/| /' conftest.$ac_ext >&5
36341
36342         ac_cv_func__snprintf=no
36343 fi
36344
36345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36346       conftest$ac_exeext conftest.$ac_ext
36347 fi
36348 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36349 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36350 if test $ac_cv_func__snprintf = yes; then
36351   ac_cv_func_snprintf=yes
36352
36353 cat >>confdefs.h <<\_ACEOF
36354 #define snprintf _snprintf
36355 _ACEOF
36356
36357
36358 fi
36359
36360
36361
36362
36363 for ac_func in vsnprintf _vsnprintf
36364 do
36365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36369   echo $ECHO_N "(cached) $ECHO_C" >&6
36370 else
36371   cat >conftest.$ac_ext <<_ACEOF
36372 /* confdefs.h.  */
36373 _ACEOF
36374 cat confdefs.h >>conftest.$ac_ext
36375 cat >>conftest.$ac_ext <<_ACEOF
36376 /* end confdefs.h.  */
36377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36379 #define $ac_func innocuous_$ac_func
36380
36381 /* System header to define __stub macros and hopefully few prototypes,
36382     which can conflict with char $ac_func (); below.
36383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36384     <limits.h> exists even on freestanding compilers.  */
36385
36386 #ifdef __STDC__
36387 # include <limits.h>
36388 #else
36389 # include <assert.h>
36390 #endif
36391
36392 #undef $ac_func
36393
36394 /* Override any GCC internal prototype to avoid an error.
36395    Use char because int might match the return type of a GCC
36396    builtin and then its argument prototype would still apply.  */
36397 #ifdef __cplusplus
36398 extern "C"
36399 #endif
36400 char $ac_func ();
36401 /* The GNU C library defines this for functions which it implements
36402     to always fail with ENOSYS.  Some functions are actually named
36403     something starting with __ and the normal name is an alias.  */
36404 #if defined __stub_$ac_func || defined __stub___$ac_func
36405 choke me
36406 #endif
36407
36408 int
36409 main ()
36410 {
36411 return $ac_func ();
36412   ;
36413   return 0;
36414 }
36415 _ACEOF
36416 rm -f conftest.$ac_objext conftest$ac_exeext
36417 if { (ac_try="$ac_link"
36418 case "(($ac_try" in
36419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36420   *) ac_try_echo=$ac_try;;
36421 esac
36422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36423   (eval "$ac_link") 2>conftest.er1
36424   ac_status=$?
36425   grep -v '^ *+' conftest.er1 >conftest.err
36426   rm -f conftest.er1
36427   cat conftest.err >&5
36428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429   (exit $ac_status); } && {
36430          test -z "$ac_c_werror_flag" ||
36431          test ! -s conftest.err
36432        } && test -s conftest$ac_exeext &&
36433        $as_test_x conftest$ac_exeext; then
36434   eval "$as_ac_var=yes"
36435 else
36436   echo "$as_me: failed program was:" >&5
36437 sed 's/^/| /' conftest.$ac_ext >&5
36438
36439         eval "$as_ac_var=no"
36440 fi
36441
36442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36443       conftest$ac_exeext conftest.$ac_ext
36444 fi
36445 ac_res=`eval echo '${'$as_ac_var'}'`
36446                { echo "$as_me:$LINENO: result: $ac_res" >&5
36447 echo "${ECHO_T}$ac_res" >&6; }
36448 if test `eval echo '${'$as_ac_var'}'` = yes; then
36449   cat >>confdefs.h <<_ACEOF
36450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36451 _ACEOF
36452
36453 fi
36454 done
36455
36456
36457 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36458         ac_cv_func_vsnprintf=yes
36459
36460 cat >>confdefs.h <<\_ACEOF
36461 #define vsnprintf _vsnprintf
36462 _ACEOF
36463
36464 fi
36465
36466
36467 for ac_func in vprintf
36468 do
36469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36473   echo $ECHO_N "(cached) $ECHO_C" >&6
36474 else
36475   cat >conftest.$ac_ext <<_ACEOF
36476 /* confdefs.h.  */
36477 _ACEOF
36478 cat confdefs.h >>conftest.$ac_ext
36479 cat >>conftest.$ac_ext <<_ACEOF
36480 /* end confdefs.h.  */
36481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36483 #define $ac_func innocuous_$ac_func
36484
36485 /* System header to define __stub macros and hopefully few prototypes,
36486     which can conflict with char $ac_func (); below.
36487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36488     <limits.h> exists even on freestanding compilers.  */
36489
36490 #ifdef __STDC__
36491 # include <limits.h>
36492 #else
36493 # include <assert.h>
36494 #endif
36495
36496 #undef $ac_func
36497
36498 /* Override any GCC internal prototype to avoid an error.
36499    Use char because int might match the return type of a GCC
36500    builtin and then its argument prototype would still apply.  */
36501 #ifdef __cplusplus
36502 extern "C"
36503 #endif
36504 char $ac_func ();
36505 /* The GNU C library defines this for functions which it implements
36506     to always fail with ENOSYS.  Some functions are actually named
36507     something starting with __ and the normal name is an alias.  */
36508 #if defined __stub_$ac_func || defined __stub___$ac_func
36509 choke me
36510 #endif
36511
36512 int
36513 main ()
36514 {
36515 return $ac_func ();
36516   ;
36517   return 0;
36518 }
36519 _ACEOF
36520 rm -f conftest.$ac_objext conftest$ac_exeext
36521 if { (ac_try="$ac_link"
36522 case "(($ac_try" in
36523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36524   *) ac_try_echo=$ac_try;;
36525 esac
36526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36527   (eval "$ac_link") 2>conftest.er1
36528   ac_status=$?
36529   grep -v '^ *+' conftest.er1 >conftest.err
36530   rm -f conftest.er1
36531   cat conftest.err >&5
36532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533   (exit $ac_status); } && {
36534          test -z "$ac_c_werror_flag" ||
36535          test ! -s conftest.err
36536        } && test -s conftest$ac_exeext &&
36537        $as_test_x conftest$ac_exeext; then
36538   eval "$as_ac_var=yes"
36539 else
36540   echo "$as_me: failed program was:" >&5
36541 sed 's/^/| /' conftest.$ac_ext >&5
36542
36543         eval "$as_ac_var=no"
36544 fi
36545
36546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36547       conftest$ac_exeext conftest.$ac_ext
36548 fi
36549 ac_res=`eval echo '${'$as_ac_var'}'`
36550                { echo "$as_me:$LINENO: result: $ac_res" >&5
36551 echo "${ECHO_T}$ac_res" >&6; }
36552 if test `eval echo '${'$as_ac_var'}'` = yes; then
36553   cat >>confdefs.h <<_ACEOF
36554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36555 _ACEOF
36556
36557 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36558 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36559 if test "${ac_cv_func__doprnt+set}" = set; then
36560   echo $ECHO_N "(cached) $ECHO_C" >&6
36561 else
36562   cat >conftest.$ac_ext <<_ACEOF
36563 /* confdefs.h.  */
36564 _ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h.  */
36568 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36570 #define _doprnt innocuous__doprnt
36571
36572 /* System header to define __stub macros and hopefully few prototypes,
36573     which can conflict with char _doprnt (); below.
36574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36575     <limits.h> exists even on freestanding compilers.  */
36576
36577 #ifdef __STDC__
36578 # include <limits.h>
36579 #else
36580 # include <assert.h>
36581 #endif
36582
36583 #undef _doprnt
36584
36585 /* Override any GCC internal prototype to avoid an error.
36586    Use char because int might match the return type of a GCC
36587    builtin and then its argument prototype would still apply.  */
36588 #ifdef __cplusplus
36589 extern "C"
36590 #endif
36591 char _doprnt ();
36592 /* The GNU C library defines this for functions which it implements
36593     to always fail with ENOSYS.  Some functions are actually named
36594     something starting with __ and the normal name is an alias.  */
36595 #if defined __stub__doprnt || defined __stub____doprnt
36596 choke me
36597 #endif
36598
36599 int
36600 main ()
36601 {
36602 return _doprnt ();
36603   ;
36604   return 0;
36605 }
36606 _ACEOF
36607 rm -f conftest.$ac_objext conftest$ac_exeext
36608 if { (ac_try="$ac_link"
36609 case "(($ac_try" in
36610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36611   *) ac_try_echo=$ac_try;;
36612 esac
36613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36614   (eval "$ac_link") 2>conftest.er1
36615   ac_status=$?
36616   grep -v '^ *+' conftest.er1 >conftest.err
36617   rm -f conftest.er1
36618   cat conftest.err >&5
36619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620   (exit $ac_status); } && {
36621          test -z "$ac_c_werror_flag" ||
36622          test ! -s conftest.err
36623        } && test -s conftest$ac_exeext &&
36624        $as_test_x conftest$ac_exeext; then
36625   ac_cv_func__doprnt=yes
36626 else
36627   echo "$as_me: failed program was:" >&5
36628 sed 's/^/| /' conftest.$ac_ext >&5
36629
36630         ac_cv_func__doprnt=no
36631 fi
36632
36633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36634       conftest$ac_exeext conftest.$ac_ext
36635 fi
36636 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36637 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36638 if test $ac_cv_func__doprnt = yes; then
36639
36640 cat >>confdefs.h <<\_ACEOF
36641 #define HAVE_DOPRNT 1
36642 _ACEOF
36643
36644 fi
36645
36646 fi
36647 done
36648
36649
36650
36651 if test $ac_cv_func_vprintf = yes ; then
36652
36653
36654 for ac_func in snprintf vsnprintf
36655 do
36656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36660   echo $ECHO_N "(cached) $ECHO_C" >&6
36661 else
36662   cat >conftest.$ac_ext <<_ACEOF
36663 /* confdefs.h.  */
36664 _ACEOF
36665 cat confdefs.h >>conftest.$ac_ext
36666 cat >>conftest.$ac_ext <<_ACEOF
36667 /* end confdefs.h.  */
36668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36670 #define $ac_func innocuous_$ac_func
36671
36672 /* System header to define __stub macros and hopefully few prototypes,
36673     which can conflict with char $ac_func (); below.
36674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36675     <limits.h> exists even on freestanding compilers.  */
36676
36677 #ifdef __STDC__
36678 # include <limits.h>
36679 #else
36680 # include <assert.h>
36681 #endif
36682
36683 #undef $ac_func
36684
36685 /* Override any GCC internal prototype to avoid an error.
36686    Use char because int might match the return type of a GCC
36687    builtin and then its argument prototype would still apply.  */
36688 #ifdef __cplusplus
36689 extern "C"
36690 #endif
36691 char $ac_func ();
36692 /* The GNU C library defines this for functions which it implements
36693     to always fail with ENOSYS.  Some functions are actually named
36694     something starting with __ and the normal name is an alias.  */
36695 #if defined __stub_$ac_func || defined __stub___$ac_func
36696 choke me
36697 #endif
36698
36699 int
36700 main ()
36701 {
36702 return $ac_func ();
36703   ;
36704   return 0;
36705 }
36706 _ACEOF
36707 rm -f conftest.$ac_objext conftest$ac_exeext
36708 if { (ac_try="$ac_link"
36709 case "(($ac_try" in
36710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36711   *) ac_try_echo=$ac_try;;
36712 esac
36713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36714   (eval "$ac_link") 2>conftest.er1
36715   ac_status=$?
36716   grep -v '^ *+' conftest.er1 >conftest.err
36717   rm -f conftest.er1
36718   cat conftest.err >&5
36719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720   (exit $ac_status); } && {
36721          test -z "$ac_c_werror_flag" ||
36722          test ! -s conftest.err
36723        } && test -s conftest$ac_exeext &&
36724        $as_test_x conftest$ac_exeext; then
36725   eval "$as_ac_var=yes"
36726 else
36727   echo "$as_me: failed program was:" >&5
36728 sed 's/^/| /' conftest.$ac_ext >&5
36729
36730         eval "$as_ac_var=no"
36731 fi
36732
36733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36734       conftest$ac_exeext conftest.$ac_ext
36735 fi
36736 ac_res=`eval echo '${'$as_ac_var'}'`
36737                { echo "$as_me:$LINENO: result: $ac_res" >&5
36738 echo "${ECHO_T}$ac_res" >&6; }
36739 if test `eval echo '${'$as_ac_var'}'` = yes; then
36740   cat >>confdefs.h <<_ACEOF
36741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36742 _ACEOF
36743
36744 fi
36745 done
36746
36747 fi
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804 for ac_func in \
36805         bcopy                   \
36806         closesocket             \
36807         chroot                  \
36808         endgrent                \
36809         endpwent                \
36810         fcntl                   \
36811         flock                   \
36812         fstat                   \
36813         getdtablesize           \
36814         geteuid                 \
36815         getgrgid                \
36816         gethostname             \
36817         getpassphrase           \
36818         getpwuid                \
36819         getpwnam                \
36820         getspnam                \
36821         gettimeofday            \
36822         initgroups              \
36823         inet_ntoa_b             \
36824         ioctl                   \
36825         lockf                   \
36826         memcpy                  \
36827         memmove                 \
36828         memrchr                 \
36829         mkstemp                 \
36830         mktemp                  \
36831         pipe                    \
36832         read                    \
36833         recv                    \
36834         recvfrom                \
36835         setpwfile               \
36836         setgid                  \
36837         setegid                 \
36838         setsid                  \
36839         setuid                  \
36840         seteuid                 \
36841         signal                  \
36842         strdup                  \
36843         strpbrk                 \
36844         strrchr                 \
36845         strsep                  \
36846         strstr                  \
36847         strtol                  \
36848         strtoul                 \
36849         strtoq                  \
36850         strtouq                 \
36851         strtoll                 \
36852         strspn                  \
36853         sysconf                 \
36854         waitpid                 \
36855         wait4                   \
36856         write                   \
36857         send                    \
36858         sendmsg                 \
36859         sendto                  \
36860
36861 do
36862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36866   echo $ECHO_N "(cached) $ECHO_C" >&6
36867 else
36868   cat >conftest.$ac_ext <<_ACEOF
36869 /* confdefs.h.  */
36870 _ACEOF
36871 cat confdefs.h >>conftest.$ac_ext
36872 cat >>conftest.$ac_ext <<_ACEOF
36873 /* end confdefs.h.  */
36874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36876 #define $ac_func innocuous_$ac_func
36877
36878 /* System header to define __stub macros and hopefully few prototypes,
36879     which can conflict with char $ac_func (); below.
36880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36881     <limits.h> exists even on freestanding compilers.  */
36882
36883 #ifdef __STDC__
36884 # include <limits.h>
36885 #else
36886 # include <assert.h>
36887 #endif
36888
36889 #undef $ac_func
36890
36891 /* Override any GCC internal prototype to avoid an error.
36892    Use char because int might match the return type of a GCC
36893    builtin and then its argument prototype would still apply.  */
36894 #ifdef __cplusplus
36895 extern "C"
36896 #endif
36897 char $ac_func ();
36898 /* The GNU C library defines this for functions which it implements
36899     to always fail with ENOSYS.  Some functions are actually named
36900     something starting with __ and the normal name is an alias.  */
36901 #if defined __stub_$ac_func || defined __stub___$ac_func
36902 choke me
36903 #endif
36904
36905 int
36906 main ()
36907 {
36908 return $ac_func ();
36909   ;
36910   return 0;
36911 }
36912 _ACEOF
36913 rm -f conftest.$ac_objext conftest$ac_exeext
36914 if { (ac_try="$ac_link"
36915 case "(($ac_try" in
36916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36917   *) ac_try_echo=$ac_try;;
36918 esac
36919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36920   (eval "$ac_link") 2>conftest.er1
36921   ac_status=$?
36922   grep -v '^ *+' conftest.er1 >conftest.err
36923   rm -f conftest.er1
36924   cat conftest.err >&5
36925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926   (exit $ac_status); } && {
36927          test -z "$ac_c_werror_flag" ||
36928          test ! -s conftest.err
36929        } && test -s conftest$ac_exeext &&
36930        $as_test_x conftest$ac_exeext; then
36931   eval "$as_ac_var=yes"
36932 else
36933   echo "$as_me: failed program was:" >&5
36934 sed 's/^/| /' conftest.$ac_ext >&5
36935
36936         eval "$as_ac_var=no"
36937 fi
36938
36939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36940       conftest$ac_exeext conftest.$ac_ext
36941 fi
36942 ac_res=`eval echo '${'$as_ac_var'}'`
36943                { echo "$as_me:$LINENO: result: $ac_res" >&5
36944 echo "${ECHO_T}$ac_res" >&6; }
36945 if test `eval echo '${'$as_ac_var'}'` = yes; then
36946   cat >>confdefs.h <<_ACEOF
36947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36948 _ACEOF
36949
36950 fi
36951 done
36952
36953
36954
36955
36956 for ac_func in getopt getpeereid
36957 do
36958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36962   echo $ECHO_N "(cached) $ECHO_C" >&6
36963 else
36964   cat >conftest.$ac_ext <<_ACEOF
36965 /* confdefs.h.  */
36966 _ACEOF
36967 cat confdefs.h >>conftest.$ac_ext
36968 cat >>conftest.$ac_ext <<_ACEOF
36969 /* end confdefs.h.  */
36970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36972 #define $ac_func innocuous_$ac_func
36973
36974 /* System header to define __stub macros and hopefully few prototypes,
36975     which can conflict with char $ac_func (); below.
36976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36977     <limits.h> exists even on freestanding compilers.  */
36978
36979 #ifdef __STDC__
36980 # include <limits.h>
36981 #else
36982 # include <assert.h>
36983 #endif
36984
36985 #undef $ac_func
36986
36987 /* Override any GCC internal prototype to avoid an error.
36988    Use char because int might match the return type of a GCC
36989    builtin and then its argument prototype would still apply.  */
36990 #ifdef __cplusplus
36991 extern "C"
36992 #endif
36993 char $ac_func ();
36994 /* The GNU C library defines this for functions which it implements
36995     to always fail with ENOSYS.  Some functions are actually named
36996     something starting with __ and the normal name is an alias.  */
36997 #if defined __stub_$ac_func || defined __stub___$ac_func
36998 choke me
36999 #endif
37000
37001 int
37002 main ()
37003 {
37004 return $ac_func ();
37005   ;
37006   return 0;
37007 }
37008 _ACEOF
37009 rm -f conftest.$ac_objext conftest$ac_exeext
37010 if { (ac_try="$ac_link"
37011 case "(($ac_try" in
37012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37013   *) ac_try_echo=$ac_try;;
37014 esac
37015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37016   (eval "$ac_link") 2>conftest.er1
37017   ac_status=$?
37018   grep -v '^ *+' conftest.er1 >conftest.err
37019   rm -f conftest.er1
37020   cat conftest.err >&5
37021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022   (exit $ac_status); } && {
37023          test -z "$ac_c_werror_flag" ||
37024          test ! -s conftest.err
37025        } && test -s conftest$ac_exeext &&
37026        $as_test_x conftest$ac_exeext; then
37027   eval "$as_ac_var=yes"
37028 else
37029   echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37031
37032         eval "$as_ac_var=no"
37033 fi
37034
37035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37036       conftest$ac_exeext conftest.$ac_ext
37037 fi
37038 ac_res=`eval echo '${'$as_ac_var'}'`
37039                { echo "$as_me:$LINENO: result: $ac_res" >&5
37040 echo "${ECHO_T}$ac_res" >&6; }
37041 if test `eval echo '${'$as_ac_var'}'` = yes; then
37042   cat >>confdefs.h <<_ACEOF
37043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37044 _ACEOF
37045
37046 else
37047   case " $LIBOBJS " in
37048   *" $ac_func.$ac_objext "* ) ;;
37049   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37050  ;;
37051 esac
37052
37053 fi
37054 done
37055
37056
37057
37058 if test "$ac_cv_func_getopt" != yes; then
37059         LIBSRCS="$LIBSRCS getopt.c"
37060 fi
37061
37062 if test "$ac_cv_func_getpeereid" != yes; then
37063
37064 for ac_func in getpeerucred
37065 do
37066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37070   echo $ECHO_N "(cached) $ECHO_C" >&6
37071 else
37072   cat >conftest.$ac_ext <<_ACEOF
37073 /* confdefs.h.  */
37074 _ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h.  */
37078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37080 #define $ac_func innocuous_$ac_func
37081
37082 /* System header to define __stub macros and hopefully few prototypes,
37083     which can conflict with char $ac_func (); below.
37084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37085     <limits.h> exists even on freestanding compilers.  */
37086
37087 #ifdef __STDC__
37088 # include <limits.h>
37089 #else
37090 # include <assert.h>
37091 #endif
37092
37093 #undef $ac_func
37094
37095 /* Override any GCC internal prototype to avoid an error.
37096    Use char because int might match the return type of a GCC
37097    builtin and then its argument prototype would still apply.  */
37098 #ifdef __cplusplus
37099 extern "C"
37100 #endif
37101 char $ac_func ();
37102 /* The GNU C library defines this for functions which it implements
37103     to always fail with ENOSYS.  Some functions are actually named
37104     something starting with __ and the normal name is an alias.  */
37105 #if defined __stub_$ac_func || defined __stub___$ac_func
37106 choke me
37107 #endif
37108
37109 int
37110 main ()
37111 {
37112 return $ac_func ();
37113   ;
37114   return 0;
37115 }
37116 _ACEOF
37117 rm -f conftest.$ac_objext conftest$ac_exeext
37118 if { (ac_try="$ac_link"
37119 case "(($ac_try" in
37120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121   *) ac_try_echo=$ac_try;;
37122 esac
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124   (eval "$ac_link") 2>conftest.er1
37125   ac_status=$?
37126   grep -v '^ *+' conftest.er1 >conftest.err
37127   rm -f conftest.er1
37128   cat conftest.err >&5
37129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130   (exit $ac_status); } && {
37131          test -z "$ac_c_werror_flag" ||
37132          test ! -s conftest.err
37133        } && test -s conftest$ac_exeext &&
37134        $as_test_x conftest$ac_exeext; then
37135   eval "$as_ac_var=yes"
37136 else
37137   echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37139
37140         eval "$as_ac_var=no"
37141 fi
37142
37143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37144       conftest$ac_exeext conftest.$ac_ext
37145 fi
37146 ac_res=`eval echo '${'$as_ac_var'}'`
37147                { echo "$as_me:$LINENO: result: $ac_res" >&5
37148 echo "${ECHO_T}$ac_res" >&6; }
37149 if test `eval echo '${'$as_ac_var'}'` = yes; then
37150   cat >>confdefs.h <<_ACEOF
37151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37152 _ACEOF
37153
37154 fi
37155 done
37156
37157         if test "$ac_cv_func_getpeerucred" != yes ; then
37158                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37159 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37160 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37161   echo $ECHO_N "(cached) $ECHO_C" >&6
37162 else
37163   cat >conftest.$ac_ext <<_ACEOF
37164 /* confdefs.h.  */
37165 _ACEOF
37166 cat confdefs.h >>conftest.$ac_ext
37167 cat >>conftest.$ac_ext <<_ACEOF
37168 /* end confdefs.h.  */
37169 $ac_includes_default
37170 #ifdef HAVE_SYS_SOCKET_H
37171 #include <sys/socket.h>
37172 #endif
37173
37174 int
37175 main ()
37176 {
37177 static struct msghdr ac_aggr;
37178 if (ac_aggr.msg_accrightslen)
37179 return 0;
37180   ;
37181   return 0;
37182 }
37183 _ACEOF
37184 rm -f conftest.$ac_objext
37185 if { (ac_try="$ac_compile"
37186 case "(($ac_try" in
37187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37188   *) ac_try_echo=$ac_try;;
37189 esac
37190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37191   (eval "$ac_compile") 2>conftest.er1
37192   ac_status=$?
37193   grep -v '^ *+' conftest.er1 >conftest.err
37194   rm -f conftest.er1
37195   cat conftest.err >&5
37196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197   (exit $ac_status); } && {
37198          test -z "$ac_c_werror_flag" ||
37199          test ! -s conftest.err
37200        } && test -s conftest.$ac_objext; then
37201   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37202 else
37203   echo "$as_me: failed program was:" >&5
37204 sed 's/^/| /' conftest.$ac_ext >&5
37205
37206         cat >conftest.$ac_ext <<_ACEOF
37207 /* confdefs.h.  */
37208 _ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h.  */
37212 $ac_includes_default
37213 #ifdef HAVE_SYS_SOCKET_H
37214 #include <sys/socket.h>
37215 #endif
37216
37217 int
37218 main ()
37219 {
37220 static struct msghdr ac_aggr;
37221 if (sizeof ac_aggr.msg_accrightslen)
37222 return 0;
37223   ;
37224   return 0;
37225 }
37226 _ACEOF
37227 rm -f conftest.$ac_objext
37228 if { (ac_try="$ac_compile"
37229 case "(($ac_try" in
37230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37231   *) ac_try_echo=$ac_try;;
37232 esac
37233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37234   (eval "$ac_compile") 2>conftest.er1
37235   ac_status=$?
37236   grep -v '^ *+' conftest.er1 >conftest.err
37237   rm -f conftest.er1
37238   cat conftest.err >&5
37239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240   (exit $ac_status); } && {
37241          test -z "$ac_c_werror_flag" ||
37242          test ! -s conftest.err
37243        } && test -s conftest.$ac_objext; then
37244   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37245 else
37246   echo "$as_me: failed program was:" >&5
37247 sed 's/^/| /' conftest.$ac_ext >&5
37248
37249         ac_cv_member_struct_msghdr_msg_accrightslen=no
37250 fi
37251
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37253 fi
37254
37255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37256 fi
37257 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37258 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37259 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37260
37261 cat >>confdefs.h <<_ACEOF
37262 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37263 _ACEOF
37264
37265
37266 fi
37267
37268                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37269                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37270 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37271 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37272   echo $ECHO_N "(cached) $ECHO_C" >&6
37273 else
37274   cat >conftest.$ac_ext <<_ACEOF
37275 /* confdefs.h.  */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h.  */
37280 $ac_includes_default
37281 #ifdef HAVE_SYS_SOCKET_H
37282 #include <sys/socket.h>
37283 #endif
37284
37285 int
37286 main ()
37287 {
37288 static struct msghdr ac_aggr;
37289 if (ac_aggr.msg_control)
37290 return 0;
37291   ;
37292   return 0;
37293 }
37294 _ACEOF
37295 rm -f conftest.$ac_objext
37296 if { (ac_try="$ac_compile"
37297 case "(($ac_try" in
37298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37299   *) ac_try_echo=$ac_try;;
37300 esac
37301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37302   (eval "$ac_compile") 2>conftest.er1
37303   ac_status=$?
37304   grep -v '^ *+' conftest.er1 >conftest.err
37305   rm -f conftest.er1
37306   cat conftest.err >&5
37307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37308   (exit $ac_status); } && {
37309          test -z "$ac_c_werror_flag" ||
37310          test ! -s conftest.err
37311        } && test -s conftest.$ac_objext; then
37312   ac_cv_member_struct_msghdr_msg_control=yes
37313 else
37314   echo "$as_me: failed program was:" >&5
37315 sed 's/^/| /' conftest.$ac_ext >&5
37316
37317         cat >conftest.$ac_ext <<_ACEOF
37318 /* confdefs.h.  */
37319 _ACEOF
37320 cat confdefs.h >>conftest.$ac_ext
37321 cat >>conftest.$ac_ext <<_ACEOF
37322 /* end confdefs.h.  */
37323 $ac_includes_default
37324 #ifdef HAVE_SYS_SOCKET_H
37325 #include <sys/socket.h>
37326 #endif
37327
37328 int
37329 main ()
37330 {
37331 static struct msghdr ac_aggr;
37332 if (sizeof ac_aggr.msg_control)
37333 return 0;
37334   ;
37335   return 0;
37336 }
37337 _ACEOF
37338 rm -f conftest.$ac_objext
37339 if { (ac_try="$ac_compile"
37340 case "(($ac_try" in
37341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37342   *) ac_try_echo=$ac_try;;
37343 esac
37344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37345   (eval "$ac_compile") 2>conftest.er1
37346   ac_status=$?
37347   grep -v '^ *+' conftest.er1 >conftest.err
37348   rm -f conftest.er1
37349   cat conftest.err >&5
37350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351   (exit $ac_status); } && {
37352          test -z "$ac_c_werror_flag" ||
37353          test ! -s conftest.err
37354        } && test -s conftest.$ac_objext; then
37355   ac_cv_member_struct_msghdr_msg_control=yes
37356 else
37357   echo "$as_me: failed program was:" >&5
37358 sed 's/^/| /' conftest.$ac_ext >&5
37359
37360         ac_cv_member_struct_msghdr_msg_control=no
37361 fi
37362
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37364 fi
37365
37366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37367 fi
37368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37369 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37370 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37371
37372 cat >>confdefs.h <<_ACEOF
37373 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37374 _ACEOF
37375
37376
37377 fi
37378
37379                 fi
37380                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37381 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37382 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37383   echo $ECHO_N "(cached) $ECHO_C" >&6
37384 else
37385   cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h.  */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h.  */
37391 $ac_includes_default
37392 int
37393 main ()
37394 {
37395 static struct stat ac_aggr;
37396 if (ac_aggr.st_fstype)
37397 return 0;
37398   ;
37399   return 0;
37400 }
37401 _ACEOF
37402 rm -f conftest.$ac_objext
37403 if { (ac_try="$ac_compile"
37404 case "(($ac_try" in
37405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37406   *) ac_try_echo=$ac_try;;
37407 esac
37408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37409   (eval "$ac_compile") 2>conftest.er1
37410   ac_status=$?
37411   grep -v '^ *+' conftest.er1 >conftest.err
37412   rm -f conftest.er1
37413   cat conftest.err >&5
37414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415   (exit $ac_status); } && {
37416          test -z "$ac_c_werror_flag" ||
37417          test ! -s conftest.err
37418        } && test -s conftest.$ac_objext; then
37419   ac_cv_member_struct_stat_st_fstype=yes
37420 else
37421   echo "$as_me: failed program was:" >&5
37422 sed 's/^/| /' conftest.$ac_ext >&5
37423
37424         cat >conftest.$ac_ext <<_ACEOF
37425 /* confdefs.h.  */
37426 _ACEOF
37427 cat confdefs.h >>conftest.$ac_ext
37428 cat >>conftest.$ac_ext <<_ACEOF
37429 /* end confdefs.h.  */
37430 $ac_includes_default
37431 int
37432 main ()
37433 {
37434 static struct stat ac_aggr;
37435 if (sizeof ac_aggr.st_fstype)
37436 return 0;
37437   ;
37438   return 0;
37439 }
37440 _ACEOF
37441 rm -f conftest.$ac_objext
37442 if { (ac_try="$ac_compile"
37443 case "(($ac_try" in
37444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37445   *) ac_try_echo=$ac_try;;
37446 esac
37447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37448   (eval "$ac_compile") 2>conftest.er1
37449   ac_status=$?
37450   grep -v '^ *+' conftest.er1 >conftest.err
37451   rm -f conftest.er1
37452   cat conftest.err >&5
37453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454   (exit $ac_status); } && {
37455          test -z "$ac_c_werror_flag" ||
37456          test ! -s conftest.err
37457        } && test -s conftest.$ac_objext; then
37458   ac_cv_member_struct_stat_st_fstype=yes
37459 else
37460   echo "$as_me: failed program was:" >&5
37461 sed 's/^/| /' conftest.$ac_ext >&5
37462
37463         ac_cv_member_struct_stat_st_fstype=no
37464 fi
37465
37466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37467 fi
37468
37469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37470 fi
37471 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37472 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37473 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37474
37475 cat >>confdefs.h <<_ACEOF
37476 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37477 _ACEOF
37478
37479
37480 fi
37481 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37482 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37483 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37484   echo $ECHO_N "(cached) $ECHO_C" >&6
37485 else
37486   cat >conftest.$ac_ext <<_ACEOF
37487 /* confdefs.h.  */
37488 _ACEOF
37489 cat confdefs.h >>conftest.$ac_ext
37490 cat >>conftest.$ac_ext <<_ACEOF
37491 /* end confdefs.h.  */
37492 $ac_includes_default
37493 int
37494 main ()
37495 {
37496 static struct stat ac_aggr;
37497 if (ac_aggr.st_vfstype)
37498 return 0;
37499   ;
37500   return 0;
37501 }
37502 _ACEOF
37503 rm -f conftest.$ac_objext
37504 if { (ac_try="$ac_compile"
37505 case "(($ac_try" in
37506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37507   *) ac_try_echo=$ac_try;;
37508 esac
37509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37510   (eval "$ac_compile") 2>conftest.er1
37511   ac_status=$?
37512   grep -v '^ *+' conftest.er1 >conftest.err
37513   rm -f conftest.er1
37514   cat conftest.err >&5
37515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516   (exit $ac_status); } && {
37517          test -z "$ac_c_werror_flag" ||
37518          test ! -s conftest.err
37519        } && test -s conftest.$ac_objext; then
37520   ac_cv_member_struct_stat_st_vfstype=yes
37521 else
37522   echo "$as_me: failed program was:" >&5
37523 sed 's/^/| /' conftest.$ac_ext >&5
37524
37525         cat >conftest.$ac_ext <<_ACEOF
37526 /* confdefs.h.  */
37527 _ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h.  */
37531 $ac_includes_default
37532 int
37533 main ()
37534 {
37535 static struct stat ac_aggr;
37536 if (sizeof ac_aggr.st_vfstype)
37537 return 0;
37538   ;
37539   return 0;
37540 }
37541 _ACEOF
37542 rm -f conftest.$ac_objext
37543 if { (ac_try="$ac_compile"
37544 case "(($ac_try" in
37545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37546   *) ac_try_echo=$ac_try;;
37547 esac
37548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37549   (eval "$ac_compile") 2>conftest.er1
37550   ac_status=$?
37551   grep -v '^ *+' conftest.er1 >conftest.err
37552   rm -f conftest.er1
37553   cat conftest.err >&5
37554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555   (exit $ac_status); } && {
37556          test -z "$ac_c_werror_flag" ||
37557          test ! -s conftest.err
37558        } && test -s conftest.$ac_objext; then
37559   ac_cv_member_struct_stat_st_vfstype=yes
37560 else
37561   echo "$as_me: failed program was:" >&5
37562 sed 's/^/| /' conftest.$ac_ext >&5
37563
37564         ac_cv_member_struct_stat_st_vfstype=no
37565 fi
37566
37567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37568 fi
37569
37570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37571 fi
37572 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37573 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37574 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37575
37576 cat >>confdefs.h <<_ACEOF
37577 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37578 _ACEOF
37579
37580
37581 fi
37582
37583                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37584                         cat >conftest.$ac_ext <<_ACEOF
37585 struct stat st; char *ptr=st.st_fstype;
37586 _ACEOF
37587 rm -f conftest.$ac_objext
37588 if { (ac_try="$ac_compile"
37589 case "(($ac_try" in
37590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37591   *) ac_try_echo=$ac_try;;
37592 esac
37593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37594   (eval "$ac_compile") 2>conftest.er1
37595   ac_status=$?
37596   grep -v '^ *+' conftest.er1 >conftest.err
37597   rm -f conftest.er1
37598   cat conftest.err >&5
37599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600   (exit $ac_status); } && {
37601          test -z "$ac_c_werror_flag" ||
37602          test ! -s conftest.err
37603        } && test -s conftest.$ac_objext; then
37604
37605 cat >>confdefs.h <<\_ACEOF
37606 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37607 _ACEOF
37608
37609 else
37610   echo "$as_me: failed program was:" >&5
37611 sed 's/^/| /' conftest.$ac_ext >&5
37612
37613
37614 cat >>confdefs.h <<\_ACEOF
37615 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37616 _ACEOF
37617
37618 fi
37619
37620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37621                 fi
37622         fi
37623         LIBSRCS="$LIBSRCS getpeereid.c"
37624 fi
37625
37626 if test "$ac_cv_func_snprintf" != yes ||
37627    test "$ac_cv_func_vsnprintf" != yes; then
37628         if test "$ac_cv_func_snprintf" != yes; then
37629
37630 cat >>confdefs.h <<\_ACEOF
37631 #define snprintf ber_pvt_snprintf
37632 _ACEOF
37633
37634         fi
37635         if test "$ac_cv_func_vsnprintf" != yes; then
37636
37637 cat >>confdefs.h <<\_ACEOF
37638 #define vsnprintf ber_pvt_vsnprintf
37639 _ACEOF
37640
37641         fi
37642 fi
37643
37644
37645 if test "$ol_enable_slapi" != no ; then
37646
37647 for ac_header in ltdl.h
37648 do
37649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37651   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37654   echo $ECHO_N "(cached) $ECHO_C" >&6
37655 fi
37656 ac_res=`eval echo '${'$as_ac_Header'}'`
37657                { echo "$as_me:$LINENO: result: $ac_res" >&5
37658 echo "${ECHO_T}$ac_res" >&6; }
37659 else
37660   # Is the header compilable?
37661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37663 cat >conftest.$ac_ext <<_ACEOF
37664 /* confdefs.h.  */
37665 _ACEOF
37666 cat confdefs.h >>conftest.$ac_ext
37667 cat >>conftest.$ac_ext <<_ACEOF
37668 /* end confdefs.h.  */
37669 $ac_includes_default
37670 #include <$ac_header>
37671 _ACEOF
37672 rm -f conftest.$ac_objext
37673 if { (ac_try="$ac_compile"
37674 case "(($ac_try" in
37675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37676   *) ac_try_echo=$ac_try;;
37677 esac
37678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37679   (eval "$ac_compile") 2>conftest.er1
37680   ac_status=$?
37681   grep -v '^ *+' conftest.er1 >conftest.err
37682   rm -f conftest.er1
37683   cat conftest.err >&5
37684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685   (exit $ac_status); } && {
37686          test -z "$ac_c_werror_flag" ||
37687          test ! -s conftest.err
37688        } && test -s conftest.$ac_objext; then
37689   ac_header_compiler=yes
37690 else
37691   echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37693
37694         ac_header_compiler=no
37695 fi
37696
37697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37699 echo "${ECHO_T}$ac_header_compiler" >&6; }
37700
37701 # Is the header present?
37702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37704 cat >conftest.$ac_ext <<_ACEOF
37705 /* confdefs.h.  */
37706 _ACEOF
37707 cat confdefs.h >>conftest.$ac_ext
37708 cat >>conftest.$ac_ext <<_ACEOF
37709 /* end confdefs.h.  */
37710 #include <$ac_header>
37711 _ACEOF
37712 if { (ac_try="$ac_cpp conftest.$ac_ext"
37713 case "(($ac_try" in
37714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37715   *) ac_try_echo=$ac_try;;
37716 esac
37717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37719   ac_status=$?
37720   grep -v '^ *+' conftest.er1 >conftest.err
37721   rm -f conftest.er1
37722   cat conftest.err >&5
37723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724   (exit $ac_status); } >/dev/null && {
37725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37726          test ! -s conftest.err
37727        }; then
37728   ac_header_preproc=yes
37729 else
37730   echo "$as_me: failed program was:" >&5
37731 sed 's/^/| /' conftest.$ac_ext >&5
37732
37733   ac_header_preproc=no
37734 fi
37735
37736 rm -f conftest.err conftest.$ac_ext
37737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37738 echo "${ECHO_T}$ac_header_preproc" >&6; }
37739
37740 # So?  What about this header?
37741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37742   yes:no: )
37743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37747     ac_header_preproc=yes
37748     ;;
37749   no:yes:* )
37750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37762     ( cat <<\_ASBOX
37763 ## --------------------------------------------- ##
37764 ## Report this to <http://www.openldap.org/its/> ##
37765 ## --------------------------------------------- ##
37766 _ASBOX
37767      ) | sed "s/^/$as_me: WARNING:     /" >&2
37768     ;;
37769 esac
37770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37773   echo $ECHO_N "(cached) $ECHO_C" >&6
37774 else
37775   eval "$as_ac_Header=\$ac_header_preproc"
37776 fi
37777 ac_res=`eval echo '${'$as_ac_Header'}'`
37778                { echo "$as_me:$LINENO: result: $ac_res" >&5
37779 echo "${ECHO_T}$ac_res" >&6; }
37780
37781 fi
37782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37783   cat >>confdefs.h <<_ACEOF
37784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37785 _ACEOF
37786
37787 fi
37788
37789 done
37790
37791
37792         if test $ac_cv_header_ltdl_h != yes ; then
37793                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37794 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37795    { (exit 1); exit 1; }; }
37796         fi
37797         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37798 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37799 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37800   echo $ECHO_N "(cached) $ECHO_C" >&6
37801 else
37802   ac_check_lib_save_LIBS=$LIBS
37803 LIBS="-lltdl  $LIBS"
37804 cat >conftest.$ac_ext <<_ACEOF
37805 /* confdefs.h.  */
37806 _ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h.  */
37810
37811 /* Override any GCC internal prototype to avoid an error.
37812    Use char because int might match the return type of a GCC
37813    builtin and then its argument prototype would still apply.  */
37814 #ifdef __cplusplus
37815 extern "C"
37816 #endif
37817 char lt_dlinit ();
37818 int
37819 main ()
37820 {
37821 return lt_dlinit ();
37822   ;
37823   return 0;
37824 }
37825 _ACEOF
37826 rm -f conftest.$ac_objext conftest$ac_exeext
37827 if { (ac_try="$ac_link"
37828 case "(($ac_try" in
37829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37830   *) ac_try_echo=$ac_try;;
37831 esac
37832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37833   (eval "$ac_link") 2>conftest.er1
37834   ac_status=$?
37835   grep -v '^ *+' conftest.er1 >conftest.err
37836   rm -f conftest.er1
37837   cat conftest.err >&5
37838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839   (exit $ac_status); } && {
37840          test -z "$ac_c_werror_flag" ||
37841          test ! -s conftest.err
37842        } && test -s conftest$ac_exeext &&
37843        $as_test_x conftest$ac_exeext; then
37844   ac_cv_lib_ltdl_lt_dlinit=yes
37845 else
37846   echo "$as_me: failed program was:" >&5
37847 sed 's/^/| /' conftest.$ac_ext >&5
37848
37849         ac_cv_lib_ltdl_lt_dlinit=no
37850 fi
37851
37852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37853       conftest$ac_exeext conftest.$ac_ext
37854 LIBS=$ac_check_lib_save_LIBS
37855 fi
37856 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37857 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37858 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37859
37860                 SLAPI_LIBS=-lltdl
37861                 LIBSLAPI=libslapi.a
37862                 LIBSLAPITOOLS=../libslapi.a
37863
37864 cat >>confdefs.h <<\_ACEOF
37865 #define HAVE_LIBLTDL 1
37866 _ACEOF
37867
37868
37869 else
37870   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37871 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37872    { (exit 1); exit 1; }; }
37873 fi
37874
37875
37876
37877 cat >>confdefs.h <<\_ACEOF
37878 #define LDAP_SLAPI 1
37879 _ACEOF
37880
37881 fi
37882
37883 if test "$ol_enable_debug" != no ; then
37884         if test "$ol_enable_debug" = traditional; then
37885
37886 cat >>confdefs.h <<\_ACEOF
37887 #define OLD_DEBUG 1
37888 _ACEOF
37889
37890         fi
37891
37892 cat >>confdefs.h <<\_ACEOF
37893 #define LDAP_DEBUG 1
37894 _ACEOF
37895
37896 fi
37897 if test "$ol_enable_syslog" = yes ; then
37898
37899 cat >>confdefs.h <<\_ACEOF
37900 #define LDAP_SYSLOG 1
37901 _ACEOF
37902
37903 fi
37904 if test "$ol_enable_proctitle" != no ; then
37905
37906 cat >>confdefs.h <<\_ACEOF
37907 #define LDAP_PROCTITLE 1
37908 _ACEOF
37909
37910 fi
37911 if test "$ol_enable_referrals" != no ; then
37912
37913 cat >>confdefs.h <<\_ACEOF
37914 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37915 _ACEOF
37916
37917 fi
37918 if test "$ol_enable_local" != no; then
37919
37920 cat >>confdefs.h <<\_ACEOF
37921 #define LDAP_PF_LOCAL 1
37922 _ACEOF
37923
37924 fi
37925 if test "$ol_link_ipv6" != no; then
37926
37927 cat >>confdefs.h <<\_ACEOF
37928 #define LDAP_PF_INET6 1
37929 _ACEOF
37930
37931 fi
37932 if test "$ol_enable_cleartext" != no ; then
37933
37934 cat >>confdefs.h <<\_ACEOF
37935 #define SLAPD_CLEARTEXT 1
37936 _ACEOF
37937
37938 fi
37939 if test "$ol_enable_crypt" != no ; then
37940
37941 cat >>confdefs.h <<\_ACEOF
37942 #define SLAPD_CRYPT 1
37943 _ACEOF
37944
37945 fi
37946 if test "$ol_link_spasswd" != no ; then
37947
37948 cat >>confdefs.h <<\_ACEOF
37949 #define SLAPD_SPASSWD 1
37950 _ACEOF
37951
37952 fi
37953 if test "$ol_enable_rlookups" != no ; then
37954
37955 cat >>confdefs.h <<\_ACEOF
37956 #define SLAPD_RLOOKUPS 1
37957 _ACEOF
37958
37959 fi
37960 if test "$ol_enable_aci" != no ; then
37961         if test $ol_enable_dynacl = no ; then
37962                 ol_enable_dynacl=yes
37963                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37964 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37965         fi
37966         if test "$ol_enable_aci" = mod ; then
37967                 MFLAG=SLAPD_MOD_DYNAMIC
37968                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37969 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37970    { (exit 1); exit 1; }; }
37971         else
37972                 MFLAG=SLAPD_MOD_STATIC
37973         fi
37974         WITH_ACI_ENABLED=$ol_enable_aci
37975
37976 cat >>confdefs.h <<_ACEOF
37977 #define SLAPD_ACI_ENABLED $MFLAG
37978 _ACEOF
37979
37980 else
37981         WITH_ACI_ENABLED=no
37982 fi
37983 if test "$ol_enable_dynacl" != no ; then
37984
37985 cat >>confdefs.h <<\_ACEOF
37986 #define SLAP_DYNACL 1
37987 _ACEOF
37988
37989 fi
37990
37991 if test "$ol_link_modules" != no ; then
37992
37993 cat >>confdefs.h <<\_ACEOF
37994 #define SLAPD_MODULES 1
37995 _ACEOF
37996
37997         BUILD_SLAPD=yes
37998         SLAPD_MODULES_LDFLAGS="-dlopen self"
37999 fi
38000
38001
38002 cat >>confdefs.h <<\_ACEOF
38003 #define SLAPD_MOD_STATIC 1
38004 _ACEOF
38005
38006
38007 cat >>confdefs.h <<\_ACEOF
38008 #define SLAPD_MOD_DYNAMIC 2
38009 _ACEOF
38010
38011
38012 if test "$ol_enable_monitor" != no ; then
38013         BUILD_SLAPD=yes
38014         BUILD_MONITOR=$ol_enable_monitor
38015         if test "$ol_enable_monitor" = mod ; then
38016                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38017                 MFLAG=SLAPD_MOD_DYNAMIC
38018         else
38019                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38020                 MFLAG=SLAPD_MOD_STATIC
38021         fi
38022
38023 cat >>confdefs.h <<_ACEOF
38024 #define SLAPD_MONITOR $MFLAG
38025 _ACEOF
38026
38027 fi
38028
38029 if test "$ol_enable_bdb" != no ; then
38030         BUILD_SLAPD=yes
38031         BUILD_BDB=$ol_enable_bdb
38032         if test "$ol_enable_bdb" = mod ; then
38033                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38034                 MFLAG=SLAPD_MOD_DYNAMIC
38035         else
38036                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38037                 MFLAG=SLAPD_MOD_STATIC
38038         fi
38039
38040 cat >>confdefs.h <<_ACEOF
38041 #define SLAPD_BDB $MFLAG
38042 _ACEOF
38043
38044 fi
38045
38046 if test "$ol_enable_dnssrv" != no ; then
38047         BUILD_SLAPD=yes
38048         BUILD_DNSSRV=$ol_enable_dnssrv
38049         if test "$ol_enable_dnssrv" = mod ; then
38050                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38051                 MFLAG=SLAPD_MOD_DYNAMIC
38052         else
38053                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38054                 MFLAG=SLAPD_MOD_STATIC
38055         fi
38056
38057 cat >>confdefs.h <<_ACEOF
38058 #define SLAPD_DNSSRV $MFLAG
38059 _ACEOF
38060
38061 fi
38062
38063 if test "$ol_enable_hdb" != no ; then
38064         BUILD_SLAPD=yes
38065         BUILD_HDB=$ol_enable_hdb
38066         if test "$ol_enable_hdb" = mod ; then
38067                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38068                 MFLAG=SLAPD_MOD_DYNAMIC
38069         else
38070                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38071                 MFLAG=SLAPD_MOD_STATIC
38072         fi
38073
38074 cat >>confdefs.h <<_ACEOF
38075 #define SLAPD_HDB $MFLAG
38076 _ACEOF
38077
38078 fi
38079
38080 if test "$ol_enable_ldap" != no ; then
38081         BUILD_SLAPD=yes
38082         BUILD_LDAP=$ol_enable_ldap
38083         if test "$ol_enable_ldap" = mod ; then
38084                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38085                 MFLAG=SLAPD_MOD_DYNAMIC
38086         else
38087                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38088                 MFLAG=SLAPD_MOD_STATIC
38089         fi
38090
38091 cat >>confdefs.h <<_ACEOF
38092 #define SLAPD_LDAP $MFLAG
38093 _ACEOF
38094
38095 fi
38096
38097 if test "$ol_enable_meta" != no ; then
38098         BUILD_SLAPD=yes
38099         BUILD_META=$ol_enable_meta
38100         BUILD_REWRITE=yes
38101         if test "$ol_enable_meta" = mod ; then
38102                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38103                 MFLAG=SLAPD_MOD_DYNAMIC
38104         else
38105                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38106                 MFLAG=SLAPD_MOD_STATIC
38107         fi
38108
38109 cat >>confdefs.h <<_ACEOF
38110 #define SLAPD_META $MFLAG
38111 _ACEOF
38112
38113 fi
38114
38115 if test "$ol_enable_ndb" != no ; then
38116         BUILD_SLAPD=yes
38117         BUILD_NDB=$ol_enable_ndb
38118         if test "$ol_enable_ndb" = mod ; then
38119                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38120                 MFLAG=SLAPD_MOD_DYNAMIC
38121         else
38122                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38123                 MFLAG=SLAPD_MOD_STATIC
38124         fi
38125
38126 cat >>confdefs.h <<_ACEOF
38127 #define SLAPD_NDB $MFLAG
38128 _ACEOF
38129
38130 fi
38131
38132 if test "$ol_enable_null" != no ; then
38133         BUILD_SLAPD=yes
38134         BUILD_NULL=$ol_enable_null
38135         if test "$ol_enable_null" = mod ; then
38136                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38137                 MFLAG=SLAPD_MOD_DYNAMIC
38138         else
38139                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38140                 MFLAG=SLAPD_MOD_STATIC
38141         fi
38142
38143 cat >>confdefs.h <<_ACEOF
38144 #define SLAPD_NULL $MFLAG
38145 _ACEOF
38146
38147 fi
38148
38149 if test "$ol_enable_passwd" != no ; then
38150         BUILD_SLAPD=yes
38151         BUILD_PASSWD=$ol_enable_passwd
38152         if test "$ol_enable_passwd" = mod ; then
38153                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38154                 MFLAG=SLAPD_MOD_DYNAMIC
38155         else
38156                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38157                 MFLAG=SLAPD_MOD_STATIC
38158         fi
38159
38160 cat >>confdefs.h <<_ACEOF
38161 #define SLAPD_PASSWD $MFLAG
38162 _ACEOF
38163
38164 fi
38165
38166 if test "$ol_link_perl" != no ; then
38167         BUILD_SLAPD=yes
38168         BUILD_PERL=$ol_enable_perl
38169         if test "$ol_enable_perl" = mod ; then
38170                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38171                 MFLAG=SLAPD_MOD_DYNAMIC
38172         else
38173                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38174                 MFLAG=SLAPD_MOD_STATIC
38175         fi
38176
38177 cat >>confdefs.h <<_ACEOF
38178 #define SLAPD_PERL $MFLAG
38179 _ACEOF
38180
38181 fi
38182
38183 if test "$ol_enable_relay" != no ; then
38184         BUILD_SLAPD=yes
38185         BUILD_RELAY=$ol_enable_relay
38186         if test "$ol_enable_relay" = mod ; then
38187                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38188                 MFLAG=SLAPD_MOD_DYNAMIC
38189         else
38190                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38191                 MFLAG=SLAPD_MOD_STATIC
38192         fi
38193
38194 cat >>confdefs.h <<_ACEOF
38195 #define SLAPD_RELAY $MFLAG
38196 _ACEOF
38197
38198 fi
38199
38200 if test "$ol_enable_shell" != no ; then
38201         if test "$ol_link_threads" != no ; then
38202                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38203 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38204         fi
38205         BUILD_SLAPD=yes
38206         BUILD_SHELL=$ol_enable_shell
38207         if test "$ol_enable_shell" = mod ; then
38208                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38209                 MFLAG=SLAPD_MOD_DYNAMIC
38210         else
38211                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38212                 MFLAG=SLAPD_MOD_STATIC
38213         fi
38214
38215 cat >>confdefs.h <<_ACEOF
38216 #define SLAPD_SHELL $MFLAG
38217 _ACEOF
38218
38219 fi
38220
38221 if test "$ol_enable_sock" != no ; then
38222         BUILD_SLAPD=yes
38223         BUILD_SOCK=$ol_enable_sock
38224         if test "$ol_enable_sock" = mod ; then
38225                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38226                 MFLAG=SLAPD_MOD_DYNAMIC
38227         else
38228                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38229                 MFLAG=SLAPD_MOD_STATIC
38230         fi
38231
38232 cat >>confdefs.h <<_ACEOF
38233 #define SLAPD_SOCK $MFLAG
38234 _ACEOF
38235
38236 fi
38237
38238 if test "$ol_link_sql" != no ; then
38239         BUILD_SLAPD=yes
38240         BUILD_SQL=$ol_enable_sql
38241         if test "$ol_enable_sql" = mod; then
38242                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38243                 MFLAG=SLAPD_MOD_DYNAMIC
38244         else
38245                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38246                 MFLAG=SLAPD_MOD_STATIC
38247         fi
38248
38249 cat >>confdefs.h <<_ACEOF
38250 #define SLAPD_SQL $MFLAG
38251 _ACEOF
38252
38253 fi
38254
38255 if test "$ol_enable_accesslog" != no ; then
38256         BUILD_ACCESSLOG=$ol_enable_accesslog
38257         if test "$ol_enable_accesslog" = mod ; then
38258                 MFLAG=SLAPD_MOD_DYNAMIC
38259                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38260         else
38261                 MFLAG=SLAPD_MOD_STATIC
38262                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38263         fi
38264
38265 cat >>confdefs.h <<_ACEOF
38266 #define SLAPD_OVER_ACCESSLOG $MFLAG
38267 _ACEOF
38268
38269 fi
38270
38271 if test "$ol_enable_auditlog" != no ; then
38272         BUILD_AUDITLOG=$ol_enable_auditlog
38273         if test "$ol_enable_auditlog" = mod ; then
38274                 MFLAG=SLAPD_MOD_DYNAMIC
38275                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38276         else
38277                 MFLAG=SLAPD_MOD_STATIC
38278                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38279         fi
38280
38281 cat >>confdefs.h <<_ACEOF
38282 #define SLAPD_OVER_AUDITLOG $MFLAG
38283 _ACEOF
38284
38285 fi
38286
38287 if test "$ol_enable_collect" != no ; then
38288         BUILD_COLLECT=$ol_enable_collect
38289         if test "$ol_enable_collect" = mod ; then
38290                 MFLAG=SLAPD_MOD_DYNAMIC
38291                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38292         else
38293                 MFLAG=SLAPD_MOD_STATIC
38294                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38295         fi
38296
38297 cat >>confdefs.h <<_ACEOF
38298 #define SLAPD_OVER_COLLECT $MFLAG
38299 _ACEOF
38300
38301 fi
38302
38303 if test "$ol_enable_constraint" != no ; then
38304         BUILD_CONSTRAINT=$ol_enable_constraint
38305         if test "$ol_enable_constraint" = mod ; then
38306                 MFLAG=SLAPD_MOD_DYNAMIC
38307                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38308         else
38309                 MFLAG=SLAPD_MOD_STATIC
38310                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38311         fi
38312
38313 cat >>confdefs.h <<_ACEOF
38314 #define SLAPD_OVER_CONSTRAINT $MFLAG
38315 _ACEOF
38316
38317 fi
38318
38319 if test "$ol_enable_dds" != no ; then
38320         BUILD_DDS=$ol_enable_dds
38321         if test "$ol_enable_dds" = mod ; then
38322                 MFLAG=SLAPD_MOD_DYNAMIC
38323                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38324         else
38325                 MFLAG=SLAPD_MOD_STATIC
38326                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38327         fi
38328
38329 cat >>confdefs.h <<_ACEOF
38330 #define SLAPD_OVER_DDS $MFLAG
38331 _ACEOF
38332
38333 fi
38334
38335 if test "$ol_enable_deref" != no ; then
38336         BUILD_DEREF=$ol_enable_deref
38337         if test "$ol_enable_deref" = mod ; then
38338                 MFLAG=SLAPD_MOD_DYNAMIC
38339                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38340         else
38341                 MFLAG=SLAPD_MOD_STATIC
38342                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38343         fi
38344
38345 cat >>confdefs.h <<_ACEOF
38346 #define SLAPD_OVER_DEREF $MFLAG
38347 _ACEOF
38348
38349 fi
38350
38351 if test "$ol_enable_dyngroup" != no ; then
38352         BUILD_DYNGROUP=$ol_enable_dyngroup
38353         if test "$ol_enable_dyngroup" = mod ; then
38354                 MFLAG=SLAPD_MOD_DYNAMIC
38355                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38356         else
38357                 MFLAG=SLAPD_MOD_STATIC
38358                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38359         fi
38360
38361 cat >>confdefs.h <<_ACEOF
38362 #define SLAPD_OVER_DYNGROUP $MFLAG
38363 _ACEOF
38364
38365 fi
38366
38367 if test "$ol_enable_dynlist" != no ; then
38368         BUILD_DYNLIST=$ol_enable_dynlist
38369         if test "$ol_enable_dynlist" = mod ; then
38370                 MFLAG=SLAPD_MOD_DYNAMIC
38371                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38372         else
38373                 MFLAG=SLAPD_MOD_STATIC
38374                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38375         fi
38376
38377 cat >>confdefs.h <<_ACEOF
38378 #define SLAPD_OVER_DYNLIST $MFLAG
38379 _ACEOF
38380
38381 fi
38382
38383 if test "$ol_enable_memberof" != no ; then
38384         BUILD_MEMBEROF=$ol_enable_memberof
38385         if test "$ol_enable_memberof" = mod ; then
38386                 MFLAG=SLAPD_MOD_DYNAMIC
38387                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38388         else
38389                 MFLAG=SLAPD_MOD_STATIC
38390                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38391         fi
38392
38393 cat >>confdefs.h <<_ACEOF
38394 #define SLAPD_OVER_MEMBEROF $MFLAG
38395 _ACEOF
38396
38397 fi
38398
38399 if test "$ol_enable_ppolicy" != no ; then
38400         BUILD_PPOLICY=$ol_enable_ppolicy
38401         if test "$ol_enable_ppolicy" = mod ; then
38402                 MFLAG=SLAPD_MOD_DYNAMIC
38403                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38404         else
38405                 MFLAG=SLAPD_MOD_STATIC
38406                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38407         fi
38408
38409 cat >>confdefs.h <<_ACEOF
38410 #define SLAPD_OVER_PPOLICY $MFLAG
38411 _ACEOF
38412
38413 fi
38414
38415 if test "$ol_enable_proxycache" != no ; then
38416         BUILD_PROXYCACHE=$ol_enable_proxycache
38417         if test "$ol_enable_proxycache" = mod ; then
38418                 MFLAG=SLAPD_MOD_DYNAMIC
38419                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38420         else
38421                 MFLAG=SLAPD_MOD_STATIC
38422                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38423         fi
38424
38425 cat >>confdefs.h <<_ACEOF
38426 #define SLAPD_OVER_PROXYCACHE $MFLAG
38427 _ACEOF
38428
38429 fi
38430
38431 if test "$ol_enable_refint" != no ; then
38432         BUILD_REFINT=$ol_enable_refint
38433         if test "$ol_enable_refint" = mod ; then
38434                 MFLAG=SLAPD_MOD_DYNAMIC
38435                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38436         else
38437                 MFLAG=SLAPD_MOD_STATIC
38438                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38439         fi
38440
38441 cat >>confdefs.h <<_ACEOF
38442 #define SLAPD_OVER_REFINT $MFLAG
38443 _ACEOF
38444
38445 fi
38446
38447 if test "$ol_enable_retcode" != no ; then
38448         BUILD_RETCODE=$ol_enable_retcode
38449         if test "$ol_enable_retcode" = mod ; then
38450                 MFLAG=SLAPD_MOD_DYNAMIC
38451                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38452         else
38453                 MFLAG=SLAPD_MOD_STATIC
38454                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38455         fi
38456
38457 cat >>confdefs.h <<_ACEOF
38458 #define SLAPD_OVER_RETCODE $MFLAG
38459 _ACEOF
38460
38461 fi
38462
38463 if test "$ol_enable_rwm" != no ; then
38464         BUILD_REWRITE=yes
38465         BUILD_RWM=$ol_enable_rwm
38466         if test "$ol_enable_rwm" = mod ; then
38467                 MFLAG=SLAPD_MOD_DYNAMIC
38468                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38469         else
38470                 MFLAG=SLAPD_MOD_STATIC
38471                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38472         fi
38473
38474 cat >>confdefs.h <<_ACEOF
38475 #define SLAPD_OVER_RWM $MFLAG
38476 _ACEOF
38477
38478 fi
38479
38480 if test "$ol_enable_seqmod" != no ; then
38481         BUILD_SEQMOD=$ol_enable_seqmod
38482         if test "$ol_enable_seqmod" = mod ; then
38483                 MFLAG=SLAPD_MOD_DYNAMIC
38484                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38485         else
38486                 MFLAG=SLAPD_MOD_STATIC
38487                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38488         fi
38489
38490 cat >>confdefs.h <<_ACEOF
38491 #define SLAPD_OVER_SEQMOD $MFLAG
38492 _ACEOF
38493
38494 fi
38495
38496 if test "$ol_enable_sssvlv" != no ; then
38497         BUILD_SSSVLV=$ol_enable_sssvlv
38498         if test "$ol_enable_sssvlv" = mod ; then
38499                 MFLAG=SLAPD_MOD_DYNAMIC
38500                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38501         else
38502                 MFLAG=SLAPD_MOD_STATIC
38503                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38504         fi
38505
38506 cat >>confdefs.h <<_ACEOF
38507 #define SLAPD_OVER_SSSVLV $MFLAG
38508 _ACEOF
38509
38510 fi
38511
38512 if test "$ol_enable_syncprov" != no ; then
38513         BUILD_SYNCPROV=$ol_enable_syncprov
38514         if test "$ol_enable_syncprov" = mod ; then
38515                 MFLAG=SLAPD_MOD_DYNAMIC
38516                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38517         else
38518                 MFLAG=SLAPD_MOD_STATIC
38519                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38520         fi
38521
38522 cat >>confdefs.h <<_ACEOF
38523 #define SLAPD_OVER_SYNCPROV $MFLAG
38524 _ACEOF
38525
38526 fi
38527
38528 if test "$ol_enable_translucent" != no ; then
38529         BUILD_TRANSLUCENT=$ol_enable_translucent
38530         if test "$ol_enable_translucent" = mod ; then
38531                 MFLAG=SLAPD_MOD_DYNAMIC
38532                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38533         else
38534                 MFLAG=SLAPD_MOD_STATIC
38535                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38536         fi
38537
38538 cat >>confdefs.h <<_ACEOF
38539 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38540 _ACEOF
38541
38542 fi
38543
38544 if test "$ol_enable_unique" != no ; then
38545         BUILD_UNIQUE=$ol_enable_unique
38546         if test "$ol_enable_unique" = mod ; then
38547                 MFLAG=SLAPD_MOD_DYNAMIC
38548                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38549         else
38550                 MFLAG=SLAPD_MOD_STATIC
38551                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38552         fi
38553
38554 cat >>confdefs.h <<_ACEOF
38555 #define SLAPD_OVER_UNIQUE $MFLAG
38556 _ACEOF
38557
38558 fi
38559
38560 if test "$ol_enable_valsort" != no ; then
38561         BUILD_VALSORT=$ol_enable_valsort
38562         if test "$ol_enable_valsort" = mod ; then
38563                 MFLAG=SLAPD_MOD_DYNAMIC
38564                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38565         else
38566                 MFLAG=SLAPD_MOD_STATIC
38567                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38568         fi
38569
38570 cat >>confdefs.h <<_ACEOF
38571 #define SLAPD_OVER_VALSORT $MFLAG
38572 _ACEOF
38573
38574 fi
38575
38576 if test "$ol_enable_rewrite" != no ; then
38577
38578 cat >>confdefs.h <<\_ACEOF
38579 #define ENABLE_REWRITE 1
38580 _ACEOF
38581
38582         BUILD_REWRITE=yes
38583 fi
38584
38585 if test "$ol_enable_slapi" != no ; then
38586
38587 cat >>confdefs.h <<\_ACEOF
38588 #define ENABLE_SLAPI 1
38589 _ACEOF
38590
38591         BUILD_SLAPI=yes
38592         SLAPD_SLAPI_DEPEND=libslapi.a
38593 fi
38594
38595
38596
38597 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38598         PLAT=NT
38599         SLAPD_MODULES_LDFLAGS=
38600 else
38601         PLAT=UNIX
38602 fi
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694 # Check whether --with-xxinstall was given.
38695 if test "${with_xxinstall+set}" = set; then
38696   withval=$with_xxinstall;
38697 fi
38698
38699
38700
38701 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"
38702
38703
38704 ac_config_commands="$ac_config_commands default"
38705
38706
38707
38708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38709 # Let make expand exec_prefix.
38710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38711
38712 DEFS=-DHAVE_CONFIG_H
38713
38714 ac_libobjs=
38715 ac_ltlibobjs=
38716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38717   # 1. Remove the extension, and $U if already installed.
38718   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38719   ac_i=`echo "$ac_i" | sed "$ac_script"`
38720   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38721   #    will be set to the directory where LIBOBJS objects are built.
38722   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38723   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38724 done
38725 LIBOBJS=$ac_libobjs
38726
38727 LTLIBOBJS=$ac_ltlibobjs
38728
38729
38730 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38731   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38732 Usually this means the macro was only invoked conditionally." >&5
38733 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38734 Usually this means the macro was only invoked conditionally." >&2;}
38735    { (exit 1); exit 1; }; }
38736 fi
38737 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38738   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38739 Usually this means the macro was only invoked conditionally." >&5
38740 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38741 Usually this means the macro was only invoked conditionally." >&2;}
38742    { (exit 1); exit 1; }; }
38743 fi
38744 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38745   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38746 Usually this means the macro was only invoked conditionally." >&5
38747 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38748 Usually this means the macro was only invoked conditionally." >&2;}
38749    { (exit 1); exit 1; }; }
38750 fi
38751
38752 : ${CONFIG_STATUS=./config.status}
38753 ac_clean_files_save=$ac_clean_files
38754 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38755 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38756 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38757 cat >$CONFIG_STATUS <<_ACEOF
38758 #! $SHELL
38759 # Generated by $as_me.
38760 # Run this file to recreate the current configuration.
38761 # Compiler output produced by configure, useful for debugging
38762 # configure, is in config.log if it exists.
38763
38764 debug=false
38765 ac_cs_recheck=false
38766 ac_cs_silent=false
38767 SHELL=\${CONFIG_SHELL-$SHELL}
38768 _ACEOF
38769
38770 cat >>$CONFIG_STATUS <<\_ACEOF
38771 ## --------------------- ##
38772 ## M4sh Initialization.  ##
38773 ## --------------------- ##
38774
38775 # Be more Bourne compatible
38776 DUALCASE=1; export DUALCASE # for MKS sh
38777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38778   emulate sh
38779   NULLCMD=:
38780   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38781   # is contrary to our usage.  Disable this feature.
38782   alias -g '${1+"$@"}'='"$@"'
38783   setopt NO_GLOB_SUBST
38784 else
38785   case `(set -o) 2>/dev/null` in
38786   *posix*) set -o posix ;;
38787 esac
38788
38789 fi
38790
38791
38792
38793
38794 # PATH needs CR
38795 # Avoid depending upon Character Ranges.
38796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38799 as_cr_digits='0123456789'
38800 as_cr_alnum=$as_cr_Letters$as_cr_digits
38801
38802 # The user is always right.
38803 if test "${PATH_SEPARATOR+set}" != set; then
38804   echo "#! /bin/sh" >conf$$.sh
38805   echo  "exit 0"   >>conf$$.sh
38806   chmod +x conf$$.sh
38807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38808     PATH_SEPARATOR=';'
38809   else
38810     PATH_SEPARATOR=:
38811   fi
38812   rm -f conf$$.sh
38813 fi
38814
38815 # Support unset when possible.
38816 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38817   as_unset=unset
38818 else
38819   as_unset=false
38820 fi
38821
38822
38823 # IFS
38824 # We need space, tab and new line, in precisely that order.  Quoting is
38825 # there to prevent editors from complaining about space-tab.
38826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38827 # splitting by setting IFS to empty value.)
38828 as_nl='
38829 '
38830 IFS=" ""        $as_nl"
38831
38832 # Find who we are.  Look in the path if we contain no directory separator.
38833 case $0 in
38834   *[\\/]* ) as_myself=$0 ;;
38835   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38836 for as_dir in $PATH
38837 do
38838   IFS=$as_save_IFS
38839   test -z "$as_dir" && as_dir=.
38840   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38841 done
38842 IFS=$as_save_IFS
38843
38844      ;;
38845 esac
38846 # We did not find ourselves, most probably we were run as `sh COMMAND'
38847 # in which case we are not to be found in the path.
38848 if test "x$as_myself" = x; then
38849   as_myself=$0
38850 fi
38851 if test ! -f "$as_myself"; then
38852   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38853   { (exit 1); exit 1; }
38854 fi
38855
38856 # Work around bugs in pre-3.0 UWIN ksh.
38857 for as_var in ENV MAIL MAILPATH
38858 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38859 done
38860 PS1='$ '
38861 PS2='> '
38862 PS4='+ '
38863
38864 # NLS nuisances.
38865 for as_var in \
38866   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38867   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38868   LC_TELEPHONE LC_TIME
38869 do
38870   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38871     eval $as_var=C; export $as_var
38872   else
38873     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38874   fi
38875 done
38876
38877 # Required to use basename.
38878 if expr a : '\(a\)' >/dev/null 2>&1 &&
38879    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38880   as_expr=expr
38881 else
38882   as_expr=false
38883 fi
38884
38885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38886   as_basename=basename
38887 else
38888   as_basename=false
38889 fi
38890
38891
38892 # Name of the executable.
38893 as_me=`$as_basename -- "$0" ||
38894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38895          X"$0" : 'X\(//\)$' \| \
38896          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38897 echo X/"$0" |
38898     sed '/^.*\/\([^/][^/]*\)\/*$/{
38899             s//\1/
38900             q
38901           }
38902           /^X\/\(\/\/\)$/{
38903             s//\1/
38904             q
38905           }
38906           /^X\/\(\/\).*/{
38907             s//\1/
38908             q
38909           }
38910           s/.*/./; q'`
38911
38912 # CDPATH.
38913 $as_unset CDPATH
38914
38915
38916
38917   as_lineno_1=$LINENO
38918   as_lineno_2=$LINENO
38919   test "x$as_lineno_1" != "x$as_lineno_2" &&
38920   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38921
38922   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38923   # uniformly replaced by the line number.  The first 'sed' inserts a
38924   # line-number line after each line using $LINENO; the second 'sed'
38925   # does the real work.  The second script uses 'N' to pair each
38926   # line-number line with the line containing $LINENO, and appends
38927   # trailing '-' during substitution so that $LINENO is not a special
38928   # case at line end.
38929   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38930   # scripts with optimization help from Paolo Bonzini.  Blame Lee
38931   # E. McMahon (1931-1989) for sed's syntax.  :-)
38932   sed -n '
38933     p
38934     /[$]LINENO/=
38935   ' <$as_myself |
38936     sed '
38937       s/[$]LINENO.*/&-/
38938       t lineno
38939       b
38940       :lineno
38941       N
38942       :loop
38943       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38944       t loop
38945       s/-\n.*//
38946     ' >$as_me.lineno &&
38947   chmod +x "$as_me.lineno" ||
38948     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38949    { (exit 1); exit 1; }; }
38950
38951   # Don't try to exec as it changes $[0], causing all sort of problems
38952   # (the dirname of $[0] is not the place where we might find the
38953   # original and so on.  Autoconf is especially sensitive to this).
38954   . "./$as_me.lineno"
38955   # Exit status is that of the last command.
38956   exit
38957 }
38958
38959
38960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38961   as_dirname=dirname
38962 else
38963   as_dirname=false
38964 fi
38965
38966 ECHO_C= ECHO_N= ECHO_T=
38967 case `echo -n x` in
38968 -n*)
38969   case `echo 'x\c'` in
38970   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
38971   *)   ECHO_C='\c';;
38972   esac;;
38973 *)
38974   ECHO_N='-n';;
38975 esac
38976
38977 if expr a : '\(a\)' >/dev/null 2>&1 &&
38978    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38979   as_expr=expr
38980 else
38981   as_expr=false
38982 fi
38983
38984 rm -f conf$$ conf$$.exe conf$$.file
38985 if test -d conf$$.dir; then
38986   rm -f conf$$.dir/conf$$.file
38987 else
38988   rm -f conf$$.dir
38989   mkdir conf$$.dir
38990 fi
38991 echo >conf$$.file
38992 if ln -s conf$$.file conf$$ 2>/dev/null; then
38993   as_ln_s='ln -s'
38994   # ... but there are two gotchas:
38995   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38996   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38997   # In both cases, we have to default to `cp -p'.
38998   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38999     as_ln_s='cp -p'
39000 elif ln conf$$.file conf$$ 2>/dev/null; then
39001   as_ln_s=ln
39002 else
39003   as_ln_s='cp -p'
39004 fi
39005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39006 rmdir conf$$.dir 2>/dev/null
39007
39008 if mkdir -p . 2>/dev/null; then
39009   as_mkdir_p=:
39010 else
39011   test -d ./-p && rmdir ./-p
39012   as_mkdir_p=false
39013 fi
39014
39015 if test -x / >/dev/null 2>&1; then
39016   as_test_x='test -x'
39017 else
39018   if ls -dL / >/dev/null 2>&1; then
39019     as_ls_L_option=L
39020   else
39021     as_ls_L_option=
39022   fi
39023   as_test_x='
39024     eval sh -c '\''
39025       if test -d "$1"; then
39026         test -d "$1/.";
39027       else
39028         case $1 in
39029         -*)set "./$1";;
39030         esac;
39031         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39032         ???[sx]*):;;*)false;;esac;fi
39033     '\'' sh
39034   '
39035 fi
39036 as_executable_p=$as_test_x
39037
39038 # Sed expression to map a string onto a valid CPP name.
39039 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39040
39041 # Sed expression to map a string onto a valid variable name.
39042 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39043
39044
39045 exec 6>&1
39046
39047 # Save the log message, to keep $[0] and so on meaningful, and to
39048 # report actual input values of CONFIG_FILES etc. instead of their
39049 # values after options handling.
39050 ac_log="
39051 This file was extended by $as_me, which was
39052 generated by GNU Autoconf 2.61.  Invocation command line was
39053
39054   CONFIG_FILES    = $CONFIG_FILES
39055   CONFIG_HEADERS  = $CONFIG_HEADERS
39056   CONFIG_LINKS    = $CONFIG_LINKS
39057   CONFIG_COMMANDS = $CONFIG_COMMANDS
39058   $ $0 $@
39059
39060 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39061 "
39062
39063 _ACEOF
39064
39065 cat >>$CONFIG_STATUS <<_ACEOF
39066 # Files that config.status was made for.
39067 config_files="$ac_config_files"
39068 config_headers="$ac_config_headers"
39069 config_commands="$ac_config_commands"
39070
39071 _ACEOF
39072
39073 cat >>$CONFIG_STATUS <<\_ACEOF
39074 ac_cs_usage="\
39075 \`$as_me' instantiates files from templates according to the
39076 current configuration.
39077
39078 Usage: $0 [OPTIONS] [FILE]...
39079
39080   -h, --help       print this help, then exit
39081   -V, --version    print version number and configuration settings, then exit
39082   -q, --quiet      do not print progress messages
39083   -d, --debug      don't remove temporary files
39084       --recheck    update $as_me by reconfiguring in the same conditions
39085   --file=FILE[:TEMPLATE]
39086                    instantiate the configuration file FILE
39087   --header=FILE[:TEMPLATE]
39088                    instantiate the configuration header FILE
39089
39090 Configuration files:
39091 $config_files
39092
39093 Configuration headers:
39094 $config_headers
39095
39096 Configuration commands:
39097 $config_commands
39098
39099 Report bugs to <bug-autoconf@gnu.org>."
39100
39101 _ACEOF
39102 cat >>$CONFIG_STATUS <<_ACEOF
39103 ac_cs_version="\\
39104 config.status
39105 configured by $0, generated by GNU Autoconf 2.61,
39106   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39107
39108 Copyright (C) 2006 Free Software Foundation, Inc.
39109 This config.status script is free software; the Free Software Foundation
39110 gives unlimited permission to copy, distribute and modify it."
39111
39112 ac_pwd='$ac_pwd'
39113 srcdir='$srcdir'
39114 INSTALL='$INSTALL'
39115 _ACEOF
39116
39117 cat >>$CONFIG_STATUS <<\_ACEOF
39118 # If no file are specified by the user, then we need to provide default
39119 # value.  By we need to know if files were specified by the user.
39120 ac_need_defaults=:
39121 while test $# != 0
39122 do
39123   case $1 in
39124   --*=*)
39125     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39126     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39127     ac_shift=:
39128     ;;
39129   *)
39130     ac_option=$1
39131     ac_optarg=$2
39132     ac_shift=shift
39133     ;;
39134   esac
39135
39136   case $ac_option in
39137   # Handling of the options.
39138   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39139     ac_cs_recheck=: ;;
39140   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39141     echo "$ac_cs_version"; exit ;;
39142   --debug | --debu | --deb | --de | --d | -d )
39143     debug=: ;;
39144   --file | --fil | --fi | --f )
39145     $ac_shift
39146     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39147     ac_need_defaults=false;;
39148   --header | --heade | --head | --hea )
39149     $ac_shift
39150     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39151     ac_need_defaults=false;;
39152   --he | --h)
39153     # Conflict between --help and --header
39154     { echo "$as_me: error: ambiguous option: $1
39155 Try \`$0 --help' for more information." >&2
39156    { (exit 1); exit 1; }; };;
39157   --help | --hel | -h )
39158     echo "$ac_cs_usage"; exit ;;
39159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39160   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39161     ac_cs_silent=: ;;
39162
39163   # This is an error.
39164   -*) { echo "$as_me: error: unrecognized option: $1
39165 Try \`$0 --help' for more information." >&2
39166    { (exit 1); exit 1; }; } ;;
39167
39168   *) ac_config_targets="$ac_config_targets $1"
39169      ac_need_defaults=false ;;
39170
39171   esac
39172   shift
39173 done
39174
39175 ac_configure_extra_args=
39176
39177 if $ac_cs_silent; then
39178   exec 6>/dev/null
39179   ac_configure_extra_args="$ac_configure_extra_args --silent"
39180 fi
39181
39182 _ACEOF
39183 cat >>$CONFIG_STATUS <<_ACEOF
39184 if \$ac_cs_recheck; then
39185   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39186   CONFIG_SHELL=$SHELL
39187   export CONFIG_SHELL
39188   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39189 fi
39190
39191 _ACEOF
39192 cat >>$CONFIG_STATUS <<\_ACEOF
39193 exec 5>>config.log
39194 {
39195   echo
39196   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39197 ## Running $as_me. ##
39198 _ASBOX
39199   echo "$ac_log"
39200 } >&5
39201
39202 _ACEOF
39203 cat >>$CONFIG_STATUS <<_ACEOF
39204 #
39205 # INIT-COMMANDS
39206 #
39207 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39208
39209 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39210 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39211
39212
39213 _ACEOF
39214
39215 cat >>$CONFIG_STATUS <<\_ACEOF
39216
39217 # Handling of arguments.
39218 for ac_config_target in $ac_config_targets
39219 do
39220   case $ac_config_target in
39221     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39222     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39223     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39224     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39225     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39226     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39227     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39228     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39229     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39230     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39231     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39232     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39233     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39234     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39235     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39236     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39237     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39238     "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" ;;
39239     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39240     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39241     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39242     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39243     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39244     "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" ;;
39245     "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" ;;
39246     "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" ;;
39247     "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" ;;
39248     "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" ;;
39249     "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" ;;
39250     "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" ;;
39251     "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" ;;
39252     "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" ;;
39253     "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" ;;
39254     "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" ;;
39255     "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" ;;
39256     "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" ;;
39257     "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" ;;
39258     "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" ;;
39259     "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" ;;
39260     "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" ;;
39261     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39262     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39263     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39264     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39265     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39266
39267   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39268 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39269    { (exit 1); exit 1; }; };;
39270   esac
39271 done
39272
39273
39274 # If the user did not use the arguments to specify the items to instantiate,
39275 # then the envvar interface is used.  Set only those that are not.
39276 # We use the long form for the default assignment because of an extremely
39277 # bizarre bug on SunOS 4.1.3.
39278 if $ac_need_defaults; then
39279   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39280   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39281   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39282 fi
39283
39284 # Have a temporary directory for convenience.  Make it in the build tree
39285 # simply because there is no reason against having it here, and in addition,
39286 # creating and moving files from /tmp can sometimes cause problems.
39287 # Hook for its removal unless debugging.
39288 # Note that there is a small window in which the directory will not be cleaned:
39289 # after its creation but before its name has been assigned to `$tmp'.
39290 $debug ||
39291 {
39292   tmp=
39293   trap 'exit_status=$?
39294   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39295 ' 0
39296   trap '{ (exit 1); exit 1; }' 1 2 13 15
39297 }
39298 # Create a (secure) tmp directory for tmp files.
39299
39300 {
39301   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39302   test -n "$tmp" && test -d "$tmp"
39303 }  ||
39304 {
39305   tmp=./conf$$-$RANDOM
39306   (umask 077 && mkdir "$tmp")
39307 } ||
39308 {
39309    echo "$me: cannot create a temporary directory in ." >&2
39310    { (exit 1); exit 1; }
39311 }
39312
39313 #
39314 # Set up the sed scripts for CONFIG_FILES section.
39315 #
39316
39317 # No need to generate the scripts if there are no CONFIG_FILES.
39318 # This happens for instance when ./config.status config.h
39319 if test -n "$CONFIG_FILES"; then
39320
39321 _ACEOF
39322
39323
39324
39325 ac_delim='%!_!# '
39326 for ac_last_try in false false false false false :; do
39327   cat >conf$$subs.sed <<_ACEOF
39328 SHELL!$SHELL$ac_delim
39329 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39330 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39331 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39332 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39333 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39334 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39335 exec_prefix!$exec_prefix$ac_delim
39336 prefix!$prefix$ac_delim
39337 program_transform_name!$program_transform_name$ac_delim
39338 bindir!$bindir$ac_delim
39339 sbindir!$sbindir$ac_delim
39340 libexecdir!$libexecdir$ac_delim
39341 datarootdir!$datarootdir$ac_delim
39342 datadir!$datadir$ac_delim
39343 sysconfdir!$sysconfdir$ac_delim
39344 sharedstatedir!$sharedstatedir$ac_delim
39345 localstatedir!$localstatedir$ac_delim
39346 includedir!$includedir$ac_delim
39347 oldincludedir!$oldincludedir$ac_delim
39348 docdir!$docdir$ac_delim
39349 infodir!$infodir$ac_delim
39350 htmldir!$htmldir$ac_delim
39351 dvidir!$dvidir$ac_delim
39352 pdfdir!$pdfdir$ac_delim
39353 psdir!$psdir$ac_delim
39354 libdir!$libdir$ac_delim
39355 localedir!$localedir$ac_delim
39356 mandir!$mandir$ac_delim
39357 DEFS!$DEFS$ac_delim
39358 ECHO_C!$ECHO_C$ac_delim
39359 ECHO_N!$ECHO_N$ac_delim
39360 ECHO_T!$ECHO_T$ac_delim
39361 LIBS!$LIBS$ac_delim
39362 build_alias!$build_alias$ac_delim
39363 host_alias!$host_alias$ac_delim
39364 target_alias!$target_alias$ac_delim
39365 build!$build$ac_delim
39366 build_cpu!$build_cpu$ac_delim
39367 build_vendor!$build_vendor$ac_delim
39368 build_os!$build_os$ac_delim
39369 host!$host$ac_delim
39370 host_cpu!$host_cpu$ac_delim
39371 host_vendor!$host_vendor$ac_delim
39372 host_os!$host_os$ac_delim
39373 target!$target$ac_delim
39374 target_cpu!$target_cpu$ac_delim
39375 target_vendor!$target_vendor$ac_delim
39376 target_os!$target_os$ac_delim
39377 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39378 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39379 INSTALL_DATA!$INSTALL_DATA$ac_delim
39380 CYGPATH_W!$CYGPATH_W$ac_delim
39381 PACKAGE!$PACKAGE$ac_delim
39382 VERSION!$VERSION$ac_delim
39383 ACLOCAL!$ACLOCAL$ac_delim
39384 AUTOCONF!$AUTOCONF$ac_delim
39385 AUTOMAKE!$AUTOMAKE$ac_delim
39386 AUTOHEADER!$AUTOHEADER$ac_delim
39387 MAKEINFO!$MAKEINFO$ac_delim
39388 install_sh!$install_sh$ac_delim
39389 STRIP!$STRIP$ac_delim
39390 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39391 mkdir_p!$mkdir_p$ac_delim
39392 AWK!$AWK$ac_delim
39393 SET_MAKE!$SET_MAKE$ac_delim
39394 am__leading_dot!$am__leading_dot$ac_delim
39395 AMTAR!$AMTAR$ac_delim
39396 am__tar!$am__tar$ac_delim
39397 am__untar!$am__untar$ac_delim
39398 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39399 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39400 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39401 top_builddir!$top_builddir$ac_delim
39402 ldap_subdir!$ldap_subdir$ac_delim
39403 CC!$CC$ac_delim
39404 AR!$AR$ac_delim
39405 CFLAGS!$CFLAGS$ac_delim
39406 LDFLAGS!$LDFLAGS$ac_delim
39407 CPPFLAGS!$CPPFLAGS$ac_delim
39408 ac_ct_CC!$ac_ct_CC$ac_delim
39409 EXEEXT!$EXEEXT$ac_delim
39410 OBJEXT!$OBJEXT$ac_delim
39411 DEPDIR!$DEPDIR$ac_delim
39412 am__include!$am__include$ac_delim
39413 am__quote!$am__quote$ac_delim
39414 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39415 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39416 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39417 CCDEPMODE!$CCDEPMODE$ac_delim
39418 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39419 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39420 GREP!$GREP$ac_delim
39421 EGREP!$EGREP$ac_delim
39422 LN_S!$LN_S$ac_delim
39423 ECHO!$ECHO$ac_delim
39424 RANLIB!$RANLIB$ac_delim
39425 _ACEOF
39426
39427   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39428     break
39429   elif $ac_last_try; then
39430     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39431 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39432    { (exit 1); exit 1; }; }
39433   else
39434     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39435   fi
39436 done
39437
39438 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39439 if test -n "$ac_eof"; then
39440   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39441   ac_eof=`expr $ac_eof + 1`
39442 fi
39443
39444 cat >>$CONFIG_STATUS <<_ACEOF
39445 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39447 _ACEOF
39448 sed '
39449 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39450 s/^/s,@/; s/!/@,|#_!!_#|/
39451 :n
39452 t n
39453 s/'"$ac_delim"'$/,g/; t
39454 s/$/\\/; p
39455 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39456 ' >>$CONFIG_STATUS <conf$$subs.sed
39457 rm -f conf$$subs.sed
39458 cat >>$CONFIG_STATUS <<_ACEOF
39459 CEOF$ac_eof
39460 _ACEOF
39461
39462
39463 ac_delim='%!_!# '
39464 for ac_last_try in false false false false false :; do
39465   cat >conf$$subs.sed <<_ACEOF
39466 DLLTOOL!$DLLTOOL$ac_delim
39467 AS!$AS$ac_delim
39468 OBJDUMP!$OBJDUMP$ac_delim
39469 CPP!$CPP$ac_delim
39470 LIBTOOL!$LIBTOOL$ac_delim
39471 PERLBIN!$PERLBIN$ac_delim
39472 OL_MKDEP!$OL_MKDEP$ac_delim
39473 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39474 LTSTATIC!$LTSTATIC$ac_delim
39475 MYSQL!$MYSQL$ac_delim
39476 LIBOBJS!$LIBOBJS$ac_delim
39477 LIBSRCS!$LIBSRCS$ac_delim
39478 PLAT!$PLAT$ac_delim
39479 WITH_SASL!$WITH_SASL$ac_delim
39480 WITH_TLS!$WITH_TLS$ac_delim
39481 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39482 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39483 BUILD_THREAD!$BUILD_THREAD$ac_delim
39484 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39485 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39486 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39487 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39488 BUILD_BDB!$BUILD_BDB$ac_delim
39489 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39490 BUILD_HDB!$BUILD_HDB$ac_delim
39491 BUILD_LDAP!$BUILD_LDAP$ac_delim
39492 BUILD_META!$BUILD_META$ac_delim
39493 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39494 BUILD_NDB!$BUILD_NDB$ac_delim
39495 BUILD_NULL!$BUILD_NULL$ac_delim
39496 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39497 BUILD_RELAY!$BUILD_RELAY$ac_delim
39498 BUILD_PERL!$BUILD_PERL$ac_delim
39499 BUILD_SHELL!$BUILD_SHELL$ac_delim
39500 BUILD_SOCK!$BUILD_SOCK$ac_delim
39501 BUILD_SQL!$BUILD_SQL$ac_delim
39502 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39503 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39504 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39505 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39506 BUILD_DDS!$BUILD_DDS$ac_delim
39507 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39508 BUILD_DEREF!$BUILD_DEREF$ac_delim
39509 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39510 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39511 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39512 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39513 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39514 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39515 BUILD_REFINT!$BUILD_REFINT$ac_delim
39516 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39517 BUILD_RWM!$BUILD_RWM$ac_delim
39518 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39519 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39520 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39521 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39522 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39523 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39524 LDAP_LIBS!$LDAP_LIBS$ac_delim
39525 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39526 BDB_LIBS!$BDB_LIBS$ac_delim
39527 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39528 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39529 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39530 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39531 WRAP_LIBS!$WRAP_LIBS$ac_delim
39532 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39533 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39534 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39535 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39536 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39537 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39538 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39539 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39540 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39541 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39542 KRB4_LIBS!$KRB4_LIBS$ac_delim
39543 KRB5_LIBS!$KRB5_LIBS$ac_delim
39544 SASL_LIBS!$SASL_LIBS$ac_delim
39545 TLS_LIBS!$TLS_LIBS$ac_delim
39546 MODULES_LIBS!$MODULES_LIBS$ac_delim
39547 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39548 LIBSLAPI!$LIBSLAPI$ac_delim
39549 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39550 AUTH_LIBS!$AUTH_LIBS$ac_delim
39551 ICU_LIBS!$ICU_LIBS$ac_delim
39552 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39553 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39554 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39555 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39556 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39557 LTLIBOBJS!$LTLIBOBJS$ac_delim
39558 _ACEOF
39559
39560   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
39561     break
39562   elif $ac_last_try; then
39563     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39564 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39565    { (exit 1); exit 1; }; }
39566   else
39567     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39568   fi
39569 done
39570
39571 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39572 if test -n "$ac_eof"; then
39573   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39574   ac_eof=`expr $ac_eof + 1`
39575 fi
39576
39577 cat >>$CONFIG_STATUS <<_ACEOF
39578 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39580 _ACEOF
39581 sed '
39582 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39583 s/^/s,@/; s/!/@,|#_!!_#|/
39584 :n
39585 t n
39586 s/'"$ac_delim"'$/,g/; t
39587 s/$/\\/; p
39588 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39589 ' >>$CONFIG_STATUS <conf$$subs.sed
39590 rm -f conf$$subs.sed
39591 cat >>$CONFIG_STATUS <<_ACEOF
39592 :end
39593 s/|#_!!_#|//g
39594 CEOF$ac_eof
39595 _ACEOF
39596
39597
39598 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39599 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39600 # trailing colons and then remove the whole line if VPATH becomes empty
39601 # (actually we leave an empty line to preserve line numbers).
39602 if test "x$srcdir" = x.; then
39603   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39604 s/:*\$(srcdir):*/:/
39605 s/:*\${srcdir}:*/:/
39606 s/:*@srcdir@:*/:/
39607 s/^\([^=]*=[     ]*\):*/\1/
39608 s/:*$//
39609 s/^[^=]*=[       ]*$//
39610 }'
39611 fi
39612
39613 cat >>$CONFIG_STATUS <<\_ACEOF
39614 fi # test -n "$CONFIG_FILES"
39615
39616
39617 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39618 do
39619   case $ac_tag in
39620   :[FHLC]) ac_mode=$ac_tag; continue;;
39621   esac
39622   case $ac_mode$ac_tag in
39623   :[FHL]*:*);;
39624   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39625 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39626    { (exit 1); exit 1; }; };;
39627   :[FH]-) ac_tag=-:-;;
39628   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39629   esac
39630   ac_save_IFS=$IFS
39631   IFS=:
39632   set x $ac_tag
39633   IFS=$ac_save_IFS
39634   shift
39635   ac_file=$1
39636   shift
39637
39638   case $ac_mode in
39639   :L) ac_source=$1;;
39640   :[FH])
39641     ac_file_inputs=
39642     for ac_f
39643     do
39644       case $ac_f in
39645       -) ac_f="$tmp/stdin";;
39646       *) # Look for the file first in the build tree, then in the source tree
39647          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39648          # because $ac_f cannot contain `:'.
39649          test -f "$ac_f" ||
39650            case $ac_f in
39651            [\\/$]*) false;;
39652            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39653            esac ||
39654            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39655 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39656    { (exit 1); exit 1; }; };;
39657       esac
39658       ac_file_inputs="$ac_file_inputs $ac_f"
39659     done
39660
39661     # Let's still pretend it is `configure' which instantiates (i.e., don't
39662     # use $as_me), people would be surprised to read:
39663     #    /* config.h.  Generated by config.status.  */
39664     configure_input="Generated from "`IFS=:
39665           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39666     if test x"$ac_file" != x-; then
39667       configure_input="$ac_file.  $configure_input"
39668       { echo "$as_me:$LINENO: creating $ac_file" >&5
39669 echo "$as_me: creating $ac_file" >&6;}
39670     fi
39671
39672     case $ac_tag in
39673     *:-:* | *:-) cat >"$tmp/stdin";;
39674     esac
39675     ;;
39676   esac
39677
39678   ac_dir=`$as_dirname -- "$ac_file" ||
39679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39680          X"$ac_file" : 'X\(//\)[^/]' \| \
39681          X"$ac_file" : 'X\(//\)$' \| \
39682          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39683 echo X"$ac_file" |
39684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39685             s//\1/
39686             q
39687           }
39688           /^X\(\/\/\)[^/].*/{
39689             s//\1/
39690             q
39691           }
39692           /^X\(\/\/\)$/{
39693             s//\1/
39694             q
39695           }
39696           /^X\(\/\).*/{
39697             s//\1/
39698             q
39699           }
39700           s/.*/./; q'`
39701   { as_dir="$ac_dir"
39702   case $as_dir in #(
39703   -*) as_dir=./$as_dir;;
39704   esac
39705   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39706     as_dirs=
39707     while :; do
39708       case $as_dir in #(
39709       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39710       *) as_qdir=$as_dir;;
39711       esac
39712       as_dirs="'$as_qdir' $as_dirs"
39713       as_dir=`$as_dirname -- "$as_dir" ||
39714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39715          X"$as_dir" : 'X\(//\)[^/]' \| \
39716          X"$as_dir" : 'X\(//\)$' \| \
39717          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39718 echo X"$as_dir" |
39719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39720             s//\1/
39721             q
39722           }
39723           /^X\(\/\/\)[^/].*/{
39724             s//\1/
39725             q
39726           }
39727           /^X\(\/\/\)$/{
39728             s//\1/
39729             q
39730           }
39731           /^X\(\/\).*/{
39732             s//\1/
39733             q
39734           }
39735           s/.*/./; q'`
39736       test -d "$as_dir" && break
39737     done
39738     test -z "$as_dirs" || eval "mkdir $as_dirs"
39739   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39740 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39741    { (exit 1); exit 1; }; }; }
39742   ac_builddir=.
39743
39744 case "$ac_dir" in
39745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39746 *)
39747   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39748   # A ".." for each directory in $ac_dir_suffix.
39749   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39750   case $ac_top_builddir_sub in
39751   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39752   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39753   esac ;;
39754 esac
39755 ac_abs_top_builddir=$ac_pwd
39756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39757 # for backward compatibility:
39758 ac_top_builddir=$ac_top_build_prefix
39759
39760 case $srcdir in
39761   .)  # We are building in place.
39762     ac_srcdir=.
39763     ac_top_srcdir=$ac_top_builddir_sub
39764     ac_abs_top_srcdir=$ac_pwd ;;
39765   [\\/]* | ?:[\\/]* )  # Absolute name.
39766     ac_srcdir=$srcdir$ac_dir_suffix;
39767     ac_top_srcdir=$srcdir
39768     ac_abs_top_srcdir=$srcdir ;;
39769   *) # Relative name.
39770     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39771     ac_top_srcdir=$ac_top_build_prefix$srcdir
39772     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39773 esac
39774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39775
39776
39777   case $ac_mode in
39778   :F)
39779   #
39780   # CONFIG_FILE
39781   #
39782
39783   case $INSTALL in
39784   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39785   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39786   esac
39787 _ACEOF
39788
39789 cat >>$CONFIG_STATUS <<\_ACEOF
39790 # If the template does not know about datarootdir, expand it.
39791 # FIXME: This hack should be removed a few years after 2.60.
39792 ac_datarootdir_hack=; ac_datarootdir_seen=
39793
39794 case `sed -n '/datarootdir/ {
39795   p
39796   q
39797 }
39798 /@datadir@/p
39799 /@docdir@/p
39800 /@infodir@/p
39801 /@localedir@/p
39802 /@mandir@/p
39803 ' $ac_file_inputs` in
39804 *datarootdir*) ac_datarootdir_seen=yes;;
39805 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39806   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39807 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39808 _ACEOF
39809 cat >>$CONFIG_STATUS <<_ACEOF
39810   ac_datarootdir_hack='
39811   s&@datadir@&$datadir&g
39812   s&@docdir@&$docdir&g
39813   s&@infodir@&$infodir&g
39814   s&@localedir@&$localedir&g
39815   s&@mandir@&$mandir&g
39816     s&\\\${datarootdir}&$datarootdir&g' ;;
39817 esac
39818 _ACEOF
39819
39820 # Neutralize VPATH when `$srcdir' = `.'.
39821 # Shell code in configure.ac might set extrasub.
39822 # FIXME: do we really want to maintain this feature?
39823 cat >>$CONFIG_STATUS <<_ACEOF
39824   sed "$ac_vpsub
39825 $extrasub
39826 _ACEOF
39827 cat >>$CONFIG_STATUS <<\_ACEOF
39828 :t
39829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39830 s&@configure_input@&$configure_input&;t t
39831 s&@top_builddir@&$ac_top_builddir_sub&;t t
39832 s&@srcdir@&$ac_srcdir&;t t
39833 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39834 s&@top_srcdir@&$ac_top_srcdir&;t t
39835 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39836 s&@builddir@&$ac_builddir&;t t
39837 s&@abs_builddir@&$ac_abs_builddir&;t t
39838 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39839 s&@INSTALL@&$ac_INSTALL&;t t
39840 $ac_datarootdir_hack
39841 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39842
39843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39844   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39845   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39846   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39847 which seems to be undefined.  Please make sure it is defined." >&5
39848 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39849 which seems to be undefined.  Please make sure it is defined." >&2;}
39850
39851   rm -f "$tmp/stdin"
39852   case $ac_file in
39853   -) cat "$tmp/out"; rm -f "$tmp/out";;
39854   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39855   esac
39856  ;;
39857   :H)
39858   #
39859   # CONFIG_HEADER
39860   #
39861 _ACEOF
39862
39863 # Transform confdefs.h into a sed script `conftest.defines', that
39864 # substitutes the proper values into config.h.in to produce config.h.
39865 rm -f conftest.defines conftest.tail
39866 # First, append a space to every undef/define line, to ease matching.
39867 echo 's/$/ /' >conftest.defines
39868 # Then, protect against being on the right side of a sed subst, or in
39869 # an unquoted here document, in config.status.  If some macros were
39870 # called several times there might be several #defines for the same
39871 # symbol, which is useless.  But do not sort them, since the last
39872 # AC_DEFINE must be honored.
39873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39874 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39875 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39876 # PARAMS is the parameter list in the macro definition--in most cases, it's
39877 # just an empty string.
39878 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
39879 ac_dB='\\)[      (].*,\\1define\\2'
39880 ac_dC=' '
39881 ac_dD=' ,'
39882
39883 uniq confdefs.h |
39884   sed -n '
39885         t rset
39886         :rset
39887         s/^[     ]*#[    ]*define[       ][      ]*//
39888         t ok
39889         d
39890         :ok
39891         s/[\\&,]/\\&/g
39892         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39893         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39894   ' >>conftest.defines
39895
39896 # Remove the space that was appended to ease matching.
39897 # Then replace #undef with comments.  This is necessary, for
39898 # example, in the case of _POSIX_SOURCE, which is predefined and required
39899 # on some systems where configure will not decide to define it.
39900 # (The regexp can be short, since the line contains either #define or #undef.)
39901 echo 's/ $//
39902 s,^[     #]*u.*,/* & */,' >>conftest.defines
39903
39904 # Break up conftest.defines:
39905 ac_max_sed_lines=50
39906
39907 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39908 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39909 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39910 # et cetera.
39911 ac_in='$ac_file_inputs'
39912 ac_out='"$tmp/out1"'
39913 ac_nxt='"$tmp/out2"'
39914
39915 while :
39916 do
39917   # Write a here document:
39918     cat >>$CONFIG_STATUS <<_ACEOF
39919     # First, check the format of the line:
39920     cat >"\$tmp/defines.sed" <<\\CEOF
39921 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
39922 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
39923 b
39924 :def
39925 _ACEOF
39926   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39927   echo 'CEOF
39928     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39929   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39930   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39931   grep . conftest.tail >/dev/null || break
39932   rm -f conftest.defines
39933   mv conftest.tail conftest.defines
39934 done
39935 rm -f conftest.defines conftest.tail
39936
39937 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39938 cat >>$CONFIG_STATUS <<\_ACEOF
39939   if test x"$ac_file" != x-; then
39940     echo "/* $configure_input  */" >"$tmp/config.h"
39941     cat "$ac_result" >>"$tmp/config.h"
39942     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39943       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39944 echo "$as_me: $ac_file is unchanged" >&6;}
39945     else
39946       rm -f $ac_file
39947       mv "$tmp/config.h" $ac_file
39948     fi
39949   else
39950     echo "/* $configure_input  */"
39951     cat "$ac_result"
39952   fi
39953   rm -f "$tmp/out12"
39954 # Compute $ac_file's index in $config_headers.
39955 _am_stamp_count=1
39956 for _am_header in $config_headers :; do
39957   case $_am_header in
39958     $ac_file | $ac_file:* )
39959       break ;;
39960     * )
39961       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39962   esac
39963 done
39964 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39965 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39966          X$ac_file : 'X\(//\)[^/]' \| \
39967          X$ac_file : 'X\(//\)$' \| \
39968          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39969 echo X$ac_file |
39970     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39971             s//\1/
39972             q
39973           }
39974           /^X\(\/\/\)[^/].*/{
39975             s//\1/
39976             q
39977           }
39978           /^X\(\/\/\)$/{
39979             s//\1/
39980             q
39981           }
39982           /^X\(\/\).*/{
39983             s//\1/
39984             q
39985           }
39986           s/.*/./; q'`/stamp-h$_am_stamp_count
39987  ;;
39988
39989   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39990 echo "$as_me: executing $ac_file commands" >&6;}
39991  ;;
39992   esac
39993
39994
39995   case $ac_file$ac_mode in
39996     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39997   # Strip MF so we end up with the name of the file.
39998   mf=`echo "$mf" | sed -e 's/:.*$//'`
39999   # Check whether this is an Automake generated Makefile or not.
40000   # We used to match only the files named `Makefile.in', but
40001   # some people rename them; so instead we look at the file content.
40002   # Grep'ing the first line is not enough: some people post-process
40003   # each Makefile.in and add a new line on top of each file to say so.
40004   # So let's grep whole file.
40005   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40006     dirpart=`$as_dirname -- "$mf" ||
40007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40008          X"$mf" : 'X\(//\)[^/]' \| \
40009          X"$mf" : 'X\(//\)$' \| \
40010          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40011 echo X"$mf" |
40012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40013             s//\1/
40014             q
40015           }
40016           /^X\(\/\/\)[^/].*/{
40017             s//\1/
40018             q
40019           }
40020           /^X\(\/\/\)$/{
40021             s//\1/
40022             q
40023           }
40024           /^X\(\/\).*/{
40025             s//\1/
40026             q
40027           }
40028           s/.*/./; q'`
40029   else
40030     continue
40031   fi
40032   # Extract the definition of DEPDIR, am__include, and am__quote
40033   # from the Makefile without running `make'.
40034   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40035   test -z "$DEPDIR" && continue
40036   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40037   test -z "am__include" && continue
40038   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40039   # When using ansi2knr, U may be empty or an underscore; expand it
40040   U=`sed -n 's/^U = //p' < "$mf"`
40041   # Find all dependency output files, they are included files with
40042   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40043   # simplest approach to changing $(DEPDIR) to its actual value in the
40044   # expansion.
40045   for file in `sed -n "
40046     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40047        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40048     # Make sure the directory exists.
40049     test -f "$dirpart/$file" && continue
40050     fdir=`$as_dirname -- "$file" ||
40051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40052          X"$file" : 'X\(//\)[^/]' \| \
40053          X"$file" : 'X\(//\)$' \| \
40054          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40055 echo X"$file" |
40056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40057             s//\1/
40058             q
40059           }
40060           /^X\(\/\/\)[^/].*/{
40061             s//\1/
40062             q
40063           }
40064           /^X\(\/\/\)$/{
40065             s//\1/
40066             q
40067           }
40068           /^X\(\/\).*/{
40069             s//\1/
40070             q
40071           }
40072           s/.*/./; q'`
40073     { as_dir=$dirpart/$fdir
40074   case $as_dir in #(
40075   -*) as_dir=./$as_dir;;
40076   esac
40077   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40078     as_dirs=
40079     while :; do
40080       case $as_dir in #(
40081       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40082       *) as_qdir=$as_dir;;
40083       esac
40084       as_dirs="'$as_qdir' $as_dirs"
40085       as_dir=`$as_dirname -- "$as_dir" ||
40086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40087          X"$as_dir" : 'X\(//\)[^/]' \| \
40088          X"$as_dir" : 'X\(//\)$' \| \
40089          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40090 echo X"$as_dir" |
40091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40092             s//\1/
40093             q
40094           }
40095           /^X\(\/\/\)[^/].*/{
40096             s//\1/
40097             q
40098           }
40099           /^X\(\/\/\)$/{
40100             s//\1/
40101             q
40102           }
40103           /^X\(\/\).*/{
40104             s//\1/
40105             q
40106           }
40107           s/.*/./; q'`
40108       test -d "$as_dir" && break
40109     done
40110     test -z "$as_dirs" || eval "mkdir $as_dirs"
40111   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40112 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40113    { (exit 1); exit 1; }; }; }
40114     # echo "creating $dirpart/$file"
40115     echo '# dummy' > "$dirpart/$file"
40116   done
40117 done
40118  ;;
40119     "default":C)
40120 chmod +x tests/run
40121 date > stamp-h
40122 BACKENDSC="servers/slapd/backends.c"
40123 echo "Making $BACKENDSC"
40124 rm -f $BACKENDSC
40125 cat > $BACKENDSC << ENDX
40126 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40127  *
40128  * Copyright 1998-2010 The OpenLDAP Foundation.
40129  * All rights reserved.
40130  *
40131  * Redistribution and use in source and binary forms, with or without
40132  * modification, are permitted only as authorized by the OpenLDAP
40133  * Public License.
40134  *
40135  * A copy of this license is available in the file LICENSE in the
40136  * top-level directory of the distribution or, alternatively, at
40137  * <http://www.OpenLDAP.org/license.html>.
40138  */
40139 /* This file is automatically generated by configure; please do not edit. */
40140
40141 #include "portable.h"
40142 #include "slap.h"
40143
40144 ENDX
40145 if test "${STATIC_BACKENDS}"; then
40146         for b in config ${STATIC_BACKENDS}; do
40147                 bb=`echo "${b}" | sed -e 's/back-//'`
40148                 cat >> $BACKENDSC << ENDX
40149 extern BI_init ${bb}_back_initialize;
40150 ENDX
40151         done
40152
40153         cat >> $BACKENDSC << ENDX
40154
40155 BackendInfo slap_binfo[] = {
40156 ENDX
40157
40158         for b in config ${STATIC_BACKENDS}; do
40159                 bb=`echo "${b}" | sed -e 's/back-//'`
40160                 echo "    Add ${bb} ..."
40161                 cat >> $BACKENDSC << ENDX
40162         { "${bb}", ${bb}_back_initialize },
40163 ENDX
40164         done
40165
40166         cat >> $BACKENDSC << ENDX
40167         { NULL, NULL },
40168 };
40169
40170 /* end of generated file */
40171 ENDX
40172 fi
40173 OVERLAYSC="servers/slapd/overlays/statover.c"
40174 echo "Making $OVERLAYSC"
40175 rm -f $OVERLAYSC
40176 cat > $OVERLAYSC << ENDX
40177 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40178  *
40179  * Copyright 1998-2010 The OpenLDAP Foundation.
40180  * All rights reserved.
40181  *
40182  * Redistribution and use in source and binary forms, with or without
40183  * modification, are permitted only as authorized by the OpenLDAP
40184  * Public License.
40185  *
40186  * A copy of this license is available in the file LICENSE in the
40187  * top-level directory of the distribution or, alternatively, at
40188  * <http://www.OpenLDAP.org/license.html>.
40189  */
40190 /* This file is automatically generated by configure; please do not edit. */
40191
40192 #include "portable.h"
40193 #include "slap.h"
40194
40195 ENDX
40196 if test "${STATIC_OVERLAYS}"; then
40197         for o in ${STATIC_OVERLAYS}; do
40198                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40199                 cat >> $OVERLAYSC << ENDX
40200 extern OV_init ${oo}_initialize;
40201 ENDX
40202         done
40203 fi
40204
40205 cat >> $OVERLAYSC << ENDX
40206
40207 OverlayInit slap_oinfo[] = {
40208 ENDX
40209
40210 if test "${STATIC_OVERLAYS}"; then
40211         for o in ${STATIC_OVERLAYS}; do
40212                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40213                 echo "    Add ${oo} ..."
40214                 cat >> $OVERLAYSC << ENDX
40215         { "${oo}", ${oo}_initialize },
40216 ENDX
40217         done
40218 fi
40219
40220         cat >> $OVERLAYSC << ENDX
40221         { NULL, NULL },
40222 };
40223
40224 /* end of generated file */
40225 ENDX
40226
40227 if test "${ol_cv_mkdep}" = no; then
40228         echo '(Do not "make depend"; we do not know how to build dependencies)'
40229 else
40230         echo 'Please run "make depend" to build dependencies'
40231 fi
40232  ;;
40233
40234   esac
40235 done # for ac_tag
40236
40237
40238 { (exit 0); exit 0; }
40239 _ACEOF
40240 chmod +x $CONFIG_STATUS
40241 ac_clean_files=$ac_clean_files_save
40242
40243
40244 # configure is writing to config.log, and then calls config.status.
40245 # config.status does its own redirection, appending to config.log.
40246 # Unfortunately, on DOS this fails, as config.log is still kept open
40247 # by configure, so config.status won't be able to write to it; its
40248 # output is simply discarded.  So we exec the FD to /dev/null,
40249 # effectively closing config.log, so it can be properly (re)opened and
40250 # appended to by config.status.  When coming back to configure, we
40251 # need to make the FD available again.
40252 if test "$no_create" != yes; then
40253   ac_cs_success=:
40254   ac_config_status_args=
40255   test "$silent" = yes &&
40256     ac_config_status_args="$ac_config_status_args --quiet"
40257   exec 5>/dev/null
40258   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40259   exec 5>>config.log
40260   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40261   # would make configure fail if this is the last instruction.
40262   $ac_cs_success || { (exit 1); exit 1; }
40263 fi
40264